SHIP
	"@The sails must be furled before the planks are raised.@"
	"@I believe the gangplank is blocked.@"

ERROR HANDLING
	"WARNING: $Temp1Flag is set!!! Report at what point in the game you are in."
	"WARNING: $Temp2Flag is set!!! Report at what point in the game you are in."
	"WARNING: $Temp3Flag is set!!! Report at what point in the game you are in."
	"WARNING: $Temp4Flag is set!!! Report at what point in the game you are in."
	"NPC #" + npcNum + " is moving - get his schedule!"
	"His current activity is #" + npcActivity
	"Save game, and report to Brendann NOW!"

	"@Die, you cursed fiends!@"
	"@I despise you all!@"


PIKEMEN
	"@Pikeman!@"
	"@Yes?@"
	"@Fight!@"
	"@Don't be a coward!@"
	"\"I suppose thou dost wish me to operate the gate?\""
	"\"Stand back while I crank the winch. 'Tis heavy and dangerous. Thou dost never know when it might come down upon thine head.\""
	"\"Gladly I will for a fellow Knight. Have a pleasant day and may goblin blood stain thy sword soon.\""
	"\"Then bother me not! I must be about my duty!\""
	"@Watch out for goblins...@"

	"@Please step forward.@"
	"@Do not tarry here!@"
	"@Pay the tariff.@"
	"@Move along.@"
	"@Beware of Goblins.@"
	"@Is it meal time yet?@"
	"@Greetings, Knight!@"
	"@Knave!@"
	"\"Why dost thou interrupt? I am a Pikeman of Monitor.\""
	"\"I must return to my duties lest the goblin horde take us.\""
	"@Farewell!@"
	"@Be vigilant!@"
	"\"I would have words with thee but my duties call.\""
	"\"Please consult me when I am not on duty.\""
	"@Farewell!@"
	"@Be vigilant!@"
	"\"Greetings. I'm a Pikeman of Monitor.\""
	"\"The Goblins are dangerous. Watch out for them. As for me, I must return to my duties now.\""
	"@Farewell!@"
	"@Be vigilant!@"
	"\"I will not discuss matters with a stranger to Monitor. Thou shouldst speak with Lord Marsten.\""
	"\"Thou art not a Knight. Only warriors are welcome here. Move along before thou dost feel the cold steel of mine halberd.\""
	"\"Welcome, Knight. I must be about my duties.\""
	"@Move along!@"
	"@Find the traitor!@"
	"\"Thou didst call, Lord Caladin?\""
	"\"Send thy men to arrest Lord Marsten! I have evidence that he is our traitor!\""
	"\"Arrest... Lord Marsten?\"");
	"\"Look, man, thou art a Bear like myself! Obey me now, and all will be right.\""
	"\"Yes, milord.\""
	"@On thy way, then!@"
	"@Yes, milord.@"
	"\"Avatar, I am pleased to report that my men are scouring the city for that traitor Marsten.\""
	"@Find Marsten!@"
	"\"Please spare me! I shall do anything! I do not want to be roasted over a goblin's fire...\""
	"\"Oh, er, hello there. My name is Johnson. Pardon mine outburst, but I thought thou mightest be a goblin. I was attempting to scare them, surprise them, before I rushed them.\""
	"\"Thou art most fortunate. I might have accidentally killed thee had I not recognized thee as being from Monitor. I was going to kill as many of those green devils as I could before making my way back.\""
	"\"Let us return to Monitor! We will be greeted with a hero's welcome for we will be the first to have survived, I mean, braved the goblin's lair.\""
	"@To Monitor!@"
	"\"There is no time for small talk! We must be on our way back to Monitor!\" *\"Thou wouldst not want us to be eaten before we have the chance to become heroes, wouldst thou?\" *\" Of course not! Let us be on our way!\""
	"@I shan't fear goblins...@"
	"\"This is the Bull Tower, knave. State thy business or be gone. We have no time for idle chit-chat with Goblins about.\""

"bye"
"Goblins"
"Goblins"
	"\"Yes, that entire vile race is the scourge of all men of the Serpent Isle.\""
"pikeman"
	"\"I received my training on the List Fields by the finest knights and trainers in all of Monitor. Now my duty is to protect the travelling citizenry from all manner of harm. Goblins, thieves and the like.\""
"Bull Tower"
	"\"The Bull Tower was erected to protect the people of Sleeping Bull from Goblin attack. I dare say since it was built they have seldom dared to challenge it.\""
"Captain Hawk"
	"\"So, thou art a friend of that criminal? His ransom is a mere " + fineAmount + " Monetari.\""
	"\"We also accept other precious items...\""
"pay fine"
	"\"Dost thou wish to pay Captain Hawk's fine?\""
"yes"
	"\"I do not believe that a rogue like thyself hast the riches to buy Hawk's freedom! What canst thou give us?\""
"gold bars"
"jewels", "Monetari", "guilders", "Fawn money", "magic items", "nothing"
"no"
	"@Thou dost waste my time!@"
"jewels"
	"\"Don't take jewels. Thou mightest cheat us by telling us they was worth more than they was!\""
	"\"Gold or silver, yeah. Jewels, no.\""
"Monetari"
	"\"Now that's something we like! How much dost thou have?\""
(Companion) "@We've got " + goldAmount + " Monetari, sir.@"
(Avatar) "@I've got " + goldAmount + " Monetari.@"
	"\"'Tis not enough!\""
(Companion) "@But thou didst say the ransom was " + fineAmount + " Monetari!@"
(Avatar) "@But thou didst say the ransom was " + fineAmount + " Monetari!@"
"\"Well, we changed our minds. Now we want ");
		UcMessage(var000F);
		UcMessage(" Monetari!\"");
		UcSay;
		var0011 = Func0992(0x0001, "@They are thieves!@", 0x0000, false);
		if(!(var0011 != 0xFE9C)) goto labelFunc00E4_083B;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
	labelFunc00E4_083B:
		goto labelFunc00E4_084C;
	labelFunc00E4_083E:
		UcMessage("\"'Tis not enough. Bring us more!\"");
		UcSay;
		UI_set_npc_id_BD(0xFFD8, 0x001F);
	labelFunc00E4_084C:
		UI_pop_answers_0F();
		goto labelFunc00E4_0868;
	labelFunc00E4_0853:
		UcMessage("\"Only ");
		UcMessage(var0010);
		UcMessage("? 'Tis not enough!\"");
		UcSay;
		Func097F(item, "@Remove thyself!@", 0x0000);
		abrt();
	labelFunc00E4_0868:
		cmps("guilders");
		UI_remove_answer_0D("guilders");
		UcMessage("\"Thou dost mean the strange glowing money that the mages use?\"");
		UcSay;
		UcMessage("\"Bah! Take that to Bull and exchange it for true money -- like Monetari!!!\"");
		UcSay;
	labelFunc00E4_087F:
		cmps("Fawn money");
		UI_remove_answer_0D("Fawn money");
		UcMessage("\"Ha ha ha!!! Very funny. Take those little silver coins to Bull, and exchange them for true coin!\"");
		UcSay;
	labelFunc00E4_0892:
		cmps("magic items");
		UI_remove_answer_0D("magic items");
		UcMessage("\"Pwah! Monitorians do not need magic -- especially not magic weapons!\"");
		UcSay;
	labelFunc00E4_08A5:
		cmps("gold bars");
		UI_remove_answer_0D("gold bars");
		UcMessage("\"All right, thou canst have him. Here be the key.\"");
		UcSay;
		var0012 = true;
	labelFunc00E4_08BC:
		if(!(var0012 == true)) goto labelFunc00E4_08DD;
		var0012 = UI_remove_party_items_34(0x0001, 0x0286, 0xFE99, 0xFE99, 0x0000);
		goto labelFunc00E4_08BC;
	labelFunc00E4_08DD:
		gflags[01D1] = true;
		var0002 = Func099B(0xFE9C, 0x0001, 0x0281, 0x004F, 0x0001, 0x0000, true);
		UI_set_npc_id_BD(0xFFD8, 0x0000);
		Func097F(item, "@Thanks for the gold!@", 0x0000);
		abrt();
	labelFunc00E4_090F:
		cmps("nothing");
		UcMessage("\"I did not think thou didst have any money!\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc00E4_091F:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(item, "@Farewell!@", 0x0002);
		abrt();
	labelFunc00E4_0942:
		goto labelFunc00E4_065E;
	labelFunc00E4_0945:
		end_conv();
	labelFunc00E4_0946:
		if(!((event == 0x0009) && (var0000 == 0x0009))) goto labelFunc00E4_0D43;
	labelFunc00E4_0956:
		UI_clear_item_say_4E(item);
		if(!UI_get_item_flag_A3(0xFE9C, 0x0000)) goto labelFunc00E4_097B;
		UI_item_say_4D(item, "@What!!?@");
		Func097F(item, "@Who said that?!@", 0x0008);
		abrt();
	labelFunc00E4_097B:
		UI_show_npc_face0_05(0xFEED, 0x0000);
		if(!gflags[0083]) goto labelFunc00E4_0992;
		UcMessage("\"Sorry, but we have too many people in there already.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0992:
		var0004 = UI_get_object_position_20(item);
		if(!((UI_get_item_frame_1A(item) != 0x000A) || ((var0004[0x0001] != 0x03F8) || ((var0004[0x0002] != 0x0A77) || (var0004[0x0003] != 0x0006))))) goto labelFunc00E4_09E7;
		UcMessage("\"Sorry, but I cannot help thee until I return to my desk. All the paperwork that I have to fill out is there.\"");
		UcSay;
		UI_si_path_run_usecode_C1(item, [0x03FB, 0x0A77, 0x0006], 0x000D, item, 0x00E4, true);
		goto labelFunc00E4_0D43;
	labelFunc00E4_09E7:
		UcMessage("\"My, what a fine-looking warrior! How might I be of service to thee?\"");
		UcSay;
		var0013 = Func0957(["nothing", "fight", "train"]);
		if(!(var0013 == 0x0001)) goto labelFunc00E4_0A0E;
		UcMessage("\"Maybe when thou dost feel more brave, then.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0A0E:
		if(!((UI_game_hour_45() < 0x0009) || (UI_game_hour_45() > 0x0011))) goto labelFunc00E4_0A29;
		UcMessage("\"The business hours are from 9am to 6pm. Return then.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0A29:
		if(!(var0013 == 0x0002)) goto labelFunc00E4_0A3B;
		UcMessage("\"Merely a spar then? All right, good enough....\"");
		UcSay;
		UcMessage("\"Which of you dost wish to fight?\"");
		UcSay;
	labelFunc00E4_0A3B:
		if(!(var0013 == 0x0003)) goto labelFunc00E4_0A49;
		UcMessage("\"Which of you dost wish to train?\"");
		UcSay;
	labelFunc00E4_0A49:
		var0014 = Func098E();
		var0014 = (0x0000 & var0014);
		var0015 = ["nobody"];
		enum();
	labelFunc00E4_0A63:
		for (var000A in var0014 with var0016 to var0017 atend labelFunc00E4_0A8A);
		if(!(!(var000A == 0x0000))) goto labelFunc00E4_0A87;
		var0015 = (var0015 & UI_get_npc_name_30(var000A));
	labelFunc00E4_0A87:
		goto labelFunc00E4_0A63;
	labelFunc00E4_0A8A:
		var0018 = Func0957(var0015);
		var0018 = var0014[var0018];
		if(!(var0018 == 0x0000)) goto labelFunc00E4_0AAD;
		UcMessage("\"Well, mayhap some other time, then.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0AAD:
		var0018 = UI_get_npc_object_23(var0018);
		var000A = UI_get_object_position_20(var0018);
		var0015 = UI_get_object_position_20(item);
		if(!((UI_get_distance_21(var0018, item) > 0x0008) || ((var000A[0x0003] != var0015[0x0003]) || UI_get_item_flag_A3(var0018, 0x0000)))) goto labelFunc00E4_0AF8;
		UcMessage("\"Where is he, anyway? Tell him to step forward before bothering me again.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0AF8:
		var0014 = [0xFFC1, 0xFFB9, 0xFFB1];
		enum();
	labelFunc00E4_0B08:
		for (var0001 in var0014 with var0019 to var001A atend labelFunc00E4_0B53);
		if(!((UI_game_hour_45() > 0x0008) && (UI_game_hour_45() < 0x000C))) goto labelFunc00E4_0B50;
		if(!((!Func0932(var0001)) && (!UI_get_item_flag_A3(var0001, 0x0004)))) goto labelFunc00E4_0B50;
		UI_move_object_4B(var0001, [0x03D4, 0x0A8C, 0x0000]);
	labelFunc00E4_0B50:
		goto labelFunc00E4_0B08;
	labelFunc00E4_0B53:
		var0014 = [0xFFB6, 0xFFB1];
		enum();
	labelFunc00E4_0B60:
		for (var0001 in var0014 with var001B to var001C atend labelFunc00E4_0BAB);
		if(!((UI_game_hour_45() > 0x000B) && (UI_game_hour_45() < 0x000F))) goto labelFunc00E4_0BA8;
		if(!((!Func0932(var0001)) && (!UI_get_item_flag_A3(var0001, 0x0004)))) goto labelFunc00E4_0BA8;
		UI_move_object_4B(var0001, [0x03D4, 0x0A8C, 0x0000]);
	labelFunc00E4_0BA8:
		goto labelFunc00E4_0B60;
	labelFunc00E4_0BAB:
		if(!((UI_game_hour_45() > 0x000E) && (UI_game_hour_45() < 0x0012))) goto labelFunc00E4_0BE8;
		if(!((!Func0932(0xFF6A)) && (!UI_get_item_flag_A3(var0001, 0x0004)))) goto labelFunc00E4_0BE8;
		UI_move_object_4B(0xFF6A, [0x03D4, 0x0A8C, 0x0000]);
	labelFunc00E4_0BE8:
		if(!(!(Func0932(0xFFC1) || (Func0932(0xFFB6) || (Func0932(0xFF6A) || Func0932(0xFFB9)))))) goto labelFunc00E4_0C0E;
		UcMessage("\"Sorry lad, but no one is around for thee to spar with. Come back some other time.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0C0E:
		if(!(var0013 == 0x0003)) goto labelFunc00E4_0D32;
	labelFunc00E4_0C18:
		UcMessage("\"With whom dost thou wish to train?\"");
		UcSay;
		var0014 = [0x0000, 0xFFC1, 0xFFB6, 0xFF6A, 0xFFB9];
		var001D = ["nobody", "Caladin", "Shazzana", "Brendann", "Luther"];
		var001E = ["invalid time", "9am and noon", "noon and 3pm", "3pm and 6pm", "9am and noon"];
		var001F = Func0957(var001D);
		if(!(var001F == 0x0001)) goto labelFunc00E4_0C75;
		UcMessage("\"Then why art thou wasting my time?\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0C75:
		var0020 = var0014[var001F];
		if(!(var0020 == 0xFFB6)) goto labelFunc00E4_0C91;
		var0021 = "She's";
		goto labelFunc00E4_0C97;
	labelFunc00E4_0C91:
		var0021 = "He's";
	labelFunc00E4_0C97:
		if(!(!Func0932(var0020))) goto labelFunc00E4_0CCC;
		var0022 = var001D[var001F];
		var0023 = var001E[var001F];
		UcMessage("\"Sorry, but ");
		UcMessage(var0022);
		UcMessage(" is not around. ");
		UcMessage(var0021);
		UcMessage(" is usually here between ");
		UcMessage(var0023);
		UcMessage(". Thou mightest return then.\"");
		UcSay;
		goto labelFunc00E4_0C18;
	labelFunc00E4_0CCC:
		var0024 = var001D[var001F];
		UcMessage("\"Training costs 50 Monetari. All right?\"");
		UcSay;
		if(!Func0955()) goto labelFunc00E4_0D2B;
		UcMessage("\"Oh, ");
		UcMessage(var0024);
		UcMessage(", this here warrior wants to train with ye!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_npc_id_BD(0xFF6A, 0x0000);
		UI_set_npc_id_BD(0xFFB1, 0x0000);
		UI_set_npc_id_BD(0xFFC1, 0x0000);
		UI_set_npc_id_BD(0xFFB6, 0x0000);
		UI_set_npc_id_BD(0xFFB9, 0x0000);
		Func0933(var0020, var0018);
		goto labelFunc00E4_0D32;
	labelFunc00E4_0D2B:
		UcMessage("\"Return when thou art ready.\"");
		UcSay;
		goto labelFunc00E4_0D43;
	labelFunc00E4_0D32:
		if(!(var0013 == 0x0002)) goto labelFunc00E4_0D43;
		Func0934(var0018);
		abrt();
	labelFunc00E4_0D43:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08EC 0x8EC ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09B2 0x9B2 ();
extern var Func0955 0x955 ();
extern Func07D1 0x7D1 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func0956 0x956 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func098D 0x98D ();
extern var Func0988 0x988 (var var0000, var var0001);

Func00E6 0xE6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;

	var0000 = UI_get_item_flag_A3(0xFFEC, 0x001C);
	var0001 = Func0954();
	var0002 = UI_is_pc_female_6F();
	var0003 = Func0953();
	var0004 = UI_part_of_day_48();
	if(!((var0004 > 0x0001) || (var0004 < 0x0006))) goto labelFunc00E6_0042;
	var0004 = "day";
	goto labelFunc00E6_0048;
	labelFunc00E6_0042:
		var0004 = "evening";
	labelFunc00E6_0048:
		var0005 = "his";
		if(!var0002) goto labelFunc00E6_005A;
		var0005 = "her";
	labelFunc00E6_005A:
		var0006 = UI_get_distance_21(0xFFEC, 0xFE9C);
		var0007 = [0x0975, 0x0748, 0x0000];
		var0008 = UI_get_object_position_20(0xFFEC);
		var0009 = [0x0986, 0x0766];
		var000A = (var0007[0x0001] - var0008[0x0001]);
		if(!(var000A < 0x0000)) goto labelFunc00E6_00B0;
		var000A = (var000A * Dupre);
	labelFunc00E6_00B0:
		var000B = (var0007[0x0002] - var0008[0x0002]);
		if(!(var000B < 0x0000)) goto labelFunc00E6_00D4;
		var000B = (var000B * Dupre);
	labelFunc00E6_00D4:
		var000C = (var000A + var000B);
		var000D = Func09A0(0x0005, 0x0003);
		if(!(event == 0x0002)) goto labelFunc00E6_1170;
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0011)) goto labelFunc00E6_0104;
		Func08EC();
		abrt();
	labelFunc00E6_0104:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0010)) goto labelFunc00E6_0116;
		Func08EC();
		abrt();
	labelFunc00E6_0116:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000F)) goto labelFunc00E6_017B;
		UI_set_npc_id_BD(0xFFEC, 0x0010);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0002);
		UcMessage("\"I think that I am falling in love with thee, ");
		UcMessage(var0003);
		UcMessage("! How did I ever live without thee...\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(item, "@Kiss me again, love...@", 0x0000);
		Func097F(0xFE9C, "@I cannot resist!@", 0x0002);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x55, 0x00E6, 0x0000], 0x0008);
		abrt();
	labelFunc00E6_017B:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000E)) goto labelFunc00E6_0225;
		UI_set_npc_id_BD(0xFFEC, 0x000F);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_music_39(0x0027, Func09A0(0x0005, 0x0001));
		UI_move_object_4B(0xFE9C, [0x0976, 0x0745, 0x0000]);
		UI_move_object_4B(0xFFEC, [0x0974, 0x0749, 0x0002]);
		var000E = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x61, 0x59, 0x0004]);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x59, 0x0002, 0x55, 0x0636, 0x54, 0x001C, 0x27, 0x0004, 0x52, "@Wow...@", 0x27, 0x0006, 0x55, 0x00E6, 0x0000], 0x000F);
		abrt();
	labelFunc00E6_0225:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000D)) goto labelFunc00E6_0315;
		UI_set_npc_id_BD(0xFFEC, 0x000E);
		UI_clear_item_say_4E(0xFFEC);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0002);
		UcMessage("\"We need not these blankets...\"");
		UcSay;
		UI_end_conversation_86();
		var000F = UI_find_nearby_41(item, 0x02B8, 0x000A, 0x0000);
		enum();
	labelFunc00E6_026C:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc00E6_02BE);
		var0009 = UI_get_object_position_20(var0012);
		if(!(var0009[0x0003] == 0x0001)) goto labelFunc00E6_02BB;
		UI_remove_item_84(var0012);
		UI_sprite_effect_68(0x0015, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0014);
	labelFunc00E6_02BB:
		goto labelFunc00E6_026C;
	labelFunc00E6_02BE:
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6C, 0x27, 0x0002, 0x6E, 0x52, "@Oh!@"]);
		var000E = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6E, 0x27, 0x0002, 0x52, "@Ah!@", 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_0315:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000C)) goto labelFunc00E6_039E;
		UI_set_npc_id_BD(0xFFEC, 0x000D);
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0015, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func09B2();
		UI_play_sound_effect_16(0x0039);
		var000E = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@I'm cold...@", 0x59, 0x0006], 0x0002);
		UI_si_path_run_usecode_C1(0xFFEC, [0x0975, 0x0747, 0x0000], 0x000D, item, [0x00E6, 0x0000], false);
		abrt();
	labelFunc00E6_039E:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000B)) goto labelFunc00E6_0469;
		UI_set_npc_id_BD(0xFFEC, 0x000C);
		UI_clear_item_say_4E(0xFE9C);
		UI_clear_item_say_4E(0xFFEC);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0002);
		UcMessage("\"No mortal can resist the Dance of Passion! Tell me that thy blood hath been stirred to a frenzy!\"");
		UcSay;
		if(!Func0955()) goto labelFunc00E6_0444;
		UI_end_conversation_86();
		Func097F(0xFFEC, "@Likewise...@", 0x0004);
		Func097F(0xFE9C, "@I cannot wait!@", 0x0000);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0975, 0x0749, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), [0x00E6, 0x0000], false);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x59, 0x0004, 0x27, 0x0003, 0x59, 0x0006], 0x0004);
		abrt();
		goto labelFunc00E6_0469;
	labelFunc00E6_0444:
		UcMessage("\"No, thou dost not understand. As I said, no mortal can resist the Dance of Passion...\"");
		UcSay;
		UI_end_conversation_86();
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x59, 0x0004, 0x52, "@Uh-oh...@"]);
		Func08EC();
		abrt();
	labelFunc00E6_0469:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000A)) goto labelFunc00E6_04FA;
		0xFFEC;
		calle();
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x000C, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_npc_id_BD(0xFFEC, 0x000B);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x69, 0x66, 0x6A, 0x66, 0x69, 0x0B, 0xFFFB, 0x0002, 0x6F, 0x27, 0x0002, 0x70, 0x27, 0x0002, 0x0B, 0xFFFA, 0x0002, 0x55, 0x07D2, 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_04FA:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0009)) goto labelFunc00E6_056F;
		UI_set_npc_id_BD(0xFFEC, 0x000A);
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0015, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		0xFFEC;
		calle();
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6C, 0x6D, 0x6E, 0x27, 0x0004, 0x6D, 0x6C, 0x61, 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_056F:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0008)) goto labelFunc00E6_0619;
		UI_set_npc_id_BD(0xFFEC, 0x0009);
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x000D, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		0xFFEC;
		calle();
		var000E = ["@Vox Erotis!@", "@Vex Nox Flam!@", "@Ort Vos!@", "@Ort Erotis!@"];
		Func094F(0xFFEC, var000E);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6F, 0x70, 0x59, 0x0006, 0x6F, 0x70, 0x27, 0x0004, 0x59, 0x0000, 0x63, 0x65, 0x67, 0x27, 0x0005, 0x59, 0x0002, 0x6F, 0x70, 0x27, 0x0004, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_0619:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0007)) goto labelFunc00E6_0705;
		UI_set_npc_id_BD(0xFFEC, 0x0008);
		0xFFEC;
		calle();
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0002);
		UcMessage("\"Beware, ");
		UcMessage(var0003);
		UcMessage("! I shall now begin the Dance of Passion, which no mortal can resist!\"");
		UcSay;
		UI_end_conversation_86();
		var0013 = Func09A0(0x0000, 0x0001);
		if(!var0013) goto labelFunc00E6_066F;
		UI_play_music_39(0x0010, var0013);
	labelFunc00E6_066F:
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x000C, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFFEC, "@Vas Flam!@", 0x0008);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6F, 0x65, 0x27, 0x0001, 0x67, 0x27, 0x0001, 0x53, 0x34, 0x53, 0x34, 0x27, 0x0002, 0x0B, 0xFFF3, 0x0003, 0x55, 0x00E6, 0x0000]);
		var000E = ["@Gosh!@", "@Oh, my!@", "@Do not hurt thyself!@", "@Wow!@", "@Hmmm...@", "@Dost thou need help?@", "@Oh!@"];
		Func094F(0xFE9C, var000E);
		abrt();
	labelFunc00E6_0705:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0006)) goto labelFunc00E6_0746;
		UI_set_npc_id_BD(0xFFEC, 0x0007);
		UI_set_polymorph_B3(0xFFEC, 0x00E6);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6F, 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_0746:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0005)) goto labelFunc00E6_0912;
		UI_set_npc_id_BD(0xFFEC, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		UcMessage("\"Now that I have tasted thy lips, I think that mine infatuation with thee doth grow!\"");
		UcSay;
		UcMessage("\"Strange -- 'twas so cold in here when thou didst enter, but now I feel suddenly warm...\"");
		UcSay;
		UcMessage("\"I have not felt so alive in many months! Perhaps... I am not sure how to say this, but...\"");
		UcSay;
		UcMessage("\"Dost thou desire my body, Avatar?\"");
		UcSay;
		var000E = ["yes", "no", "What about Filbercio?"];
		if(!UI_is_pc_female_6F()) goto labelFunc00E6_079C;
		var000E = (var000E & "I'm not that kind of girl!");
	labelFunc00E6_079C:
		var000F = Func0956(var000E);
		if(!(var000F == "What about Filbercio?")) goto labelFunc00E6_07F6;
		UcMessage("\"The MageLord? Oh, how canst thou think of him when the two of us are here together, becoming intimate...\"");
		UcSay;
		UcMessage("\"Perhaps this shall arouse thine interest!\"");
		UcSay;
		UI_end_conversation_86();
		UI_si_path_run_usecode_C1(0xFFEC, [0x097B, 0x0743, 0x0000], 0x000D, item, [0x00E6, 0x0000], false);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x27, 0x0002, 0x6F, 0x52, "@Est Nudi!@"]);
		abrt();
	labelFunc00E6_07F6:
		if(!(var000F == "yes")) goto labelFunc00E6_0846;
		UcMessage("\"Then watch this, my love...\"");
		UcSay;
		UI_end_conversation_86();
		UI_si_path_run_usecode_C1(0xFFEC, [0x097B, 0x0743, 0x0000], 0x000D, item, [0x00E6, 0x0000], false);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x27, 0x0002, 0x6F, 0x52, "@Est Nudi!@"]);
		abrt();
		goto labelFunc00E6_0912;
	labelFunc00E6_0846:
		if(!(var000F == "no")) goto labelFunc00E6_08A2;
		UcMessage("\"Oh... this is so embarrassing!\"");
		UcSay;
		UI_end_conversation_86();
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x68, 0x27, 0x0002, 0x59, 0x0000, 0x52, "@I could just die...@", 0x27, 0x0006, 0x55, 0x00E6, 0x0000, 0x27, 0x0004, 0x59, 0x0002, 0x59, 0x0004]);
		UI_set_npc_id_BD(0xFFEC, 0x0011);
		abrt();
		goto labelFunc00E6_0912;
	labelFunc00E6_08A2:
		UcMessage("\"Do I detect a note of disapproval? Well, I don't have to take that from anyone!\"");
		UcSay;
		UI_end_conversation_86();
		0xFFEC;
		calle();
		Func097F(0xFFEC, "@Pig!@", 0x0002);
		Func097F(0xFE9C, "@Ouch!@", 0x0008);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x55, 0x07D2, 0x53, 0x34, 0x27, 0x0002, 0x66, 0x27, 0x0002, 0x67, 0x58, 0x007F, 0x27, 0x0004, 0x61, 0x27, 0x0008, 0x55, 0x00E6, 0x0000]);
		UI_set_npc_id_BD(0xFFEC, 0x0011);
		abrt();
	labelFunc00E6_0912:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0004)) goto labelFunc00E6_0A9C;
		UI_set_npc_id_BD(0xFFEC, 0x0005);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		if(!UI_is_pc_female_6F()) goto labelFunc00E6_0946;
		UcMessage("\"To be blunt, there is something uncommonly... erotic about thee. I am most attracted to thee, woman.\"");
		UcSay;
		goto labelFunc00E6_094A;
	labelFunc00E6_0946:
		UcMessage("\"To know that thou art a Mage, yet to see that thou art so manly -- this is most uncommon in Moonshade!\"");
		UcSay;
	labelFunc00E6_094A:
		UcMessage("\"Thou hast come to learn spells, but I can teach thee some true magic...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc00E6_095A;
		UcMessage("\"I could die to be taken into thy brawny arms!\"");
		UcSay;
	labelFunc00E6_095A:
		UcMessage("\"Wouldst thou kiss me, ");
		UcMessage(var0003);
		UcMessage("?\"");
		UcSay;
		var000E = ["yes", "no"];
		if(!UI_is_pc_female_6F()) goto labelFunc00E6_0981;
		var000E = (var000E & "Of course not!");
	labelFunc00E6_0981:
		var000F = Func0956(var000E);
		if(!(var000F == "yes")) goto labelFunc00E6_09DF;
		UI_end_conversation_86();
		0xFFEC;
		calle();
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x55, 0x07D2, 0x53, 0x34, 0x53, 0x34, 0x27, 0x0002, 0x68, 0x58, 0x0024, 0x61, 0x27, 0x0001, 0x62, 0x27, 0x0004, 0x55, 0x00E6, 0x0000]);
		goto labelFunc00E6_0A9B;
	labelFunc00E6_09DF:
		if(!(var000F == "no")) goto labelFunc00E6_0A57;
		UI_end_conversation_86();
		0xFFEC;
		calle();
		Func097F(0xFFEC, "@Oh!@", 0x0002);
		Func097F(0xFE9C, "@Ouch!@", 0x0008);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x55, 0x07D2, 0x53, 0x34, 0x27, 0x0002, 0x66, 0x27, 0x0002, 0x67, 0x58, 0x007F, 0x27, 0x0004, 0x61, 0x27, 0x0008, 0x55, 0x00E6, 0x0000]);
		UI_set_npc_id_BD(0xFFEC, 0x0011);
		goto labelFunc00E6_0A9B;
	labelFunc00E6_0A57:
		UcMessage("\"Thou dost disappoint me. I had hoped that thou wouldst be more receptive...\"");
		UcSay;
		UI_end_conversation_86();
		UI_set_npc_id_BD(0xFFEC, 0x0011);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x52, "@Oh, well...@", 0x59, 0x0002, 0x27, 0x0008, 0x55, 0x00E6, 0x0000]);
		Func097F(0xFE9C, "@Sorry...@", 0x0005);
	labelFunc00E6_0A9B:
		abrt();
	labelFunc00E6_0A9C:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0003)) goto labelFunc00E6_0D4B;
		UI_set_npc_id_BD(0xFFEC, 0x0004);
		var000E = UI_create_new_object_2C(0x011D);
		if(!var000E) goto labelFunc00E6_0AEB;
		UI_set_item_frame_1B(var000E, 0x0005);
		UI_clear_item_flag_A5(var000E, 0x0012);
		var000E = UI_update_last_created_2F([0x097F, 0x0744, 0x0002]);
	labelFunc00E6_0AEB:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		UcMessage("\"I feel so comfortable around thee. It is as though we have known each other before -- perhaps in some other existence?\"");
		UcSay;
		UcMessage("\"Do not be formal with me, ");
		UcMessage(var0003);
		UcMessage(". Please, come join me here by the pool.\"");
		UcSay;
		var000F = Func0956(["yes", "no", "About those spells..."]);
		if(!(var000F == "About those spells...")) goto labelFunc00E6_0C03;
		UcMessage("\"Why art thou in such a rush? In Moonshade, we know to mix pleasure with business.\"");
		UcSay;
		UcMessage("\"I am sure that there is time for us to know each other better, before this matter of the spells must be conducted.\"");
		UcSay;
		UcMessage("\"Thou shouldst learn to relax.\"");
		UcSay;
		UI_end_conversation_86();
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0009, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0015, (var0009[0x0001] + 0x0004), (var0009[0x0002] + 0x0004), 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFE9C, "@Yow!@", 0x0000);
		UI_play_sound_effect_16(0x0039);
		UI_play_sound_effect_16(0x0028);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0980, 0x0748, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), [0x00E6, 0x0000], false);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6F, 0x52, "@Vex Veni Nox!@", 0x62, 0x2B, 0x0002, 0x27, 0x0004, 0x55, 0x07D2, 0x27, 0x0004, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_0C03:
		if(!(var000F == "yes")) goto labelFunc00E6_0C72;
		UI_end_conversation_86();
		Func097F(0xFFEC, "@Do not be shy with me...@", 0x0000);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0980, 0x0748, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), [0x00E6, 0x0000], false);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x2B, 0x0002, 0x27, 0x0004, 0x55, 0x07D2, 0x27, 0x0004, 0x55, 0x00E6, 0x0000]);
		goto labelFunc00E6_0D4A;
	labelFunc00E6_0C72:
		UcMessage("\"Ah, but thou art so shy! Perhaps I can encourage thee to join me, by use of a little spell...\"");
		UcSay;
		UI_end_conversation_86();
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0009, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0015, (var0009[0x0001] + 0x0004), (var0009[0x0002] + 0x0004), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		UI_play_sound_effect_16(0x0028);
		Func097F(0xFE9C, "@Hey!@", 0x0000);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0980, 0x0748, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), [0x00E6, 0x0000], false);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6F, 0x52, "@Vex Veni Nox!@", 0x62, 0x2B, 0x0002, 0x27, 0x0004, 0x55, 0x07D2, 0x27, 0x0004, 0x55, 0x00E6, 0x0000]);
		abrt();
	labelFunc00E6_0D4A:
		abrt();
	labelFunc00E6_0D4B:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0002)) goto labelFunc00E6_0DFA;
		UI_set_npc_id_BD(0xFFEC, 0x0003);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		UcMessage("\"I am so glad that thou hast met me here, sweet Avatar. I find strangers...\"");
		UcSay;
		UI_end_conversation_86();
		var000E = UI_find_nearby_41(item, 0x011D, 0x0005, 0x0000);
		enum();
	labelFunc00E6_0D8B:
		for (var000F in var000E with var0014 to var0015 atend labelFunc00E6_0DAE);
		if(!(UI_get_item_frame_1A(var000F) == 0x0005)) goto labelFunc00E6_0DAB;
		UI_remove_item_84(var000E);
	labelFunc00E6_0DAB:
		goto labelFunc00E6_0D8B;
	labelFunc00E6_0DAE:
		Func097F(0xFFEC, "@...appealing...@", 0x0000);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x68, 0x58, 0x000B, 0x62, 0x27, 0x0002, 0x0B, 0xFFFA, 0x0003, 0x27, 0x0002, 0x55, 0x07D2, 0x27, 0x0002, 0x55, 0x00E6, 0x0000], 0x0005);
		abrt();
	labelFunc00E6_0DFA:
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0001)) goto labelFunc00E6_0E45;
		var000E = ["@I love the night...@", "@so quiet...@", "@so dark...@"];
		Func094F(0xFFEC, var000E);
		UI_si_path_run_usecode_C1(0xFFEC, [0x0980, 0x0746, 0x0000], 0x000D, item, [0x00E6, 0x0000], false);
		abrt();
		goto labelFunc00E6_1170;
	labelFunc00E6_0E45:
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		Func09AC(0xFFEC, Dupre, 0x0000, 0x000A);
		UI_set_new_schedules_B6(0xFFEB, 0x0000, 0x000A, [0x0986, 0x0766]);
		UI_run_schedule_B7(0xFFEB);
		UI_clear_item_flag_A5(0xFFEB, 0x0001);
		Func097F(0xFFEB, "@Tar gorlfog!@", 0x0003);
		if(!((var000C < 0x000F) && ((!UI_npc_nearby_3A(Iolo)) && ((!UI_npc_nearby_3A(Dupre)) && ((!UI_npc_nearby_3A(Shamino)) && (!UI_npc_nearby_3A(0xFFDE))))))) goto labelFunc00E6_0F06;
		UcMessage("\"I am so glad that thou hast agreed to meet me here.\"");
		UcSay;
		UI_play_music_39(0x001F, Func09A0(0x0005, 0x0001));
		UI_set_npc_id_BD(0xFFEC, 0x0001);
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x55, 0x00E6, 0x0000]);
		abrt();
		goto labelFunc00E6_1170;
	labelFunc00E6_0F06:
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc00E6_1062;
		UcMessage("\"Thou didst come! I cannot express how pleased I am to see thee again, ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"But this matter of the spells, it must be discussed in private. Only Mages may hear the secrets which I am about to reveal.\"");
		UcSay;
		UcMessage("\"Wouldst thou please ask thy minions to depart?\"");
		UcSay;
		if(!Func0955()) goto labelFunc00E6_104E;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_play_music_39(0x001F, Func09A0(0x0005, 0x0001));
		var0016 = Func0992(0x0001, "@Um, I think I will wait outside...@", 0x0000, false);
		UI_end_conversation_86();
		var000E = Func098D();
		var0017 = [];
		enum();
	labelFunc00E6_0F68:
		for (var000F in var000E with var0018 to var0019 atend labelFunc00E6_0F8A);
		if(!UI_npc_nearby_3A(var000F)) goto labelFunc00E6_0F87;
		var0017 = (var0017 & var000F);
	labelFunc00E6_0F87:
		goto labelFunc00E6_0F68;
	labelFunc00E6_0F8A:
		var0017 = (var0017 & UI_get_party_list2_AA());
		var0017 = Func0988(UI_get_npc_object_23(0xFE9C), var0017);
		var0017 = Func0988(0xFFE4, var0017);
		var0017 = Func0988(0xFFE6, var0017);
		var0017 = Func0988(0xFF58, var0017);
		enum();
	labelFunc00E6_0FCA:
		for (var000F in var0017 with var001A to var001B atend labelFunc00E6_1003);
		if(!UI_get_item_flag_A3(var000F, 0x0006)) goto labelFunc00E6_0FE9;
		UI_remove_from_party_27(var000F);
	labelFunc00E6_0FE9:
		UI_set_new_schedules_B6(var000F, 0x0000, 0x000A, var0009);
		UI_run_schedule_B7(var000F);
		goto labelFunc00E6_0FCA;
	labelFunc00E6_1003:
		Func097F(var000F, "@Have fun...@", 0x0000);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x55, 0x00E6, 0x0000], 0x000A);
		var000E = UI_set_item_quality_1D(Func09A0(0x0005, 0x0003), UI_get_npc_id_BC(0xFFEC));
		UI_set_npc_id_BD(0xFFEC, 0x0001);
		abrt();
		goto labelFunc00E6_105F;
	labelFunc00E6_104E:
		UcMessage("\"Then I can be of no use to thee.\"");
		UcSay;
		Func097F(0xFFEC, "@Go!@", 0x0000);
		abrt();
	labelFunc00E6_105F:
		goto labelFunc00E6_1170;
	labelFunc00E6_1062:
		UcMessage("\"But we must wait, darling, until we are alone...\"");
		UcSay;
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		Func097F(0xFFEC, "@Wait...@", 0x0000);
		var000E = Func098D();
		var0017 = [];
		enum();
	labelFunc00E6_108D:
		for (var000F in var000E with var001C to var001D atend labelFunc00E6_10AF);
		if(!UI_npc_nearby_3A(var000F)) goto labelFunc00E6_10AC;
		var0017 = (var0017 & var000F);
	labelFunc00E6_10AC:
		goto labelFunc00E6_108D;
	labelFunc00E6_10AF:
		var0017 = (var0017 & UI_get_party_list2_AA());
		var0017 = Func0988(UI_get_npc_object_23(0xFE9C), var0017);
		var0017 = Func0988(0xFFE4, var0017);
		var0017 = Func0988(0xFFE6, var0017);
		var0017 = Func0988(0xFF58, var0017);
		enum();
	labelFunc00E6_10EF:
		for (var000F in var0017 with var001E to var001F atend labelFunc00E6_1128);
		if(!UI_get_item_flag_A3(var000F, 0x0006)) goto labelFunc00E6_110E;
		UI_remove_from_party_27(var000F);
	labelFunc00E6_110E:
		UI_set_new_schedules_B6(var000F, 0x0000, 0x000A, var0009);
		UI_run_schedule_B7(var000F);
		goto labelFunc00E6_10EF;
	labelFunc00E6_1128:
		Func097F(var000F, "@Have fun...@", 0x0000);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x55, 0x00E6, 0x0000], 0x000A);
		var000E = UI_set_item_quality_1D(Func09A0(0x0005, 0x0003), UI_get_npc_id_BC(0xFFEC));
		UI_set_npc_id_BD(0xFFEC, 0x0001);
		abrt();
	labelFunc00E6_1170:
		if(!(event == 0x000E)) goto labelFunc00E6_1330;
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x000D) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_11D0;
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFEC, [0x0975, 0x0747, 0x0000]);
		event = 0x000D;
	labelFunc00E6_11D0:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x000C) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc00E6_1228;
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFE9C, [0x0975, 0x0749, 0x0000]);
		event = 0x000D;
	labelFunc00E6_1228:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0006) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_1280;
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFEC, [0x097B, 0x0743, 0x0000]);
		event = 0x000D;
	labelFunc00E6_1280:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0004) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc00E6_12D8;
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFE9C, [0x0980, 0x0748, 0x0000]);
		event = 0x000D;
	labelFunc00E6_12D8:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0001) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_1330;
		var0009 = UI_get_object_position_20(0xFFEC);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFEC, [0x0980, 0x0746, 0x0000]);
		event = 0x000D;
	labelFunc00E6_1330:
		if(!(event == 0x000D)) goto labelFunc00E6_15C7;
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x000D) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_13C8;
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x27, 0x0006, 0x52, "@Kiss me again!@", 0x59, 0x0006, 0x27, 0x000A, 0x53, 0x34, 0x53, 0x34, 0x27, 0x0002, 0x68, 0x58, 0x0024, 0x61, 0x27, 0x0001, 0x62, 0x27, 0x0004, 0x59, 0x0006, 0x6F, 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		var000E = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000E, 0x52, "@Certainly!@", 0x59, 0x0000]);
		abrt();
	labelFunc00E6_13C8:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x000C) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc00E6_144F;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0002);
		0xFFEC;
		calle();
		UcMessage("\"But wait! Thou hast forgotten this...\"");
		UcSay;
		UI_end_conversation_86();
		var000E = UI_projectile_effect_4F(0xFFEC, 0xFE9C, 0x0118);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x70, 0x6A, 0x7A, 0x61, 0x27, 0x0004, 0x55, 0x00E6, 0x0000], 0x0004);
		var000E = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x61, 0x59, 0x0002, 0x52, "@Huh?@"]);
		abrt();
	labelFunc00E6_144F:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0006) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_14CE;
		0xFFEC;
		calle();
		var0020 = UI_get_object_position_20(0xFFEC);
		UI_set_polymorph_B3(0xFFEC, 0x00EF);
		UI_sprite_effect_68(0x0032, var0020[0x0001], var0020[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0053);
		var000E = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x55, 0x07D2, 0x6F, 0x27, 0x0002, 0x55, 0x00E6, 0x0000], 0x0012);
		abrt();
	labelFunc00E6_14CE:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0004) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc00E6_14ED;
		0xFFEC;
		calle();
		abrt();
	labelFunc00E6_14ED:
		if(!((UI_get_npc_id_BC(0xFFEC) == 0x0001) && (item == UI_get_npc_object_23(0xFFEC)))) goto labelFunc00E6_15C7;
		var000E = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x59, 0x0002, 0x67, 0x27, 0x000C, 0x59, 0x0002, 0x6C, 0x6D, 0x27, 0x000C, 0x6D, 0x6C, 0x61, 0x27, 0x0008, 0x59, 0x0000, 0x27, 0x0004, 0x64, 0x27, 0x0002, 0x55, 0x00E6, 0x0000]);
		UI_set_npc_id_BD(0xFFEC, 0x0002);
		0xFFEC;
		calle();
		var000E = UI_create_new_object2_2D(0x01FD, [0x0982, 0x0746, 0x0000]);
		UI_sprite_effect_68(0x0015, 0x0982, 0x0746, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		if(!var000E) goto labelFunc00E6_15BC;
		UI_set_item_frame_1B(var000E, 0x0000);
		UI_set_schedule_type_25(var000E, 0x0011);
		UI_clear_item_flag_A5(var000E, 0x0012);
	labelFunc00E6_15BC:
		UI_set_schedule_type_25(0xFFEC, 0x000F);
		abrt();
	labelFunc00E6_15C7:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func00F3 0xF3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc00F3_025A;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_item_frame_1A(item);
	if(!(var0001 == 0x0000)) goto labelFunc00F3_0031;
	UI_play_sound_effect_16(0x006A);
	UI_set_item_frame_1B(item, 0x0001);
	labelFunc00F3_0031:
		if(!(var0001 == 0x0001)) goto labelFunc00F3_004A;
		UI_play_sound_effect_16(0x0069);
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc00F3_004A:
		if(!((var0001 == 0x0004) && (var0000 == 0x0000))) goto labelFunc00F3_006B;
		UI_play_sound_effect_16(0x006A);
		UI_set_item_frame_1B(item, 0x0005);
	labelFunc00F3_006B:
		if(!(var0001 == 0x0005)) goto labelFunc00F3_0084;
		UI_play_sound_effect_16(0x0069);
		UI_set_item_frame_1B(item, 0x0004);
	labelFunc00F3_0084:
		if(!((var0001 == 0x0004) && (var0000 == 0x0001))) goto labelFunc00F3_00A5;
		UI_play_sound_effect_16(0x006A);
		UI_set_item_frame_1B(item, 0x0006);
	labelFunc00F3_00A5:
		if(!(var0001 == 0x0006)) goto labelFunc00F3_00BE;
		UI_play_sound_effect_16(0x0069);
		UI_set_item_frame_1B(item, 0x0004);
	labelFunc00F3_00BE:
		if(!((var0001 == 0x0004) && (var0000 == 0x0002))) goto labelFunc00F3_0138;
		UI_set_item_frame_1B(item, 0x0005);
		UI_play_sound_effect_16(0x006A);
		var0002 = UI_set_item_quality_1D(item, 0x0000);
		var0003 = UI_get_object_position_20(item);
		var0003[0x0001] = (var0003[0x0001] + 0x0002);
		var0004 = UI_create_new_object2_2D(0x01EE, var0003);
		Func09AD(var0004);
		UI_obj_sprite_effect_91(var0004, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x007B);
	labelFunc00F3_0138:
		if(!((var0001 == 0x0004) && (var0000 == 0x0003))) goto labelFunc00F3_01CA;
		if(!gflags[0004]) goto labelFunc00F3_01BB;
		UI_set_item_frame_1B(item, 0x0005);
		UI_play_sound_effect_16(0x006A);
		var0002 = UI_set_item_quality_1D(item, 0x0000);
		var0003 = UI_get_object_position_20(item);
		var0003[0x0001] = (var0003[0x0001] + 0x0002);
		var0004 = UI_create_new_object2_2D(0x01EE, var0003);
		Func09AD(var0004);
		UI_obj_sprite_effect_91(var0004, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x007B);
		goto labelFunc00F3_01CA;
	labelFunc00F3_01BB:
		UI_play_sound_effect_16(0x006A);
		UI_set_item_frame_1B(item, 0x0006);
	labelFunc00F3_01CA:
		if(!((var0001 == 0x0004) && (var0000 == 0x0005))) goto labelFunc00F3_025A;
		if(!gflags[0004]) goto labelFunc00F3_024B;
		UI_set_item_frame_1B(item, 0x0005);
		UI_play_sound_effect_16(0x006A);
		var0002 = UI_set_item_quality_1D(item, 0x0000);
		var0003 = UI_get_object_position_20(item);
		var0003[0x0001] = (var0003[0x0001] + 0x0002);
		var0004 = UI_create_new_object2_2D(0x0175, var0003);
		Func09AD(var0004);
		UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0052);
		goto labelFunc00F3_025A;
	labelFunc00F3_024B:
		UI_play_sound_effect_16(0x006A);
		UI_set_item_frame_1B(item, 0x0006);
	labelFunc00F3_025A:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0902 0x902 (var var0000, var var0001);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);

Func00F6 0xF6 (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc00F6_000F;
	exit2();
	labelFunc00F6_000F:
		var0000 = Func0906(item);
		if(!(var0000 == 0x0001)) goto labelFunc00F6_0067;
		if(!Func0908(item, 0x01D7, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc00F6_0064;
		Func0902(item, 0x00F6);
		Func0909(item, 0x0204, 0x0001, 0x0002, 0x00E1, 0x0000, 0x0000, 0x0003, 0x0001);
		UI_play_sound_effect2_A1(0x0069, item);
		goto labelFunc00F6_0067;
	labelFunc00F6_0064:
		Func0903();
	labelFunc00F6_0067:
		if(!(var0000 == 0x0000)) goto labelFunc00F6_00B8;
		if(!Func0908(item, 0x01D7, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc00F6_00B5;
		Func0902(item, 0x00F6);
		Func0909(item, 0x0204, 0x0000, 0x0001, 0x00E1, 0x0001, Iolo, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x006A, item);
		goto labelFunc00F6_00B8;
	labelFunc00F6_00B5:
		Func0903();
	labelFunc00F6_00B8:
		if(!(var0000 == 0x0002)) goto labelFunc00F6_00C6;
		Func0904(item);
	labelFunc00F6_00C6:
		if(!(var0000 == 0x0003)) goto labelFunc00F6_00D4;
		Func0905(item);
	labelFunc00F6_00D4:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func08AC 0x8AC (var var0000);

Func00F9 0xF9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0953();
	var0001 = Func08AC(false);
	var0002 = "his";
	if(!UI_is_pc_female_6F()) goto labelFunc00F9_0020;
	var0002 = "her";
	labelFunc00F9_0020:
		var0003 = false;
		if(!(event == 0x0002)) goto labelFunc00F9_01D6;
		UI_show_npc_face0_05(0xFEFB, 0x0000);
		UcMessage("\"What dost thou wish, Master?\"");
		UcSay;
		if(!gflags[0171]) goto labelFunc00F9_004D;
		UI_add_answer_0C(["revelation", "change revelation"]);
	labelFunc00F9_004D:
		if(!(gflags[0172] && ((!gflags[0004]) && (!gflags[0171])))) goto labelFunc00F9_008C;
		if(!((!gflags[016E]) && (!gflags[016F]))) goto labelFunc00F9_0072;
		UcMessage("\"Forgive me for denouncing thee, stranger. I was under compulsion from the Great Captains, and had no choice.\"");
		UcSay;
		UcMessage("\"Now that Alyssand and Jorvin have unmasked the true villains, I can once again speak the Truth. Go in peace, stranger. I wish thee well in thy quest.\"");
		UcSay;
		abrt();
	labelFunc00F9_0072:
		if(!gflags[016E]) goto labelFunc00F9_007D;
		UcMessage("\"Thy friend hath been spared, stranger. Go thy way... I must attend to the wishes of my masters.\"");
		UcSay;
		abrt();
	labelFunc00F9_007D:
		if(!gflags[016F]) goto labelFunc00F9_008C;
		UcMessage("\"I thank thee for freeing me from the yoke of the Great Captains, stranger. Thy friend is safe and I may once again speak the Truth.\"");
		UcSay;
		UcMessage("\"Go in peace, stranger. I wish thee well on thy quest.\"");
		UcSay;
		abrt();
	labelFunc00F9_008C:
		if(!gflags[0004]) goto labelFunc00F9_009F;
		UcMessage("\"It saddens me to speak the Truth to thee, stranger.\"");
		UcSay;
		UcMessage("\"Thy former companion, Iolo, hath fallen prey to the imbalance that plagues this land. He hath ripped Beauty from the soul of Fawn and driven it into the wilds.\"");
		UcSay;
		UcMessage("\"Seek out the one whose Beauty lies deep within. He will set thee upon the path to the lost soul of Fawn.\"");
		UcSay;
		abrt();
	labelFunc00F9_009F:
		UI_add_answer_0C("bye");
	labelFunc00F9_00A6:
		UcAsk;
		cmps("revelation");
		if(!(!var0003)) goto labelFunc00F9_00C0;
		UcMessage("\"There will be a Grand Trial soon. At the end of the proceedings, I shall proclaim the verdict.\"");
		UcSay;
		var0003 = true;
	labelFunc00F9_00C0:
		UcMessage("\"I have been told to say the following...\"");
		UcSay;
		if(!gflags[016E]) goto labelFunc00F9_00E4;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(" is innocent! ");
		UcMessage(var0000);
		UcMessage(" and ");
		UcMessage(var0002);
		UcMessage(" companions have no wish to destroy Beauty!\"");
		UcSay;
		UcMessage("\"Free them at once!\"");
		UcSay;
	labelFunc00F9_00E4:
		if(!gflags[016F]) goto labelFunc00F9_00F8;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(" is innocent! Set him and his companions free!\"");
		UcSay;
		UcMessage("\"The true criminals are Priestess Kylista and Great Captain Voldin, who have conspired to convict this innocent man!\"");
		UcSay;
	labelFunc00F9_00F8:
		if(!(!(gflags[016E] || gflags[016F]))) goto labelFunc00F9_0117;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(" is guilty of associating with Daemons to destroy our Beauty! The fiend, ");
		UcMessage(var0000);
		UcMessage(", is also guilty!\"");
		UcSay;
		UcMessage("\"Such offense to Beauty cannot go unpunished... The stain of their presence must be washed away with their blood.\"");
		UcSay;
	labelFunc00F9_0117:
		cmps("change revelation");
		UcMessage("\"I shall proclaim whatever thou dost instruct me to proclaim. What dost thou wish me to say regarding the accused traitor, Master?\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["He is innocent.", "The trial is corrupted.", "Make no change."]);
	labelFunc00F9_0137:
		cmps("Make no change.");
		UcMessage("\"I shall do as thou hast instructed.\"");
		UcSay;
		gflags[016E] = false;
		gflags[016F] = false;
		UI_pop_answers_0F();
	labelFunc00F9_014F:
		cmps("He is innocent.");
		UcMessage("\"I will say that ");
		UcMessage(var0001);
		UcMessage(" is innocent.\"");
		UcSay;
		gflags[016E] = true;
		gflags[016F] = false;
		UI_pop_answers_0F();
	labelFunc00F9_016D:
		cmps("The trial is corrupted.");
		UcMessage("\"I will say that the trial is corrupted, and I shall denounce the true traitors.\"");
		UcSay;
		UcMessage("\"I have waited many years for this moment. I thank thee, Master!\"");
		UcSay;
		gflags[016F] = true;
		gflags[016E] = false;
		UI_pop_answers_0F();
		UI_add_answer_0C("many years");
	labelFunc00F9_0190:
		cmps("many years");
		UI_remove_answer_0D("many years");
		UcMessage("\"I have been the prisoner of the Great Captains for many generations, stranger.\"");
		UcSay;
		UcMessage("\"I do not know who thou art, but I am glad thou hast come! At last, I can speak the Truth.\"");
		UcSay;
	labelFunc00F9_01A7:
		cmps("nothing");
		UcMessage("\"As thou wishest. I shall proclaim the verdict which I was previously instructed to give.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc00F9_01B7:
		cmps("bye");
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@'Tis my duty.@"]);
		abrt();
	labelFunc00F9_01D2:
		goto labelFunc00F9_00A6;
	labelFunc00F9_01D5:
		end_conv();
	labelFunc00F9_01D6:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0994 0x994 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func084D 0x84D (var var0000, var var0001);
extern var Func084E 0x84E (var var0000, var var0001);

Func00FA 0xFA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func09A0(0x0005, 0x0001);
	var0001 = Func09A0(0x0005, 0x0002);
	if(!((item == var0000) || (item == var0001))) goto labelFunc00FA_02BE;
	var0002 = [0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2B];
	if(!gflags[0270]) goto labelFunc00FA_004B;
	var0002 = (var0002 & 0xFF29);
	labelFunc00FA_004B:
		var0003 = (var0002 & [0xFF2A, 0xFF30, 0xFF2E]);
		var0004 = UI_get_item_quality_1C(var0000);
		if(!(item == var0000)) goto labelFunc00FA_01EA;
		if(!(Func0994() != 0x0002)) goto labelFunc00FA_007B;
		abrt();
	labelFunc00FA_007B:
		if(!(var0004 == UI_get_item_quality_1C(item))) goto labelFunc00FA_0094;
		var0004 = UI_get_random_00(0x0009);
		goto labelFunc00FA_007B;
	labelFunc00FA_0094:
		if(!(gflags[00D4] && (gflags[00D5] && (gflags[00D3] && ((!UI_get_item_flag_A3(Shamino, 0x001E)) && ((!UI_get_item_flag_A3(Iolo, 0x001E)) && ((!UI_get_item_flag_A3(Dupre, 0x001E)) && (!UI_get_item_flag_A3(0xFF29, 0x001C))))))))) goto labelFunc00FA_00D8;
		var0004 = 0x000A;
	labelFunc00FA_00D8:
		var0005 = UI_set_item_quality_1D(item, var0004);
		gflags[0271] = false;
		var0005 = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0003), [0x23, 0x58, 0x0006, 0x27, 0x0007, 0x0B, 0xFFFC, var0004]);
		if(!(var0004 == 0x000A)) goto labelFunc00FA_0133;
		var0006 = ["@The time hath come!@", "@The sacred bells!@", "@Xenka comes!@", "@What joy!@", "@To the chapel!@", "@The prophetess comes!@"];
		goto labelFunc00FA_016C;
	labelFunc00FA_0133:
		if(!gflags[0270]) goto labelFunc00FA_0154;
		var0006 = ["@The bells!@", "@The end is near!@", "@It is time!@", "@Hasten!@", "@Quickly!@", "@Hear the bells!@"];
		goto labelFunc00FA_016C;
	labelFunc00FA_0154:
		var0006 = ["@The bells!@", "@Xenka calls!@", "@It is time!@", "@Hasten!@", "@Quickly!@", "@Hear the bells!@"];
	labelFunc00FA_016C:
		enum();
	labelFunc00FA_016D:
		for (var0009 in var0002 with var0007 to var0008 atend labelFunc00FA_0196);
		Func097F(var0009, var0006[UI_get_random_00(UI_get_array_size_73(var0006))], UI_get_random_00(0x0014));
		goto labelFunc00FA_016D;
	labelFunc00FA_0196:
		enum();
	labelFunc00FA_0197:
		for (var0009 in var0003 with var000A to var000B atend labelFunc00FA_01CB);
		var000C = UI_get_schedule_type_24(var0009);
		if(!((var000C != 0x000F) && (var000C != 0x0003))) goto labelFunc00FA_01C8;
		UI_set_schedule_type_25(var0009, 0x000C);
	labelFunc00FA_01C8:
		goto labelFunc00FA_0197;
	labelFunc00FA_01CB:
		gflags[0272] = false;
		var0005 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x00FA, 0x0000], 0x0014);
		abrt();
	labelFunc00FA_01EA:
		if(!(item == var0001)) goto labelFunc00FA_02BE;
		enum();
	labelFunc00FA_01F3:
		for (var0009 in var0003 with var000D to var000E atend labelFunc00FA_026F);
		var000C = UI_get_schedule_type_24(var0009);
		if(!(((var000C != 0x000F) && ((var000C != 0x0003) && (var000C != Func084D(var0009, var0004)))) || (var000C == 0x000C))) goto labelFunc00FA_0256;
		UI_set_new_schedules_B6(var0009, 0x0000, Func084D(var0009, var0004), Func084E(var0009, var0004));
		UI_run_schedule_B7(var0009);
		goto labelFunc00FA_026C;
	labelFunc00FA_0256:
		if(!((var000C == 0x0003) || (var000C == 0x000F))) goto labelFunc00FA_026C;
		gflags[0272] = true;
	labelFunc00FA_026C:
		goto labelFunc00FA_01F3;
	labelFunc00FA_026F:
		if(!gflags[0272]) goto labelFunc00FA_028F;
		var0005 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x00FA, 0x0000], 0x0014);
	labelFunc00FA_028F:
		if(!(!gflags[0271])) goto labelFunc00FA_02BE;
		gflags[0271] = true;
		if(!(var0004 != 0x000A)) goto labelFunc00FA_02BE;
		var0005 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x00FA, 0x0000], 0x03E8);
	labelFunc00FA_02BE:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern var Func0890 0x890 ();
extern Func0918 0x918 (var var0000);
extern var Func08E7 0x8E7 (var var0000);
extern Func0917 0x917 (var var0000, var var0001);

Func00FB 0xFB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event != 0x0001)) goto labelFunc00FB_0009;
	exit2();
	labelFunc00FB_0009:
		if(!UI_in_gump_mode_9B()) goto labelFunc00FB_0014;
		UI_close_gumps_98();
	labelFunc00FB_0014:
		if(!UI_get_barge_6D(item)) goto labelFunc00FB_00F5;
		var0000 = UI_find_nearby_41(item, 0x00C7, 0x0005, 0x0000);
		var0001 = UI_find_nearby_41(item, 0x00FB, 0x0005, 0x0000);
		if(!(!in(item, var0001))) goto labelFunc00FB_004F;
		var0001 = (var0001 & item);
	labelFunc00FB_004F:
		if(!(!UI_get_item_flag_A3(0xFE9C, 0x000A))) goto labelFunc00FB_00D4;
		var0002 = UI_get_item_quality_1C(item);
		var0003 = UI_count_objects_31(0xFE9B, 0x031D, var0002, 0xFE99);
		if(!(((!var0003) && (!gflags[0005])) && (!((var0002 == 0x0001) && gflags[00EC])))) goto labelFunc00FB_00B0;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) == 0x0001)) goto labelFunc00FB_00A9;
		Func094A("@This vessel doth have an owner.@");
		goto labelFunc00FB_00AF;
	labelFunc00FB_00A9:
		Func094A("@We do not own this vessel.@");
	labelFunc00FB_00AF:
		exit2();
	labelFunc00FB_00B0:
		if(!Func0890()) goto labelFunc00FB_00BD;
		Func0918(item);
		goto labelFunc00FB_00D1;
	labelFunc00FB_00BD:
		var0004 = Func08E7(var0000[0x0001]);
		UI_set_item_flag_A4(item, 0x0014);
	labelFunc00FB_00D1:
		goto labelFunc00FB_00F5;
	labelFunc00FB_00D4:
		UI_clear_item_flag_A5(item, 0x0014);
		Func0917(var0001, 0x0000);
		UI_clear_item_flag_A5(item, 0x000A);
		UI_clear_item_flag_A5(item, 0x001A);
	labelFunc00FB_00F5:
		return;
}
// externs
extern Func0949 0x949 (var var0000);
extern Func0628 0x628 (var var0000);

Func0102 0x102 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0102_0022;
	if(!UI_in_usecode_8F(item)) goto labelFunc0102_001E;
	UI_halt_scheduled_71(item);
	Func0949("@'Tis about time!@");
	goto labelFunc0102_0022;
	labelFunc0102_001E:
		item;
		calle();
	labelFunc0102_0022:
		if(!(event == 0x000B)) goto labelFunc0102_00A5;
		var0000 = UI_get_object_position_20(item);
		var0000[0x0001] = (var0000[0x0001] - 0x0002);
		var0000[0x0002] = (var0000[0x0002] + 0x0001);
		var0001 = UI_get_cont_items_33(0xFE9C, 0x032A, 0xFE99, 0xFE99);
		if(!var0001) goto labelFunc0102_008F;
		var0002 = UI_set_last_created_2E(var0001);
		if(!var0002) goto labelFunc0102_008F;
		UI_set_item_frame_1B(var0001, 0x0004);
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc0102_008F:
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0000, 0x01, 0x6C]);
	labelFunc0102_00A5:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0103 0x103 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0994();
	var0001 = UI_get_npc_id_BC(item);
	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = Func0953();
	var0005 = false;
	if(!((event == 0x0007) && (var0001 == 0x0001))) goto labelFunc0103_004C;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0032, 0x0000);
	gflags[0120] = true;
	labelFunc0103_004C:
		if(!(event == 0x0001)) goto labelFunc0103_0074;
		UI_item_say_4D(0xFE9C, "@Ranger!@");
		item;
		calle();
		Func097F(item, "@Yes?@", 0x0002);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc0103_0074:
		if(!(event == 0x0000)) goto labelFunc0103_00FC;
		if(!(var0001 != 0x0001)) goto labelFunc0103_00FC;
		var0006 = UI_get_random_00(0x0006);
		if(!(var0006 == 0x0001)) goto labelFunc0103_00A2;
		UI_item_say_4D(item, "@Try our wine!@");
	labelFunc0103_00A2:
		if(!(var0006 == 0x0002)) goto labelFunc0103_00B4;
		UI_item_say_4D(item, "@Yes, ma'am! Back to work!@");
	labelFunc0103_00B4:
		if(!(var0006 == 0x0003)) goto labelFunc0103_00C6;
		UI_item_say_4D(item, "@Work, work, work...@");
	labelFunc0103_00C6:
		if(!(var0006 == 0x0004)) goto labelFunc0103_00D8;
		UI_item_say_4D(item, "@What art thou doing?@");
	labelFunc0103_00D8:
		if(!(var0006 == 0x0005)) goto labelFunc0103_00EA;
		UI_item_say_4D(item, "@Come and see the wine press!@");
	labelFunc0103_00EA:
		if(!(var0006 == 0x0006)) goto labelFunc0103_00FC;
		UI_item_say_4D(item, "@Magic wine!@");
	labelFunc0103_00FC:
		if(!(event == 0x0009)) goto labelFunc0103_0732;
		if(!(var0001 == 0x0000)) goto labelFunc0103_0407;
		UI_set_schedule_type_25(item, 0x0007);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEEE, 0x0000);
		UcMessage("\"How may I help thee? As a Ranger, I must help thee in any way that I can.\"");
		UcSay;
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc0103_013B;
		UI_add_answer_0C("strange wine");
	labelFunc0103_013B:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0103_0154;
		UI_add_answer_0C("brown bottle");
	labelFunc0103_0154:
		if(!(gflags[0118] && (!gflags[029C]))) goto labelFunc0103_0166;
		UI_add_answer_0C("mystery shield");
	labelFunc0103_0166:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0103_017F;
		UI_add_answer_0C("kidnap");
	labelFunc0103_017F:
		UI_add_answer_0C(["Ranger", "bye"]);
	labelFunc0103_018C:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Thou shouldst report such a crime as this to Julia. She can aid thee.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFE9)) goto labelFunc0103_01C2;
		UI_set_schedule_type_25(0xFFE9, 0x0003);
		Func097F(0xFFE9, "@Yes?@", 0x0000);
	labelFunc0103_01C2:
		cmps("Ranger");
		UI_remove_answer_0D("Ranger");
		UcMessage("\"A Ranger is much like any other city guard, ");
		UcMessage(var0002);
		UcMessage(". It is our job to catch thieves, and stop fights. Nothing very exciting...\"");
		UcSay;
		UcMessage("\"...Until one of the Mages manages to destroy a section of town with his experiments. Then things become lively.\"");
		UcSay;
		UI_add_answer_0C(["Mage", "lively"]);
	labelFunc0103_01EC:
		cmps("Mage");
		UI_remove_answer_0D("Mage");
		UcMessage("\"Moonshade is the city of Mages, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Mages are very powerful, and many of them can do things that make my skin crawl! And oftimes their experiments escape and then the Rangers must step in and take control.\"");
		UcSay;
		UcMessage("\"But, 'tis my job... cleaning after the Mages.\"");
		UcSay;
		UI_add_answer_0C(["things", "escape"]);
	labelFunc0103_021A:
		cmps("things");
		UI_remove_answer_0D("things");
		UcMessage("\"I pretend I do not see half of what the Mages can do, ");
		UcMessage(var0002);
		UcMessage(". I find 'tis easier to keep my sanity that way.\"");
		UcSay;
		UcMessage("\"Some can summon fire or ice. Others can summon storms or daemons. And none of it I want to know about, to tell thee truth.\"");
		UcSay;
	labelFunc0103_0237:
		cmps("escape");
		UI_remove_answer_0D("escape");
		UcMessage("\"Either the mage tries a spell that is too advanced for him, or he simply loses concentration. I do not know.\"");
		UcSay;
		UcMessage("\"All I know is that suddenly we have people running through the streets trying to escape whatever the Mage was attempting to conjure...\"");
		UcSay;
		UcMessage("\"And 'tis no mean feat for us poor Rangers to overcome something that overpowered a Mage, I can tell thee!\"");
		UcSay;
	labelFunc0103_0252:
		cmps("lively");
		UI_remove_answer_0D("lively");
		UcMessage("\"Oh, yes! It might be as simple as putting out a fire and rebuilding a section or two of wall after.\"");
		UcSay;
		UcMessage("\"But sometimes 'tis far more dangerous... Like a dragon, or one of Rotoluncia's daemons, or somesuch. Never know from one day to the next what thou wilt have to face.\"");
		UcSay;
		UI_remove_answer_0D(["dragon", "daemon"]);
	labelFunc0103_0276:
		cmps("dragon");
		UI_remove_answer_0D("dragon");
		UcMessage("\"To be honest, I have never had to face one myself. But my commander remembers when she was a new Ranger, when the Strictures were newly in place. A Mage summoned a dragon that burned half of the city.\"");
		UcSay;
		UI_add_answer_0C("Strictures");
	labelFunc0103_0290:
		cmps("Strictures");
		UI_remove_answer_0D("Strictures");
		UcMessage("\"I cannot tell thee much about them... Not being a Mage and all. Perhaps thou couldst ask a Mage.\"");
		UcSay;
	labelFunc0103_02A3:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"Rotoluncia's forte is fire spells. So I suppose it follows that she would seek to summon daemons to her service.\"");
		UcSay;
		UcMessage("\"To be truthful, she hath not yet succeeded in binding a daemon. But it disturbs me to think that she might... and that I might have to face one some day.\"");
		UcSay;
	labelFunc0103_02BA:
		cmps("daemons");
		UI_remove_answer_0D("daemons");
		UcMessage("\"Everyone says that daemons come from the hot depths of the world. That they are foul creatures of flame and melted flesh.\"");
		UcSay;
		UcMessage("\"I hope never to find if it is true...\"");
		UcSay;
	labelFunc0103_02D1:
		cmps("strange wine");
		UI_remove_answer_0D("strange wine");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc0103_0302;
		UcMessage("\"It looks to be wine from our press, ");
		UcMessage(var0002);
		UcMessage(". But thou shouldst ask my commander, to be sure.\"");
		UcSay;
		goto labelFunc0103_030C;
	labelFunc0103_0302:
		UcMessage("\"'Tis true that we deal in wine, ");
		UcMessage(var0002);
		UcMessage(". But without seeing the bottle, I would not be able to help thee.\"");
		UcSay;
	labelFunc0103_030C:
		UI_add_answer_0C("commander");
	labelFunc0103_0313:
		cmps("commander");
		UI_remove_answer_0D("commander");
		UcMessage("\"Julia is our commander, ");
		UcMessage(var0002);
		UcMessage(". She's a stern woman, but worthy of thy respect.\"");
		UcSay;
		UcMessage("\"There are those that consider her a handsome woman, when her mouth is closed... If thou knowest what I mean.\"");
		UcSay;
		var0005 = true;
	labelFunc0103_0334:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"What an odd bottle! Who would bottle their wares in such an ugly container? I hope that whatever was inside is not as coarse as the bottle suggests.\"");
		UcSay;
		UcMessage("\"Our commander oversees the bottling of our wine, ");
		UcMessage(var0002);
		UcMessage(". Thou mightest ask if she knows who doth use such a bottle, but I would not stake much on it, if I were thee.\"");
		UcSay;
		if(!(var0005 == false)) goto labelFunc0103_0360;
		UI_add_answer_0C("commander");
	labelFunc0103_0360:
		cmps("mystery shield");
		UI_remove_answer_0D("mystery shield");
		UcMessage("\"It certainly is a fine looking piece of equipment, ");
		UcMessage(var0002);
		UcMessage(". I wish we had arms as nice.\"");
		UcSay;
		UcMessage("\"Thou shouldst ask Ernesto if he recognizes it. He is the arms expert among the Rangers.\"");
		UcSay;
		UcMessage("\"On a guess, I'd say it came from Monitor. Everyone knows that they practically sleep with weapons such as this.\"");
		UcSay;
		UI_add_answer_0C(["Ernesto", "Monitor"]);
	labelFunc0103_038E:
		cmps("Ernesto");
		UI_remove_answer_0D("Ernesto");
		UcMessage("\"Ernesto is our second in command, ");
		UcMessage(var0002);
		UcMessage(". Thou wilt find him somewhere around the wine press, I'll warrant.\"");
		UcSay;
		UI_add_answer_0C("wine press");
	labelFunc0103_03AE:
		cmps("wine press");
		UI_remove_answer_0D("wine press");
		UcMessage("\"One other thing that the Rangers do, ");
		UcMessage(var0002);
		UcMessage(", is produce the wine sold throughout Moonshade.\"");
		UcSay;
		UcMessage("\"Our wine press is very special. I'm certain that either Ernesto or the commander would be happy to show it to thee. We are all very proud of it.\"");
		UcSay;
	labelFunc0103_03CB:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"Monitor is on the mainland. 'Tis the city of warriors. That is why I thought the shield might be from there.\"");
		UcSay;
	labelFunc0103_03DE:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(item, "@Fare well!@", 0x0002);
		goto labelFunc0103_0406;
	labelFunc0103_0403:
		goto labelFunc0103_018C;
	labelFunc0103_0406:
		end_conv();
	labelFunc0103_0407:
		if(!(var0001 == 0x0001)) goto labelFunc0103_0732;
		UI_set_schedule_type_25(item, 0x0007);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEE7, 0x0000);
		UcMessage("\"My name is Ernesto the Ranger. How may I be of service, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc0103_0444;
		UI_add_answer_0C("slippers");
	labelFunc0103_0444:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc0103_0456;
		UI_add_answer_0C("strange wine");
	labelFunc0103_0456:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0103_046F;
		UI_add_answer_0C("brown bottle");
	labelFunc0103_046F:
		if(!(gflags[0118] && (!gflags[029C]))) goto labelFunc0103_0481;
		UI_add_answer_0C("mystery shield");
	labelFunc0103_0481:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0103_049A;
		UI_add_answer_0C("kidnap");
	labelFunc0103_049A:
		UI_add_answer_0C(["Ranger", "bye"]);
	labelFunc0103_04A7:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"This is such a terrible crime. And it involves magic!");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFE9)) goto labelFunc0103_04E4;
		UcMessage("\"Thou shouldst report such a crime as this to Julia. She can aid thee.\"");
		UcSay;
		UI_set_schedule_type_25(0xFFE9, 0x0003);
		Func097F(0xFFE9, "@Yes?@", 0x0000);
		goto labelFunc0103_04F0;
	labelFunc0103_04E4:
		UcMessage("\"Do not tell that I told thee this, but do not take such a matter to Julia -- \"");
		UcSay;
		UcMessage("\"She shall only extort a bribe, then send thee elsewhere.\"");
		UcSay;
		UcMessage("\"Instead, speak to one of the Adepts. Perhaps Gustacio, if he'll give thee his ear, or Fedabiblio. They can help thee.\"");
		UcSay;
	labelFunc0103_04F0:
		cmps("Ranger");
		UI_remove_answer_0D("Ranger");
		UcMessage("\"A Ranger is in service to the MageLord and the Council. 'Tis our duty to guard the city and keep order...\"");
		UcSay;
		UcMessage("\"We also make fine wine that is sold throughout all of Moonshade.\"");
		UcSay;
		UI_add_answer_0C(["MageLord", "Council"]);
	labelFunc0103_0514:
		cmps("MageLord");
		UI_remove_answer_0D("MageLord");
		if(!(gflags[0004] && (UI_get_schedule_type_24(0x038A) != 0x000F))) goto labelFunc0103_0540;
		UcMessage("\"Shamino the Anarch is the current MageLord. He hath brought great change to our city...\"");
		UcSay;
		UcMessage("\"No longer must a Mage or Mundane be bound by petty rules. It is quite exciting!\"");
		UcSay;
		goto labelFunc0103_0551;
	labelFunc0103_0540:
		UcMessage("\"The current MageLord is Filbercio, ");
		UcMessage(var0002);
		UcMessage(". He is a wise ruler, who ensures the safety of the people by keeping the Mages within the confines of the Strictures.\"");
		UcSay;
		UI_add_answer_0C("Strictures");
	labelFunc0103_0551:
		cmps("Strictures");
		UI_remove_answer_0D("Strictures");
		UcMessage("\"I can only tell thee what is common knowledge, ");
		UcMessage(var0002);
		UcMessage(". That the Strictures are meant to curtail the use of dangerous spells within the city.\"");
		UcSay;
		UcMessage("\"That way, should anything go wrong during the casting, the Rangers do not have to worry about saving half the populace as well as containing the disaster.\"");
		UcSay;
	labelFunc0103_056E:
		cmps("Council");
		UI_remove_answer_0D("Council");
		UcMessage("\"The Council is composed of Adepts that balance the MageLord's power. They represent the voice of the Mages within the city.\"");
		UcSay;
		UcMessage("\"Of course, the Mundanes have little or no voice in the Council. I suppose that the Rangers are the closest thing to representatives for the Mundanes that Moonshade doth have.\"");
		UcSay;
		UI_add_answer_0C(["Mages", "Mundanes"]);
	labelFunc0103_0592:
		cmps("Mages");
		UI_remove_answer_0D("Mages");
		UcMessage("\"Mages are those that make any use of magic, ");
		UcMessage(var0002);
		UcMessage("... Adept or no. And since Moonshade is the city of Mages, it is the Mages that control the city.\"");
		UcSay;
	labelFunc0103_05AB:
		cmps("Mundanes");
		UI_remove_answer_0D("Mundanes");
		UcMessage("\"Mundanes are those that cannot call upon magic without the use of magic items that contain a specific spell. They have no magical ability in and of themselves.\"");
		UcSay;
		UcMessage("\"And here in Moonshade, I'm afraid, Mundanes are little better than chattel.\"");
		UcSay;
	labelFunc0103_05C2:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"Too small for me, I'm afraid. I don't think that these belong to any of the Rangers. Thou couldst ask Bucia.\"");
		UcSay;
		UI_add_answer_0C("Bucia");
	labelFunc0103_05DC:
		cmps("Bucia");
		UI_remove_answer_0D("Bucia");
		UcMessage("\"She is Moonshade's provisioner, and she would know who bought such a pair, I'm sure... Bucia loves all sorts of information, if thou takest my meaning.\"");
		UcSay;
		UcMessage("\"Thou canst usually find her at the Capessi Canton.\"");
		UcSay;
		UI_add_answer_0C("Capessi Canton");
	labelFunc0103_05FA:
		cmps("Capessi Canton");
		UI_remove_answer_0D("Capessi Canton");
		UcMessage("\"The Capessi Canton is Bucia's shop. Well, at least I know that she runs it, whether or not she owns it.\"");
		UcSay;
		UcMessage("\"Thou canst find almost anything there. But remember, Bucia loves to talk. Don't say that I didn't warn thee.\"");
		UcSay;
	labelFunc0103_0611:
		cmps("strange wine");
		UI_remove_answer_0D("strange wine");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc0103_064B;
		UcMessage("\"'Tis our wine, sure enough! Can't fool my nose after all these years working with the Mad Mage's wine press!\"");
		UcSay;
		UcMessage("\"I wonder if this was the bottle that disappeared... Thou shouldst ask my commander about the wine.\"");
		UcSay;
		gflags[0297] = true;
		UI_add_answer_0C("Mad Mage");
		goto labelFunc0103_0655;
	labelFunc0103_064B:
		UcMessage("\"As fond as I am of good wine, ");
		UcMessage(var0002);
		UcMessage(", I cannot help thee unless I see the bottle. No offense, but thy description could fit several wines that I know of.\"");
		UcSay;
	labelFunc0103_0655:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"Erstam is the Mad Mage, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Long ago, he was the teacher of the Adepts here in Moonshade. But then, like any man I suppose, he became obsessed with the thought of his own mortality.\"");
		UcSay;
		UcMessage("\"His attempts to wrest life from death have been rather pathetic. And he hath gone completely mad.\"");
		UcSay;
	labelFunc0103_0676:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"Hmmm. I can't recall having seen a bottle like this one. But then I don't generally try any vintages but our own.\"");
		UcSay;
		UcMessage("\"Thou shouldst ask Julia, though. If anyone would know, it would be Julia.\"");
		UcSay;
		UI_add_answer_0C("Julia");
	labelFunc0103_0694:
		cmps("Julia");
		UI_remove_answer_0D("Julia");
		UcMessage("\"Perhaps I should have referred to her as Commander, for that is what she is... Commander of the Rangers.\"");
		UcSay;
		UcMessage("\"She's a bit sour, I'm afraid, ");
		UcMessage(var0002);
		UcMessage(". Leading the Rangers is a thankless job, and she hath become quite disillusioned over the last few years.\"");
		UcSay;
	labelFunc0103_06B1:
		cmps("mystery shield");
		UI_remove_answer_0D("mystery shield");
		UcMessage("\"I thought that thou didst have a challenge for me! This one is easy... It is a Pikemen's shield from Monitor.\"");
		UcSay;
		UcMessage("\"I wish that the Council would give us the funds for arms like this!\"");
		UcSay;
		UI_add_answer_0C(["Pikemen", "Monitor"]);
	labelFunc0103_06D5:
		cmps("Pikemen");
		UI_remove_answer_0D("Pikemen");
		UcMessage("\"The Pikemen are to Monitor as the Rangers are to Moonshade, ");
		UcMessage(var0002);
		UcMessage(". But more so...\"");
		UcSay;
		UcMessage("\"For the Pikemen maintain guard towers all along the roads on the mainland. So they are much more widely respected than the Rangers.\"");
		UcSay;
	labelFunc0103_06F2:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"Monitor is on the southern edge of the mainland. Its citizens are noted for their bravery.\"");
		UcSay;
		UcMessage("\"I went there once, as a young lad. That's what inspired me to become a Ranger.\"");
		UcSay;
	labelFunc0103_0709:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		Func097F(item, "@Peace be with thee.@", 0x0002);
		goto labelFunc0103_0731;
	labelFunc0103_072E:
		goto labelFunc0103_04A7;
	labelFunc0103_0731:
		end_conv();
	labelFunc0103_0732:
		if(!(var0001 == 0x0002)) goto labelFunc0103_0765;
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEEE, 0x0000);
		UcMessage("\"Please, I cannot speak with thee at this time. My grief doth take the words from my mouth and leave me only with tears.\" ~\"Please away, I do not wish to be seen in this state.\"");
		UcSay;
		Func097F(item, "@If only I had flowers...@", 0x0002);
		UI_set_schedule_type_25(item, 0x000F);
		UI_remove_npc_face0_07();
	labelFunc0103_0765:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern Func094A 0x94A (var var0000);

Func0105 0x105 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x000A)) goto labelFunc0105_0062;
	UI_halt_scheduled_71(item);
	var0000 = UI_execute_usecode_array_01(item, [0x46, 0x0000, 0x4E, 0x01, 0x58, 0x005C, 0x0B, 0xFFFC, 0x0020, 0x55, 0x0105]);
	var0001 = Func090C(0xFE9C, item);
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0001, 0x01, 0x67, 0x61, 0x27, 0x0001, 0x0B, 0xFFFB, 0x0009]);
	labelFunc0105_0062:
		if(!(event == 0x0002)) goto labelFunc0105_00F1;
		var0002 = UI_get_cont_items_33(0xFE9C, 0x028E, 0xFE99, 0xFE99);
		if(!var0002) goto labelFunc0105_008A;
		UI_remove_item_84(var0002);
	labelFunc0105_008A:
		var0003 = UI_create_new_object_2C(0x0353);
		if(!var0003) goto labelFunc0105_00F1;
		UI_set_item_flag_A4(var0003, 0x0012);
		UI_set_item_flag_A4(var0003, 0x000B);
		UI_set_item_frame_1B(var0003, UI_die_roll_17(0x0000, 0x0004));
		var0004 = UI_get_object_position_20(item);
		var0004[0x0001] = (var0004[0x0001] + 0x0001);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
		var0000 = UI_update_last_created_2F(var0004);
	labelFunc0105_00F1:
		if(!(event == 0x0001)) goto labelFunc0105_00FF;
		Func094A("@I believe that one threads a loom before using it.@");
	labelFunc0105_00FF:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D2 0x7D2 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0109 0x109 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = "his";
	if(!UI_is_pc_female_6F()) goto labelFunc0109_0013;
	var0000 = "her";
	labelFunc0109_0013:
		if(!(event == 0x0002)) goto labelFunc0109_05A5;
		if(!(Func0994() == 0x0002)) goto labelFunc0109_0400;
		if(!(!UI_npc_nearby_3A(0xFF31))) goto labelFunc0109_003B;
		UI_set_schedule_type_25(0xFF31, 0x0007);
		abrt();
	labelFunc0109_003B:
		var0001 = Func09A0(0x0002, 0x0001);
		var0002 = [0x095D, 0x0477, 0x0000];
		0xFF31;
		calle();
		UI_set_npc_id_BD(0xFF31, (UI_get_npc_id_BC(0xFF31) + 0x0001));
		UI_clear_item_say_4E(0xFF31);
		var0003 = UI_find_nearby_41(0xFF31, Dupre, 0x0014, 0x0008);
		var0004 = [];
		enum();
	labelFunc0109_008F:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0109_00B5);
		if(!(UI_get_schedule_type_24(var0007) == 0x000F)) goto labelFunc0109_00B2;
		var0004 = (var0004 & var0007);
	labelFunc0109_00B2:
		goto labelFunc0109_008F;
	labelFunc0109_00B5:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0008)) goto labelFunc0109_0109;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_set_npc_id_BD(0xFF31, 0x0000);
		UI_set_weather_53(0x0000);
		UI_set_schedule_type_25(0xFF29, 0x0003);
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x00FA, 0x0000], 0x03E8);
		abrt();
	labelFunc0109_0109:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0007)) goto labelFunc0109_01C4;
		UI_show_npc_face0_05(0xFF31, 0x0000);
		UcMessage("\"The energies from beyond the Void now converge upon this place and time. It is the moment when Xenka shall move across the eons and bring us the light of prophecy...\"");
		UcSay;
		var0009 = UI_find_nearby_41(0xFE9C, 0x02D6, 0x0014, 0x0000);
		UI_remove_item_84(var0009);
		UI_play_music_39(0x003F, var0001);
		UI_move_object_4B(0xFF29, var0002);
		UI_sprite_effect_68(0x001A, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0008 = UI_execute_usecode_array_01(0xFF29, [0x23, 0x59, 0x0002, 0x01, 0x70]);
		Func097F(0xFF29, "@It is I...@", 0x0005);
		Func097F(0xFF31, "@Come to us, Xenka!@", 0x0000);
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
		gflags[0270] = true;
		abrt();
	labelFunc0109_01C4:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0006)) goto labelFunc0109_01FF;
		UI_item_say_4D(0xFF31, "@Xenka is near!@");
		var000A = "@Xenka!@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_01FF:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0005)) goto labelFunc0109_0253;
		UI_sprite_effect_68(0x000D, 0x0968, 0x0474, 0x0000, 0x0000, 0x0000, Dupre);
		UI_item_say_4D(0xFF31, "@Invoke her name!@");
		var000A = "@Xenka!@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_0253:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0004)) goto labelFunc0109_028E;
		UI_item_say_4D(0xFF31, "@The time is at hand!@");
		var000A = "@The time!@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_028E:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0003)) goto labelFunc0109_02C9;
		UI_item_say_4D(0xFF31, "@Xenka returns!@");
		var000A = "@She is pure.@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_02C9:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0002)) goto labelFunc0109_032F;
		var0009 = UI_create_new_object_2C(0x02D6);
		if(!var0009) goto labelFunc0109_0302;
		UI_set_item_frame_1B(var0009, 0x0006);
		var0008 = UI_update_last_created_2F(var0002);
		UI_play_sound_effect_16(0x0046);
	labelFunc0109_0302:
		UI_item_say_4D(0xFF31, "@Our vigil is over!@");
		var000A = "@Xenka comes!@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_032F:
		if(!(UI_get_npc_id_BC(0xFF31) == 0x0001)) goto labelFunc0109_0385;
		UI_set_weather_53(0x0003);
		UI_play_music_39(0x0041, var0001);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_item_say_4D(0xFF31, "@Long have we waited...@");
		var000A = "@No more!@";
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109], 0x000A);
	labelFunc0109_0385:
		if(!(var0004 != [])) goto labelFunc0109_03E0;
		var000B = var0004[UI_get_random_00(UI_get_array_size_73(var0004))];
		UI_clear_item_say_4E(var000B);
		var000C = UI_get_random_00(0x000A);
		var0008 = UI_delayed_execute_usecode_array_02(var000B, [0x61, 0x27, 0x0007, 0x6B], var000C);
		var000C = (var000C + 0x0001);
		Func097F(var000B, var000A, var000C);
	labelFunc0109_03E0:
		UI_sprite_effect_68(0x0007, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc0109_0400:
		if(!(Func0994() == 0x001B)) goto labelFunc0109_05A5;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF31, 0x0000);
		UcMessage("\"Thou shouldst know better than to meddle in the affairs of Fate, Thoxa. By merely talking with the Hero, thou mayest be condemning us.\"");
		UcSay;
		UI_show_npc_face1_06(0xFF2D, 0x0000);
		UcMessage("\"We must intervene, Karnax. The very fabric that weaves the tapestry of the Cosmos may depend upon it.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou art as foolish as ever, girl...\"");
		UcSay;
		UcMessage("\"Xenka's writings are crystal clear -- those who seek to aid the Hero, shall cause ");
		UcMessage(var0000);
		UcMessage(" greatest calamities!\"");
		UcSay;
		UcMessage("\"I must stop thee, before thou sendest us all to our doom!\"");
		UcSay;
		Func097F(0xFF31, "@I must stop thee...@", 0x0000);
		UI_remove_npc_face1_08();
		UI_remove_npc_face0_07();
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_execute_usecode_array_01(0xFF2D, [0x23, 0x59, 0x30, 0x70, 0x27, 0x0002, 0x6F, 0x27, 0x0004, 0x67, 0x55, 0x075A]);
		Func097F(0xFF2D, "@Flam Mas Flam!@", 0x0002);
		gflags[000A] = true;
		var0008 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x66, 0x27, 0x0002, 0x68, 0x27, 0x0002, 0x52, "@Thoxa...@", 0x69, 0x27, 0x0002, 0x6A, 0x61, 0x55, 0x07EC], 0x000A);
		var000D = UI_get_object_position_20(0xFF31);
		var000E = UI_get_object_position_20(0xFF2D);
		UI_sprite_effect_68(0x0015, (var000E[0x0001] - 0x0002), (var000E[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		var000F = [Shamino, 0x0000, 0x0002, 0x0000, 0x0001, 0x0000, 0x0000];
		var0010 = [Shamino, Iolo, 0x0002, 0x0002, Shamino, Iolo, 0x0000];
		var0011 = 0x0001;
	labelFunc0109_054D:
		if(!(var0011 <= 0x0007)) goto labelFunc0109_05A5;
		var0012 = UI_create_new_object_2C(0x025F);
		if(!var0012) goto labelFunc0109_0598;
		UI_clear_item_flag_A5(var0012, 0x0012);
		var0008 = UI_update_last_created_2F([(var000D[0x0001] + var000F[var0011]), (var000D[0x0002] + var0010[var0011]), 0x0000]);
	labelFunc0109_0598:
		var0011 = (var0011 + 0x0001);
		goto labelFunc0109_054D;
	labelFunc0109_05A5:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0907 0x907 (var var0000, var var0001);
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);
extern Func09A5 0x9A5 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func010E 0x10E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc010E_000F;
	exit2();
	labelFunc010E_000F:
		var0000 = UI_get_item_quality_1C(item);
		if(!(var0000 == 0x0032)) goto labelFunc010E_0050;
		if(!((gflags[007E] && (gflags[003E] && gflags[0091])) && ((!gflags[0048]) && (gflags[00A5] || (!gflags[002D]))))) goto labelFunc010E_0050;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01C3]);
		abrt();
	labelFunc010E_0050:
		if(!(var0000 == 0x00B3)) goto labelFunc010E_0080;
		if(!((gflags[0170] || gflags[0172]) && (!(gflags[0170] && gflags[0172])))) goto labelFunc010E_0080;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x07F8]);
		abrt();
	labelFunc010E_0080:
		var0002 = Func0906(item);
		if(!(var0002 == 0x0001)) goto labelFunc010E_00D1;
		if(!Func0908(item, 0x0178, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc010E_00CE;
		Func0909(item, 0x01B0, 0x0001, 0x0001, 0x01B1, 0x0000, 0x0000, 0x0003, 0x0005);
		UI_play_sound_effect2_A1(0x001F, item);
		goto labelFunc010E_00D1;
	labelFunc010E_00CE:
		Func0903();
	labelFunc010E_00D1:
		if(!(var0002 == 0x0000)) goto labelFunc010E_011B;
		if(!Func0908(item, 0x0178, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc010E_0118;
		Func0909(item, 0x01B0, 0x0000, 0x0002, 0x01B1, 0x0001, Iolo, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0020, item);
		goto labelFunc010E_011B;
	labelFunc010E_0118:
		Func0903();
	labelFunc010E_011B:
		if(!(var0002 == 0x0002)) goto labelFunc010E_0178;
		if(!(var0000 == 0x0005)) goto labelFunc010E_0174;
		var0003 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x000C, (var0003[0x0001] - 0x0002), var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func0907(item, 0x0000);
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x010E]);
		abrt();
	labelFunc010E_0174:
		Func0904(item);
	labelFunc010E_0178:
		if(!(var0002 == 0x0003)) goto labelFunc010E_0186;
		Func0905(item);
	labelFunc010E_0186:
		if(!(var0000 == 0x00DC)) goto labelFunc010E_0194;
		Func09A5();
		abrt();
	labelFunc010E_0194:
		if(!(var0000 == 0x0005)) goto labelFunc010E_0229;
		UI_play_music_39(0x0029, Func09A0(0x0005, 0x0001));
		var0004 = UI_get_distance_21(item, 0xFE9C);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0005 = UI_get_object_position_20(item);
		var0005[0x0001] = (var0005[0x0001] - 0x0002);
		var0005[0x0002] = (var0005[0x0002] + 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, var0005, 0x000A, item, 0x07F6, true);
		UI_play_sound_effect_16(0x0039);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07F6], (var0004 + 0x0002));
		Func097F(0xFE9C, "@Can't stop myself...@", 0x0002);
	labelFunc010E_0229:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0112 0x112 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!gflags[0004]) goto labelFunc0112_0024;
	UI_clear_item_flag_A5(item, 0x001D);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x78, 0x0064, 0x0000]);
	abrt();
	labelFunc0112_0024:
		var0001 = UI_get_oppressor_5C(item);
		if(!(var0001 == 0x0000)) goto labelFunc0112_0043;
		var0001 = UI_get_npc_object_23(0xFE9C);
		goto labelFunc0112_0051;
	labelFunc0112_0043:
		var0001 = UI_get_npc_object_23((0x0000 - var0001));
	labelFunc0112_0051:
		var0002 = UI_get_party_list_2B();
		if(!in(var0001, var0002)) goto labelFunc0112_013C;
		var0000 = UI_set_npc_prop_29(item, 0x0003, 0x0005);
		var0003 = UI_find_nearby_41(0xFE9C, 0x017D, 0x001E, 0x0000);
		enum();
	labelFunc0112_0084:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0112_00A6);
		UI_set_schedule_type_25(var0006, 0x0003);
		UI_set_npc_id_BD(var0006, 0x0007);
		goto labelFunc0112_0084;
	labelFunc0112_00A6:
		var0007 = ["@Hold there!@", "@Cease!@", "@Murderer!@", "@Stop him!@", "@Arrest that dog!@", "@Ruffian!@"];
		if(!var0003) goto labelFunc0112_00E5;
		UI_clear_item_say_4E(var0003);
		Func097F(var0003, [var0007[UI_get_random_00(UI_get_array_size_73(var0007))]], 0x0000);
	labelFunc0112_00E5:
		if(!(UI_get_array_size_73(var0003) < 0x0006)) goto labelFunc0112_0139;
		var0008 = UI_create_new_object2_2D(0x017D, [0x0000, 0x0000, 0x0000]);
		if(!var0008) goto labelFunc0112_0139;
		var0000 = UI_approach_avatar_BF(var0008, 0x005A, 0x0028);
		if(!var0000) goto labelFunc0112_0139;
		UI_set_npc_id_BD(var0008, 0x0007);
		UI_set_schedule_type_25(var0008, 0x0003);
	labelFunc0112_0139:
		goto labelFunc0112_0187;
	labelFunc0112_013C:
		var0000 = UI_set_npc_prop_29(item, 0x0003, 0x0014);
		UI_clear_item_say_4E(item);
		var0007 = ["@Oh, my!@", "@I am bleeding...@", "@Oh, help me!@", "@Ouch!@", "@Fiend, stop that!@", "@I die!@"];
		Func097F(item, [var0007[UI_get_random_00(UI_get_array_size_73(var0007))]], 0x0000);
		UI_set_attack_mode_59(item, 0x0007);
	labelFunc0112_0187:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func094A 0x94A (var var0000);

Func011C 0x11C (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc011C_0082;
	var0000 = UI_game_hour_45();
	if(!((var0000 >= 0x0006) && (var0000 <= 0x000B))) goto labelFunc011C_0033;
	UI_item_say_4D(item, ((" " + UI_game_hour_45()) + " o'clock"));
	exit2();
	labelFunc011C_0033:
		if(!(var0000 == 0x000C)) goto labelFunc011C_0046;
		UI_item_say_4D(item, "Noon");
		exit2();
	labelFunc011C_0046:
		if(!((var0000 >= 0x000D) && (var0000 <= 0x0014))) goto labelFunc011C_0076;
		var0000 = (var0000 - 0x000C);
		UI_item_say_4D(item, ((" " + var0000) + " o'clock"));
		exit2();
		goto labelFunc011C_0082;
	labelFunc011C_0076:
		var0001 = Func0953();
		Func094A("@^<Avatar>, I believe the important part of the word sundial is `sun'.@");
	labelFunc011C_0082:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func011E 0x11E (var var0000)
{
	var var0001;
	var var0002;

	UI_clear_item_say_4E(0xFE9C);
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 == 0x0001) || (var0000 == 0x0002))) goto labelFunc011E_00AA;
	var0001 = UI_click_on_item_3F();
	if(!UI_is_npc_3D(var0001)) goto labelFunc011E_0050;
	UI_play_sound_effect_16(0x0038);
	UI_item_say_4D(0xFE9C, "@Take that!@");
	Func097F(var0001, "@Oooww!@", Shamino);
	abrt();
	labelFunc011E_0050:
		if(!((UI_get_item_shape_18(var0001) == 0x011E) && (UI_get_item_frame_1A(var0001) == 0x0000))) goto labelFunc011E_007E;
		UI_play_sound_effect_16(0x003C);
		Func097F(0xFE9C, "@Listen...@", 0x0001);
		abrt();
	labelFunc011E_007E:
		if(!((UI_get_item_shape_18(var0001) == 0x011E) && (UI_get_item_frame_1A(var0001) == 0x0003))) goto labelFunc011E_00AA;
		UI_play_sound_effect_16(0x007A);
		UI_item_say_4D(0xFE9C, "@Troll drum, nice...@");
		abrt();
	labelFunc011E_00AA:
		return;
}
Func0122 0x122 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0122_003D;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 > 0x0003)) goto labelFunc0122_0029;
	UI_set_item_frame_1B(item, (var0000 - 0x0004));
	goto labelFunc0122_0035;
	labelFunc0122_0029:
		UI_set_item_frame_1B(item, (var0000 + 0x0004));
	labelFunc0122_0035:
		UI_play_sound_effect2_A1(0x0009, item);
	labelFunc0122_003D:
		return;
}
Func0123 0x123 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0123_003D;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 > 0x0003)) goto labelFunc0123_0029;
	UI_set_item_frame_1B(item, (var0000 - 0x0004));
	goto labelFunc0123_0035;
	labelFunc0123_0029:
		UI_set_item_frame_1B(item, (var0000 + 0x0004));
	labelFunc0123_0035:
		UI_play_sound_effect2_A1(0x0009, item);
	labelFunc0123_003D:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern var Func08E7 0x8E7 (var var0000);
extern Func088D 0x88D (var var0000, var var0001);
extern var Func088E 0x88E (var var0000);

Func0124 0x124 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	if(!(event == 0x0001)) goto labelFunc0124_0076;
	if(!UI_get_barge_6D(item)) goto labelFunc0124_004B;
	var0000 = UI_find_nearby_41(item, 0x0316, 0x0014, 0x0000);
	if(!var0000) goto labelFunc0124_0041;
	if(!((UI_get_item_quality_1C(var0000) == 0x0001) && (!gflags[00EC]))) goto labelFunc0124_0041;
	Func094A("This is Filbercio's barge!");
	abrt();
	labelFunc0124_0041:
		var0001 = Func08E7(item);
		goto labelFunc0124_0076;
	labelFunc0124_004B:
		Func088D(item, 0x0124);
		var0002 = (UI_get_distance_21(item, 0xFE9C) + 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0124], var0002);
	labelFunc0124_0076:
		if(!(event == 0x0002)) goto labelFunc0124_0295;
		var0003 = UI_get_object_position_20(0xFE9C);
		var0004 = [0x0AE7, 0x09D5, 0x0A37, 0x09D5, 0x0AA7, 0x08E5, 0x0A37, 0x09A5];
		var0005 = [0x0AD7, 0x0885];
		var0006 = 0x0000;
		if(!((var0003[0x0001] == var0005[0x0001]) && ((var0003[0x0002] == var0005[0x0002]) && (gflags[0001] == false)))) goto labelFunc0124_0140;
		gflags[0001] = true;
		var0005[0x0002] = (var0005[0x0002] + 0x0002);
		UI_sprite_effect_68(0x0011, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, 0x0001);
		UI_play_sound_effect2_A1(0x0074, item);
		UI_UNKNOWN_72();
		var0007 = UI_create_new_object_2C(0x037F);
		if(!var0007) goto labelFunc0124_013F;
		UI_set_item_flag_A4(var0007, 0x0012);
		var0001 = UI_update_last_created_2F(var0005);
	labelFunc0124_013F:
		abrt();
	labelFunc0124_0140:
		var0008 = 0x0001;
	labelFunc0124_0146:
		if(!((var0003[0x0001] == var0004[var0008]) && (var0003[0x0002] == var0004[(var0008 + 0x0001)]))) goto labelFunc0124_0190;
		var0008 = Func088E(var0008);
		var0006[0x0001] = var0004[var0008];
		var0006[0x0002] = var0004[(var0008 + 0x0001)];
		goto labelFunc0124_01A6;
	labelFunc0124_0190:
		var0008 = Func088E(var0008);
		if(!(var0008 > 0x0001)) goto labelFunc0124_01A6;
		goto labelFunc0124_0146;
	labelFunc0124_01A6:
		if(!var0006) goto labelFunc0124_0295;
		var0009 = UI_get_party_list_2B();
		var000A = [];
		var000B = [];
		var000C = [];
		var000D = UI_get_object_position_20(0xFE9C);
		var000E = 0x0001;
		enum();
	labelFunc0124_01D6:
		for (var0011 in var0009 with var000F to var0010 atend labelFunc0124_022B);
		var0012 = UI_get_object_position_20(var0011);
		var000A[var000E] = (var000D[0x0001] - var0012[0x0001]);
		var000B[var000E] = (var000D[0x0002] - var0012[0x0002]);
		var000C[var000E] = UI_get_item_frame_rot_80(var0011);
		var000E = (var000E + 0x0001);
		goto labelFunc0124_01D6;
	labelFunc0124_022B:
		UI_move_object_4B(0xFE9B, var0006);
		var000D = UI_get_object_position_20(0xFE9C);
		var000E = 0x0001;
		enum();
	labelFunc0124_0246:
		for (var0011 in var0009 with var0013 to var0014 atend labelFunc0124_0295);
		UI_move_object_4B(var0011, [(var000D[0x0001] - var000A[var000E]), (var000D[0x0002] - var000B[var000E]), var000D[0x0003]]);
		UI_set_item_frame_rot_81(var0011, var000C[var000E]);
		var000E = (var000E + 0x0001);
		goto labelFunc0124_0246;
	labelFunc0124_0295:
		return;
}
// externs
extern var Func099E 0x99E (var var0000);
extern var Func0942 0x942 (var var0000);
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func095D 0x95D (var var0000);

Func0128 0x128 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc0128_007E;
	if(!((event == 0x0005) || (event == 0x0006))) goto labelFunc0128_005A;
	var0001 = UI_get_container_83(item);
	labelFunc0128_0028:
		if(!((var0001 != 0x0000) && (!UI_is_npc_3D(var0001)))) goto labelFunc0128_0048;
		var0001 = UI_get_container_83(var0001);
		goto labelFunc0128_0028;
	labelFunc0128_0048:
		if(!(var0001 == 0x0000)) goto labelFunc0128_005A;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc0128_005A:
		if(!(event == 0x0005)) goto labelFunc0128_006C;
		UI_set_item_flag_A4(var0001, 0x0000);
	labelFunc0128_006C:
		if(!(event == 0x0006)) goto labelFunc0128_007E;
		UI_clear_item_flag_A5(var0001, 0x0000);
	labelFunc0128_007E:
		if(!(var0000 == 0x0001)) goto labelFunc0128_015A;
		if(!(event == 0x0005)) goto labelFunc0128_00CA;
		var0001 = UI_get_container_83(item);
		if(!(var0001 && UI_is_npc_3D(var0001))) goto labelFunc0128_00C3;
		UI_halt_scheduled_71(item);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0128], 0x0064);
		goto labelFunc0128_00CA;
	labelFunc0128_00C3:
		UI_flash_mouse_7F(0x0000);
	labelFunc0128_00CA:
		if(!(event == 0x0006)) goto labelFunc0128_00D7;
		UI_halt_scheduled_71(item);
	labelFunc0128_00D7:
		if(!(event == 0x0002)) goto labelFunc0128_015A;
		UI_halt_scheduled_71(item);
		var0001 = UI_get_container_83(item);
		if(!(var0001 && UI_is_npc_3D(var0001))) goto labelFunc0128_015A;
		var0003 = UI_get_npc_prop_28(var0001, 0x0000);
		var0004 = UI_get_npc_prop_28(var0001, 0x0003);
		if(!(var0004 < var0003)) goto labelFunc0128_0145;
		var0002 = UI_set_npc_prop_29(var0001, 0x0003, 0x0001);
		if(!(UI_die_roll_17(0x0001, 0x0064) == 0x0001)) goto labelFunc0128_0145;
		UI_remove_item_84(item);
		exit2();
	labelFunc0128_0145:
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0128], 0x0064);
	labelFunc0128_015A:
		if(!(var0000 == 0x0002)) goto labelFunc0128_0228;
		if(!((event == 0x0005) || ((event == 0x0006) || (event == 0x0002)))) goto labelFunc0128_017F;
		var0001 = Func099E(item);
	labelFunc0128_017F:
		if(!(event == 0x0006)) goto labelFunc0128_01A8;
		var0005 = Func0942(0xFFD4);
		if(!var0005) goto labelFunc0128_01A8;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0128]);
	labelFunc0128_01A8:
		if(!(event == 0x0002)) goto labelFunc0128_0228;
		var0005 = Func0942(0xFFD4);
		if(!var0005) goto labelFunc0128_0228;
		UI_item_say_4D(0xFFD4, "Do not touch my ring!");
		var0006 = UI_get_npc_object_23(0xFFD4);
		var0007 = UI_find_direction_22(0xFFD4, item);
		var0002 = UI_execute_usecode_array_01(var0006, [0x23, 0x59, var0007, 0x6A]);
		if(!var0001) goto labelFunc0128_0216;
		var0002 = Func0996(var0001, 0xFFD4, 0x0001, 0x0128, 0xFE99, 0x0002, false);
		goto labelFunc0128_0228;
	labelFunc0128_0216:
		var0002 = UI_set_last_created_2E(item);
		var0002 = UI_give_last_created_42(0xFFD4);
	labelFunc0128_0228:
		if(!(var0000 == 0x0003)) goto labelFunc0128_024B;
		if(!(event == 0x0005)) goto labelFunc0128_024B;
		if(!(!gflags[0315])) goto labelFunc0128_024B;
		Func095D(0x03E8);
		gflags[0315] = true;
	labelFunc0128_024B:
		return;
}
Func012E 0x12E (var var0000)
{
	var var0001;

	if(!(event == 0x0007)) goto labelFunc012E_0058;
	if(!(UI_get_npc_id_BC(item) == 0x000F)) goto labelFunc012E_001C;
	UI_clear_item_flag_A5(item, 0x001D);
	labelFunc012E_001C:
		if(!(UI_get_npc_id_BC(item) == 0x0010)) goto labelFunc012E_0030;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc012E_0030:
		if(!(UI_get_npc_id_BC(item) == 0x0011)) goto labelFunc012E_0044;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc012E_0044:
		if(!(UI_get_npc_id_BC(item) == 0x0012)) goto labelFunc012E_0058;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc012E_0058:
		if(!(event == 0x0001)) goto labelFunc012E_0072;
		if(!(UI_get_npc_id_BC(item) == 0x000F)) goto labelFunc012E_0072;
		var0000 = 0x0001;
	labelFunc012E_0072:
		return;
}
Func012F 0x12F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0002)) goto labelFunc012F_00AA;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_frame_1A(item);
	if(!(var0002 == 0x0000)) goto labelFunc012F_0033;
	var0002 = 0x0000;
	goto labelFunc012F_004C;
	labelFunc012F_0033:
		if(!(var0002 == 0x0002)) goto labelFunc012F_0046;
		var0002 = 0x000A;
		goto labelFunc012F_004C;
	labelFunc012F_0046:
		var0002 = 0x0005;
	labelFunc012F_004C:
		UI_remove_item_84(item);
		var0003 = UI_create_new_object_2C(0x012F);
		if(!var0003) goto labelFunc012F_00A9;
		UI_set_item_frame_1B(var0003, var0002);
		var0004 = UI_set_item_quality_1D(var0003, var0001);
		var0004 = UI_update_last_created_2F(var0000);
		if(!var0004) goto labelFunc012F_00A9;
		var0005 = UI_execute_usecode_array_01(var0003, [0x4E, 0x58, 0x0059, 0x0B, Iolo, 0x0003, 0x58, 0x0058]);
	labelFunc012F_00A9:
		abrt();
	labelFunc012F_00AA:
		if(!(event == 0x0001)) goto labelFunc012F_00BA;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc012F_00BA:
		return;
}
Func0133 0x133 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0133_003B;
	UI_play_sound_effect_16(0x0041);
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc0133_0029;
	UI_set_item_frame_1B(item, 0x0001);
	labelFunc0133_0029:
		if(!(var0000 == 0x0001)) goto labelFunc0133_003B;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc0133_003B:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);

Func013D 0x13D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_npc_id_BC(0xFEF8);
	if(!(gflags[022C] && ((event == 0x0000) && (!gflags[022D])))) goto labelFunc013D_0239;
	UI_set_npc_id_BD(item, (UI_get_npc_id_BC(item) + 0x0001));
	var0001 = UI_find_nearby_41(item, 0x0370, 0x0005, 0x0000);
	var0002 = UI_find_nearby_41(item, 0x038A, 0x0005, 0x0000);
	if(!(UI_get_npc_id_BC(item) == 0x0006)) goto labelFunc013D_0089;
	Func097F(item, "@The world shall die...@", 0x0000);
	UI_set_schedule_type_25(item, 0x000F);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, 0x0002, 0x6C, 0x6B, 0x27, 0x000A, 0x55, 0x013D]);
	labelFunc013D_0089:
		if(!(UI_get_npc_id_BC(item) == 0x0005)) goto labelFunc013D_009F;
		Func097F(item, "@The Banes are united!@", 0x0000);
	labelFunc013D_009F:
		if(!(UI_get_npc_id_BC(item) == 0x0004)) goto labelFunc013D_00B5;
		Func097F(item, "@Chaos shall reign!@", 0x0000);
	labelFunc013D_00B5:
		if(!(UI_get_npc_id_BC(item) == 0x0003)) goto labelFunc013D_00CB;
		Func097F(item, "@...of the White Dragon!@", 0x0000);
	labelFunc013D_00CB:
		if(!(UI_get_npc_id_BC(item) == 0x0002)) goto labelFunc013D_00E1;
		Func097F(item, "@in the abandoned castle...@", 0x0000);
	labelFunc013D_00E1:
		if(!(UI_get_npc_id_BC(item) == 0x0001)) goto labelFunc013D_013C;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		Func097F(item, "@We shall never be found...@", 0x0000);
		var0003 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x59, 0x0002]);
		var0003 = UI_execute_usecode_array_01(0xFEF9, [0x23, 0x59, 0x0002]);
		UI_play_music_39(0x0033, Func09A0(0x0005, 0x0001));
	labelFunc013D_013C:
		if(!((UI_get_npc_id_BC(0xFEFA) == 0x0000) && var0001)) goto labelFunc013D_01BC;
		UI_show_npc_face0_05(0xFEF4, 0x0000);
		UI_init_conversation_85();
		UcMessage("\"Now that we are together, my brothers in Chaos, no one in the world may stand before us! We shall crush that insignificant Avatar... as we have killed all the others!\"");
		UcSay;
		UI_show_npc_face1_06(0xFEE0, 0x0000);
		UcMessage("\"Together... together... until the fiery, peaceful end! Now enemies... once friends!\"");
		UcSay;
		UcMessage("\"Twist and turn and twine about... What was wrong is right, and what was in, is out...\"");
		UcSay;
		UcMessage("\"Hide! Hide! For the Avatar seeks!\"");
		UcSay;
		var0003 = ("@Hide!@" & ("@Then we strike!@" & "@What fun!@"));
		Func094F(0xFEFA, var0003);
		UI_end_conversation_86();
		UI_set_npc_id_BD(0xFEFA, 0x0001);
		UI_si_path_run_usecode_C1(0xFEFA, [0x0998, 0x0069, 0x0001], 0x000D, UI_get_npc_object_23(0xFEFA), 0x0370, true);
	labelFunc013D_01BC:
		if(!((UI_get_npc_id_BC(0xFEFA) == 0x0001) && var0002)) goto labelFunc013D_0238;
		UI_show_npc_face0_05(0xFEF4, 0x0000);
		UI_init_conversation_85();
		UcMessage("\"Those who followed now lead! Those who were master are now slave! The world shall return to its natural course... once we have rid ourselves of that cursed Avatar!\"");
		UcSay;
		UI_show_npc_face1_06(0xFEE6, 0x0000);
		UcMessage("\"Let us bring this world to its knees! Let these pitiful mortals worship us... even as they die!\"");
		UcSay;
		UcMessage("\"And I have special plans for the Avatar...!\"");
		UcSay;
		var0003 = ("@Blood!@" & ("@More blood!@" & "@Bleed to death!@"));
		Func094F(0xFEF9, var0003);
		UI_end_conversation_86();
		UI_set_npc_id_BD(0xFEFA, 0x0002);
		UI_si_path_run_usecode_C1(0xFEF9, [0x0998, 0x0075, 0x0001], 0x000D, UI_get_npc_object_23(0xFEF9), 0x038A, true);
	labelFunc013D_0238:
		abrt();
	labelFunc013D_0239:
		if(!(gflags[022C] && ((event == 0x0002) && (!gflags[022D])))) goto labelFunc013D_02AE;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_set_camera_AE(0xFE9C);
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x000A);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_npc_id_BD(item, 0x0000);
		UI_set_npc_id_BD(0xFEFA, 0x0000);
		UI_set_npc_id_BD(0xFEF9, 0x0000);
		gflags[022D] = true;
		gflags[002A] = false;
		abrt();
	labelFunc013D_02AE:
		if(!(event == 0x0007)) goto labelFunc013D_0359;
		if(!(!gflags[00CE])) goto labelFunc013D_02BE;
		abrt();
	labelFunc013D_02BE:
		if(!gflags[00CF]) goto labelFunc013D_02C5;
		abrt();
	labelFunc013D_02C5:
		if(!(UI_get_oppressor_5C(item) == 0x0000)) goto labelFunc013D_0359;
		if(!(UI_get_weapon_5D(0xFE9C) == 0x0326)) goto labelFunc013D_0359;
		UI_show_npc_face0_05(0xFEF4, 0x0000);
		UcMessage("\"I shall not forget that thou hast beaten me, vile human!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0004 = UI_get_object_position_20(item);
		UI_set_schedule_type_25(item, 0x000F);
		UI_set_oppressor_5E(0xFE9C, 0x0001);
		UI_move_object_4B(item, [0x008E, 0x002E, 0x0000]);
		UI_clear_item_flag_A5(Shamino, 0x0004);
		UI_move_object_4B(Shamino, var0004);
		UI_set_item_flag_A4(Shamino, 0x001E);
		UI_clear_item_flag_A5(Shamino, 0x001D);
		UI_reduce_health_87(Shamino, 0x0037, 0x0000);
		gflags[00D0] = true;
		gflags[00D4] = true;
	labelFunc013D_0359:
		if(!(event == 0x0002)) goto labelFunc013D_0373;
		UI_show_npc_face0_05(0xFEF4, 0x0000);
		UcMessage("\"Stop!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc013D_0373:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func09A3 0x9A3 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func07D1 0x7D1 (var var0000);

Func013E 0x13E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = UI_is_pc_female_6F();
	var0001 = "him";
	if(!var0000) goto labelFunc013E_0019;
	var0001 = "her";
	labelFunc013E_0019:
		var0002 = Func0994();
		if(!gflags[021E]) goto labelFunc013E_01C2;
		var0003 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
		if(!(event == 0x0002)) goto labelFunc013E_0169;
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"Well, well, well... If it isn't the Avatar!\" *\"Fool! Thou didst think me dead... But now it is time for thee to die!\"");
		UcSay;
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0012);
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x0358, 0x0003, 0xFE99, 0x0012);
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x0327, 0x0003, 0xFE99, 0x0012);
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x011F, 0x0001, 0xFE99, 0x0012);
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x02DB, 0x0006, 0xFE99, 0x0012);
		UI_set_alignment_4A(var0003, 0x0002);
		UI_set_schedule_type_25(var0003, 0x0000);
		var0004 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x52, "@Thou art no match for me!@"], 0x0014);
		UI_remove_npc_face0_07();
		UI_set_item_flag_A4(0xFE9C, 0x001D);
		UI_set_item_flag_A4(var0003, 0x001D);
		var0004 = UI_set_npc_prop_29(var0003, 0x0004, 0x000A);
		var0004 = UI_set_npc_prop_29(var0003, 0x0002, 0x000A);
		var0004 = UI_set_npc_prop_29(var0003, 0x0000, 0x000A);
		var0005 = UI_get_npc_prop_28(0xFE9C, 0x0003);
		if(!(var0005 > 0x000F)) goto labelFunc013E_0169;
		var0004 = UI_set_npc_prop_29(0xFE9C, 0x0003, (0x000F - var0005));
	labelFunc013E_0169:
		if(!(event == 0x0007)) goto labelFunc013E_01C2;
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		var0006 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0006 == 0x0001)) goto labelFunc013E_0196;
		UcMessage("\"Fool! Dost thou think thou canst actually kill me?\" *\"I am forever!\" *\"I am eternity!\"");
		UcSay;
	labelFunc013E_0196:
		if(!(var0006 == 0x0002)) goto labelFunc013E_01A4;
		UcMessage("\"Puny Avatar! Thou canst not defeat what is undefeatable!\"");
		UcSay;
	labelFunc013E_01A4:
		if(!(var0006 == 0x0003)) goto labelFunc013E_01B2;
		UcMessage("\"No! Thou canst not escape that easily!\"");
		UcSay;
	labelFunc013E_01B2:
		var0004 = UI_set_npc_prop_29(var0003, 0x0003, 0x0014);
	labelFunc013E_01C2:
		var0007 = UI_get_npc_id_BC(item);
		if(!((UI_get_schedule_type_24(item) == 0x001D) && (UI_get_npc_id_BC(0xFFC0) != 0x0000))) goto labelFunc013E_01E3;
		abrt();
	labelFunc013E_01E3:
		if(!(Func0994() == 0x0010)) goto labelFunc013E_038D;
		if(!(event == 0x0002)) goto labelFunc013E_029C;
		UI_show_npc_face0_05(0xFEE1, 0x0001);
		UcMessage("\"Thou art too late, Avatar! Nothing can stop me now! The girl is dead and the last Bane is mine!\"");
		UcSay;
		UcMessage("\"Soon I shall rival the Guardian himself and crush thee like the irritating insect thou art!\"");
		UcSay;
		UcMessage("\"I shall open the Wall of Lights and destroy the world! And thou art powerless to follow me!\"");
		UcSay;
		var0008 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0015, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!UI_npc_nearby_3A(0xFEDB)) goto labelFunc013E_0269;
		UcMessage("\"Come, Palos! Destiny awaits beyond the frozen mountains!\"");
		UcSay;
		var0008 = UI_get_object_position_20(0xFEDB);
		UI_sprite_effect_68(0x0015, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc013E_0269:
		UI_remove_item_84(0xFEDB);
		Func09A3(item);
		UI_play_sound_effect_16(0x0082);
		gflags[02E2] = true;
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x00C8);
	labelFunc013E_029C:
		if(!((event == 0x0007) && (!UI_get_item_flag_A3(item, 0x001E)))) goto labelFunc013E_02E5;
		Func097F(item, "@At last...@", 0x0000);
		item;
		calle();
		item;
		calle();
		UI_set_schedule_type_25(item, 0x000F);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x013E], 0x000A);
		UI_set_item_flag_A4(item, 0x001E);
	labelFunc013E_02E5:
		if(!(event == 0x0000)) goto labelFunc013E_038D;
		if(!(var0007 == 0x0000)) goto labelFunc013E_033B;
		UI_set_item_flag_A4(0xFFC0, 0x0004);
		var0009 = UI_find_nearby_41(item, 0x0178, 0x0005, 0x0000);
		if(!var0009) goto labelFunc013E_0330;
		var000A = (UI_get_item_frame_1A(var0009) - 0x0001);
		UI_set_item_frame_1B(var0009, var000A);
	labelFunc013E_0330:
		UI_set_npc_id_BD(item, 0x0001);
		goto labelFunc013E_038D;
	labelFunc013E_033B:
		if(!((UI_get_distance_21(0xFE9C, item) < 0x000C) && (!UI_get_item_flag_A3(item, 0x001E)))) goto labelFunc013E_038D;
		Func097F(item, "@At last...@", 0x0000);
		0xFE9C;
		calle();
		item;
		calle();
		UI_set_schedule_type_25(item, 0x000F);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x013E], 0x000A);
		UI_set_item_flag_A4(item, 0x001E);
	labelFunc013E_038D:
		if(!(gflags[024F] && ((event == 0x0000) && (!gflags[0250])))) goto labelFunc013E_0628;
		UI_set_npc_id_BD(item, (UI_get_npc_id_BC(item) + 0x0001));
		if(!(UI_get_npc_id_BC(item) == 0x000A)) goto labelFunc013E_0408;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"Thy fire shall warm the heart of my trap, Palos. I shall rely on thee to make sure the Avatar feels the warmth of our welcome.\"");
		UcSay;
		UI_show_npc_face1_06(0xFEEF, 0x0000);
		UcMessage("\"To be my great pleasure. To look forward to the meeting...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		var000B = UI_find_nearby_41(item, 0x0373, 0x0014, 0x0000);
		if(!var000B) goto labelFunc013E_0404;
		UI_set_schedule_type_25(var000B, 0x000B);
	labelFunc013E_0404:
		UI_end_conversation_86();
	labelFunc013E_0408:
		if(!(UI_get_npc_id_BC(item) == 0x0009)) goto labelFunc013E_0433;
		Func097F(item, "@Ah, Palos!@", 0x0000);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x013E], 0x0014);
	labelFunc013E_0433:
		if(!(UI_get_npc_id_BC(item) == 0x0008)) goto labelFunc013E_04D5;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"Thou shalt be my door warden. I can count on thy strength to delay the Avatar...\"");
		UcSay;
		UI_show_npc_face1_06(0xFF81, 0x0000);
		UcMessage("\"Dost thou wish ");
		UcMessage(var0001);
		UcMessage(" dead or mangled, Batlin?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Mangled will suffice, mighty Brunt. But do as thou wishest...\"");
		UcSay;
		UI_show_npc_face1_06(0xFF81, 0x0000);
		UcMessage("\"Good... Dead it is!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UI_end_conversation_86();
		UI_set_schedule_type_25(0xFF81, 0x000B);
		var000C = [0x0924, 0x017E, 0x0000];
		var000B = UI_find_nearby_41(item, 0x0373, 0x0014, 0x0000);
		if(!var000B) goto labelFunc013E_04D5;
		UI_si_path_run_usecode_C1(var000B, var000C, 0x000D, var000B, 0x0373, false);
	labelFunc013E_04D5:
		if(!(UI_get_npc_id_BC(item) == 0x0007)) goto labelFunc013E_04EB;
		Func097F(item, "@Brunt!@", 0x0000);
	labelFunc013E_04EB:
		if(!(UI_get_npc_id_BC(item) == 0x0006)) goto labelFunc013E_0524;
		var000D = [0x0926, 0x0187, 0x0000];
		UI_si_path_run_usecode_C1(0xFF81, var000D, 0x000D, 0xFF81, 0x047F, false);
		Func097F(item, "@I must be certain...@", 0x0000);
	labelFunc013E_0524:
		if(!(UI_get_npc_id_BC(item) == 0x0005)) goto labelFunc013E_0583;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"To thee I give the anchor's job... The Avatar must not enter the Shrine of Balance before the Wall of Lights is fully open. Thou must stop the Avatar, should the others fail.\"");
		UcSay;
		UI_show_npc_face1_06(0xFF80, 0x0000);
		UcMessage("\"I'll split ");
		UcMessage(var0001);
		UcMessage(" from stem ta stern afore I let ");
		UcMessage(var0001);
		UcMessage(" pass, Batlin!\"");
		UcSay;
		UcMessage("\"An' o' course there be another yearnin' for a chance ta meet up with ");
		UcMessage(var0001);
		UcMessage(" again, too...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, yes... I had nearly forgotten.\"");
		UcSay;
		UI_set_schedule_type_25(0xFF80, 0x000B);
		UI_end_conversation_86();
	labelFunc013E_0583:
		if(!(UI_get_npc_id_BC(item) == 0x0004)) goto labelFunc013E_0599;
		Func097F(item, "@Deadeye! Come here!@", 0x0000);
	labelFunc013E_0599:
		if(!(UI_get_npc_id_BC(item) == 0x0003)) goto labelFunc013E_05DE;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"I must prepare an appropriate welcome for mine old enemy!\"");
		UcSay;
		UI_end_conversation_86();
		var000E = [0x092A, 0x0199, 0x0000];
		UI_si_path_run_usecode_C1(0xFF80, var000E, 0x000D, 0xFF80, 0x0480, false);
	labelFunc013E_05DE:
		if(!(UI_get_npc_id_BC(item) == 0x0002)) goto labelFunc013E_05F4;
		Func097F(item, "@...before the Avatar cometh.@", 0x0000);
	labelFunc013E_05F4:
		if(!(UI_get_npc_id_BC(item) == 0x0001)) goto labelFunc013E_0627;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		Func097F(item, "@So little time...@", 0x0000);
		UI_play_music_39(0x0034, Func09A0(0x0005, 0x0001));
	labelFunc013E_0627:
		abrt();
	labelFunc013E_0628:
		if(!(gflags[024F] && ((event == 0x0002) && (!gflags[0250])))) goto labelFunc013E_06A1;
		UI_UNKNOWN_9F(0x0001);
		UI_UNKNOWN_9E();
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_set_camera_AE(0xFE9C);
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x000A);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_npc_id_BD(item, 0x0000);
		gflags[0250] = true;
		UI_remove_npc_4C(0xFF81);
		UI_remove_npc_4C(0xFF80);
		gflags[002A] = false;
	labelFunc013E_06A1:
		if(!((event == 0x0003) && (var0002 == 0x001F))) goto labelFunc013E_06EE;
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UcMessage("\"Ah, Avatar! Thou wert ne'er a match for me...\" *\"Soon I will have power to rival even the Guardian himself! And thou wilt be powerless, just as thou art now.\" *\"I will bury my blade deep within thine entrails, twisting it ever so slowly, enjoying each of thy pitiful screams.\" *\"Farewell, hero of Britannia. Though thou wilt beg for a quick end to thy life, I shall resist. I want to enjoy thy death...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Enjoy thy death!@", 0x0002);
		var0004 = UI_set_item_quality_1D(item, 0x0010);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06D9], 0x0023);
		abrt();
	labelFunc013E_06EE:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern Func0976 0x976 (var var0000, var var0001);

Func0146 0x146 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x000A)) goto labelFunc0146_003D;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02E5], 0x0002);
	labelFunc0146_003D:
		if(!(event == 0x0002)) goto labelFunc0146_00C2;
		var0001 = UI_find_nearest_15(0xFE9C, 0x0146, 0x000A);
		var0002 = UI_get_object_position_20(var0001);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		var0002[0x0002] = (var0002[0x0002] + 0x0001);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc0146_00B8;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc0146_00A4;
		UI_set_item_frame_1B(item, 0x0001);
		goto labelFunc0146_00B8;
	labelFunc0146_00A4:
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc0146_00B8;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc0146_00B8:
		var0001 = UI_update_last_created_2F(var0002);
	labelFunc0146_00C2:
		if(!(event == 0x0001)) goto labelFunc0146_022F;
		var0003 = UI_get_item_quality_1C(item);
		var0004 = UI_click_on_item_3F();
		if(!gflags[0004]) goto labelFunc0146_00FD;
		if(!(!(var0003 == 0x0002))) goto labelFunc0146_00FD;
		UI_set_item_frame_1B(item, 0x000D);
		var0001 = UI_set_item_quality_1D(item, 0x0004);
	labelFunc0146_00FD:
		if(!((var0003 > 0x0001) && (var0003 < 0x0008))) goto labelFunc0146_014C;
		if(!(UI_get_item_shape_18(var0004) == 0x0268)) goto labelFunc0146_014C;
		UI_set_item_shape_14(var0004, 0x0154);
		UI_set_item_frame_1B(var0004, (var0003 - 0x0001));
		var0001 = UI_delayed_execute_usecode_array_02(var0004, [0x58, 0x0030, 0x2D], 0x01F4);
	labelFunc0146_014C:
		UI_play_sound_effect2_A1(0x0024, item);
		if(!(var0003 == 0x0001)) goto labelFunc0146_0168;
		UI_set_item_flag_A4(var0004, 0x0001);
	labelFunc0146_0168:
		if(!(var0003 == 0x0002)) goto labelFunc0146_0192;
		var0005 = UI_die_roll_17(0x0001, 0x000A);
		var0006 = (0x000D - var0005);
		Func0976(var0004, var0006);
	labelFunc0146_0192:
		if(!(var0003 == 0x0003)) goto labelFunc0146_01CE;
		UI_clear_item_flag_A5(var0004, 0x0008);
		UI_clear_item_flag_A5(var0004, 0x0007);
		UI_clear_item_flag_A5(var0004, 0x0001);
		UI_clear_item_flag_A5(var0004, 0x0002);
		UI_clear_item_flag_A5(var0004, 0x0003);
	labelFunc0146_01CE:
		if(!(var0003 == 0x0004)) goto labelFunc0146_01E2;
		UI_set_item_flag_A4(var0004, 0x0008);
	labelFunc0146_01E2:
		if(!(var0003 == 0x0005)) goto labelFunc0146_01F6;
		UI_clear_item_flag_A5(var0004, 0x0001);
	labelFunc0146_01F6:
		if(!(var0003 == 0x0006)) goto labelFunc0146_020A;
		UI_set_item_flag_A4(var0004, 0x0009);
	labelFunc0146_020A:
		if(!(var0003 == 0x0007)) goto labelFunc0146_021B;
		UI_cause_light_6C(0x0064);
	labelFunc0146_021B:
		if(!(var0003 == 0x0008)) goto labelFunc0146_022F;
		UI_set_item_flag_A4(var0004, 0x0000);
	labelFunc0146_022F:
		return;
}
// externs
extern var Func08BE 0x8BE (var var0000);
extern Func08BD 0x8BD ();
extern Func0924 0x924 (var var0000, var var0001);

Func014A 0x14A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_frame_1A(item);
	if(!((var0000[0x0001] == 0x03A7) && ((var0000[0x0002] == 0x041E) && (var0000[0x0003] == 0x0002)))) goto labelFunc014A_0051;
	if(!((var0001 == 0x0013) && Func08BE(0x0001))) goto labelFunc014A_004E;
	gflags[0243] = true;
	goto labelFunc014A_018C;
	goto labelFunc014A_0051;
	labelFunc014A_004E:
		goto labelFunc014A_015A;
	labelFunc014A_0051:
		if(!((var0000[0x0001] == 0x03AF) && ((var0000[0x0002] == 0x041B) && (var0000[0x0003] == 0x0002)))) goto labelFunc014A_0092;
		if(!((var0001 == 0x0014) && Func08BE(0x0002))) goto labelFunc014A_008F;
		gflags[0244] = true;
		goto labelFunc014A_018C;
		goto labelFunc014A_0092;
	labelFunc014A_008F:
		goto labelFunc014A_015A;
	labelFunc014A_0092:
		if(!((var0000[0x0001] == 0x03A9) && ((var0000[0x0002] == 0x0418) && (var0000[0x0003] == 0x0002)))) goto labelFunc014A_00D3;
		if(!((var0001 == 0x0015) && Func08BE(0x0003))) goto labelFunc014A_00D0;
		gflags[0245] = true;
		goto labelFunc014A_018C;
		goto labelFunc014A_00D3;
	labelFunc014A_00D0:
		goto labelFunc014A_015A;
	labelFunc014A_00D3:
		if(!((var0000[0x0001] == 0x03AB) && ((var0000[0x0002] == 0x0425) && (var0000[0x0003] == 0x0002)))) goto labelFunc014A_0114;
		if(!((var0001 == 0x0016) && Func08BE(0x0004))) goto labelFunc014A_0111;
		gflags[0246] = true;
		goto labelFunc014A_018C;
		goto labelFunc014A_0114;
	labelFunc014A_0111:
		goto labelFunc014A_015A;
	labelFunc014A_0114:
		if(!((var0000[0x0001] == 0x03B7) && ((var0000[0x0002] == 0x041F) && (var0000[0x0003] == 0x0002)))) goto labelFunc014A_0159;
		if(!((var0001 == 0x0013) && Func08BE(0x0005))) goto labelFunc014A_0152;
		gflags[0247] = true;
		goto labelFunc014A_018C;
		goto labelFunc014A_0159;
	labelFunc014A_0152:
		gflags[0247] = false;
		goto labelFunc014A_015A;
	labelFunc014A_0159:
		abrt();
	labelFunc014A_015A:
		Func08BD();
		UI_sprite_effect_68(0x0009, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		abrt();
	labelFunc014A_018C:
		if(!(gflags[0243] && (gflags[0244] && (gflags[0245] && (gflags[0246] && gflags[0247]))))) goto labelFunc014A_020A;
		var0002 = UI_find_nearest_15(item, 0x012F, 0x0014);
		if(!(!var0002)) goto labelFunc014A_01CD;
		var0002 = UI_find_nearest_15(item, 0x03A8, 0x0014);
		if(!(!var0002)) goto labelFunc014A_01CD;
		abrt();
	labelFunc014A_01CD:
		UI_sprite_effect_68(0x001A, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x001E);
		Func0924(var0002, 0xFE99);
		Func08BD();
		goto labelFunc014A_0238;
	labelFunc014A_020A:
		UI_sprite_effect_68(0x000D, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0046);
	labelFunc014A_0238:
		return;
}
Func014E 0x14E (var var0000)
{
	if(!(event == 0x0008)) goto labelFunc014E_0010;
	UI_set_polymorph_B3(item, 0x02D1);
	labelFunc014E_0010:
		return;
}
// externs
extern Func098A 0x98A (var var0000, var var0001);

Func0150 0x150 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0150_0015;
	Func098A(item, 0x0152);
	labelFunc0150_0015:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0151 0x151 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	var0000 = UI_get_npc_id_BC(item);
	if(!(event == 0x0000)) goto labelFunc0151_0214;
	if(!((var0000 < 0x0001) || (var0000 > 0x0004))) goto labelFunc0151_0023;
	abrt();
	labelFunc0151_0023:
		var0001 = UI_find_nearby_41(item, 0x0151, 0x0019, 0x0000);
		var0001 = Func0988(item, var0001);
		if(!(var0000 == 0x0001)) goto labelFunc0151_010C;
		var0002 = UI_get_temperature_B8(item);
		if(!(var0002 < 0x001E)) goto labelFunc0151_0067;
		var0002 = (var0002 + 0x0001);
		goto labelFunc0151_0086;
	labelFunc0151_0067:
		var0002 = 0x0000;
		enum();
	labelFunc0151_006E:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0151_0086);
		UI_set_schedule_type_25(var0005, 0x000C);
		goto labelFunc0151_006E;
	labelFunc0151_0086:
		UI_set_temperature_BA(item, var0002);
		if(!((var0002 == 0x0004) || ((var0002 == 0x0008) || (var0002 == 0x000C)))) goto labelFunc0151_00DC;
		var0006 = false;
		enum();
	labelFunc0151_00AD:
		for (var0005 in var0001 with var0007 to var0008 atend labelFunc0151_00DC);
		if(!((UI_get_schedule_type_24(var0005) != 0x001D) && (!var0006))) goto labelFunc0151_00D9;
		UI_set_schedule_type_25(var0005, 0x001D);
		var0006 = true;
	labelFunc0151_00D9:
		goto labelFunc0151_00AD;
	labelFunc0151_00DC:
		var0009 = ["@I am not sure...@", "@Death is no reward...@", "@Seek death, friends!@", "@Chaos hath no answers.@", "@Was Order wrong?@", "@I have no faith.@"];
		var000A = ["@None of us are.@", "@The Void is the reward!@", "@But we are Death.@", "@I have no questions.@", "@Imbalance was wrong.@", "@Do not despair, old friend.@"];
	labelFunc0151_010C:
		if(!(var0000 == 0x0002)) goto labelFunc0151_0146;
		var0009 = ["@Chaos shall triumph!@", "@The Void is my reward.@", "@I am not a ghost.@", "@Remember the Hierophant's words.@", "@The war is never over.@", "@Still, the Great One slumbers...@"];
		var000A = ["@All is ashes.@", "@The Void is nothing.@", "@Then what are we?@", "@Empty words.@", "@Sad, but true.@", "@Hush, he listens now...@"];
	labelFunc0151_0146:
		if(!(var0000 == 0x0003)) goto labelFunc0151_0180;
		var0009 = ["@A Champion shall arise...@", "@We shall be released soon.@", "@Have faith, friends.@", "@Do not doubt.@", "@Someone comes!@", "@Listen to the Void...@"];
		var000A = ["@Promises...@", "@It hath been too long!@", "@We shall try.@", "@'Tis hard to believe.@", "@I do not see...@", "@Yes, it sings to me!@"];
	labelFunc0151_0180:
		if(!(var0000 == 0x0004)) goto labelFunc0151_01BA;
		var0009 = ["@Kill the offenders!@", "@Chaos must triumph!@", "@There is no compromise.@", "@The battle is now!@", "@I despise Order...@", "@I am so tired!@"];
		var000A = ["@All are dead, friend.@", "@Chaos remains alone.@", "@We must agree!@", "@There are no enemies.@", "@Order is not evil, friend.@", "@We are ancient souls.@"];
	labelFunc0151_01BA:
		var000B = UI_get_random_00(0x0006);
		UI_clear_item_say_4E(item);
		var000C = UI_execute_usecode_array_01(item, [0x23, 0x52, var0009[var000B]]);
		if(!var0001) goto labelFunc0151_0214;
		var000D = var0001[UI_get_random_00(UI_get_array_size_73(var0001))];
		UI_clear_item_say_4E(var000D);
		var000C = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, var000A[var000B]], 0x0005);
	labelFunc0151_0214:
		if(!((event == 0x0001) && (var0000 != 0x0000))) goto labelFunc0151_02C2;
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		item;
		calle();
		if(!(var0000 != 0x0005)) goto labelFunc0151_025C;
		var000C = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Yesss?@"], 0x0000);
		UI_set_schedule_type_25(item, 0x0003);
		goto labelFunc0151_02C2;
	labelFunc0151_025C:
		if(!(!Func097D(0xFE9B, 0x0001, 0x02C1, 0x0000, 0x004B))) goto labelFunc0151_02C2;
		var000E = UI_find_nearby_41(item, 0x02C1, 0x0019, 0x0000);
		var000F = false;
		enum();
	labelFunc0151_0288:
		for (var0012 in var000E with var0010 to var0011 atend labelFunc0151_02A8);
		if(!(UI_get_item_quality_1C(var0012) == 0x004B)) goto labelFunc0151_02A5;
		var000F = true;
	labelFunc0151_02A5:
		goto labelFunc0151_0288;
	labelFunc0151_02A8:
		if(!(!var000F)) goto labelFunc0151_02BA;
		UI_set_schedule_type_25(item, 0x0003);
		goto labelFunc0151_02C2;
	labelFunc0151_02BA:
		UI_set_schedule_type_25(item, 0x0014);
	labelFunc0151_02C2:
		if(!(event == 0x0009)) goto labelFunc0151_0763;
		if(!(var0000 < 0x0005)) goto labelFunc0151_02DF;
		UI_set_schedule_type_25(item, 0x001D);
		goto labelFunc0151_02E7;
	labelFunc0151_02DF:
		UI_set_schedule_type_25(item, 0x0014);
	labelFunc0151_02E7:
		if(!(var0000 == 0x0001)) goto labelFunc0151_030F;
		UI_show_npc_face0_05(0xFEEB, 0x0000);
		UcMessage("\"I can only be disturbed for a moment, as the others will miss me. We must continue our Dirge.\"");
		UcSay;
		UI_add_answer_0C(["name", "others", "Dirge"]);
	labelFunc0151_030F:
		if(!(var0000 == 0x0002)) goto labelFunc0151_0337;
		UI_show_npc_face0_05(0xFEEB, 0x0000);
		UcMessage("\"How darest thou interrupt the Ceremony! Dost thou not recognize the influence of Chaos in this place?\"");
		UcSay;
		UI_add_answer_0C(["name", "Ceremony", "Chaos"]);
	labelFunc0151_0337:
		if(!(var0000 == 0x0003)) goto labelFunc0151_035F;
		UI_show_npc_face0_05(0xFEEB, 0x0000);
		UcMessage("\"At last, a stranger! Oh, but have we met before? This existence is confusing...\"");
		UcSay;
		UI_add_answer_0C(["name", "met", "existence"]);
	labelFunc0151_035F:
		if(!(var0000 == 0x0004)) goto labelFunc0151_0387;
		UI_show_npc_face0_05(0xFEEB, 0x0000);
		UcMessage("\"Art thou a spy? Come, friends, we must kill the spy sent by the Hierophant of Order!\"");
		UcSay;
		UI_add_answer_0C(["spy", "Hierophant", "Order"]);
	labelFunc0151_0387:
		if(!(var0000 == 0x0005)) goto labelFunc0151_03F7;
		var0013 = UI_get_object_position_20(item);
		var0012 = UI_create_new_object_2C(0x02C1);
		if(!var0012) goto labelFunc0151_03D4;
		UI_set_item_frame_1B(var0012, 0x0000);
		var0014 = UI_set_item_quality_1D(var0012, 0x004B);
		UI_clear_item_flag_A5(var0012, 0x0012);
		var000C = UI_update_last_created_2F(var0013);
	labelFunc0151_03D4:
		var000C = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Oh!@"]);
		var0015 = Func0992(0x0001, "@Look! A book...@", "@A book...@", true);
		abrt();
	labelFunc0151_03F7:
		if(!(var0000 == 0x0006)) goto labelFunc0151_041F;
		UI_show_npc_face0_05(0xFEEB, 0x0000);
		UcMessage("\"Canst thou not see that we are trying to help thee! Everything that we say hath meaning. Thou must vanquish the foe...\"");
		UcSay;
		UI_add_answer_0C(["help", "we?", "foe"]);
	labelFunc0151_041F:
		if(!(var0000 != 0x0000)) goto labelFunc0151_0430;
		UI_add_answer_0C("bye");
	labelFunc0151_0430:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		if(!(var0000 == 0x0001)) goto labelFunc0151_047C;
		UcMessage("\"I am afraid that I have forgotten. Thou must understand, I have been dead a very long time.\"");
		UcSay;
		UcMessage("\"Death whispers most sweetly, but my soul is not allowed to respond. I do not desire to persist in this life.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_047C;
	labelFunc0151_0462:
		UcMessage("\"I must be going. The others are waiting...\"");
		UcSay;
		var000C = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Begin again!@"], 0x0000);
		abrt();
	labelFunc0151_047C:
		if(!(var0000 == 0x0002)) goto labelFunc0151_049F;
		UcMessage("\"Quake at my words, for I am Sesyntho, Scribe to the Hierophant of Chaos! The others say that I am dead, but I am no ghost.\"");
		UcSay;
		UcMessage("\"Canst thou not see that this is merely a time of waiting, before our ascension into the Void? So it cannot be called Death.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_049F;
		goto labelFunc0151_0462;
	labelFunc0151_049F:
		if(!(var0000 == 0x0003)) goto labelFunc0151_04C6;
		UcMessage("\"In life, I was Sansalys, the keeper of the Library of Chaos. Alas, the books are taken, except for a few.\"");
		UcSay;
		UcMessage("\"There is another who awaits thee there. She would aid thee, but of necessity her aid will be strange to thee.\"");
		UcSay;
		UcMessage("\"There is a law which forbids us from directly helping thee. I know that thou art our hope, yet my tongue is ensnared! I cannot speak the truth clearly.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_04C6;
		goto labelFunc0151_0462;
	labelFunc0151_04C6:
		cmps("others");
		UI_remove_answer_0D("others");
		UcMessage("\"There are four of us here, doomed to perform the same lines over and over 'til eternity dawns.\"");
		UcSay;
		UcMessage("\"One was a priest, another a librarian, and the last was a soldier. I was something once, but I do not recall.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_04EE;
		goto labelFunc0151_0462;
	labelFunc0151_04EE:
		cmps("Dirge");
		UI_remove_answer_0D("Dirge");
		UcMessage("\"We must mourn the fate of Chaos, for surely it hath been destroyed in this land. Order hath won.\"");
		UcSay;
		UcMessage("\"Yet, I doubt if there can be any victory. How can Imbalance be victory? We are opposites, not enemies.\"");
		UcSay;
		UcMessage("\"Oh, I speak blasphemy! But I cannot take back my words...\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_051A;
		goto labelFunc0151_0462;
	labelFunc0151_051A:
		cmps("Ceremony");
		UI_remove_answer_0D("Ceremony");
		UcMessage("\"Stay and listen to our words, for we are performing a great Ode in honor of the Serpent of Chaos. He shall hear and reward us.\"");
		UcSay;
		UcMessage("\"While the Great One yet slumbers, the Chaos Serpent hath the power to prevail over Order. I will have faith, unlike these others.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_0542;
		goto labelFunc0151_0462;
	labelFunc0151_0542:
		cmps("Chaos");
		UI_remove_answer_0D("Chaos");
		UcMessage("\"Oh, the beauty of pure Chaos! 'Tis the unity of all the discordant elements of Nature, without pattern or order.\"");
		UcSay;
		UcMessage("\"We are Chaos -- it is our belief, and we are its adherents. We are followers of the Red Serpent.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_056A;
		goto labelFunc0151_0462;
	labelFunc0151_056A:
		cmps("met");
		UI_remove_answer_0D("met");
		UcMessage("\"I am sorry, but if we have met before, I cannot recall. It seems that we live the same moments repeatedly, and the interruptions fade so quickly away.\"");
		UcSay;
		UcMessage("\"Life as a spectral being is so tedious. Once, I was a woman in the prime of my life. Now I merely exist...\"");
		UcSay;
		UcMessage("\"I miss the flesh! There were pains and sorrow, but it was far better than this joyless life.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_0596;
		goto labelFunc0151_0462;
	labelFunc0151_0596:
		cmps("existence");
		UI_remove_answer_0D("existence");
		UcMessage("\"We are locked into this existence, ghosts endlessly reciting the same arguments, as if our doom is somehow tied to the greater cycle.\"");
		UcSay;
		UcMessage("\"If the War of Imbalance doth finally end, if Chaos is victorious or Order doth take the win, then we shall be freed to enter the Void.\"");
		UcSay;
		UcMessage("\"I cannot help but think that thou art connected with our fate. How, I cannot say.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_05C2;
		goto labelFunc0151_0462;
	labelFunc0151_05C2:
		cmps("spy");
		UI_remove_answer_0D("spy");
		UcMessage("\"One sent by the Soldiers of Order, to break our wills and stop the Ode to Chaos. Why else dost thou listen so attentively?\"");
		UcSay;
		if(!(!UI_get_item_flag_A3(0xFEDA, 0x0004))) goto labelFunc0151_0604;
		UcMessage("\"I predict this: I see thee lying dead at the feet of one who prowls this labyrinth.\"");
		UcSay;
		if(!(!Func097D(0xFE9B, 0x0001, 0x00E7, 0xFE99, 0xFE99))) goto labelFunc0151_0601;
		UcMessage("\"Thou hast not the weapon to defeat him! His powers overwhelm thee, and thou dost die!\"");
		UcSay;
	labelFunc0151_0601:
		goto labelFunc0151_0608;
	labelFunc0151_0604:
		UcMessage("\"Thou hast slain the lurker of these depths, but others await thee! Thou shalt not prevail, stranger.\"");
		UcSay;
	labelFunc0151_0608:
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_0619;
		goto labelFunc0151_0462;
	labelFunc0151_0619:
		cmps("Hierophant");
		UI_remove_answer_0D("Hierophant");
		UcMessage("\"His words were the Words of Chaos. He communed with the Serpent, and wore his armour upon his breast. He was our Serpent Father.\"");
		UcSay;
		UcMessage("\"They have slain him, and there is none to replace him. I do not know his burial spot. I weep for him.\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_0641;
		goto labelFunc0151_0462;
	labelFunc0151_0641:
		cmps("Order");
		UI_remove_answer_0D("Order");
		UcMessage("\"To speak of Order is to defile my lips! They are opposite to rightfulness, they are wrongfulness, they are anathema.\"");
		UcSay;
		UcMessage("\"I despise pattern, and disrespect all laws, and I prize mine individuality above all else!\"");
		UcSay;
		if(!(UI_get_random_00(0x0006) > 0x0003)) goto labelFunc0151_0669;
		goto labelFunc0151_0462;
	labelFunc0151_0669:
		cmps("help");
		UI_remove_answer_0D("help");
		UcMessage("\"I cannot... it is not permitted... words cannot be spoken...\"");
		UcSay;
		UcMessage("\"'Tis forbidden to help thee directly, stranger. Thou must discern things for thyself.\"");
		UcSay;
	labelFunc0151_0680:
		cmps("we?");
		UI_remove_answer_0D("we?");
		UcMessage("\"We are the Souls of Chaos, the spirits condemned to prowl these corridors until Chaos is restored.\"");
		UcSay;
		UcMessage("\"In life, we were victims of the Soldiers of Order. I was burned alive.\"");
		UcSay;
	labelFunc0151_0697:
		cmps("foe");
		UI_remove_answer_0D("foe");
		UcMessage("\"The intruder is thine enemy, and is not one with us. He doth not comprehend Chaos. If thou wilt listen to the others, they can aid thee.\"");
		UcSay;
	labelFunc0151_06AA:
		cmps("bye");
		Func097F(0xFE9C, "@Thanks!@", 0x0000);
		if(!(var0000 < 0x0005)) goto labelFunc0151_06DD;
		var000C = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Begin again!@"], 0x0005);
	labelFunc0151_06DD:
		if(!(var0000 == 0x0006)) goto labelFunc0151_075C;
		var000C = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Goodbye...@"], 0x0000);
		UI_reduce_health_87(item, 0x0037, 0x0000);
		var0016 = UI_get_object_position_20(item);
		var0016[0x0001] = (var0016[0x0001] - (var0016[0x0003] / 0x0002));
		var0016[0x0002] = (var0016[0x0002] - (var0016[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0015, var0016[0x0001], var0016[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0151_075C:
		goto labelFunc0151_0762;
	labelFunc0151_075F:
		goto labelFunc0151_0430;
	labelFunc0151_0762:
		end_conv();
	labelFunc0151_0763:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern Func0950 0x950 (var var0000);

Func0152 0x152 (var var0000)
{
	var var0001;
	var var0002;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0152_001B;
	UI_set_item_shape_14(item, 0x0150);
	UI_halt_scheduled_71(item);
	labelFunc0152_001B:
		if(!(event == 0x000A)) goto labelFunc0152_004D;
		UI_set_item_shape_14(item, 0x0150);
		var0000 = Func090C(0xFE9C, item);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6A, 0x61]);
	labelFunc0152_004D:
		if(!(event == 0x0005)) goto labelFunc0152_0059;
		Func0950(item);
	labelFunc0152_0059:
		return;
}
// externs
extern Func0945 0x945 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0954 0x954 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0154 0x154 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = false;
	if(!(event == 0x0001)) goto labelFunc0154_0208;
	Func0945(item);
	var0001 = UI_get_item_frame_1A(item);
	var0002 = UI_click_on_item_3F();
	var0003 = UI_is_npc_3D(var0002);
	UI_play_sound_effect2_A1(0x0024, item);
	if(!var0003) goto labelFunc0154_019E;
	UI_play_sound_effect_16(0x0039);
	if(!(var0001 == 0x0000)) goto labelFunc0154_0052;
	UI_set_item_flag_A4(var0002, 0x0001);
	labelFunc0154_0052:
		if(!(var0001 == 0x0001)) goto labelFunc0154_0072;
		var0004 = UI_die_roll_17(0x0003, 0x000C);
		Func0976(var0002, var0004);
	labelFunc0154_0072:
		if(!(var0001 == 0x0002)) goto labelFunc0154_00AE;
		UI_clear_item_flag_A5(var0002, 0x0008);
		UI_clear_item_flag_A5(var0002, 0x0007);
		UI_clear_item_flag_A5(var0002, 0x0001);
		UI_clear_item_flag_A5(var0002, 0x0002);
		UI_clear_item_flag_A5(var0002, 0x0003);
	labelFunc0154_00AE:
		if(!(var0001 == 0x0003)) goto labelFunc0154_00C2;
		UI_set_item_flag_A4(var0002, 0x0008);
	labelFunc0154_00C2:
		if(!(var0001 == 0x0004)) goto labelFunc0154_00D6;
		UI_clear_item_flag_A5(var0002, 0x0001);
	labelFunc0154_00D6:
		if(!(var0001 == 0x0005)) goto labelFunc0154_00EA;
		UI_set_item_flag_A4(var0002, 0x0009);
	labelFunc0154_00EA:
		if(!(var0001 == 0x0006)) goto labelFunc0154_00FB;
		UI_cause_light_6C(0x00C8);
	labelFunc0154_00FB:
		if(!(var0001 == 0x0007)) goto labelFunc0154_010F;
		UI_set_item_flag_A4(var0002, 0x0000);
	labelFunc0154_010F:
		if(!(var0001 == 0x0008)) goto labelFunc0154_0166;
		if(!(var0002 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0154_0166;
		var0005 = UI_get_npc_prop_28(0xFE9C, 0x0005);
		var0006 = UI_get_random_00(0x000A);
		if(!((var0005 + var0006) > 0x001F)) goto labelFunc0154_0156;
		var0006 = (0x001F - var0005);
	labelFunc0154_0156:
		var0007 = UI_set_npc_prop_29(0xFE9C, 0x0005, var0006);
	labelFunc0154_0166:
		if(!(var0001 == 0x0009)) goto labelFunc0154_017A;
		UI_set_temperature_BA(var0002, 0x0000);
	labelFunc0154_017A:
		if(!(var0001 >= 0x000A)) goto labelFunc0154_0195;
		var0008 = Func0992(0x0001, "@What is this!@", 0x0000, false);
		abrt();
	labelFunc0154_0195:
		UI_remove_item_84(item);
		abrt();
		goto labelFunc0154_0203;
	labelFunc0154_019E:
		var0009 = [var0002[0x0002], var0002[0x0003], var0002[0x0004]];
		var0008 = Func0992(0x0001, (("@Please, " + Func0954()) + ", waste them not!@"), 0x0000, false);
		var000A = UI_create_new_object_2C(0x0390);
		if(!var000A) goto labelFunc0154_0203;
		UI_set_item_flag_A4(var000A, 0x0012);
		UI_set_item_frame_1B(var000A, UI_die_roll_17(0x0004, 0x0017));
		var0007 = UI_update_last_created_2F(var0009);
	labelFunc0154_0203:
		UI_remove_item_84(item);
	labelFunc0154_0208:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func0856 0x856 ();

Func0162 0x162 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0162_0028;
	UI_item_say_4D(0xFE9C, "@Ho! Goblin King!@");
	item;
	calle();
	Func097F(item, "@What doing here?@", 0x0003);
	UI_set_schedule_type_25(item, 0x0003);
	labelFunc0162_0028:
		if(!(((event == 0x0009) || (event == 0x0007)) && (!UI_get_item_flag_A3(item, 0x001E)))) goto labelFunc0162_0142;
		var0000 = UI_set_npc_prop_29(item, 0x0003, 0x001E);
		UI_set_item_flag_A4(item, 0x001E);
		UI_clear_item_say_4E(item);
		UI_set_schedule_type_25(item, 0x0000);
		UI_show_npc_face0_05(0xFEF2, 0x0000);
		UcMessage("\"So, brave warrior come to kill King Goblin? Ha! We speak first...\"");
		UcSay;
		UI_add_answer_0C(["name", "goblins", "Helm of Monitor", "Simon", "bye"]);
	labelFunc0162_0087:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Me Pomdirgun, Warlord and King of all Goblins. Mine shall be last name thou wilt ever hear.\"");
		UcSay;
	labelFunc0162_009D:
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		UcMessage("\"Once land where Monitor built was Goblin land. Then Men come and take it. So now we kill them.\"");
		UcSay;
		UI_add_answer_0C("Men");
	labelFunc0162_00B7:
		cmps("Men");
		UI_remove_answer_0D("Men");
		UcMessage("\"One day we kill all Men. Today we kill thee. Ha! Then eat thee for supper! Mmm... Tasty!\"");
		UcSay;
	labelFunc0162_00CA:
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"So! Simon told thee I had it. It is mine and I will keep it!\"");
		UcSay;
	labelFunc0162_00DD:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		UcMessage("\"Thou knowest Simon's secret? Doth all of Monitor know?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0162_0114;
		UcMessage("\"Then Simon dead. Was good spy. Didst thou eat him?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0162_010A;
		UcMessage("\"Eagh! Thou dost disgust me.\"");
		UcSay;
		Func0856();
		goto labelFunc0162_0111;
	labelFunc0162_010A:
		UcMessage("\"Simon would not taste very good anyway. I will kill thee now.\"");
		UcSay;
		Func0856();
	labelFunc0162_0111:
		goto labelFunc0162_012B;
	labelFunc0162_0114:
		if(!gflags[003E]) goto labelFunc0162_0124;
		UcMessage("\"Then thou must die to keep his secret!\"");
		UcSay;
		Func0856();
		goto labelFunc0162_012B;
	labelFunc0162_0124:
		UcMessage("\"Why thou knowest that?\"");
		UcSay;
		Func0856();
	labelFunc0162_012B:
		cmps("bye");
		UI_item_say_4D(item, "@I will kill thee now!@");
		Func0856();
	labelFunc0162_013E:
		goto labelFunc0162_0087;
	labelFunc0162_0141:
		end_conv();
	labelFunc0162_0142:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001E))) goto labelFunc0162_0170;
		UI_clear_item_flag_A5(item, 0x001D);
		Func097F(item, "@Thou hast slain me...@", 0x0000);
		UI_reduce_health_87(item, 0x0037, 0x0000);
	labelFunc0162_0170:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func016B 0x16B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0000) && (Func0994() == 0x000E))) goto labelFunc016B_0058;
	UI_clear_item_say_4E(item);
	var0000 = ["@I want an eyeball!@", "@Yes, mistress!@", "@We must hurry!@", "@Break his bones...@", "@I cannot wait!@", "@Skin him alive!@"];
	Func097F(item, var0000[UI_get_random_00(UI_get_array_size_73(var0000))], 0x0000);
	if(!(UI_get_random_00(0x000A) == 0x0001)) goto labelFunc016B_0058;
	UI_set_schedule_type_25(item, 0x0004);
	labelFunc016B_0058:
		if(!(event == 0x0002)) goto labelFunc016B_00D0;
		var0001 = UI_find_nearby_41(item, 0x016B, 0x001E, 0x0000);
		if(!var0001) goto labelFunc016B_00D0;
		var0002 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x016B], UI_get_random_00(0x0014));
		var0003 = UI_get_object_position_20(var0001);
		UI_sprite_effect_68(0x001B, (var0003[0x0001] - 0x0001), (var0003[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_kill_npc_57(var0001);
	labelFunc016B_00D0:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func0922 0x922 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0955 0x955 ();

Func0175 0x175 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = Func0953();
	if(!(event == 0x0002)) goto labelFunc0175_0103;
	var0001 = UI_get_object_position_20(item);
	if(!(UI_get_npc_id_BC(item) == 0x0000)) goto labelFunc0175_0061;
	Func0922(0x0001);
	UI_set_npc_id_BD(item, 0x0001);
	var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Farewell...@", 0x6F, 0x70, 0x27, 0x0002, 0x55, 0x0175, 0x55, 0x07D2, 0x6C, 0x6D, 0x6E], 0x0008);
	goto labelFunc0175_0103;
	labelFunc0175_0061:
		if(!(UI_get_npc_id_BC(item) == 0x000C)) goto labelFunc0175_00B5;
		var0003 = UI_create_new_object_2C(0x037F);
		if(!var0003) goto labelFunc0175_0087;
		var0002 = UI_update_last_created_2F(var0001);
	labelFunc0175_0087:
		var0003 = UI_create_new_object_2C(0x0231);
		if(!var0003) goto labelFunc0175_00A1;
		var0002 = UI_update_last_created_2F(var0001);
	labelFunc0175_00A1:
		UI_remove_item_84(item);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		abrt();
	labelFunc0175_00B5:
		UI_sprite_effect_68(0x000C, (var0001[0x0001] + UI_get_npc_id_BC(item)), (var0001[0x0002] - UI_get_npc_id_BC(item)), 0x0000, 0x0000, UI_get_npc_id_BC(item), Dupre);
		UI_set_npc_id_BD(item, (UI_get_npc_id_BC(item) + 0x0001));
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0175]);
		abrt();
	labelFunc0175_0103:
		if(!(event == 0x0009)) goto labelFunc0175_0356;
		UI_play_music_39(0x0032, Func09A0(0x0005, 0x0001));
		UI_show_npc_face0_05(0xFEF5, 0x0000);
		gflags[0279] = true;
		UcMessage("\"At last, I am awakened from the slumber of death. I know thee, for the Great Earth Serpent hath whispered to me of thee. Welcome, noble Avatar! Thou hast arrived on the very brink of disaster. It is up to thee to restore the land to its needful Balance.\"");
		UcSay;
		if(!(Func097D(0xFE9B, 0x0001, 0x0280, 0xFE99, 0x0000) && (Func097D(0xFE9B, 0x0001, 0x027E, 0xFE99, 0x0000) && Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0002)))) goto labelFunc0175_016F;
		UcMessage("\"I see that thou art equipped with the Serpent Staff, the Serpent Armour and the Serpent Crown.\" *\"Now I must tell thee what must be done...\"");
		UcSay;
		goto labelFunc0175_0187;
	labelFunc0175_016F:
		UcMessage("\"But first, thou must arm thyself with the symbols of my authority --\"");
		UcSay;
		UcMessage("\"the Staff, Armour, and Crown of the Great Earth Serpent.\"");
		UcSay;
		UI_add_answer_0C(["Staff", "Armour", "Crown"]);
	labelFunc0175_0187:
		UI_add_answer_0C(["Great Earth Serpent", "quest", "bye"]);
	labelFunc0175_0197:
		UcAsk;
		cmps("Great Earth Serpent");
		UI_remove_answer_0D("Great Earth Serpent");
		UcMessage("\"Dost thou not recognize Him? 'Twas he whom thou didst free from the tyranny of Exodus, in thine adventurings of long, long ago. It is he who speaks to thee now, in his whisperings from the deeps.\"");
		UcSay;
		UcMessage("\"It was the Great Serpent who maintained Balance in the land, but when Exodus stole him, the Serpents of Chaos and Order were left unto themselves.\"");
		UcSay;
		UcMessage("\"Thus came the War of Imbalance, and when the Great Earth Serpent did return, it was too late! Order had won, and Chaos was divided into the crippled Banes!\"");
		UcSay;
	labelFunc0175_01B5:
		cmps("Staff");
		UI_remove_answer_0D("Staff");
		if(!Func097D(0xFE9B, 0x0001, 0x0280, 0xFE99, 0x0000)) goto labelFunc0175_01E4;
		UcMessage("\"Good. Thou hast my Serpent Staff... It was both a support and a weapon to smite those who would unseat the delicate balance.\"");
		UcSay;
		UcMessage("\"Alas, it did me little good in the end...\"");
		UcSay;
		goto labelFunc0175_01EC;
	labelFunc0175_01E4:
		UcMessage("\"Thou dost not have my Serpent Staff... Thou must travel to the fiery depths to find where it now lies.\"");
		UcSay;
		gflags[0278] = true;
	labelFunc0175_01EC:
		cmps("Armour");
		UI_remove_answer_0D("Armour");
		if(!Func097D(0xFE9B, 0x0001, 0x027E, 0xFE99, 0x0000)) goto labelFunc0175_021B;
		UcMessage("\"Thou dost possess the Serpent Armour... fine, fine. It is more than a symbol of the Great Earth Serpent's power.\"");
		UcSay;
		UcMessage("\"The Serpent Armour wilt help thee to surmount the final challenges at the Grand Shrine of balance. Unfortunately, it proved to be little protection against treachery...\"");
		UcSay;
		goto labelFunc0175_021F;
	labelFunc0175_021B:
		UcMessage("\"Before thou canst complete thy quest, thou must have the Serpent Armour. Thou must ease the troubled heart of Love before thou canst hope to obtain it. She was once Beauty herself, but Chaos hath painted her with ugliness...\"");
		UcSay;
	labelFunc0175_021F:
		cmps("Crown");
		UI_remove_answer_0D("Crown");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0002)) goto labelFunc0175_024A;
		UcMessage("\"I see that thou dost possess my Serpent Crown. Well done! This is the crown my people set upon mine head, recognizing the power of the Great Earth Serpent through me.\" *\"Though I had no wish for crowns, it will aid thee in restoring the land's balance.\"");
		UcSay;
		goto labelFunc0175_0252;
	labelFunc0175_024A:
		UcMessage("\"Seek out the resting place of the Serpent Crown... Without the symbol of the Great Earth Serpent's power in the land, thou canst not hope to complete thy quest.\"");
		UcSay;
		UcMessage("\"Thou didst know he who held this treasure, but he hath been killed by the Banes of Chaos. Yet he left clues which shall show thee the way...\"");
		UcSay;
	labelFunc0175_0252:
		cmps("quest");
		UI_remove_answer_0D("quest");
		UcMessage("\"Be warned, ");
		UcMessage(var0000);
		UcMessage(". None but thou can prevail against the Imbalance. And time grows short...\"");
		UcSay;
		UcMessage("\"Alas, I must give thee bitter news! Before thou canst restore Balance, thou must reunite the Chaos Serpent.\"");
		UcSay;
		UcMessage("\"I grieve that I cannot tell thee how this is done... Such knowledge was for the Chaos Hierophant only.\"");
		UcSay;
		UI_add_answer_0C(["Chaos Hierophant", "Chaos Serpent", "Balance"]);
	labelFunc0175_0283:
		cmps("Chaos Hierophant");
		UI_remove_answer_0D("Chaos Hierophant");
		UcMessage("\"As with me, thou must wrest him from his last slumber to reveal his truths to thee... but alas, he was killed in the War, and I know not where his remains lie.\"");
		UcSay;
		UcMessage("\"Yet I must hope that thou shalt find his burial site... or all is lost.\"");
		UcSay;
	labelFunc0175_029A:
		cmps("Chaos Serpent");
		UI_remove_answer_0D("Chaos Serpent");
		UcMessage("\"Hear wisdom! The Banes of Chaos are not thine enemy, nor are they evil in themselves. It is their disunity which hath driven them into cruel insanity.\"");
		UcSay;
		UcMessage("\"Before the land can again live in Balance, the Banes must once more become the Chaos Serpent, united and intelligent.\"");
		UcSay;
		UcMessage("\"The way to do this is the secret held by the Chaos Hierophant. Now thou must seek him out!\"");
		UcSay;
	labelFunc0175_02B5:
		cmps("Balance");
		UI_remove_answer_0D("Balance");
		UcMessage("\"If by some miracle thou art able to make the Chaos Serpent whole, then hasten to the Grand Shrine of Balance. Only there canst thou complete thy work, and end the plagues which afflict this land.\"");
		UcSay;
		UcMessage("\"Remember to bear each of the symbols of power upon thy person, or thou shalt not enter the most sacred precincts therein.\"");
		UcSay;
	labelFunc0175_02CC:
		cmps("bye");
		UcMessage("\"Do not be hasty, Avatar! I can only speak to thee this once! Art thou sure that thou dost understand all that I have said?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0175_032F;
		UI_play_music_39(0x0032, Func09A0(0x0005, 0x0001));
		UcMessage("\"I must go now -- into the Void! My blessings are given to thee, Hero from Another World!\"");
		UcSay;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		UI_set_schedule_type_25(item, 0x000F);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x6F, 0x70, 0x52, "@Hail to Balance!@", 0x27, 0x0007, 0x55, 0x0175], 0x0008);
		abrt();
		goto labelFunc0175_0352;
	labelFunc0175_032F:
		UcMessage("\"Then ask of me once more.\"");
		UcSay;
		UI_add_answer_0C(["Crown", "Armour", "Staff", "quest", "Chaos Hierophant", "Chaos Serpent", "Balance", "bye"]);
	labelFunc0175_0352:
		goto labelFunc0175_0197;
	labelFunc0175_0355:
		end_conv();
	labelFunc0175_0356:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0907 0x907 (var var0000, var var0001);
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);
extern Func09A5 0x9A5 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0178 0x178 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc0178_000F;
	exit2();
	labelFunc0178_000F:
		var0000 = UI_get_item_quality_1C(item);
		var0001 = Func0906(item);
		if(!(var0001 == 0x0001)) goto labelFunc0178_0068;
		if(!Func0908(item, 0x010E, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc0178_0065;
		Func0909(item, 0x01B1, 0x0001, 0x0002, 0x01B0, 0x0000, 0x0003, 0x0000, 0x0001);
		UI_play_sound_effect2_A1(0x001F, item);
		goto labelFunc0178_0068;
	labelFunc0178_0065:
		Func0903();
	labelFunc0178_0068:
		if(!(var0001 == 0x0000)) goto labelFunc0178_00B2;
		if(!Func0908(item, 0x010E, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc0178_00AF;
		Func0909(item, 0x01B1, 0x0000, 0x0001, 0x01B0, 0x0001, 0x0000, Iolo, 0x0007);
		UI_play_sound_effect2_A1(0x0020, item);
		goto labelFunc0178_00B2;
	labelFunc0178_00AF:
		Func0903();
	labelFunc0178_00B2:
		if(!(var0001 == 0x0002)) goto labelFunc0178_0117;
		if(!((var0000 == 0x0006) || (var0000 == 0x0007))) goto labelFunc0178_0113;
		var0002 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x000C, var0002[0x0001], (var0002[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		Func0907(item, 0x0000);
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0178]);
		abrt();
	labelFunc0178_0113:
		Func0904(item);
	labelFunc0178_0117:
		if(!(var0001 == 0x0003)) goto labelFunc0178_0125;
		Func0905(item);
	labelFunc0178_0125:
		var0004 = UI_get_object_position_20(item);
		if(!((var0004[0x0001] == 0x091F) && ((var0004[0x0002] == 0x0559) && (var0004[0x0003] == 0x0000)))) goto labelFunc0178_0177;
		if(!(UI_get_item_frame_1A(item) == 0x000D)) goto labelFunc0178_0177;
		UI_close_gumps_98();
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x27, 0x0001, 0x55, 0x07DF]);
	labelFunc0178_0177:
		if(!(var0000 == 0x00DC)) goto labelFunc0178_0185;
		Func09A5();
		abrt();
	labelFunc0178_0185:
		if(!((var0000 == 0x0006) || (var0000 == 0x0007))) goto labelFunc0178_0233;
		if(!(var0000 == 0x0006)) goto labelFunc0178_01AA;
		var0006 = 0x0003;
		goto labelFunc0178_01C0;
	labelFunc0178_01AA:
		var0006 = Iolo;
		UI_play_music_39(0x0018, Func09A0(0x0005, 0x0001));
	labelFunc0178_01C0:
		var0007 = UI_get_distance_21(item, 0xFE9C);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0004[0x0001] = (var0004[0x0001] + var0006);
		var0004[0x0002] = (var0004[0x0002] - 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, var0004, 0x000A, item, 0x07F6, true);
		UI_play_sound_effect_16(0x0039);
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07F6], (var0007 + 0x0002));
		Func097F(0xFE9C, "@Can't stop myself...@", 0x0002);
	labelFunc0178_0233:
		return;
}
// externs
extern Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003);

Func0179 0x179 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = [0x0004, 0x0006, 0x0002, 0x0005, 0x0006, 0x0006, 0x0001, 0x000C, 0x0018, 0x0010, 0x0018, 0x0018, 0x0004, 0x0008, 0x0010, 0x000A, 0x0002, 0x0003, 0x0002, 0x0001, 0x0004, 0x0003, 0x0001, 0x0018, 0x0003, 0x0001, 0x0009, 0x0002, 0x0014, 0x0008, 0x0006, 0x001F];
	var0001 = var0000[(UI_get_item_frame_1A(item) + 0x0001)];
	var0002 = UI_click_on_item_3F();
	Func08AD(item, var0001, 0x0026, var0002);
	return;
}
// externs
extern var Func0953 0x953 ();

Func017B 0x17B (var var0000)
{
	var var0001;
	var var0002;

	if(!(event != 0x0001)) goto labelFunc017B_0009;
	exit2();
	labelFunc017B_0009:
		var0000 = Func0953();
		var0001 = UI_get_item_quality_1C(item);
		if(!(var0001 > 0x0096)) goto labelFunc017B_0037;
		UI_display_runes_3E(0x002C, ["REPORT", "THIS", "SIGN"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0037:
		if(!(var0001 == 0x000C)) goto labelFunc017B_0057;
		UI_display_runes_3E(0x002C, ["house", "of", "wares"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0057:
		if(!(var0001 == 0x0011)) goto labelFunc017B_0071;
		UI_display_runes_3E(0x002C, ["bakery"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0071:
		if(!(var0001 == 0x0012)) goto labelFunc017B_008B;
		UI_display_runes_3E(0x002C, ["jeweler"]);
		goto labelFunc017B_0A93;
	labelFunc017B_008B:
		if(!(var0001 == 0x0013)) goto labelFunc017B_00A8;
		UI_display_runes_3E(0x002C, ["farmers'", "market"]);
		goto labelFunc017B_0A93;
	labelFunc017B_00A8:
		if(!(var0001 == 0x0014)) goto labelFunc017B_00C2;
		UI_display_runes_3E(0x002C, ["apo(ecary"]);
		goto labelFunc017B_0A93;
	labelFunc017B_00C2:
		if(!(var0001 == 0x0015)) goto labelFunc017B_00DF;
		UI_display_runes_3E(0x002C, ["royal", "mint"]);
		goto labelFunc017B_0A93;
	labelFunc017B_00DF:
		if(!(var0001 == 0x0016)) goto labelFunc017B_00FF;
		UI_display_runes_3E(0x002C, ["csil", "(e", "h+ler"]);
		goto labelFunc017B_0A93;
	labelFunc017B_00FF:
		if(!(var0001 == 0x0017)) goto labelFunc017B_0119;
		UI_display_runes_3E(0x002C, ["provisions"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0119:
		if(!(var0001 == 0x0018)) goto labelFunc017B_0139;
		UI_display_runes_3E(0x002C, ["to", "sl)pi*", "bull"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0139:
		if(!(var0001 == 0x002C)) goto labelFunc017B_0153;
		UI_display_runes_3E(0x002C, ["go|(is|way"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0153:
		if(!(var0001 == 0x002D)) goto labelFunc017B_016A;
		UI_display_runes_3E(0x002C, "DO NOT GO THIS WAY");
		goto labelFunc017B_0A93;
	labelFunc017B_016A:
		if(!(var0001 == 0x002E)) goto labelFunc017B_0181;
		UI_display_runes_3E(0x002C, "DO NOT GO IN THE WOODEN DOOR");
		goto labelFunc017B_0A93;
	labelFunc017B_0181:
		if(!(var0001 == 0x002F)) goto labelFunc017B_0198;
		UI_display_runes_3E(0x002C, "DO NOT GO IN THE WINDOWED DOOR");
		goto labelFunc017B_0A93;
	labelFunc017B_0198:
		if(!(var0001 == 0x0030)) goto labelFunc017B_01AF;
		UI_display_runes_3E(0x002C, "GO IN THE STEEL DOOR");
		goto labelFunc017B_0A93;
	labelFunc017B_01AF:
		if(!(var0001 == 0x0031)) goto labelFunc017B_01C6;
		UI_display_runes_3E(0x002C, "DO NOT GO IN THE GREEN DOOR");
		goto labelFunc017B_0A93;
	labelFunc017B_01C6:
		if(!(var0001 == 0x0032)) goto labelFunc017B_01DD;
		UI_display_runes_3E(0x002C, "ONLY ONE OF THESE SIGNS IS TRUE");
		goto labelFunc017B_0A93;
	labelFunc017B_01DD:
		if(!(var0001 == 0x0033)) goto labelFunc017B_01F4;
		UI_display_runes_3E(0x002C, "AT LEAST TWO SIGNS ARE FALSE");
		goto labelFunc017B_0A93;
	labelFunc017B_01F4:
		if(!(var0001 == 0x003D)) goto labelFunc017B_0211;
		UI_display_runes_3E(0x002C, ["we,|gate", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0211:
		if(!(var0001 == 0x003E)) goto labelFunc017B_022E;
		UI_display_runes_3E(0x002C, ["nor(|gate", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_022E:
		if(!(var0001 == 0x003F)) goto labelFunc017B_024B;
		UI_display_runes_3E(0x002C, ["pikeman's", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_024B:
		if(!(var0001 == 0x0040)) goto labelFunc017B_0268;
		UI_display_runes_3E(0x002C, ["kosric", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0268:
		if(!(var0001 == 0x0041)) goto labelFunc017B_0285;
		UI_display_runes_3E(0x002C, ["pedigar", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0285:
		if(!(var0001 == 0x0042)) goto labelFunc017B_02A2;
		UI_display_runes_3E(0x002C, ["roland", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_02A2:
		if(!(var0001 == 0x0043)) goto labelFunc017B_02BF;
		UI_display_runes_3E(0x002C, ["town|hall", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_02BF:
		if(!(var0001 == 0x0044)) goto labelFunc017B_02DC;
		UI_display_runes_3E(0x002C, ["melina", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_02DC:
		if(!(var0001 == 0x0045)) goto labelFunc017B_02F9;
		UI_display_runes_3E(0x002C, ["wolf", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_02F9:
		if(!(var0001 == 0x0046)) goto labelFunc017B_0316;
		UI_display_runes_3E(0x002C, ["leopard", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0316:
		if(!(var0001 == 0x0047)) goto labelFunc017B_0333;
		UI_display_runes_3E(0x002C, ["b+r", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0333:
		if(!(var0001 == 0x0048)) goto labelFunc017B_0350;
		UI_display_runes_3E(0x002C, ["dock", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0350:
		if(!(var0001 == 0x0071)) goto labelFunc017B_036D;
		UI_display_runes_3E(0x002C, ["banquet", ",r)t"]);
		goto labelFunc017B_0A93;
	labelFunc017B_036D:
		if(!(var0001 == 0x0072)) goto labelFunc017B_038A;
		UI_display_runes_3E(0x002C, ["warriors'", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_038A:
		if(!(var0001 == 0x0049)) goto labelFunc017B_03A4;
		UI_display_runes_3E(0x002C, ["undertaker"]);
		goto labelFunc017B_0A93;
	labelFunc017B_03A4:
		if(!(var0001 == 0x004B)) goto labelFunc017B_03BE;
		UI_display_runes_3E(0x002C, ["prison"]);
		goto labelFunc017B_0A93;
	labelFunc017B_03BE:
		if(!(var0001 == 0x004D)) goto labelFunc017B_03D8;
		UI_display_runes_3E(0x002C, ["armoury"]);
		goto labelFunc017B_0A93;
	labelFunc017B_03D8:
		if(!(var0001 == 0x004E)) goto labelFunc017B_03F2;
		UI_display_runes_3E(0x002C, ["blacksmi("]);
		goto labelFunc017B_0A93;
	labelFunc017B_03F2:
		if(!(var0001 == 0x004F)) goto labelFunc017B_040F;
		UI_display_runes_3E(0x002C, ["recr+tion", "center"]);
		goto labelFunc017B_0A93;
	labelFunc017B_040F:
		if(!(var0001 == 0x0050)) goto labelFunc017B_042F;
		UI_display_runes_3E(0x002C, ["hall", "of", "knowledge"]);
		goto labelFunc017B_0A93;
	labelFunc017B_042F:
		if(!(var0001 == 0x0051)) goto labelFunc017B_044F;
		UI_display_runes_3E(0x002C, ["hello", "(ere", "avatar"]);
		goto labelFunc017B_0A93;
	labelFunc017B_044F:
		if(!(var0001 == 0x0052)) goto labelFunc017B_0469;
		UI_display_runes_3E(0x002C, ["to fawn"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0469:
		if(!(var0001 == 0x0055)) goto labelFunc017B_0486;
		UI_display_runes_3E(0x002C, ["paladin's", "pa("]);
		goto labelFunc017B_0A93;
	labelFunc017B_0486:
		if(!(var0001 == 0x0057)) goto labelFunc017B_04A3;
		UI_display_runes_3E(0x002C, ["widow's", "walk"]);
		goto labelFunc017B_0A93;
	labelFunc017B_04A3:
		if(!(var0001 == 0x0058)) goto labelFunc017B_04C0;
		UI_display_runes_3E(0x002C, ["harold's", "hallway"]);
		goto labelFunc017B_0A93;
	labelFunc017B_04C0:
		if(!(var0001 == 0x0059)) goto labelFunc017B_04DA;
		UI_display_runes_3E(0x002C, ["fool's|way"]);
		goto labelFunc017B_0A93;
	labelFunc017B_04DA:
		if(!(var0001 == 0x005A)) goto labelFunc017B_04F7;
		UI_display_runes_3E(0x002C, ["whitsaber", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_04F7:
		if(!(var0001 == 0x005B)) goto labelFunc017B_0511;
		UI_display_runes_3E(0x002C, [",rand"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0511:
		if(!(var0001 == 0x005C)) goto labelFunc017B_052E;
		UI_display_runes_3E(0x002C, ["chalice", "avenue"]);
		goto labelFunc017B_0A93;
	labelFunc017B_052E:
		if(!(var0001 == 0x005D)) goto labelFunc017B_054B;
		UI_display_runes_3E(0x002C, ["two", "coves"]);
		goto labelFunc017B_0A93;
	labelFunc017B_054B:
		if(!(var0001 == 0x005E)) goto labelFunc017B_056B;
		UI_display_runes_3E(0x002C, ["we,", "wall", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_056B:
		if(!(var0001 == 0x005F)) goto labelFunc017B_058B;
		UI_display_runes_3E(0x002C, ["+,", "wall", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_058B:
		if(!(var0001 == 0x0060)) goto labelFunc017B_05AB;
		UI_display_runes_3E(0x002C, ["nor(", "wall", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_05AB:
		if(!(var0001 == 0x0061)) goto labelFunc017B_05CB;
		UI_display_runes_3E(0x002C, ["sou(", "wall", "road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_05CB:
		if(!(var0001 == 0x0062)) goto labelFunc017B_05E8;
		UI_display_runes_3E(0x002C, ["heroes'", "way"]);
		goto labelFunc017B_0A93;
	labelFunc017B_05E8:
		if(!(var0001 == 0x0069)) goto labelFunc017B_0605;
		UI_display_runes_3E(0x002C, ["arti,s'", "guild"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0605:
		if(!(var0001 == 0x006A)) goto labelFunc017B_0625;
		UI_display_runes_3E(0x002C, ["(e|bunk", "and", ",ool"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0625:
		if(!(var0001 == 0x006B)) goto labelFunc017B_0648;
		UI_display_runes_3E(0x002C, ["(e", "library", "of", "scars"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0648:
		if(!(var0001 == 0x006C)) goto labelFunc017B_0665;
		UI_display_runes_3E(0x002C, ["carlyn's", "clo(es"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0665:
		if(!(var0001 == 0x006D)) goto labelFunc017B_0688;
		UI_display_runes_3E(0x002C, ["wi(in|(ese", "walls", "lies|ma,er", "richard"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0688:
		if(!(var0001 == 0x006E)) goto labelFunc017B_06A2;
		UI_display_runes_3E(0x002C, ["ca,le|way"]);
		goto labelFunc017B_0A93;
	labelFunc017B_06A2:
		if(!(var0001 == 0x006F)) goto labelFunc017B_06C2;
		UI_display_runes_3E(0x002C, ["lord", "british", "lane"]);
		goto labelFunc017B_0A93;
	labelFunc017B_06C2:
		if(!(var0001 == 0x0070)) goto labelFunc017B_06DC;
		UI_display_runes_3E(0x002C, ["noble|road"]);
		goto labelFunc017B_0A93;
	labelFunc017B_06DC:
		if(!(var0001 == 0x0073)) goto labelFunc017B_06F9;
		UI_display_runes_3E(0x002C, ["knight's", "te,"]);
		goto labelFunc017B_0A93;
	labelFunc017B_06F9:
		if(!(var0001 == 0x007A)) goto labelFunc017B_0716;
		UI_display_runes_3E(0x002C, ["swamp", "ca(edral"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0716:
		if(!(var0001 == 0x007B)) goto labelFunc017B_0733;
		UI_display_runes_3E(0x002C, ["k)p", "out"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0733:
		if(!(var0001 == 0x007C)) goto labelFunc017B_0753;
		UI_display_runes_3E(0x002C, ["explodi*", "powder", "maker"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0753:
		if(!(var0001 == 0x007D)) goto labelFunc017B_0773;
		UI_display_runes_3E(0x002C, ["form", "one", "line"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0773:
		if(!(var0001 == 0x007E)) goto labelFunc017B_0796;
		UI_display_runes_3E(0x002C, ["present", "gold", "for", "food"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0796:
		if(!(var0001 == 0x007F)) goto labelFunc017B_07B9;
		UI_display_runes_3E(0x002C, ["excha*e", "gold", "for", "potions"]);
		goto labelFunc017B_0A93;
	labelFunc017B_07B9:
		if(!(var0001 == 0x0080)) goto labelFunc017B_07DC;
		UI_display_runes_3E(0x002C, ["trade", "gold", "for", "necessities"]);
		goto labelFunc017B_0A93;
	labelFunc017B_07DC:
		if(!(var0001 == 0x0081)) goto labelFunc017B_07FC;
		UI_display_runes_3E(0x002C, ["watch", "(y", "h+d"]);
		goto labelFunc017B_0A93;
	labelFunc017B_07FC:
		if(!(var0001 == 0x0082)) goto labelFunc017B_081C;
		UI_display_runes_3E(0x002C, ["escape", "is", "impossible"]);
		goto labelFunc017B_0A93;
	labelFunc017B_081C:
		if(!(var0001 == 0x0083)) goto labelFunc017B_0839;
		UI_display_runes_3E(0x002C, ["turn", "back|now"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0839:
		if(!(var0001 == 0x0084)) goto labelFunc017B_0856;
		UI_display_runes_3E(0x002C, ["wro*", "way"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0856:
		if(!(var0001 == 0x0085)) goto labelFunc017B_0873;
		UI_display_runes_3E(0x002C, ["sure", "d+("]);
		goto labelFunc017B_0A93;
	labelFunc017B_0873:
		if(!(var0001 == 0x0086)) goto labelFunc017B_0893;
		UI_display_runes_3E(0x002C, ["welcome", "to", "hamlinberg"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0893:
		if(!(var0001 == 0x0087)) goto labelFunc017B_08B0;
		UI_display_runes_3E(0x002C, ["hazard's", "lodge"]);
		goto labelFunc017B_0A93;
	labelFunc017B_08B0:
		if(!(var0001 == 0x0088)) goto labelFunc017B_08D0;
		UI_display_runes_3E(0x002C, ["l+ve", "animals", "down,airs"]);
		goto labelFunc017B_0A93;
	labelFunc017B_08D0:
		if(!(var0001 == 0x0089)) goto labelFunc017B_08F3;
		UI_display_runes_3E(0x002C, ["dispose", "of|blood", "and|parts", "outside"]);
		goto labelFunc017B_0A93;
	labelFunc017B_08F3:
		if(!(var0001 == 0x008A)) goto labelFunc017B_0916;
		UI_display_runes_3E(0x002C, ["beware", "of", "water", "cr+tures"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0916:
		if(!(var0001 == 0x008B)) goto labelFunc017B_0936;
		UI_display_runes_3E(0x002C, ["(ou", "art", "lo,"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0936:
		if(!(var0001 == 0x008C)) goto labelFunc017B_0959;
		UI_display_runes_3E(0x002C, ["|wadley|", "his|soul", "d)per|(an", "his|body"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0959:
		if(!(var0001 == 0x008D)) goto labelFunc017B_097C;
		UI_display_runes_3E(0x002C, ["here|lies", "jenna", "kindred", "spirit"]);
		goto labelFunc017B_0A93;
	labelFunc017B_097C:
		if(!(var0001 == 0x008E)) goto labelFunc017B_0999;
		UI_display_runes_3E(0x002C, ["d+d", "end"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0999:
		if(!(var0001 == 0x008F)) goto labelFunc017B_09B9;
		UI_display_runes_3E(0x002C, ["to", "skara", "brae"]);
		goto labelFunc017B_0A93;
	labelFunc017B_09B9:
		if(!(var0001 == 0x0090)) goto labelFunc017B_09DC;
		UI_display_runes_3E(0x002C, ["THE", "THRONE", "OF THE", "GUARDIAN"]);
		goto labelFunc017B_0A93;
	labelFunc017B_09DC:
		if(!(var0001 == 0x0091)) goto labelFunc017B_09FC;
		UI_display_runes_3E(0x002C, ["nor(", "to", "britain"]);
		goto labelFunc017B_0A93;
	labelFunc017B_09FC:
		if(!(var0001 == 0x0092)) goto labelFunc017B_0A19;
		UI_display_runes_3E(0x002C, ["pull", "lever"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0A19:
		if(!(var0001 == 0x0093)) goto labelFunc017B_0A39;
		UI_display_runes_3E(0x002C, ["round", "and", "round"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0A39:
		if(!(var0001 == 0x0094)) goto labelFunc017B_0A56;
		UI_display_runes_3E(0x002C, ["way", "out"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0A56:
		if(!(var0001 == 0x0095)) goto labelFunc017B_0A76;
		UI_display_runes_3E(0x002C, ["k)p", "doors", "open"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0A76:
		if(!(var0001 == 0x0096)) goto labelFunc017B_0A93;
		UI_display_runes_3E(0x002C, ["selwyn's", "tower"]);
		goto labelFunc017B_0A93;
	labelFunc017B_0A93:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0956 0x956 (var var0000);
extern var Func089D 0x89D (var var0000);

Func017D 0x17D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0953();
	if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc017D_001C;
	UI_set_schedule_type_25(item, 0x0000);
	labelFunc017D_001C:
		if(!(event == 0x0007)) goto labelFunc017D_00A5;
		var0001 = UI_get_object_position_20(item);
		if(!(var0001[0x0003] > 0x0000)) goto labelFunc017D_0069;
		var0001[0x0001] = (var0001[0x0001] - 0x0001);
		var0001[0x0002] = (var0001[0x0002] - 0x0001);
		var0001[0x0003] = (var0001[0x0003] - 0x0002);
	labelFunc017D_0069:
		UI_sprite_effect_68(0x0007, (var0001[0x0001] - 0x0001), (var0001[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_polymorph_B3(item, 0x017D);
		UI_clear_item_flag_A5(item, 0x001D);
		UI_kill_npc_57(item);
	labelFunc017D_00A5:
		if(!(event == 0x0008)) goto labelFunc017D_00D0;
		var0002 = UI_find_nearby_41(0xFE9C, 0x017D, 0x001E, 0x0008);
		if(!var0002) goto labelFunc017D_00D0;
		UI_set_polymorph_B3(var0002, 0x01CC);
	labelFunc017D_00D0:
		var0003 = UI_get_npc_id_BC(item);
		if(!(var0003 == 0x0000)) goto labelFunc017D_00FA;
		UI_set_npc_id_BD(item, (UI_get_random_00(0x0004) + 0x0002));
		var0003 = UI_get_npc_id_BC(item);
	labelFunc017D_00FA:
		if(!(var0003 == 0x0007)) goto labelFunc017D_014F;
		UI_show_npc_face0_05(0xFEF3, 0x0000);
		UcMessage("\"Thou art a dog, to have brutalized an innocent townsperson. Thy place is behind stout iron bars!!!\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x03DC, 0x0625, 0x0000]);
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x001E);
	labelFunc017D_014F:
		if(!(var0003 == 0x0001)) goto labelFunc017D_047E;
		var0005 = Func0954();
		var0006 = UI_is_pc_female_6F();
		var0007 = Func0953();
		if(!(event == 0x0002)) goto labelFunc017D_0186;
		Func097F(item, "@Stand and be recognized, stranger!@", 0x0005);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc017D_0186:
		if(!(event == 0x0001)) goto labelFunc017D_01A0;
		Func097F(item, "@Stand and be recognized, stranger!@", 0x0005);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc017D_01A0:
		if(!(event == 0x0009)) goto labelFunc017D_047E;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEF3, 0x0000);
		if(!(gflags[014F] == true)) goto labelFunc017D_02D2;
		if(!(gflags[0168] == false)) goto labelFunc017D_0256;
		var0008 = UI_get_schedule_type_24(0xFFC5);
		if(!(var0008 != 0x0003)) goto labelFunc017D_0253;
		UcMessage("\"There hath been trouble of late here in Fawn...\"");
		UcSay;
		UcMessage("\"...And here comes part of it now.\"");
		UcSay;
		var0009 = UI_get_object_position_20(item);
		var0009[0x0002] = (var0009[0x0002] + 0x0014);
		UI_move_object_4B(0xFFC5, [var0009[0x0001], var0009[0x0002], 0x0000]);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFFC5, 0x0003);
		UI_set_new_schedules_B6(0xFFC5, [0x0000], [0x0003], [var0009[0x0001], var0009[0x0002]]);
		abrt();
	labelFunc017D_0253:
		goto labelFunc017D_02CF;
	labelFunc017D_0256:
		UcMessage("\"Be careful of that one. He is nothing but trouble.\"");
		UcSay;
		UcMessage("\"Thou must state thy name and business, before thou canst pass, ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		var000A = Func0956([("I am " + var0000), "I am the Avatar.", "It is not thy business."]);
		if(!(var000A == ("I am " + var0000))) goto labelFunc017D_02A2;
		UcMessage("\"Pleased to meet thee, ");
		UcMessage(var0007);
		UcMessage(". What is thy business here in Fawn?\"");
		UcSay;
		UI_add_answer_0C(["I am merely visiting.", "I am missing a companion.", "It is not thy business."]);
	labelFunc017D_02A2:
		if(!(var000A == "I am the Avatar.")) goto labelFunc017D_02C0;
		UcMessage("\"And I am the Lady of Fawn! Thou wilt not go far with such here, stranger.\" *\"What is thy business here in Fawn?\"");
		UcSay;
		UI_add_answer_0C(["I am merely visiting.", "I am missing a companion.", "It is not thy business."]);
	labelFunc017D_02C0:
		if(!(var000A == "It is not thy business.")) goto labelFunc017D_02CF;
		UcMessage("\"If thou wilt not tell me thy name and business, thou canst not enter the city. Come back when thou art feeling more talkative.\"");
		UcSay;
		abrt();
	labelFunc017D_02CF:
		goto labelFunc017D_02FD;
	labelFunc017D_02D2:
		UcMessage("\"Thou shouldst avoid trouble whilst thou art here.\"");
		UcSay;
		if(!UI_find_nearby_avatar_3C(0x0203)) goto labelFunc017D_02F0;
		UI_add_answer_0C(["duty", "pass"]);
		goto labelFunc017D_02FD;
	labelFunc017D_02F0:
		UI_add_answer_0C(["duty", "bye"]);
	labelFunc017D_02FD:
		UcAsk;
		cmps("I am merely visiting.");
		UcMessage("\"Welcome to Fawn, then! Keep away from trouble whilst thou art here.\" *\"We have enough to worry about, what with storms, goblins, and Fellowship troublemakers.\"");
		UcSay;
		gflags[014F] = false;
		UI_remove_answer_0D(["I am merely visiting.", "I am missing a companion.", "It is not thy business."]);
		UI_add_answer_0C(["storms", "goblins", "Fellowship troublemakers", "pass"]);
	labelFunc017D_0333:
		cmps("storms");
		UcMessage("\"They start without warning, ");
		UcMessage(var0005);
		UcMessage(". So do not stray too far from shelter.\" *\"Be warned, we have orders to close the gate during a storm. So if thou art caught outside of the gate, thine only choice is the traveller's shelter.\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_034C:
		cmps("goblins");
		if(!(gflags[014E] == false)) goto labelFunc017D_0363;
		UcMessage("\"Now that those savages have overtaken the Pikeman tower, the gates must be closed at night. We cannot open them for anyone until morning. So have a care if thou dost venture outside near dark.\"");
		UcSay;
		goto labelFunc017D_0367;
	labelFunc017D_0363:
		UcMessage("\"If those foul savages would dare attack the Pikemen, we cannot leave the gates open at night. Fawn's gates are now closed at night. They cannot be opened for anyone until morning.\" *\"So have a care if thou dost venture outside near dark.\"");
		UcSay;
	labelFunc017D_0367:
		UI_remove_answer_0D("goblins");
	labelFunc017D_036E:
		cmps("Fellowship troublemakers");
		UcMessage("\"I should not have said that, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"Be assured that the Captain is quick with the Wand of Detainment.\"");
		UcSay;
		UI_remove_answer_0D("Fellowship troublemakers");
		UI_add_answer_0C("Wand of Detainment");
	labelFunc017D_038E:
		cmps("duty");
		UcMessage("\"I am a Fawn Guardsman! Thou wouldst do well to stay out of mischief while visiting our city!\"");
		UcSay;
		UI_remove_answer_0D("duty");
	labelFunc017D_03A1:
		cmps("Wand of Detainment");
		UcMessage("\"The Wand of Detainment is a fine gift from the people of Moonshade. With the Wand, the Captain can capture any criminal.\" *\"Keep that in mind if thou shouldst feel mischievous...\"");
		UcSay;
		UI_remove_answer_0D("Wand of Detainment");
	labelFunc017D_03B4:
		cmps("I am missing a companion.");
		UcMessage("\"Thou shouldst try inquiring at The Broken Oar. Keep away from trouble whilst thou art here.\" *\"We have enough to worry about, what with storms, goblins, and Fellowship troublemakers.\"");
		UcSay;
		gflags[014F] = false;
		UI_remove_answer_0D(["I am merely visiting.", "I am missing a companion.", "It is not thy business."]);
		UI_add_answer_0C(["The Broken Oar", "storms", "goblins", "Fellowship troublemakers", "pass"]);
	labelFunc017D_03EA:
		cmps("The Broken Oar");
		UcMessage("\"The Broken Oar is a tavern. It is the only establishment in Fawn that offers rooms to rent.\" *\"Most strangers stay there.\"");
		UcSay;
		UI_remove_answer_0D("The Broken Oar");
	labelFunc017D_03FD:
		cmps("It is not thy business.");
		UcMessage("\"If thou wilt not tell me thy name and business, thou canst not enter the city. Come back when thou art feeling more talkative.\"");
		UcSay;
		abrt();
	labelFunc017D_040A:
		cmps("pass");
		UI_remove_npc_face0_07();
		Func097F(item, (("@Pass through, " + var0005) + ".@"), 0x0000);
		gflags[014F] = false;
		var000B = UI_find_nearby_avatar_3C(0x0203);
		var0004 = Func089D(var000B);
		goto labelFunc017D_0964;
	labelFunc017D_0442:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(item, (("@Pass through, " + var0005) + ".@"), 0x0005);
		gflags[014F] = false;
		var000B = UI_find_nearby_avatar_3C(0x0203);
		var0004 = Func089D(var000B);
		goto labelFunc017D_0964;
	labelFunc017D_047A:
		goto labelFunc017D_02FD;
	labelFunc017D_047D:
		end_conv();
	labelFunc017D_047E:
		if(!(var0003 == 0x0002)) goto labelFunc017D_06A8;
		var0005 = Func0954();
		var0006 = UI_is_pc_female_6F();
		var0007 = Func0953();
		if(!((event == 0x0000) && (UI_get_schedule_type_24(item) == 0x0009))) goto labelFunc017D_04E5;
		if(!(UI_get_random_00(0x000A) < 0x0006)) goto labelFunc017D_04BC;
		abrt();
	labelFunc017D_04BC:
		var000C = ["@A tattooed woman!@", "@I'll show thee mine...@", "@A painted lady!@", "@Want a good time?@", "@I'll protect thee.@", "@Buy thee a drink?@"];
		Func097F(item, var000C[UI_get_random_00(0x0006)], 0x0000);
	labelFunc017D_04E5:
		if(!(event == 0x0001)) goto labelFunc017D_0511;
		UI_item_say_4D(0xFE9C, "@Thou... guard!@");
		Func097F(item, (("@Yes, " + var0005) + "?@"), 0x0005);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc017D_0511:
		if(!(event == 0x0009)) goto labelFunc017D_06A8;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEF3, 0x0000);
		var000D = UI_die_roll_17(0x0001, 0x0004);
		if(!(var000D == 0x0001)) goto labelFunc017D_0567;
		UcMessage("\"Thou shouldst address me by rank while I am on duty, ");
		UcMessage(var0005);
		UcMessage(". I am a Private in Fawn's Guard.\" *\"Dost thou require some assistance?\"");
		UcSay;
		var000E = "Private";
		UI_add_answer_0C(["Why art thou following me?", "Stop following me!", "Never mind."]);
	labelFunc017D_0567:
		if(!(var000D == 0x0002)) goto labelFunc017D_0591;
		UcMessage("\"I am on duty now, ");
		UcMessage(var0005);
		UcMessage(". Thou mayest address me as Corporal.\" *\"Dost thou require some assistance?\"");
		UcSay;
		var000E = "Corporal";
		UI_add_answer_0C(["Why art thou following me?", "Stop following me!", "Never mind."]);
	labelFunc017D_0591:
		if(!(var000D == 0x0003)) goto labelFunc017D_05BB;
		UcMessage("\"While I am on duty, ");
		UcMessage(var0005);
		UcMessage(", thou must address me as Sergeant.\" *\"Dost thou require some assistance?\"");
		UcSay;
		var000E = "Sergeant";
		UI_add_answer_0C(["Why art thou following me?", "Stop following me!", "Never mind."]);
	labelFunc017D_05BB:
		if(!(var000D == 0x0004)) goto labelFunc017D_05E5;
		UcMessage("\"I am a Lieutenant in Fawn's Guard. Thou must address me as such, ");
		UcMessage(var0005);
		UcMessage(".\" *\"Dost thou require some assistance?\"");
		UcSay;
		var000E = "Lieutenant";
		UI_add_answer_0C(["Why art thou following me?", "Stop following me!", "Never mind."]);
	labelFunc017D_05E5:
		UcAsk;
		cmps("Why art thou following me?");
		UcMessage("\"Forgive me, ");
		UcMessage(var0005);
		UcMessage(". But, by Law, I must follow thee.\"");
		UcSay;
		UI_remove_answer_0D(["Why art thou following me?", "Stop following me!", "Never mind."]);
		UI_add_answer_0C("Law");
	labelFunc017D_0611:
		cmps("Law");
		UcMessage("\"By Law, all Beauty must be protected, ");
		UcMessage(var0005);
		UcMessage(". Therefore, I am to ensure that thou dost not endanger thyself.\"");
		UcSay;
		UI_remove_answer_0D("Law");
		UI_add_answer_0C("endanger");
	labelFunc017D_0631:
		cmps("endanger");
		UcMessage("\"Thou shouldst not provoke arguments, or stray too close to the docks where thou couldst be injured. I must intervene in any situation in which thy Beauty might be marred. That is my duty.\"");
		UcSay;
		abrt();
	labelFunc017D_063E:
		cmps("Stop following me!");
		UcMessage("\"I am sorry, ");
		UcMessage(var0005);
		UcMessage(", thou art not my Captain. I may only take orders from the Captain of the Guard.\"");
		UcSay;
		UI_remove_answer_0D(["Why art thou following me?", "Stop following me!", "Never mind."]);
		UI_add_answer_0C("Captain of the Guard");
	labelFunc017D_0667:
		cmps("Captain of the Guard");
		UcMessage("\"His name is Jorvin. Thou canst ask him to reassign me, if thou wishest. But by Law he must assign another guard to the job.\"");
		UcSay;
		UI_remove_answer_0D("Captain of the Guard");
		UI_add_answer_0C("Law");
	labelFunc017D_0681:
		cmps("Never mind.");
		UcMessage("\"I am ever at thy service, ");
		UcMessage(var0005);
		UcMessage(". Call on me any time.\"");
		UcSay;
		UI_remove_answer_0D(["Why art thou following me?", "Stop following me!", "Never mind."]);
		abrt();
	labelFunc017D_06A4:
		goto labelFunc017D_05E5;
	labelFunc017D_06A7:
		end_conv();
	labelFunc017D_06A8:
		if(!((var0003 > 0x0002) && (var0003 < 0x0007))) goto labelFunc017D_0965;
		var0005 = Func0954();
		var0006 = UI_is_pc_female_6F();
		var0007 = Func0953();
		if(!(event == 0x0001)) goto labelFunc017D_06F9;
		UI_item_say_4D(0xFE9C, "@Might I speak with thee, guard?@");
		Func097F(item, (("@What dost thou need, " + var0005) + "?@"), 0x0005);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc017D_06F9:
		if(!(event == 0x0009)) goto labelFunc017D_0965;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEF3, 0x0000);
		var000D = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0003 == 0x0003)) goto labelFunc017D_074F;
		UcMessage("\"Thou shouldst address me by rank while I am on duty, ");
		UcMessage(var0005);
		UcMessage(". I am a Private in Fawn's Guard.\"");
		UcSay;
		var000E = "Private";
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc017D_074F:
		if(!(var0003 == 0x0004)) goto labelFunc017D_0779;
		UcMessage("\"I am on duty now, ");
		UcMessage(var0005);
		UcMessage(". Thou mayest address me as Corporal.\"");
		UcSay;
		var000E = "Corporal";
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc017D_0779:
		if(!(var0003 == 0x0005)) goto labelFunc017D_07A3;
		UcMessage("\"While I am on duty, ");
		UcMessage(var0005);
		UcMessage(", thou must address me as Sergeant.\"");
		UcSay;
		var000E = "Sergeant";
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc017D_07A3:
		if(!(var0003 == 0x0006)) goto labelFunc017D_07CD;
		UcMessage("\"I am a Lieutenant in Fawn's Guard. Thou must address me as such, ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		var000E = "Lieutenant";
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc017D_07CD:
		UcAsk;
		cmps("storms");
		var000F = UI_die_roll_17(0x0001, 0x0006);
		if(!(var000F == 0x0001)) goto labelFunc017D_0800;
		UcMessage("\"Be thou careful to stay close to shelter, ");
		UcMessage(var0005);
		UcMessage(". Thou dost never know when one of these freak storms will appear.\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_0800:
		if(!(var000F == 0x0002)) goto labelFunc017D_081B;
		UcMessage("\"'Tis unnatural, for sure. I wouldn't wander too far from safety, if I were thee, ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_081B:
		if(!(var000F == 0x0003)) goto labelFunc017D_0836;
		UcMessage("\"The storms are no great cause for alarm. Remain in sight of shelter and thou shouldst be fine, ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_0836:
		if(!(var000F == 0x0004)) goto labelFunc017D_0851;
		UcMessage("\"Between thee and me, ");
		UcMessage(var0005);
		UcMessage(", I would not be out here if I weren't on duty. These storms are not natural.\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_0851:
		if(!(var000F == 0x0005)) goto labelFunc017D_0866;
		UcMessage("\"I tell thee, we are all cursed! These storms are a punishment for our transgressions against the heavens!\" *\"Thou canst run to shelter all thou wishest, but if thou hast transgressed, it will avail thee not!\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_0866:
		if(!(var000F == 0x0006)) goto labelFunc017D_087B;
		UcMessage("\"Use the sense that the heavens gave thee... If a storm starts, seek shelter. 'Tis simple enough.\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc017D_087B:
		cmps("goblins");
		var0010 = UI_die_roll_17(0x0001, 0x0006);
		if(!(var0010 == 0x0001)) goto labelFunc017D_08A5;
		UcMessage("\"The goblins have been nothing but trouble of late. Thou shouldst remain within the city gates.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_08A5:
		if(!(var0010 == 0x0002)) goto labelFunc017D_08C0;
		UcMessage("\"Goblins are filthy savages, ");
		UcMessage(var0005);
		UcMessage(". I yearn for the day when we are allowed to kill them all!\" *\"'Tis unsafe to venture outside the city with them out there.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_08C0:
		if(!(var0010 == 0x0003)) goto labelFunc017D_08DB;
		UcMessage("\"Make no mistake, ");
		UcMessage(var0005);
		UcMessage(". Those goblins would sooner make a meal out of us as look at us. No one is safe as long as one goblin is left alive!\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_08DB:
		if(!(var0010 == 0x0004)) goto labelFunc017D_08F6;
		UcMessage("\"Don't go out of the city gates, ");
		UcMessage(var0005);
		UcMessage("! 'Tis not safe even in broad daylight!\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_08F6:
		if(!(var0010 == 0x0005)) goto labelFunc017D_0911;
		UcMessage("\"Thou hast nothing to fear from the goblins, ");
		UcMessage(var0005);
		UcMessage(", as long as thou stayest within the confines of the city.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_0911:
		if(!(var0010 == 0x0006)) goto labelFunc017D_092C;
		UcMessage("\"Fawn is caught between the storms and the goblins, ");
		UcMessage(var0005);
		UcMessage(". 'Tis not a safe place to be!\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc017D_092C:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, (("@Goodbye, " + var000E) + ".@"), 0x0000);
		Func097F(item, (("@Walk in Beauty, " + var0005) + ".@"), 0x0005);
		goto labelFunc017D_0964;
	labelFunc017D_0961:
		goto labelFunc017D_07CD;
	labelFunc017D_0964:
		end_conv();
	labelFunc017D_0965:
		return;
}
// externs
extern Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003);

Func0194 0x194 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = [0x000F, 0x000C, 0x0008, 0x000E, 0x0014, 0x0004, 0x0004, 0x0004, 0x0004];
	var0001 = var0000[(UI_get_item_frame_1A(item) + 0x0001)];
	var0002 = UI_click_on_item_3F();
	Func08AD(item, var0001, 0x0026, var0002);
	return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern var Func0994 0x994 ();

Func019C 0x19C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x000B)) goto labelFunc019C_003D;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x019C], 0x0002);
	labelFunc019C_003D:
		if(!(event == 0x0002)) goto labelFunc019C_0129;
		var0001 = UI_find_nearest_15(0xFE9C, 0x019C, 0x000F);
		var0002 = UI_get_object_position_20(var0001);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		var0002[0x0002] = (var0002[0x0002] - 0x0003);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc019C_011F;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc019C_010B;
		UI_set_item_frame_1B(item, 0x0001);
		if(!(Func0994() == 0x0015)) goto labelFunc019C_00C2;
		var0001 = UI_set_item_quality_1D(item, 0x000D);
		UI_clear_item_flag_A5(item, 0x0012);
		gflags[0222] = true;
	labelFunc019C_00C2:
		if(!((Func0994() == 0x0014) && gflags[021B])) goto labelFunc019C_00E7;
		var0001 = UI_set_item_quality_1D(item, 0x000E);
		UI_clear_item_flag_A5(item, 0x0012);
		gflags[0221] = true;
	labelFunc019C_00E7:
		if(!(Func0994() == 0x0011)) goto labelFunc019C_0108;
		var0001 = UI_set_item_quality_1D(item, 0x000F);
		UI_clear_item_flag_A5(item, 0x0012);
		gflags[0220] = true;
	labelFunc019C_0108:
		goto labelFunc019C_011F;
	labelFunc019C_010B:
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc019C_011F;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc019C_011F:
		var0001 = UI_update_last_created_2F(var0002);
	labelFunc019C_0129:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func090C 0x90C (var var0000, var var0001);

Func01AF 0x1AF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc01AF_003F;
	UI_halt_scheduled_71(item);
	var0000 = [0x0001, 0x0001];
	var0001 = [0x0000, 0x0000];
	var0002 = Dupre;
	Func090D(item, var0000, var0001, var0002, 0x01AF, item, 0x000A);
	labelFunc01AF_003F:
		if(!(event == 0x000A)) goto labelFunc01AF_011E;
		UI_halt_scheduled_71(item);
		var0003 = UI_execute_usecode_array_01(item, [0x58, 0x0007, 0x01, 0x46, 0x0000, 0x4D, 0x27, 0x0001, 0x4D, 0x27, 0x0001, 0x4F, 0x27, 0x0001, 0x4F, 0x27, 0x0001, 0x4D, 0x27, 0x0001, 0x4D, 0x27, 0x0001, 0x4F, 0x27, 0x0001, 0x4F]);
		var0004 = Func090C(0xFE9C, item);
		UI_halt_scheduled_71(0xFE9C);
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0004, 0x61, 0x6C, 0x27, 0x0003, 0x61, 0x61, 0x6C, 0x27, 0x0003, 0x61]);
		var0005 = UI_find_nearby_41(item, 0x02E3, 0x0004, 0x00B0);
		enum();
	labelFunc01AF_00E1:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc01AF_011E);
		var0003 = UI_execute_usecode_array_01(var0008, [0x23, 0x58, 0x0007, 0x4D, 0x4D, 0x4D, 0x27, 0x000E, 0x4F, 0x27, 0x0003, 0x4F, 0x27, 0x0003, 0x4F]);
		goto labelFunc01AF_00E1;
	labelFunc01AF_011E:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);

Func01B0 0x1B0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc01B0_000F;
	exit2();
	labelFunc01B0_000F:
		var0000 = UI_get_item_quality_1C(item);
		if(!(var0000 == 0x0032)) goto labelFunc01B0_0050;
		if(!((gflags[007E] && (gflags[003E] && gflags[0091])) && ((!gflags[0048]) && (gflags[00A5] || (!gflags[002D]))))) goto labelFunc01B0_0050;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01C3]);
		abrt();
	labelFunc01B0_0050:
		if(!(var0000 == 0x00B3)) goto labelFunc01B0_0080;
		if(!((gflags[0170] || gflags[0172]) && (!(gflags[0170] && gflags[0172])))) goto labelFunc01B0_0080;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x07F8]);
		abrt();
	labelFunc01B0_0080:
		var0002 = Func0906(item);
		if(!(var0002 == 0x0001)) goto labelFunc01B0_00D1;
		if(!Func0908(item, 0x01B1, 0x0000, 0x0000, 0x0003, 0x0005)) goto labelFunc01B0_00CE;
		Func0909(item, 0x010E, 0x0001, 0x0001, 0x0178, 0x0000, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x001F, item);
		goto labelFunc01B0_00D1;
	labelFunc01B0_00CE:
		Func0903();
	labelFunc01B0_00D1:
		if(!(var0002 == 0x0000)) goto labelFunc01B0_011B;
		if(!Func0908(item, 0x01B1, 0x0001, Iolo, 0x0000, 0x0007)) goto labelFunc01B0_0118;
		Func0909(item, 0x010E, 0x0000, 0x0002, 0x0178, 0x0001, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0020, item);
		goto labelFunc01B0_011B;
	labelFunc01B0_0118:
		Func0903();
	labelFunc01B0_011B:
		if(!(var0002 == 0x0002)) goto labelFunc01B0_0129;
		Func0904(item);
	labelFunc01B0_0129:
		if(!(var0002 == 0x0003)) goto labelFunc01B0_0137;
		Func0905(item);
	labelFunc01B0_0137:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);

Func01B1 0x1B1 (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc01B1_000F;
	exit2();
	labelFunc01B1_000F:
		var0000 = Func0906(item);
		if(!(var0000 == 0x0001)) goto labelFunc01B1_0060;
		if(!Func0908(item, 0x01B0, 0x0000, 0x0003, 0x0000, 0x0001)) goto labelFunc01B1_005D;
		Func0909(item, 0x0178, 0x0001, 0x0002, 0x010E, 0x0000, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x001F, item);
		goto labelFunc01B1_0060;
	labelFunc01B1_005D:
		Func0903();
	labelFunc01B1_0060:
		if(!(var0000 == 0x0000)) goto labelFunc01B1_00AA;
		if(!Func0908(item, 0x01B0, 0x0001, 0x0000, Iolo, 0x0007)) goto labelFunc01B1_00A7;
		Func0909(item, 0x0178, 0x0000, 0x0001, 0x010E, 0x0001, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0020, item);
		goto labelFunc01B1_00AA;
	labelFunc01B1_00A7:
		Func0903();
	labelFunc01B1_00AA:
		if(!(var0000 == 0x0002)) goto labelFunc01B1_00B8;
		Func0904(item);
	labelFunc01B1_00B8:
		if(!(var0000 == 0x0003)) goto labelFunc01B1_00C6;
		Func0905(item);
	labelFunc01B1_00C6:
		return;
}
// externs
extern Func0949 0x949 (var var0000);
extern Func0629 0x629 (var var0000);

Func01B2 0x1B2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc01B2_0022;
	if(!UI_in_usecode_8F(item)) goto labelFunc01B2_001E;
	UI_halt_scheduled_71(item);
	Func0949("@'Tis about time!@");
	goto labelFunc01B2_0022;
	labelFunc01B2_001E:
		item;
		calle();
	labelFunc01B2_0022:
		if(!(event == 0x000B)) goto labelFunc01B2_00A5;
		var0000 = UI_get_object_position_20(item);
		var0000[0x0001] = (var0000[0x0001] + 0x0001);
		var0000[0x0002] = (var0000[0x0002] - 0x0001);
		var0001 = UI_get_cont_items_33(0xFE9C, 0x032A, 0xFE99, 0xFE99);
		if(!var0001) goto labelFunc01B2_008F;
		var0002 = UI_set_last_created_2E(var0001);
		if(!var0002) goto labelFunc01B2_008F;
		UI_set_item_frame_1B(var0001, 0x0003);
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc01B2_008F:
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0000, 0x01, 0x6C]);
	labelFunc01B2_00A5:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func01B3 0x1B3 (var var0000)
{
	var var0001;
	var var0002;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc01B3_001B;
	UI_set_item_shape_14(item, 0x01E1);
	UI_halt_scheduled_71(item);
	labelFunc01B3_001B:
		if(!(event == 0x000A)) goto labelFunc01B3_004D;
		UI_set_item_shape_14(item, 0x01E1);
		var0000 = Func090C(0xFE9C, item);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6A, 0x61]);
	labelFunc01B3_004D:
		return;
}
Func01BD 0x1BD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_item_frame_1A(item);
	var0001 = UI_click_on_item_3F();
	if(!(!var0001)) goto labelFunc01BD_0017;
	exit2();
	labelFunc01BD_0017:
		var0002 = UI_get_item_shape_18(var0001);
		if(!(var0002 == 0x032A)) goto labelFunc01BD_009E;
		if(!(!(var0000 == 0x0001))) goto labelFunc01BD_0037;
		exit2();
	labelFunc01BD_0037:
		var0003 = UI_get_item_quality_1C(var0001);
		var0004 = false;
		if(!(var0003 == 0x0000)) goto labelFunc01BD_0050;
		exit2();
	labelFunc01BD_0050:
		if(!(var0003 == 0x000A)) goto labelFunc01BD_0062;
		UI_set_item_frame_1B(item, 0x0002);
	labelFunc01BD_0062:
		if(!(var0003 == 0x000B)) goto labelFunc01BD_0074;
		UI_set_item_frame_1B(item, 0x0003);
	labelFunc01BD_0074:
		if(!(var0003 == 0x000C)) goto labelFunc01BD_0086;
		UI_set_item_frame_1B(item, 0x0004);
	labelFunc01BD_0086:
		UI_set_item_frame_1B(var0001, 0x0000);
		var0005 = UI_set_item_quality_1D(var0001, 0x0000);
		exit2();
	labelFunc01BD_009E:
		if(!(var0002 == 0x0326)) goto labelFunc01BD_00F6;
		if(!(gflags[00D0] && (var0000 == 0x0004))) goto labelFunc01BD_00C2;
		gflags[00D0] = false;
		UI_set_item_frame_1B(item, 0x0007);
	labelFunc01BD_00C2:
		if(!(gflags[00D2] && (var0000 == 0x0002))) goto labelFunc01BD_00DC;
		gflags[00D2] = false;
		UI_set_item_frame_1B(item, 0x0005);
	labelFunc01BD_00DC:
		if(!(gflags[00D1] && (var0000 == 0x0003))) goto labelFunc01BD_00F6;
		gflags[00D1] = false;
		UI_set_item_frame_1B(item, 0x0006);
	labelFunc01BD_00F6:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func08ED 0x8ED (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0988 0x988 (var var0000, var var0001);
extern Func0907 0x907 (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func01C3 0x1C3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = "he";
	if(!UI_is_pc_female_6F()) goto labelFunc01C3_001F;
	var0002 = "she";
	labelFunc01C3_001F:
		if(!(event == 0x0002)) goto labelFunc01C3_0FF1;
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x000C) && (item == UI_get_npc_object_23(0xFFBC)))) goto labelFunc01C3_007C;
		Func097F(0xFFBC, "@Keep him away from me!@", 0x0000);
		UI_set_item_flag_A4(0xFFBC, 0x001C);
		UI_si_path_run_usecode_C1(0xFFBC, [0x0413, 0x0A8B, 0x0000], 0x000D, item, 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, item, 0x000E);
		abrt();
	labelFunc01C3_007C:
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x0001) && (item == UI_get_npc_object_23(0xFFBC)))) goto labelFunc01C3_00BB;
		UI_si_path_run_usecode_C1(0xFFBC, [0x0415, 0x0A7D, 0x0000], 0x000D, item, 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, item, 0x000E);
		abrt();
	labelFunc01C3_00BB:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x000E)) goto labelFunc01C3_01A7;
		UI_set_npc_id_BD(0xFFBB, 0x000F);
		UI_set_alignment_4A(0xFE9C, 0x0001);
		Func097F(0xFFBB, "@Stop this!@", 0x0000);
		UI_set_item_flag_A4(0xFFBB, 0x001C);
		UI_set_item_flag_A4(0xFFB6, 0x0004);
		UI_set_schedule_type_25(0xFFB6, 0x000F);
		UI_set_alignment_4A(0xFFB6, 0x0000);
		UI_set_item_flag_A4(0xFFB9, 0x0004);
		UI_set_schedule_type_25(0xFFB9, 0x000F);
		UI_set_alignment_4A(0xFFB9, 0x0000);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBB, [0x23, 0x55, 0x01C3], 0x000A);
		UI_play_music_39(0x001D, Func09A0(0x0005, 0x0001));
		var0004 = UI_get_npc_prop_28(0xFFB6, 0x0003);
		var0003 = UI_set_npc_prop_29(0xFFB6, 0x0003, (UI_get_npc_prop_28(0xFFB6, 0x0000) - var0004));
		var0004 = UI_get_npc_prop_28(0xFFB9, 0x0003);
		var0003 = UI_set_npc_prop_29(0xFFB9, 0x0003, (UI_get_npc_prop_28(0xFFB6, 0x0000) - var0004));
		abrt();
	labelFunc01C3_01A7:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x000D)) goto labelFunc01C3_0299;
		UI_set_npc_id_BD(0xFFBB, 0x000E);
		UI_set_alignment_4A(0xFE9C, 0x0000);
		UI_set_attack_mode_59(0xFFB9, 0x0000);
		UI_set_attack_mode_59(0xFFB6, 0x0000);
		UI_set_alignment_4A(0xFFB9, 0x0002);
		UI_set_schedule_type_25(0xFFB9, 0x0000);
		UI_set_oppressor_5E(0xFFB9, 0xFFB6);
		UI_set_opponent_5B(0xFFB9, 0xFFB6);
		UI_set_alignment_4A(0xFFB6, 0x0001);
		UI_set_schedule_type_25(0xFFB6, 0x0000);
		UI_set_oppressor_5E(0xFFB6, 0xFFB9);
		UI_set_opponent_5B(0xFFB6, 0xFFB9);
		Func097F(0xFF6A, "@Strike for his eyes!@", 0x000F);
		UI_set_item_flag_A4(0xFF6A, 0x001C);
		Func097F(0xFFB3, "@Tell them to stop.@", 0x0019);
		UI_set_item_flag_A4(0xFFB3, 0x001C);
		Func097F(0xFFC1, "@Strike, Luther!@", 0x000A);
		UI_set_item_flag_A4(0xFFC1, 0x001C);
		Func097F(0xFE9C, "@Hey, careful!@", 0x0005);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBB, [0x23, 0x6C, 0x61, 0x6F, 0x55, 0x01C3], 0x0023);
		abrt();
	labelFunc01C3_0299:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x000C)) goto labelFunc01C3_02E4;
		UI_set_npc_id_BD(0xFFBB, 0x000D);
		UI_si_path_run_usecode_C1(0xFFB6, [0x041B, 0x0A84, 0x0000], 0x000D, UI_get_npc_object_23(0xFFB6), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFB6), 0x000E);
		abrt();
	labelFunc01C3_02E4:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x000B)) goto labelFunc01C3_039A;
		UI_set_npc_id_BD(0xFFBB, 0x000C);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBC, 0x0000);
		UcMessage("\"I am weary of thine insults, Luther! I am no more of a traitor than thou art!\"");
		UcSay;
		UI_end_conversation_86();
		UI_set_schedule_type_25(0xFFB6, 0x0000);
		UI_si_path_run_usecode_C1(0xFFB9, [0x0425, 0x0A82, 0x0000], 0x000D, UI_get_npc_object_23(0xFFB9), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFB9), 0x000E);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBC, [0x23, 0x55, 0x01C3], 0x000A);
		Func097F(0xFFB9, "@I shall make him talk!@", 0x0002);
		gflags[004E] = true;
		Func097F(0xFFB3, "@This is unseemly...@", 0x0000);
		Func097F(0xFFB6, "@Cease!@", 0x0002);
		Func097F(0xFFBC, "@Leave me alone!@", 0x0000);
		abrt();
	labelFunc01C3_039A:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x000A)) goto labelFunc01C3_0479;
		UI_set_npc_id_BD(0xFFBB, 0x000B);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		UcMessage("\"Listen, Knights -- it doth not take a wizard to untangle this skein. Who among us acts strangely, doth do things in secret, and avoids his knightly duties?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB9, 0x001C);
		UI_end_conversation_86();
		UI_play_music_39(0x0010, Func09A0(0x0005, 0x0001));
		var0003 = UI_execute_usecode_array_01(0xFFB9, [0x23, 0x27, 0x0003, 0x66, 0x67, 0x52, "@'Tis him!@", 0x27, 0x0007, 0x52, "@Krayg!@"]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFB3, [0x23, 0x6C, 0x6B], 0x0005);
		var0003 = UI_execute_usecode_array_01(0xFFBC, [0x23, 0x27, 0x0007, 0x52, "@Curse thee, Luther!@", 0x6C, 0x61, 0x27, 0x0004, 0x55, 0x01C3]);
		UI_si_path_run_usecode_C1(0xFFBA, [0x0439, 0x0A77, 0x0000], 0x000D, UI_get_npc_object_23(0xFFBA), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFBA), 0x000E);
		abrt();
	labelFunc01C3_0479:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0009)) goto labelFunc01C3_04DB;
		UI_set_npc_id_BD(0xFFBB, 0x000A);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB3, 0x0000);
		UcMessage("\"I think this talk of a traitor in Monitor is all rather speculative. Surely, no one suspects anyone at this table of being a Goblin spy.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFB6, "@Sit down, Luther!@", 0x0006);
		var0003 = UI_execute_usecode_array_01(0xFFB9, [0x23, 0x52, "@I do!@", 0x27, 0x0004, 0x6C, 0x61, 0x27, 0x0005, 0x55, 0x01C3]);
		abrt();
	labelFunc01C3_04DB:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0008)) goto labelFunc01C3_05BE;
		UI_set_npc_id_BD(0xFFBB, 0x0009);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB1, 0x0000);
		UcMessage("\"Forgive me, lord, but I, too, have a serious matter to put before the leaders of Monitor.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB1, 0x001C);
		UI_show_npc_face1_06(0xFFB6, 0x0000);
		UcMessage("\"Dost thou not need to rest thyself, Templar? Thou hast had no time to heal from thy wounds.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_item_flag_A4(0xFFB6, 0x001C);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I am right enough, Shazzana. And I cannot rest until I have aired my concerns.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFBB, 0x0000);
		UcMessage("\"Speak thy mind, then, warrior.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"As thou knowest, I am the sole survivor of the patrol which the Goblins ambushed -- when Astrid was taken.\"");
		UcSay;
		UcMessage("\"The Goblins were ready for us, milord! It could not have been by accident.\"");
		UcSay;
		UcMessage("\"Lord Marsten, there is a traitor in our midst.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFF6A, "@Templar is right!@", 0x0008);
		Func097F(0xFFB9, "@Damn spy!@", 0x0000);
		Func097F(0xFFBA, "@What shall we do?@", 0x0005);
		var0003 = UI_execute_usecode_array_01(0xFFB1, [0x23, 0x6C, 0x6B]);
		var0003 = UI_execute_usecode_array_01(0xFFB3, [0x23, 0x27, 0x000F, 0x6C, 0x61, 0x52, "@Now, now...@", 0x27, 0x0006, 0x55, 0x01C3]);
		abrt();
	labelFunc01C3_05BE:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0007)) goto labelFunc01C3_07FF;
		UI_set_npc_id_BD(0xFFBB, 0x0008);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB0, 0x0000);
		UcMessage("\"What didst thou think of the Knight's Test? Didst thou have any harrowing experiences?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB9, 0x0000);
		UcMessage("\"Oh, it isn't that much of a challenge. After all, thou didst survive it, Flicken!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Never mind that lout. What part of the dungeon was the most difficult, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
		var0005 = 0x0000;
		UI_add_answer_0C(["the gremlins", "the explosions", "the Cyclops", "the invisible man", "change subject"]);
	labelFunc01C3_0627:
		UcAsk;
		cmps("the gremlins");
		UI_remove_answer_0D("the gremlins");
		UcMessage("\"Gremlins? Thou art merely trying to impress us, ");
		UcMessage(var0001);
		UcMessage(". There aren't any gremlins in the Knight's Test!\"");
		UcSay;
		var0005 = Func08ED(var0005);
		if(!(var0005 == 0x0004)) goto labelFunc01C3_0659;
		goto labelFunc01C3_073B;
	labelFunc01C3_0659:
		cmps("the explosions");
		UI_remove_answer_0D("the explosions");
		UcMessage("\"But those are so easy to avoid...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC1, 0x0000);
		UcMessage("\"Perhaps thou didst not walk fast enough. If thou dost lag, the explosions will catch thee.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		var0005 = Func08ED(var0005);
		if(!(var0005 == 0x0004)) goto labelFunc01C3_069B;
		goto labelFunc01C3_073B;
	labelFunc01C3_069B:
		cmps("the Cyclops");
		UI_remove_answer_0D("the Cyclops");
		UcMessage("\"Didst thou hear what ");
		UcMessage(var0002);
		UcMessage(" didst say? There are magical beasts in the Knight's Test!\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"We must speak with Shmed about this. Our dungeon is strictly a test of fighting ability -- no magic allowed!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		var0005 = Func08ED(var0005);
		if(!(var0005 == 0x0004)) goto labelFunc01C3_06E3;
		goto labelFunc01C3_073B;
	labelFunc01C3_06E3:
		cmps("the invisible man");
		UI_remove_answer_0D("the invisible man");
		UcMessage("\"Oh, surely thou art mistaken!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB1, 0x0000);
		UcMessage("\"Perhaps in the darkness, thou didst become disoriented and imagine such an enemy.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		var0005 = Func08ED(var0005);
		if(!(var0005 == 0x0004)) goto labelFunc01C3_0725;
		goto labelFunc01C3_073B;
	labelFunc01C3_0725:
		cmps("change subject");
		UI_remove_answer_0D("change subject");
		goto labelFunc01C3_073B;
	labelFunc01C3_0737:
		goto labelFunc01C3_0627;
	labelFunc01C3_073A:
		end_conv();
	labelFunc01C3_073B:
		UI_show_npc_face1_06(0xFFBB, 0x0000);
		if(!(var0005 == 0x0000)) goto labelFunc01C3_0762;
		UcMessage("\"It is good to see a Knight who is not boastful. Luther, thou couldst learn from this one.\"");
		UcSay;
		Func097F(0xFFB9, "@I doubt it...@", 0x0000);
		goto labelFunc01C3_078F;
	labelFunc01C3_0762:
		if(!(var0005 < 0x0003)) goto labelFunc01C3_077F;
		UcMessage("\"Shmed is the Master of Knight's Test. If I were thee, I would speak to him about thy strange experiences.\"");
		UcSay;
		Func097F(0xFFB0, "@Such a story!@", 0x0000);
		goto labelFunc01C3_078F;
	labelFunc01C3_077F:
		UcMessage("\"My friend, I am convinced thou hast been the victim of an evil scheme! Tomorrow, I shall speak with Shmed personally.\"");
		UcSay;
		Func097F(0xFFB0, "@An outrage!@", 0x0000);
	labelFunc01C3_078F:
		UI_end_conversation_86();
		UI_move_object_4B(0xFFBD, [0x0437, 0x0A7C, 0x0000]);
		UI_si_path_run_usecode_C1(0xFFBD, [0x0421, 0x0A74, 0x0000], 0x000D, UI_get_npc_object_23(0xFFBD), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFBD), 0x000E);
		Func097F(0xFFBD, "@Terrible news!@", 0x000A);
		UI_set_item_flag_A4(0xFFBD, 0x001C);
		UI_play_music_39(0x001E, Func09A0(0x0005, 0x0001));
		abrt();
	labelFunc01C3_07FF:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0006)) goto labelFunc01C3_089F;
		UI_set_npc_id_BD(0xFFBB, 0x0007);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"Lucilla hath prepared this feast, the main dish of which includes meat from the wolf which thou didst slay in the Knight's Test.\"");
		UcSay;
		UcMessage("\"Now let us eat, and as we do so, let us extend our fellowship to this new Knight.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFBB, [0x23, 0x52, "@Let us eat...@", 0x27, 0x0002, 0x6C, 0x6B, 0x27, 0x0010, 0x55, 0x01C3]);
		Func097F(0xFFB9, "@Hurry, Lucilla!@", 0x0004);
		Func097F(0xFFBF, "@This knife is dull...@", 0x0008);
		UI_set_item_flag_A4(0xFFBF, 0x001C);
		Func097F(0xFFB0, (("@" + var0001) + "...@"), 0x0010);
		UI_play_music_39(0x0022, Func09A0(0x0005, 0x0001));
		abrt();
	labelFunc01C3_089F:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0005)) goto labelFunc01C3_0920;
		UI_set_npc_id_BD(0xFFBB, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"And I am here, both as the Lord of Monitor, and as the leader of the Leopards.\"");
		UcSay;
		if(!(UI_get_schedule_type_24(0xFFBA) == 0x000F)) goto labelFunc01C3_08E1;
		UI_set_schedule_type_25(0xFFBA, 0x0017);
	labelFunc01C3_08E1:
		UI_end_conversation_86();
		Func097F(0xFFB3, "@Hurrah!@", 0x0000);
		Func097F(0xFFB6, "@Leopards!@", 0x0002);
		var0003 = UI_execute_usecode_array_01(0xFFBB, [0x23, 0x66, 0x27, 0x0006, 0x61, 0x27, 0x0002, 0x55, 0x01C3]);
		abrt();
	labelFunc01C3_0920:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0004)) goto labelFunc01C3_09F4;
		UI_set_npc_id_BD(0xFFBB, 0x0005);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"As the leader of the Wolves -- \"");
		UcSay;
		UcMessage("\"which, unlike the Bears, prefer to rely on our wits rather than brute strength -- \"");
		UcSay;
		UcMessage("\"I, too, welcome thee to the ranks of the Knights.\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc01C3_095D;
		UcMessage("\"And, if I might say so, thou art no doubt the most beautiful Knight in the city!\"");
		UcSay;
	labelFunc01C3_095D:
		UcMessage("\"Since thou art under my Command, I expect to know thee much better in the days to come.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x27, 0x0004, 0x6C, 0x6B, 0x27, 0x0006, 0x55, 0x01C3]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBB, [0x23, 0x59, 0x0004], 0x0003);
		Func097F(0xFFBF, "@Welcome, warrior.@", 0x0000);
		Func097F(0xFFBC, "@Wolves!@", 0x0001);
		if(!(!UI_is_pc_female_6F())) goto labelFunc01C3_09DD;
		UI_set_schedule_type_25(0xFFBA, 0x000F);
		0xFFBA;
		calle();
		Func097F(0xFFBA, "@I like his looks.@", 0x0003);
		goto labelFunc01C3_09E9;
	labelFunc01C3_09DD:
		Func097F(0xFFBA, "@Glad to meet thee.@", 0x0003);
	labelFunc01C3_09E9:
		UI_set_item_flag_A4(0xFFBA, 0x001C);
		abrt();
	labelFunc01C3_09F4:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0003)) goto labelFunc01C3_0A9D;
		UI_set_npc_id_BD(0xFFBB, 0x0004);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC1, 0x0000);
		UcMessage("\"On behalf of the Bears -- which, by the way, are the mightiest warriors in the land -- I welcome thee to thy Knighthood Banquet.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFB0, "@Welcome!@", 0x0002);
		Func097F(0xFFB1, "@Aye! Bears!@", 0x0001);
		Func097F(0xFFB9, "@Hear! Hear!@", 0x0000);
		var0003 = UI_execute_usecode_array_01(0xFFC1, [0x23, 0x6C, 0x6B]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFF6A, [0x23, 0x6C, 0x61], 0x000A);
		var0003 = UI_execute_usecode_array_01(0xFFBB, [0x23, 0x59, 0x0004, 0x27, 0x0006, 0x59, 0x0006, 0x52, "@The Wolves...@", 0x27, 0x000A, 0x55, 0x01C3]);
		abrt();
	labelFunc01C3_0A9D:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0002)) goto labelFunc01C3_0B0D;
		UI_set_npc_id_BD(0xFFBB, 0x0003);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"Congratulations on successfully completing the Knight's Test.\"");
		UcSay;
		UcMessage("\"Thus thou hast proven thyself worthy of joining an elite band of warriors.\"");
		UcSay;
		UcMessage("\"In thine honor, all of the Commands of Monitor have sent their representatives to thy Knighthood Banquet.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFBB, [0x23, 0x59, 0x0002, 0x52, "@The Bears...@"]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC1, [0x23, 0x6C, 0x61, 0x27, 0x0004, 0x55, 0x01C3], 0x0004);
		abrt();
	labelFunc01C3_0B0D:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0001)) goto labelFunc01C3_0B59;
		UI_si_path_run_usecode_C1(0xFE9C, [0x041F, 0x0A7B, 0x0000], 0x000D, item, 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, item, 0x000E);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBC, [0x23, 0x55, 0x01C3], 0x000F);
		abrt();
	labelFunc01C3_0B59:
		if(!(UI_get_npc_id_BC(0xFFBB) == 0x0000)) goto labelFunc01C3_0E6E;
		UI_play_music_39(0x000F, Func09A0(0x0005, 0x0001));
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0004 = UI_get_npc_prop_28(0xFFB6, 0x0003);
		var0003 = UI_set_npc_prop_29(0xFFB6, 0x0003, (UI_get_npc_prop_28(0xFFB6, 0x0000) - var0004));
		var0004 = UI_get_npc_prop_28(0xFFB9, 0x0003);
		var0003 = UI_set_npc_prop_29(0xFFB9, 0x0003, (UI_get_npc_prop_28(0xFFB6, 0x0000) - var0004));
		UI_end_conversation_86();
		var0006 = Func0992(0x0001, 0x0000, 0x0000, true);
		var0003 = "We";
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) < 0x0003)) goto labelFunc01C3_0C00;
		var0003 = "I";
	labelFunc01C3_0C00:
		Func097F(var0006, (("@" + var0003) + " shall wait for thee here!@"), 0x0005);
		var0003 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc01C3_0C26:
		for (var0009 in var0003 with var0007 to var0008 atend labelFunc01C3_0C68);
		UI_remove_from_party_27(var0009);
		var0005 = UI_get_object_position_20(var0009);
		UI_set_new_schedules_B6(var0009, 0x0000, 0x000A, [var0005[0x0001], var0005[0x0002]]);
		UI_run_schedule_B7(var0009);
		goto labelFunc01C3_0C26;
	labelFunc01C3_0C68:
		UI_item_say_4D(0xFE9C, "@This must be the place!@");
		UI_si_path_run_usecode_C1(0xFE9C, [0x041F, 0x0A90, 0x0000], 0x000D, item, 0x01C3, true);
		UI_set_path_failure_A7(0x01C3, item, 0x000E);
		gflags[00BF] = true;
		var000A = (UI_get_object_position_20(0xFE9C) & (0xFE99 & 0x0006));
		var000B = UI_find_nearby_41(var000A, 0x0113, 0x0028, 0x0010);
		enum();
	labelFunc01C3_0CC2:
		for (var000E in var000B with var000C to var000D atend labelFunc01C3_0E32);
		var000F = UI_get_object_position_20(var000E);
		var0010 = UI_get_item_quality_1C(var000E);
		var0011 = false;
		if(!(var0010 == 0x0001)) goto labelFunc01C3_0CFB;
		var0012 = 0x0004;
		var0011 = 0xFFBB;
	labelFunc01C3_0CFB:
		if(!(var0010 == 0x0002)) goto labelFunc01C3_0D11;
		var0012 = 0x0004;
		var0011 = 0xFFB3;
	labelFunc01C3_0D11:
		if(!(var0010 == 0x0004)) goto labelFunc01C3_0D27;
		var0012 = 0x0004;
		var0011 = 0xFFB6;
	labelFunc01C3_0D27:
		if(!(var0010 == 0x0006)) goto labelFunc01C3_0D3D;
		var0012 = 0x0002;
		var0011 = 0xFF6A;
	labelFunc01C3_0D3D:
		if(!(var0010 == 0x0008)) goto labelFunc01C3_0D53;
		var0012 = 0x0002;
		var0011 = 0xFFBF;
	labelFunc01C3_0D53:
		if(!(var0010 == 0x000A)) goto labelFunc01C3_0D69;
		var0012 = 0x0002;
		var0011 = 0xFFBC;
	labelFunc01C3_0D69:
		if(!(var0010 == 0x000C)) goto labelFunc01C3_0D9B;
		UI_move_object_4B(0xFFBA, var000F);
		UI_set_schedule_type_25(0xFFBA, 0x000F);
		var0013 = UI_execute_usecode_array_01(0xFFBA, [0x59, 0x0006, 0x61]);
	labelFunc01C3_0D9B:
		if(!(var0010 == 0x0005)) goto labelFunc01C3_0DB1;
		var0012 = 0x0004;
		var0011 = 0xFFB0;
	labelFunc01C3_0DB1:
		if(!(var0010 == 0x0007)) goto labelFunc01C3_0DC7;
		var0012 = 0x0006;
		var0011 = 0xFFC1;
	labelFunc01C3_0DC7:
		if(!(var0010 == 0x0009)) goto labelFunc01C3_0DDD;
		var0012 = 0x0006;
		var0011 = 0xFFB1;
	labelFunc01C3_0DDD:
		if(!(var0010 == 0x000B)) goto labelFunc01C3_0DF3;
		var0012 = 0x0006;
		var0011 = 0xFFB9;
	labelFunc01C3_0DF3:
		if(!(var0011 && (!UI_get_item_flag_A3(var0011, 0x0004)))) goto labelFunc01C3_0E2F;
		UI_move_object_4B(var0011, var000F);
		UI_set_schedule_type_25(var0011, 0x000F);
		var0013 = UI_execute_usecode_array_01(var0011, [0x59, var0012, 0x01, 0x6B]);
	labelFunc01C3_0E2F:
		goto labelFunc01C3_0CC2;
	labelFunc01C3_0E32:
		var000A = (UI_get_object_position_20(0xFE9C) & (0x0000 & 0x0007));
		var000B = UI_find_nearby_41(var000A, 0x0113, 0x001E, 0x0010);
		enum();
	labelFunc01C3_0E58:
		for (var000E in var000B with var0014 to var0015 atend labelFunc01C3_0E6D);
		UI_remove_item_84(var000E);
		goto labelFunc01C3_0E58;
	labelFunc01C3_0E6D:
		abrt();
	labelFunc01C3_0E6E:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_clear_item_flag_A5(0xFFB9, 0x0004);
		UI_clear_item_flag_A5(0xFFB6, 0x0004);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"Lay down thine arms, Knights! Such fighting belongs on the List Field, not in the banquet hall.\"");
		UcSay;
		UcMessage("\"Thy behavior hath disrupted this celebration. In the interest of calming all of our tempers, I declare this banquet to be over.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(", couldst thou please speak to Harnna about her daughter? Perhaps thou mightest have some new insights.\"");
		UcSay;
		var0003 = UI_find_nearby_41(0xFE9C, 0x01B0, 0x0028, 0x0000);
		enum();
	labelFunc01C3_0EC0:
		for (var0009 in var0003 with var0016 to var0017 atend labelFunc01C3_0EE5);
		if(!(UI_get_item_quality_1C(var0009) == 0x0033)) goto labelFunc01C3_0EE2;
		Func0907(var0009, 0x0001);
	labelFunc01C3_0EE2:
		goto labelFunc01C3_0EC0;
	labelFunc01C3_0EE5:
		Func097F(0xFFBB, "@Go home!@", 0x0000);
		Func097F(0xFFB6, "@Until next time...@", 0x0004);
		Func097F(0xFFB9, "@Coward!@", 0x0008);
		Func097F(0xFFC1, "@I'm hungry!@", 0x000A);
		gflags[0048] = true;
		var0018 = [0xFFBC, 0xFFBF, 0xFF6A, 0xFFB3, 0xFFB6, 0xFFBB, 0xFFBD, 0xFFB0, 0xFFC1, 0xFFBA, 0xFFB1, 0xFFB9];
		enum();
	labelFunc01C3_0F44:
		for (var0005 in var0018 with var0019 to var001A atend labelFunc01C3_0F60);
		UI_revert_schedule_B4(var0005);
		UI_run_schedule_B7(var0005);
		goto labelFunc01C3_0F44;
	labelFunc01C3_0F60:
		var0018 = [0xFFB0, 0xFFC1, 0xFFB1, 0xFFB9];
		enum();
	labelFunc01C3_0F73:
		for (var0005 in var0018 with var001B to var001C atend labelFunc01C3_0F8B);
		UI_set_schedule_type_25(var0005, 0x001A);
		goto labelFunc01C3_0F73;
	labelFunc01C3_0F8B:
		UI_set_schedule_type_25(0xFFBA, 0x0017);
		var0003 = UI_execute_usecode_array_01(0xFFBF, [0x23, 0x6C, 0x61]);
		var0003 = UI_execute_usecode_array_01(0xFFBD, [0x23, 0x6D, 0x6C, 0x61]);
		var001D = [0xFFBF, 0xFFB0, 0xFFBD, 0xFFBC, 0xFFBA, 0xFFBB, 0xFFB3];
		enum();
	labelFunc01C3_0FD9:
		for (var0005 in var001D with var001E to var001F atend labelFunc01C3_0FF1);
		UI_clear_item_flag_A5(var0005, 0x001D);
		goto labelFunc01C3_0FD9;
	labelFunc01C3_0FF1:
		if(!(event == 0x000E)) goto labelFunc01C3_11FC;
		if(!((item == UI_get_npc_object_23(0xFFBF)) && (UI_get_npc_id_BC(0xFFBB) == 0x0008))) goto labelFunc01C3_1026;
		UI_set_schedule_type_25(0xFFBF, 0x000F);
		UI_item_say_4D(0xFFBF, "@Poor Cantra...@");
		abrt();
	labelFunc01C3_1026:
		if(!((item == UI_get_npc_object_23(0xFFB6)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_108E;
		UI_set_npc_id_BD(0xFFBB, 0x000D);
		UI_set_schedule_type_25(0xFFB6, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFB6, [0x23, 0x64, 0x52, "@Restrain thyself, Luther!@", 0x27, 0x000B, 0x55, 0x01C3]);
		var0003 = UI_execute_usecode_array_01(0xFFB9, [0x23, 0x27, 0x0008, 0x64, 0x52, "@Thou must make me!@"]);
		abrt();
	labelFunc01C3_108E:
		if(!((item == UI_get_npc_object_23(0xFFB9)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_111F;
		UI_set_schedule_type_25(0xFFB9, 0x000F);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		UcMessage("\"Leave him alone, Luther.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB9, 0x0000);
		UcMessage("\"Thou shouldst stay out of this, woman...\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFF6A, "@No, Shazzana...@", 0x0004);
		Func097F(0xFFB6, "@Thou shalt not tell me what to do!@", 0x0002);
		UI_si_path_run_usecode_C1(0xFFB6, [0x041C, 0x0A81, 0x0000], 0x000D, UI_get_npc_object_23(0xFFB6), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFB6), 0x000E);
		abrt();
	labelFunc01C3_111F:
		if(!(item == UI_get_npc_object_23(0xFFBD))) goto labelFunc01C3_1142;
		UI_move_object_4B(0xFFBD, [0x0421, 0x0A74, 0x0000]);
		event = 0x000D;
	labelFunc01C3_1142:
		if(!((item == UI_get_npc_object_23(0xFFBC)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_1165;
		UI_set_schedule_type_25(0xFFBC, 0x000F);
		abrt();
	labelFunc01C3_1165:
		if(!((item == UI_get_npc_object_23(0xFFBC)) && (UI_get_npc_id_BC(0xFFBB) == 0x0002))) goto labelFunc01C3_1194;
		UI_move_object_4B(0xFFBC, [0x0415, 0x0A7D, 0x0000]);
		event = 0x000D;
	labelFunc01C3_1194:
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x0001) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc01C3_11C3;
		UI_move_object_4B(0xFE9C, [0x041F, 0x0A7B, 0x0000]);
		event = 0x000D;
	labelFunc01C3_11C3:
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x0000) && ((UI_get_item_shape_18(item) == 0x01B0) || (UI_get_item_shape_18(item) == 0x010E)))) goto labelFunc01C3_11FC;
		UI_move_object_4B(0xFE9C, [0x041F, 0x0A90, 0x0000]);
		event = 0x000D;
	labelFunc01C3_11FC:
		if(!(event == 0x000D)) goto labelFunc01C3_1675;
		if(!((item == UI_get_npc_object_23(0xFFBF)) && (UI_get_npc_id_BC(0xFFBB) == 0x0008))) goto labelFunc01C3_1253;
		UI_set_schedule_type_25(0xFFBF, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFBF, [0x23, 0x59, 0x0004, 0x27, 0x0002, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x6D, 0x52, "@Do not cry...@"]);
		abrt();
	labelFunc01C3_1253:
		if(!((item == UI_get_npc_object_23(0xFFB6)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_12BB;
		UI_set_npc_id_BD(0xFFBB, 0x000D);
		UI_set_schedule_type_25(0xFFB6, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFB6, [0x23, 0x64, 0x52, "@Leave him alone, Luther!@", 0x27, 0x000B, 0x55, 0x01C3]);
		var0003 = UI_execute_usecode_array_01(0xFFB9, [0x23, 0x27, 0x0008, 0x64, 0x52, "@Thou must make me!@"]);
		abrt();
	labelFunc01C3_12BB:
		if(!((item == UI_get_npc_object_23(0xFFB9)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_134C;
		UI_set_schedule_type_25(0xFFB9, 0x000F);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		UcMessage("\"Leave him alone, Luther.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB9, 0x0000);
		UcMessage("\"Thou shouldst stay out of this, woman...\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFF6A, "@No, Shazzana...@", 0x0004);
		Func097F(0xFFB6, "@Thou shalt not tell me what to do!@", 0x0002);
		UI_si_path_run_usecode_C1(0xFFB6, [0x041C, 0x0A81, 0x0000], 0x000D, UI_get_npc_object_23(0xFFB6), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFB6), 0x000E);
		abrt();
	labelFunc01C3_134C:
		if(!(item == UI_get_npc_object_23(0xFFBD))) goto labelFunc01C3_145D;
		gflags[0079] = true;
		UI_set_schedule_type_25(0xFFBD, 0x000F);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBD, 0x0000);
		UcMessage("\"My daughter Cantra is gone! I have looked everywhere for her. We need to send out a patrol!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB1, 0x0000);
		UcMessage("\"The Goblins have struck again!\"");
		UcSay;
		UcMessage("\"I am sorry, Harnna, but if the Goblins have her, she is lost. There is not an ounce of mercy or remorse within them.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"But the Goblins did not take her!\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"Thou canst not know any such thing. It must have been the Goblins. Remember, they killed thine husband right outside this city, not even leaving a body!\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFBD, [0x23, 0x52, "@My daughter!@", 0x6C, 0x6D, 0x27, 0x0007, 0x52, "@Oh!@", 0x27, 0x0007, 0x59, 0x0000, 0x6C, 0x52, "@We must find her!@", 0x6C, 0x6D, 0x6E]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFB1, [0x23, 0x52, "@Lord Marsten...@", 0x27, 0x0002, 0x6C, 0x61, 0x27, 0x0004, 0x55, 0x01C3], 0x0014);
		Func097F(0xFFC1, "@Kill the Goblins!@", 0x0005);
		Func097F(0xFFBF, "@Poor dear!@", 0x0002);
		UI_si_path_run_usecode_C1(0xFFBF, [0x0422, 0x0A73, 0x0000], 0x000D, UI_get_npc_object_23(0xFFBF), 0x01C3, false);
		UI_set_path_failure_A7(0x01C3, UI_get_npc_object_23(0xFFBF), 0x000E);
		UI_remove_npc_face1_08();
		abrt();
	labelFunc01C3_145D:
		if(!((item == UI_get_npc_object_23(0xFFBC)) && (UI_get_npc_id_BC(0xFFBB) == 0x000C))) goto labelFunc01C3_1480;
		UI_set_schedule_type_25(0xFFBC, 0x000F);
		abrt();
	labelFunc01C3_1480:
		if(!((item == UI_get_npc_object_23(0xFFBC)) && (UI_get_npc_id_BC(0xFFBB) == 0x0002))) goto labelFunc01C3_14C0;
		var0003 = UI_execute_usecode_array_01(0xFFBC, [0x23, 0x52, "@I am sorry that I am late...@", 0x59, 0x0002, 0x6C, 0x6B]);
		UI_set_schedule_type_25(0xFFBC, 0x000F);
		abrt();
	labelFunc01C3_14C0:
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x0001) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc01C3_1546;
		UI_set_npc_id_BD(0xFFBB, 0x0002);
		Func097F(0xFFBB, (("@Please be seated, " + var0001) + ".@"), 0x0003);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBB, [0x23, 0x6C, 0x61], 0x0002);
		var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@Yes, milord.@", 0x59, 0x0000, 0x6C, 0x6B, 0x27, 0x0008, 0x55, 0x01C3], 0x0005);
		Func09AC(0xFFBA, Dupre, 0x0000, 0x0017);
		abrt();
	labelFunc01C3_1546:
		if(!((UI_get_npc_id_BC(0xFFBB) == 0x0000) && ((UI_get_item_shape_18(item) == 0x01B0) || (UI_get_item_shape_18(item) == 0x010E)))) goto labelFunc01C3_1675;
		UI_set_npc_id_BD(0xFFBB, 0x0001);
		Func097F(0xFE9C, "@Look! Everyone is here...@", 0x0003);
		Func097F(0xFFB0, "@Where is Harnna?@", 0x0017);
		Func097F(0xFFB3, "@Our guest is here...@", 0x0016);
		var0003 = (UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x0000) & UI_find_nearby_41(0xFE9C, 0x01B0, 0x000A, 0x0000));
		enum();
	labelFunc01C3_15BB:
		for (var0009 in var0003 with var0020 to var0021 atend labelFunc01C3_15D0);
		UI_remove_item_84(var0009);
		goto labelFunc01C3_15BB;
	labelFunc01C3_15D0:
		var0009 = UI_create_new_object_2C(0x01B1);
		if(!var0009) goto labelFunc01C3_1614;
		var0003 = UI_set_item_quality_1D(var0009, 0x0000);
		UI_set_item_frame_1B(var0009, 0x0009);
		UI_clear_item_flag_A5(var0009, 0x0012);
		var0003 = UI_update_last_created_2F([0x041C, 0x0A8F, 0x0000]);
	labelFunc01C3_1614:
		var0009 = UI_create_new_object_2C(0x0178);
		if(!var0009) goto labelFunc01C3_1658;
		var0003 = UI_set_item_quality_1D(var0009, 0x0000);
		UI_set_item_frame_1B(var0009, 0x000D);
		UI_clear_item_flag_A5(var0009, 0x0012);
		var0003 = UI_update_last_created_2F([0x0423, 0x0A8F, 0x0000]);
	labelFunc01C3_1658:
		UI_play_sound_effect2_A1(0x0020, item);
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x01C3]);
		abrt();
	labelFunc01C3_1675:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D2 0x7D2 (var var0000);
extern Func0901 0x901 ();
extern Func094F 0x94F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AF 0x9AF (var var0000, var var0001, var var0002, var var0003);
extern var Func0956 0x956 (var var0000);
extern var Func098D 0x98D ();
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);

Func01C7 0x1C7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = "his";
	var0003 = "him";
	var0004 = "he";
	var0005 = "man";
	if(!UI_is_pc_female_6F()) goto labelFunc01C7_0044;
	var0002 = "her";
	var0004 = "she";
	var0003 = "her";
	var0005 = "woman";
	labelFunc01C7_0044:
		var0006 = Func0953();
		var0007 = UI_part_of_day_48();
		var0008 = 0x0000;
		if(!((UI_get_npc_id_BC(0xFFEC) > 0x0006) && (UI_get_npc_id_BC(0xFFEC) != 0x0011))) goto labelFunc01C7_0077;
		var0008 = 0x0002;
	labelFunc01C7_0077:
		if(!((var0007 > 0x0001) || (var0007 < 0x0006))) goto labelFunc01C7_0092;
		var0007 = "day";
		goto labelFunc01C7_0098;
	labelFunc01C7_0092:
		var0007 = "evening";
	labelFunc01C7_0098:
		if(!(event == 0x000E)) goto labelFunc01C7_0215;
		if(!((UI_get_npc_id_BC(0xFFEE) == 0x000D) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc01C7_0137;
		var0009 = UI_get_object_position_20(0xFE9C);
		var0009[0x0001] = (var0009[0x0001] - (var0009[0x0003] / 0x0002));
		var0009[0x0002] = (var0009[0x0002] - (var0009[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_move_object_4B(0xFE9C, [0x0937, 0x0733, 0x0001]);
		UI_play_sound_effect_16(0x0082);
		event = 0x000D;
	labelFunc01C7_0137:
		if(!((UI_get_npc_id_BC(0xFFEE) == 0x000C) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc01C7_01CE;
		var0009 = UI_get_object_position_20(0xFE9C);
		var0009[0x0001] = (var0009[0x0001] - (var0009[0x0003] / 0x0002));
		var0009[0x0002] = (var0009[0x0002] - (var0009[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_move_object_4B(0xFE9C, [0x093C, 0x0740, 0x0000]);
		UI_play_sound_effect_16(0x0082);
		event = 0x000D;
	labelFunc01C7_01CE:
		if(!((UI_get_npc_id_BC(0xFFEE) == 0x0001) && (item == UI_get_npc_object_23(0xFFEE)))) goto labelFunc01C7_0215;
		if(!(UI_get_distance_21(0xFFEE, 0xFE9C) > 0x0002)) goto labelFunc01C7_0215;
		0xFFEE;
		calle();
		var000A = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x55, 0x01C7], 0x0008);
		abrt();
	labelFunc01C7_0215:
		if(!((event == 0x000D) && gflags[00E2])) goto labelFunc01C7_0372;
		if(!((UI_get_npc_id_BC(0xFFEE) == 0x000D) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc01C7_023D;
		Func0901();
		abrt();
	labelFunc01C7_023D:
		if(!((UI_get_npc_id_BC(0xFFEE) == 0x000C) && (UI_get_npc_number_47(item) == 0xFE9C))) goto labelFunc01C7_0372;
		var000B = [0x0178, 0x010E, 0x01B0, 0x01B1];
		var000C = [];
		enum();
	labelFunc01C7_026E:
		for (var000F in var000B with var000D to var000E atend labelFunc01C7_0293);
		var000C = (var000C & UI_find_nearby_41(0xFE9C, var000F, 0x000A, 0x0000));
		goto labelFunc01C7_026E;
	labelFunc01C7_0293:
		var0010 = false;
		enum();
	labelFunc01C7_0298:
		for (var000F in var000C with var0011 to var0012 atend labelFunc01C7_02EA);
		if(!(UI_get_item_quality_1C(var000F) == 0x00D4)) goto labelFunc01C7_02E7;
		var0010 = var000F;
		var0009 = UI_get_object_position_20(var000F);
		UI_sprite_effect_68(0x0015, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0040);
	labelFunc01C7_02E7:
		goto labelFunc01C7_0298;
	labelFunc01C7_02EA:
		if(!var0010) goto labelFunc01C7_0308;
		var0013 = (UI_get_item_frame_1A(var0010) - 0x0001);
		UI_set_item_frame_1B(var0010, var0013);
	labelFunc01C7_0308:
		var000A = (UI_find_nearby_41(0xFE9C, 0x010E, 0x0028, 0x0000) & UI_find_nearby_41(0xFE9C, 0x01B0, 0x0028, 0x0000));
		enum();
	labelFunc01C7_032D:
		for (var000F in var000A with var0014 to var0015 atend labelFunc01C7_035B);
		if(!(UI_get_item_quality_1C(var000F) == 0x00D3)) goto labelFunc01C7_0358;
		UI_set_item_frame_1B(var000F, (UI_get_item_frame_1A(var000F) - 0x0002));
	labelFunc01C7_0358:
		goto labelFunc01C7_032D;
	labelFunc01C7_035B:
		var000A = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x55, 0x01C7], 0x0001);
	labelFunc01C7_0372:
		if(!((event == 0x0002) && gflags[00E2])) goto labelFunc01C7_1563;
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000C)) goto labelFunc01C7_03B8;
		UI_set_npc_id_BD(0xFFEE, 0x000D);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0937, 0x0733, 0x0001], 0x000D, UI_get_npc_object_23(0xFE9C), 0x01C7, false);
		abrt();
	labelFunc01C7_03B8:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000B)) goto labelFunc01C7_0444;
		UI_set_npc_id_BD(0xFFEE, 0x000C);
		UI_play_sound_effect_16(0x0040);
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x000D, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000A = ["@What's going on?@", "@Cannot stop...@", "@Where am I going?@"];
		Func094F(0xFE9C, var000A);
		UI_si_path_run_usecode_C1(0xFE9C, [0x093C, 0x0740, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x01C7, false);
		UI_set_npc_id_BD(0xFFEC, 0x0000);
		abrt();
	labelFunc01C7_0444:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000A)) goto labelFunc01C7_05C5;
		UI_set_npc_id_BD(0xFFEE, 0x000B);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFF3, 0x0000);
		UcMessage("\"Not that place! ");
		UcMessage(var0004);
		UcMessage(" shall never be seen alive again!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEA, 0x0000);
		UcMessage("\"It shall be with this criminal as with all others -- if ");
		UcMessage(var0004);
		UcMessage(" can find ");
		UcMessage(var0002);
		UcMessage(" way back to the surface world, then ");
		UcMessage(var0004);
		UcMessage(" shall be a free ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"Enough of this jabbering. Let justice be done!\"");
		UcSay;
		UI_end_conversation_86();
		var000A = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x27, 0x0005, 0x6C, 0x61, 0x59, 0x0004, 0x52, "@Oh, cease thy prattle!@"]);
		Func097F(0xFFEA, "@Poor fool...@", 0x0014);
		Func097F(Dupre, "@Keep thy wits, Avatar!@", 0x0019);
		Func097F(Iolo, "@Do not despair!@", 0x0014);
		Func097F(Shamino, "@We shall wait for thee!@", 0x000C);
		Func097F(0xFFDE, (((("@" + var0004) + " is a dead ") + var0005) + "!@"), 0x0000);
		Func097F(0xFFD6, "@He made me do it...@", 0x000C);
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0004, 0x27, 0x0002, 0x59, 0x0006]);
		var000A = UI_execute_usecode_array_01(0xFFF3, [0x23, 0x59, 0x0006, 0x6C, 0x6B, 0x52, (("@" + var0004) + " is doomed...@")]);
		var000A = UI_execute_usecode_array_01(0xFFE6, [0x23, 0x59, 0x0000, 0x6C, 0x6B]);
		var000A = UI_projectile_effect_4F(0xFFEE, 0xFE9C, 0x0118);
		var000A = UI_execute_usecode_array_01(0xFFEE, [0x23, 0x69, 0x6A, 0x7A, 0x58, 0x0039, 0x61, 0x27, 0x0004, 0x55, 0x01C7]);
		abrt();
	labelFunc01C7_05C5:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0009)) goto labelFunc01C7_067D;
		UI_set_npc_id_BD(0xFFEE, 0x000A);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFE6, 0x0000);
		UcMessage("\"As with all who offend the MageLord, this criminal must be sent to the hellhole known as Dungeon Freedom.\"");
		UcSay;
		UI_play_music_39(0x0017, Func09A0(0x0005, 0x0001));
		UI_end_conversation_86();
		var000A = UI_execute_usecode_array_01(0xFFF3, [0x23, 0x52, "@Oh, no!@", 0x27, 0x0002, 0x6C, 0x61, 0x59, 0x0000, 0x64, 0x27, 0x0004, 0x55, 0x01C7]);
		var000A = UI_execute_usecode_array_01(0xFFE6, [0x23, 0x27, 0x0002, 0x59, 0x0002]);
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0004, 0x59, 0x0002]);
		var000A = UI_execute_usecode_array_01(0xFFEE, [0x23, 0x27, 0x0002, 0x59, 0x0002]);
		abrt();
	labelFunc01C7_067D:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0008)) goto labelFunc01C7_0712;
		UI_set_npc_id_BD(0xFFEE, 0x0009);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEA, 0x0000);
		UcMessage("\"For the crime of entering the bedchamber of the MageLord's mistress, we must find ");
		UcMessage(var0003);
		UcMessage(" guilty, MageLord.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Guilty!\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFEE, "@And the sentence?@", 0x0000);
		Func09AF(0xFFEA, 0xFFE6, 0x0004, 0x01C7);
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0004]);
		var000A = UI_execute_usecode_array_01(0xFFEE, [0x23, 0x59, 0x0002, 0x27, 0x0001, 0x59, 0x0004]);
		abrt();
	labelFunc01C7_0712:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0007)) goto labelFunc01C7_07AA;
		UI_set_npc_id_BD(0xFFEE, 0x0008);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"Lords and Adepts, you have heard the evidence! ");
		UcMessage(var0006);
		UcMessage(" did come amongst us like a disease, to bring destruction upon us all.\"");
		UcSay;
		UcMessage("\"Worst of all, ");
		UcMessage(var0004);
		UcMessage(" hath dared to tamper with the affections of she whom I hold most dear, the good sorceress Frigidazzi.\"");
		UcSay;
		UcMessage("\"How do you judge ");
		UcMessage(var0003);
		UcMessage("?\"");
		UcSay;
		UI_end_conversation_86();
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0000]);
		var000A = UI_execute_usecode_array_01(0xFFEA, [0x23, 0x27, 0x0002, 0x6C, 0x61, 0x27, 0x0004, 0x55, 0x01C7]);
		var000A = UI_execute_usecode_array_01(0xFFEE, [0x23, 0x59, 0x0000]);
		abrt();
	labelFunc01C7_07AA:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0006)) goto labelFunc01C7_08A3;
		UI_set_npc_id_BD(0xFFEE, 0x0007);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFD6, 0x0000);
		UcMessage("\"I did travel with this person upon my recent voyage from the Inn of the Sleeping Bull, and I had many long talks with ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I must report that ");
		UcMessage(var0002);
		UcMessage(" character is not to be trusted. ");
		UcMessage(var0004);
		UcMessage(" is a liar, a fraud, and is known to consort with people of the lowest type.\"");
		UcSay;
		var0016 = Func0956(["Oh, like thyself?", "I deny this charge", "say nothing"]);
		if(!(var0016 == "Oh, like thyself?")) goto labelFunc01C7_082D;
		UcMessage("\"See, lords? ");
		UcMessage(var0004);
		UcMessage(" doth have a wicked tongue, which is why ");
		UcMessage(var0006);
		UcMessage(" is so often in great trouble...\"");
		UcSay;
		UcMessage("\"The only reason ");
		UcMessage(var0004);
		UcMessage(" came to Moonshade was to flee justice at the hands of the Knights of Monitor!\"");
		UcSay;
		UcMessage("\"They accuse ");
		UcMessage(var0003);
		UcMessage(" of bribing the Tower guards in order to release one of their prisoners...\"");
		UcSay;
		goto labelFunc01C7_084E;
	labelFunc01C7_082D:
		if(!(var0016 == "I deny this charge")) goto labelFunc01C7_0844;
		UcMessage("\"Denial will do thee no good, ");
		UcMessage(var0006);
		UcMessage(". Dost thou not understand that the MageLord will have his way?\"");
		UcSay;
		goto labelFunc01C7_084E;
	labelFunc01C7_0844:
		UcMessage("\"Yet ");
		UcMessage(var0004);
		UcMessage(" was a good travelling companion, able with sword and bow -- so I ask for thy leniency, MageLord.\"");
		UcSay;
	labelFunc01C7_084E:
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Thanks for thy witness, good merchant.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFEE, "@Thou mayest be seated.@", 0x0000);
		var000A = UI_execute_usecode_array_01(0xFFD6, [0x23, 0x6C, 0x6B, 0x27, 0x000C, 0x55, 0x01C7]);
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0006]);
		abrt();
	labelFunc01C7_08A3:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0005)) goto labelFunc01C7_09BD;
		UI_set_npc_id_BD(0xFFEE, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFF3, 0x0000);
		UcMessage("\"This stranger came into my shop and asked many strange and personal questions concerning the Sorceress Frigidazzi.\"");
		UcSay;
		var0016 = Func0956(["That's a lie", "I was only curious", "say nothing"]);
		if(!(var0016 == "That's a lie")) goto labelFunc01C7_08FE;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"How darest thou defame the good lady Bucia, my good and dear friend!\"");
		UcSay;
		UcMessage("\"Adepts, be sure to remember this offensive behavior when it comes time to render your verdict.\"");
		UcSay;
		goto labelFunc01C7_095C;
	labelFunc01C7_08FE:
		if(!(var0016 == "I was only curious")) goto labelFunc01C7_0942;
		UI_show_npc_face1_06(0xFFEA, 0x0000);
		UcMessage("\"Such curiosity seems most impudent, considering that thou art a stranger in this land...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And ");
		UcMessage(var0004);
		UcMessage(" did ask many questions about many other people, and about strange objects which I was not familiar with...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Hardly the act of the casual adventurer ");
		UcMessage(var0004);
		UcMessage(" pretends to be...\"");
		UcSay;
		goto labelFunc01C7_095C;
	labelFunc01C7_0942:
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Aha! The cad doth not even rise in ");
		UcMessage(var0002);
		UcMessage(" own defense -- ");
		UcMessage(var0004);
		UcMessage(" must be guilty!\"");
		UcSay;
	labelFunc01C7_095C:
		UcMessage("\"Let us hear from the next witness.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFEE, "@Merchant Flindo!@", 0x0000);
		var000A = UI_execute_usecode_array_01(0xFFF3, [0x23, 0x6C, 0x6B]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFD6, [0x23, 0x6C, 0x61, 0x27, 0x0002, 0x6C, 0x6D, 0x6C, 0x52, "@Lord Filbercio...@", 0x27, 0x0002, 0x6C, 0x61, 0x27, 0x0002, 0x55, 0x01C7], 0x0005);
		abrt();
	labelFunc01C7_09BD:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0004)) goto labelFunc01C7_0AC5;
		UI_set_npc_id_BD(0xFFEE, 0x0005);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		UcMessage("\"I beg of thee, MageLord Filbercio, to spare this person's life. It was all my fault.\"");
		UcSay;
		if(!((UI_get_npc_id_BC(0xFFEC) > 0x000B) && (UI_get_npc_id_BC(0xFFEC) != 0x0011))) goto labelFunc01C7_0A05;
		UcMessage("\"After all, no mortal can resist the Dance of Passion.\"");
		UcSay;
	labelFunc01C7_0A05:
		var0016 = Func0956(["It's her fault", "It's my fault", "Nothing happened", "say nothing"]);
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		if(!(var0016 == "It's her fault")) goto labelFunc01C7_0A35;
		UcMessage("\"What a cad! This whoreson thinks to escape punishment for the crime by blaming it all on dear Frigidazzi.\"");
		UcSay;
		goto labelFunc01C7_0A64;
	labelFunc01C7_0A35:
		if(!(var0016 == "It's my fault")) goto labelFunc01C7_0A4C;
		UcMessage("\"See -- you have heard it from ");
		UcMessage(var0002);
		UcMessage(" own mouth!\"");
		UcSay;
		goto labelFunc01C7_0A64;
	labelFunc01C7_0A4C:
		if(!(var0016 == "Nothing happened")) goto labelFunc01C7_0A64;
		UcMessage("\"My fellow wizards, I am sure that you are able to see beyond this criminal's denials!\"");
		UcSay;
		UcMessage("\"After all, I caught ");
		UcMessage(var0003);
		UcMessage(" in the bedchamber of dear Frigidazzi...\"");
		UcSay;
	labelFunc01C7_0A64:
		UcMessage("\"Please be seated, Frigidazzi. We shall now hear from the character witnesses.\"");
		UcSay;
		UI_end_conversation_86();
		var000A = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6C, 0x6B]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFF3, [0x23, 0x6C, 0x61, 0x27, 0x0002, 0x6C, 0x6D, 0x6C, 0x52, "@MageLord...@", 0x27, 0x0002, 0x6C, 0x61, 0x27, 0x0002, 0x55, 0x01C7], 0x0005);
		Func097F(0xFFEE, "@The good lady Bucia...@", 0x0000);
		abrt();
	labelFunc01C7_0AC5:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0003)) goto labelFunc01C7_0B61;
		UI_set_npc_id_BD(0xFFEE, 0x0004);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"Order in the court!\"");
		UcSay;
		UcMessage("\"We have convened this day to hear the case of ");
		UcMessage(var0006);
		UcMessage(", who hath committed treason. This criminal is charged with lusting after the mistress of the MageLord.\"");
		UcSay;
		if(!UI_npc_nearby_3A(Iolo)) goto labelFunc01C7_0B20;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Since when is this a crime? What doth the lady say?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Be silent, or thou too wilt be sentenced to the Pit -- for thine insolence!\"");
		UcSay;
	labelFunc01C7_0B20:
		UI_end_conversation_86();
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x27, 0x0004, 0x59, 0x0002]);
		var000A = UI_execute_usecode_array_01(0xFFEC, [0x27, 0x0002, 0x6C, 0x61, 0x52, "@Let me speak...@", 0x27, 0x0007, 0x55, 0x01C7]);
		abrt();
	labelFunc01C7_0B61:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0002)) goto labelFunc01C7_1291;
		UI_set_npc_id_BD(0xFFEE, 0x0003);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_music_39(0x0027, Func09A0(0x0005, 0x0001));
		var0017 = Func098D();
		var0017 = Func0988(0xFFE4, var0017);
		var0017 = Func0988(0xFFE6, var0017);
		var0017 = Func0988(0xFF58, var0017);
		var0018 = 0x0000;
		enum();
	labelFunc01C7_0BC7:
		for (var0016 in var0017 with var0019 to var001A atend labelFunc01C7_0C2A);
		if(!UI_npc_nearby2_3B(var0016)) goto labelFunc01C7_0C27;
		UI_set_schedule_type_25(var0016, 0x000F);
		UI_move_object_4B(var0016, [0x0938, (0x074A + var0018), 0x0000]);
		var000A = UI_execute_usecode_array_01(var0016, [0x23, 0x59, 0x0006, 0x6B]);
		UI_set_npc_id_BD(var0016, 0x001E);
		var0018 = (var0018 + 0x0002);
	labelFunc01C7_0C27:
		goto labelFunc01C7_0BC7;
	labelFunc01C7_0C2A:
		var000A = UI_get_object_position_20(0xFFDE);
		if(!(((var000A[0x0001] > 0x0859) && ((var000A[0x0001] < 0x0AB4) && ((var000A[0x0002] > 0x0500) && (var000A[0x0002] < 0x0994)))) || (((var000A[0x0001] > 0x0762) && ((var000A[0x0001] < 0x085B) && ((var000A[0x0002] > 0x0585) && (var000A[0x0002] < 0x0957)))) || (((var000A[0x0001] > 0x0744) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x06F9) && (var000A[0x0002] < 0x073D)))) || (((var000A[0x0001] > 0x071E) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0828) && (var000A[0x0002] < 0x088D)))) || (((var000A[0x0001] > 0x06FC) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x07A6) && (var000A[0x0002] < 0x082A)))) || ((var000A[0x0001] > 0x074C) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0719) && (var000A[0x0002] < 0x07A8)))))))))) goto labelFunc01C7_0D48;
		UI_set_npc_id_BD(0xFFDE, 0x001E);
	labelFunc01C7_0D48:
		var000A = UI_get_object_position_20(Iolo);
		if(!(((var000A[0x0001] > 0x0859) && ((var000A[0x0001] < 0x0AB4) && ((var000A[0x0002] > 0x0500) && (var000A[0x0002] < 0x0994)))) || (((var000A[0x0001] > 0x0762) && ((var000A[0x0001] < 0x085B) && ((var000A[0x0002] > 0x0585) && (var000A[0x0002] < 0x0957)))) || (((var000A[0x0001] > 0x0744) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x06F9) && (var000A[0x0002] < 0x073D)))) || (((var000A[0x0001] > 0x071E) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0828) && (var000A[0x0002] < 0x088D)))) || (((var000A[0x0001] > 0x06FC) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x07A6) && (var000A[0x0002] < 0x082A)))) || ((var000A[0x0001] > 0x074C) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0719) && (var000A[0x0002] < 0x07A8)))))))))) goto labelFunc01C7_0E66;
		UI_set_npc_id_BD(Iolo, 0x001E);
	labelFunc01C7_0E66:
		var000A = UI_get_object_position_20(Dupre);
		if(!(((var000A[0x0001] > 0x0859) && ((var000A[0x0001] < 0x0AB4) && ((var000A[0x0002] > 0x0500) && (var000A[0x0002] < 0x0994)))) || (((var000A[0x0001] > 0x0762) && ((var000A[0x0001] < 0x085B) && ((var000A[0x0002] > 0x0585) && (var000A[0x0002] < 0x0957)))) || (((var000A[0x0001] > 0x0744) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x06F9) && (var000A[0x0002] < 0x073D)))) || (((var000A[0x0001] > 0x071E) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0828) && (var000A[0x0002] < 0x088D)))) || (((var000A[0x0001] > 0x06FC) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x07A6) && (var000A[0x0002] < 0x082A)))) || ((var000A[0x0001] > 0x074C) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0719) && (var000A[0x0002] < 0x07A8)))))))))) goto labelFunc01C7_0F84;
		UI_set_npc_id_BD(Dupre, 0x001E);
	labelFunc01C7_0F84:
		UI_set_npc_id_BD(Shamino, 0x001E);
		var000A = UI_get_object_position_20(Shamino);
		if(!(!(((var000A[0x0001] > 0x0859) && ((var000A[0x0001] < 0x0AB4) && ((var000A[0x0002] > 0x0500) && (var000A[0x0002] < 0x0994)))) || (((var000A[0x0001] > 0x0762) && ((var000A[0x0001] < 0x085B) && ((var000A[0x0002] > 0x0585) && (var000A[0x0002] < 0x0957)))) || (((var000A[0x0001] > 0x0744) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x06F9) && (var000A[0x0002] < 0x073D)))) || (((var000A[0x0001] > 0x071E) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0828) && (var000A[0x0002] < 0x088D)))) || (((var000A[0x0001] > 0x06FC) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x07A6) && (var000A[0x0002] < 0x082A)))) || ((var000A[0x0001] > 0x074C) && ((var000A[0x0001] < 0x0764) && ((var000A[0x0002] > 0x0719) && (var000A[0x0002] < 0x07A8))))))))))) goto labelFunc01C7_10B5;
		if(!(!UI_get_item_flag_A3(Shamino, 0x0004))) goto labelFunc01C7_10B5;
		gflags[013A] = true;
	labelFunc01C7_10B5:
		Func097F(var0016, "@Hush...@", 0x0007);
		UI_move_object_4B(0xFE9C, [0x0930, 0x074E, 0x0000]);
		var000A = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x59, 0x0006, 0x55, 0x0636, 0x54, 0x0020], 0x000A);
		UI_move_object_4B(0xFFEE, [0x0925, 0x074F, 0x0001]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x59, 0x0002, 0x6C, 0x6B, 0x58, 0x0038, 0x27, 0x0008, 0x0B, 0xFFFC, 0x0003, 0x6C, 0x61, 0x52, "@Order!@", 0x27, 0x0008, 0x55, 0x01C7], 0x000C);
		UI_set_schedule_type_25(0xFFEA, 0x000F);
		UI_move_object_4B(0xFFEA, [0x092F, 0x0746, 0x0001]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFEA, [0x23, 0x59, 0x0004, 0x6C, 0x6B], 0x000C);
		UI_set_schedule_type_25(0xFFE6, 0x000F);
		UI_move_object_4B(0xFFE6, [0x092F, 0x0758, 0x0001]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFE6, [0x23, 0x59, 0x0000, 0x6C, 0x6B, 0x27, 0x000A, 0x52, "@Let us finish this matter...@"], 0x000C);
		UI_move_object_4B(0xFFEC, [0x0938, 0x0751, 0x0000]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x59, 0x0006, 0x6C, 0x6B], 0x000C);
		UI_set_schedule_type_25(0xFFF3, 0x000F);
		UI_move_object_4B(0xFFF3, [0x0938, 0x0756, 0x0000]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFF3, [0x23, 0x27, 0x0004, 0x52, "@This should be interesting...@", 0x59, 0x0006, 0x6C, 0x6B], 0x000C);
		UI_set_schedule_type_25(0xFFD6, 0x000F);
		UI_move_object_4B(0xFFD6, [0x0938, 0x0754, 0x0000]);
		var000A = UI_delayed_execute_usecode_array_02(0xFFD6, [0x23, 0x59, 0x0006, 0x6C, 0x6B, 0x27, 0x0008, 0x52, (("@" + var0004) + "'s guilty!@")], 0x000C);
		UI_set_polymorph_B3(0xFFEC, 0x028C);
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		abrt();
	labelFunc01C7_1291:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0001)) goto labelFunc01C7_1506;
		UI_set_npc_id_BD(0xFFEE, 0x0002);
		var000A = UI_find_nearby_41(item, 0x01FD, 0x0014, 0x0000);
		if(!var000A) goto labelFunc01C7_12CA;
		UI_set_schedule_type_25(var000A, 0x0014);
	labelFunc01C7_12CA:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"What!? Frigidazzi, why is this stranger in thy chambers?!\"");
		UcSay;
		if(!((UI_get_npc_id_BC(0xFFEC) > 0x0006) && (UI_get_npc_id_BC(0xFFEC) != 0x0011))) goto labelFunc01C7_12FA;
		UcMessage("\"And where are thy clothes?\"");
		UcSay;
	labelFunc01C7_12FA:
		UI_show_npc_face1_06(0xFFEC, var0008);
		UcMessage("\"Darling! This is such a surprise... I have an explanation for everything...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I am not daft, sorceress. I can see very well what hath been happening here.\"");
		UcSay;
		UcMessage("\"What dost thou have to say in thy defense, ");
		UcMessage(var0006);
		UcMessage("?\"");
		UcSay;
		var0016 = Func0956(["I'm guilty", "I'm innocent", "I'm leaving"]);
		if(!(var0016 == "I'm guilty")) goto labelFunc01C7_1363;
		UcMessage("\"I knew it!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEC, var0008);
		UcMessage("\"Oh, ");
		UcMessage(var0006);
		UcMessage("! Thou shouldst not have said such a thing -- the wrath of the MageLord is legendary!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc01C7_1405;
	labelFunc01C7_1363:
		if(!(var0016 == "I'm innocent")) goto labelFunc01C7_13E2;
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x000C)) goto labelFunc01C7_139B;
		UcMessage("\"Idiot! Dost thou not think that I recognize the after-effects of the Dance of Passion?!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEC, var0008);
		UcMessage("\"Oh, no...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc01C7_13DF;
	labelFunc01C7_139B:
		if(!((UI_get_npc_id_BC(0xFFEC) > 0x000C) && (UI_get_npc_id_BC(0xFFEC) != 0x0011))) goto labelFunc01C7_13BC;
		UcMessage("\"Thou dost stand there without clothes, and claim to be innocent? Ha!\"");
		UcSay;
		goto labelFunc01C7_13DF;
	labelFunc01C7_13BC:
		UcMessage("\"A likely story! Listen here, swine -- thou art not the first to try to steal my favorite mistress...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEC, var0008);
		UcMessage("\"No! Do not do to ");
		UcMessage(var0003);
		UcMessage(" what thou didst to the others...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc01C7_13DF:
		goto labelFunc01C7_1405;
	labelFunc01C7_13E2:
		UcMessage("\"Not so fast, peasant! I have a special punishment reserved for those who dare to play games with my mistresses...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEC, var0008);
		UcMessage("\"No! Do not, Filbercio! Spare this one from thy wrath! Do not send ");
		UcMessage(var0003);
		UcMessage(" into the Pit...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc01C7_1405:
		UcMessage("\"I demand that this criminal be punished by the Council of Mages. Let the quorum of Mages be convened instantly!\"");
		UcSay;
		UI_play_sound_effect_16(0x0082);
		UI_end_conversation_86();
		var0017 = ([0xFE9C, 0xFFEC, 0xFFEE] & Func098D());
		var0017 = Func0988(0xFFE4, var0017);
		var0017 = Func0988(0xFFE6, var0017);
		var0017 = Func0988(0xFF58, var0017);
		enum();
	labelFunc01C7_144C:
		for (var0016 in var0017 with var001B to var001C atend labelFunc01C7_1497);
		var000A = UI_get_npc_name_30(var0016);
		if(!UI_npc_nearby_3A(var0016)) goto labelFunc01C7_1494;
		var0009 = UI_get_object_position_20(var0016);
		UI_sprite_effect_68(0x0007, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc01C7_1494:
		goto labelFunc01C7_144C;
	labelFunc01C7_1497:
		Func097F(0xFFEE, "@Vas Ibex Ort!@", 0x0000);
		UI_set_schedule_type_25(0xFFEE, 0x000F);
		Func097F(0xFE9C, "@Hey!@", 0x0009);
		Func097F(0xFFEC, (("@Do not hurt " + var0003) + "!@"), 0x000B);
		if(!(UI_get_npc_id_BC(0xFFEC) == 0x0010)) goto labelFunc01C7_14EE;
		var000A = UI_execute_usecode_array_01(0xFFEC, [0x23, 0x6C, 0x61]);
	labelFunc01C7_14EE:
		var000A = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x55, 0x01C7], 0x000F);
		abrt();
	labelFunc01C7_1506:
		UI_set_npc_id_BD(0xFFEE, 0x0001);
		Func097F(0xFFEE, "@What is happening?!@", 0x0000);
		var0009 = UI_get_object_position_20(0xFE9C);
		UI_si_path_run_usecode_C1(0xFFEE, var0009, 0x0003, UI_get_npc_object_23(0xFFEE), 0x01C7, true);
		0xFFEE;
		calle();
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x2B, 0x0002, 0x27, 0x0002, 0x55, 0x01C7]);
		abrt();
	labelFunc01C7_1563:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func01C8 0x1C8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func09A0(0x0005, 0x0003);
	if(!(event == 0x0001)) goto labelFunc01C8_0063;
	var0001 = UI_get_item_frame_1A(item);
	if(!(var0001 < 0x0006)) goto labelFunc01C8_0063;
	var0002 = UI_delayed_execute_usecode_array_02(item, [0x2C, 0x23, 0x46, 0x0000], 0x0014);
	UI_set_item_frame_1B(item, 0x0006);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x01C8], 0x0002);
	UI_play_sound_effect_16(0x004A);
	labelFunc01C8_0063:
		if(!(event == 0x0002)) goto labelFunc01C8_00C4;
		var0003 = UI_click_on_item_3F();
		var0004 = UI_get_item_shape_18(var0003);
		if(!(var0004 == 0x0326)) goto labelFunc01C8_00BD;
		gflags[00CE] = true;
		var0005 = UI_get_object_position_20(var0003);
		UI_sprite_effect_68(0x0015, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0043);
		goto labelFunc01C8_00C4;
	labelFunc01C8_00BD:
		UI_play_sound_effect_16(0x0030);
	labelFunc01C8_00C4:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func01D0 0x1D0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!gflags[00BF]) goto labelFunc01D0_0007;
	abrt();
	labelFunc01D0_0007:
		var0000 = UI_set_npc_prop_29(item, 0x0003, 0x0005);
		if(!(UI_get_array_size_73(UI_find_nearby_41(0xFE9C, 0x00E4, 0x001E, 0x0000)) > 0x0006)) goto labelFunc01D0_0031;
		abrt();
	labelFunc01D0_0031:
		var0001 = UI_create_new_object2_2D(0x00E4, [0x0000, 0x0000, 0x0000]);
		if(!var0001) goto labelFunc01D0_008F;
		var0000 = UI_approach_avatar_BF(var0001, 0x005A, 0x0028);
		if(!var0000) goto labelFunc01D0_008F;
		Func09AD(var0001);
		var0002 = UI_get_party_list_2B();
		enum();
	labelFunc01D0_0071:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc01D0_008F);
		UI_set_oppressor_5E(item, var0001);
		UI_set_opponent_5B(item, var0001);
		goto labelFunc01D0_0071;
	labelFunc01D0_008F:
		UI_set_item_flag_A4(item, 0x0001);
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);

Func01D1 0x1D1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func0954();
	if(!(event == 0x0002)) goto labelFunc01D1_035D;
	if(!gflags[0006]) goto labelFunc01D1_0127;
	if(!gflags[0078]) goto labelFunc01D1_00E2;
	if(!(gflags[018B] && (!gflags[0190]))) goto labelFunc01D1_00DF;
	UI_show_npc_face0_05(Iolo, 0x0000);
	var0001 = UI_UNKNOWN_38();
	gflags[0190] = true;
	UcMessage("\"Wait, sailor! I shall sing thee mine heart's one song... I fear that it is a sad one --\"");
	UcSay;
	UI_play_music_39(0x003D, var0001);
	UcMessage("\"It is a shame, a heartsore shame,\"");
	UcSay;
	UI_play_music_39(0x003E, var0001);
	UcMessage("\"That I am singing of my love in vain.\"");
	UcSay;
	UI_play_music_39(0x003B, var0001);
	UcMessage("\"For I have lost my lady, my love,\"");
	UcSay;
	UI_play_music_39(0x003C, var0001);
	UcMessage("\"And I will search for her, yes, search for her,\"");
	UcSay;
	UI_play_music_39(0x003D, var0001);
	UcMessage("\"Even through all the stars above.\"");
	UcSay;
	UI_play_music_39(0x003E, var0001);
	UcMessage("\"Gwenno, canst thou hear me? Gwenno, my dear,\"");
	UcSay;
	UI_play_music_39(0x003B, var0001);
	UcMessage("\"Take heart for thy beloved Iolo is here!\"");
	UcSay;
	UI_play_music_39(0x003C, var0001);
	UI_remove_npc_face0_07();
	UI_revert_schedule_B4(0xFFC6);
	UI_run_schedule_B7(0xFFC6);
	UI_set_schedule_type_25(0xFFC6, 0x000C);
	Func097F(0xFFD0, "@How sad...@", 0x0000);
	Func097F(0xFFCB, "@Catchy tune...@", 0x000A);
	abrt();
	labelFunc01D1_00DF:
		goto labelFunc01D1_0124;
	labelFunc01D1_00E2:
		UI_show_npc_face0_05(Iolo, 0x0000);
		if(!(!gflags[0038])) goto labelFunc01D1_0108;
		UcMessage("\"Please free thine old friend! There hath been a terrible mistake, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"That storm transported me to this odd city. Because I am a stranger, they arrested me. They say that I am an enchanter!\"");
		UcSay;
		UcMessage("\"Speak to Lord Marsten, and win my freedom! I know thou shalt not leave me...\"");
		UcSay;
		goto labelFunc01D1_010C;
	labelFunc01D1_0108:
		UcMessage("\"Avatar! Please free thine old friend! Now that Marsten is jailed, please speak to Brendann and win my freedom!\"");
		UcSay;
	labelFunc01D1_010C:
		Func097F(Iolo, "@Return soon...@", 0x0000);
		UI_run_schedule_B7(Iolo);
		gflags[00AA] = true;
		abrt();
	labelFunc01D1_0124:
		goto labelFunc01D1_035D;
	labelFunc01D1_0127:
		var0002 = UI_get_npc_id_BC(Iolo);
		if(!(var0002 < 0x000A)) goto labelFunc01D1_0347;
		UI_UNKNOWN_72();
		if(!(var0002 == 0x0000)) goto labelFunc01D1_02B8;
		var0003 = UI_get_object_position_20(0xFE9C);
		var0004 = 0x0007;
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0008, 0x0008, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0xFFF8, 0xFFF8, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0008, 0xFFF8, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0xFFF8, 0x0008, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0xFFFB, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0xFFFB, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0x0005, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0005, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(var0004, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc01D1_02B8:
		if(!(var0002 == 0x0007)) goto labelFunc01D1_02DA;
		Func097F(Dupre, "@Is everyone all right?@", 0x0005);
		Func097F(Shamino, "@What happened?@", 0x0000);
	labelFunc01D1_02DA:
		if(!(var0002 == 0x0009)) goto labelFunc01D1_031E;
		UI_set_schedule_type_25(Dupre, 0x000F);
		UI_set_schedule_type_25(Shamino, 0x000F);
		Dupre;
		calle();
		Shamino;
		calle();
		var0005 = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x55, 0x01D1], 0x000F);
		goto labelFunc01D1_0335;
	labelFunc01D1_031E:
		var0005 = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x55, 0x01D1], 0x0000);
	labelFunc01D1_0335:
		UI_set_npc_id_BD(Iolo, (var0002 + 0x0001));
		abrt();
		goto labelFunc01D1_035D;
	labelFunc01D1_0347:
		UI_set_schedule_type_25(Iolo, 0x0003);
		Func097F(Iolo, "@Avatar!@", 0x0000);
	labelFunc01D1_035D:
		return;
}
Func01D3 0x1D3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc01D3_00BB;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 < 0x0002)) goto labelFunc01D3_00BB;
	var0001 = UI_click_on_item_3F();
	if(!(!var0001)) goto labelFunc01D3_0029;
	exit2();
	labelFunc01D3_0029:
		var0002 = UI_get_item_shape_18(var0001);
		if(!(var0002 == 0x02D2)) goto labelFunc01D3_00BB;
		var0003 = UI_get_item_quantity_1E(var0001, var0002);
		if(!(var0003 > 0x0001)) goto labelFunc01D3_0068;
		var0004 = UI_set_item_quantity_1F(var0001, (var0003 - 0x0001));
		goto labelFunc01D3_006F;
	labelFunc01D3_0068:
		UI_remove_item_84(var0001);
	labelFunc01D3_006F:
		var0005 = UI_create_new_object_2C(0x0238);
		if(!var0005) goto labelFunc01D3_00BB;
		var0004 = UI_set_item_quantity_1F(var0005, 0x0001);
		var0006 = UI_get_object_position_20(0xFE9C);
		var0004 = UI_update_last_created_2F([(var0006[0x0001] + 0x0001), var0006[0x0002], var0006[0x0003]]);
		UI_remove_item_84(item);
	labelFunc01D3_00BB:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func094A 0x94A (var var0000);

Func01D6 0x1D6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x000B)) goto labelFunc01D6_009D;
	if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc01D6_0028;
	var0000 = UI_find_nearby_41(item, 0x01D6, 0x0005, 0x0000);
	goto labelFunc01D6_002C;
	labelFunc01D6_0028:
		var0000 = item;
	labelFunc01D6_002C:
		if(!var0000) goto labelFunc01D6_009D;
		UI_halt_scheduled_71(item);
		UI_halt_scheduled_71(var0000);
		var0001 = UI_execute_usecode_array_01(var0000, [0x46, 0x0001, 0x4D, 0x0B, Dupre, 0x0006, 0x46, 0x0001]);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x01D6], 0x000B);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0004, 0x01, 0x65, 0x67, 0x0B, Shamino, 0x0002]);
		var0001 = UI_set_last_created_2E(item);
		exit2();
	labelFunc01D6_009D:
		if(!(event == 0x0002)) goto labelFunc01D6_0127;
		var0002 = UI_get_object_position_20(0xFE9C);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		var0002[0x0002] = (var0002[0x0002] + 0x0001);
		UI_set_item_frame_1B(item, 0x0001);
		if(!(Func0994() == 0x0012)) goto labelFunc01D6_00F8;
		var0001 = UI_set_item_quality_1D(item, 0x000A);
		UI_clear_item_flag_A5(item, 0x0012);
		gflags[0223] = true;
	labelFunc01D6_00F8:
		if(!(Func0994() == 0x0013)) goto labelFunc01D6_0119;
		var0001 = UI_set_item_quality_1D(item, 0x000B);
		UI_clear_item_flag_A5(item, 0x0012);
		gflags[0224] = true;
	labelFunc01D6_0119:
		var0001 = UI_update_last_created_2F(var0002);
		exit2();
		goto labelFunc01D6_0137;
	labelFunc01D6_0127:
		var0003 = ("@I believe that using a bucket in a well " + "is often more effective than simply spinning the crank.@");
		Func094A(var0003);
	labelFunc01D6_0137:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0902 0x902 (var var0000, var var0001);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);

Func01D7 0x1D7 (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc01D7_000F;
	exit2();
	labelFunc01D7_000F:
		var0000 = Func0906(item);
		if(!(var0000 == 0x0001)) goto labelFunc01D7_0067;
		if(!Func0908(item, 0x00F6, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc01D7_0064;
		Func0902(item, 0x01D7);
		Func0909(item, 0x00E1, 0x0001, 0x0001, 0x0204, 0x0000, 0x0003, 0x0000, 0x0005);
		UI_play_sound_effect2_A1(0x0069, item);
		goto labelFunc01D7_0067;
	labelFunc01D7_0064:
		Func0903();
	labelFunc01D7_0067:
		if(!(var0000 == 0x0000)) goto labelFunc01D7_00B8;
		if(!Func0908(item, 0x00F6, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc01D7_00B5;
		Func0902(item, 0x01D7);
		Func0909(item, 0x00E1, 0x0000, 0x0002, 0x0204, 0x0001, 0x0000, Iolo, 0x0007);
		UI_play_sound_effect2_A1(0x006A, item);
		goto labelFunc01D7_00B8;
	labelFunc01D7_00B5:
		Func0903();
	labelFunc01D7_00B8:
		if(!(var0000 == 0x0002)) goto labelFunc01D7_00C6;
		Func0904(item);
	labelFunc01D7_00C6:
		if(!(var0000 == 0x0003)) goto labelFunc01D7_00D4;
		Func0905(item);
	labelFunc01D7_00D4:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func0178 0x178 (var var0000);
extern Func010E 0x10E (var var0000);
extern Func01B1 0x1B1 (var var0000);
extern Func01B0 0x1B0 (var var0000);

Func01DC 0x1DC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_click_on_item_3F();
	if(!(UI_get_item_shape_18(var0000) == 0x0280)) goto labelFunc01DC_00C5;
	var0001 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
	var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x00B0));
	enum();
	labelFunc01DC_0040:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc01DC_00C2);
		if(!(UI_get_item_quality_1C(var0004) == 0x00DB)) goto labelFunc01DC_00BF;
		if(!(Func0906(var0004) == 0x0002)) goto labelFunc01DC_00BF;
		Func0907(var0004, 0x0000);
		if(!(UI_get_item_shape_18(var0004) == 0x0178)) goto labelFunc01DC_0083;
		var0004;
		calle();
	labelFunc01DC_0083:
		if(!(UI_get_item_shape_18(var0004) == 0x010E)) goto labelFunc01DC_0097;
		var0004;
		calle();
	labelFunc01DC_0097:
		if(!(UI_get_item_shape_18(var0004) == 0x01B1)) goto labelFunc01DC_00AB;
		var0004;
		calle();
	labelFunc01DC_00AB:
		if(!(UI_get_item_shape_18(var0004) == 0x01B0)) goto labelFunc01DC_00BF;
		var0004;
		calle();
	labelFunc01DC_00BF:
		goto labelFunc01DC_0040;
	labelFunc01DC_00C2:
		goto labelFunc01DC_013A;
	labelFunc01DC_00C5:
		var0005 = UI_get_item_usability_19(var0000);
		if(!((var0005 < 0x0002) && (var0005 > 0x0000))) goto labelFunc01DC_0133;
		UI_close_gumps_98();
		UI_play_sound_effect_16(0x0043);
		var0006 = UI_get_object_position_20(var0000);
		var0007 = var0006[0x0003];
		var0008 = UI_input_numeric_value_13(0x0000, 0x000E, 0x0001, 0x0000);
		var0009 = UI_execute_usecode_array_01(var0000, [0x55, 0x0607, 0x0B, Iolo, (var0008 - var0007)]);
		goto labelFunc01DC_013A;
	labelFunc01DC_0133:
		UI_play_sound_effect_16(0x0030);
	labelFunc01DC_013A:
		return;
}
Func01DE 0x1DE (var var0000)
{
	var var0001;

	if(!(event == 0x0007)) goto labelFunc01DE_0065;
	var0000 = UI_get_object_position_20(item);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x000C, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(item);
	goto labelFunc01DE_006D;
	labelFunc01DE_0065:
		UI_item_say_4D(item, "Kill the Avatar!");
	labelFunc01DE_006D:
		return;
}
// externs
extern Func0948 0x948 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func01DF 0x1DF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc01DF_0038;
	var0001 = UI_click_on_item_3F();
	if(!(var0001 == UI_get_npc_object_23(0xFE9C))) goto labelFunc01DF_0032;
	UI_set_item_frame_1B(item, 0x0001);
	goto labelFunc01DF_0038;
	labelFunc01DF_0032:
		Func0948(0x003C);
	labelFunc01DF_0038:
		if(!(var0000 == 0x0001)) goto labelFunc01DF_0172;
		var0001 = UI_click_on_item_3F();
		if(!(UI_get_item_shape_18(var0001) == 0x0392)) goto labelFunc01DF_016C;
		if(!(UI_get_item_frame_1A(var0001) == 0x0001)) goto labelFunc01DF_0163;
		UI_set_item_frame_1B(item, 0x0000);
		UI_play_sound_effect_16(0x0039);
		var0002 = UI_get_object_position_20(var0001);
		UI_sprite_effect_68(0x0009, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		var0003 = UI_create_new_object2_2D(0x0219, [var0002[0x0001], (var0002[0x0002] + 0x0002), 0x0000]);
		if(!(!var0003)) goto labelFunc01DF_00D2;
		UI_error_message_40("Wolf Creation Failed!");
	labelFunc01DF_00D2:
		UI_set_item_flag_A4(var0003, 0x001D);
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_schedule_type_25(var0003, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0003);
		UI_set_alignment_4A(var0003, 0x0002);
		var0004 = UI_add_cont_items_36(var0003, 0x0001, 0x0281, 0x003D, 0x0004, false);
		var0004 = UI_add_cont_items_36(var0003, 0x0003, 0x0194, 0xFE99, 0x0003, false);
		Func09AC(0xFFC0, 0x00A0, 0x002E, 0x000F);
		UI_remove_npc_4C(0xFFC0);
		gflags[004A] = true;
		UI_set_alignment_4A(Shmed, 0x0003);
		UI_set_item_flag_A4(Shmed, 0x001D);
		goto labelFunc01DF_0169;
	labelFunc01DF_0163:
		Func0948(0x003C);
	labelFunc01DF_0169:
		goto labelFunc01DF_0172;
	labelFunc01DF_016C:
		Func0948(0x003C);
	labelFunc01DF_0172:
		return;
}
// externs
extern Func098A 0x98A (var var0000, var var0001);

Func01E1 0x1E1 (var var0000)
{
	var var0001;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc01E1_0032;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 > 0x0001)) goto labelFunc01E1_002B;
	UI_item_say_4D(item, "Burnt out");
	goto labelFunc01E1_0032;
	labelFunc01E1_002B:
		Func098A(item, 0x01B3);
	labelFunc01E1_0032:
		return;
}
Func01E2 0x1E2 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0002)) goto labelFunc01E2_0051;
	var0000 = UI_find_nearby_41(0xFE9C, 0x01E2, 0x0064, 0x0000);
	if(!var0000) goto labelFunc01E2_0051;
	var0001 = UI_get_object_position_20(var0000);
	UI_sprite_effect_68(0x001A, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_kill_npc_57(var0000);
	labelFunc01E2_0051:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D7 0x7D7 (var var0000);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern Func07D6 0x7D6 (var var0000);

Func01E3 0x1E3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	if(!((item == Func09A0(0x0005, 0x0001)) && (event == 0x0002))) goto labelFunc01E3_0148;
	UI_play_music_39(0x0027, Func09A0(0x0005, 0x0001));
	item;
	calle();
	if(!(!gflags[021D])) goto labelFunc01E3_0075;
	var0000 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	enum();
	labelFunc01E3_0043:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc01E3_0075);
		var0004 = UI_get_item_shape_18(var0003);
		if(!(!((var0004 == 0x01E6) || (var0004 == 0x025F)))) goto labelFunc01E3_0072;
		UI_remove_item_84(var0003);
	labelFunc01E3_0072:
		goto labelFunc01E3_0043;
	labelFunc01E3_0075:
		var0000 = UI_find_nearby_41(item, 0x0320, 0x002D, 0x0000);
		var0005 = false;
		enum();
	labelFunc01E3_008B:
		for (var0003 in var0000 with var0006 to var0007 atend labelFunc01E3_00B6);
		if(!(UI_get_object_position_20(var0003) == [0x0AAB, 0x03C1, 0x0000])) goto labelFunc01E3_00B3;
		var0005 = var0003;
	labelFunc01E3_00B3:
		goto labelFunc01E3_008B;
	labelFunc01E3_00B6:
		if(!var0005) goto labelFunc01E3_0147;
		var0008 = 0x0000;
		var0000 = UI_get_cont_items_33(var0005, 0xFE99, 0xFE99, 0xFE99);
	labelFunc01E3_00D5:
		if(!(var0008 < 0x0002)) goto labelFunc01E3_0147;
		enum();
	labelFunc01E3_00E0:
		for (var0003 in var0000 with var0009 to var000A atend labelFunc01E3_0127);
		if(!(Func09A6(var0003) || (var0008 == 0x0001))) goto labelFunc01E3_0124;
		if(!(!UI_set_last_created_2E(var0003))) goto labelFunc01E3_0110;
		Func092F(0xFE9C, 0x000D);
	labelFunc01E3_0110:
		if(!(!UI_give_last_created_43(0xFE9C))) goto labelFunc01E3_0124;
		Func092F(0xFE9C, 0x000E);
	labelFunc01E3_0124:
		goto labelFunc01E3_00E0;
	labelFunc01E3_0127:
		var0008 = (var0008 + 0x0001);
		var0000 = UI_get_cont_items_33(var0005, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc01E3_00D5;
	labelFunc01E3_0147:
		abrt();
	labelFunc01E3_0148:
		var000B = UI_get_item_frame_1A(item);
		if(!(var000B != 0x0002)) goto labelFunc01E3_015B;
		abrt();
	labelFunc01E3_015B:
		if(!(event == 0x0001)) goto labelFunc01E3_0336;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		if(!UI_in_gump_mode_9B()) goto labelFunc01E3_0178;
		UI_close_gumps_98();
	labelFunc01E3_0178:
		UI_halt_scheduled_71(0xFE9C);
		var000C = UI_get_object_position_20(item);
		UI_si_path_run_usecode_C1(0xFE9C, [(var000C[0x0001] - 0x0003), (var000C[0x0002] - 0x0003), 0x0000], 0x000A, item, 0x01E3, true);
		UI_clear_item_flag_A5(0xFE9C, 0x0000);
		var000D = UI_find_nearby_41(item, 0x0320, 0x001E, 0x0000);
		var0005 = false;
		enum();
	labelFunc01E3_01D0:
		for (var0003 in var000D with var000E to var000F atend labelFunc01E3_01FB);
		if(!(UI_get_object_position_20(var0003) == [0x0AAB, 0x03C1, 0x0000])) goto labelFunc01E3_01F8;
		var0005 = var0003;
	labelFunc01E3_01F8:
		goto labelFunc01E3_01D0;
	labelFunc01E3_01FB:
		if(!var0005) goto labelFunc01E3_02A9;
		var0008 = 0x0000;
		var0010 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc01E3_021A:
		if(!(var0008 < 0x0002)) goto labelFunc01E3_02A9;
		enum();
	labelFunc01E3_0225:
		for (var0003 in var0010 with var0011 to var0012 atend labelFunc01E3_0289);
		if(!(Func09A6(var0003) || (var0008 == 0x0001))) goto labelFunc01E3_0286;
		var000D = UI_get_item_shape_18(var0003);
		if(!(!((var000D == 0x01E6) || (var000D == 0x025F)))) goto labelFunc01E3_0286;
		if(!(!UI_set_last_created_2E(var0003))) goto labelFunc01E3_0272;
		Func092F(0xFE9C, 0x0011);
	labelFunc01E3_0272:
		if(!(!UI_give_last_created_43(var0005))) goto labelFunc01E3_0286;
		Func092F(0xFE9C, 0x0012);
	labelFunc01E3_0286:
		goto labelFunc01E3_0225;
	labelFunc01E3_0289:
		var0008 = (var0008 + 0x0001);
		var0010 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc01E3_021A;
	labelFunc01E3_02A9:
		if(!(!gflags[021D])) goto labelFunc01E3_0336;
		var000D = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0012);
		var0003 = UI_create_new_object_2C(0x0284);
		if(!var0003) goto labelFunc01E3_0304;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0007);
		var000D = UI_set_item_quantity_1F(var0003, 0x0046);
		var000D = UI_give_last_created_43(0xFE9C);
	labelFunc01E3_0304:
		var000D = UI_add_cont_items_36(0xFE9C, 0x0001, 0x02F8, 0xFE99, 0x0000, 0x0012);
		var000D = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0286, 0xFE99, 0x0000, 0x0012);
	labelFunc01E3_0336:
		if(!(event == 0x000E)) goto labelFunc01E3_0367;
		var000C = UI_get_object_position_20(item);
		UI_move_object_4B(0xFE9C, [(var000C[0x0001] - 0x0003), (var000C[0x0002] - 0x0003), 0x0000]);
	labelFunc01E3_0367:
		if(!((event == 0x000A) || (event == 0x000E))) goto labelFunc01E3_03BD;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_end_conversation_86();
		var000D = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x30, 0x6C, 0x6D]);
		item;
		calle();
		var000D = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x01E3], 0x0008);
	labelFunc01E3_03BD:
		if(!(event == 0x0002)) goto labelFunc01E3_0406;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		var000D = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x59, 0x30], 0x0004);
		UI_move_object_4B(0xFE9C, [0x0A25, 0x0379, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		UI_init_conversation_85();
	labelFunc01E3_0406:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func01E5 0x1E5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc01E5_00B3;
	var0000 = [0x020A, 0x0320, 0x010E, 0x01B0, 0x0178, 0x01B1, 0x0204, 0x00F6, 0x00E1, 0x01D7];
	var0001 = UI_click_on_item_3F();
	var0002 = UI_get_item_shape_18(var0001);
	if(!in(var0002, var0000)) goto labelFunc01E5_00B3;
	var0003 = UI_get_item_quality_1C(var0001);
	if(!UI_is_on_keyring_C2(var0003)) goto labelFunc01E5_007D;
	var0004 = UI_set_item_quality_1D(item, var0003);
	var0004 = UI_execute_usecode_array_01(var0001, [0x23, 0x55, 0x0281]);
	goto labelFunc01E5_00B3;
	labelFunc01E5_007D:
		UI_flash_mouse_7F(0x0000);
		var0005 = ["@We don't have that key.@", "@It's not on the keyring.@"];
		var0006 = UI_die_roll_17(0x0001, 0x0002);
		var0007 = Func0992(0x0001, var0005[var0006], var0005[var0006], true);
	labelFunc01E5_00B3:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func01EF 0x1EF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_npc_id_BC(item);
	if(!(event == 0x0001)) goto labelFunc01EF_00AB;
	if(!(var0000 > 0x0002)) goto labelFunc01EF_0077;
	if(!(UI_die_roll_17(0x0001, 0x0014) == 0x000D)) goto labelFunc01EF_0074;
	UI_clear_item_say_4E(item);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Meow@", 0x27, 0x0008, 0x52, "@Meow!@", 0x27, 0x0008, 0x52, "@Meow!@", 0x27, 0x0008, 0x52, "@Meow!@", 0x27, 0x0008, 0x52, "@Meow!@", 0x27, 0x0008, 0x55, 0x01EF]);
	labelFunc01EF_0074:
		goto labelFunc01EF_00AB;
	labelFunc01EF_0077:
		UI_item_say_4D(0xFE9C, "@Here, kitty, kitty!@");
		UI_set_schedule_type_25(item, 0x0014);
		UI_set_npc_id_BD(item, (var0000 + 0x0001));
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc01EF_00AB;
		Func097F(Shamino, "@I hate cats.@", 0x0008);
	labelFunc01EF_00AB:
		if(!(event == 0x0002)) goto labelFunc01EF_0130;
		var0002 = UI_get_object_position_20(item);
		var0002[0x0001] = (var0002[0x0001] - (var0002[0x0003] / 0x0002));
		var0002[0x0002] = (var0002[0x0002] - (var0002[0x0003] / 0x0002));
		UI_remove_item_84(item);
		UI_sprite_effect_68(0x001B, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0003 = Func0992(Shamino, 0x0000, 0x0000, false);
		Func097F(var0003, "@Bloody cats!@", 0x0008);
	labelFunc01EF_0130:
		if(!(event == 0x0000)) goto labelFunc01EF_01EC;
		if(!gflags[000D]) goto labelFunc01EF_01DA;
		UI_set_npc_id_BD(item, (var0000 + 0x0001));
		if(!(UI_get_npc_id_BC(item) == 0x0002)) goto labelFunc01EF_01AD;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_set_polymorph_B3(item, 0x01EF);
		UI_set_camera_AE(0xFE9C);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x000A);
		UI_set_npc_id_BD(item, 0x0000);
		gflags[000D] = false;
		gflags[002A] = false;
	labelFunc01EF_01AD:
		if(!(UI_get_npc_id_BC(item) == 0x0001)) goto labelFunc01EF_01D6;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		UI_play_music_39(0x0018, Func09A0(0x0005, 0x0001));
	labelFunc01EF_01D6:
		abrt();
		goto labelFunc01EF_01EC;
	labelFunc01EF_01DA:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Meow!@"]);
	labelFunc01EF_01EC:
		return;
}
Func01F0 0x1F0 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc01F0_001A;
	UI_item_say_4D(0xFE9C, "@Good pup.@");
	UI_set_schedule_type_25(item, 0x0009);
	labelFunc01F0_001A:
		if(!(event == 0x0000)) goto labelFunc01F0_0044;
		var0000 = ["@Arf!@", "@Woof!@", "@Bark!@"];
		UI_item_say_4D(item, var0000[UI_get_random_00(UI_get_array_size_73(var0000))]);
	labelFunc01F0_0044:
		return;
}
// externs
extern var Func098E 0x98E ();

Func01F4 0x1F4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc01F4_0059;
	var0000 = Func098E();
	enum();
	labelFunc01F4_000F:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc01F4_0059);
		var0004 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x52, "@Moo!@"], UI_die_roll_17(0x0001, 0x000A));
		var0004 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x52, "@Moo!@"], UI_die_roll_17(0x0015, 0x001E));
		goto labelFunc01F4_000F;
	labelFunc01F4_0059:
		if(!(event == 0x0000)) goto labelFunc01F4_0073;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Moo!@"]);
	labelFunc01F4_0073:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func01F8 0x1F8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event != 0x0001)) goto labelFunc01F8_0009;
	exit2();
	labelFunc01F8_0009:
		if(!UI_in_gump_mode_9B()) goto labelFunc01F8_0014;
		UI_close_gumps_98();
	labelFunc01F8_0014:
		var0000 = UI_get_barge_6D(item);
		if(!var0000) goto labelFunc01F8_00E8;
		if(!(!UI_get_item_flag_A3(0xFE9C, 0x000A))) goto labelFunc01F8_00D0;
		var0001 = UI_find_nearby_41(item, 0x01F8, 0x0019, 0x0000);
		var0002 = var0001[0x0001];
		enum();
	labelFunc01F8_004B:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc01F8_0091);
		var0006 = UI_get_object_position_20(var0005);
		var0007 = UI_get_object_position_20(var0002);
		if(!((var0006[0x0001] < var0007[0x0001]) && (var0006[0x0002] < var0007[0x0002]))) goto labelFunc01F8_008E;
		var0002 = var0005;
	labelFunc01F8_008E:
		goto labelFunc01F8_004B;
	labelFunc01F8_0091:
		Func090D(var0002, 0x0000, 0x0000, 0x0001, 0x01F8, var0002, 0x000A);
		UI_set_item_flag_A4(item, 0x0014);
		UI_clear_item_flag_A5(0xFE9C, 0x0014);
		UI_set_item_flag_A4(item, 0x000A);
		UI_set_item_flag_A4(var0000, 0x001A);
		goto labelFunc01F8_00E8;
	labelFunc01F8_00D0:
		UI_clear_item_flag_A5(item, 0x0014);
		UI_clear_item_flag_A5(item, 0x000A);
		UI_clear_item_flag_A5(item, 0x001A);
	labelFunc01F8_00E8:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09B5 0x9B5 ();

Func01F9 0x1F9 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc01F9_0080;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc01F9_002E;
	UI_si_path_run_usecode_C1(0xFE9C, UI_get_object_position_20(item), 0x000D, item, 0x01F9, true);
	labelFunc01F9_002E:
		if(!(var0000 == 0x0002)) goto labelFunc01F9_0080;
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_item_flag_A4(0xFE9C, 0x0022);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01F9], 0x0064);
		UI_play_sound_effect_16(0x0039);
	labelFunc01F9_0080:
		if(!(event == 0x0002)) goto labelFunc01F9_0099;
		UI_clear_item_flag_A5(0xFE9C, 0x0022);
		UI_play_sound_effect_16(0x0030);
	labelFunc01F9_0099:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc01F9_00AA;
		Func09B5();
	labelFunc01F9_00AA:
		return;
}
// externs
extern var Func099E 0x99E (var var0000);

Func01FA 0x1FA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	UI_close_gumps_98();
	var0000 = Func099E(item);
	if(!var0000) goto labelFunc01FA_001E;
	UI_play_music_39(0x002F, var0000);
	goto labelFunc01FA_0026;
	labelFunc01FA_001E:
		UI_play_music_39(0x002F, item);
	labelFunc01FA_0026:
		var0001 = UI_find_nearby_41(item, 0x017E, 0x0014, 0x0000);
		enum();
	labelFunc01FA_0038:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc01FA_005A);
		UI_set_alignment_4A(var0004, 0x0000);
		UI_set_item_flag_A4(var0004, 0x0001);
		goto labelFunc01FA_0038;
	labelFunc01FA_005A:
		return;
}
// externs
extern var Func0977 0x977 (var var0000);
extern Func0971 0x971 (var var0000);

Func0202 0x202 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0008)) goto labelFunc0202_0042;
	var0000 = [0x0210, 0x0151, 0x0215, 0x01F5, 0x0373, 0x0202, 0x0295, 0x02C2];
	var0001 = Func0977(var0000);
	var0002 = UI_get_npc_id_BC(item);
	UI_set_polymorph_B3(item, var0000[var0002]);
	labelFunc0202_0042:
		if(!(event == 0x0007)) goto labelFunc0202_0162;
		var0003 = UI_get_object_position_20(item);
		if(!(UI_get_npc_id_BC(item) > 0x0000)) goto labelFunc0202_0162;
		var0004 = UI_set_npc_prop_29(item, 0x0003, 0x0001);
		var0005 = UI_die_roll_17(0x0001, 0x000A);
		if(!(var0005 <= 0x0005)) goto labelFunc0202_00B3;
		var0003[0x0001] = (0x06B1 + UI_die_roll_17(0x0000, 0x002D));
		var0003[0x0002] = (0x0751 + UI_die_roll_17(0x0000, 0x001D));
		UI_move_object_4B(item, var0003);
	labelFunc0202_00B3:
		if(!((var0005 > 0x0005) && (var0005 <= 0x0009))) goto labelFunc0202_014C;
		var0000 = [0x0210, 0x0151, 0x0215, 0x01F5, 0x0373, 0x0202, 0x0295, 0x02C2];
		var0001 = Func0977(var0000);
		var0002 = UI_die_roll_17(0x0001, var0001);
		var0006 = UI_find_nearby_41(0xFE9C, 0x0202, 0x003C, 0x0000);
		enum();
	labelFunc0202_010D:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0202_0139);
		if(!UI_get_npc_id_BC(var0009)) goto labelFunc0202_0136;
		UI_clear_item_flag_A5(var0009, 0x0020);
		UI_set_npc_id_BD(var0009, var0002);
	labelFunc0202_0136:
		goto labelFunc0202_010D;
	labelFunc0202_0139:
		UI_set_polymorph_B3(item, var0000[var0002]);
		UI_set_npc_id_BD(item, var0002);
	labelFunc0202_014C:
		if(!(var0005 == 0x000A)) goto labelFunc0202_0162;
		UI_clear_item_flag_A5(item, 0x001D);
		Func0971(item);
	labelFunc0202_0162:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0902 0x902 (var var0000, var var0001);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0904 0x904 (var var0000);
extern Func0905 0x905 (var var0000);

Func0204 0x204 (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc0204_000F;
	exit2();
	labelFunc0204_000F:
		var0000 = Func0906(item);
		if(!(var0000 == 0x0001)) goto labelFunc0204_0067;
		if(!Func0908(item, 0x00E1, 0x0000, 0x0000, 0x0003, 0x0001)) goto labelFunc0204_0064;
		Func0902(item, 0x0204);
		Func0909(item, 0x00F6, 0x0001, 0x0002, 0x01D7, 0x0000, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0069, item);
		goto labelFunc0204_0067;
	labelFunc0204_0064:
		Func0903();
	labelFunc0204_0067:
		if(!(var0000 == 0x0000)) goto labelFunc0204_00B8;
		if(!Func0908(item, 0x00E1, 0x0001, Iolo, 0x0000, 0x0007)) goto labelFunc0204_00B5;
		Func0902(item, 0x0204);
		Func0909(item, 0x00F6, 0x0000, 0x0001, 0x01D7, 0x0001, 0x0000, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x006A, item);
		goto labelFunc0204_00B8;
	labelFunc0204_00B5:
		Func0903();
	labelFunc0204_00B8:
		if(!(var0000 == 0x0002)) goto labelFunc0204_00C6;
		Func0904(item);
	labelFunc0204_00C6:
		if(!(var0000 == 0x0003)) goto labelFunc0204_00D4;
		Func0905(item);
	labelFunc0204_00D4:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func09B5 0x9B5 ();
extern Func09B6 0x9B6 (var var0000, var var0001);

Func0207 0x207 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0207_0027;
	if(!(Func0994() == 0x001F)) goto labelFunc0207_0013;
	abrt();
	labelFunc0207_0013:
		UI_si_path_run_usecode_C1(0xFE9C, UI_get_object_position_20(item), 0x000D, item, 0x0207, true);
	labelFunc0207_0027:
		if(!((event == 0x000D) || ((event == 0x000E) || (event == 0x0002)))) goto labelFunc0207_0189;
		var0000 = UI_get_item_frame_1A(item);
		if(!((var0000 == 0x0000) || (UI_get_item_shape_18(item) == 0x0310))) goto labelFunc0207_005D;
		Func09B5();
		goto labelFunc0207_0189;
	labelFunc0207_005D:
		var0001 = 0x01EF;
		var0002 = [0x0B97, 0x0020, 0x0000];
		if(!((Func0994() == 0x000D) && (gflags[0095] && (!gflags[02E2])))) goto labelFunc0207_010E;
		gflags[008B] = true;
		gflags[008C] = true;
		var0001 = 0xFFC0;
		var0002 = [0x00CB, 0x0097, 0x0006];
		if(!(!gflags[002A])) goto labelFunc0207_010E;
		var0003 = [0x00C8, 0x0097, 0x0006];
		var0004 = UI_create_new_object2_2D(0x013E, var0003);
		if(!var0004) goto labelFunc0207_010E;
		var0005 = UI_execute_usecode_array_01(var0004, [0x23, 0x59, 0x0004, 0x6F]);
		UI_set_item_flag_A4(var0004, 0x0012);
		UI_set_schedule_type_25(var0004, 0x000F);
		var0005 = UI_add_cont_items_36(var0004, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0012);
	labelFunc0207_010E:
		if(!((Func0994() == 0x000E) && (gflags[00F0] && (!gflags[00E6])))) goto labelFunc0207_0180;
		gflags[0128] = true;
		var0001 = 0xFFF0;
		var0002 = [0x036C, 0x094B, 0x0000];
		UI_set_polymorph_B3(0xFFDB, 0x00EF);
		var0006 = [0x037D, 0x095A, 0x0000];
		UI_move_object_4B(0xFFDB, var0006);
		UI_set_new_schedules_B6(0xFFDB, 0x0000, 0x000F, [var0006[0x0001], var0006[0x0002]]);
		UI_run_schedule_B7(0xFFDB);
	labelFunc0207_0180:
		Func09B6(var0001, var0002);
	labelFunc0207_0189:
		return;
}
// externs
extern Func02C0 0x2C0 (var var0000);

Func020A 0x20A (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc020A_0010;
	UI_item_say_4D(item, "Locked");
	labelFunc020A_0010:
		if(!(UI_get_item_quality_1C(item) == 0x00FF)) goto labelFunc020A_0020;
		item;
		calle();
	labelFunc020A_0020:
		return;
}
Func020E 0x20E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc020E_00CE;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 == 0x0000) || ((var0000 == 0x0001) || ((var0000 == 0x0004) || (var0000 == 0x0005))))) goto labelFunc020E_0039;
	exit2();
	labelFunc020E_0039:
		var0001 = UI_find_nearby_41(item, 0x01B8, 0x000A, 0x0080);
		var0002 = UI_get_object_position_20(item);
		var0002[0x0001] = (var0002[0x0001] + 0x0003);
		var0002[0x0002] = (var0002[0x0002] + 0x0003);
		enum();
	labelFunc020E_0073:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc020E_00CE);
		var0006 = UI_get_object_position_20(var0005);
		if(!((var0002[0x0001] == var0006[0x0001]) && ((var0002[0x0002] == var0006[0x0002]) && (var0002[0x0003] == var0006[0x0003])))) goto labelFunc020E_00CB;
		UI_remove_item_84(var0005);
		UI_set_item_shape_14(item, 0x0379);
		UI_play_sound_effect2_A1(0x0021, item);
	labelFunc020E_00CB:
		goto labelFunc020E_0073;
	labelFunc020E_00CE:
		return;
}
Func0215 0x215 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0007)) goto labelFunc0215_008F;
	var0000 = UI_get_npc_id_BC(item);
	if(!(var0000 == 0x0001)) goto labelFunc0215_0056;
	UI_clear_item_flag_A5(item, 0x001D);
	var0001 = UI_create_new_object_2C(0x0281);
	if(!var0001) goto labelFunc0215_0056;
	UI_set_item_frame_1B(var0001, 0x0013);
	var0002 = UI_set_item_quality_1D(var0001, 0x0015);
	var0002 = UI_give_last_created_42(item);
	UI_kill_npc_57(item);
	labelFunc0215_0056:
		if(!(var0000 == 0x0002)) goto labelFunc0215_008F;
		UI_clear_item_flag_A5(item, 0x001D);
		var0003 = UI_create_new_object_2C(0x0289);
		if(!var0003) goto labelFunc0215_008F;
		UI_set_item_frame_1B(var0003, 0x0008);
		var0002 = UI_give_last_created_42(item);
		UI_kill_npc_57(item);
	labelFunc0215_008F:
		return;
}
Func0219 0x219 (var var0000)
{
	if(!(event == 0x0007)) goto labelFunc0219_001B;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0037, 0x0000);
	labelFunc0219_001B:
		return;
}
// externs
extern Func094F 0x94F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09B2 0x9B2 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func098D 0x98D ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func08F1 0x8F1 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0988 0x988 (var var0000, var var0001);

Func0235 0x235 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x000E)) goto labelFunc0235_01BB;
	if(!((UI_get_npc_id_BC(0xFF6A) == 0x0008) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_0024;
	event = 0x000D;
	labelFunc0235_0024:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0006) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_0078;
		UI_set_schedule_type_25(0xFF6A, 0x000F);
		UI_set_npc_id_BD(0xFF6A, 0x0007);
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x55, 0x0235]);
		var0000 = ("@Thank thee...@" & "@Goodbye!@");
		Func094F(0xFF6A, var0000);
		abrt();
	labelFunc0235_0078:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_0109;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Yes!@", 0x0004);
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@Oh, my!@", 0x0007);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		gflags[0008] = true;
		if(!gflags[0009]) goto labelFunc0235_00F2;
		UI_set_npc_id_BD(0xFF6A, 0x0003);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0000, 0x55, 0x0235, 0x6E]);
		goto labelFunc0235_0108;
	labelFunc0235_00F2:
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0000, 0x6E]);
	labelFunc0235_0108:
		abrt();
	labelFunc0235_0109:
		if(!((UI_get_npc_id_BC(0xFF6A) > 0x0000) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_0125;
		event = 0x000D;
	labelFunc0235_0125:
		if(!((UI_get_npc_id_BC(0xFF6A) > 0x0000) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_019F;
		UI_set_schedule_type_25(0xFF6A, 0x000F);
		gflags[0007] = true;
		var0000 = UI_find_nearby_41(item, 0x03F3, 0x000A, 0x0000);
		enum();
	labelFunc0235_015D:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0235_0183);
		if(!(UI_get_item_frame_1A(var0003) == 0x000D)) goto labelFunc0235_0180;
		UI_set_item_frame_1B(var0003, 0x000E);
	labelFunc0235_0180:
		goto labelFunc0235_015D;
	labelFunc0235_0183:
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x59, 0x0000, 0x55, 0x0235, 0x6E]);
		abrt();
	labelFunc0235_019F:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0000) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_01BB;
		event = 0x000D;
	labelFunc0235_01BB:
		if(!(event == 0x000D)) goto labelFunc0235_04B6;
		UI_set_schedule_type_25(item, 0x000F);
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0008) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_021F;
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		UI_play_sound_effect_16(0x0001);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		Func097F(0xFE9C, "@What a beautiful morning!@", 0x0000);
		UI_play_music_39(0x0016, Func09A0(0x0005, 0x0001));
		abrt();
	labelFunc0235_021F:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0006) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_0281;
		UI_set_npc_id_BD(0xFF6A, 0x0007);
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x58, 0x0024, 0x27, 0x0002, 0x61, 0x55, 0x0235]);
		var0000 = ("@Thank thee...@" & "@Goodbye!@");
		Func094F(0xFF6A, var0000);
		abrt();
	labelFunc0235_0281:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_0339;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Yes!@", 0x0004);
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@Oh, my!@", 0x0007);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		gflags[0008] = true;
		if(!gflags[0009]) goto labelFunc0235_0311;
		UI_set_npc_id_BD(0xFF6A, 0x0003);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0000, 0x27, 0x0002, 0x6C, 0x58, 0x0086, 0x27, 0x0002, 0x6E, 0x27, 0x0002, 0x55, 0x0235]);
		goto labelFunc0235_0338;
	labelFunc0235_0311:
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0000, 0x27, 0x0002, 0x6C, 0x58, 0x0086, 0x27, 0x0002, 0x6E]);
	labelFunc0235_0338:
		abrt();
	labelFunc0235_0339:
		if(!((UI_get_npc_id_BC(0xFF6A) > 0x0000) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0235_0384;
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_set_npc_id_BD(0xFF6A, 0x0002);
		Func09B2();
		UI_play_sound_effect_16(0x0001);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x0235]);
		abrt();
	labelFunc0235_0384:
		if(!((UI_get_npc_id_BC(0xFF6A) > 0x0000) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_0405;
		gflags[0007] = true;
		var0000 = UI_find_nearby_41(item, 0x03F3, 0x000A, 0x0000);
		enum();
	labelFunc0235_03B2:
		for (var0003 in var0000 with var0004 to var0005 atend labelFunc0235_03D8);
		if(!(UI_get_item_frame_1A(var0003) == 0x000D)) goto labelFunc0235_03D5;
		UI_set_item_frame_1B(var0003, 0x000E);
	labelFunc0235_03D5:
		goto labelFunc0235_03B2;
	labelFunc0235_03D8:
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x59, 0x0000, 0x27, 0x0002, 0x6C, 0x58, 0x0086, 0x27, 0x0002, 0x55, 0x0235, 0x6E]);
		abrt();
	labelFunc0235_0405:
		if(!((UI_get_npc_id_BC(0xFF6A) == 0x0000) && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_04B6;
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@I am so ready...@", 0x0003);
		UI_set_polymorph_B3(0xFF6A, 0x00E5);
		UI_play_sound_effect_16(0x0001);
		UI_set_npc_id_BD(0xFF6A, 0x0001);
		UI_set_schedule_type_25(0xFF6A, 0x000F);
		UI_si_path_run_usecode_C1(0xFE9C, [0x03A7, 0x0A43, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFE9C), 0x000E);
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@I should change...@", 0x0000);
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x6F, 0x27, 0x0002, 0x55, 0x0235]);
		abrt();
	labelFunc0235_04B6:
		if(!(event == 0x0002)) goto labelFunc0235_096A;
		if(!(gflags[0007] && (item == UI_get_npc_object_23(0xFF6A)))) goto labelFunc0235_0518;
		gflags[0007] = false;
		UI_set_npc_id_BD(0xFF6A, 0x0003);
		UI_move_object_4B(0xFF6A, [0x03A3, 0x0A4A, 0x0001]);
		gflags[0009] = true;
		if(!gflags[0008]) goto labelFunc0235_0517;
		UI_set_npc_id_BD(0xFF6A, 0x0003);
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x55, 0x0235]);
	labelFunc0235_0517:
		abrt();
	labelFunc0235_0518:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0008)) goto labelFunc0235_056C;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@I should dress myself...@", 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, [0x03A7, 0x0A43, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFE9C), 0x000E);
		abrt();
	labelFunc0235_056C:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0007)) goto labelFunc0235_05A3;
		UI_set_npc_id_BD(0xFF6A, 0x0008);
		UI_run_schedule_B7(0xFF6A);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0235], 0x0005);
		abrt();
	labelFunc0235_05A3:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0006)) goto labelFunc0235_05E4;
		UI_si_path_run_usecode_C1(0xFF6A, [0x03A4, 0x0A47, 0x0000], 0x000D, UI_get_npc_object_23(0xFF6A), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFF6A), 0x000E);
		abrt();
	labelFunc0235_05E4:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0005)) goto labelFunc0235_0627;
		UI_set_npc_id_BD(0xFF6A, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"Once again, thou hast proved thyself to be the love of my life. When I write my book, I shall dedicate it to thee, my love.\"");
		UcSay;
		UI_end_conversation_86();
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x55, 0x0235]);
		abrt();
	labelFunc0235_0627:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0004)) goto labelFunc0235_06A6;
		UI_set_npc_id_BD(0xFF6A, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"Thou art the woman of my dreams! I have never felt so refreshed. What an experience...\"");
		UcSay;
		UcMessage("\"As a sign of mine appreciation and great affection for thee, please accept this gift. It is my greatest possession.\"");
		UcSay;
		UcMessage("\"Gwani cloaks are most rare, and are worn by the Goblins as a token of great bravery. I slew the chieftain who once wore this cloak!\"");
		UcSay;
		UcMessage("\"Please wear it, and remember me always.\"");
		UcSay;
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@Always...@", 0x0000);
		var0000 = Func099B(0xFE9C, 0x0001, 0x00E3, 0xFE99, 0x0004, 0x0000, true);
		UI_end_conversation_86();
		gflags[008A] = true;
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x55, 0x0235]);
		abrt();
	labelFunc0235_06A6:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0003)) goto labelFunc0235_07BB;
		gflags[0008] = false;
		gflags[0009] = false;
		if(!gflags[008A]) goto labelFunc0235_06CF;
		UI_set_npc_id_BD(0xFF6A, 0x0005);
		goto labelFunc0235_06D9;
	labelFunc0235_06CF:
		UI_set_npc_id_BD(0xFF6A, 0x0004);
	labelFunc0235_06D9:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_advance_time_8E((0x05DC * 0x000C));
		var0000 = Func098D();
		enum();
	labelFunc0235_06F8:
		for (var0003 in var0000 with var0006 to var0007 atend labelFunc0235_071F);
		if(!UI_npc_nearby2_3B(var0003)) goto labelFunc0235_071C;
		Func09AC(var0003, 0x0409, 0x0A4F, 0x001A);
	labelFunc0235_071C:
		goto labelFunc0235_06F8;
	labelFunc0235_071F:
		UI_move_object_4B(0xFF6A, [0x03A4, 0x0A52, 0x0000]);
		UI_set_schedule_type_25(0xFF6A, 0x000F);
		UI_move_object_4B(0xFE9C, [0x03A3, 0x0A4A, 0x0001]);
		UI_set_polymorph_B3(0xFF6A, 0x0235);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF6A, [0x23, 0x59, 0x0006, 0x6B, 0x27, 0x0002, 0x55, 0x0636, 0x27, 0x0002, 0x6C, 0x61, 0x59, 0x0000, 0x27, 0x0002, 0x55, 0x0235], 0x001E);
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Where am I?@", 0x0023);
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@Darling...@", 0x001F);
		abrt();
	labelFunc0235_07BB:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0002)) goto labelFunc0235_0822;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@I am ready...@", 0x0000);
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@As am I!@", 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, [0x03A4, 0x0A4B, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFE9C), 0x000E);
		abrt();
	labelFunc0235_0822:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0001)) goto labelFunc0235_0863;
		UI_si_path_run_usecode_C1(0xFF6A, [0x03A3, 0x0A4B, 0x0000], 0x000D, UI_get_npc_object_23(0xFF6A), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFF6A), 0x000E);
		abrt();
	labelFunc0235_0863:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0000)) goto labelFunc0235_096A;
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		if(!(Func08F1() < 0x000F)) goto labelFunc0235_094F;
		UcMessage("\"I have been ready since the moment I first saw thee!\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc0235_08F8;
		var0008 = Func0992(0x0001, "@Er, um, I believe I need some fresh air... I'll wait at the pub.@", 0x0000, false);
		var0000 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc0235_08BA:
		for (var000B in var0000 with var0009 to var000A atend labelFunc0235_08EC);
		UI_remove_from_party_27(var000B);
		UI_set_new_schedules_B6(var000B, 0x0000, 0x000C, [0x03B4, 0x0A6F]);
		UI_run_schedule_B7(var000B);
		goto labelFunc0235_08BA;
	labelFunc0235_08EC:
		Func097F(var000B, "@Farewell...@", 0x0000);
	labelFunc0235_08F8:
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_si_path_run_usecode_C1(0xFF6A, [0x03A5, 0x0A43, 0x0000], 0x000D, UI_get_npc_object_23(0xFF6A), 0x0235, false);
		UI_set_path_failure_A7(0x0235, UI_get_npc_object_23(0xFF6A), 0x000E);
		UI_clear_item_say_4E(0xFF6A);
		Func097F(0xFF6A, "@Come, my love!@", 0x0000);
		abrt();
		goto labelFunc0235_096A;
	labelFunc0235_094F:
		UcMessage("\"This is not a good time, my love. Perhaps thou couldst come some other morning.\"");
		UcSay;
		Func097F(0xFF6A, "@Adieu...@", 0x0000);
		UI_set_schedule_type_25(0xFF6A, 0x0014);
		abrt();
	labelFunc0235_096A:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func094A 0x94A (var var0000);

Func0247 0x247 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0001) && (!UI_get_container_83(item)))) goto labelFunc0247_00CF;
	var0000 = UI_get_object_position_20(item);
	if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc0247_00CF;
	var0001 = UI_set_last_created_2E(item);
	if(!var0001) goto labelFunc0247_00CF;
	var0002 = UI_is_not_blocked_A0(var0000, 0x03F3, 0x0015);
	var0001 = UI_update_last_created_2F(var0000);
	if(!(var0002 && var0001)) goto labelFunc0247_00B9;
	UI_close_gumps_98();
	var0003 = [Dupre, Dupre, Dupre, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001, 0x0001];
	var0004 = [0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre];
	UI_halt_scheduled_71(0xFE9C);
	Func090D(item, var0003, var0004, Dupre, 0x0247, item, 0x000A);
	goto labelFunc0247_00CF;
	labelFunc0247_00B9:
		var0000[0x0002] = (var0000[0x0002] - 0x0005);
		Func094A("@There is no room for thy bedroll there.@");
	labelFunc0247_00CF:
		if(!(event == 0x000A)) goto labelFunc0247_0101;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x30, 0x6C, 0x61]);
		var0001 = UI_execute_usecode_array_01(item, [0x27, 0x0002, 0x55, 0x0247]);
	labelFunc0247_0101:
		if(!(event == 0x0002)) goto labelFunc0247_0119;
		UI_set_item_shape_14(item, 0x03F3);
		UI_set_item_frame_1B(item, 0x0015);
	labelFunc0247_0119:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func024C 0x24C (var var0000)
{
	var var0001;

	if(!(UI_get_npc_number_47(item) == 0xFEDA)) goto labelFunc024C_003A;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	Func097F(0xFEDA, "@Ahhh, a victim...@", 0x0000);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x000A, 0x55, 0x0526]);
	abrt();
	labelFunc024C_003A:
		return;
}
// externs
extern Func098A 0x98A (var var0000, var var0001);

Func0253 0x253 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0253_0015;
	Func098A(item, 0x02BD);
	labelFunc0253_0015:
		return;
}
Func025F 0x25F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x000B)) goto labelFunc025F_0093;
	var0000 = UI_find_nearest_15(0xFE9C, 0x025F, 0x0003);
	var0001 = UI_get_item_frame_1A(var0000);
	var0002 = 0x0000;
	if(!(var0001 == 0x0000)) goto labelFunc025F_0038;
	var0002 = 0x0003;
	labelFunc025F_0038:
		if(!(var0001 == 0x0001)) goto labelFunc025F_0048;
		var0002 = 0x0005;
	labelFunc025F_0048:
		if(!(var0001 == 0x0002)) goto labelFunc025F_0058;
		var0002 = 0x0007;
	labelFunc025F_0058:
		if(!(var0001 == 0x0003)) goto labelFunc025F_0068;
		var0002 = 0x0001;
	labelFunc025F_0068:
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0002, 0x01, 0x6C]);
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x025F], 0x0002);
	labelFunc025F_0093:
		if(!(event == 0x0002)) goto labelFunc025F_01D3;
		var0004 = UI_get_object_position_20(0xFE9C);
		var0000 = UI_find_nearest_15(0xFE9C, 0x025F, 0x0003);
		var0001 = UI_get_item_frame_1A(var0000);
		if(!(var0001 == 0x0000)) goto labelFunc025F_00E9;
		var0004[0x0001] = (var0004[0x0001] - 0x0001);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
	labelFunc025F_00E9:
		if(!(var0001 == 0x0001)) goto labelFunc025F_0113;
		var0004[0x0001] = (var0004[0x0001] - 0x0001);
		var0004[0x0002] = (var0004[0x0002] - 0x0001);
	labelFunc025F_0113:
		if(!(var0001 == 0x0002)) goto labelFunc025F_013D;
		var0004[0x0001] = (var0004[0x0001] - 0x0000);
		var0004[0x0002] = (var0004[0x0002] - 0x0001);
	labelFunc025F_013D:
		if(!(var0001 == 0x0003)) goto labelFunc025F_0167;
		var0004[0x0001] = (var0004[0x0001] - 0x0002);
		var0004[0x0002] = (var0004[0x0002] - 0x0000);
	labelFunc025F_0167:
		var0003 = UI_set_last_created_2E(item);
		if(!var0003) goto labelFunc025F_01D3;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc025F_01B5;
		UI_set_item_frame_1B(item, 0x0001);
		if(!(gflags[02CD] && (gflags[02CE] && (gflags[02CF] && gflags[02D0])))) goto labelFunc025F_01B2;
		var0003 = UI_set_item_quality_1D(item, 0x000A);
		gflags[0223] = true;
		UI_clear_item_flag_A5(item, 0x0012);
	labelFunc025F_01B2:
		goto labelFunc025F_01C9;
	labelFunc025F_01B5:
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc025F_01C9;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc025F_01C9:
		var0003 = UI_update_last_created_2F(var0004);
	labelFunc025F_01D3:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0266 0x266 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	if(!(event == 0x0002)) goto labelFunc0266_0045;
	var0000 = UI_find_nearby_41(item, 0xFE99, 0x003C, 0x0008);
	enum();
	labelFunc0266_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0266_0044);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_0041;
		UI_run_schedule_B7(var0003);
		UI_clear_item_say_4E(var0003);
	labelFunc0266_0041:
		goto labelFunc0266_001A;
	labelFunc0266_0044:
		abrt();
	labelFunc0266_0045:
		var0004 = UI_input_numeric_value_13(0x0000, 0x0008, 0x0001, 0x0000);
		UI_clear_item_say_4E(0xFE9B);
		if(!(var0004 == 0x0000)) goto labelFunc0266_00A6;
		UI_play_music_39(0x00FF, item);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_0083:
		for (var0003 in var0000 with var0005 to var0006 atend labelFunc0266_00A6);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_00A3;
		UI_run_schedule_B7(var0003);
	labelFunc0266_00A3:
		goto labelFunc0266_0083;
	labelFunc0266_00A6:
		if(!(var0004 == 0x0001)) goto labelFunc0266_0112;
		Func097F(Iolo, "@Ahhh, Stones!@", 0x0002);
		Func097F(Shamino, "@Not Stones again...@", 0x000A);
		UI_play_music_39(0x000D, item);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_00E2:
		for (var0003 in var0000 with var0007 to var0008 atend labelFunc0266_0112);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_010F;
		UI_set_schedule_type_25(var0003, 0x001A);
		UI_clear_item_flag_A5(var0003, 0x0001);
	labelFunc0266_010F:
		goto labelFunc0266_00E2;
	labelFunc0266_0112:
		if(!(var0004 == 0x0002)) goto labelFunc0266_013C;
		Func097F(Dupre, "@This is familiar...@", 0x0003);
		Func097F(Shamino, "@Let us hear a real tune...@", 0x0014);
		UI_play_music_39(0x0011, item);
	labelFunc0266_013C:
		if(!(var0004 == 0x0003)) goto labelFunc0266_015A;
		Func097F(Shamino, "@Ahh, my favorite tune...@", 0x0005);
		UI_play_music_39(0x0013, item);
	labelFunc0266_015A:
		if(!(var0004 == 0x0004)) goto labelFunc0266_01C6;
		Func097F(0xFE9C, "@Ahhh, pretty.@", 0x0002);
		Func097F(Iolo, "@I do think I am sleepy...@", 0x0011);
		UI_play_music_39(0x001F, item);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_0196:
		for (var0003 in var0000 with var0009 to var000A atend labelFunc0266_01C6);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_01C3;
		UI_set_schedule_type_25(var0003, 0x0010);
		UI_clear_item_flag_A5(var0003, 0x0001);
	labelFunc0266_01C3:
		goto labelFunc0266_0196;
	labelFunc0266_01C6:
		if(!(var0004 == 0x0005)) goto labelFunc0266_01F0;
		UI_play_music_39(0x0017, item);
		Func097F(0xFF2F, "@Another tune!@", 0x0002);
		Func097F(Iolo, "@This tune is most dark...@", 0x000A);
	labelFunc0266_01F0:
		if(!(var0004 == 0x0006)) goto labelFunc0266_0268;
		Func097F(Shamino, "@Perchance a game of darts?@", 0x0003);
		Func097F(0xFE9C, "@Too slow...@", 0x000A);
		Func097F(Dupre, "@Another song perhaps...@", 0x000F);
		UI_play_music_39(0x0015, item);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_0238:
		for (var0003 in var0000 with var000B to var000C atend labelFunc0266_0268);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_0265;
		UI_set_schedule_type_25(var0003, 0x000C);
		UI_clear_item_flag_A5(var0003, 0x0001);
	labelFunc0266_0265:
		goto labelFunc0266_0238;
	labelFunc0266_0268:
		if(!(var0004 == 0x0007)) goto labelFunc0266_02D4;
		UI_play_music_39(0x000C, item);
		Func097F(0xFE9C, "@Not 'Sea Shanty!'@", 0x0003);
		Func097F(Iolo, "@Cease!@", 0x000A);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_02A4:
		for (var0003 in var0000 with var000D to var000E atend labelFunc0266_02D4);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_02D1;
		UI_set_schedule_type_25(var0003, 0x0000);
		UI_clear_item_flag_A5(var0003, 0x0001);
	labelFunc0266_02D1:
		goto labelFunc0266_02A4;
	labelFunc0266_02D4:
		if(!(var0004 == 0x0008)) goto labelFunc0266_0334;
		Func097F(0xFE9C, "@Everyone dance!@", 0x0000);
		UI_play_music_39(0x0010, item);
		var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc0266_0304:
		for (var0003 in var0000 with var000F to var0010 atend labelFunc0266_0334);
		if(!(!UI_get_item_flag_A3(var0003, 0x0006))) goto labelFunc0266_0331;
		UI_set_schedule_type_25(var0003, 0x0004);
		UI_clear_item_flag_A5(var0003, 0x0001);
	labelFunc0266_0331:
		goto labelFunc0266_0304;
	labelFunc0266_0334:
		UI_run_schedule_B7(0xFFDB);
		var0011 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0266], 0x0020);
		abrt();
		return;
}
// externs
extern Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003);

Func0268 0x268 (var var0000)
{
	var var0001;

	var0000 = UI_click_on_item_3F();
	Func08AD(item, 0x0001, 0x0024, var0000);
	return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func0269 0x269 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x000B)) goto labelFunc0269_003D;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0269], 0x0002);
	labelFunc0269_003D:
		if(!(event == 0x0002)) goto labelFunc0269_00C9;
		var0002 = UI_get_object_position_20(0xFE9C);
		var0002[0x0001] = (var0002[0x0001] - 0x0004);
		var0002[0x0002] = (var0002[0x0002] - 0x0000);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc0269_00BF;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc0269_00AB;
		UI_set_item_frame_1B(item, 0x0001);
		UI_clear_item_flag_A5(item, 0x0012);
		var0001 = UI_set_item_quality_1D(item, 0x000B);
		gflags[0224] = true;
		goto labelFunc0269_00BF;
	labelFunc0269_00AB:
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc0269_00BF;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc0269_00BF:
		var0001 = UI_update_last_created_2F(var0002);
	labelFunc0269_00C9:
		return;
}
// externs
extern Func0971 0x971 (var var0000);
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func0949 0x949 (var var0000);
extern Func094A 0x94A (var var0000);

Func0273 0x273 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc0273_0165;
	var0000 = UI_click_on_item_3F();
	UI_play_sound_effect2_A1(0x0044, item);
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = UI_get_item_quality_1C(var0000);
	if(!(UI_die_roll_17(0x0001, 0x001E) < UI_get_npc_prop_28(0xFE9C, 0x0001))) goto labelFunc0273_004A;
	var0003 = true;
	goto labelFunc0273_004E;
	labelFunc0273_004A:
		var0003 = false;
	labelFunc0273_004E:
		if(!(var0001 == 0x020A)) goto labelFunc0273_00E8;
		if(!((var0002 == 0x0000) && var0003)) goto labelFunc0273_007B;
		UI_set_item_shape_14(var0000, 0x0320);
		UI_item_say_4D(var0000, "Unlocked");
		exit2();
	labelFunc0273_007B:
		if(!((var0002 == 0x00FF) && var0003)) goto labelFunc0273_00D9;
		var0004 = UI_create_new_object_2C(0x02C0);
		if(!var0004) goto labelFunc0273_00D5;
		UI_close_gumps_98();
		var0005 = UI_update_last_created_2F(UI_get_object_position_20(var0000));
		var0005 = UI_explode_69(var0004, var0004, 0x02C0);
		if(!var0003) goto labelFunc0273_00D5;
		UI_item_say_4D(var0000, "Unlocked");
		UI_set_item_shape_14(var0000, 0x0320);
	labelFunc0273_00D5:
		exit2();
		goto labelFunc0273_00E7;
	labelFunc0273_00D9:
		UI_item_say_4D(var0000, "Pick broke");
		Func0971(item);
	labelFunc0273_00E7:
		exit2();
	labelFunc0273_00E8:
		var0006 = [0x0178, 0x010E, 0x01B0, 0x01B1];
		enum();
	labelFunc0273_00FB:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0273_015F);
		if(!(var0001 == var0009)) goto labelFunc0273_015C;
		if(!(var0002 == 0x0000)) goto labelFunc0273_0155;
		if(!(Func0906(var0000) == 0x0002)) goto labelFunc0273_0152;
		if(!var0003) goto labelFunc0273_0143;
		Func0907(var0000, 0x0000);
		UI_item_say_4D(var0000, "Unlocked");
		goto labelFunc0273_0151;
	labelFunc0273_0143:
		UI_item_say_4D(var0000, "Pick broke");
		Func0971(item);
	labelFunc0273_0151:
		exit2();
	labelFunc0273_0152:
		goto labelFunc0273_015C;
	labelFunc0273_0155:
		Func0949("@'Tis strange that did not work.@");
		exit2();
	labelFunc0273_015C:
		goto labelFunc0273_00FB;
	labelFunc0273_015F:
		Func094A("@Mayhaps thou shouldst try those on a locked chest or door.@");
	labelFunc0273_0165:
		return;
}
Func0275 0x275 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0275_0012;
	var0000 = UI_click_on_item_3F();
	goto labelFunc0275_0016;
	labelFunc0275_0012:
		var0000 = item;
	labelFunc0275_0016:
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x64, 0x68, 0x6A, 0x7A, 0x64]);
		var0001 = UI_projectile_effect_4F(0xFE9C, var0000, 0x0275);
		return;
}
Func0276 0x276 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0276_0012;
	var0000 = UI_click_on_item_3F();
	goto labelFunc0276_0016;
	labelFunc0276_0012:
		var0000 = item;
	labelFunc0276_0016:
		UI_halt_scheduled_71(0xFE9C);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x64, 0x68, 0x6A, 0x7A, 0x64]);
		var0001 = UI_projectile_effect_4F(0xFE9C, var0000, 0x0276);
		return;
}
// externs
extern var Func099D 0x99D (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0280 0x280 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0001)) goto labelFunc0280_0146;
	UI_close_gumps_98();
	var0000 = UI_get_party_list_2B();
	var0001 = 0x0001;
	var0002 = UI_find_nearby_41(item, 0xFE99, Dupre, 0x0008);
	enum();
	labelFunc0280_002B:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0280_0146);
		if(!in(UI_get_npc_number_47(var0005), var0000)) goto labelFunc0280_0054;
		var0006 = UI_die_roll_17(0x0001, 0x000F);
		goto labelFunc0280_0061;
	labelFunc0280_0054:
		var0006 = UI_die_roll_17(0x0001, 0x0006);
	labelFunc0280_0061:
		var0007 = UI_get_alignment_49(var0005);
		if(!((var0007 == 0x0002) || (var0007 == 0x0003))) goto labelFunc0280_0087;
		var0006 = (var0006 - 0x0001);
	labelFunc0280_0087:
		var0008 = UI_game_hour_45();
		if(!(((var0008 > Dupre) && (var0008 < 0x0006)) || (var0008 > 0x0015))) goto labelFunc0280_00B2;
		var0006 = (var0006 - 0x0001);
	labelFunc0280_00B2:
		if(!(var0006 < 0x0002)) goto labelFunc0280_0143;
		UI_play_sound_effect_16(0x0008);
		UI_set_item_flag_A4(var0005, 0x0008);
		if(!(Func099D(item) && (var0001 != 0x0000))) goto labelFunc0280_0116;
		if(!(var0001 < 0x0005)) goto labelFunc0280_00F2;
		var0009 = Func09A0(0x0004, var0001);
	labelFunc0280_00F2:
		if(!(var0001 < 0x0009)) goto labelFunc0280_0108;
		var0009 = Func09A0(0x0000, var0001);
	labelFunc0280_0108:
		if(!(var0001 == 0x0009)) goto labelFunc0280_0113;
		abrt();
	labelFunc0280_0113:
		goto labelFunc0280_011A;
	labelFunc0280_0116:
		var0009 = item;
	labelFunc0280_011A:
		var000A = UI_projectile_effect_4F(var0009, var0005, 0x01A8);
		var000A = UI_execute_usecode_array_01(var0009, [0x7A]);
		var0001 = (var0001 + 0x0001);
	labelFunc0280_0143:
		goto labelFunc0280_002B;
	labelFunc0280_0146:
		return;
}
// externs
extern Func0971 0x971 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08D9 0x8D9 (var var0000);
extern Func020A 0x20A (var var0000);

Func0281 0x281 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0002)) goto labelFunc0281_000F;
	var0000 = item;
	goto labelFunc0281_001E;
	labelFunc0281_000F:
		if(!(event == 0x0001)) goto labelFunc0281_0244;
		var0000 = UI_click_on_item_3F();
	labelFunc0281_001E:
		UI_play_sound_effect2_A1(0x0044, item);
		var0001 = UI_get_item_shape_18(var0000);
		var0002 = UI_get_item_quality_1C(item);
		var0003 = UI_get_item_quality_1C(var0000);
		if(!((var0001 == 0x01E5) && (UI_get_item_shape_18(item) == 0x0281))) goto labelFunc0281_0095;
		if(!(((UI_get_item_frame_1A(item) == 0x0015) || (UI_get_item_frame_1A(item) == 0x0016)) && (UI_get_item_quality_1C(item) == 0x0000))) goto labelFunc0281_0089;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x068B]);
		abrt();
	labelFunc0281_0089:
		UI_add_to_keyring_C3(var0002);
		Func0971(item);
		abrt();
	labelFunc0281_0095:
		if(!(UI_get_item_quality_1C(item) == 0x00BA)) goto labelFunc0281_0112;
		if(!((!UI_get_item_flag_A3(0xFFE1, 0x0004)) && ((UI_get_item_quality_1C(var0000) == 0x00BA) && ((var0001 == 0x0178) && (!gflags[0148]))))) goto labelFunc0281_0112;
		UI_set_schedule_type_25(0xFFE1, 0x0003);
		UI_set_item_flag_A4(0xFFE1, 0x001D);
		Func097F(0xFFE1, "@Aha!@", 0x0000);
		var0005 = UI_find_nearby_41(item, 0x016B, 0x001E, 0x0000);
		enum();
	labelFunc0281_00FA:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0281_0112);
		UI_set_schedule_type_25(var0008, 0x0009);
		goto labelFunc0281_00FA;
	labelFunc0281_0112:
		if(!(UI_get_item_quality_1C(item) == 0x0075)) goto labelFunc0281_0162;
		if(!(UI_get_item_quality_1C(var0000) == 0x0075)) goto labelFunc0281_0130;
		gflags[01E8] = true;
	labelFunc0281_0130:
		if(!((!gflags[01E6]) && ((UI_get_item_quality_1C(var0000) == 0x0075) && (!UI_get_item_flag_A3(0xFFD4, 0x0006))))) goto labelFunc0281_0162;
		UI_add_to_party_26(0xFFD4);
		Func097F(0xFFD4, "@Wait for me!@", 0x0002);
	labelFunc0281_0162:
		if(!in(UI_get_item_shape_18(var0000[0x0001]), [0x0178, 0x010E, 0x01B0, 0x01B1])) goto labelFunc0281_018F;
		if(!(var0002 == var0003)) goto labelFunc0281_018F;
		Func08D9(var0000);
	labelFunc0281_018F:
		if(!(var0001 == 0x020A)) goto labelFunc0281_01C7;
		if(!(var0002 == var0003)) goto labelFunc0281_01C7;
		UI_item_say_4D(var0000, "Unlocked");
		UI_set_item_shape_14(var0000, 0x0320);
		if(!(var0003 == 0x00FF)) goto labelFunc0281_01C7;
		var0000;
		calle();
	labelFunc0281_01C7:
		if(!(var0001 == 0x0320)) goto labelFunc0281_0244;
		if(!(var0002 == var0003)) goto labelFunc0281_0244;
		var0009 = UI_get_cont_items_33(var0000, 0x0281, var0002, 0xFE99);
		var000A = false;
	labelFunc0281_01F2:
		if(!var0009) goto labelFunc0281_0216;
		if(!(var0009 == var0000)) goto labelFunc0281_0209;
		var000A = true;
		goto labelFunc0281_0216;
	labelFunc0281_0209:
		var0009 = UI_get_container_83(var0009);
		goto labelFunc0281_01F2;
	labelFunc0281_0216:
		if(!var000A) goto labelFunc0281_0229;
		UI_item_say_4D(0xFE9C, "Key inside");
		goto labelFunc0281_0244;
	labelFunc0281_0229:
		UI_UNKNOWN_9A(var0000);
		UI_set_item_shape_14(var0000, 0x020A);
		UI_item_say_4D(var0000, "Locked");
	labelFunc0281_0244:
		return;
}
Func0282 0x282 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc0282_061E;
	UI_play_sound_effect2_A1(0x005E, item);
	UI_book_mode_6A(item);
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc0282_0033;
	UcMessage("~~ ~~PHIL'S GUIDE TO UNFINISHED USECODE~~  ~~by Phil*");
	UcSay;
	UcMessage("~~     An enlightening discourse on the enigma of usecode.");
	UcSay;
	UcMessage("~Beginning with the heretofore unresolved mysteries of global variables...*Page 2*Page 3*Page 4*Page 5*Page 6*Page 7");
	UcSay;
	labelFunc0282_0033:
		if(!(var0000 == 0x0018)) goto labelFunc0282_0045;
		UcMessage("~~ ~~THE BOOK OF THE FELLOWSHIP~~ ~~by Batlin of Britain.*");
		UcSay;
		UcMessage("     Good morning to thee, gentle friend and traveller! No matter what time of day it might be when thou art reading this -- no matter what the hour of the clock -- I say good morning to thee because this very moment brings to thee the coming of the dawn. The dawn, as everyone knows, is the moment when illumination comes. The dawn marks the end of the long dark night. It is the moment that marks a new beginning. It is mine humble hope that these words may be for thee a dawning, or at least, a sort of awakening...");
		UcSay;
	labelFunc0282_0045:
		if(!(var0000 == 0x0019)) goto labelFunc0282_0067;
		UcMessage("~~ ~~LORD BRITISH~~The biography of Britannia's longtime ruler~~ ~~ by K.Bennos*");
		UcSay;
		UcMessage("     ...While many may remember that Lord British was once but one of eight monarchs (when the lands were known as Sosaria), few are aware that he is not even a native of our own lovely Britannia. His origin is from another world, one from which he entered ours by way of a red moongate. (In fact, it is through this same type of gate that the Avatar of legend purportedly enters Britannia.) As ruler of one of the eight kingdoms, he was instrumental in selecting a champion to face Mondain, Minax, and Exodus.~");
		UcSay;
		UcMessage("     When the terrible machine, Exodus, was defeated, 'twas Lord British behind whom all the people of Sosaria rallied. The unified land become known as Britannia, with Lord British as the sole monarch. Never let it be said, though, that he rules with a tyrannical hand. His reign hath always been one of Truth, Love, and Courage, supported by his utmost belief in the eight virtues.~");
		UcSay;
		UcMessage("     It was Lord British who had the insight to call forth a quest for the Avatar (who also happened to be the champion from the days of Sosaria), and who gave prosperity and happiness unto the people.~");
		UcSay;
		UcMessage("     Then came his mysterious disappearance, when the Stranger who became the Avatar was called by his companions to aid in the search for the lost monarch. Note how Lord Blackthorn, affected by the Shadowlords, quickly turned Britannia's fair lands into a place of terror. But find our noble Lord the Avatar did, and Britannia was restored to its former, peaceful state.~");
		UcSay;
		UcMessage("     Then came the gargoyles, and our honorable sovereign thoughtfully requested the return of the Avatar...");
		UcSay;
	labelFunc0282_0067:
		if(!(var0000 == 0x0027)) goto labelFunc0282_0085;
		UcMessage("~~ ~~THE APOTHECARY'S DESK REFERENCE~~ ~~by Fetoau*");
		UcSay;
		UcMessage("     It is the author's expectation that thou art reading this to familiarize thyself with the effects of various potions based on their color. The first part of this work will discuss such aspects, with the remaining pages covering the materials and steps required to make such alchemical creations.*");
		UcSay;
		UcMessage("     Definitions:~~Black potion: Drinking this will render the individual invisible for several minutes.~Blue potion: This mixture will put the imbiber into a deep sleep.~Orange potion: This potion will awaken an individual who was magically put to sleep.~Purple potion: This concoction will provide magical protection for several minutes of hard fighting.~White potion: This potion will provide a small bit of illumination, much like a candle, for a few minutes.~ Yellow potion: This powerful mixture will give healing aid to the imbiber's wounds.~~WARNING: Green potion: This potion is a dangerous toxin, and will poison the imbiber, possibly killing the individual.~ Red potion: This fabulous drink will cure most poisons, including those acquired from the slugs in the swamps and that gained from drinking a GREEN potion.");
		UcSay;
		UcMessage("~Bluish Black potion: For thine adventures in the Icy Lands, that renowned concoction is critical in such climate. It is for thee to use in plenty for it will prevent thee from freezing to death.~Orange Shimmering potion: Specifically designed for the busy wizard whose lifestyle requires him or her to cast many a spell. Once this delectable potion is absorbed it will enable thee to cast many more spells.*");
		UcSay;
		UcMessage("     This next section details how one can best recreate these uncanny concoctions...");
		UcSay;
	labelFunc0282_0085:
		if(!(var0000 == 0x002C)) goto labelFunc0282_009F;
		UcMessage("~~ ~~THE PROVISIONER'S GUIDE TO USEFUL EQUIPMENT~~ ~~by Dell*");
		UcSay;
		UcMessage("     While most suppliers will rave about the effectiveness of a good sword or specially fitted armour, I personally feel that proper exploring gear is much more necessary.~");
		UcSay;
		UcMessage("     Consider this, dear reader. While thou mightest happen to encounter a wild bear in thy travels, or, even less likely, a troll, thou art doubtless going to be in need of much more mundane equipment.~");
		UcSay;
		UcMessage("     Wilt thou possibly be outside city walls when darkness comes? Then buy a torch. And how wilt thou carry thy provisions? A backpack will prove necessary. And what about a container for thy refreshment? Purchase a jug or bucket. As for...");
		UcSay;
	labelFunc0282_009F:
		if(!(var0000 == 0x002F)) goto labelFunc0282_00BD;
		UcMessage("~~ ~~WHAT COLOR IS THY BLADE? ~~ ~~by Menion*");
		UcSay;
		UcMessage("The first step in effective sword-forging is to fill a crucible with metal. Then, with the bellows, the fire should be made extremely hot. When the flame no longer continues to grow in its glow, set the crucible on the fire to melt the metal.~");
		UcSay;
		UcMessage("     Afterwards, pour the molten metal	into the blade mold and let it cool. Be warned! The crucible is at an extremely high temperature. Lift the cooled blade from the mold. Again heat up the fire and set the blade within. Be careful not to let it lose its shape. Set it in there only long enough for the blade to become malleable.~");
		UcSay;
		UcMessage("     When it is ready, finish shaping it on the anvil with the hammer. When thou hast formed a blade of the desired shape, use the quenching barrel to cool the metal. It will harden quickly, so be sure the blade is as sharp as thou dost want it to be.~");
		UcSay;
		UcMessage("     All that thou hast left to do now is to put the pommel over the tang. It will require hard work to make a fine, sturdy sword, but the finished weapon is well worth it!");
		UcSay;
	labelFunc0282_00BD:
		if(!(var0000 == 0x003D)) goto labelFunc0282_0147;
		UcMessage("~~ ~~JOURNAL OF THE KING~~ ~~OF THE WHITE DRAGON*");
		UcSay;
		UcMessage("		On the Twelfth Day before the Solstice Festival:");
		UcSay;
		UcMessage("~		Shamino, traitor, I will destroy thee as thou didst destroy my beloved daughter, Beatrix. Shamino, cursed be thy name, I befriended thee and thou didst betray me. I asked my people to help thee erect	thy castle and betrayal is thine only response to them. Traitor!*");
		UcSay;
		UcMessage("		On the Eleventh Day before the Solstice Festival:");
		UcSay;
		UcMessage("~ 	Despair hath been the daily lot of my poor Beatrix. Now, I myself have my share of worries. I am surrounded by traitors and goblins are closing in on the castle. Shamino, doomed be thy name, I, King of the White Dragon, want to hang, draw and quarter thee.");
		UcSay;
		UcMessage("My poor Beatrix was so joyful when thou didst request her hand from me. I agreed happily to such a union. My beloved daughter left me in order to live in thy new castle. By that time thou hadst already been touched by the obsession to foil Mondain from his conquest of the world. Thou didst leave on thy journey to seek the advice of Lord British, from hence never to return. The long-awaited wedding was never to be. My lovely child, my Beatrix, remained unwed waiting for her love to return. She loved thee and had faith in thee, Shamino, cursed be thine offspring.*");
		UcSay;
		UcMessage("		On the Tenth Day before the Solstice Festival:");
		UcSay;
		UcMessage("~		Those goblins, I see those malformed goblins coming for us. They are destroying our wealth and our lives as Shamino, cursed be his name and his lineage, destroyed my Beatrix's health and life.");
		UcSay;
		UcMessage("She died forlorn.");
		UcSay;
		UcMessage("Thy treacherous heart led Beatrix to a lonely grave.*");
		UcSay;
		UcMessage("On the Ninth Day before the Solstice Festival:");
		UcSay;
		UcMessage("~		The Kingdom is plagued by hordes of goblins that grow more fierce and daring with each passing season. I am surrounded by traitors and should not trust anyone. What to do? Beatrix, thine adorable light no longer shines upon me. How solitary thou must be in thy cold bed. This year I will hold the grandest Solstice Festival ever. Thou wilt love it. 'Tis especially dedicated to thee, my right well beloved.*");
		UcSay;
		UcMessage("		On the Eighth Day before the Solstice Festival:");
		UcSay;
		UcMessage("~	Those magic-warped goblins are everywhere and they are persistent.");
		UcSay;
		UcMessage("They must be led by that villainous Shamino.");
		UcSay;
		UcMessage("A man who doth not keep his word is less than a man. How couldst thou trust him, Beatrix.*");
		UcSay;
		UcMessage("		On the Seventh Day before the Solstice Festival:");
		UcSay;
		UcMessage("~	Shamino the deceitful and his allies are waiting in the dark passages of this castle to ambush me. I know it. I saw them in my dream last night.");
		UcSay;
		UcMessage("They will not succeed. They cannot succeed for I have a plan to save my people from traitors and ravaging goblins. Beatrix, I will let thee know about this idea of mine, thou wilt be delighted...*");
		UcSay;
		UcMessage("		On the Sixth Day before the Solstice Festival:");
		UcSay;
		UcMessage("~	My dearest beloved one, how thou must long for company in thy misery.");
		UcSay;
		UcMessage("This bacchanal will bring thee all of thy friends and our people. That villainous Shamino will have the fate he doth deserve.*");
		UcSay;
		UcMessage("		On the Third Day before the Solstice Festival:");
		UcSay;
		UcMessage("~	I am looking forward to seeing thy Solstice Festival, yes, this season is thy Festival. I planned it for thee. And, indeed, for all of us.");
		UcSay;
		UcMessage("		Traitors and deceivers alike are in for a surprise. All of my subjects and myself -- we will not leave anything for the goblins to take.");
		UcSay;
		UcMessage("		Two days hence....*");
		UcSay;
		UcMessage("		On the Eve of the Solstice Festival:");
		UcSay;
		UcMessage("All is prepared for my greatest bacchanal ever.");
		UcSay;
		UcMessage("		On the morning of the Solstice Festival:");
		UcSay;
		UcMessage("~	Beatrix, soon we will be reunited and part never again.");
		UcSay;
		UcMessage("This Solstice Festival will be recorded in the annals of the Kingdom of The White Dragon. It is to be the greatest feast ever!");
		UcSay;
		UcMessage("Let us all rejoice in one night of revelry! After the midnight revels and before the end of the night, a new dawn will rise...");
		UcSay;
	labelFunc0282_0147:
		if(!(var0000 == 0x003E)) goto labelFunc0282_0189;
		UcMessage("~~ ~~ DIARY~~ ~~Anonymous*");
		UcSay;
		UcMessage("		I was hired by Batlin the first time we met, in Fawn. A recently shipwrecked pirate, I had escaped from the Storms as well as jail. Since then I have been in his service with no interruption nor reason to complain.");
		UcSay;
		UcMessage("~Week 1:");
		UcSay;
		UcMessage("Our first meeting was a strange one. I remember gazing around from the shores of the bay, climbing on top of a hill and seeing no signs of life. No signs of life for miles and miles around except in a spot in the middle of the bay where I perceived a shimmering city: Fawn. On my way downhill I ran into a group of men in which I recognized an old pirate friend of mine, Pilot. They were looking for manpower and I was available. Pilot introduced me to Batlin and I was in. We marched into Fawn where Batlin had some business to conduct.*");
		UcSay;
		UcMessage("~Weeks later:");
		UcSay;
		UcMessage("		How we got to this place, I am not certain, for I was blindfolded while we were in the doing of it. All I can say is that my master knows powerful magics, which allow us to step aside from the barriers of this physical world. Thus, I find myself in the frozen north, in the abandoned sanctuary of a long dead people. Here, we have slain a Beast of Ice, and captured a Daemon's Soul.");
		UcSay;
		UcMessage("Soon after the Daemon was imprisoned, I beheld with anxious eyes a dreadful vortex. Believe me, I have seen many a storm on various seas and continents, but never ever such a fury. It is as if Nature herself is in contortion.");
		UcSay;
		UcMessage("~~On the third day of the following week:");
		UcSay;
		UcMessage("At the first streak of dawn, we travelled overland across the snowy wastes to the great mountains which my master calls the Peaks of Skullcrusher.");
		UcSay;
		UcMessage("In the depths beneath the mountains, we sought another of these Daemons. This proved to be a difficult task. We had to keep a strict watch to discover him in his hiding place. Finally, we trapped the second prisoner, whose name is Anarchy.");
		UcSay;
		UcMessage("We searched all over the Skullcrusher mountains for this bane.");
		UcSay;
		UcMessage("~On the last day of the week:");
		UcSay;
		UcMessage("Then, we travelled by magical means until we found ourselves in the tangled forest of the northlands. The last Daemon had eluded us in the Plains of Ice, but in his new form he was not so swift. Now his trail hath led us to this ruined castle.");
		UcSay;
		UcMessage("I will finish this entry later tonight.");
		UcSay;
	labelFunc0282_0189:
		if(!(var0000 == 0x003F)) goto labelFunc0282_0317;
		UcMessage("LOVE SONNETS~~ by Beatrix~~");
		UcSay;
		UcMessage("To the only begetter of these");
		UcSay;
		UcMessage("				sonnets");
		UcSay;
		UcMessage("To the well-wishing adventurer");
		UcSay;
		UcMessage("			in setting forth...*");
		UcSay;
		UcMessage("				I~");
		UcSay;
		UcMessage("Shamino, valiant adventurer,");
		UcSay;
		UcMessage("Homo malicious");
		UcSay;
		UcMessage("Adored from mine earliest hour,");
		UcSay;
		UcMessage("Magnanimously, thy presence");
		UcSay;
		UcMessage("     on all dost shower");
		UcSay;
		UcMessage("Infinite love! By life thou dost");
		UcSay;
		UcMessage("     devour,");
		UcSay;
		UcMessage("Non-fading and delicious,");
		UcSay;
		UcMessage("Our charming love, sweetest");
		UcSay;
		UcMessage("     power.*");
		UcSay;
		UcMessage("				II~");
		UcSay;
		UcMessage("My heart is a chest");
		UcSay;
		UcMessage("Of bitterness");
		UcSay;
		UcMessage("Since we are apart");
		UcSay;
		UcMessage("A harness of teardrops");
		UcSay;
		UcMessage("I fear lest");
		UcSay;
		UcMessage("I should fall from some height");
		UcSay;
		UcMessage("On my shoulder");
		UcSay;
		UcMessage("The weight");
		UcSay;
		UcMessage("In mine heart");
		UcSay;
		UcMessage("The pain");
		UcSay;
		UcMessage("Why wait?");
		UcSay;
		UcMessage("Why explain?");
		UcSay;
		UcMessage("Shamino");
		UcSay;
		UcMessage("Dost thou not");
		UcSay;
		UcMessage("Know");
		UcSay;
		UcMessage("How to care?*");
		UcSay;
		UcMessage("				III~");
		UcSay;
		UcMessage("Since the War of Mondain");
		UcSay;
		UcMessage("One memory I keep");
		UcSay;
		UcMessage("When beyond these Realms");
		UcSay;
		UcMessage("Thinking of us I weep");
		UcSay;
		UcMessage("Is there one more");
		UcSay;
		UcMessage("Chance to meet under");
		UcSay;
		UcMessage("              the elms?*");
		UcSay;
		UcMessage("				 IV~");
		UcSay;
		UcMessage("Never this warrior's destiny");
		UcSay;
		UcMessage("     allowed");
		UcSay;
		UcMessage("His love to gain");
		UcSay;
		UcMessage("Though restless, roving on");
		UcSay;
		UcMessage("     adventure proud");
		UcSay;
		UcMessage("He traversed oft the land");
		UcSay;
		UcMessage("And oft the main");
		UcSay;
		UcMessage("But love is like grain");
		UcSay;
		UcMessage("It needs a tender hand");
		UcSay;
		UcMessage("To grow, flourish and mature");
		UcSay;
		UcMessage("The Wrath of Mondain");
		UcSay;
		UcMessage("Destroyed our bond");
		UcSay;
		UcMessage("Thy past thou shalt nurture");
		UcSay;
		UcMessage("For greater future");
		UcSay;
		UcMessage("In the worlds beyond*");
		UcSay;
		UcMessage("				 V~");
		UcSay;
		UcMessage("Sunset");
		UcSay;
		UcMessage("Over the Main Gate");
		UcSay;
		UcMessage("Going thy way");
		UcSay;
		UcMessage("I stare at thee");
		UcSay;
		UcMessage("Breathing in thy scent");
		UcSay;
		UcMessage("I start the ascend");
		UcSay;
		UcMessage("Hastily");
		UcSay;
		UcMessage("Blasting thee with a spectral");
		UcSay;
		UcMessage("     spell");
		UcSay;
		UcMessage("I shimmer");
		UcSay;
		UcMessage("Away.*");
		UcSay;
		UcMessage("				 VI~");
		UcSay;
		UcMessage("Beneath the yew");
		UcSay;
		UcMessage("Thoughts of thee");
		UcSay;
		UcMessage("Keep me warm and jolly");
		UcSay;
		UcMessage("Raindrops like dew");
		UcSay;
		UcMessage("On a lily's petal");
		UcSay;
		UcMessage("Gently brushing my skin");
		UcSay;
		UcMessage("Cleansing for the soul");
		UcSay;
		UcMessage("What a delight");
		UcSay;
		UcMessage("Never too soon");
		UcSay;
		UcMessage("Watching my reflection");
		UcSay;
		UcMessage("     in the river");
		UcSay;
		UcMessage("As doth the Harvest Moon");
		UcSay;
		UcMessage("Night after night");
		UcSay;
		UcMessage("In this season.*");
		UcSay;
		UcMessage("				 VII~");
		UcSay;
		UcMessage("Shamino, shadows of thee");
		UcSay;
		UcMessage("     appear");
		UcSay;
		UcMessage("Before mine eyes all the year");
		UcSay;
		UcMessage("I see the main road clear");
		UcSay;
		UcMessage("Winding down to thy Castle");
		UcSay;
		UcMessage("Where the winds whistle");
		UcSay;
		UcMessage("There, at night I delight");
		UcSay;
		UcMessage("At the magic sight");
		UcSay;
		UcMessage("Of spectral spells like thunder");
		UcSay;
		UcMessage("On thy neck, warrior");
		UcSay;
		UcMessage("Thou shalt not");
		UcSay;
		UcMessage("Abandon me.");
		UcSay;
	labelFunc0282_0317:
		if(!(var0000 == 0x0040)) goto labelFunc0282_0329;
		UcMessage("~~ ~~ My life~~ ~~by Yakka*");
		UcSay;
		UcMessage("I grew up in a tiny village on the southern coast. Life hath been good so far and I know it will be longer than this book.");
		UcSay;
	labelFunc0282_0329:
		if(!(var0000 == 0x0043)) goto labelFunc0282_034B;
		UcMessage("MY RECORDS~~ by Vasculio~~");
		UcSay;
		UcMessage("- One locket stolen from Frigidazzi, who refused to accept the passion I would have spent on her.");
		UcSay;
		UcMessage("- The Living Scalp stolen from Filbercio, who sentenced me to die.");
		UcSay;
		UcMessage("- The Spectral Orb stolen from Mortegro. I hate him, for he uncovered my dangerous research and betrayed me to the Council of Mages.*");
		UcSay;
		UcMessage("- The Flux Analyzer stolen from Gustacio. Gustacio the influential, Gustacio the dignified, Gustacio the magisterial, I despise thee! I despise thee for thou representest everything I could never be.");
		UcSay;
		UcMessage("- The Wand of Stone, taken from Torrissio. I blast mine hatred of Torrissio to the seven winds, for he was my partner in twisting the rules of the Mages, yet he abandoned me to their justice.");
		UcSay;
	labelFunc0282_034B:
		if(!(var0000 == 0x0044)) goto labelFunc0282_038D;
		UcMessage("MY JOURNAL by ~~Maleccio");
		UcSay;
		UcMessage("		I was born and raised in the city of Moonshade, a foe of Vasculio. Then I was taken to this place, where I am a prisoner of He Who Was Dead -- Vasculio.");
		UcSay;
		UcMessage("Vasculio survives beyond death! He doth drink blood out of the living to keep himself alive. Hence his great thirst for fresh blood. His corpse is animated by means of spells and the Forbidden Reagent. I am his prisoner, fettered worse than a wild beast; manacled by mine hands and feet by day and by night. My blood is so vital to him that he is afraid I could break away. How could I in this cage. At times, I feel like survival is a meaningless word. I am exhausted. He hath been awakening me at all hours of the already too short night, thereby robbing me of mine all too brief night's slumber.*");
		UcSay;
		UcMessage("		This week I managed to write more. I feel better than last month but still weak.");
		UcSay;
		UcMessage("All through these interminable weeks in this cage, I have suffered from chronic weariness.");
		UcSay;
		UcMessage("I do not believe escape is possible. I have seen Death face to face and she hath seen me. I am more than ever determined to continue to struggle for survival, for this is the primary instinct of the animal.*");
		UcSay;
		UcMessage("The following week: I am losing track of time. I can track seven day periods but do not seem to recall any other relevant information; seasons and days are not part of my realm. Like life, they escape me. Am I less than an animal? This deranged mage, frantically seeking the lost secrets of Ophidian magic, certainly treats me as such. Actually, I do not feel anything anymore. I may live like an animal, but in my mind I am a man. I still think and write, therefore I exist. If this journal survives me and thou art reading it, regardless of the time elapsed, then I am alive. I am alive because my thoughts are alive.*");
		UcSay;
		UcMessage("Today, fifth day of this present week, I am going to tell thee more about the twisted Vasculio.  He boasts that his magical powers are too great to be defeated by mere mortals. I have to tell thee that he was executed in Moonshade for practicing spells too diabolical for Man. His powerful magic allowed him to continue living as a liche.*");
		UcSay;
		UcMessage("Also, I shall share this with thee, so that thou mayest make good use of it: Remember that no information hath value until thou dost test it.*");
		UcSay;
		UcMessage("My words, hereunder, will guide thine understanding. Vasculio hath been experimenting with eternal life theories. Once, he stumbled upon a magic formula which, when used with the blood of an innocent, allowed a dead body to live longer. Moments before his execution he intoned the spell to keep his body living. Later he escaped from his coffin and travelled to Skullcrusher.*");
		UcSay;
		UcMessage("Why Skullcrusher, thou askest? The answer is simply because he knew there was a second source for Stoneheart. Stoneheart is the prime ingredient of Bloodspawn, here in these caverns.");
		UcSay;
		UcMessage("There is also another important reason. Vasculio knew that his enemies, the Mages of Moonshade, would never follow him here.*");
		UcSay;
		UcMessage("Seventh day of the present week:");
		UcSay;
		UcMessage("This undying sorcerer doth spend his time researching new spells. He is convinced that great magical secrets lie beyond the sealed entrances. He detects great power and magic in these areas. Vasculio hath not been able to locate the Grand Shrine within the great labyrinth beneath the Skullcrusher Peaks. I could tell thee that he stores provisions to support his allies, the man-eating Gwani. But this is not out of charity for them, for he also lives on with their blood. At this point I must stop writing for I can hear Vasculio howling in the tunnels. This is a sign that he is coming for me once more...");
		UcSay;
	labelFunc0282_038D:
		if(!(var0000 == 0x0045)) goto labelFunc0282_03CB;
		UcMessage("~~ ~~CURRICULUM~~ ~~by Vasculio*");
		UcSay;
		UcMessage("As they lower me down to this");
		UcSay;
		UcMessage("     hole in the ground");
		UcSay;
		UcMessage("I scream for help, but they");
		UcSay;
		UcMessage("     cannot hear a sound.");
		UcSay;
		UcMessage("I scratch on this lid.");
		UcSay;
		UcMessage("My fingers they bleed.");
		UcSay;
		UcMessage("They plant me deep like");
		UcSay;
		UcMessage("     an evil seed.");
		UcSay;
		UcMessage("Now my bones decompose.");
		UcSay;
		UcMessage("My flesh doth rot.");
		UcSay;
		UcMessage("But soon I will rise and");
		UcSay;
		UcMessage("     torture the lot");
		UcSay;
	labelFunc0282_03CB:
		if(!(var0000 == 0x0046)) goto labelFunc0282_0401;
		UcMessage("~~MINE EXPERIMENTS~~ ~~by Vasculio*");
		UcSay;
		UcMessage("Day 1: 	This is the dawn of a new era for me. I have been experimenting with eternal life for so long now. At last, I am seeing some results.~");
		UcSay;
		UcMessage("Day 2: 	Entranced more Gwani in order to increase the number of my servants");
		UcSay;
		UcMessage("Day 3: 	Forced the Gwani to give to me the secret of entering certain passages. Experiments still in progress. A pint or two should keep me alive, depending on the frequency of transfusion.*");
		UcSay;
		UcMessage("Day 8:	        The lost secret of the Ophidians is within my reach, I can feel it. Ophidian magic will give to me absolute power.~");
		UcSay;
		UcMessage("Day 12:        Last week I stumbled upon this magic formula which further lengthens the life span of a dead body. What a discovery! I need to use the mixture in an adequate proportion with the blood of an innocent.*");
		UcSay;
		UcMessage("Day 17:        The caverns around Skullcrusher are filled with Stoneheart. More than I ever knew! I need as much Stoneheart as I may find since this is the prime ingredient of Bloodspawn. Stoneheart doth possess the red-orange glow of stalagmites. Once pulverized and mixed with fresh human blood it turns into a powerful magical reagent. Even though I have tried extremely powerful spells, Bloodspawn is easy and safe to transport. The mages who say otherwise are fools.*");
		UcSay;
		UcMessage("Day 21:        This day I have spent researching many new spells. Exhausting. The prisoners in the cage may not live long enough to fulfill my plans. They seem to be weak.~");
		UcSay;
		UcMessage("Day 28:        I am convinced that great magical secrets lie beyond the sealed entrances, for I sense great power and magic in the vicinity.*");
		UcSay;
		UcMessage("Day 34:        Today is a sad day. My servants have failed me! While transporting Bloodspawn, they suffered simultaneous seizures and toppled into a chasm -- the Bloodspawn was lost!*");
		UcSay;
		UcMessage("This is endangering my schedule. I need more workers. They must work longer hours. Toil is a necessity; sleep, an addiction from which they must be weaned.");
		UcSay;
	labelFunc0282_0401:
		if(!(var0000 == 0x0047)) goto labelFunc0282_0413;
		UcMessage("~~ ~~ Beyond The Sealed Entrances~~ ~~by Vasculio*");
		UcSay;
		UcMessage("After all these years, I found two sealed entrances in the depths. I believe there is much to be discovered beyond these entrances, for they must have been sealed for a reason which doth go beyond mine understanding at this point in time. I have detected great power and magic in those areas. I presume that superior magical secrets lie beyond the sealed entrances.");
		UcSay;
	labelFunc0282_0413:
		if(!(var0000 == 0x0049)) goto labelFunc0282_0445;
		UcMessage("MY JOURNAL by Dolfo~~");
		UcSay;
		UcMessage("	The Magic Gate hath not been easy to use. We had to search for the answer and it was only after much trial and error that we were able to determine that the key is a sequence of five colors.~");
		UcSay;
		UcMessage("Red directly precedes White: Blue follows Yellow: Yellow directly follows Red: Yellow and White do not immediately follow one another.*");
		UcSay;
		UcMessage("	As heretofore, the access to the doors of the Temple is blocked by a lock. The combination to this lock caused much commotion.");
		UcSay;
		UcMessage("	Herein is mine experience revealed to thee as it unfolded. Mark my words, for they will save thee much time.");
		UcSay;
		UcMessage("I write the letters in our alphabet, but substitute the Serpent Runic letters to make thine understanding plain. I cannot write those cursed snake shapes.*");
		UcSay;
		UcMessage("The runes must be placed left to right on the floor before the brass doors; any other placement will result in endless frustration.");
		UcSay;
		UcMessage("I tried W.O.B. and C., none of the runes were in the right position.");
		UcSay;
		UcMessage("I then tried C.B.W. and O.-- again, none of the runes were in the correct position.");
		UcSay;
		UcMessage("I then tried the O rune in the first position, which was not where it belonged, and knew I could discern the puzzle...");
		UcSay;
	labelFunc0282_0445:
		if(!(var0000 == 0x004A)) goto labelFunc0282_045F;
		UcMessage("Memoirs~~ by Brother Markus*");
		UcSay;
		UcMessage("		In the middle of a stormy night, a deafening roar of thunder tore apart the heavens and woke us. It was to be followed by five rapid and resounding knocks on the main door. I rose out of bed, donned my sandals and walked to the double doors. A desperate hand was pounding on the wooden frame. Most likely some belated traveller had been caught in the storm, I thought. As I half-opened the door, a swift streak of lightning pierced dramatically across the clouds, illuminating the darkness. Through the slashing rain appeared the figure of a bedraggled man, bedraggled yet with the certain stamp of nobility in his brow. Yet I did not recognize him.");
		UcSay;
		UcMessage("He rushed in, looking for the hearth. Several of my brethren helped him with dry clothes and a hot beverage. He said his name was Blackthorn, and that he had come a long way to seek refuge in our monastery. He thanked us sincerely and then asked for hospitality, which we granted him.");
		UcSay;
		UcMessage("He said that he was an exile from a land called Britannia, and that since his departure he had been roaming the seas in search of a haven. He stayed with us, at the Monastery, for some time. We taught him from the writings of Xenka, whence he learned that birth, ranks, titles, power and gold are meaningless, for this world is but a thoroughfare. We are all brought into this world equal in rights and we depart from it carrying nothing with us but our deeds, good and ill.");
		UcSay;
	labelFunc0282_045F:
		if(!(var0000 == 0x004B)) goto labelFunc0282_0485;
		UcMessage("MY DIARY~~ by Pendar*");
		UcSay;
		UcMessage("Day 1:	Alea jacta est! Departure for the daemons' stronghold, with all our worthy company. Finally, we are ready to pursue this campaign. We are going to erase these daemons from the face of the earth. Dungeon Furnace, thy time hath come, thou wilt burn! Our troops are marching into the caves. I am more relaxed after all those days of recruiting men.*");
		UcSay;
		UcMessage("This is a strong army, as large as daybreak, whereby thou wilt observe the valor concealed in our noble hearts. Monitorian knights have never feared anything or anyone, certainly not daemons! I am confident in a swift victory for our side.*");
		UcSay;
		UcMessage("Day 4:	'Tis hot, with a stench like brimstone in the air. The mist doth have an unhealthy odor, and our limited supply of foods hath made us cautious. Wrapped in my bedroll by the fire, I slept soundly. So did most of our men. The battle hath been taking its toll on us all. In the morning, I rose at the sound of the war drums echoing in the distance. They kept coming. In brief, by one means or the other, our company was diminished.*");
		UcSay;
		UcMessage("Day 7:  	The next move was to attack before daemons could form into a solid defense again. Lost two of my right best old stalwarts in a horrible manner. They walked too close to the pool and were taken by that horror in the pool. Knight, pity thy companions for they left for the abysmal depths of the unknown.*");
		UcSay;
		UcMessage("Day 11:  	Tense and anxious times have fallen upon thee, Pendar. Burning as was the day, I broke out in a chill as I witnessed the company being decimated. What a slaughter! Darkness closed in upon us. For the last couple of days, I have not slept, though I am weary and tormented. I confess having scarcely closed mine eyes on any night this past week. The nights are sleepless and the days seem to be endless nights.*");
		UcSay;
		UcMessage("Week 5:	I saw a star in the caverns, large and bright. It was surely an omen. I rose and walked aimlessly; soon a peaceful feeling was to overcome me. At that moment, my self-confidence was higher than the sun in the sky. The lure of combat swept again through my veins, mine heart was pounding, I was ready to go into a decisive battle.");
		UcSay;
	labelFunc0282_0485:
		if(!(var0000 == 0x004C)) goto labelFunc0282_049F;
		UcMessage("~~ ~~THE SLEEPING BULL");
		UcSay;
		UcMessage("~~ ~~Register*");
		UcSay;
		UcMessage("~ ~Rodolfo of Moonshade~~Nakholy of Fawn~~Ensorcio of Moonshade~~Rishar of Monitor~~Batlin of Fawn~~Palos, manservant of Batlin*");
		UcSay;
		UcMessage("~ ~Rodolfo of Moonshade~~Rishar of Monitor~~");
		UcSay;
	labelFunc0282_049F:
		if(!(var0000 == 0x004E)) goto labelFunc0282_055C;
		var0001 = "him";
		var0002 = "his";
		var0003 = "he";
		var0004 = "He";
		var0005 = "His";
		if(!UI_is_pc_female_6F()) goto labelFunc0282_04EC;
		var0001 = "her";
		var0002 = "her";
		var0003 = "she";
		var0004 = "She";
		var0005 = "Her";
	labelFunc0282_04EC:
		UcMessage("THE BOOK OF PROPHECIES~~ by Xenka*");
		UcSay;
		UcMessage("		When a stranger sojourns with thee in thy land, thou shalt not do him or her wrong. The stranger who sojourns with thee shall be to thee as the native among ye. And thou shalt love him or her as thyself; for I see the advent of a Hero From Another World who would unite the Serpents and save the world.*");
		UcSay;
		UcMessage("I see the rocks in motion, and trees bursting open -- I see treasures which have lain hidden for centuries coming forth. There I see one which is of three. It is black. It is magic.");
		UcSay;
		UcMessage("		Clearly do I see a Hero From Another World, but let it be said that ");
		UcMessage(var0003);
		UcMessage(" is not alone. ");
		UcMessage(var0004);
		UcMessage(" must not advance as one alone! I pray thee above all things to have this in remembrance. ");
		UcMessage(var0004);
		UcMessage(" must be accompanied by The Three.*");
		UcSay;
		UcMessage("		The Hero From Another World will succeed through the use of powerful magic, the aid of specters, and the implements three of the Hierophant.*");
		UcSay;
		UcMessage("		My words shed light upon darkness. Follow the unfolding of my words and thou wilt see that the friends of the Hero shall be ");
		UcMessage(var0002);
		UcMessage(" enemies. Visions shall make ");
		UcMessage(var0001);
		UcMessage(" wiser than ");
		UcMessage(var0002);
		UcMessage(" enemies, for thus is it always with ");
		UcMessage(var0001);
		UcMessage(".");
		UcSay;
		UcMessage("The Hero From Another World must triumph even in ");
		UcMessage(var0002);
		UcMessage(" Dreams.*");
		UcSay;
		UcMessage("The dead shall aid ");
		UcMessage(var0001);
		UcMessage(", but enemies among the living shall abound.");
		UcSay;
		UcMessage("A careful choice of ally is necessary to ensure success. The Hero From Another World will even need a thief and a braggart as ");
		UcMessage(var0002);
		UcMessage(" ally.");
		UcSay;
		UcMessage("I see the future as through a veil -- ");
		UcMessage(var0003);
		UcMessage(" shall be allied with those once ");
		UcMessage(var0002);
		UcMessage(" enemies, and shall find good men in bad company. I see the color red, and a woman is involved.");
		UcSay;
	labelFunc0282_055C:
		if(!(var0000 == 0x004F)) goto labelFunc0282_057E;
		UcMessage("Day 8 -- This rotten place ain't for me. It don't seem possible to revel around here.");
		UcSay;
		UcMessage("Day 9 -- Did some work for Batlin. He thinks too much of hisself. I wish he'd fall off a cliff.");
		UcSay;
		UcMessage("Day 12 -- Why did I ever leave Britannia?");
		UcSay;
		UcMessage("Day 20 -- Batlin better pay me in gold or I'll be teachin' him");
		UcSay;
		UcMessage("a lesson.");
		UcSay;
		UcMessage("Gold is the only way for me to leave this bilgehole and have some fun in Britannia. Already know what I'll be buyin'! Buccaneer's Den is my idea of a good place to be!");
		UcSay;
	labelFunc0282_057E:
		if(!(var0000 == 0x0050)) goto labelFunc0282_05A0;
		UcMessage("~~ ~~ MY JOURNAL ~~ ~~by Silverpate*");
		UcSay;
		UcMessage("Day 3 of Week 9:~~Today, I had another argument with Erstam, that old crazy mage with a foul temper! I could never stand him, I never will. Who doth he think he is? Erstam and I are so different that we simply cannot work together.*");
		UcSay;
		UcMessage("Day 4 of Week 9:~~My precious Jawbone, I am so glad thou art mine, I use thee often and often again and still have no grounds to complain. What would I do without thee, tell me? Erstam, thou art not the only one who can travel through the Void!*");
		UcSay;
		UcMessage("Day 7 of Week 9:~~Thy magic telescope is merely another trick thou hadst divined when thou didst fear my powers. Useless piece of equipment for a crazy old mage. I am tired of thee. I understand why Drogeni never came back...~");
		UcSay;
		UcMessage("Thou art looking for immortality and will end alone, Erstam!~");
		UcSay;
		UcMessage("I, Silverpate, will prove thee wrong. I will discover the solution relevant to our matters.");
		UcSay;
	labelFunc0282_05A0:
		if(!(var0000 == 0x0053)) goto labelFunc0282_05B6;
		UcMessage("~~ ~WEAVING~~ ~~by Carlyn*");
		UcSay;
		UcMessage("     This is a complete sourcebook for a variety of patterns. Included are patterns for clothing, blankets, quilts, and sheets. The introduction even includes a section on weaving one's own cloth.~");
		UcSay;
		UcMessage("     ...take the bale of wool and spin it on the wheel to make the thread. Once that is done, warp the thread across the loom and begin weaving. Shortly thou wilt have a nice length of cloth from which canst make a variety of useful things. For variation, use different colored threads on the loom to create exciting patterns.");
		UcSay;
	labelFunc0282_05B6:
		if(!(var0000 == 0x005A)) goto labelFunc0282_05D4;
		UcMessage("~~ ~~THE BLACK COMPENDIUM ~~ ~~Written by Mondain, with annotations by the enchantress Minax and magical formulae by the hellspawn Exodus.*");
		UcSay;
		UcMessage("     To extend one's life is a complicated procedure, taking years to complete. However, there is an additional side effect: invulnerability. I have broken this work down into chapters based on each individual ritual. It is very important that these steps be performed in the order presented.*");
		UcSay;
		UcMessage("     First, thou must procure five stones of the dust of crushed rubies. This must be mixed thoroughly with the ooze of a slime, enough to make the rubies into a thick paste. After thou hast created the paste, set it in an ivory jar and place the entire container in a bucket of olive oil for three years.*");
		UcSay;
		UcMessage("     The next step is to procure 10 newborn babes, none more than six days old. With a knife cut from the bone of a harpy, thou must remove the blood from each newborn. To be kept fresh, the blood must be stored in an onyx flask, though mixing of each baby's blood is quite permissible.*");
		UcSay;
		UcMessage("     Now thou shalt seek out...");
		UcSay;
	labelFunc0282_05D4:
		if(!(var0000 == 0x005B)) goto labelFunc0282_05EE;
		UcMessage("~~ ~~BROMMER'S FLORA~~ ~~by Brommer*");
		UcSay;
		UcMessage("     This large tome describes most of the common plants indigenous to Britannia.~~");
		UcSay;
		UcMessage("  ...The Greer plant is especially fascinating, for it spends most of its life huddled with its leaves wrapped in a tight ball. However, every so often, the leaves will unfurl, radiating out from the stem...*");
		UcSay;
		UcMessage("  ...The Reaper is unique in that it is both plant and animal. Resembling a large tree, the Reaper is capable of self-animation as well as self-locomotion. Reapers have been known to attack those who cause harm to their home (i.e., the forests), but seldom reveal themselves otherwise...");
		UcSay;
	labelFunc0282_05EE:
		if(!(var0000 == 0x005C)) goto labelFunc0282_0608;
		UcMessage("~~ ~~BROMMER'S FAUNA~~ ~~by Brommer*");
		UcSay;
		UcMessage("     Betwixt the covers of this book can be found details on the most prevalent animals that inhabit the lands of Britannia.~~");
		UcSay;
		UcMessage("  ...Deer are quite prevalent in the forested areas of Britannia. They are shy creatures, generally shunning the presence of man, whom they know hunt them. Atop their head sits a pair of antlers...*");
		UcSay;
		UcMessage("  ...The fox is a small animal, akin to a dog or a wolf. It is an omnivore, and more than willing to make do with a farmer's chicken when it tires of other foods...");
		UcSay;
	labelFunc0282_0608:
		if(!(var0000 == 0x0062)) goto labelFunc0282_061E;
		UcMessage("~~ ~~BIRDS OF BRITANNIA~~ ~~by Brother Wayne*");
		UcSay;
		UcMessage("     Bound here is the comprehensive guide to the avian species, beautifully and colorfully illustrated by many different artists.");
		UcSay;
		UcMessage("     ...Surprising to many is that the Silver-Winged Pharcelot is not the most prevalent bird in Britannia, though it is arguably the most visible. Far more popular is the Black-Tipped Grackle, but its predilection for dark, cool areas makes it considerably less visible.");
		UcSay;
	labelFunc0282_061E:
		return;
}
// externs
extern var Func0983 0x983 (var var0000);
extern var Func0942 0x942 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0284 0x284 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0284_00A3;
	UI_close_gumps_98();
	UI_play_sound_effect2_A1(0x001C, item);
	if(!(!(Func0983(0xFE9C) || (!Func0983(Iolo))))) goto labelFunc0284_0027;
	exit2();
	labelFunc0284_0027:
		if(!Func0942(Iolo)) goto labelFunc0284_00A3;
		Func097F(0xFE9C, "@Call it.@", 0x0000);
		var0000 = UI_die_roll_17(0x0001, 0x0002);
		if(!(var0000 == 0x0001)) goto labelFunc0284_006E;
		Func097F(Iolo, "@Tails.@", 0x0010);
		Func097F(0xFE9C, "@'Tis heads.@", 0x0020);
		goto labelFunc0284_0086;
	labelFunc0284_006E:
		Func097F(Iolo, "@Heads.@", 0x0010);
		Func097F(0xFE9C, "@'Tis tails.@", 0x0020);
	labelFunc0284_0086:
		if(!(UI_die_roll_17(0x0001, 0x0003) == 0x0001)) goto labelFunc0284_00A3;
		Func097F(Iolo, "@Again!@", 0x0030);
	labelFunc0284_00A3:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func0285 0x285 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0285_0018;
	var0000 = ("@I believe I heard somewhere that the innkeeper at " + "Sleeping Bull will exchange those.@");
	Func094A(var0000);
	labelFunc0285_0018:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func0286 0x286 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0286_0018;
	var0000 = ("@I do not know where those may be exchanged on the " + "Serpent Isle.@");
	Func094A(var0000);
	labelFunc0286_0018:
		return;
}
// externs
extern Func0949 0x949 (var var0000);
extern Func0971 0x971 (var var0000);

Func0288 0x288 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0288_00EC;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 == 0x0000) || (var0000 == 0x0001))) goto labelFunc0288_004A;
	var0001 = UI_click_on_item_3F();
	if(!UI_is_npc_3D(var0001)) goto labelFunc0288_0040;
	UI_set_item_flag_A4(var0001, 0x0001);
	goto labelFunc0288_0046;
	labelFunc0288_0040:
		Func0949("@Do not waste that!@");
	labelFunc0288_0046:
		Func0971(item);
	labelFunc0288_004A:
		if(!(var0000 == 0x0002)) goto labelFunc0288_009B;
		var0001 = UI_click_on_item_3F();
		if(!UI_is_npc_3D(var0001)) goto labelFunc0288_0072;
		UI_set_item_flag_A4(var0001, 0x0000);
		goto labelFunc0288_008F;
	labelFunc0288_0072:
		if(!UI_get_item_flag_A3(var0001, 0x0012)) goto labelFunc0288_0089;
		UI_set_item_flag_A4(var0001, 0x0000);
	labelFunc0288_0089:
		Func0949("@Waste that not!@");
	labelFunc0288_008F:
		UI_play_sound_effect2_A1(0x0082, item);
		Func0971(item);
	labelFunc0288_009B:
		if(!(var0000 == 0x0003)) goto labelFunc0288_00EC;
		var0001 = UI_click_on_item_3F();
		if(!UI_is_npc_3D(var0001)) goto labelFunc0288_00C3;
		UI_set_item_flag_A4(var0001, 0x0003);
		goto labelFunc0288_00E0;
	labelFunc0288_00C3:
		if(!UI_get_item_flag_A3(var0001, 0x0012)) goto labelFunc0288_00DA;
		UI_set_item_flag_A4(var0001, 0x0003);
	labelFunc0288_00DA:
		Func0949("@Is that a good idea!@");
	labelFunc0288_00E0:
		UI_play_sound_effect2_A1(0x0082, item);
		Func0971(item);
	labelFunc0288_00EC:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099E 0x99E (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func02C0 0x2C0 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0887 0x887 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0289 0x289 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;

	var0000 = UI_get_item_frame_1A(item);
	if(!(event == 0x0001)) goto labelFunc0289_049E;
	if(!(var0000 == 0x0006)) goto labelFunc0289_00A4;
	var0001 = UI_click_on_item_3F();
	if(!UI_is_npc_3D(var0001)) goto labelFunc0289_00A4;
	Func097F(var0001, "@Ow!@", 0x0000);
	var0002 = UI_execute_usecode_array_01(var0001, [0x23, 0x78, 0x0001, 0x0000]);
	var0003 = UI_find_nearby_41(0xFE9C, 0x032A, 0x000A, 0x0000);
	var0004 = 0x0000;
	if(!var0003) goto labelFunc0289_00A4;
	enum();
	labelFunc0289_006E:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0289_0090);
		if(!(UI_get_item_frame_1A(var0007) == 0x0000)) goto labelFunc0289_008D;
		var0004 = var0007;
	labelFunc0289_008D:
		goto labelFunc0289_006E;
	labelFunc0289_0090:
		if(!(var0004 != 0x0000)) goto labelFunc0289_00A4;
		UI_set_item_frame_1B(var0004, 0x0002);
	labelFunc0289_00A4:
		if(!(var0000 == 0x0004)) goto labelFunc0289_0186;
		UI_close_gumps_98();
		if(!Func099E(item)) goto labelFunc0289_00C3;
		var0008 = Func099E(item);
		goto labelFunc0289_00C7;
	labelFunc0289_00C3:
		var0008 = item;
	labelFunc0289_00C7:
		UI_obj_sprite_effect_91(var0008, 0x0018, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x001D);
		var0009 = UI_find_nearby_41(0xFE9C, 0x036A, 0x001E, 0x0000);
		if(!(var0009 == [])) goto labelFunc0289_0179;
		UI_set_item_flag_A4(0xFEF3, 0x001D);
		UI_set_alignment_4A(0xFEF3, 0x0001);
		var000A = UI_approach_avatar_BF(0xFEF3, 0x0078, 0x0028);
		if(!var000A) goto labelFunc0289_0155;
		UI_si_path_run_usecode_C1(0xFEF3, [0x0000, 0x0000, 0x0000], 0x0009, UI_get_npc_object_23(0xFEF3), 0x036A, true);
		goto labelFunc0289_0176;
	labelFunc0289_0155:
		gflags[0007] = true;
		var0002 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0289], 0x000F);
	labelFunc0289_0176:
		goto labelFunc0289_0186;
	labelFunc0289_0179:
		UI_set_schedule_type_25(var0009[0x0001], 0x0003);
	labelFunc0289_0186:
		if(!(var0000 == 0x0008)) goto labelFunc0289_024E;
		UI_close_gumps_98();
		var000B = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var000B = UI_get_object_position_20(item);
		UI_obj_sprite_effect_91(item, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x060F]);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x060F], 0x0002);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x060F], 0x0004);
		Func097F(0xFE9C, "Yeeooww!", 0x0003);
		UI_clear_item_flag_A5(item, 0x0012);
		UI_remove_item_84(item);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0289], 0x000A);
	labelFunc0289_024E:
		if(!(var0000 == 0x0009)) goto labelFunc0289_03A8;
		var000C = UI_get_object_position_20(item);
		if(!(!(((var000C[0x0001] > 0x0610) && (var000C[0x0001] < 0x066F)) && ((var000C[0x0002] > 0x0070) && (var000C[0x0002] < 0x00BF))))) goto labelFunc0289_03A8;
		UI_play_sound_effect_16(0x003F);
		var000D = UI_find_nearby_41(item, 0x02F3, 0x000A, 0x0000);
		if(!var000D) goto labelFunc0289_0353;
		enum();
	labelFunc0289_02AE:
		for (var0007 in var000D with var000E to var000F atend labelFunc0289_0353);
		var000B = UI_get_object_position_20(var0007);
		var0010 = UI_get_cont_items_33(var0007, 0xFE99, 0xFE99, 0xFE99);
		UI_sprite_effect_68(0x000D, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0007;
		calle();
		enum();
	labelFunc0289_02FC:
		for (var0013 in var0010 with var0011 to var0012 atend labelFunc0289_0350);
		if(!((UI_get_item_shape_18(var0013) == 0x0190) && (UI_get_item_frame_1A(var0013) == 0x0008))) goto labelFunc0289_0339;
		var0014 = UI_set_npc_prop_29(0xFF6B, 0x0003, 0x0001);
		gflags[025F] = true;
		gflags[0262] = true;
	labelFunc0289_0339:
		var0002 = UI_set_last_created_2E(var0013);
		var0002 = UI_update_last_created_2F(var000B);
		goto labelFunc0289_02FC;
	labelFunc0289_0350:
		goto labelFunc0289_02AE;
	labelFunc0289_0353:
		var0015 = UI_find_nearby_41(item, 0x00E8, 0x000A, 0x0000);
		if(!var0015) goto labelFunc0289_03A8;
		enum();
	labelFunc0289_036B:
		for (var0007 in var0015 with var0016 to var0017 atend labelFunc0289_03A8);
		var000B = UI_get_object_position_20(var0007);
		var0007;
		calle();
		UI_sprite_effect_68(0x000D, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc0289_036B;
	labelFunc0289_03A8:
		if(!(var0000 == 0x000C)) goto labelFunc0289_049E;
		var000C = UI_get_object_position_20(item);
		if(!((var000C[0x0001] > 0x0234) && ((var000C[0x0001] < 0x023D) && ((var000C[0x0002] > 0x0BC7) && (var000C[0x0002] < 0x0BCD))))) goto labelFunc0289_049E;
		gflags[02FD] = true;
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
		UI_set_weather_53(0x0002);
		var000B = UI_get_object_position_20(item);
		UI_remove_item_84(item);
		UI_sprite_effect_68(0x001A, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0018 = Func09A0(0x0000, 0x0001);
		UI_play_music_39(0x0041, var0018);
		var0002 = UI_delayed_execute_usecode_array_02(var0018, [0x23, 0x55, 0x0618], 0x001E);
		gflags[0313] = true;
	labelFunc0289_049E:
		if(!(var0000 == 0x000D)) goto labelFunc0289_056D;
		UI_close_gumps_98();
		var0019 = UI_click_on_item_3F();
		var001A = UI_get_item_shape_18(var0019);
		if(!(var0019 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0289_04CC;
		exit2();
	labelFunc0289_04CC:
		if(!(var0019[0x0001] != 0x0000)) goto labelFunc0289_055D;
		if(!(UI_is_npc_3D(var0019[0x0001]) && (UI_get_npc_number_47(var0019[0x0001]) != 0xFE9C))) goto labelFunc0289_050E;
		var001B = UI_get_npc_number_47(var0019);
		Func097F(var001B, "@Don't tie me up!@", 0x0000);
		goto labelFunc0289_055A;
	labelFunc0289_050E:
		if(!(var001A == 0x03BE)) goto labelFunc0289_054A;
		if(!Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x000D)) goto labelFunc0289_0536;
		Func0887(var0019);
		goto labelFunc0289_0547;
	labelFunc0289_0536:
		var001C = Func0992(0x0001, "@Don't leave the rope!@", "@I shouldn't leave the rope!@", false);
		exit2();
	labelFunc0289_0547:
		goto labelFunc0289_055A;
	labelFunc0289_054A:
		var001C = Func0992(0x0001, "@Try it on something else!@", "@Perhaps something else...@", false);
	labelFunc0289_055A:
		goto labelFunc0289_056D;
	labelFunc0289_055D:
		var001C = Func0992(0x0001, "@That won't work!@", "@That won't work!@", false);
	labelFunc0289_056D:
		if(!(event == 0x0002)) goto labelFunc0289_05CD;
		if(!(gflags[0007] == true)) goto labelFunc0289_05BD;
		gflags[0007] = false;
		var001C = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!(var001C != 0xFE9C)) goto labelFunc0289_05AC;
		UI_show_npc_face0_05(var001C, 0x0000);
		UcMessage("\"The dog doth not come! Perhaps thou shouldst try the whistle in a more open place, where the sound will travel.\"");
		UcSay;
		goto labelFunc0289_05BC;
	labelFunc0289_05AC:
		var001C = Func0992(0xFE9C, 0x0000, "@I should try this elsewhere...@", true);
	labelFunc0289_05BC:
		abrt();
	labelFunc0289_05BD:
		var001C = Func0992(Iolo, "@The spellbook! It disintegrated!@", 0x0000, false);
	labelFunc0289_05CD:
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern var Func0983 0x983 (var var0000);

Func028A 0x28A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc028A_00BC;
	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = ((var0000[0x0001] - 0x03A5) / 0x000A);
	var0002 = ((var0000[0x0002] - 0x046E) / 0x000A);
	if(!(var0001 < 0x0000)) goto labelFunc028A_0052;
	var0003 = ((" " + Func097E(var0001)) + " West");
	goto labelFunc028A_0063;
	labelFunc028A_0052:
		var0003 = ((" " + Func097E(var0001)) + " East");
	labelFunc028A_0063:
		if(!(var0002 < 0x0000)) goto labelFunc028A_0081;
		var0004 = ((" " + Func097E(var0002)) + " North");
		goto labelFunc028A_0092;
	labelFunc028A_0081:
		var0004 = ((" " + Func097E(var0002)) + " South");
	labelFunc028A_0092:
		if(!(!UI_is_pc_inside_77())) goto labelFunc028A_00A9;
		UI_item_say_4D(item, (var0004 + var0003));
		goto labelFunc028A_00BC;
	labelFunc028A_00A9:
		if(!Func0983(Iolo)) goto labelFunc028A_00BC;
		UI_item_say_4D(Iolo, "@'Twill not function under a roof!@");
	labelFunc028A_00BC:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func028B 0x28B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x000A)) goto labelFunc028B_0082;
	var0000 = UI_find_nearby_41(0xFE9C, 0x0369, 0x0001, 0x0000);
	var0001 = 0x0000;
	if(!(UI_get_array_size_73(var0000) > 0x0000)) goto labelFunc028B_0053;
	var0002 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0006, 0x6C, 0x6B, 0x0B, Dupre, 0x000C]);
	var0001 = 0x0003;
	labelFunc028B_0053:
		UI_halt_scheduled_71(item);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x46, 0x0000, 0x4E, 0x01, 0x58, 0x005C, 0x0B, 0xFFFC, 0x000C, 0x55, 0x028B], var0001);
		exit2();
	labelFunc028B_0082:
		if(!(event == 0x0002)) goto labelFunc028B_0112;
		var0003 = UI_get_cont_items_33(0xFE9C, 0x028D, 0xFE99, 0xFE99);
		if(!var0003) goto labelFunc028B_00AA;
		UI_remove_item_84(var0003);
	labelFunc028B_00AA:
		var0004 = UI_create_new_object_2C(0x028E);
		if(!var0004) goto labelFunc028B_0111;
		UI_set_item_flag_A4(var0004, 0x0012);
		UI_set_item_flag_A4(var0004, 0x000B);
		UI_set_item_frame_1B(var0004, UI_die_roll_17(0x0000, 0x0009));
		var0005 = UI_get_object_position_20(item);
		var0005[0x0001] = (var0005[0x0001] + 0x0001);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		var0002 = UI_update_last_created_2F(var0005);
	labelFunc028B_0111:
		exit2();
	labelFunc028B_0112:
		if(!(event == 0x0001)) goto labelFunc028B_012A;
		var0006 = ("@I suspect spinning the wool will be more fruitful " + "than spinning an empty wheel.@");
		Func094A(var0006);
	labelFunc028B_012A:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func028C 0x28C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = UI_is_pc_female_6F();
	var0001 = Func0953();
	var0002 = UI_get_party_list_2B();
	var0003 = UI_find_nearby_41(0xFFB8, 0x0381, 0x0014, 0x0000);
	if(!(event == 0x000E)) goto labelFunc028C_0084;
	var0004 = UI_get_object_position_20(var0003);
	if(!(item == UI_get_npc_object_23(0xFFB8))) goto labelFunc028C_0058;
	var0004[0x0002] = (var0004[0x0002] + 0x0001);
	goto labelFunc028C_0068;
	labelFunc028C_0058:
		var0004[0x0001] = (var0004[0x0001] + 0x0001);
	labelFunc028C_0068:
		UI_move_object_4B(item, var0004);
		var0005 = UI_execute_usecode_array_01(0xFFB8, [0x23, 0x55, 0x028C]);
	labelFunc028C_0084:
		if(!(event == 0x0002)) goto labelFunc028C_0371;
		if(!(UI_get_npc_id_BC(0xFFB8) == 0x0003)) goto labelFunc028C_0109;
		UI_set_npc_id_BD(0xFFB8, 0x0004);
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc028C_00CC;
		UI_set_item_flag_A4(var0005, 0x0012);
		var0005 = UI_update_last_created_2F(UI_get_object_position_20(0xFE9C));
	labelFunc028C_00CC:
		var0005 = UI_execute_usecode_array_01(0xFFB8, [0x23, 0x27, 0x0004, 0x63, 0x01, 0x58, 0x000A, 0x6A, 0x67, 0x6A, 0x01, 0x58, 0x000C, 0x52, "@'Tis done!@", 0x67, 0x62, 0x63, 0x61, 0x55, 0x028C]);
		abrt();
	labelFunc028C_0109:
		if(!(UI_get_npc_id_BC(0xFFB8) == 0x0002)) goto labelFunc028C_0165;
		UI_set_npc_id_BD(0xFFB8, 0x0003);
		var0005 = UI_execute_usecode_array_01(0xFFB8, [0x23, 0x52, "@Thou art doing well...@", 0x66, 0x65, 0x67, 0x01, 0x58, 0x003E, 0x6A, 0x27, 0x000C, 0x6F, 0x52, "@Whoops!@", 0x66, 0x67, 0x6A, 0x01, 0x58, 0x001B, 0x6F, 0x55, 0x028C]);
		abrt();
	labelFunc028C_0165:
		if(!(UI_get_npc_id_BC(0xFFB8) == 0x0001)) goto labelFunc028C_01C2;
		UI_set_schedule_type_25(0xFFB8, 0x000F);
		UI_set_npc_id_BD(0xFFB8, 0x0002);
		var0005 = UI_execute_usecode_array_01(0xFFB8, [0x23, 0x55, 0x07D2, 0x52, "@Hold thy breath.@", 0x6A, 0x01, 0x58, 0x000A, 0x27, 0x0004, 0x67, 0x01, 0x58, 0x000C, 0x27, 0x0006, 0x55, 0x028C]);
		abrt();
	labelFunc028C_01C2:
		if(!(UI_get_npc_id_BC(0xFFB8) == 0x0000)) goto labelFunc028C_0240;
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_set_npc_id_BD(0xFFB8, 0x0001);
		Func097F(0xFFB8, "@Now we begin...@", 0x0000);
		var0004 = UI_get_object_position_20(var0003);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(0xFFB8, var0004, 0x0002, item, 0x028C, false);
		UI_set_path_failure_A7(0x028C, item, 0x000E);
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0002, 0x6C, 0x6B]);
		abrt();
	labelFunc028C_0240:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFB8, 0x0000);
		UcMessage("\"Use a cloth to soak up the blood...\"");
		UcSay;
		enum();
	labelFunc028C_0253:
		for (var0008 in var0002 with var0006 to var0007 atend labelFunc028C_026B);
		UI_set_schedule_type_25(var0008, 0x001F);
		goto labelFunc028C_0253;
	labelFunc028C_026B:
		UI_run_schedule_B7(0xFFB8);
		UI_set_item_flag_A4(0xFE9C, 0x0021);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		gflags[0098] = true;
		gflags[003E] = true;
		var0005 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0448], 0x03E8);
		var0009 = Func0992(Iolo, "@Thou dost look magnificent, Avatar!@", 0x0000, false);
		if(!(var0009 != 0xFE9C)) goto labelFunc028C_0371;
		if(!(UI_get_array_size_73(var0002) > 0x0002)) goto labelFunc028C_0371;
		var000A = var0009;
	labelFunc028C_02D9:
		if(!(var000A == var0009)) goto labelFunc028C_02F6;
		var000A = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc028C_02D9;
	labelFunc028C_02F6:
		var000A = Func0992(var000A, (("@Quite becoming, " + var0001) + ".@"), 0x0000, false);
		if(!(UI_get_array_size_73(var0002) > 0x0003)) goto labelFunc028C_0371;
		var000B = var000A;
	labelFunc028C_0322:
		if(!((var000B == var000A) || (var000B == var0009))) goto labelFunc028C_0347;
		var000B = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc028C_0322;
	labelFunc028C_0347:
		if(!(!var0000)) goto labelFunc028C_0361;
		var000B = Func0992(var000B, "@Thou dost look quite the fop, milord!@", 0x0000, false);
		goto labelFunc028C_0371;
	labelFunc028C_0361:
		var000B = Func0992(var000B, "That is quite a beauty mark, milady. Hmpf!", 0x0000, false);
	labelFunc028C_0371:
		return;
}
// externs
extern Func062D 0x62D (var var0000);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func028D 0x28D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc028D_0094;
	var0000 = UI_get_container_83(item);
	if(!(var0000 == UI_get_npc_object_23(0xFE9C))) goto labelFunc028D_002A;
	event = 0x000A;
	item;
	calle();
	exit2();
	goto labelFunc028D_006E;
	labelFunc028D_002A:
		if(!var0000) goto labelFunc028D_006E;
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc028D_0064;
		var0001 = UI_give_last_created_42(0xFE9C);
		if(!(!var0001)) goto labelFunc028D_0061;
		var0001 = UI_give_last_created_42(var0000);
		UI_flash_mouse_7F(0x0004);
		abrt();
	labelFunc028D_0061:
		goto labelFunc028D_0065;
	labelFunc028D_0064:
		exit2();
	labelFunc028D_0065:
		event = 0x000A;
		item;
		calle();
		exit2();
	labelFunc028D_006E:
		var0002 = Dupre;
		var0003 = Dupre;
		var0004 = Dupre;
		Func090D(item, var0002, var0003, var0004, 0x062D, item, 0x000A);
	labelFunc028D_0094:
		return;
}
// externs
extern Func062E 0x62E (var var0000);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func028E 0x28E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc028E_0094;
	var0000 = UI_get_container_83(item);
	if(!(var0000 == UI_get_npc_object_23(0xFE9C))) goto labelFunc028E_002A;
	event = 0x000A;
	item;
	calle();
	exit2();
	goto labelFunc028E_006E;
	labelFunc028E_002A:
		if(!var0000) goto labelFunc028E_006E;
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc028E_006D;
		var0001 = UI_give_last_created_42(0xFE9C);
		if(!(!var0001)) goto labelFunc028E_0061;
		var0001 = UI_give_last_created_42(var0000);
		UI_flash_mouse_7F(0x0004);
		abrt();
	labelFunc028E_0061:
		event = 0x000A;
		item;
		calle();
		exit2();
		goto labelFunc028E_006E;
	labelFunc028E_006D:
		exit2();
	labelFunc028E_006E:
		var0002 = Dupre;
		var0003 = Dupre;
		var0004 = Dupre;
		Func090D(item, var0002, var0003, var0004, 0x062E, item, 0x000A);
	labelFunc028E_0094:
		return;
}
Func0291 0x291 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0291_003F;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 % 0x0002) == 0x0000)) goto labelFunc0291_0027;
	var0001 = 0x0001;
	goto labelFunc0291_002D;
	labelFunc0291_0027:
		var0001 = Dupre;
	labelFunc0291_002D:
		var0000 = (var0000 + var0001);
		UI_set_item_frame_1B(item, var0000);
	labelFunc0291_003F:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0955 0x955 ();
extern Func0864 0x864 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0294 0x294 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0994();
	var0004 = false;
	var0005 = false;
	if(!(event == 0x0002)) goto labelFunc0294_02B5;
	UI_run_schedule_B7(item);
	UI_clear_item_say_4E(item);
	UI_show_npc_face0_05(0xFEF6, 0x0000);
	if(!(gflags[0004] == false)) goto labelFunc0294_0046;
	abrt();
	labelFunc0294_0046:
		if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0294_00B0;
		UcMessage("\"I told thee, ");
		UcMessage(var0002);
		UcMessage(", there is nothing left for me... Without the Comb of Beauty there is no hope in the world!\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0000)) goto labelFunc0294_009A;
		UcMessage("\"Thou hast the Comb of Beauty! Wilt thou give me the Comb? I will grant thee Fawn's greatest treasure, as I promised the heavens.\"");
		UcSay;
		if(!Func0955()) goto labelFunc0294_0084;
		UcMessage("\"In this one thing, at least, I can fulfill mine obligation.\"");
		UcSay;
		Func0864();
		goto labelFunc0294_0097;
	labelFunc0294_0084:
		UcMessage("\"Such is the story of my life... Then I shall remain here, within this fetid swamp -- where I belong!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Leave me!@", 0x0000);
		abrt();
	labelFunc0294_0097:
		goto labelFunc0294_00AD;
	labelFunc0294_009A:
		UcMessage("\"Leave me to die in peace! I have nothing left... nothing...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Go away!@", 0x0000);
		abrt();
	labelFunc0294_00AD:
		goto labelFunc0294_00C8;
	labelFunc0294_00B0:
		UcMessage("\"Look what thy mad companion, Iolo, hath done to me! He told me to tell thee that only thou couldst prove whether Beauty was skin deep.\"");
		UcSay;
		UcMessage("\"Thou must have some way to remove this foul enchantment! But... What have I to live for? My very heart hath been torn asunder! My people are dead! There is nothing left for me!\"");
		UcSay;
		UI_add_answer_0C(["prove", "heart", "people"]);
	labelFunc0294_00C8:
		UI_add_answer_0C("bye");
	labelFunc0294_00CF:
		UcAsk;
		cmps("bye");
		Func097F(0xFE9C, "@Keep faith!@", 0x0000);
		Func097F(item, "@I am cursed!@", 0x0002);
		goto labelFunc0294_02B4;
	labelFunc0294_00F3:
		cmps("prove");
		UI_remove_answer_0D("prove");
		UcMessage("\"How would I know the mind of a madman?!\"");
		UcSay;
		UcMessage("\"Perhaps he thought that thou didst have some magic with which to counter his cruelty.\"");
		UcSay;
		UI_add_answer_0C("magic");
	labelFunc0294_0111:
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"I am no mage, to tell thee such things!\"");
		UcSay;
		UcMessage("\"No one can restore the life to my people...\"");
		UcSay;
		UcMessage("\"Should I selfishly ask that mine own Beauty be restored when the life's blood of Fawn -- the city of Beauty -- lies dead in the streets?!\"");
		UcSay;
		UcMessage("\"If only the Comb of Beauty had not been stolen! Everything changed in Fawn after it was taken... Perhaps it was some token of the heavens. And this is my punishment for losing it!\"");
		UcSay;
		if(!(!var0004)) goto labelFunc0294_013E;
		UI_add_answer_0C("Comb of Beauty");
	labelFunc0294_013E:
		cmps("Comb of Beauty");
		UI_remove_answer_0D("Comb of Beauty");
		UcMessage("\"I thought it nothing more than a trinket... Passed down from the Lady Fawn herself, granted, but a bauble nonetheless.\"");
		UcSay;
		UcMessage("\"Only now do I see that it was the tradition, the duty, that I tossed aside as worthless. And now it is lost forever!\"");
		UcSay;
		UcMessage("\"I would give Fawn's greatest treasure if only I could find the Comb of Beauty!\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0000)) goto labelFunc0294_018C;
		var0006 = Func0992(0x0001, "@Avatar, what about the comb thou didst take from Columna?@", "@I wonder... What about Columna's comb?!@", false);
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C("Columna");
	labelFunc0294_018C:
		var0004 = true;
		UI_add_answer_0C("treasure");
	labelFunc0294_0197:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"I recall a Lady Columna visiting Fawn a number of years ago! Now that I think of it... It wasn't long after that that I discovered the Comb missing!\"");
		UcSay;
		UcMessage("\"Yes, yes! It all fits now! She admired it greatly, and seemed a bit offended when I did not offer it to her...\"");
		UcSay;
		UcMessage("\"Of course she took it! Wilt thou give me the Comb? I will grant thee Fawn's greatest treasure, as I promised the heavens.\"");
		UcSay;
		var0005 = true;
		if(!Func0955()) goto labelFunc0294_01C2;
		Func0864();
		goto labelFunc0294_01D5;
	labelFunc0294_01C2:
		UcMessage("\"Such is the story of my life... Then I shall remain here, within this fetid swamp -- where I belong!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Leave me!@", 0x0000);
		abrt();
	labelFunc0294_01D5:
		cmps("treasure");
		UI_remove_answer_0D("treasure");
		UcMessage("\"It is an ancient piece of armour that was found near the Serpent ruin around which the palace is built.\"");
		UcSay;
		UcMessage("\"I do not know its significance, but we have treasured it ever since... as a sign of Fawn's strength.\"");
		UcSay;
		if(!(!var0005)) goto labelFunc0294_0214;
		UcMessage("\"What a farce! Leave me, ");
		UcMessage(var0002);
		UcMessage("! Without the Comb of Beauty I will remain here, within this fetid swamp -- where I belong!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Leave me!@", 0x0000);
		UI_set_item_flag_A4(item, 0x001E);
		abrt();
	labelFunc0294_0214:
		cmps("heart");
		UI_remove_answer_0D("heart");
		UcMessage("\"Jorvin is dead! My love, mine heart's true desire!\"");
		UcSay;
		UcMessage("\"But... Perhaps it is for the best -- That he never see the depths to which mine ignorance hath plunged our city, or the mark of the guilt that weighs upon my features...\"");
		UcSay;
		UI_add_answer_0C("ignorance");
	labelFunc0294_0232:
		cmps("ignorance");
		UI_remove_answer_0D("ignorance");
		UcMessage("\"Criminal ignorance! I listened to those who would mislead me! I let their compliments turn mine head... And never felt Love for the city that was in my charge!\"");
		UcSay;
		UcMessage("\"Even as I let the Comb of Beauty slip from the city, I have let all of Fawn slip into lifeless darkness!\"");
		UcSay;
		if(!(!var0004)) goto labelFunc0294_0257;
		UI_add_answer_0C("Comb of Beauty");
	labelFunc0294_0257:
		cmps("people");
		UI_remove_answer_0D("people");
		UcMessage("\"The storms grew worse and worse! Food was scarce... And a strange sickness crept through the city like some silent predator.\"");
		UcSay;
		UcMessage("\"One by one they fell... And there was nothing I could do! My pleas to the heavens were in vain!\"");
		UcSay;
		UcMessage("\"The only other living soul is one I turned away -- One I deemed unworthy of Fawn's Beauty!\"");
		UcSay;
		UI_add_answer_0C(["sickness", "living soul"]);
	labelFunc0294_027F:
		cmps("sickness");
		UI_remove_answer_0D("sickness");
		UcMessage("\"There was no fever. It seemed as if they were sleeping...\"");
		UcSay;
		UcMessage("\"It came without warning... Until, at last, no one was left to care for them. Many never woke from where they fell. And I was powerless! Powerless!\"");
		UcSay;
	labelFunc0294_0296:
		cmps("living soul");
		UI_remove_answer_0D("living soul");
		UcMessage("\"Hahaha! What cruel joke the heavens have had at mine expense!\"");
		UcSay;
		UcMessage("\"I listened to the words of traitors and turned out good men, barring them from my protection!\"");
		UcSay;
		UcMessage("\"And now only the one called Ruggs lives... To taunt me with an empty city and my ruined Beauty!\"");
		UcSay;
	labelFunc0294_02B1:
		goto labelFunc0294_00CF;
	labelFunc0294_02B4:
		end_conv();
	labelFunc0294_02B5:
		return;
}
// externs
extern Func0949 0x949 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0296 0x296 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc0296_0192;
	UI_close_gumps_98();
	var0000 = UI_click_on_item_3F();
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x67, 0x61]);
	if(!(!UI_is_water_AC([var0000[0x0002], var0000[0x0003], var0000[0x0004]]))) goto labelFunc0296_004F;
	UI_flash_mouse_7F(0x0000);
	exit2();
	labelFunc0296_004F:
		var0002 = UI_get_object_position_20(0xFE9C);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		if(!(UI_die_roll_17(0x0001, 0x0014) > 0x0011)) goto labelFunc0296_0101;
		var0003 = UI_create_new_object_2C(0x0179);
		if(!var0003) goto labelFunc0296_00FE;
		UI_set_item_frame_1B(var0003, 0x000C);
		UI_set_item_flag_A4(var0003, 0x000B);
		var0001 = UI_update_last_created_2F(var0002);
		var0004 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0004 == 0x0001)) goto labelFunc0296_00DB;
		Func0949("@Indeed, a whopper!@");
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc0296_00DB;
		Func097F(Shamino, "@I have seen bigger.@", 0x0010);
	labelFunc0296_00DB:
		if(!(var0004 == 0x0002)) goto labelFunc0296_00EB;
		Func0949("@What a meal!@");
	labelFunc0296_00EB:
		if(!(var0004 == 0x0003)) goto labelFunc0296_00FE;
		Func0949(["@That doth not look right.@"]);
	labelFunc0296_00FE:
		goto labelFunc0296_0192;
	labelFunc0296_0101:
		var0004 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0004 == 0x0001)) goto labelFunc0296_0124;
		Func097F(0xFE9C, "@Not even a bite!@", 0x0000);
	labelFunc0296_0124:
		if(!(var0004 == 0x0002)) goto labelFunc0296_0150;
		Func097F(0xFE9C, "@It did escape!@", 0x0000);
		if(!UI_npc_nearby_3A(Iolo)) goto labelFunc0296_0150;
		Func097F(Iolo, "@I'm certain thou hadst one!@", 0x0010);
	labelFunc0296_0150:
		if(!(var0004 == 0x0003)) goto labelFunc0296_0166;
		Func097F(0xFE9C, "@I've lost my bait!@", 0x0000);
	labelFunc0296_0166:
		if(!(var0004 == 0x0004)) goto labelFunc0296_0192;
		Func097F(0xFE9C, "@I felt a nibble...@", 0x0000);
		if(!UI_npc_nearby_3A(Dupre)) goto labelFunc0296_0192;
		Func097F(Dupre, "@We should hunt instead, Avatar!@", 0x0010);
	labelFunc0296_0192:
		return;
}
Func0298 0x298 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0298_0041;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc0298_0041;
	UI_play_sound_effect_16(0x0019);
	UI_set_item_frame_1B(item, 0x0001);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0014, 0x55, 0x0298]);
	abrt();
	labelFunc0298_0041:
		if(!(event == 0x0002)) goto labelFunc0298_0058;
		UI_set_item_frame_1B(item, 0x0000);
		UI_play_sound_effect_16(0x00FF);
	labelFunc0298_0058:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0299 0x299 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc0299_0164;
	var0000 = 0x0000;
	var0001 = UI_get_npc_id_BC(item);
	if(!((var0001 == 0x0001) || (var0001 == 0x000B))) goto labelFunc0299_007C;
	var0000 = 0x0619;
	if(!(var0001 == 0x000B)) goto labelFunc0299_003C;
	var0002 = true;
	labelFunc0299_003C:
		if(!(!var0002)) goto labelFunc0299_0050;
		UI_item_say_4D(0xFE9C, "@Hail, old woman!@");
		goto labelFunc0299_005A;
	labelFunc0299_0050:
		UI_item_say_4D(0xFE9C, "@Hail, Drusilla!@");
	labelFunc0299_005A:
		item;
		calle();
		if(!(!var0002)) goto labelFunc0299_0072;
		Func097F(item, "@Old, is it?!@", 0x0002);
		goto labelFunc0299_007C;
	labelFunc0299_0072:
		Func097F(item, "@Hail yerself!@", 0x0002);
	labelFunc0299_007C:
		if(!((var0001 == 0x0002) || (var0001 == 0x000C))) goto labelFunc0299_00E2;
		var0000 = 0x061A;
		if(!(var0001 == 0x000C)) goto labelFunc0299_00A2;
		var0002 = true;
	labelFunc0299_00A2:
		if(!(!var0002)) goto labelFunc0299_00B6;
		UI_item_say_4D(0xFE9C, "@Greetings, strange one.@");
		goto labelFunc0299_00C0;
	labelFunc0299_00B6:
		UI_item_say_4D(0xFE9C, "@Greetings, Rieya.@");
	labelFunc0299_00C0:
		item;
		calle();
		if(!(!var0002)) goto labelFunc0299_00D8;
		Func097F(item, "@Me, strange?!@", 0x0002);
		goto labelFunc0299_00E2;
	labelFunc0299_00D8:
		Func097F(item, "@Back again?@", 0x0002);
	labelFunc0299_00E2:
		if(!((var0001 == 0x0003) || (var0001 == 0x000D))) goto labelFunc0299_0148;
		var0000 = 0x061B;
		if(!(var0001 == 0x000D)) goto labelFunc0299_0108;
		var0002 = true;
	labelFunc0299_0108:
		if(!(!var0002)) goto labelFunc0299_011C;
		UI_item_say_4D(0xFE9C, "@Hail, lady!@");
		goto labelFunc0299_0126;
	labelFunc0299_011C:
		UI_item_say_4D(0xFE9C, "@Hail, Solaria!@");
	labelFunc0299_0126:
		item;
		calle();
		if(!(!var0002)) goto labelFunc0299_013E;
		Func097F(item, "@Me, a lady?!@", 0x0002);
		goto labelFunc0299_0148;
	labelFunc0299_013E:
		Func097F(item, "@Hail to thee!@", 0x0002);
	labelFunc0299_0148:
		if(!var0000) goto labelFunc0299_0163;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, var0000], 0x000A);
	labelFunc0299_0163:
		abrt();
	labelFunc0299_0164:
		if(!(event == 0x001D)) goto labelFunc0299_019F;
		var0004 = UI_get_object_position_20(item);
		UI_remove_item_84(item);
		UI_play_sound_effect_16(0x0060);
		UI_sprite_effect_68(0x001A, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0299_019F:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func090F 0x90F (var var0000, var var0001, var var0002, var var0003);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func02A3 0x2A3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;
	var var0025;
	var var0026;
	var var0027;
	var var0028;
	var var0029;
	var var002A;
	var var002B;
	var var002C;

	if(!(event == 0x0001)) goto labelFunc02A3_097B;
	UI_clear_item_say_4E(0xFE9C);
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc02A3_00BA;
	var0001 = UI_click_on_item_3F();
	UI_play_sound_effect2_A1(0x0038, item);
	if(!UI_is_npc_3D(var0001)) goto labelFunc02A3_0045;
	UI_item_say_4D(var0001, "@Yipe! Thou didst strike me!@");
	exit2();
	labelFunc02A3_0045:
		if(!(UI_get_item_shape_18(var0001) == 0x02A3)) goto labelFunc02A3_00BA;
		if(!(UI_get_item_frame_1A(var0001) == 0x000A)) goto labelFunc02A3_00BA;
		var0002 = UI_execute_usecode_array_01(var0001, [0x23, 0x52, "@Dost thou truly think@"]);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@that would work@"], 0x0010);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@this time, Avatar?@"], 0x0020);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@Think again!@"], 0x0030);
	labelFunc02A3_00BA:
		if(!(var0000 == 0x000A)) goto labelFunc02A3_01D7;
		var0003 = UI_die_roll_17(0x0001, 0x0007);
		if(!(var0003 == 0x0001)) goto labelFunc02A3_00ED;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Squawk!@"]);
	labelFunc02A3_00ED:
		if(!(var0003 == 0x0002)) goto labelFunc02A3_0109;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Polly want a cracker?@"]);
	labelFunc02A3_0109:
		if(!((var0003 == 0x0003) || (var0003 == 0x0004))) goto labelFunc02A3_0142;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@I know where@"]);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@the treasure is!@"], 0x0010);
	labelFunc02A3_0142:
		if(!(var0003 == 0x0005)) goto labelFunc02A3_015E;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Gimmee a cracker!@"]);
	labelFunc02A3_015E:
		if(!((var0003 == 0x0006) || (var0003 == 0x0007))) goto labelFunc02A3_01D7;
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Pretty bird!@"]);
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc02A3_01D7;
		var0002 = UI_delayed_execute_usecode_array_02(UI_get_npc_object_23(Shamino), [0x23, 0x52, "@Ugly Bird!@"], 0x0010);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Speak for thyself!@"], 0x0020);
		var0002 = UI_delayed_execute_usecode_array_02(UI_get_npc_object_23(Shamino), [0x23, 0x52, "@Hey!!@"], 0x0030);
	labelFunc02A3_01D7:
		if(!((var0000 == 0x0011) || ((var0000 == 0x0012) || (var0000 == 0x0013)))) goto labelFunc02A3_023C;
		if(!(!UI_in_usecode_8F(item))) goto labelFunc02A3_023C;
		var0002 = UI_execute_usecode_array_01(item, [0x58, 0x0075, 0x46, 0x0011, 0x58, 0x0076, 0x46, 0x0013, 0x0B, 0xFFF8, 0x000C, 0x46, 0x0012]);
		if(!UI_npc_nearby_3A(0xFFB3)) goto labelFunc02A3_023C;
		Func097F(0xFFB3, "@That is truly strange!@", 0x0005);
	labelFunc02A3_023C:
		if(!(var0000 == 0x000B)) goto labelFunc02A3_041F;
		var0004 = UI_get_array_size_73(UI_get_party_list_2B());
		if(!(var0004 > 0x0001)) goto labelFunc02A3_0264;
		var0005 = "we";
		goto labelFunc02A3_026A;
	labelFunc02A3_0264:
		var0005 = "I";
	labelFunc02A3_026A:
		var0006 = UI_count_objects_31(0xFE9B, 0x0284, 0xFE99, 0xFE99);
		var0007 = UI_count_objects_31(0xFE9B, 0x03B7, 0xFE99, 0xFE99);
		var0008 = UI_count_objects_31(0xFE9B, 0x03B4, 0xFE99, 0xFE99);
		var0009 = UI_count_objects_31(0xFE9B, 0x03B8, 0xFE99, 0xFE99);
		var000A = UI_count_objects_31(0xFE9B, 0x02F8, 0xFE99, 0xFE99);
		var000B = UI_count_objects_31(0xFE9B, 0x0285, 0xFE99, 0xFE99);
		var000C = UI_count_objects_31(0xFE9B, 0x03A9, 0xFE99, 0xFE99);
		var000D = UI_count_objects_31(0xFE9B, 0x0286, 0xFE99, 0xFE99);
		var000E = "gold coins";
		if(!(var0006 == 0x0001)) goto labelFunc02A3_0318;
		var000E = "gold coin";
	labelFunc02A3_0318:
		var000F = "gems";
		if(!(var000A == 0x0001)) goto labelFunc02A3_032E;
		var000F = "gem";
	labelFunc02A3_032E:
		var0010 = "pieces of jewelry";
		if(!(var000C == 0x0001)) goto labelFunc02A3_0344;
		var0010 = "piece of jewelry";
	labelFunc02A3_0344:
		var0011 = "guilders";
		if(!(var0009 == 0x0001)) goto labelFunc02A3_035A;
		var0011 = "guilder";
	labelFunc02A3_035A:
		var0012 = "bars of gold";
		if(!(var000D == 0x0001)) goto labelFunc02A3_0370;
		var0012 = "bar of gold";
	labelFunc02A3_0370:
		var0013 = "gold nuggets";
		if(!(var000B == 0x0001)) goto labelFunc02A3_0386;
		var0013 = "gold nugget";
	labelFunc02A3_0386:
		if(!(var0006 || (var0007 || (var0008 || (var0009 || (var000A || (var000B || (var000C || var000D)))))))) goto labelFunc02A3_0417;
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"Let's see... ");
		UcMessage(var0005);
		UcMessage(" have -- ");
		UcMessage(var0007);
		UcMessage(" monetari, ");
		UcMessage(var0006);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(", ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0011);
		UcMessage(", ");
		UcMessage(var0008);
		UcMessage(" filari, ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0013);
		UcMessage(", ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", ");
		UcMessage(var000C);
		UcMessage(" ");
		UcMessage(var0010);
		UcMessage(", and ");
		UcMessage(var000D);
		UcMessage(" ");
		UcMessage(var0012);
		UcMessage("!\"");
		UcSay;
		UI_remove_npc_face0_07();
		goto labelFunc02A3_041F;
	labelFunc02A3_0417:
		UI_item_say_4D(item, "No money in party!");
	labelFunc02A3_041F:
		if(!(var0000 == 0x0010)) goto labelFunc02A3_0563;
		var0014 = UI_get_item_flag_A3(Shamino, 0x0006);
		var0015 = UI_get_item_flag_A3(Iolo, 0x0006);
		var0016 = UI_get_item_flag_A3(Dupre, 0x0006);
		var0017 = "him";
		var0018 = "he";
		var0019 = "himself";
		var001A = "handsome";
		if(!UI_is_pc_female_6F()) goto labelFunc02A3_0487;
		var0017 = "her";
		var0018 = "she";
		var0019 = "herself";
		var001A = "beautiful";
	labelFunc02A3_0487:
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"Hmm... not bad looking!\"");
		UcSay;
		UI_remove_npc_face0_07();
		if(!var0014) goto labelFunc02A3_04DD;
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"Thou art truly ");
		UcMessage(var001A);
		UcMessage(", Avatar!\"");
		UcSay;
		if(!var0016) goto labelFunc02A3_04D9;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"As thou art not!\"");
		UcSay;
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"Thou art dung, Dupre!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc02A3_04D9:
		UI_remove_npc_face0_07();
	labelFunc02A3_04DD:
		if(!var0015) goto labelFunc02A3_051F;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"Avatar, let us proceed. Cease this dallying!\"");
		UcSay;
		if(!var0014) goto labelFunc02A3_051B;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Oh, let ");
		UcMessage(var0017);
		UcMessage(" be, old man -- ");
		UcMessage(var0018);
		UcMessage(" is only admiring ");
		UcMessage(var0019);
		UcMessage("!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc02A3_051B:
		UI_remove_npc_face0_07();
	labelFunc02A3_051F:
		if(!var0016) goto labelFunc02A3_0563;
		UI_show_npc_face0_05(Dupre, 0x0000);
		UcMessage("\"Let us press on, Avatar!\"");
		UcSay;
		if(!var0014) goto labelFunc02A3_055F;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Thou dost not want ");
		UcMessage(var0017);
		UcMessage(" to show precisely how ugly thou art!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(Dupre, 0x0000);
		UcMessage("\"Thou impudent snot!\"");
		UcSay;
	labelFunc02A3_055F:
		UI_remove_npc_face0_07();
	labelFunc02A3_0563:
		if(!(var0000 == 0x0014)) goto labelFunc02A3_05DE;
		var001B = [0x0001, 0x0001, 0x0001, 0x0000, 0x0000, Dupre, Dupre, Dupre];
		var001C = [0x0001, 0x0000, Dupre, 0x0001, Dupre, 0x0001, 0x0009, Dupre];
		var001D = 0xFFFA;
		if(!(!Func090F(item, var001B, var001C, var001D))) goto labelFunc02A3_05CA;
		UI_flash_mouse_7F(0x0000);
		goto labelFunc02A3_05DE;
	labelFunc02A3_05CA:
		Func090D(item, var001B, var001C, var001D, 0x02A3, item, 0x000A);
	labelFunc02A3_05DE:
		if(!(var0000 == 0x0015)) goto labelFunc02A3_06B2;
		var001E = UI_game_hour_45();
		var001F = "am";
		if(!(var001E > 0x000C)) goto labelFunc02A3_060F;
		var001E = (var001E - 0x000C);
		var001F = "pm";
	labelFunc02A3_060F:
		if(!(var001E == 0x000C)) goto labelFunc02A3_061F;
		var001F = "pm";
	labelFunc02A3_061F:
		if(!(var001E == 0x0000)) goto labelFunc02A3_0635;
		var001E = 0x000C;
		var001F = "am";
	labelFunc02A3_0635:
		var0020 = UI_game_minute_46();
		if(!(var0020 <= 0x0009)) goto labelFunc02A3_0650;
		var0020 = ("0" + var0020);
	labelFunc02A3_0650:
		var0021 = ((((" " + var001E) + ":") + var0020) + var001F);
		if(!UI_in_gump_mode_9B()) goto labelFunc02A3_068E;
		var0021 = ((((" " + var001E) + ":") + var0020) + var001F);
		UI_item_say_99(item, var0021);
		goto labelFunc02A3_06B2;
	labelFunc02A3_068E:
		var0021 = ((((("@" + var001E) + ":") + var0020) + var001F) + "@");
		UI_item_say_4D(0xFE9C, var0021);
	labelFunc02A3_06B2:
		if(!(var0000 == 0x0016)) goto labelFunc02A3_07B3;
		UI_close_gumps_98();
		var0003 = UI_die_roll_17(0x0001, 0x000C);
		Func097F(0xFE9C, "The magic orb reads:", 0x0001);
		if(!((var0003 == 0x0001) || (var0003 == 0x0002))) goto labelFunc02A3_06F7;
		Func097F(0xFE9C, "@My sources say yes.@", 0x0010);
	labelFunc02A3_06F7:
		if(!((var0003 == 0x0003) || (var0003 == 0x0004))) goto labelFunc02A3_0715;
		Func097F(0xFE9C, "@I must reply no.@", 0x0010);
	labelFunc02A3_0715:
		if(!((var0003 == 0x0005) || (var0003 == 0x0006))) goto labelFunc02A3_0733;
		Func097F(0xFE9C, "@Answer hazy. Thou shouldst try again later.@", 0x0010);
	labelFunc02A3_0733:
		if(!((var0003 == 0x0007) || (var0003 == 0x0008))) goto labelFunc02A3_0751;
		Func097F(0xFE9C, "@I would not count on it.@", 0x0010);
	labelFunc02A3_0751:
		if(!((var0003 == 0x0009) || (var0003 == 0x000A))) goto labelFunc02A3_076F;
		Func097F(0xFE9C, "@Ask at another time.@", 0x0010);
	labelFunc02A3_076F:
		if(!(var0003 == 0x000B)) goto labelFunc02A3_0791;
		Func097F(0xFE9C, "@Trust thy friends not.@", 0x0010);
		Func097F(0xFE9C, "@Slay them instead, Avatar.@", 0x0020);
	labelFunc02A3_0791:
		if(!(var0003 == 0x000C)) goto labelFunc02A3_07B3;
		Func097F(0xFE9C, "@Batlin is thy friend.@", 0x0010);
		Func097F(0xFE9C, "@Do his bidding, Avatar.@", 0x0020);
	labelFunc02A3_07B3:
		if(!((var0000 == 0x0017) || ((var0000 == 0x0018) || (var0000 == 0x0019)))) goto labelFunc02A3_097B;
		UI_clear_item_say_4E(0xFE9C);
		var0022 = UI_get_item_quality_1C(item);
		var0023 = (var0022 + 0x0001);
		var0024 = UI_find_nearby_41(item, 0x02A3, 0x0014, 0x0000);
		enum();
	labelFunc02A3_07F8:
		for (var0027 in var0024 with var0025 to var0026 atend labelFunc02A3_082D);
		if(!((UI_get_item_frame_1A(var0027) > 0x0016) && (UI_get_item_frame_1A(var0027) < 0x001A))) goto labelFunc02A3_082A;
		var0002 = UI_set_item_quality_1D(var0027, var0023);
	labelFunc02A3_082A:
		goto labelFunc02A3_07F8;
	labelFunc02A3_082D:
		if(!(var0023 == 0x0001)) goto labelFunc02A3_0873;
		Func097F(0xFE9C, "Origin presents...", 0x0001);
		Func097F(0xFE9C, "The few...", 0x0010);
		Func097F(0xFE9C, "The proud...", 0x0020);
		Func097F(0xFE9C, "The well-armed...", 0x0030);
		Func097F(0xFE9C, "Strike Commander!", 0x0040);
	labelFunc02A3_0873:
		if(!(var0023 == 0x0002)) goto labelFunc02A3_08AD;
		Func097F(0xFE9C, "Even during war,", 0x0001);
		Func097F(0xFE9C, "some people still", 0x0010);
		Func097F(0xFE9C, "make a profit...", 0x0020);
		Func097F(0xFE9C, "Privateer", 0x0030);
	labelFunc02A3_08AD:
		if(!(var0023 == 0x0003)) goto labelFunc02A3_08E7;
		Func097F(0xFE9C, "Ultima 8?", 0x0001);
		Func097F(0xFE9C, "Pagan?", 0x0010);
		Func097F(0xFE9C, "This omen doth not", 0x0020);
		Func097F(0xFE9C, "bode well...", 0x0030);
	labelFunc02A3_08E7:
		if(!(var0023 == 0x0004)) goto labelFunc02A3_097B;
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "Curse that Stokes!"], 0x0001);
		var0024 = UI_find_nearby_41(0xFE9C, 0x02A3, 0x001E, 0x0000);
		enum();
	labelFunc02A3_091C:
		for (var0027 in var0024 with var0028 to var0029 atend labelFunc02A3_097B);
		if(!((UI_get_item_frame_1A(var0027) > 0x0016) && (UI_get_item_frame_1A(var0027) < 0x001A))) goto labelFunc02A3_0978;
		var002A = UI_get_object_position_20(var0027);
		UI_remove_item_84(var0027);
		UI_sprite_effect_68(0x0004, var002A[0x0001], var002A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
	labelFunc02A3_0978:
		goto labelFunc02A3_091C;
	labelFunc02A3_097B:
		if(!((var0000 == 0x001A) || (var0000 == 0x001B))) goto labelFunc02A3_09A5;
		Func097F(0xFE9C, "I cannot read this.", 0x0001);
		Func097F(0xFE9C, "This book is ruined.", 0x0012);
	labelFunc02A3_09A5:
		if(!(event == 0x000A)) goto labelFunc02A3_09D6;
		if(!(UI_get_item_frame_1A(item) == 0x0014)) goto labelFunc02A3_09D6;
		var002B = UI_execute_usecode_array_01(item, [0x58, 0x001C, 0x27, 0x0005, 0x0B, 0xFFFC, 0x0004]);
	labelFunc02A3_09D6:
		return;
}
Func02A6 0x2A6 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc02A6_003F;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 % 0x0002) == 0x0000)) goto labelFunc02A6_0027;
	var0001 = 0x0001;
	goto labelFunc02A6_002D;
	labelFunc02A6_0027:
		var0001 = Dupre;
	labelFunc02A6_002D:
		var0000 = (var0000 + var0001);
		UI_set_item_frame_1B(item, var0000);
	labelFunc02A6_003F:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func02AF 0x2AF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0001)) goto labelFunc02AF_0083;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x000A)) goto labelFunc02AF_0083;
	if(!(gflags[0205] && (gflags[0203] && gflags[0204]))) goto labelFunc02AF_0029;
	abrt();
	labelFunc02AF_0029:
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x07D6]);
		Func090D(item, [0x0001, 0x0002], [0x0001, 0x0002], Dupre, 0x02AF, item, 0x000A);
		var0002 = UI_get_distance_21(0xFE9C, item);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x02AF], (var0002 + 0x0002));
	labelFunc02AF_0083:
		if(!(event == 0x0002)) goto labelFunc02AF_0218;
		UI_clear_item_flag_A5(0xFE9C, 0x0000);
		UI_play_sound_effect_16(0x0082);
		UI_UNKNOWN_72();
		UI_set_camera_AE(0xFE9C);
		UI_halt_scheduled_71(0xFE9C);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		if(!(!gflags[01FB])) goto labelFunc02AF_00FA;
		var0001 = UI_find_nearby_41(item, 0x0320, 0x001E, 0x0000);
		var0003 = false;
		enum();
	labelFunc02AF_00D8:
		for (var0006 in var0001 with var0004 to var0005 atend labelFunc02AF_00FA);
		if(!(UI_get_item_quality_1C(var0006) == 0x003D)) goto labelFunc02AF_00F7;
		var0003 = var0006;
	labelFunc02AF_00F7:
		goto labelFunc02AF_00D8;
	labelFunc02AF_00FA:
		if(!(var0003 && (!gflags[01FB]))) goto labelFunc02AF_01C4;
		var0001 = ("" & ("@Where am I?@" & "@Where are my belongings?@"));
		Func094F(0xFE9C, var0001);
		var0007 = 0x0000;
		var0008 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc02AF_0135:
		if(!(var0007 < 0x0002)) goto labelFunc02AF_01C4;
		enum();
	labelFunc02AF_0140:
		for (var0006 in var0008 with var0009 to var000A atend labelFunc02AF_01A4);
		if(!(Func09A6(var0006) || (var0007 == 0x0001))) goto labelFunc02AF_01A1;
		var0001 = UI_get_item_shape_18(var0006);
		if(!(!((var0001 == 0x01E6) || (var0001 == 0x025F)))) goto labelFunc02AF_01A1;
		if(!(!UI_set_last_created_2E(var0006))) goto labelFunc02AF_018D;
		Func092F(0xFE9C, 0x0011);
	labelFunc02AF_018D:
		if(!(!UI_give_last_created_43(var0003))) goto labelFunc02AF_01A1;
		Func092F(0xFE9C, 0x0012);
	labelFunc02AF_01A1:
		goto labelFunc02AF_0140;
	labelFunc02AF_01A4:
		var0007 = (var0007 + 0x0001);
		var0008 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc02AF_0135;
	labelFunc02AF_01C4:
		if(!gflags[01FB]) goto labelFunc02AF_01D6;
		Func097F(0xFE9C, "@Back here again?@", 0x0005);
	labelFunc02AF_01D6:
		gflags[01FB] = true;
		UI_move_object_4B(0xFE9C, [0x0066, 0x066F, 0x0000]);
		UI_play_music_39(0x0035, Func09A0(0x0005, 0x0001));
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x59, 0x30, 0x55, 0x0636], 0x0004);
	labelFunc02AF_0218:
		return;
}
Func02B1 0x2B1 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02B1_0016;
	UI_play_music_39(0x002E, item);
	labelFunc02B1_0016:
		return;
}
Func02B2 0x2B2 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02B2_0016;
	UI_play_music_39(0x002D, item);
	labelFunc02B2_0016:
		return;
}
Func02B4 0x2B4 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02B4_0016;
	UI_play_music_39(0x0030, item);
	labelFunc02B4_0016:
		return;
}
Func02B5 0x2B5 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02B5_0015;
	UI_play_sound_effect_16(0x0055);
	labelFunc02B5_0015:
		return;
}
Func02B7 0x2B7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc02B7_0068;
	var0000 = UI_game_hour_45();
	if(!(var0000 > 0x000C)) goto labelFunc02B7_0023;
	var0000 = (var0000 - 0x000C);
	labelFunc02B7_0023:
		if(!(var0000 == 0x0000)) goto labelFunc02B7_0033;
		var0000 = 0x000C;
	labelFunc02B7_0033:
		var0001 = UI_game_minute_46();
		if(!(var0001 < 0x000A)) goto labelFunc02B7_004E;
		var0001 = ("0" + var0001);
	labelFunc02B7_004E:
		var0002 = (((" " + var0000) + ":") + var0001);
		UI_item_say_4D(item, var0002);
	labelFunc02B7_0068:
		return;
}
// externs
extern Func087F 0x87F (var var0000);

Func02B8 0x2B8 (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc02B8_000C;
	Func087F(item);
	labelFunc02B8_000C:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func02BA 0x2BA (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc02BA_004A;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000[0x0001]);
	if(!(var0001 == 0x0353)) goto labelFunc02BA_0044;
	UI_set_item_shape_14(var0000, 0x033B);
	UI_set_item_frame_1B(var0000, UI_die_roll_17(0x0000, 0x0002));
	goto labelFunc02BA_004A;
	labelFunc02BA_0044:
		Func094A("@Might not those come in handy for cutting cloth into bandages?@");
	labelFunc02BA_004A:
		return;
}
// externs
extern Func092D 0x92D (var var0000, var var0001, var var0002);
extern var Func090C 0x90C (var var0000, var var0001);
extern Func0950 0x950 (var var0000);

Func02BD 0x2BD (var var0000)
{
	var var0001;
	var var0002;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02BD_0016;
	Func092D(item, 0x0253, event);
	labelFunc02BD_0016:
		if(!(event == 0x000A)) goto labelFunc02BD_0048;
		var0000 = Func090C(0xFE9C, item);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6A, 0x61]);
		Func092D(item, 0x0253, event);
	labelFunc02BD_0048:
		if(!(event == 0x0005)) goto labelFunc02BD_0054;
		Func0950(item);
	labelFunc02BD_0054:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func02BE 0x2BE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func0954();
	var0001 = Func0953();
	if(!(event == 0x000E)) goto labelFunc02BE_0033;
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	UI_init_conversation_85();
	if(!gflags[01BC]) goto labelFunc02BE_002F;
	event = 0x000A;
	goto labelFunc02BE_0033;
	labelFunc02BE_002F:
		event = 0x000B;
	labelFunc02BE_0033:
		if(!(event == 0x000A)) goto labelFunc02BE_007F;
		UI_show_npc_face0_05(0xFEF0, 0x0000);
		UcMessage("\"It is a phoenix egg. It is obviously quite rare, and it possesses magical qualities that go beyond explanation.\"");
		UcSay;
		var0002 = Func099B(0xFE9C, 0x0001, 0x0289, 0x0000, 0x0001, 0x0000, true);
		gflags[01BC] = true;
		gflags[0007] = true;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02BE], 0x0002);
	labelFunc02BE_007F:
		if(!((event == 0x000B) || ((event == 0x0001) || (event == 0x0002)))) goto labelFunc02BE_02EA;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02BE_00FA;
		if(!((event == 0x0002) && gflags[0007])) goto labelFunc02BE_00DF;
		UI_play_sound_effect_16(0x000F);
		UI_si_path_run_usecode_C1(item, [0x0862, 0x04AE, 0x0000], 0x000B, item, 0x02BE, true);
		gflags[0007] = false;
		abrt();
		goto labelFunc02BE_00FA;
	labelFunc02BE_00DF:
		UI_show_npc_face0_05(0xFEF0, 0x0000);
		UcMessage("\"Greetings to thee!\"");
		UcSay;
		UI_add_answer_0C(["name", "bye"]);
	labelFunc02BE_00FA:
		if(!(event == 0x000B)) goto labelFunc02BE_0121;
		UI_show_npc_face0_05(0xFEF0, 0x0000);
		UcMessage("\"That is the greatest gift that I can give to thee. Use it wisely.\"");
		UcSay;
		UI_play_sound_effect_16(0x000F);
		UI_add_answer_0C(["bye"]);
	labelFunc02BE_0121:
		gflags[0007] = false;
		if(!gflags[01BC]) goto labelFunc02BE_0132;
		UI_add_answer_0C("domain");
	labelFunc02BE_0132:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Name? Oh, my, what a formality! First thou hast saved my life and then thou dost ask my name! Thou art a curiosity!\"");
		UcSay;
		UcMessage("\"No one hath asked me my real name in several hundred years! I have always been called simply Phoenix.\"");
		UcSay;
		UI_add_answer_0C(["real name", "phoenix"]);
	labelFunc02BE_0159:
		cmps("real name");
		UI_remove_answer_0D("real name");
		UcMessage("\"It is a sound thou wouldst find most unpronounceable. My name is a word in the language of my kind that roughly translates as 'Skyrise'.\"");
		UcSay;
		UcMessage("\"It is a popular name among my kind. But enough of that! I wish to thank thee for thy deed...\"");
		UcSay;
		UI_add_answer_0C(["Skyrise", "thou art welcome"]);
	labelFunc02BE_017D:
		cmps("Skyrise");
		UI_remove_answer_0D("Skyrise");
		UcMessage("\"I was named after a famous Phoenix queen. She was so beautiful that a dragon came to court her!\"");
		UcSay;
		UcMessage("\"Canst thou imagine? After many rejections, she at last agreed to go away with him. And then she flew away with the dragon, into the sky!\"");
		UcSay;
	labelFunc02BE_0194:
		cmps("thou art welcome");
		UI_remove_answer_0D("thou art welcome");
		if(!gflags[01BC]) goto labelFunc02BE_01B0;
		UcMessage("\"It is rare to find a stranger who is so well-mannered! I do hope that thou didst enjoy the egg I gave to thee!\"");
		UcSay;
		goto labelFunc02BE_01ED;
	labelFunc02BE_01B0:
		UcMessage("\"As a token of mine appreciation, I shall give thee the most valuable possession I could bestow upon thee.\"");
		UcSay;
		var0004 = UI_get_object_position_20(0xFE9C);
		UI_si_path_run_usecode_C1(item, [(var0004[0x0001] + 0x0001), (var0004[0x0002] + 0x0001), 0x0000], 0x000A, item, 0x02BE, true);
		UI_play_sound_effect_16(0x000F);
		abrt();
	labelFunc02BE_01ED:
		cmps("phoenix");
		UI_remove_answer_0D("phoenix");
		UcMessage("\"Thou hast never met such a creature before...? If thou dost wish it I shall tell thee my tale.\"");
		UcSay;
		UI_add_answer_0C(["tale"]);
	labelFunc02BE_020A:
		cmps("tale");
		UI_remove_answer_0D("tale");
		UcMessage("\"The phoenix are creatures of fate. We are naturally drawn to places where the balance between Order and Chaos hath been upset.\"");
		UcSay;
		UI_add_answer_0C(["fate", "balance"]);
	labelFunc02BE_022A:
		cmps("fate");
		UI_remove_answer_0D("fate");
		UcMessage("\"Fate is a force that is eternal. This is why those of my kind can never truly die.\"");
		UcSay;
		UcMessage("\"Although we may lose our lives, we are reborn from the ashes of our own funeral pyres.\"");
		UcSay;
		UI_add_answer_0C(["eternal", "pyres"]);
	labelFunc02BE_024E:
		cmps("balance");
		UI_remove_answer_0D("balance");
		UcMessage("\"As the course of destiny calls us to many places and many worlds throughout the universe, mine ancestors grew wings to travel far.\"");
		UcSay;
		UcMessage("\"I flew between the Serpent Pillars to reach this place. I suspect that is how thou didst come here thyself.\"");
		UcSay;
	labelFunc02BE_0265:
		cmps("eternal");
		UI_remove_answer_0D("eternal");
		UcMessage("\"Now that there is a living phoenix in this world, the balance between Order and Chaos can be restored.\"");
		UcSay;
		UcMessage("\"A happy thought, no?\"");
		UcSay;
	labelFunc02BE_027C:
		cmps("pyres");
		UI_remove_answer_0D("pyres");
		UcMessage("\"The flames of the pyres are a rebirth. They represent change. If the balance between Order and Chaos is misaligned, 'tis thee who must change it.\"");
		UcSay;
		UcMessage("\"I wish thee luck in all thine endeavors!\"");
		UcSay;
	labelFunc02BE_0293:
		cmps("domain");
		UI_remove_answer_0D("domain");
		UcMessage("\"Dost thou wish to spend more time in my domain?\"");
		UcSay;
		var0005 = Func0955();
		if(!var0005) goto labelFunc02BE_02B9;
		UcMessage("\"Wonderful! Feel free to stay as long as thou wouldst like, though thou mightest find it to be on the warm side.\"");
		UcSay;
		goto labelFunc02BE_02BD;
	labelFunc02BE_02B9:
		UcMessage("\"If thou dost wish to leave, thou canst return to the place from whence thou camest through a mystical means of unknown origin. The means lies beyond my lair.\"");
		UcSay;
	labelFunc02BE_02BD:
		cmps("bye");
		UcMessage("\"I wish thee good fortune, and once again I thank thee for restoring me.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(item, "@Balance to thee.@", 0x0005);
		goto labelFunc02BE_02E9;
	labelFunc02BE_02E6:
		goto labelFunc02BE_0132;
	labelFunc02BE_02E9:
		end_conv();
	labelFunc02BE_02EA:
		return;
}
// externs
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func02C0 0x2C0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = UI_get_object_position_20(item);
	if(!((event == 0x0001) || ((event == 0x0002) || (event == 0x0003)))) goto labelFunc02C0_0379;
	var0001 = UI_get_container_83(item);
	if(!(!UI_is_npc_3D(var0001))) goto labelFunc02C0_0379;
	UI_close_gumps_98();
	var0002 = UI_explode_69(UI_get_avatar_ref_2A(), item, 0x02C0);
	var0003 = var0000[0x0001];
	var0004 = var0000[0x0002];
	if(!(((var0003 > 0x04C2) && ((var0003 < 0x04CE) && ((var0004 > 0x036B) && (var0004 < 0x0375)))) && (gflags[024B] == false))) goto labelFunc02C0_033A;
	var0005 = UI_find_nearby_41(0xFE9C, 0x00F6, 0x003C, 0x0000);
	enum();
	labelFunc02C0_0090:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc02C0_00FC);
		var0009 = UI_get_object_position_20(var0008);
		if(!(UI_get_item_frame_1A(var0008) == 0x0002)) goto labelFunc02C0_00CF;
		UI_remove_item_84(var0008);
		var0002 = Func09AB(0x0374, 0x0001, 0x0000, 0x0000, var0009);
	labelFunc02C0_00CF:
		if(!(UI_get_item_frame_1A(var0008) == 0x0012)) goto labelFunc02C0_00F9;
		UI_remove_item_84(var0008);
		var0002 = Func09AB(0x0374, 0x0003, 0x0000, 0x0000, var0009);
	labelFunc02C0_00F9:
		goto labelFunc02C0_0090;
	labelFunc02C0_00FC:
		var0005 = UI_find_nearby_41(0xFE9C, 0x0204, 0x003C, 0x0000);
		enum();
	labelFunc02C0_0110:
		for (var0008 in var0005 with var000A to var000B atend labelFunc02C0_01A2);
		var0009 = UI_get_object_position_20(var0008);
		if(!(UI_get_item_frame_1A(var0008) == 0x0002)) goto labelFunc02C0_0162;
		UI_remove_item_84(var0008);
		var0002 = Func09AB(0x0374, 0x0000, 0x0000, 0x0000, [(var0009[0x0001] - 0x0002), var0009[0x0002], 0x0000]);
	labelFunc02C0_0162:
		if(!(UI_get_item_frame_1A(var0008) == 0x0012)) goto labelFunc02C0_019F;
		UI_remove_item_84(var0008);
		var0002 = Func09AB(0x0374, 0x0002, 0x0000, 0x0000, [(var0009[0x0001] - 0x0002), var0009[0x0002], 0x0004]);
	labelFunc02C0_019F:
		goto labelFunc02C0_0110;
	labelFunc02C0_01A2:
		var000C = 0x0001;
		var000D = [0x04C5, 0x04C7, 0x04C9, 0x04CB, 0x04C5, 0x04C7, 0x04C9, 0x04CB, 0x04C5, 0x04C7, 0x04C9, 0x04CB, 0x04C5, 0x04C7, 0x04C9, 0x04CB, 0x04C3, 0x04C3];
		var000E = [0x036D, 0x036D, 0x036D, 0x036D, 0x036F, 0x036F, 0x036F, 0x036F, 0x0371, 0x0371, 0x0371, 0x0371, 0x0373, 0x0373, 0x0373, 0x0373, 0x0372, 0x0372];
		var000F = [0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0001, 0x0001, 0x0001, 0x0001, 0x0003, 0x0003];
	labelFunc02C0_025C:
		if(!(var000C < 0x0012)) goto labelFunc02C0_02AF;
		var0002 = UI_create_new_object_2C(0x00E0);
		if(!var0002) goto labelFunc02C0_02A2;
		UI_set_item_frame_1B(var0002, var000F[var000C]);
		var0009 = [var000D[var000C], var000E[var000C], 0x0000];
		var0002 = UI_update_last_created_2F(var0009);
	labelFunc02C0_02A2:
		var000C = (var000C + 0x0001);
		goto labelFunc02C0_025C;
	labelFunc02C0_02AF:
		var0002 = UI_create_new_object_2C(0x00CF);
		if(!var0002) goto labelFunc02C0_02DC;
		UI_set_item_frame_1B(var0002, 0x0000);
		var0002 = UI_update_last_created_2F([0x04C3, 0x0370, 0x0000]);
	labelFunc02C0_02DC:
		var0002 = UI_create_new_object_2C(0x037F);
		if(!var0002) goto labelFunc02C0_0309;
		UI_set_item_frame_1B(var0002, 0x0001);
		var0002 = UI_update_last_created_2F([0x04CA, 0x0373, 0x0000]);
	labelFunc02C0_0309:
		var0002 = UI_create_new_object_2C(0x037F);
		if(!var0002) goto labelFunc02C0_0336;
		UI_set_item_frame_1B(var0002, 0x0000);
		var0002 = UI_update_last_created_2F([0x04C5, 0x0372, 0x0000]);
	labelFunc02C0_0336:
		gflags[024B] = true;
	labelFunc02C0_033A:
		if(!((var0003 > 0x0586) && ((var0003 < 0x0593) && ((var0004 > 0x03D5) && (var0004 < 0x03DE))))) goto labelFunc02C0_0379;
		var0010 = UI_find_nearest_15(0xFE9C, 0x00CA, 0x0041);
		if(!var0010) goto labelFunc02C0_0379;
		UI_remove_item_84(var0010);
	labelFunc02C0_0379:
		return;
}
Func02C1 0x2C1 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc02C1_06C2;
	UI_play_sound_effect2_A1(0x005E, item);
	UI_book_mode_6A(item);
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc02C1_0036;
	UcMessage("~~PHILIPHUS'S WISDOM ~~  ~~by Philiphus*");
	UcSay;
	UcMessage("~~An enlightening discourse on the enigma of programming.");
	UcSay;
	UcMessage("~Beginning with the heretofore unresolved mysteries of global variables...");
	UcSay;
	goto labelFunc02C1_06C2;
	labelFunc02C1_0036:
		if(!(var0000 == 0x0001)) goto labelFunc02C1_0047;
		UcMessage("The path to wisdom lies before thee. If thy deeds are as virtuous as thy words, thou shalt not fail.");
		UcSay;
		goto labelFunc02C1_06C2;
	labelFunc02C1_0047:
		if(!(var0000 == 0x0002)) goto labelFunc02C1_005C;
		UcMessage("~~TEMPLE OF BALANCE*");
		UcSay;
		UcMessage("	 Only he who hath achieved balance within this temple may be free to find greater balance on the path to the Grand Shrine.~ He who wishes to find fulfillment must use the fire of chaos and the ice of order to restore balance. ~   Only a true serpent of fire and serpent of ice will bring thee to balance.");
		UcSay;
		goto labelFunc02C1_06C2;
	labelFunc02C1_005C:
		if(!(var0000 == 0x0003)) goto labelFunc02C1_0075;
		UcMessage("~~IMPLEMENTS OF BALANCE*");
		UcSay;
		UcMessage("  A devout follower will know the true path towards Balance. Thou shouldst know the arts necessary to achieve Balance. To those of you who have forgotten your lessons -- take heed:~~   Fire is the embodiment of the force of Chaos, ~   Ice is the embodiment of the force of Order.~ ~   The Ice Diamond and the Fire Ruby are necessary to achieve balance within the shrine.*");
		UcSay;
		UcMessage("~   Disciple of Balance, know the true way to balance fire is with ice, and the one way to balance ice is with fire. Using thy tools of the candles of fire and the solids of ice thou mayest achieve the way to Balance and to the Shrine.");
		UcSay;
		goto labelFunc02C1_06C2;
	labelFunc02C1_0075:
		if(!(var0000 == 0x0004)) goto labelFunc02C1_008A;
		UcMessage("~~ISKERISS'S JOURNAL*");
		UcSay;
		UcMessage("  The Great Hierophant, who feared that the followers of Chaos would attempt to gain access to the Sacred Library, ordered the Adepts of the Conjury to construct a secure means of entering the Library. The Adepts spent many long nights in contemplation, rejecting one idea after another as being too impractical. It was the suggestion of a mere apprentice, Kethiss, that was finally accepted by all of the Adepts. Our Beloved Leader, the Great Hierophant, was soon informed that there could be only one way to gain ingress into the Sacred Library. The Adepts, acting in concert, placed a charm of teleportation upon our Gate. The Great Hierophant was adamant, however, that he alone could have access to the Sacred Library. Thus, the Adepts wove the charm of teleportation so that it would only trigger when the Wand of the Serpent was used on the Gate. *  The Great Hierophant, may he live a thousand years, hath successfully entered the Sacred Library by using the Wand of the Serpent and stepping upon the Serpent Gate...");
		UcSay;
		goto labelFunc02C1_06C2;
	labelFunc02C1_008A:
		if(!(var0000 == 0x0005)) goto labelFunc02C1_0098;
		UcMessage("~  Before proceeding to the main shrine, the devout follower must reacquaint himself or herself with the six shrines of the Temple. These shrines are dedicated to the forces of: ~Discipline, Tolerance, Ethicality, Enthusiasm, Emotion, and Logic.*  One achieves enlightenment through Balance.~ ~Tolerance becomes the chain that unites the whole. ~Ethicality is a beacon to guide our actions. ~Enthusiasm is a rose that brings beauty to our rising. ~Discipline is our weapon against faltering. ~Emotion is a heart that is a reservoir of our feelings. ~Logic is calculated truths leading us from ignorance. ~Tolerance balanced with Ethicality brings us Harmony.~ ~Enthusiasm balanced with Discipline bestows Dedication upon us.~ ~Emotion blended with Logic and Logic balanced with Emotion achieve Rationality.~~ ~Only by achieving Harmony, Dedication, and Rationality can one find the path to the Grand Shrine of Balance. Balance is the key to the Shrine.");
		UcSay;
	labelFunc02C1_0098:
		if(!(var0000 == 0x0006)) goto labelFunc02C1_00BA;
		UcMessage("~~ARTIFACTS OF COMMUNION*");
		UcSay;
		UcMessage("Before the War of Imbalance our priests did fashion three artifacts: the Web of Fate, the Moon's Eye, and a Magic Lens. Each artifact was made for a particular temple.");
		UcSay;
		UcMessage("The Web of Fate was placed within the Temple of Tolerance. The Moon's Eye was placed within the Temple of Emotion, and the Magic Lens was placed within the Temple of Enthusiasm.");
		UcSay;
		UcMessage("Our holy fathers used the power of these artifacts to commune with the Power of the Void -- to answer questions that the mind of mortals could never fathom.");
		UcSay;
		UcMessage("The War of Imbalance changed everything! The artifacts no longer worked properly; the holy father's questions were left unanswered -- their hoarse voices echoed within the deserted temples.");
		UcSay;
		UcMessage("The only power left within the holy artifacts was the ability to divine the location of the Banes of Chaos. Each artifact could spy upon a different Bane.");
		UcSay;
	labelFunc02C1_00BA:
		if(!(var0000 == 0x0059)) goto labelFunc02C1_00E0;
		UcMessage("~~ ~~ GUIDELINES OF LIFE by Shaushauna~~");
		UcSay;
		UcMessage("1: Tolerance becomes the chain that unites the solidarity into the whole.~");
		UcSay;
		UcMessage("2: Ethicality is a beacon to guide our actions.~");
		UcSay;
		UcMessage("3: Enthusiasm brings beauty to our rising.~");
		UcSay;
		UcMessage("4: Discipline is a weapon against faltering.~");
		UcSay;
		UcMessage("5: Emotion is a heart beating strong and proud.~");
		UcSay;
		UcMessage("6: Logic is a straight guide upon which we can rely...");
		UcSay;
	labelFunc02C1_00E0:
		if(!(var0000 == 0x004B)) goto labelFunc02C1_00F2;
		UcMessage("PENGUINS OF THE NORTH ~~Observations by Ssashartha~~");
		UcSay;
		UcMessage("     Talking about all living creatures on our beloved Serpent Isle, we cannot forget to mention the family of the penguins. Those clumsy-looking beings are called birds even though they cannot fly. They live in the northern part of this island. Penguins are very good divers. The short wings of their strong bodies are used as a rudder. Out of the water they walk upright just as Men and the tail is an important tool to keep balance. Depending on the species, they can grow taller than 3 feet. No matter what the species, all penguins live in a sociable manner and breed in seemingly peaceful colonies. The female penguins take much pride in building the nests. Because of their size, penguin nests can easily contain more than mere eggs...");
		UcSay;
	labelFunc02C1_00F2:
		if(!(var0000 == 0x003E)) goto labelFunc02C1_0114;
		UcMessage("TENETS OF DISCIPLINE ~~Precepts by Shushuro~~");
		UcSay;
		UcMessage("1: \"One cannot master the world around him without first mastering oneself.\"~");
		UcSay;
		UcMessage("2: \"A task left unfinished is a task failed.\"~");
		UcSay;
		UcMessage("3. \"The means to succeed is brought about by discipline.\"~");
		UcSay;
		UcMessage("4. \"Discipline brings about obedience. Obedience brings about order.\"~");
		UcSay;
		UcMessage("5. \"The mind disciplines the body.\"");
		UcSay;
	labelFunc02C1_0114:
		if(!(var0000 == 0x0058)) goto labelFunc02C1_013A;
		UcMessage("~~ ~~ TEMPLES OF ORDER~~ ~~by Shrithos*");
		UcSay;
		UcMessage("Pilgrims, it is a great journey to visit the three Temples of Order. Do not let the obstacles sway thee from thy destination, for though the path is difficult, the rewards are many.");
		UcSay;
		UcMessage("Seek the Fountains, for their Water is the essence of the Force which resides at that sanctuary. Imbibe the Waters, and drink of the fruit of thy quest.");
		UcSay;
		UcMessage("The Temple of Ethicality is found near the coast, south of the Spinebreaker Mountains. It was built in such a way that those who come here may gain inspiration from the view. This is the first Temple on the Pilgrimage of Order.");
		UcSay;
		UcMessage("Continue next to the Temple of Discipline. The western branch of the Spinebreaker Mountains is where the Temple of Discipline was carved out. Seek the great bay, then follow the eastern coast until thou dost reach the mountains. Continue east, and thou shalt be sure to find the entrance.");
		UcSay;
		UcMessage("Lastly, the Temple of Logic lies within the Glacier Mountains, with the entrance being in the southern tip of the mountain chain. There are many passageways until one finds the Tests of Logic which lead to the sanctum.");
		UcSay;
		UcMessage("Above all, do not mistake any Temple of Chaos for one of the sanctuaries of Order, for in this path lies Madness. Only Order is fit for study; chaos defiles all it touches.");
		UcSay;
	labelFunc02C1_013A:
		if(!(var0000 == 0x0043)) goto labelFunc02C1_0170;
		UcMessage("~~ ~~THE IMPORTANCE OF MEDITATION~~ ~~Manual by Zazanush*");
		UcSay;
		UcMessage("    The importance of meditation becomes noticeable when people of all ages admit that they are living a better, more peaceful life since they started to seek communion with the Serpent of Order. To apply the power of meditation to one's life, young student, obey the rules and follow them as they are written in this manual. I have gathered some guidelines that are easy to understand, so that thou mayest begin with these relaxing exercises without having to investigate any further.");
		UcSay;
		UcMessage("1: Find thyself a place where thou wilt not be disturbed by anyone or anything.~");
		UcSay;
		UcMessage("2: Carefully spread the Mat of Meditation on the floor. Use only the prepared mats, for they are imbued with special powers to aid meditation.~");
		UcSay;
		UcMessage("3: Kneel and close thine eyes.~");
		UcSay;
		UcMessage("4: Concentrate on breathing very slowly and deeply.~");
		UcSay;
		UcMessage("5: Begin repeating the mantra \"Issit.\"~");
		UcSay;
		UcMessage("6: Do not speak.~");
		UcSay;
		UcMessage("7: Do not let anything interrupt thee.~");
		UcSay;
		UcMessage("8: Continue with the mantras until thou dost feel total peace of mind.~");
		UcSay;
		UcMessage("These lessons will lead thee to a much higher level of meditation. They will prepare thee for the climax of the Test of Discipline.");
		UcSay;
	labelFunc02C1_0170:
		if(!(var0000 == 0x0052)) goto labelFunc02C1_018A;
		UcMessage("~~ ~~HISTORY OF SERPENT ISLE ~~ ~~by Harashash*");
		UcSay;
		UcMessage("   During the First Age, the world was divided into four continents -- the LANDS OF LORD BRITISH, the LANDS OF THE FEUDAL LORDS, the LANDS OF DARK UNKNOWN, and the LANDS OF DANGER AND DESPAIR. After the evil wizard Mondain was defeated, only the Lands of Danger and Despair remained -- all other continents were destroyed.");
		UcSay;
		UcMessage("The Lands of Danger and Despair became what we now call Serpent Isle, in honor of the Great Earth Serpent who is our guide. It was he who called to us from the Void, and in answer to our pleas, he taught us the ways of the Serpent -- the Way of Balance.");
		UcSay;
		UcMessage("The population on Serpent Isle grew. The citizens helped each other and relied on each other. There was no crime and people were holding to their traditions. Parents taught their children about the Virtues of Order and Chaos. These traditions were passed on from generation to generation. Their devotions were presided over by the Great Hierophant. He was the only one allowed to open the Wall of Lights and enter the Void -- a magical place that connects dimensions in space and mayhap even time! Because great danger is involved in entering the Void, only the Great Hierophant is entitled to operate the Wall of Lights. Much knowledge is required for this procedure and the Great Hierophant must be in possession of the Artifacts of the Serpent.");
		UcSay;
	labelFunc02C1_018A:
		if(!(var0000 == 0x0057)) goto labelFunc02C1_01AC;
		UcMessage("~~ ~~THE TEST OF PURITY~~ ~~by Larushash*");
		UcSay;
		UcMessage("Throughout our lives we must measure ourselves in tests of one form or another. This treatise is meant to be read by those who will be given the test of purity. Purity is important for a free soul and demands discipline, logic and ethicality from the obedient human being. Obedience demands a person who is capable of putting others first and himself last.~");
		UcSay;
		UcMessage("Putting others first demands discipline; the ability to finish a task without being distracted.~");
		UcSay;
		UcMessage("Putting others first demands logic that will block the emotion that may ask thee to do otherwise.~");
		UcSay;
		UcMessage("Putting others first demands ethicality that makes one believe in abiding the rules of conduct.~");
		UcSay;
		UcMessage("Discipline, Logic and Ethicality in their purest form and always obeyed will give one a free soul. A soul that is not enslaved by materialism, egoism and other evil characteristics. They will serve thee to the purpose of a dedicated life, a life in harmony with the ability to understand the meaning of life and the world around thee. The person that truly lives his life by these rules will be rewarded....");
		UcSay;
	labelFunc02C1_01AC:
		if(!(var0000 == 0x005B)) goto labelFunc02C1_01CA;
		UcMessage("~~THE POWER OF MAGIC~~ ~~ by Rossinoss~~");
		UcSay;
		UcMessage("Many of us have learned with difficulty what it means when an item important to us disappears. In most cases those things disappeared forcibly -- they disappeared by theft! It became necessary to protect brave citizens and their property. People invented their own types of 'protection-devices'! Some of those were unfortunately dangerous and harmed the person they were supposed to protect. Some of them were useful and very effective. Here are some advanced techniques to protect thyself and thy property.");
		UcSay;
		UcMessage("     To create a device that will protect thine home against fire, certain items are required. The owner will need 1 keg of moondust and 1 keg of roasted ice ants. The mixture of both must be spread around the house in a circle. Unfortunately this procedure hath not been proven to be absolutely effective yet.~");
		UcSay;
		UcMessage("    To protect thy farm animals and pets against gruesome predators, a feed mixture out of the following ingredients is very helpful: 1 bucket of red corn, 1 bucket of fish spawn, 1 bucket of ground gargoyle horn and 1 bucket of water from the silver fountain. Feed this to the animals about once a week before sunrise.~");
		UcSay;
		UcMessage("    The most effective way to protect doors against intruders hath been proven to be a combination puzzle for the lock.");
		UcSay;
	labelFunc02C1_01CA:
		if(!(var0000 == 0x0051)) goto labelFunc02C1_01E4;
		UcMessage("~~FUNERAL CEREMONIES~~by Javallaja~~");
		UcSay;
		UcMessage("The darkest day of all arrives when one of our Great Hierophants lies down to close his eyes forever. The country's grief is so apparent that it seems that it may be touched. Every follower, down to the littlest child, can feel the void that unfolds with the loss of the Great Hierophant. The only way acceptable to pay our last respects is a ceremony that indicates without any doubt how important this being was to our society and how much they are missed by us.~");
		UcSay;
		UcMessage("The body must be laid in state for three full days. After the blessings, the body will be dressed in holy clothes and decorated with holy flowers, so that the ordinary folks may greet the Great Hierophant for the last time, in a quiet manner. Loud wailing and gnashing is not tolerated. The pain must be held back until the outside of the shrine is reached. People may bring small tokens and leave them with the Hierophant to show their gratitude. A state of mourning for the period of seven days is ordered for the whole country. Every temple and every shrine will be open day and night, so people may gather at all times and share their grief.~");
		UcSay;
		UcMessage("One last word to those people who never followed the Great Hierophant with all their heart: Rebellion, interruptions of the ceremony and all other possible disturbances will be prosecuted and punished. No crime will go unseen. Keep in mind: 'The Serpent Watches Over All!'");
		UcSay;
	labelFunc02C1_01E4:
		if(!(var0000 == 0x005D)) goto labelFunc02C1_01F6;
		UcMessage("~~ ~~ CIVIL WAR OR THE EVIL FORCES OF CHAOS ~~ by Lorick~~");
		UcSay;
		UcMessage(" Every morning when I rise it becomes clearer and clearer to me and to many other people. The Forces of Chaos cannot be the right way of belief. What they are doing is wrong and evil. It will bring our country to a downfall. Their actions are destroying the faith of the citizens in leaders and leadership. Something must be done. There must be a way to end this Civil War. Thousands and thousands of brave followers have been victimized and sacrificed by the powers of Chaos. And thousands more are to follow if this war doth not come to an end soon. Someone must be there to help our people and protect them from the unbridled Tolerance and Anarchy of THOSE people, that were the root cause of this war. There must be a way, there must be....");
		UcSay;
	labelFunc02C1_01F6:
		if(!(var0000 == 0x0062)) goto labelFunc02C1_021C;
		UcMessage("~~ ~~Diary of Diabolical Traps~~");
		UcSay;
		UcMessage("	I, Seliashor, am accompanying a score of soldiers and scholars ordered to retrieve the Golden Orb.  I was chosen for my knowledge of traps; a specialty particularly suited for a journey into unknown lands controlled by a mind such as the Fiend's.~");
		UcSay;
		UcMessage("First Level--The first trap!  A soldier, wandering into an alcove, found himself separated from his command by poison fields!  I had the good fortune to be looking his way when he triggered the trap; it is obviously of magical nature.  If this is all we will face, the ring will surely be ours.~");
		UcSay;
		UcMessage("Second Level--The Fiend has raised the stakes! We discovered a large cavern, in which were numerous statues of harpies and decorative suits of armor.  We had immediately deduced that these were traps and would smite us if we stepped to near, but the real trap was more cleverly hidden!  Caltrops, painted to match the color of the floor, drew a great deal of blood from the soldiers as they gingerly avoided the obvious statue traps.  Clever.*");
		UcSay;
		UcMessage("Second Level--We have discovered the next trap.  A small number of chests, clustered together, proved to be explosive if tampered with.  Amateurish--I spotted the trap before any of the foolish soldiers could tamper with it.~");
		UcSay;
		UcMessage("Third Level--Three soldiers entered a completely barren cavern and triggered a truly fiendish trap.  When they reached the center of the room, we heard the sound of a bell.  Nervous seconds passed.  Just when we relaxed, a spell of terrifyingly destructive nature went off.  The soldiers were consumed in flames which appeared from empty air, disappeared, and reappeared in other locations.  Had they fled from the room, they would have lived.  There was a body in there, and my mind's eye can still see the light cast from our torches glinting of a golden object in its hands.  If it was the orb, it is lost, for not one of our number dares to face the flames.  I think it was naught but a gold statue or somesuch; more accurately, I hope it was.*");
		UcSay;
		UcMessage("Third Level--we sent another soldier to his death.  He was sent into the narrow mouth of a cavern.  I knew he would not return.  When he entered the cavern, an energy field appeared in the narrow opening!  Neither I nor our wizard had Dispel Field in our spellbooks; he was left to die.  He was one of the last soldiers alive; our prospects for survival are grim.*");
		UcSay;
	labelFunc02C1_021C:
		if(!(var0000 == 0x0060)) goto labelFunc02C1_0242;
		UcMessage("~~ ~~Denizens of the Caves~~ ~~by Isstherios~~");
		UcSay;
		UcMessage("	During our inhabitance of this remote outpost we have been assaulted by creatures of such uniqueness and variety that I have taken it upon myself to create a bestiary.~");
		UcSay;
		UcMessage("	Arachnian:  This terrifying creature has the full body, head and legs of the giant spider common to our island, with the torso, head and arms of a man growing from just behind its spider-head.  Speculation abounds as to the origin of these horrible hybrids; some claim the mad servants of Chaos created it in one of their endless foolish experiments, others say it was the work of a long-dead lunatic mage.  Regardless of how they came to be, the Arachnian is perhaps the deadliest of all foes we face here at Serpent's Fang.*");
		UcSay;
		UcMessage("	Liche:  This is not so much a creature as it is a being, but I consider it worthy of note here.  All of the folk I have spoken to in the keep are rather retiscent about the liche, but I have compiled the following information:  The liche was here before the keep was established.  It is undead; once alive, it entered a state of \"unliving\" which heightened its power but nullified what humanity it may have had when it was alive.  It can command undead and hurl the most devastating of spells.~");
		UcSay;
		UcMessage("	Naga:  A fearsome creature whose lower half is that of a giant snake and upper half is that of a human woman, the Naga is capable of delivering devastating vollies of arrows at those who dare intrude upon its lair.  The Naga's origin, like that of the Arachnian (see above) is questionable.  It is best, when a Naga is spotted, to close for battle immediately, lest their arrows bring thee down before thou hast a chance to flee.  Additionally, they have been known to use snakes as a front line while the Naga pick intruders off with arrows.*");
		UcSay;
		UcMessage("	Shasrajah:  These menacing, scaled freaks have intimidating forms of attack; with their long, snake-like necks they thrust their heads toward their enemy, latching on with their rending teeth, then with their strong neck muscles ripping flesh off.  Though they seldom land hits, they are deceptively quick and resilient to blows.  However, they are enormously stupid, unable to even open doors.  They often attack in groups, making them more dangerous, but they are easily led into traps.  Thus have we been able to repel their regular attacks.~");
		UcSay;
		UcMessage("	I have considerable information on the origin of these beasts; basically, they were an attempt by the forces of Chaos to fuse viper and man.  The Lords of Discipline (those fortunate soldiers whose minds were transferred into the bodies of automatons) had brought the advantage to Order in the war, and these Shasrajah were their attempt to tip the scales in their favor.  Fortunately, the soldiers sacrificed to this wasteful end went insane in their new bodies. They escaped from the lab and began spreading their foul race all over the subterranean realms of our isle...");
		UcSay;
	labelFunc02C1_0242:
		if(!(var0000 == 0x0061)) goto labelFunc02C1_0264;
		UcMessage("~~ ~~The Lost Orbs~~ ~~Compiled by Isstherios~~");
		UcSay;
		UcMessage("	I have compiled this work so that, when we have the manpower to seek out the four lost orbs, all of the information we have will be available to the seeker.~");
		UcSay;
		UcMessage("  	The first orb, golden in hue, was stored within the keep in a secret location until stolen by a soldier of Chaos.  He imbibed a potion of invisibility and followed behind the commander, who had gone to retrieve the orb.  When he found the room, he attacked the unwary commander and stole the orb.  However, his invisibility wore off as he was making good his escape and he was seen by a troop of guards.  The guards chased the thief until he was cornered southeast of the keep; his only escape from the guards would have been to plunge into the Fiend's Domain.  This he did, and was never seen again.  We presume it has come into the Fiend's possession and expect he will try to use it to his advantage.~");
		UcSay;
		UcMessage("  The purple orb, reputedly housed in the Commander's bedchambers, was also purloined by a Chaosite, though this one was no soldier.  Those few who saw it will never forget it; they know not whether the thing was man, beast, or both.  The thing was bipedal and vaguely humanoid, but it had the fur, large ears, feline face, and claws of a cat.  It was being held prisoner in the keep, but an undisciplined soldier on duty relaxed on his watch and the cat-man escaped.  I know not how it found its way into the Commander's bedchambers; I assume that its escape was not well-planned and he happened upon it by chance.  However it did find the orb, the cat-man stole it and ran into the Maze.  No one has seen the creature or the orb since.*");
		UcSay;
		UcMessage("  The red orb was not stolen, but is out of our hands all the same.  Prior to the closure of the addition to the outpost, to the southwest of the keep, SubCommander Gareth was charged with the task of transporting the orb to this area; we can assume he accomplished his mission, but Gareth never did return.  Shortly thereafter the area was surrendered to the creatures that currently reign there.  It is my presumption that the orb still rests within this catacomb.");
		UcSay;
		UcMessage("  The blue orb is certainly the strangest tale, but its possessor is a known entity; it rests in the decayed hands of the lich Aram-Dol.  How that malevolent entity came to possess the blue orb is where the strange tale doth lie. Approximately the same time the red orb was carried to presumed safety, the blue orb was to be carried to a location only SubCommander Gareth knew.  The six automatons sent on this mission were ambushed not far from the outpost; lookouts witnessed the battle but could not send aid in time.  The attackers were assumed to be spies of Chaos, but their identities will forever be unknown. They outnumbered the automatons by fully a score; the battle was quick.  They fled away with great haste.  Later a merchant traveling to the keep from Shasavrah reported that he had seen the thieves in a small town west of the keep, but the orb was stolen from them, along with much of their supplies, in the night. The orb appeared again in the hands of authorities in Thiriastith, who siezed it from a suspected stolen goods fence.  Not knowing its import, the authorities auctioned it as a bauble to a wizard who knew what the orb was.  This wizard, who was known only as the Asp, aspired to steal the silver seed.  He came to Serpent's Fang as an adventure seeker and was told that the other orbs were stolen or lost.  He discerned their whereabouts from this information, but that which he was told was apparently not true, for he set out immediately for Aram-Dol's lair.  Foolishly, he brought the one orb he possessed with him into those foul tunnels of Aram-Dol's lair.  The dead that walk those caverns and tunnels soon forced the Asp to join them in their ever-living death.  This new soldier of Aram-Dol brought the orb to the lich, thus bringing a momentary end to its lengthy sojourn.*");
		UcSay;
	labelFunc02C1_0264:
		if(!(var0000 == 0x0063)) goto labelFunc02C1_027A;
		UcMessage("~~ ~~On Accessing the Serpent Gate~~ ~~by Shalsaraiah~~");
		UcSay;
		UcMessage("  Though it be true that most of the Serpent Gates are centerpieces of the destinations they serve, in our fair city this is not so. To provide a measure of security, we have made our Gate inaccessible to all those who are not given permission by the Hierophant himself, for it is he who holds the keys. He doth keep on his person the Key of Fire and entrusts to an advisor (whose identity is kept secret to those outside the clergy) the Key of Ice.*");
		UcSay;
		UcMessage("When these two keys are placed on the altar in the Great Temple, these two keys merge to form the blackrock key. It is with this key that the Hierophant opens the door to the Serpent Gate: a simple brass door on the temple's balcony. From here the traveller is teleported to a grand room, wherein he walks on graceful bridges to the Serpent Gate. I myself was once chosen to carry the Key of Ice, and I did keep it on my person even when bathing in the bath house. I can assure thee that the Hierophant kept it close to his breast, even during his leisurely strolls through the park...");
		UcSay;
	labelFunc02C1_027A:
		if(!(var0000 == 0x0064)) goto labelFunc02C1_029C;
		UcMessage("~~ ~~REPORT ON THE SHASRAJAH~~ ~~by Jaljashram~~");
		UcSay;
		UcMessage("  O Great Hierophant, sorrow fills mine heart to tell thee the regretful news that our great hope, the Shasrajah, cannot be counted on to attach the venomous fangs of victory about the necks of our enemies. Our great experiment hath failed.~");
		UcSay;
		UcMessage("  As thou hast already been told, we had found a means by which the minds of our finest warriors and the bodies of snakes could be fused with one another. The resulting warrior would wreak terrible havoc on the forces of Order, bringing them their well-deserved destruction. In the earliest stages of the experiment all was well; we succeeded in joining Adder with Man in five of seven volunteers. The resulting form was vaguely humanoid, with resilient green skin, tough as the scales of a serpent.*");
		UcSay;
		UcMessage("  We found that the soldiers' minds were very much unchanged, and coupled with the quickness and sensitivity to smell of the adder, the Shasrajah were formidable in battle. Their long necks had tremendous reach, and they preferred to attack solely with their strong jaws. We were encouraged by this success, and accepted eighty-three more warriors to undergo the metamorphosis. All was well, as seventy-one survived. We believed we had found a counter to the automaton warriors the forces of Order had reputedly developed.~");
		UcSay;
		UcMessage("  Much to our chagrin, however, our experiment went awry shortly thereafter. As we had them do battle to assess their powers, we noticed a disturbing trait -- the warrior would become more bloodthirsty and uncontrollable with each triumph! Soon they began to rebel against our commands. We had no choice but to exterminate them and begin anew, but the five hundred soldiers we sent against our own creations -- our monsters -- were unable to best them. We surrendered the area to them, enclosing them with stout doors in the corridors leading out.*");
		UcSay;
		UcMessage("  I can only assume that they have died. O Great Hierophant, I would recommend never performing these experiments again; they are more potentially dangerous than they are potentially helpful...");
		UcSay;
	labelFunc02C1_029C:
		if(!(var0000 == 0x0065)) goto labelFunc02C1_02AA;
		UcMessage("  In memory of the countless soldiers who sacrificed their lives in the War of Imbalance");
		UcSay;
	labelFunc02C1_02AA:
		if(!(var0000 == 0x006F)) goto labelFunc02C1_02C8;
		UcMessage("~~Servants of Order~~ by Isstherios~~");
		UcSay;
		UcMessage("	Over the years, we who follow Order have devised a number of ingenious servants to simplify our lives.  The earliest attempt is known as the \"Animated Suit of Armor\".  Though automatons have made these nothing more than curiosities, some functional units are still in use today (e.g. the Fiend's Domain, but I implore you not to go exploring just to see one) The animated suits of armor have picked up many knicknames, such as \"Suits,\" \"Brass-brains,\" \"Dummies,\" etc.  They are severely limited in capability, able to understand but a few words, and even then are more than likely to forget orders more than three words in length.  They were used primarily as guards, for they could take more damage than a human guard and were replaced easier if slain than a man would be.*");
		UcSay;
		UcMessage("	The next achievement, representing a significant leap in servant design, was the \"Brass Automaton.\"  These are still used (particularly by frontier outposts such as Serpent's Fang) because they are far more intelligent than animated suits of armor and less costly to create than iron automatons (see next page).  Their main drawback is that, like the animated suits of armor, they cannot be re-used once they are slain.*");
		UcSay;
		UcMessage("	Most commonly used are the \"Iron Automatons.\"  Since they are considered the standard servant in our time, they are referred to simply as automatons. Iron automatons are slightly stronger, quicker, and more resilient than brass automatons as well as slightly more intelligent.  The greatest advantage, however, is that if an iron automaton is slain, it can be reactivated. The spell used, Create Automaton, is found in nearly every wizard's spellbook. These advantages do not come free, however; they are more costly to initially create and drain more mana and reagents than the lesser servants.*");
		UcSay;
		UcMessage("	The greatest of all the automatons are not servants at all.  The Lords of Discipline are automatons with the minds of the greatest warriors transferred into their bodies.  They are unsurpassed in strength, speed, intellect, and resilience, and have thus far proven to be the determining factor in the war. It is to this culmination of our knowledge that we, the followers of the Serpent of Order, shall emerge triumphant in our struggle with the misled followers of Chaos.");
		UcSay;
	labelFunc02C1_02C8:
		if(!(var0000 == 0x0078)) goto labelFunc02C1_0322;
		UcMessage("STRENGTH THROUGH ETHICS~~ by Sheshemenien~~");
		UcSay;
		UcMessage("			Dear reader, I intend this essay to be a guide for thee. For thou art what thou dost do. Thou dost do what thou dost judge best for thyself. But, in this matter, is thy judgement as clear as the sky on a summer day? That is the question. If thou canst not answer without a reasonable doubt, thou needest to be enlightened. The purpose of this essay is to increase thy strength through enlightenment. Ethics will enlighten thee.*");
		UcSay;
		UcMessage("			Strength is to the adventurer what milk is to the newborn.");
		UcSay;
		UcMessage("Without it there is no growth, only dwindling and loss of Life.");
		UcSay;
		UcMessage("The path to fulfillment is a long climb towards the heights of the highest and greatest mountain of all.");
		UcSay;
		UcMessage("Herein, I will show thee that there are no shortcuts, and the rewards awaiting thee are abundant.");
		UcSay;
		UcMessage("Be frugal and be prodigal.");
		UcSay;
		UcMessage("In order to receive, thou hast need to give, give, and give again. Allow me to clarify this. Do not misunderstand my words. Do not expect to receive something in exchange for thy gift. Thy gift must come from thine heart. If thou dost expect the recipient to thank thee, thou art on the wrong path. Thou shalt thank the recipient.");
		UcSay;
		UcMessage("Meditate upon those words of wisdom and thy strength will grow with thee.*");
		UcSay;
		UcMessage("Show respect for all life forms. Unless they do attack thee, spare them.");
		UcSay;
		UcMessage("Be blameless and upright. Being sincere and fair in all of thy transactions will provide thee with more power than thou ever hadst. Thou wert strong, thou wilt be stronger. Thy strength will be exalted in truth.");
		UcSay;
		UcMessage("Be great amongst the multitude of thy brethren. Relieve commoners and seek their welfare.");
		UcSay;
		UcMessage("Be humble. Talk no more so very proudly, let not arrogance flow from thy mouth like wisdom from the fountains of Spinebreaker.");
		UcSay;
		UcMessage("Thou shalt not use thy tongue to deceive. Remember to practice whatever thou dost advocate.");
		UcSay;
		UcMessage("Quality should be thy rule. Quality of craftsmanship if thou art a craftsman, quality of the time spent with thy brethren, quality of the words thou speakest, quality in thine actions. Quality secures thine ascent above the multitude.");
		UcSay;
		UcMessage("Be patient in all circumstances. That will make thee wealthy, for each minute is a priceless gem.");
		UcSay;
		UcMessage("Remember that water and ice are two facets of the same element. Be that element. Like water avoid obstacles as large as mountains. Like ice provide a solid path between two banks. Rush like water to extinguish a fire. Avoid fire as unto ice.");
		UcSay;
		UcMessage("Strength feeds on Ethics and Ethics on strength.");
		UcSay;
		UcMessage("When trouble and anguish come upon thee, Ethics will give thee the strength to overcome.");
		UcSay;
		UcMessage("By this thou shalt overcome.");
		UcSay;
	labelFunc02C1_0322:
		if(!(var0000 == 0x007D)) goto labelFunc02C1_03FC;
		UcMessage("~~ ~~ THE STRUCTURE OF ORDER");
		UcSay;
		UcMessage("~A collection of the Principles of Order~");
		UcSay;
		UcMessage("~~compiled by Shaashaanna*");
		UcSay;
		UcMessage("	The Philosophy of Order is based upon the Three Forces of Order.");
		UcSay;
		UcMessage("The Philosophy of Order is a set of principles meant to lead thee");
		UcSay;
		UcMessage("on the path toward strength through enlightenment.");
		UcSay;
		UcMessage("The Three Forces are as follows:~");
		UcSay;
		UcMessage("- Ethicality~");
		UcSay;
		UcMessage("- Discipline~");
		UcSay;
		UcMessage("- Logic~*");
		UcSay;
		UcMessage("		  ~Most righteous reader, let us examine the structure of Order as it appears through the Forces of Order and the underlying principles of the philosophy of Order.~");
		UcSay;
		UcMessage("				ETHICALITY");
		UcSay;
		UcMessage("				~What is Ethicality?");
		UcSay;
		UcMessage("Ethicality is the belief in abiding by rules of conduct.");
		UcSay;
		UcMessage("Those rules must be in thy mouth, in thy mind and in thine heart at all times. Doing so thou wilt understand thou art those rules. ");
		UcSay;
		UcMessage("The rules are the Forces. The rules are not a part of thee, they are thee and thou art the rules.*");
		UcSay;
		UcMessage("Once those rules, or Forces, are one with thee, then, and only then, canst thou abide regardless of the circumstances.");
		UcSay;
		UcMessage("Those rules of conduct are not too difficult for thee; neither are they distant so that thou art not able to achieve them. Those rules of conduct are within thy reach. Moreover, they are necessary if thou dost not wish to be torn and slain by beasts.");
		UcSay;
		UcMessage("Beware, dear reader, for the beasts of Chaos are watching each of thy steps.");
		UcSay;
		UcMessage("Thou shalt perform the words of the Philosophy of Order that are written herein if thou art to live as a man.*");
		UcSay;
		UcMessage("			   DISCIPLINE");
		UcSay;
		UcMessage("				~What is Discipline?");
		UcSay;
		UcMessage("Discipline is the ability to finish what one hath begun, and to");
		UcSay;
		UcMessage(" not be distracted.");
		UcSay;
		UcMessage("Persevere, dearest reader, persevere!");
		UcSay;
		UcMessage("Listen carefully to these words and let those principles be with thee.");
		UcSay;
		UcMessage("Listen to silence and it will speak to thee.");
		UcSay;
		UcMessage("Discipline is patiently rebuilding thine house washed away by a solstice flood. In other words, Discipline is not surrendering thy quest even though some of thy precious belongings have been eroded or destroyed.*");
		UcSay;
		UcMessage("				LOGIC");
		UcSay;
		UcMessage("				~What is Logic?");
		UcSay;
		UcMessage("Some will tell thee that Logic is 'a little bird chirping in a meadow' or that it is 'a wreath of flowers which smell bad'. Do not lend thine ears to their confusing messages.");
		UcSay;
		UcMessage("We say, dearest reader, that Logic deals with two states in the Land of Thought: true and false.");
		UcSay;
		UcMessage("Thou shalt realize that:");
		UcSay;
		UcMessage("Logic is mightier than magic.");
		UcSay;
		UcMessage("Logic turns darkness into bright daylight.");
		UcSay;
		UcMessage("Logic will illuminate the tunnel of ignorance for thee. It will bring thee confidence and knowledge.");
		UcSay;
		UcMessage("Logic is the ability to think clearly and to reason to a conclusion, without emotional bias.");
		UcSay;
		UcMessage("Logic is the power from within which will infallibly guide thee");
		UcSay;
		UcMessage("throughout various realms across time and waters.*");
		UcSay;
		UcMessage("With the Three forces of Order, wisdom and might are on thy side, dear reader.");
		UcSay;
		UcMessage("Once thou dost have the Forces of Order in thy life thou shouldst have no fear.");
		UcSay;
		UcMessage("Once thou dost have the Forces of Order in thy life thou shouldst have no doubt.");
		UcSay;
		UcMessage("Once thou dost have the Forces of Order in thy life thou shouldst have no emotion.");
		UcSay;
		UcMessage("Moreover, neither bias nor conceit affect thee.~");
		UcSay;
		UcMessage("		Will it be well with thee when thou wilt be put to trial or");
		UcSay;
		UcMessage("wilt thou let Chaos overcome thee?");
		UcSay;
		UcMessage("Chaos is wrong and hath no place within our philosophy.");
		UcSay;
		UcMessage("Do not attempt any sort of combination for thou shalt count");
		UcSay;
		UcMessage("Balance as thine enemy.");
		UcSay;
		UcMessage("		Respect those words for they are words of wisdom.");
		UcSay;
		UcMessage("		Honor the Great Serpent, for he taught us this system for the benefit of all.");
		UcSay;
		gflags[0252] = true;
	labelFunc02C1_03FC:
		if(!(var0000 == 0x0082)) goto labelFunc02C1_0492;
		UcMessage("~~ ~~HOLY BOOKS OF THE OPHIDIANS ~~*");
		UcSay;
		UcMessage("Our Sacred Books will reveal to thee what thou must know to live");
		UcSay;
		UcMessage("the life of a true Ophidian.");
		UcSay;
		UcMessage("Respect The Books for They were written with the pain, the blood and");
		UcSay;
		UcMessage("the hopes of thine ancestors.");
		UcSay;
		UcMessage("Read our Books to know thyself.");
		UcSay;
		UcMessage("Thou shalt be clean when touching The Books.");
		UcSay;
		UcMessage("Thou shalt be pure when reading The Books.");
		UcSay;
		UcMessage("Thou shalt read The Books aloud.");
		UcSay;
		UcMessage("Thou shalt not say with thy tongue that which thou wouldst not make good with thine actions.");
		UcSay;
		UcMessage("Now, thou mayest proceed.*");
		UcSay;
		UcMessage("~Herein lies the tale of the Ophidians.");
		UcSay;
		UcMessage("The Ophidians are the inhabitants of this continent.");
		UcSay;
		UcMessage("In the First Age, the world was divided into four continents. There was no magic in the land, and two Kings ruled in peace. This was before the Enlightenment came to us.");
		UcSay;
		UcMessage("Then came a great war, and the Four Lands were sundered from one another. Then, we were alone.");
		UcSay;
		UcMessage("The Destruction was great. One Kingdom fell when its liege died while abroad. Madness took the King of the White Dragon.*");
		UcSay;
		UcMessage("Then the Great Earth Serpent spoke to us! Our people built beautiful cities in safe places under the ground. Six temples were built, and three special Shrines. The Serpents lived among us.");
		UcSay;
		UcMessage("This was our world.*");
		UcSay;
		UcMessage("	This was the time after the defeat of Mondain, when our spiritual leader The Great Hierophant of The Ophidians explained the changes in the Universe through our ethical philosophy of Balance, and its twin properties of Order and Chaos. The Serpent spoke to us through him. The Great Hierophant was the only one who could open the Wall of Lights. The Wall of Lights is the entrance into the Void. He entered the Void to speak with the Serpents.");
		UcSay;
		UcMessage("Our temples and shrines were organized in the following manner:");
		UcSay;
		UcMessage("~The Three Grand Shrines");
		UcSay;
		UcMessage("~The Chaos Temples");
		UcSay;
		UcMessage("~The Order Temples");
		UcSay;
		UcMessage("The total number being nine.*");
		UcSay;
		UcMessage("The Three Grand Shrines were divided into Balance, Chaos and Order.");
		UcSay;
		UcMessage("		The Chaos Temples were divided into the Temple of Emotion, the Temple of Enthusiasm, the Temple of Tolerance.");
		UcSay;
		UcMessage("		The Order Temples were divided into the Temple of Ethicality, the Temple of Discipline, the Temple of Logic.");
		UcSay;
		UcMessage("		The six temples had sub-leaders:~the Master of Ethicality, ~the Master of Discipline, ~the Master of Logic, ~the Master of Emotion, ~the Master of Enthusiasm, and ~the Master of Tolerance.");
		UcSay;
		UcMessage("	During ceremonies, the Great Hierophant was assisted by the Order Hierophant and the Chaos Hierophant. Rich jewelry and shining armour were worn at that time. Throughout the years we had different successors in charge of those functions. The deceased Great Hierophants were buried on the Isle of the Crypts.*");
		UcSay;
		UcMessage("Then came the Disaster. The Great Earth Serpent was taken from the Void, no longer to communicate with us! We became obsessed with the struggle between Order and Chaos. No more Balance!");
		UcSay;
		UcMessage("	The Great Hierophant was murdered and his sacred artifacts were plundered by zealots of Chaos.");
		UcSay;
		UcMessage("Rivalry corrupted the hearts and minds of our people. The reigns of belligerent factions began. War broke out. Armies marched, cities were laid waste, and lava flowed from the deep. The Chaos people were defeated. This is when the Chaos Serpent was brought from the Void and split into three Forces. Lest they should wander the world, they were imprisoned at the three Temples of Order.*");
		UcSay;
		UcMessage("	The scourges of war, earthquakes, and volcanic eruptions with their lava flows and destruction reduced the isle to a desolate land.");
		UcSay;
		UcMessage("		Thereupon, the Order people left the land of their Ancestors known as Serpent Isle in search of a better place. This is a foolish quest.");
		UcSay;
		UcMessage("I alone, a servant of Balance, am left. I soon will die. All is Death, and the land forsaken.");
		UcSay;
	labelFunc02C1_0492:
		if(!(var0000 == 0x00D5)) goto labelFunc02C1_04B8;
		UcMessage("~~ ~~MY LIFE AND MY BELIEFS~~ ~~by Svenjaja~~");
		UcSay;
		UcMessage("I do not have much time left. I hope it will be enough time to write everything down, before THEY come for me. And THEY will come...~");
		UcSay;
		UcMessage("I came here to this Temple full of love and inspiration. All I wanted was to read the writings of artistic truth. The wise men would talk to me and I wanted to listen to them. But then it happened...~");
		UcSay;
		UcMessage("I did everything right, I followed the rules, but I still got confused. After fasting for two days in the meditation room and staring at the red and black floor, I was still waiting for a sign. A sign which would show me the right path to follow.~");
		UcSay;
		UcMessage("And finally, I could rejoice. I found my calling and I was taken to the Pool of Dedication. But then the soldiers came and destroyed everything. They killed the Great Hierophant of Chaos in the garden. Somehow the people saved the Sceptre of Enlightenment. They were able to hide it beneath the lectern...~");
		UcSay;
		UcMessage("I hope for the safety of my brother Sethys, for he doth have the key to the Altar of Tolerance. The Great Hierophant had entrusted him with the key, before the soldiers arrived...");
		UcSay;
		UcMessage("I cannot hope for mine own safety, for I am sitting here now, awaiting my death. The Order fanatics will come soon and with them my death is arriving...");
		UcSay;
	labelFunc02C1_04B8:
		if(!(var0000 == 0x005C)) goto labelFunc02C1_04D6;
		UcMessage("~~ ~~AND LIGHT THERE WILL BE~~by Sasoshi, the Mage~");
		UcSay;
		UcMessage("The Ophidians have been living too long in the darkness. I have been experimenting with different compounds and different ingredients to find a way to create light, light that lasts much longer than the artificial light that we have. It hath taken me years and years of my life. There have been many accidents with all the devices and the lighting of the Magic Candles. The candles will announce this celebration throughout the sky.~");
		UcSay;
		UcMessage("He who follows the Ways of Balance will shine.~");
		UcSay;
		UcMessage("He who shines will pass the Trials of Fire and Ice.~");
		UcSay;
		UcMessage("He who passes the Trials will enter the Antechamber of the Grand Shrine.");
		UcSay;
	labelFunc02C1_04D6:
		if(!(var0000 == 0x0049)) goto labelFunc02C1_04FC;
		UcMessage("~~ ~~THE DOCTRINE OF CHAOS~~by Vessuvius~");
		UcSay;
		UcMessage("I believe in the Forces and Powers of Chaos.");
		UcSay;
		UcMessage("I believe in the ways of Tolerance, Enthusiasm and Emotion.");
		UcSay;
		UcMessage("I believe that those ways will show me how to better myself and therefore how to better my life.");
		UcSay;
		UcMessage("I believe that believing in Tolerance will teach me the acceptance of all things.");
		UcSay;
		UcMessage("I believe that believing in Enthusiasm will teach me the source of the energy which will allow me to accomplish great tasks.");
		UcSay;
		UcMessage("I believe that believing in Emotion will give me the ability to perceive feelings which come from the heart and not the mind.");
		UcSay;
	labelFunc02C1_04FC:
		if(!(var0000 == 0x004F)) goto labelFunc02C1_051A;
		UcMessage("~~ ~~DEVOTION~~by Eshrashardt~~");
		UcSay;
		UcMessage("The Forces of Order must be stopped. We cannot go on like this much longer. We hope that our beliefs in the Forces of Chaos will help us to survive. If we are able to survive, then our devotion to Enthusiasm will be rewarded in the world beyond our lives. We can hear the Void calling our names. We know we need to follow, but we are not ready yet. We must stop Order first. That must be the purpose of our being here. If we are successful then we can leave this world without feeling guilty. If we stop Order then our lives have not been wasted here. We need to accomplish our task to be able to prove our worthiness. Only in that do we see a way to truly show our gratitude.");
		UcSay;
		UcMessage("SIGNED: Iljosha");
		UcSay;
		UcMessage("SIGNED: Shamshellar");
		UcSay;
		UcMessage("SIGNED: Eshrashardt");
		UcSay;
	labelFunc02C1_051A:
		if(!(var0000 == 0x0050)) goto labelFunc02C1_0530;
		UcMessage("~~ ~~THE SERPENT LAMP POSTS~~by Sivashvos~~");
		UcSay;
		UcMessage("These majestic sculptures, each a great snake poised triumphantly with its mock prey, a shining magical globe, in its mouth, are signatures of our cities.  We owe these magnificent light-bearing monuments to a spellcaster who went by the name Eshalveras. It was he who first poised a light globe on a statue of a serpent, making these statues holy reminders of those we owe our being to, but also functional parts of our cities. I was granted, for purposes of recording for posterity the events of our times, the opportunity to converse with this brilliant mage so as to provide insights into his remarkable creation.");
		UcSay;
		UcMessage("Eshalveras revealed to me that it was naught but three reagents combined to form the luminous mineral which acts as long-lasting fuel for the lamps. All of these, Agnium, Serpentinium, and Zerine, can be found in many wizards' labs, and certainly in Eshalveras' lab within the Conjury. The true magic lies in the pedestal, nondescript in appearance but powerful in magic. The reagents, when placed on the pedestal, fuse to form the light mineral, which can then be used in the lamp posts. Eshalveras is truly a remarkable man; he was able to relate to me many exciting tales of dweomercraft in our day...");
		UcSay;
	labelFunc02C1_0530:
		if(!(var0000 == 0x0053)) goto labelFunc02C1_0542;
		UcMessage("~~THE GREAT HIEROPHANTS~~by Zavajorish~");
		UcSay;
		UcMessage("The first Hierophant ever to commission a pair of our Temples was Sheshevra. He was selected because of his outstanding qualities of leadership and his overwhelming sense of Harmony. He commissioned the Temples of Tolerance and Ethicality. The Ophidians needed a spiritual leader like him to teach them the doctrines of Balance. He was responsible for the Temples and their ways of belief. He was given the authority to perform all important ceremonies of the Serpent People, known as the Ophidians.");
		UcSay;
	labelFunc02C1_0542:
		if(!(var0000 == 0x0054)) goto labelFunc02C1_0554;
		UcMessage("~~THE GREAT HIEROPHANTS~~by Zavajorish~");
		UcSay;
		UcMessage("The last Hierophant to commission a pair of our Temples was Sessessej. He was selected because of his outstanding qualities of leadership and his overwhelming sense of Rationality. He commissioned the Temples of Emotion and Logic. The Ophidians needed a spiritual leader like him to teach them the doctrines of Balance. He was responsible for the Temples and their ways of belief. He was given the authority to perform all important ceremonies of the Serpent People, known as the Ophidians.");
		UcSay;
	labelFunc02C1_0554:
		if(!(var0000 == 0x0055)) goto labelFunc02C1_056E;
		UcMessage("~~THE VOICE~~by Shavazoss~~");
		UcSay;
		UcMessage("With this book I want to express my pride. I am one of the few that are allowed to serve our Great Hierophant and I am proud to serve him. He is one of the few people left in these days who know what life is about. His wisdom and his leadership have shown me the purpose of life. To serve him is quite an experience and I am very thankful to be the one who is blessed with the duty. He hath told me about many events in his life and I want to share these with thee. At one point in his life he visited the Isle of Balance, which is also known as Sunrise Isle. He hath climbed the mountain there to the top. And that is where the most amazing of his stories took place. On top of that mountain he heard the voice of the Great Earth Serpent. The Great Earth Serpent told him to commission the building of the Serpent Gates and the three Grand Shrines...");
		UcSay;
		UcMessage("Believe me reader, when I listened to this, I shuddered with awe...");
		UcSay;
		UcMessage("I still cannot believe that I am the one chosen to be his servant. What a blessing it is...");
		UcSay;
	labelFunc02C1_056E:
		if(!(var0000 == 0x003D)) goto labelFunc02C1_0580;
		UcMessage("~~AT EASE~~Handbook for the Commissioned Soldier~~by Sharzshov~");
		UcSay;
		UcMessage("This handbook will help the Commissioned Soldier to realize how important it is to know how to handle the masses of lower rank soldiers. Only a well trained army is capable of winning a war. The only way to have a well trained army is through the Commissioned Soldier. He is responsible for the training, dedication and devotion of his troops. This is not a training manual. This handbook merely emphasizes the importance of authority. Only the strong and strict leader will receive the respect from his troops that a good leader deserves. Only troops which are willing to take orders are good troops. Therefore troops will follow only orders that are given by a strong leader whom they respect. Conclusion: there is only one rule on how to train masses of soldiers: Showing strength and authority to the lower rank soldiers, the noncommissioned troops. Only the Commissioned Soldier that interacts on a strong and strict basis with his troops will lead them to victory in combat...");
		UcSay;
	labelFunc02C1_0580:
		if(!(var0000 == 0x003F)) goto labelFunc02C1_059A;
		UcMessage("~~DISCIPLINING SOLDIERS~~by Sethmantih~");
		UcSay;
		UcMessage("~	It hath become necessary to create a means of disciplining our soldiery. Though the soldiers we are given to work with are generally obedient and disciplined, on occasion an unruly soldier will appear in the ranks. It would be foolish to merely dismiss this able-bodied man, for in these times of war every hand capable of holding a sword must do so. Nay, dismissal is not the answer.");
		UcSay;
		UcMessage("~	What, then, are we to do with those who resist the teachings of discipline? By what means may we save this soldier from the lure of Chaos and place him firmly back on the path toward being a useful implement with which to smite the Chaotic forces?");
		UcSay;
		UcMessage("~	With these questions our Master did challenge the wisest men in the Temple. I, Sethmantih, did solve these challenges...");
		UcSay;
	labelFunc02C1_059A:
		if(!(var0000 == 0x0040)) goto labelFunc02C1_05BC;
		UcMessage("~~MY JOURNEY~~by Shartmannah~");
		UcSay;
		UcMessage("On my journey to find the Serpent Fountain I was troubled many times with doubt about my quest. Was I doing the right thing? Was I taking the correct path? How much longer could I resist the urge to accept failure?");
		UcSay;
		UcMessage("I hunted through the master's chambers, stared into the coffins of those who once cared for the temple, and searched the library for the keys and implements necessary to complete the quest. The Master would only tell me two things; that I would have no reason to leave the temple, and that somewhere on the path my discipline would be tested.");
		UcSay;
		UcMessage("I speak only in generalities, lest my words be seen by the wild eyes of one undisciplined. I doubt not that such a person would die on the way to the water, but there are wards against death in all its incarnations.");
		UcSay;
		UcMessage("My discipline was indeed tested, and tested harshly. The key to completing my quest was perseverance. I had to search the same place many times and not admit defeat; I had to discipline my mind to keep it from wandering. The hardest part of the path to the fountain lay just before it, and I bear the scars on my feet, but, as is taught here, if one can only discipline the mind, the body can then be trained. I pushed the pain from my mind, so that I did not feel the acid searing my flesh, eating away at my skin. When finally I did reach the fountain, the test was not over -- to return to the temple proper, I had to brave the acid again.");
		UcSay;
		UcMessage("The test made me strong, obedient, disciplined. Had I failed, I would be as one of those whose hearts I seek to skewer; chaotic and undisciplined. Due to the lessons of discipline I had learned, I was able to not only force the pain from my mind as the acid tried to eat my legs away, but steel my flesh against it so that now only the soles of my feet bear mild scars...");
		UcSay;
	labelFunc02C1_05BC:
		if(!(var0000 == 0x005E)) goto labelFunc02C1_05CE;
		UcMessage("~~ ~~THE BOOK OF THE FELLOWSHIP~~ ~~by Batlin of Britain.*");
		UcSay;
		UcMessage("     Good morning to thee, gentle friend and traveller! No matter what time of day it might be when thou art reading this -- no matter what the hour of the clock -- I say good morning to thee because this very moment brings to thee the coming of the dawn. The dawn, as everyone knows, is the moment when illumination comes. The dawn marks the end of the long dark night. It is the moment that marks a new beginning. It is mine humble hope that these words may be for thee a dawning, or at least, a sort of awakening...");
		UcSay;
	labelFunc02C1_05CE:
		if(!(var0000 == 0x005F)) goto labelFunc02C1_05F0;
		UcMessage("~~ ~~LORD BRITISH~~The biography of Britannia's longtime ruler~~ ~~ by K.Bennos*");
		UcSay;
		UcMessage("     ...While many may remember that Lord British was once but one of eight monarchs (back when the lands were known as Sosaria), few are aware that he is not even a native of our own lovely Britannia. His origin is from another world, one from which he entered ours by way of a red moongate. (In fact, it is through this same type of gate that the Avatar of legend purportedly enters Britannia.) As ruler of one of the eight kingdoms, he was instrumental in selecting a champion to face Mondain, Minax, and Exodus.~");
		UcSay;
		UcMessage("     When the terrible machine, Exodus, was defeated, 'twas Lord British behind whom all the people of Sosaria rallied. The unified land become known as Britannia, with Lord British as the sole monarch. Though never let it be said he rules with a tyrannical hand. His reign hath always been one of Truth, Love, and Courage, supported by his utmost belief in the eight virtues.~");
		UcSay;
		UcMessage("     It was Lord British who had the insight to call forth a quest for the Avatar (who also happened to be the champion from the days of Sosaria), and who gave prosperity and happiness unto the people.~");
		UcSay;
		UcMessage("     Then came his mysterious disappearance, when the Stranger who became the Avatar was called by his companions to aid in the search for the lost monarch. Note how Lord Blackthorn, affected by the Shadowlords, quickly turned Britannia's fair lands into a place of terror. But find our noble Lord the Avatar did, and Britannia was restored to its former, peaceful state.~");
		UcSay;
		UcMessage("     Then came the Gargoyles, and our honorable sovereign thoughtfully requested the return of the Avatar...");
		UcSay;
	labelFunc02C1_05F0:
		if(!(var0000 == 0x0041)) goto labelFunc02C1_0602;
		UcMessage("~~THE WAR OF ORDER AND CHAOS~~by Ssanettess~~");
		UcSay;
		UcMessage("No one truly knows what happened to cause the war between the Forces of Chaos and Order about 300 years ago. No one can say for sure that he knows which devilish thoughts possessed people to fight each other when they were supposed to love each other and treat each other with respect. But everyone hath been paying for it since the war ended. The Order Forces won the war, and imprisoned the Chaos Forces. But what exactly did they win? It seems that they miss their brothers and sisters now. And who is to say that the Order Forces enjoyed throwing the Chaos Forces into confinement. Going back to the days before the war, living in peace with the Chaos Forces would be a dream come true for me...");
		UcSay;
	labelFunc02C1_0602:
		if(!(var0000 == 0x0042)) goto labelFunc02C1_0618;
		UcMessage("~~THE SYMBOL OF DISCIPLINE~by Sharless~~");
		UcSay;
		UcMessage("The Symbol of Discipline is a reminder of what we, the Initiates of Discipline, must strive for. Consisting of three prongs, they symbolize the following: Mind, Body, and Environment. The mind is the first level of discipline; without Discipline of the Mind, one cannot master the other levels of discipline. Discipline of the Body is the second level of discipline, for one cannot master one's surroundings without first mastering one's self. The third branch of the symbol represents Discipline of Environment. This branch, added to represent the superiority of Order, justifies the military's presence here; if one can master one's self, one can then master the world around him, and drive Chaos out from his environment.");
		UcSay;
		UcMessage("The symbols here in our temple are not mere inspiration, however. The Altar before the serpent statue doth have upon it two slots. In order to insure the security of our temple, the automatons are aided by a safeguard against defilers -- bolts of lightning fire from the altar unless the quartz symbol is placed in the slot on the left side. A bridge spanning the water around the statue is called into being if the obsidian symbol is placed in the right slot; if it is not there, none can gain access to the Water of Discipline.");
		UcSay;
	labelFunc02C1_0618:
		if(!(var0000 == 0x0044)) goto labelFunc02C1_062A;
		UcMessage("~~THE BOOK OF DISCIPLINE~by Shrosvitash~");
		UcSay;
		UcMessage("The ultimate wisdom of life may only be reached through discipline. It takes strength and concentration to follow the guidelines of discipline. Therefore the weak and distracted mind will fail. The weak and distracted mind will not have the power to succeed. And only that power will take thee to the top. But there is no	room for the weak at the top. Only the strong mind will find a place there.");
		UcSay;
	labelFunc02C1_062A:
		if(!(var0000 == 0x0045)) goto labelFunc02C1_063C;
		UcMessage("~OUR GREAT LEADERS~by Shilonar~~");
		UcSay;
		UcMessage("The religion of our great nation must have leaders, worthy leaders. There are things, events and ceremonies, that require a person of great trust. The nation hath decided to choose trustworthy people for those positions and give them certain ranks. Full of respect do we call the leader of the Shrine of Balance our Great Hierophant. Only the Great Hierophant can perform the important ceremonies at the Grand Shrine of Balance. During those ceremonies, however, he receives help from the leaders of the Shrine of Order and Chaos. They have the rank of Order Hierophant and Chaos Hierophant. All three have assistants to help them with their duties; these are the sub-leaders. These assistants are of high rank also and we give them the title of Master. These Masters are the leaders of our Temples. Each one of them is authorized to perform ceremonies in their own Temple.");
		UcSay;
	labelFunc02C1_063C:
		if(!(var0000 == 0x0046)) goto labelFunc02C1_064E;
		UcMessage("OUR BLESSED SERPENT ISLE~by Shovaresh~");
		UcSay;
		UcMessage("Our beloved Serpent Isle is the prettiest country there is. No place can be more enjoyable for mankind. It is so peaceful. There is no anger or distrust in the population. Everything is balanced, people live together well. There cannot be any other place in any other dimension that could possibly be more peaceful or more blessed with beauty. Only balance is responsible for the well-being of this country. Only balance makes it possible for people to live together in peace. Only balance will provide good harvests, which provide enough food. People that have enough to eat are happy and do not have to worry whether they are going to live to the next day. Balance is the ultimate way to freedom and peace. The beauty of our country cannot be put into words. One must go and discover it for himself.");
		UcSay;
	labelFunc02C1_064E:
		if(!(var0000 == 0x0047)) goto labelFunc02C1_066C;
		UcMessage("IS THERE HOPE?~by Shovaughana~");
		UcSay;
		UcMessage("I do not know what to do anymore. I am desperate. We are all going to die, I know it. I and my children are going to die and there is no way for me to protect mine own flesh and blood...~");
		UcSay;
		UcMessage("It all began with the soldiers entering the city. Without any warning they attacked us. They began to kill people immediately, the elderly, the children and us women. Those heartless and cold-blooded bastards do not care...");
		UcSay;
		UcMessage("Mine only hope is that our men will return in time to defend and protect us. Our food supplies are frighteningly low. Soon we all will be starving. I am already eating only the bare minimum. All my rations I give to my children, hoping that they will survive until our rescuers arrive. I need to support them in every way I possibly can, they are our future -- they are my life. I could not forgive myself if anything happened to them...");
		UcSay;
		UcMessage("I do not know if I have the strength to wait for the rescue. If there is no chance for us to survive and wait for them, I will have to choose. The choice is between letting those murderers enjoy us -- or else...");
		UcSay;
	labelFunc02C1_066C:
		if(!(var0000 == 0x0048)) goto labelFunc02C1_068A;
		UcMessage("WAR OF IMBALANCE~by Suranniss~~");
		UcSay;
		UcMessage("This shall be the last entry I make before following my kinsmen to a better life. 'Tis appropriate, I think, that I use a newly bound book with the finest vellum; after all, it may be an Age or more before 'tis found -- if ever.~ Before I continue, I should write a few words about mine homeland -- Serpent Isle.~");
		UcSay;
		UcMessage("Before the War of Imbalance, the dreadful war that did tear asunder our beloved homeland, Serpent Isle was a fair land indeed.~ The land was in Harmony: our people were at peace -- secure within our glorious subterranean cities. The arts prospered under the generous patronage of our most beloved Hierophant, blessed be his name, and no citizen went hungry or was bereft of a home. We were content and happy; we had no reason to suspect that our happiness would not continue indefinitely. We were so naive.~ The War of Imbalance started simply enough, but by the time 'twas over most of our people were slaughtered, our cities devastated, and the land laid waste.~");
		UcSay;
		UcMessage("I have been lucky, for I have survived to write about the tragedy. I cannot say the same thing about many of my friends -- they are all dead.~ Even as I write, the Adepts are scurrying about, preparing for the great ceremony that shall energize the Wall of Lights. Soon, I and my surviving comrades shall leave our shattered land, never to return. I am afraid of the future, but I know I cannot live in the past. I can only remember the past. I shall strive to remember the times of joy and try to forget the ashen, bitter memories of the war.~ The Adepts are ready, they have begun the ceremony. I feel a great surge of power! The light! 'Tis blinding! The Adepts have succeeded. The Wall of Lights is so beautiful...");
		UcSay;
		var0001 = true;
	labelFunc02C1_068A:
		if(!(var0000 == 0x004C)) goto labelFunc02C1_06B0;
		UcMessage("A TREATISE ON THE CONSTRUCTION OF LIVING GEMS~~ by Ssyorsik~~");
		UcSay;
		UcMessage("	The construction of living gems requires many a component as well as Pure Discipline.");
		UcSay;
		UcMessage("This Treatise contains the exact formulae and incantations which thou dost perform in order to succeed in the construction of living gems.");
		UcSay;
		UcMessage("The magical fabrication of gems is one thou shouldst be warned about. For thee and thy kindred, make no attempt if thou dost doubt thy magical powers.");
		UcSay;
		UcMessage("Ice Worms are to be found. The Ice Worm doth have to be destroyed. Then wrest its heart from the body. The Worm Heart is cold and hard.");
		UcSay;
		UcMessage("The soul of brave warriors who fight magnificently in combat within the Harvest Moon period, or any equinox, escape the battlefield and may be contained within such a gem. Hence the name 'living gem'.");
		UcSay;
		UcMessage("Once infused with the soul of a glorious warrior, such gems are placed inside the automatons. This is what gives them true life.");
		UcSay;
	labelFunc02C1_06B0:
		if(!(var0000 == 0x004D)) goto labelFunc02C1_06C2;
		UcMessage("~~THE TRUE BELIEVERS~ by Sschadams*");
		UcSay;
		UcMessage("The true believers are not only to be found at the rituals and ceremonies. There are many poor souls out there who are pretending they do not believe in religious gatherings and activities. They want to make us believe that they do not need anyone for the sake of their souls. They are wrong, and deep down in their hearts, they know it, too. Sooner or later they will attend ceremonies. Most of them do not come back for a while, but that one appearance rouses their curiosity enough to attend again. It takes courage to admit that everyone needs some kind of belief. I understand that and I do not push for their trust. I know that deep down, underneath all that ruin, is a soul that wants to be rescued. It takes time, but I have all the time I ever need. I can wait and I will. I know that my day will come. And then I will open mine arms and welcome them into our religious community. There is room for everyone, no one will be turned away. And no one will be pressured to join us.");
		UcSay;
	labelFunc02C1_06C2:
		if(!var0001) goto labelFunc02C1_06FE;
		UI_move_object_4B(0xFE9B, [0x0121, 0x03B7, 0x0000]);
		UI_play_sound_effect_16(0x0082);
		UI_obj_sprite_effect_91(0xFE9C, 0x0020, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, Dupre);
	labelFunc02C1_06FE:
		if(!(var0000 == 0x0097)) goto labelFunc02C1_0724;
		gflags[0227] = true;
		UcMessage("~~ ~~Body Transference~~  ~~The Ultimate Warrior~~");
		UcSay;
		UcMessage("~    When a warrior hath demonstrated unswerving Discipline, the Order Hierophant may approve the creation of the Ultimate Warrior.");
		UcSay;
		UcMessage("~    The candidate must be willing to cast aside his or her own body in favor of that of an undying automaton. This is the highest honor of Order... to serve as Order's warrior through all time.");
		UcSay;
		UcMessage("~    The candidate shall be conducted to the chamber with all pomp and pageantry. Upon the left dais shall stand the inanimate automaton husk. The candidate shall ascend to the right dais after the transference button hath been pressed.");
		UcSay;
		UcMessage("~    Once the bodies have been transferred, the Final Test of Discipline must be completed. In this, the candidate must strike down the now-empty husk that he or she formerly knew as his or her body. Until this is done, the body transfer is not complete and the process will reverse unless the organic husk is destroyed.");
		UcSay;
		UcMessage("~    Some few candidates may find themselves unable to withstand the transference, and as such would normally be considered failures. But it is the Order Hierophant's wishes that no stigma be attached to this weakness. The candidate shall be allowed to live the remainder of his or her life in service to Order, being an exemplar in all but the Final Test of Discipline.");
		UcSay;
	labelFunc02C1_0724:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func02C3 0x2C3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event != 0x0001)) goto labelFunc02C3_0009;
	exit2();
	labelFunc02C3_0009:
		var0000 = UI_get_item_quality_1C(item);
		if(!(var0000 == 0x001F)) goto labelFunc02C3_00A9;
		UI_close_gumps_98();
		var0001 = UI_get_object_position_20(item);
		var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
		var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
		UI_remove_item_84(item);
		var0002 = Func0992(0x0001, "@The scroll talks!@", "@The scroll talks...@", true);
		UI_sprite_effect_68(0x0015, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0003 = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0001), [0x23, 0x27, 0x000D, 0x55, 0x041F]);
		abrt();
	labelFunc02C3_00A9:
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		if(!(var0000 == 0x0000)) goto labelFunc02C3_00C7;
		UcMessage("From the desk of the Great Hierophant.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_00C7:
		if(!(var0000 == 0x0001)) goto labelFunc02C3_00E8;
		UcMessage("A SOLDIER'S NOTES~~");
		UcSay;
		UcMessage("These sheep all went to their deaths with smiles on their accursed faces!~");
		UcSay;
		UcMessage("We pulled out their fingernails, seared their flesh with burning coals, peeled their skin back with rusty knives, gouged out their eyes with sharp sticks, and still they said nothing!~");
		UcSay;
		UcMessage("We must have the answer. But I cannot obtain the answer to my question now that they all lie dead. Could there be any truth to the old one's claim that \"meditation leads to enlightenment?\"");
		UcSay;
		UcMessage("~Whatever the answer may be, there is no time left. We must go. I have ordered the destruction of the temple -- there	must be no trace of this structure left...");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_00E8:
		if(!(var0000 == 0x0002)) goto labelFunc02C3_00FD;
		UcMessage("MUSINGS, by Issik the Architect~~");
		UcSay;
		UcMessage("  The snowswept surface of Sunrise Isle is totally barren. No life can live long upon the surface. It is a good thing, indeed, that the Great Hierophant decreed that it was too dangerous to allow access to the surface.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_00FD:
		if(!(var0000 == 0x0003)) goto labelFunc02C3_0112;
		UcMessage("MAGIC CANDLES~~");
		UcSay;
		UcMessage("  The devout follower of Balance will know how to form the blocks of ice which are necessary in achieving Balance. To those of you who have forgotten your lessons, take heed: Take the magic tapers to the Walls of Ice. Therein, use the tapers upon the walls.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0112:
		if(!(var0000 == 0x0004)) goto labelFunc02C3_0123;
		UcMessage("Create Soul Prism~~ This spell doth enchant a prism so that it may become the receptacle for a soul. Though powerful, this spell hath limited applications. The reagents necessary are: sulfuric ash, blood moss, garlic, mandrake root, spider silk, and serpent scales. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0123:
		if(!(var0000 == 0x0005)) goto labelFunc02C3_0134;
		UcMessage("Create Automata~~ This spell is actually misnamed, for it doth not create automata, rather, it repairs them. If thou dost have a damaged automaton, simply cast this spell over the body and it shall be fully restored. The necessary reagents to cast this spell are as follows: sulfuric ash, mandrake root, spider silk, and serpent scales. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0134:
		if(!(var0000 == 0x0006)) goto labelFunc02C3_0145;
		UcMessage("Create Ice~~ This spell immobilizes a chosen enemy in a block of ice. After a short period of time, the ice shatters, and the foe is released. Only two reagents are necessary to cast this spell: worm heart and spider silk. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0145:
		if(!(var0000 == 0x0007)) goto labelFunc02C3_0156;
		UcMessage("Invoke Serpent~~ This spell summons a snow serpent that is \"friendly\" to the caster. The reagents necessary to cast this spell are as follows: blood moss, garlic, worm heart, spider silk, and serpent scales. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0156:
		if(!(var0000 == 0x0008)) goto labelFunc02C3_0167;
		UcMessage("Serpent Bond~~ This powerful spell transforms the caster into a serpent for a short duration. This spell is very useful for obtaining ingress into places ordinarily inaccessible, such as a small crawlspace. ~The reagents necessary to cast this spell are as follows: blood moss, black pearl, garlic, worm heart, spider silk, and serpent scales. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0167:
		if(!(var0000 == 0x0009)) goto labelFunc02C3_0178;
		UcMessage("Imbalance~~ This powerful spell is very dangerous. The energy released by this spell sprays out in a random pattern, usually destroying whatever is hit.~ The reagents necessary to cast this spell are as follows: blood moss, sulfuric ash, worm heart, nightshade plant, and serpent scales. ");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0178:
		if(!(var0000 == 0x000A)) goto labelFunc02C3_0189;
		UcMessage("'Tis a wise man that doth know the contented man is never poor, whilst the discontented man is never rich...");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0189:
		if(!(var0000 == 0x000B)) goto labelFunc02C3_019A;
		UcMessage("When a man finds no peace within himself, 'tis useless to seek it elsewhere...");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_019A:
		if(!(var0000 == 0x000C)) goto labelFunc02C3_01AB;
		UcMessage("Thou canst never teach a person anything. Thou canst only help him discover wisdom himself...");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_01AB:
		if(!(var0000 == 0x000F)) goto labelFunc02C3_01BC;
		UcMessage("Things unsavory may often be necessary. All Causes are not what they seem. What appears evil often can be good. Never discount.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_01BC:
		if(!(var0000 == 0x0010)) goto labelFunc02C3_01CD;
		UcMessage("The Hero from Another World must encounter again what he thought eradicated. The Cause is good this time.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_01CD:
		if(!(var0000 == 0x0018)) goto labelFunc02C3_01DE;
		UcMessage("~~Those who desire to meditate need only kneel before the serpent.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_01DE:
		if(!(var0000 == 0x001C)) goto labelFunc02C3_01F7;
		UcMessage("~~	The Ethical Man obtains his strength through Ethics.");
		UcSay;
		UcMessage("Hence, he is stronger as well as more daring.");
		UcSay;
		UcMessage("The Ethical Man would risk his life to save another man's life");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_01F7:
		if(!(var0000 == 0x001D)) goto labelFunc02C3_0218;
		UcMessage("~On the topic of Wealth and Ethics:");
		UcSay;
		UcMessage("To be truly ethical, thou shouldst reject Wealth.");
		UcSay;
		UcMessage("Wealth corrupts the soul. It doth do so by placing a greater value upon goods and material possessions rather than upon the \"anima\", that is the living matter or spiritual matter. Spiritual kinship should be established as early as possible instead of the numerous tentative efforts by parents and the various communities to establish a Wealth kinship.");
		UcSay;
		UcMessage("Believing thou shouldst abide by rules of conduct, learning well and being of good rule and disposition are what will make an ethical Man of thee. Wealth turns too many men away from rules of conduct.");
		UcSay;
		UcMessage("Quickly enough, young men like thee become wastrels and haunters of alehouses, thereby losing their temporary possession, Wealth, but above all losing their richest dowry, their only true wealth, their soul. Ethics will prevent thee from following that path. Reject Wealth, my dear reader and most assured brother, and be truly ethical.~ I hope I have convinced thee, for if so, I have saved thee.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0218:
		if(!(var0000 == 0x001E)) goto labelFunc02C3_022D;
		UcMessage("Never, NEVER, surrender to thine enemies.");
		UcSay;
		UcMessage("Fight to the death, but do not abandon thine Ethics.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_022D:
		if(!(var0000 == 0x003D)) goto labelFunc02C3_023E;
		UcMessage("~The serpent of gold can send thee along the path to knowledge, but only if balanced by wisdom. Thou mayest already have felt the ill fortune brought about by wealth without wisdom; now use thy newfound wisdom to balance the power of gold.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_023E:
		if(!(var0000 == 0x003E)) goto labelFunc02C3_024F;
		UcMessage("In the event that the waiting lizard should become uncontrollable, use this hammer, but be warned that using it foolishly will result in punishment for it is not easily replaced.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_024F:
		if(!(var0000 == 0x003F)) goto labelFunc02C3_0268;
		UcMessage("~Do thou not despair, general, for the Arrows of Discipline");
		UcSay;
		UcMessage("are well hidden.");
		UcSay;
		UcMessage("If thou hast need of them, I will provide them.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0268:
		if(!(var0000 == 0x0040)) goto labelFunc02C3_0279;
		UcMessage("~Thou hast proven, through thy discipline, to be worthy.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0279:
		if(!(var0000 == 0x0041)) goto labelFunc02C3_028A;
		UcMessage("~Drink thou of the fountain and feel the Force of Discipline flow through thee.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_028A:
		if(!(var0000 == 0x0042)) goto labelFunc02C3_029B;
		UcMessage("~Congratulations to thee, initiate. Thou hast found the symbol of balance.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_029B:
		if(!(var0000 == 0x0043)) goto labelFunc02C3_02AC;
		UcMessage("~It is thy duty to meet thy death protecting the women and children. Their lives are the wellspring of our strength; draw courage from the knowledge that it is thy body which stands between the foul blades of Order and their hearts.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_02AC:
		if(!(var0000 == 0x0044)) goto labelFunc02C3_02C5;
		UcMessage("~Move one of the stones so that there are two straight lines");
		UcSay;
		UcMessage("of four stones that cross each other at the center point of");
		UcSay;
		UcMessage("each line");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_02C5:
		if(!(var0000 == 0x004B)) goto labelFunc02C3_02DA;
		UcMessage("~Here doth lie Ssithnos, foully murdered in his unrelenting");
		UcSay;
		UcMessage("service to balance.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_02DA:
		if(!(var0000 == 0x004D)) goto labelFunc02C3_02EB;
		UcMessage("~Let this be a final warning: Those who enter this room lacking in discipline will forfeit their lives.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_02EB:
		if(!(var0000 == 0x004E)) goto labelFunc02C3_02FC;
		UcMessage("Those who know not the password, Despair! The brass gate bars thy way, would-be intruder, and only those privy to the secret password know when to use the runes! Crawl back to your cities of structured folly and temples of Order, dog!  As I lie here, slowly dying of starvation, I laugh at thy fate, for though our city hath fallen, fool, thou wilt not use my gate as a means of ingress! Here in our city, your fellow dogs revel in their victory, knowing not that I have sealed them within! There, look! A general shakes his fist at me through the brass gate, sealed within! Nay, Order dogs, thou wilt not use my gate to send your metal slayers toward my fellows! Thou wilt have to use the serpent gates to conquer the southern lands! I can die in peace, knowing that, though mine home lies in ruin and the Chaos that is our city is now under the control of the enemy, my gate will stand closed for all eternity!");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_02FC:
		if(!(var0000 == 0x0050)) goto labelFunc02C3_0321;
		UcMessage("I write this in great haste, for I can already hear the forces of Order breaching the keep walls. I know not how this missive will survive to reach the outside lands, or for that matter, future generations. Mine only hope is that this speedily-drafted work will offer record of our hallowed philosophy. For our culture to have any chance of enduring the ages, someone, somewhere must find this. Please, reader, I beseech thee, spread the word of our peoples. Balance -- The harmony between the Principles of Order and Chaos -- is the one pure axiom we hold true. All three Principles are symbolized in our hieroglyphs: The Great Earth Serpent, keeper of Balance, lies on a vertical plane, around which the two opposing serpents of Chaos and Order wrap themselves.");
		UcSay;
		UcMessage("Chaos and Order each embrace three Forces. These six Forces, when combined, form the three Principles of Balance. The Forces of Chaos are Tolerance, Enthusiasm, and Emotion; the Forces of Order are Ethicality, Discipline, and Logic.");
		UcSay;
		UcMessage("CHAOS -- Tolerance is that which encourages the acceptance of all things. Enthusiasm is the energy that allows one to perform great tasks. Emotion is the ability to perceive those feelings that come from the heart, as opposed to coming from the mind.");
		UcSay;
		UcMessage("ORDER -- Ethicality is the belief that there is great value in abiding by rules of conduct. Discipline is the drive to complete a task and avoid the distractions that will prevent its completion. Logic permits clear, reasoned thought, free from any instinctual biases.");
		UcSay;
		UcMessage("BALANCE -- From the marriage between two Forces, one each from Chaos and Order, come the Principles. Tolerance and Ethicality combine to form Harmony, the ability to be at peace with the self, the individual, and the world. From the union of Enthusiasm and Discipline springs Dedication, that which permits one to surmount obstacles and lead others. Finally, Emotion tempered by Logic results in Rationality, the ability to comprehend life and understand the world around us. The Forces of Chaos and Order must ever remain in Balance, for imbalance leads to disaster. Witness the war-torn state of our world today! As thou canst surely see, my world hath been torn asunder by disregard for Balance -- our dearest axiom! If thou dost thrive in a time less violent, I can do no more than plead with thee to help restore Balance to the Serpent Isle! I must end this brief explication here, for I can hear mine attackers pounding upon the oaken door downstairs.");
		UcSay;
		UcMessage("I wish thee and thy world better fortune than mine own. -- Ssithnos, the Great Hierophant");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0321:
		if(!(var0000 == 0x0051)) goto labelFunc02C3_033A;
		UcMessage("~The Chaos vermin took their own lives");
		UcSay;
		UcMessage(" rather than face us.");
		UcSay;
		UcMessage("	Let them rot!");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_033A:
		if(!(var0000 == 0x0052)) goto labelFunc02C3_034F;
		UcMessage("~			Sceptre of Enlightenment.");
		UcSay;
		UcMessage("True dedication places Enlightenment above all else.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_034F:
		if(!(var0000 == 0x0053)) goto labelFunc02C3_0360;
		UcMessage("~Revere these remains, for they are the ashes of the brave initiates who sacrificed their bodies for the greater victory of Order over Chaos. Theirs are the minds that make the Lords of Discipline more than mere automatons. Their sacrifice will bring ultimate victory to our cause, for none can stand against an automaton with the Will and Discipline of an initiate!");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0360:
		if(!(var0000 == 0x0054)) goto labelFunc02C3_0375;
		UcMessage("~Report on the Cleansing of the Fiend's Domain~");
		UcSay;
		UcMessage("~Subcommander Stherask, I regret to inform thee that, of the entire company of brass automatons, not one has returned. This mission has not only proven costly in terms of the efforts expended by our wizards to create these automatons, but in the lives of brave soldiers as well.  Of the three humans we had sent on the mission, Lieutenant Alspeth and her two sergeants, Shesparios and Iskil, none have returned.  We can only fear the worst in this case; the mission has failed.  Were it not for the unfaltering faith I have in thee and our Commander, I would question the value of our attempt, as the Fiend has ceased to meddle in the affairs of Serpent's Fang.  I assure thee, Subcommander, that none blame thee for the deaths of those three fine warriors.  All who know of the failed mission have no doubts that this was a just cause for loss of lives.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0375:
		if(!(var0000 == 0x0063)) goto labelFunc02C3_0396;
		UcMessage("~Ritual of Reunification. ~");
		UcSay;
		UcMessage("~  First -- Open the window into the Void by placing the Blackrock Serpent in its proper slot.");
		UcSay;
		UcMessage("~  Second -- Each imprisoned Bane must be placed upon the altar corresponding to its Principle. Unrestrained Emotion leads to Madness. Unchecked Enthusiasm leads to Wantonness. Unthinking Tolerance produces Anarchy. The Flame of Chaos shall welcome each Bane to its proper place.");
		UcSay;
		UcMessage("~  Third -- That which shall bond the Banes together must be placed upon the remaining altar.");
		UcSay;
		UcMessage("~  If all is done correctly, Chaos shall be reunited.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0396:
		if(!(var0000 == 0x0078)) goto labelFunc02C3_03B3;
		UcMessage("~Ethicality. ~");
		UcSay;
		UcMessage("~	As a follower of Order thou must always conform to the principles of conduct as accepted by our alliance. Without these as guides we as a people would be lost. We would be no better than those who are controlled by Chaos.");
		UcSay;
		UcMessage("~	We are far better than those who permit anarchy to control their lives and their thoughts. We must be eternally vigilant to insure that our system of ethics stands strong, that it must not be corrupted from within. We must insure that we remain pure, for corruption is the strength of our enemy, though it will be his own undoing should we stand aligned against it.");
		UcSay;
		UcMessage("~	Student of Ethicality, take heed! Thou must be stronger than thou art in order to stand against the false truths that Chaos will tempt thee with. As iron is in a forge, thou wilt be blasted with the torrent of Chaos and corruption 'til thou wilt lose thy brittleness and harden into a core of strength. Through Ethics, thou canst become free of the anarchy and pain that lies within Chaos and ignorance.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_03B3:
		if(!(var0000 == 0x0079)) goto labelFunc02C3_03D4;
		UcMessage("~Library of the Hierophant ~~ 	The Great Library of the Hierophant contains all the history and knowledge that defines and guides the followers of Order. Though it is hidden away within the bowels of the mountain, a student of Order may enter it through the portal in the Temple of the Hierophant.");
		UcSay;
		UcMessage("~	In times of disaster and of war, the Great Library was sealed to prevent its valuable works from being destroyed, or from falling into the hands of Chaos. Entry into the Library meant first opening the door to the Temple of the Hierophant.");
		UcSay;
		UcMessage("~ This could only be achieved by a student placing the correct symbols of Order on the pedestal before the door to the temple. Since only true followers of Order would have the understanding of the symbols, this was the first test to prevent those of Chaos from desecrating both Temple and Library.	Only those who have studied	the writers and poets of Order will have the wisdom and knowledge to open the door.");
		UcSay;
		UcMessage("~	Once the door opens the student doth need the Sceptre of the Hierophant to gain entry into the Library. Since the Hierophant keeps it in his charge, only by asking his permission can one gain access. Should the Sceptre be lost, or the Hierophant killed in battle, the Library will remain forever closed, away from the corruptions of Chaos.");
		UcSay;
		UcMessage("~	With Sceptre in hand, the student must stand in front of the blue pedestal of the temple. He must place the Sceptre atop the pedestal. The student will then gain instant access to the Library. All knowledge of Order is held there as a bastion against corruption and Chaos.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_03D4:
		if(!(var0000 == 0x007A)) goto labelFunc02C3_03E9;
		UcMessage("~What is Order? a poem by Sschittek the Wise ~");
		UcSay;
		UcMessage("~	What is Order? ~Is it a rule? ~Is it a law? ~Is it a whip with barbs to control the unruly? ~It is not any of these, it is more... ~It is wisdom, it is knowledge, ~It is a sense of duty!~ ~Ethicality is a Scroll, ~speaking of principles, ~of wisdom and of freedom ~from fear and hate. ~It is a gleam of sunrise ~guiding thee toward enlightenment ~and to thy true fate.~ ~Discipline is strength of the mind, ~born of willpower and knowledge, ~cleansing like a noon summer shower. ~It is a well-honed Serpent Dagger, ~a blade that cuts through ~Chaos and corruption's foul power.~ ~Logic is a straight path, ~without obstacles or brambles, ~free from both rock and tooth. ~Logic is precise and unswerving, ~counting Order's truth on an ~eternal Abacus	of Truth.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_03E9:
		if(!(var0000 == 0x007B)) goto labelFunc02C3_03FA;
		UcMessage("~To commune with the Serpent one must be in possession of the Earrings of the Serpent. Only via these can the Great Serpent channel his words to thee. ~To be at one with Balance one must have the blackrock Serpents of Order, Chaos, and of Balance. ~To enter into the Grand Shrine of Balance one must wear the Armour of the Serpent, carry the great Staff of the Serpent, and wear the Crown of the Serpent upon one's head. ~Only after these are obtained may one enter the most sacred of sanctums of the people of the Ophidian order.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_03FA:
		if(!(var0000 == 0x007C)) goto labelFunc02C3_0426;
		UcMessage("~I have blocked the entrance to the Catacombs beneath our outpost with walls of force. None may pass ere this key is used. If thy need is great, and thou dost follow in the steps of Order, thou shalt know what to do to retrieve Loriel's Gift. ~~Ardiniss");
		UcSay;
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0000, 0x0001), [0x55, 0x0603], 0x0001);
		goto labelFunc02C3_043B;
	labelFunc02C3_0426:
		if(!(var0000 == 0x007D)) goto labelFunc02C3_0437;
		UcMessage("~NOTES: ~~I have looked for a way through to the other chambers of this cursed outpost, but have yet found nothing. I did discover that the well in the southernmost chamber was empty. By using rope I lowered myself down into the darkness. ~At the last chamber I could go no further -- a wall of some kind of eldritch force blocked my way. I discerned that no ordinary key would grant me passage. ~I will search for this key.");
		UcSay;
		goto labelFunc02C3_043B;
	labelFunc02C3_0437:
		UcMessage("     This is not a valid scroll.");
		UcSay;
	labelFunc02C3_043B:
		return;
}
Func02C4 0x2C4 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc02C4_0046;
	var0000 = UI_get_item_frame_1A(item);
	var0001 = var0000;
	if(!(var0000 == 0x0001)) goto labelFunc02C4_0026;
	var0001 = 0x0000;
	labelFunc02C4_0026:
		if(!(var0000 == 0x0000)) goto labelFunc02C4_0036;
		var0001 = 0x0001;
	labelFunc02C4_0036:
		UI_play_sound_effect2_A1(0x0046, item);
		UI_set_item_frame_1B(item, var0001);
	labelFunc02C4_0046:
		return;
}
Func02C5 0x2C5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc02C5_0024;
	var0001 = ["POST NO", "PLAQUES HERE", "ON PAIN OF DEATH"];
	goto labelFunc02C5_06AF;
	labelFunc02C5_0024:
		if(!(var0000 == 0x0002)) goto labelFunc02C5_003A;
		var0001 = ["CHOOSE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_003A:
		if(!(var0000 == 0x0003)) goto labelFunc02C5_0059;
		var0001 = ["A WISE MAN KNOWS", "THAT BLOOD", "IS MORE IMPORTANT", "THAN WEALTH"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0059:
		if(!(var0000 == 0x0004)) goto labelFunc02C5_0078;
		var0001 = ["DIVESTING", "THY GREED", "BESTOWS", "FREEDOM"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0078:
		if(!(var0000 == 0x003D)) goto labelFunc02C5_0094;
		var0001 = ["PLACE THINE", "OFFERINGS UPON", "THE ALTAR"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0094:
		if(!(var0000 == 0x003E)) goto labelFunc02C5_00B0;
		var0001 = ["PEACE TO THOSE WHO", "FOLLOW THE PATH", "OF THE SERPENT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_00B0:
		if(!(var0000 == 0x003F)) goto labelFunc02C5_00CC;
		var0001 = ["PLACE", "OF", "MEDITATION"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_00CC:
		if(!(var0000 == 0x0040)) goto labelFunc02C5_00E8;
		var0001 = ["TO CONTINUE", "IN", "BALANCE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_00E8:
		if(!(var0000 == 0x0041)) goto labelFunc02C5_0104;
		var0001 = ["FIRST", "INTO THE", "VOID"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0104:
		if(!(var0000 == 0x0042)) goto labelFunc02C5_011D;
		var0001 = ["STAND", "HERE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_011D:
		if(!(var0000 == 0x0043)) goto labelFunc02C5_0139;
		var0001 = ["BALANCE", "IS", "WISDOM"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0139:
		if(!(var0000 == 0x0044)) goto labelFunc02C5_0155;
		var0001 = ["HEART OF", "THE", "SERPENT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0155:
		if(!(var0000 == 0x0047)) goto labelFunc02C5_0171;
		var0001 = ["MIND", "BODY", "ENVIRONMENT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0171:
		if(!(var0000 == 0x0048)) goto labelFunc02C5_018D;
		var0001 = ["DISCIPLINE", "OF", "MIND"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_018D:
		if(!(var0000 == 0x0049)) goto labelFunc02C5_01A9;
		var0001 = ["DISCIPLINE", "OF", "BODY"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_01A9:
		if(!(var0000 == 0x004A)) goto labelFunc02C5_01C5;
		var0001 = ["DISCIPLINE", "OF", "ENVIRONMENT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_01C5:
		if(!(var0000 == 0x004B)) goto labelFunc02C5_01DE;
		var0001 = ["ENTRY", "FORBIDDEN"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_01DE:
		if(!(var0000 == 0x004D)) goto labelFunc02C5_01F4;
		var0001 = ["ENTHUSIASM"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_01F4:
		if(!(var0000 == 0x004E)) goto labelFunc02C5_020A;
		var0001 = ["EMOTION"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_020A:
		if(!(var0000 == 0x004F)) goto labelFunc02C5_0220;
		var0001 = ["TOLERANCE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0220:
		if(!(var0000 == 0x0050)) goto labelFunc02C5_0236;
		var0001 = ["I"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0236:
		if(!(var0000 == 0x0051)) goto labelFunc02C5_024C;
		var0001 = ["S"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_024C:
		if(!(var0000 == 0x0052)) goto labelFunc02C5_0262;
		var0001 = ["C"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0262:
		if(!(var0000 == 0x0053)) goto labelFunc02C5_0278;
		var0001 = ["G"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0278:
		if(!(var0000 == 0x0054)) goto labelFunc02C5_028E;
		var0001 = ["B"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_028E:
		if(!(var0000 == 0x0055)) goto labelFunc02C5_02A4;
		var0001 = ["O"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_02A4:
		if(!(var0000 == 0x0056)) goto labelFunc02C5_02BA;
		var0001 = ["W"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_02BA:
		if(!(var0000 == 0x0057)) goto labelFunc02C5_02D3;
		var0001 = ["MIND TRANSFERENCE", "CHAMBER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_02D3:
		if(!(var0000 == 0x0058)) goto labelFunc02C5_02E9;
		var0001 = ["THE GREAT TEMPLE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_02E9:
		if(!(var0000 == 0x0083)) goto labelFunc02C5_0302;
		var0001 = ["REFLECT ON", "ETHICALITY"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0302:
		if(!(var0000 == 0x0084)) goto labelFunc02C5_031B;
		var0001 = ["MEDITATE ON", "LOGIC"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_031B:
		if(!(var0000 == 0x0085)) goto labelFunc02C5_0334;
		var0001 = ["EXAMINE", "DISCIPLINE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0334:
		if(!(var0000 == 0x0086)) goto labelFunc02C5_0350;
		var0001 = ["EXAMINE", "REFLECT", "MEDITATE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0350:
		if(!(var0000 == 0x0087)) goto labelFunc02C5_036C;
		var0001 = ["TEMPLE", "OF THE", "HIEROPHANT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_036C:
		if(!(var0000 == 0x0088)) goto labelFunc02C5_0388;
		var0001 = ["VAULT", "OF THE", "DEAD"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0388:
		if(!(var0000 == 0x0089)) goto labelFunc02C5_039E;
		var0001 = ["STORAGE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_039E:
		if(!(var0000 == 0x008A)) goto labelFunc02C5_03BD;
		var0001 = ["GRAND", "SHRINE", "OF", "ORDER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_03BD:
		if(!(var0000 == 0x008B)) goto labelFunc02C5_03D3;
		var0001 = ["EMOTION"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_03D3:
		if(!(var0000 == 0x008C)) goto labelFunc02C5_03E9;
		var0001 = ["DISCIPLINE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_03E9:
		if(!(var0000 == 0x008D)) goto labelFunc02C5_03FF;
		var0001 = ["ETHICALITY"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_03FF:
		if(!(var0000 == 0x008E)) goto labelFunc02C5_0415;
		var0001 = ["LOGIC"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0415:
		if(!(var0000 == 0x008F)) goto labelFunc02C5_042B;
		var0001 = ["TOLERANCE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_042B:
		if(!(var0000 == 0x0090)) goto labelFunc02C5_0441;
		var0001 = ["ENTHUSIASM"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0441:
		if(!(var0000 == 0x0091)) goto labelFunc02C5_0457;
		var0001 = ["SUSTICALITY"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0457:
		if(!(var0000 == 0x0092)) goto labelFunc02C5_0473;
		var0001 = ["SYMBOL", "OF", "CHAOS"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0473:
		if(!(var0000 == 0x0093)) goto labelFunc02C5_048F;
		var0001 = ["SYMBOL", "OF", "ORDER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_048F:
		if(!(var0000 == 0x0094)) goto labelFunc02C5_04AB;
		var0001 = ["CHAMBER", "OF", "BALANCE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_04AB:
		if(!(var0000 == 0x0095)) goto labelFunc02C5_04CA;
		var0001 = ["PLACE HERE", "THE CUBES", "OF BOTH", "CHOAS AND ORDER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_04CA:
		if(!(var0000 == 0x0096)) goto labelFunc02C5_04E9;
		var0001 = ["ORDER SYMBOL", "THAT DOTH SPEAK", "OF PRINCIPLES", "AND WISDOM"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_04E9:
		if(!(var0000 == 0x0097)) goto labelFunc02C5_0508;
		var0001 = ["ORDER SYMBOL", "FOR THE STRENGTH", "OF THE MIND", "AND WILLPOWER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0508:
		if(!(var0000 == 0x0098)) goto labelFunc02C5_0524;
		var0001 = ["ORDER SYMBOL", "FOR A STRAIGHT", "PATH OF TRUTH"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0524:
		if(!(var0000 == 0x0099)) goto labelFunc02C5_0540;
		var0001 = ["IF THOU CANST", "READ THIS", "THOU ART DEAD"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0540:
		if(!(var0000 == 0x009A)) goto labelFunc02C5_055C;
		var0001 = ["TURN OFF", "HACKMOVER", "YOU CHEATER"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_055C:
		if(!(var0000 == 0x009B)) goto labelFunc02C5_0578;
		var0001 = ["THE DREAMS", "OF THINE", "ENEMIES"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0578:
		if(!(var0000 == 0x009C)) goto labelFunc02C5_0594;
		var0001 = ["KNOW THAT FIRE", "BRINGS BALANCE", "UNTO ICE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0594:
		if(!(var0000 == 0x009D)) goto labelFunc02C5_05B0;
		var0001 = ["KNOW THAT ICE", "BRINGS BALANCE", "UNTO FIRE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_05B0:
		if(!(var0000 == 0x009E)) goto labelFunc02C5_05CC;
		var0001 = ["THE SCEPTRE", "CAN BRING THEE", "TO THE LIBRARY"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_05CC:
		if(!(var0000 == 0x009F)) goto labelFunc02C5_05E5;
		var0001 = ["CHEATERS", "NEVER WIN"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_05E5:
		if(!(var0000 == 0x00B6)) goto labelFunc02C5_05FE;
		var0001 = ["SCEPTRE OF", "ENLIGHTENMENT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_05FE:
		if(!(var0000 == 0x00B7)) goto labelFunc02C5_0617;
		var0001 = ["OPHIDIAN", "VASE"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0617:
		if(!(var0000 == 0x00B8)) goto labelFunc02C5_0633;
		var0001 = ["GLASS", "VIPER OF", "SESSENRA"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0633:
		if(!(var0000 == 0x00B9)) goto labelFunc02C5_0652;
		var0001 = ["CRYSTAL", "SKULL", "OF THE", "MYSTICS"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0652:
		if(!(var0000 == 0x00BA)) goto labelFunc02C5_066E;
		var0001 = ["HAMMER", "OF", "DEDICATION"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_066E:
		if(!(var0000 == 0x00BB)) goto labelFunc02C5_0687;
		var0001 = ["SSHEELISAS", "PORTRAIT"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_0687:
		if(!(var0000 == 0x00BC)) goto labelFunc02C5_06A3;
		var0001 = ["SACRIFICE", "BY", "FULMINATION"];
		goto labelFunc02C5_06AF;
	labelFunc02C5_06A3:
		var0001 = ["THIS IS AN ERROR", "REPORT THIS LOCATION"];
	labelFunc02C5_06AF:
		UI_display_runes_3E(0x0031, var0001);
		if(!(var0000 == 0x0002)) goto labelFunc02C5_0740;
		var0002 = UI_find_nearby_41(item, 0x010E, 0x000A, 0x0000);
		if(!var0002) goto labelFunc02C5_0740;
		UI_set_item_frame_1B(var0002, 0x000C);
		var0003 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x010E], 0x0004);
		var0004 = UI_get_npc_prop_28(0xFF69, 0x0003);
		var0003 = UI_set_npc_prop_29(0xFF69, 0x0003, (0x0064 - var0004));
		UI_move_object_4B(0xFF69, [0x09E5, 0x032F, 0x0000]);
		var0003 = UI_execute_usecode_array_01(0xFF69, [0x59, 0x34]);
	labelFunc02C5_0740:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func02CA 0x2CA (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x000B)) goto labelFunc02CA_003D;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x019C], 0x0002);
	labelFunc02CA_003D:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func02CF 0x2CF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x000A) || (event == 0x000B))) goto labelFunc02CF_0043;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02CF], 0x0002);
	labelFunc02CF_0043:
		if(!(event == 0x0002)) goto labelFunc02CF_0102;
		var0002 = UI_find_nearest_15(0xFE9C, 0x02CF, 0x000A);
		var0003 = UI_get_item_frame_1A(var0002);
		var0004 = UI_get_object_position_20(var0002);
		var0004[0x0001] = (var0004[0x0001] + 0x0001);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc02CF_0102;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc02CF_00CC;
		if(!(var0003 > 0x0000)) goto labelFunc02CF_00C9;
		UI_set_item_frame_1B(var0002, (var0003 - 0x0001));
		UI_set_item_frame_1B(item, 0x0001);
	labelFunc02CF_00C9:
		goto labelFunc02CF_00F8;
	labelFunc02CF_00CC:
		if(!(var0003 < 0x0003)) goto labelFunc02CF_00F8;
		UI_set_item_frame_1B(var0002, (var0003 + 0x0001));
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc02CF_00F8;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc02CF_00F8:
		var0001 = UI_update_last_created_2F(var0004);
	labelFunc02CF_0102:
		return;
}
// externs
extern var Func0953 0x953 ();

Func02D3 0x2D3 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc02D3_0033;
	var0000 = Func0953();
	if(!UI_npc_nearby_3A(Iolo)) goto labelFunc02D3_0033;
	UI_show_npc_face_03(Iolo, 0x0000);
	UcMessage("\"");
	UcMessage(var0000);
	UcMessage(" dost thou notice the unique Iolo trademark on these bolts?  They are designed for maximum performance with genuine IOLO crossbows, available at a location near Yew.\"");
	UcSay;
	UI_remove_npc_face_04(Iolo);
	labelFunc02D3_0033:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func02D8 0x2D8 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc02D8_0045;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 != 0x0001)) goto labelFunc02D8_001B;
	abrt();
	labelFunc02D8_001B:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Help!@"]);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02D8, 0x0000], 0x0005);
	labelFunc02D8_0045:
		if(!(event == 0x0002)) goto labelFunc02D8_01F6;
		UI_show_npc_face0_05(0xFEFE, 0x0000);
		UcMessage("\"I am trapped! Help me!\"");
		UcSay;
		UI_add_answer_0C(["name", "Trapped?", "bye"]);
	labelFunc02D8_006B:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am Shriash. Though I am only a little girl, thou must know that I am a faithful follower of Chaos.\"");
		UcSay;
		UcMessage("\"I belong to the Temple of Emotion.\"");
		UcSay;
		UI_add_answer_0C(["girl", "Chaos", "Emotion"]);
	labelFunc02D8_0095:
		cmps("girl");
		UI_remove_answer_0D("girl");
		UcMessage("\"Well, perhaps I am not a little girl anymore. My soul hath been trapped here in this rock for eons!\"");
		UcSay;
		UcMessage("\"If there is such a thing as a little spirit girl, then that is what I am.\"");
		UcSay;
	labelFunc02D8_00AC:
		cmps("Chaos");
		UI_remove_answer_0D("Chaos");
		UcMessage("\"My father says that Chaos is the True Path, and that the Chaos Serpent will lead us to a better life.\"");
		UcSay;
		UcMessage("\"Chaos is the strong limb, and it cannot be beaten. It is like a rope made of many strands, many yet unified.\"");
		UcSay;
		UcMessage("\"But we were defeated, here...\"");
		UcSay;
	labelFunc02D8_00C7:
		cmps("Emotion");
		UI_remove_answer_0D("Emotion");
		UcMessage("\"Emotion is the energy that drives the soul. There is both good and bad energy, combined chaotically.\"");
		UcSay;
		UcMessage("\"There is love and hatred, despair and joy. Without these, Men would cease to be Men.\"");
		UcSay;
		UcMessage("\"Without love, we could not live in peace. If we did not have joy, life would be pointless.\"");
		UcSay;
		UcMessage("\"Thus, Emotion is the most important of the Virtues.\"");
		UcSay;
	labelFunc02D8_00E6:
		cmps("Trapped?");
		UI_remove_answer_0D("Trapped?");
		UcMessage("\"I was caught in a great battle. The powerful magic the soldiers unleashed left my soul caught here in this wall.\"");
		UcSay;
		UI_add_answer_0C(["soldiers", "wall"]);
	labelFunc02D8_0106:
		cmps("soldiers");
		UI_remove_answer_0D("soldiers");
		UcMessage("\"They were led by the Master of Ethicality, and his magic wrecked the Temple. My parents were slain, and my brother taken prisoner.\"");
		UcSay;
		UcMessage("\"No one from the Temple survived to free me from my fate.\"");
		UcSay;
		UcMessage("\"But Balance was preserved -- from my place here in the wall, I watched as Soldiers of Chaos attacked to retake the Temple. All of the Soldiers of Ethicality were slain, to the last man.\"");
		UcSay;
		UI_add_answer_0C("Temple");
	labelFunc02D8_0128:
		cmps("Temple");
		UI_remove_answer_0D("Temple");
		UcMessage("\"This place is the Temple of Emotion. It is a structure consecrated to the Virtue of Emotion.\"");
		UcSay;
		UcMessage("\"We would come here yearly to hear the words of the Master of Emotion, and to drink of the Water of the Temple.\"");
		UcSay;
		UI_add_answer_0C(["Water"]);
	labelFunc02D8_0149:
		cmps("Water");
		UI_remove_answer_0D("Water");
		UcMessage("\"It was such a wonderful ceremony! The old Master would pass from chamber to chamber, collecting the four Lodestones of Emotion...\"");
		UcSay;
		UcMessage("\"One year I was chosen to sing in the chorus, and we followed behind him, tossing flower petals and singing the Hymns of Chaos.\"");
		UcSay;
		UcMessage("\"When the Master placed the four lodestones around the pond, however, we were all silent. For thus the ordinary water became the true and rightful Water of Emotion.\"");
		UcSay;
	labelFunc02D8_0164:
		cmps("wall");
		UI_remove_answer_0D("wall");
		UcMessage("\"I am trapped within this wall. My soul hath occupied this place for many, many years.\"");
		UcSay;
		UcMessage("\"Sometimes, I despair of ever being free to enter the Void.\"");
		UcSay;
		UI_add_answer_0C(["free", "Void"]);
	labelFunc02D8_0188:
		cmps("free");
		UI_remove_answer_0D("free");
		UcMessage("\"If thou couldst smash the Pedestal of Love, that would release some of the ancient powers of the Temple. The Pedestal lies in the middle of this room. It looks like unto a broken column now, but that is because it is so old.\"");
		UcSay;
		UcMessage("\"I am sure that this would free me from the stone...\"");
		UcSay;
		UcMessage("\"But it might kill thee! Or worse, thou mightest be trapped in this wall in my place!\"");
		UcSay;
	labelFunc02D8_01A3:
		cmps("Void");
		UI_remove_answer_0D("Void");
		UcMessage("\"Dost thou know nothing? When we die, our bodies are placed in the ground, but our souls rise to the Void.\"");
		UcSay;
		UcMessage("\"There, we shall unite with the Chaos Serpent. He too dwells in the Void between the Worlds.\"");
		UcSay;
		UcMessage("\"This is what my father taught me.\"");
		UcSay;
	labelFunc02D8_01BE:
		cmps("bye");
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Please help me!@"], 0x0005);
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		goto labelFunc02D8_01F5;
	labelFunc02D8_01F2:
		goto labelFunc02D8_006B;
	labelFunc02D8_01F5:
		end_conv();
	labelFunc02D8_01F6:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func02DA 0x2DA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc02DA_002A;
	var0000 = ["@'Tis tragic that one so young should perish in the dawn of life.@"];
	var0001 = ["@'Tis horrible to find one so young to have perished so early in life.@"];
	var0002 = Func0992(Shamino, var0000, var0001, false);
	labelFunc02DA_002A:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func02DF 0x2DF (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc02DF_0014;
	var0000 = "@I believe those are for the trainers to use. If thou art in need of practice, thou shouldst seek a trainer.@";
	Func094A(var0000);
	labelFunc02DF_0014:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func02E3 0x2E3 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x000A)) goto labelFunc02E3_0032;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6A, 0x61]);
	UI_set_item_frame_1B(item, 0x0000);
	labelFunc02E3_0032:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func02E4 0x2E4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0001)) goto labelFunc02E4_00CF;
	var0000 = UI_get_item_frame_1A(item);
	var0001 = false;
	var0002 = UI_find_nearby_41(item, 0x032A, 0x0014, 0x0000);
	enum();
	labelFunc02E4_0026:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc02E4_00AD);
		var0006 = UI_get_object_position_20(var0005);
		var0007 = UI_get_item_frame_1A(var0005);
		if(!((var0006[0x0001] == 0x0882) && ((var0006[0x0002] == 0x0754) && ((var0007 == 0x0000) && (var0000 == 0x0000))))) goto labelFunc02E4_00AA;
		UI_play_sound_effect_16(0x004A);
		UI_play_sound_effect_16(0x0082);
		UI_set_item_frame_1B(item, 0x0001);
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x46, 0x0002, 0x46, 0x0003, 0x46, 0x0004, 0x46, 0x0005, 0x55, 0x02E4]);
		abrt();
	labelFunc02E4_00AA:
		goto labelFunc02E4_0026;
	labelFunc02E4_00AD:
		var0009 = ["@Methinks thou shouldst place an empty bucket at its base, Avatar.@"];
		var000A = ["@Hummmm. I'll wager I could fill an empty bucket if I placed one at its base...@"];
		var0008 = Func0992(Shamino, var0009, var000A, false);
	labelFunc02E4_00CF:
		if(!(event == 0x0002)) goto labelFunc02E4_01AB;
		var0002 = UI_find_nearby_41(item, 0x032A, 0x000A, 0x0000);
		enum();
	labelFunc02E4_00E9:
		for (var0005 in var0002 with var000B to var000C atend labelFunc02E4_01AB);
		var0007 = UI_get_item_frame_1A(var0005);
		var0006 = UI_get_object_position_20(var0005);
		if(!((var0006[0x0001] == 0x0882) && ((var0006[0x0002] == 0x0754) && (var0007 == 0x0000)))) goto labelFunc02E4_017D;
		UI_set_item_frame_1B(var0005, 0x0003);
		UI_play_sound_effect_16(0x004A);
		UI_play_sound_effect_16(0x0007);
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x46, 0x0006, 0x46, 0x0007, 0x46, 0x0008, 0x46, 0x0009, 0x46, 0x000A, 0x46, 0x000B, 0x46, 0x000C, 0x46, 0x000D, 0x46, 0x0000]);
		goto labelFunc02E4_01A8;
	labelFunc02E4_017D:
		var000D = Func09AB(0x0390, UI_die_roll_17(0x0014, 0x0017), 0x0000, false, [0x0882, 0x0754, 0x0000]);
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc02E4_01A8:
		goto labelFunc02E4_00E9;
	labelFunc02E4_01AB:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func02E5 0x2E5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x000A) || (event == 0x000B))) goto labelFunc02E5_0043;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6C]);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02E5], 0x0002);
	labelFunc02E5_0043:
		if(!(event == 0x0002)) goto labelFunc02E5_0110;
		var0002 = UI_find_nearest_15(0xFE9C, 0x02E5, 0x000A);
		var0003 = UI_get_item_frame_1A(var0002);
		var0004 = UI_get_object_position_20(var0002);
		var0004[0x0001] = (var0004[0x0001] + 0x0001);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc02E5_0110;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc02E5_00DA;
		if(!(var0003 > 0x0000)) goto labelFunc02E5_00D7;
		if(!(UI_get_item_shape_18(var0002) != 0x0146)) goto labelFunc02E5_00CF;
		UI_set_item_frame_1B(var0002, (var0003 - 0x0001));
	labelFunc02E5_00CF:
		UI_set_item_frame_1B(item, 0x0001);
	labelFunc02E5_00D7:
		goto labelFunc02E5_0106;
	labelFunc02E5_00DA:
		if(!(var0003 < 0x0003)) goto labelFunc02E5_0106;
		UI_set_item_frame_1B(var0002, (var0003 + 0x0001));
		if(!(UI_get_item_frame_1A(item) < 0x0006)) goto labelFunc02E5_0106;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc02E5_0106:
		var0001 = UI_update_last_created_2F(var0004);
	labelFunc02E5_0110:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func094F 0x94F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09B2 0x9B2 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0988 0x988 (var var0000, var var0001);

Func02E6 0x2E6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = Func0954();
	var0001 = UI_get_object_position_20(0xFFBA);
	if(!(event == 0x000E)) goto labelFunc02E6_01D4;
	if(!((UI_get_npc_id_BC(0xFFBA) == 0x0008) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_0034;
	event = 0x000D;
	labelFunc02E6_0034:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0006) && (item == UI_get_npc_object_23(0xFFBA)))) goto labelFunc02E6_007E;
		UI_set_npc_id_BD(0xFFBA, 0x0007);
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x55, 0x02E6]);
		var0002 = ("@Thank thee...@" & "@Goodbye!@");
		Func094F(0xFFBA, var0002);
		abrt();
	labelFunc02E6_007E:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_00EC;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Yes!@", 0x0004);
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Oh, my!@", 0x0007);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_set_npc_id_BD(0xFFBA, 0x0003);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0006, 0x55, 0x02E6, 0x6E]);
		abrt();
	labelFunc02E6_00EC:
		if(!((UI_get_npc_id_BC(0xFFBA) < 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_0108;
		event = 0x000D;
	labelFunc02E6_0108:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0000) && (item == UI_get_npc_object_23(0xFFBA)))) goto labelFunc02E6_01D4;
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Hurry!@", 0x0003);
		var0002 = UI_find_nearby_41(item, 0x02B8, 0x000C, 0x0000);
		enum();
	labelFunc02E6_0145:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc02E6_016B);
		if(!(UI_get_item_frame_1A(var0005) == 0x000B)) goto labelFunc02E6_0168;
		UI_set_item_frame_1B(var0005, 0x000C);
	labelFunc02E6_0168:
		goto labelFunc02E6_0145;
	labelFunc02E6_016B:
		UI_set_npc_id_BD(0xFFBA, 0x0001);
		UI_set_schedule_type_25(0xFFBA, 0x000F);
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x59, 0x0006, 0x27, 0x0005, 0x55, 0x02E6, 0x6E]);
		UI_si_path_run_usecode_C1(0xFE9C, [0x043B, 0x0A52, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x02E6, false);
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Just a moment...@", 0x0000);
		abrt();
	labelFunc02E6_01D4:
		if(!(event == 0x000D)) goto labelFunc02E6_0464;
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0008) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_0257;
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		UI_play_sound_effect_16(0x0001);
		UI_set_npc_id_BD(0xFFBA, UI_get_item_quality_1C(Func09A0(0x0005, 0x0003)));
		var0002 = UI_set_item_quality_1D(Func09A0(0x0005, 0x0003), 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		Func097F(0xFE9C, "@What a beautiful morning!@", 0x0000);
		UI_play_music_39(0x0016, Func09A0(0x0005, 0x0001));
		abrt();
	labelFunc02E6_0257:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0006) && (item == UI_get_npc_object_23(0xFFBA)))) goto labelFunc02E6_02B9;
		UI_set_npc_id_BD(0xFFBA, 0x0007);
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x59, 0x0004, 0x27, 0x0002, 0x6C, 0x58, 0x0024, 0x27, 0x0002, 0x61, 0x55, 0x02E6]);
		var0002 = ("@Thank thee...@" & "@Goodbye!@");
		Func094F(0xFFBA, var0002);
		abrt();
	labelFunc02E6_02B9:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_033F;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Yes!@", 0x0004);
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Oh, my!@", 0x0007);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_set_npc_id_BD(0xFFBA, 0x0003);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x58, 0x0086, 0x01, 0x6E, 0x27, 0x0002, 0x55, 0x02E6]);
		abrt();
	labelFunc02E6_033F:
		if(!((UI_get_npc_id_BC(0xFFBA) < 0x0002) && (item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc02E6_038A;
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		UI_set_npc_id_BD(0xFFBA, 0x0002);
		Func09B2();
		UI_play_sound_effect_16(0x0001);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x02E6]);
		abrt();
	labelFunc02E6_038A:
		if(!((UI_get_npc_id_BC(0xFFBA) == 0x0000) && (item == UI_get_npc_object_23(0xFFBA)))) goto labelFunc02E6_0464;
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Hurry!@", 0x0003);
		var0002 = UI_find_nearby_41(item, 0x02B8, 0x000C, 0x0000);
		enum();
	labelFunc02E6_03C7:
		for (var0005 in var0002 with var0006 to var0007 atend labelFunc02E6_03ED);
		if(!(UI_get_item_frame_1A(var0005) == 0x000B)) goto labelFunc02E6_03EA;
		UI_set_item_frame_1B(var0005, 0x000C);
	labelFunc02E6_03EA:
		goto labelFunc02E6_03C7;
	labelFunc02E6_03ED:
		UI_set_npc_id_BD(0xFFBA, 0x0001);
		UI_set_schedule_type_25(0xFFBA, 0x000F);
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x55, 0x02E6, 0x58, 0x0086, 0x01, 0x6E]);
		UI_si_path_run_usecode_C1(0xFE9C, [0x043B, 0x0A52, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x02E6, false);
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@Just a moment...@", 0x0000);
		abrt();
	labelFunc02E6_0464:
		if(!(event == 0x0002)) goto labelFunc02E6_0822;
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0008)) goto labelFunc02E6_04AF;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@I should dress...@", 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, [0x043B, 0x0A52, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x02E6, false);
		abrt();
	labelFunc02E6_04AF:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0007)) goto labelFunc02E6_04E6;
		UI_set_npc_id_BD(0xFFBA, 0x0008);
		UI_run_schedule_B7(0xFFBA);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x02E6], 0x0005);
		abrt();
	labelFunc02E6_04E6:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0006)) goto labelFunc02E6_0516;
		UI_si_path_run_usecode_C1(0xFFBA, [0x0437, 0x0A5A, 0x0000], 0x000D, UI_get_npc_object_23(0xFFBA), 0x02E6, false);
		abrt();
	labelFunc02E6_0516:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0005)) goto labelFunc02E6_0559;
		UI_set_npc_id_BD(0xFFBA, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		UcMessage("\"Once again, thou hast proved thyself to be the love of my life. When I write my book, I shall dedicate it to thee, my love.\"");
		UcSay;
		UI_end_conversation_86();
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x55, 0x02E6]);
		abrt();
	labelFunc02E6_0559:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0004)) goto labelFunc02E6_05D8;
		UI_set_npc_id_BD(0xFFBA, 0x0006);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		UcMessage("\"Thou art the man of my dreams! I have never felt so fulfilled. What an experience...\"");
		UcSay;
		UcMessage("\"As a sign of mine appreciation and great affection for thee, please accept this gift. 'Tis my greatest possession.\"");
		UcSay;
		UcMessage("\"Gwani cloaks are most rare, and are worn by the Goblins as a token of great bravery. My father slew the chieftain who once wore this cloak!\"");
		UcSay;
		UcMessage("\"Please wear it, and remember me always.\"");
		UcSay;
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Always...@", 0x0000);
		var0002 = Func099B(0xFE9C, 0x0001, 0x00E3, 0xFE99, 0x0004, 0x0000, true);
		UI_end_conversation_86();
		gflags[008A] = true;
		var0002 = UI_execute_usecode_array_01(0xFFBA, [0x23, 0x55, 0x02E6]);
		abrt();
	labelFunc02E6_05D8:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0003)) goto labelFunc02E6_0689;
		if(!gflags[008A]) goto labelFunc02E6_05F9;
		UI_set_npc_id_BD(0xFFBA, 0x0005);
		goto labelFunc02E6_0603;
	labelFunc02E6_05F9:
		UI_set_npc_id_BD(0xFFBA, 0x0004);
	labelFunc02E6_0603:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_advance_time_8E((0x05DC * 0x0003));
		UI_move_object_4B(0xFFBA, [0x0435, 0x0A54, 0x0000]);
		UI_move_object_4B(0xFE9C, [0x0439, 0x0A5D, 0x0001]);
		var0002 = UI_delayed_execute_usecode_array_02(0xFFBA, [0x23, 0x59, 0x0006, 0x6B, 0x27, 0x0002, 0x55, 0x0636, 0x27, 0x0002, 0x6C, 0x61, 0x59, 0x0004, 0x27, 0x0002, 0x55, 0x02E6], 0x001E);
		Func097F(0xFE9C, "@Where am I?@", 0x0023);
		abrt();
	labelFunc02E6_0689:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0002)) goto labelFunc02E6_06DF;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@I'm ready...@", 0x0000);
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@As am I!@", 0x0003);
		UI_si_path_run_usecode_C1(0xFE9C, [0x043A, 0x0A5C, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x02E6, false);
		abrt();
	labelFunc02E6_06DF:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0001)) goto labelFunc02E6_0701;
		UI_move_object_4B(0xFFBA, [0x0439, 0x0A5D, 0x0001]);
		abrt();
	labelFunc02E6_0701:
		if(!(UI_get_npc_id_BC(0xFFBA) == 0x0000)) goto labelFunc02E6_0822;
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		var0001 = UI_get_object_position_20(0xFFBA);
		if(!((var0001[0x0001] > 0x042F) && ((var0001[0x0001] < 0x043F) && ((var0001[0x0002] > 0x0A50) && (var0001[0x0002] < 0x0A5F))))) goto labelFunc02E6_080A;
		UcMessage("\"I am ready now! Come to bed, my love!\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc02E6_07C4;
		var0008 = Func0992(0x0001, "@Er, um, I believe I need some fresh air...@", 0x0000, false);
		var0002 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc02E6_0786:
		for (var000B in var0002 with var0009 to var000A atend labelFunc02E6_07B8);
		UI_remove_from_party_27(var000B);
		UI_set_new_schedules_B6(var000B, 0x0000, 0x001A, [0x0409, 0x0A4F]);
		UI_run_schedule_B7(var000B);
		goto labelFunc02E6_0786;
	labelFunc02E6_07B8:
		Func097F(var000B, "@Farewell...@", 0x0000);
	labelFunc02E6_07C4:
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_si_path_run_usecode_C1(0xFFBA, [0x043A, 0x0A5C, 0x0000], 0x000D, UI_get_npc_object_23(0xFFBA), 0x02E6, false);
		UI_clear_item_say_4E(0xFFBA);
		Func097F(0xFFBA, "@Come, my love!@", 0x0000);
		abrt();
		goto labelFunc02E6_0822;
	labelFunc02E6_080A:
		UcMessage("\"Oh, darling! Meet me in my bedroom...\"");
		UcSay;
		Func097F(0xFFBA, "@I'm so sleepy...@", 0x0000);
		UI_run_schedule_B7(0xFFBA);
		abrt();
	labelFunc02E6_0822:
		return;
}
// externs
extern Func0922 0x922 (var var0000);

Func02E7 0x2E7 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0002)) goto labelFunc02E7_0039;
	Func0922(0x0009);
	gflags[02E3] = true;
	var0000 = UI_find_nearby_41(item, 0x02E7, 0x002D, 0x0000);
	if(!var0000) goto labelFunc02E7_0039;
	var0001 = UI_set_npc_prop_29(var0000, 0x0003, 0x0001);
	labelFunc02E7_0039:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func099C 0x99C (var var0000);
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func0925 0x925 ();
extern Func0926 0x926 (var var0000);
extern Func0928 0x928 (var var0000);
extern Func07FA 0x7FA (var var0000);

Func02E8 0x2E8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0001)) goto labelFunc02E8_00C5;
	var0001 = UI_find_nearby_41(item, 0x0331, 0x0014, 0x0000);
	if(!var0001) goto labelFunc02E8_0037;
	UI_halt_scheduled_71(var0001);
	UI_clear_item_say_4E(var0001);
	labelFunc02E8_0037:
		var0002 = UI_find_nearby_41(item, 0x037F, 0x001E, 0x0000);
		enum();
	labelFunc02E8_0049:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc02E8_0068);
		var0006 = UI_execute_usecode_array_01(var0005, [0x23, 0x2D]);
		goto labelFunc02E8_0049;
	labelFunc02E8_0068:
		gflags[021C] = true;
		if(!var0001) goto labelFunc02E8_00C4;
		var0007 = UI_get_object_position_20(item);
		UI_si_path_run_usecode_C1(0xFF69, var0007, 0x0007, item, 0x0314, false);
		var0006 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@Thou didst risk thy life...@"], 0x000A);
		var0006 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@Thou art truly ethical!@"], 0x001A);
		UI_set_npc_id_BD(0xFF69, 0x0005);
	labelFunc02E8_00C4:
		abrt();
	labelFunc02E8_00C5:
		if(!(var0000 == 0x0002)) goto labelFunc02E8_01ED;
		var0008 = false;
		var0009 = [0x03B4, 0x03B8, 0x03B7, 0x0284, 0x0285, 0x0286, 0x02F8];
		enum();
	labelFunc02E8_00EF:
		for (var000C in var0009 with var000A to var000B atend labelFunc02E8_0116);
		if(!Func097D(0xFE9C, 0x0001, var000C, 0xFE99, 0xFE99)) goto labelFunc02E8_0113;
		var0008 = true;
	labelFunc02E8_0113:
		goto labelFunc02E8_00EF;
	labelFunc02E8_0116:
		var000D = Func097D(0xFE9C, 0x0001, 0x02B0, 0xFE99, 0x0004);
		if(!var000D) goto labelFunc02E8_0195;
		var000E = UI_find_nearby_41(item, 0x0320, 0x00A0, 0x0000);
		enum();
	labelFunc02E8_0143:
		for (var0011 in var000E with var000F to var0010 atend labelFunc02E8_018B);
		if(!(!Func097D(var0011, 0x0001, 0x02B0, 0xFE99, 0x0004))) goto labelFunc02E8_0188;
		var0012 = UI_create_new_object_2C(0x02B0);
		if(!var0012) goto labelFunc02E8_0188;
		UI_set_item_frame_1B(var0012, 0x0004);
		var0006 = UI_give_last_created_42(var0011);
	labelFunc02E8_0188:
		goto labelFunc02E8_0143;
	labelFunc02E8_018B:
		Func099C(0x02B0);
		var0008 = true;
	labelFunc02E8_0195:
		if(!(var0008 == false)) goto labelFunc02E8_01A1;
		gflags[021D] = true;
	labelFunc02E8_01A1:
		var0006 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x07DA]);
		var0013 = UI_find_nearby_41(item, 0x00C8, 0x00A0, 0x0010);
		enum();
	labelFunc02E8_01C7:
		for (var0016 in var0013 with var0014 to var0015 atend labelFunc02E8_01EC);
		var0006 = UI_execute_usecode_array_01(var0016, [0x23, 0x49, 0x0007, 0x0005]);
		goto labelFunc02E8_01C7;
	labelFunc02E8_01EC:
		abrt();
	labelFunc02E8_01ED:
		if(!(var0000 == 0x0074)) goto labelFunc02E8_0283;
		var0017 = UI_find_nearby_41(0xFE9C, 0x010E, 0x0014, 0x00B0);
		var0017 = (var0017 & UI_find_nearby_41(0xFE9C, 0x0178, 0x0014, 0x00B0));
		var0017 = (var0017 & UI_find_nearby_41(0xFE9C, 0x01B1, 0x0014, 0x00B0));
		var0017 = (var0017 & UI_find_nearby_41(0xFE9C, 0x01B0, 0x0014, 0x00B0));
		enum();
	labelFunc02E8_0250:
		for (var001A in var0017 with var0018 to var0019 atend labelFunc02E8_0282);
		if(!(UI_get_item_quality_1C(var001A) == 0x0074)) goto labelFunc02E8_027F;
		if(!(Func0906(var001A) == 0x0002)) goto labelFunc02E8_027F;
		Func0907(var001A, 0x0000);
	labelFunc02E8_027F:
		goto labelFunc02E8_0250;
	labelFunc02E8_0282:
		abrt();
	labelFunc02E8_0283:
		if(!((var0000 == 0x0091) && (gflags[0254] == false))) goto labelFunc02E8_02A9;
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0510], 0x0001);
		abrt();
	labelFunc02E8_02A9:
		if(!((var0000 == 0x0091) && (gflags[0257] == false))) goto labelFunc02E8_02BA;
		abrt();
	labelFunc02E8_02BA:
		if(!((var0000 == 0x0092) && (gflags[0253] == false))) goto labelFunc02E8_02E0;
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x047F], 0x0001);
		abrt();
	labelFunc02E8_02E0:
		if(!((var0000 == 0x0092) && (gflags[0256] == false))) goto labelFunc02E8_02F1;
		abrt();
	labelFunc02E8_02F1:
		if(!((var0000 == 0x0093) && (gflags[0255] == false))) goto labelFunc02E8_0317;
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0480], 0x0001);
		abrt();
	labelFunc02E8_0317:
		if(!((var0000 == 0x0093) && (gflags[0258] == false))) goto labelFunc02E8_0328;
		abrt();
	labelFunc02E8_0328:
		if(!(var0000 == 0x000A)) goto labelFunc02E8_0335;
		Func0925();
	labelFunc02E8_0335:
		if(!((var0000 > 0x0014) && (var0000 <= 0x0064))) goto labelFunc02E8_034D;
		Func0926(var0000);
	labelFunc02E8_034D:
		if(!((var0000 > 0x0064) && (var0000 < 0x00C8))) goto labelFunc02E8_0365;
		Func0928(var0000);
	labelFunc02E8_0365:
		if(!(var0000 == 0x00C8)) goto labelFunc02E8_0373;
		item;
		calle();
	labelFunc02E8_0373:
		if(!((var0000 >= 0x00C9) && (var0000 <= 0x00CB))) goto labelFunc02E8_0397;
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0602]);
	labelFunc02E8_0397:
		if(!(var0000 == 0x00D2)) goto labelFunc02E8_03B3;
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0605]);
	labelFunc02E8_03B3:
		return;
}
Func02E9 0x2E9 (var var0000)
{
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc02E9_0016;
	UI_play_music_39(0x002F, item);
	labelFunc02E9_0016:
		return;
}
Func02F0 0x2F0 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc02F0_003D;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc02F0_002D;
	UI_set_item_frame_1B(item, 0x0001);
	UI_play_music_39(0x001F, item);
	goto labelFunc02F0_003D;
	labelFunc02F0_002D:
		UI_set_item_frame_1B(item, 0x0000);
		UI_play_music_39(0x00FF, item);
	labelFunc02F0_003D:
		return;
}
Func02F2 0x2F2 (var var0000)
{
	if(!(event == 0x0007)) goto labelFunc02F2_0058;
	if(!(UI_get_npc_id_BC(item) == 0x000F)) goto labelFunc02F2_001C;
	UI_clear_item_flag_A5(item, 0x001D);
	labelFunc02F2_001C:
		if(!(UI_get_npc_id_BC(item) == 0x0010)) goto labelFunc02F2_0030;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc02F2_0030:
		if(!(UI_get_npc_id_BC(item) == 0x0011)) goto labelFunc02F2_0044;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc02F2_0044:
		if(!(UI_get_npc_id_BC(item) == 0x0012)) goto labelFunc02F2_0058;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc02F2_0058:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0922 0x922 (var var0000);
extern Func00D7 0xD7 (var var0000);

Func02F7 0x2F7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func09A0(0x0002, 0x0001);
	var0001 = UI_get_item_quality_1C(var0000);
	if(!(event == 0x0001)) goto labelFunc02F7_00C7;
	UI_play_sound_effect_16(0x001E);
	if(!(!UI_find_nearby_41(item, 0x03C1, 0x0028, 0x00B0))) goto labelFunc02F7_0038;
	abrt();
	labelFunc02F7_0038:
		if(!gflags[013D]) goto labelFunc02F7_00C7;
		var0001 = UI_set_item_quality_1D(var0000, 0x0000);
		var0001 = 0x0000;
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"I Re-Ten Bentas Juxark I!\"");
		UcSay;
		UcMessage("\"Praetimde Mir-Wis Re-Por I.\"");
		UcSay;
		UI_remove_npc_face0_07();
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc02F7_00B0;
		if(!(var0001 == 0x0000)) goto labelFunc02F7_00AD;
		gflags[013D] = false;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0002 = UI_set_item_quality_1D(var0000, 0x0001);
		var0002 = UI_execute_usecode_array_01(var0000, [0x23, 0x55, 0x02F7]);
	labelFunc02F7_00AD:
		goto labelFunc02F7_00C7;
	labelFunc02F7_00B0:
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x02F7], 0x000A);
	labelFunc02F7_00C7:
		if(!(event == 0x000E)) goto labelFunc02F7_00E2;
		UI_move_object_4B(0xFE9C, [0x08A8, 0x0501, 0x0001]);
	labelFunc02F7_00E2:
		if(!(event == 0x0002)) goto labelFunc02F7_0334;
		if(!(var0001 == 0x0000)) goto labelFunc02F7_00FA;
		Func0922(0x0003);
	labelFunc02F7_00FA:
		if(!(var0001 == 0x0001)) goto labelFunc02F7_017C;
		UI_si_path_run_usecode_C1(0xFE9C, [0x08A8, 0x0501, 0x0001], 0x000D, var0000, 0x02F7, false);
		UI_set_path_failure_A7(0x02F7, item, 0x000E);
		var0003 = [0x08C4, 0x04FE, 0x0000];
		UI_sprite_effect_68(0x002E, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_set_item_quality_1D(var0000, 0x0002);
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x02F7], 0x0015);
	labelFunc02F7_017C:
		if(!(var0001 == 0x0002)) goto labelFunc02F7_0289;
		var0002 = UI_create_new_object_2C(0x00D7);
		if(!var0002) goto labelFunc02F7_01B3;
		UI_clear_item_flag_A5(var0002, 0x0012);
		var0002 = UI_update_last_created_2F([0x08B8, 0x04F9, 0x0001]);
	labelFunc02F7_01B3:
		var0002 = UI_create_new_object_2C(0x00DB);
		if(!var0002) goto labelFunc02F7_01E0;
		UI_clear_item_flag_A5(var0002, 0x0012);
		var0002 = UI_update_last_created_2F([0x08BC, 0x04FF, 0x0000]);
	labelFunc02F7_01E0:
		var0002 = UI_create_new_object_2C(0x00DD);
		if(!var0002) goto labelFunc02F7_020D;
		UI_clear_item_flag_A5(var0002, 0x0012);
		var0002 = UI_update_last_created_2F([0x08C4, 0x04FF, 0x0000]);
	labelFunc02F7_020D:
		var0002 = UI_create_new_object_2C(0x00FC);
		if(!var0002) goto labelFunc02F7_023A;
		UI_clear_item_flag_A5(var0002, 0x0012);
		var0002 = UI_update_last_created_2F([0x08BC, 0x04F7, 0x0000]);
	labelFunc02F7_023A:
		var0002 = UI_create_new_object_2C(0x01CB);
		if(!var0002) goto labelFunc02F7_0267;
		UI_clear_item_flag_A5(var0002, 0x0012);
		var0002 = UI_update_last_created_2F([0x08C4, 0x04F7, 0x0000]);
	labelFunc02F7_0267:
		var0002 = UI_set_item_quality_1D(var0000, 0x0003);
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x02F7], 0x0000);
	labelFunc02F7_0289:
		if(!(var0001 == 0x0003)) goto labelFunc02F7_0334;
		var0004 = UI_find_nearby_41(0xFE9C, 0x03C1, 0x0050, 0x00B0);
		if(!UI_on_barge_82()) goto labelFunc02F7_02DE;
		UI_play_music_39(0x000C, var0000);
		var0002 = UI_set_item_quality_1D(var0000, 0x0000);
		UI_halt_scheduled_71(var0000);
		var0005 = UI_get_barge_6D(0xFE9C);
		var0005;
		calle();
		goto labelFunc02F7_0334;
	labelFunc02F7_02DE:
		if(!var0004) goto labelFunc02F7_0334;
		var0006 = UI_get_object_position_20(var0004);
		if(!(var0006[0x0001] > 0x08B4)) goto labelFunc02F7_0312;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x36], 0x0003);
		goto labelFunc02F7_031C;
	labelFunc02F7_0312:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc02F7_031C:
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x02F7, 0x0000], 0x0003);
	labelFunc02F7_0334:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func02F8 0x2F8 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc02F8_0018;
	var0000 = ("@Those are beautiful. I am sure that they would fetch " + "a high price.@");
	Func094A(var0000);
	labelFunc02F8_0018:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);

Func0303 0x303 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0004)) goto labelFunc0303_000F;
	var0000 = item;
	goto labelFunc0303_0016;
	labelFunc0303_000F:
		var0000 = UI_click_on_item_3F();
	labelFunc0303_0016:
		if(!(!gflags[0006])) goto labelFunc0303_001E;
		exit2();
	labelFunc0303_001E:
		if(!var0000) goto labelFunc0303_010A;
		UI_close_gumps_98();
		if(!UI_is_npc_3D(var0000)) goto labelFunc0303_003B;
		var0001 = var0000;
		goto labelFunc0303_0041;
	labelFunc0303_003B:
		var0001 = 0xFE9C;
	labelFunc0303_0041:
		UI_obj_sprite_effect_91(var0001, 0x0009, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_get_random_00(0x0003);
		if(!((var0002 == 0x0001) || (var0002 == 0x0002))) goto labelFunc0303_00D1;
		var0003 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x65, 0x52, "Ah... ah... CHOO!", 0x6C, 0x27, 0x0002, 0x65, 0x61], 0x0005);
		if(!((var0001 == 0xFE9C) && (Func0942(Shamino) && (UI_get_random_00(0x0002) == 0x0001)))) goto labelFunc0303_00D1;
		var0003 = UI_delayed_execute_usecode_array_02(Shamino, [0x23, 0x52, "Gesundheit!"], 0x000C);
	labelFunc0303_00D1:
		if(!(var0002 == 0x0003)) goto labelFunc0303_00FF;
		var0003 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x68, 0x52, "I am late again! Oh, no!", 0x6F, 0x27, 0x0002, 0x65, 0x61], 0x0005);
	labelFunc0303_00FF:
		UI_play_sound_effect_16(0x0074);
		UI_UNKNOWN_72();
	labelFunc0303_010A:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern var Func0910 0x910 (var var0000);

Func030D 0x30D (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc030D_0031;
	if(!gflags[01CB]) goto labelFunc030D_000F;
	abrt();
	labelFunc030D_000F:
		if(!UI_get_item_flag_A3(item, 0x000A)) goto labelFunc030D_0023;
		Func094A("@The sails must be furled before the planks can be lowered.@");
		goto labelFunc030D_0031;
	labelFunc030D_0023:
		if(!(!Func0910(item))) goto labelFunc030D_0031;
		Func094A("@I believe the gangplank is blocked.@");
	labelFunc030D_0031:
		return;
}
// externs
extern Func09B5 0x9B5 ();

Func0310 0x310 (var var0000)
{
	if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc0310_0011;
	Func09B5();
	labelFunc0310_0011:
		if(!(event == 0x0001)) goto labelFunc0310_002D;
		UI_si_path_run_usecode_C1(0xFE9C, UI_get_object_position_20(item), 0x000D, item, 0x0310, true);
	labelFunc0310_002D:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08DA 0x8DA (var var0000);

Func0313 0x313 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	if(!(event == 0x0001)) goto labelFunc0313_009E;
	UI_close_gumps_98();
	if(!(UI_get_distance_21(0xFE9C, item) > 0x0001)) goto labelFunc0313_0044;
	var0000 = Dupre;
	var0001 = Dupre;
	var0002 = Iolo;
	Func090D(item, var0000, var0001, var0002, 0x0313, item, 0x0001);
	goto labelFunc0313_009E;
	labelFunc0313_0044:
		if(!((UI_get_item_quality_1C(item) == 0x0094) || (UI_get_item_quality_1C(item) == 0x0095))) goto labelFunc0313_0072;
		var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x55, 0x0313], 0x0001);
		goto labelFunc0313_009E;
	labelFunc0313_0072:
		var0004 = UI_direction_from_A2(0xFE9C, item);
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0004, 0x01, 0x6C, 0x27, 0x0002, 0x61]);
		Func08DA(item);
	labelFunc0313_009E:
		if(!(event == 0x0002)) goto labelFunc0313_0204;
		if(!((UI_get_item_shape_18(item) == 0x02D1) || (UI_get_item_shape_18(item) == 0x03DD))) goto labelFunc0313_0200;
		var0006 = UI_find_nearest_15(0xFE9C, 0x0313, 0x0001);
		var0007 = UI_find_nearby_41(item, 0x0113, 0x0028, 0x0010);
		enum();
	labelFunc0313_00DE:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc0313_01FD);
		if(!((UI_get_item_quality_1C(var000A) == 0x00C8) && (UI_get_item_frame_1A(var000A) == 0x0007))) goto labelFunc0313_01FA;
		var000B = UI_find_nearest_15(var000A, 0x00E9, 0x0008);
		if(!(UI_get_item_frame_1A(var000B) == 0x0001)) goto labelFunc0313_0154;
		var0004 = UI_direction_from_A2(0xFE9C, var0006);
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0004, 0x01, 0x6C, 0x27, 0x0002, 0x61]);
		Func08DA(var0006);
		goto labelFunc0313_01FA;
	labelFunc0313_0154:
		if(!(UI_get_schedule_type_24(0xFF58) == 0x001F)) goto labelFunc0313_01EF;
		UI_item_say_4D(0xFF58, "@I shall set the other lever...@");
		UI_set_schedule_type_25(0xFF58, 0x000F);
		var000C = UI_find_nearby_41(0xFE9C, 0x0313, 0x0028, 0x0000);
		var000D = false;
		enum();
	labelFunc0313_018E:
		for (var0010 in var000C with var000E to var000F atend labelFunc0313_01AD);
		if(!(!(var0010 == var0006))) goto labelFunc0313_01AA;
		var000D = var0010;
	labelFunc0313_01AA:
		goto labelFunc0313_018E;
	labelFunc0313_01AD:
		var0011 = UI_get_object_position_20(var000D);
		var0011[0x0002] = (var0011[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(0xFF58, var0011, 0x000A, 0xFF58, 0x04A8, true);
		UI_set_path_failure_A7([0x04A8], 0xFF58, 0x000E);
		abrt();
		goto labelFunc0313_01FA;
	labelFunc0313_01EF:
		UI_item_say_4D(0xFE9C, "@The lever will not move.@");
		abrt();
	labelFunc0313_01FA:
		goto labelFunc0313_00DE;
	labelFunc0313_01FD:
		goto labelFunc0313_0204;
	labelFunc0313_0200:
		Func08DA(item);
	labelFunc0313_0204:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func090C 0x90C (var var0000, var var0001);
extern var Func089D 0x89D (var var0000);
extern Func0924 0x924 (var var0000, var var0001);
extern Func092A 0x92A (var var0000);

Func0314 0x314 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0001)) goto labelFunc0314_0032;
	UI_close_gumps_98();
	var0000 = Dupre;
	var0001 = Dupre;
	var0002 = Iolo;
	Func090D(item, var0000, var0001, var0002, 0x0314, item, 0x000A);
	labelFunc0314_0032:
		if(!((event == 0x000A) || (event == 0x0002))) goto labelFunc0314_01C3;
		if(!(event != 0x0002)) goto labelFunc0314_006A;
		var0003 = Func090C(0xFE9C, item);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0003, 0x01, 0x67, 0x61]);
	labelFunc0314_006A:
		var0005 = UI_get_item_frame_1A(item);
		var0006 = var0005;
		if(!((var0005 % 0x0002) == 0x0000)) goto labelFunc0314_0095;
		UI_set_item_frame_1B(item, (var0005 + 0x0001));
		goto labelFunc0314_00A1;
	labelFunc0314_0095:
		UI_set_item_frame_1B(item, (var0005 - 0x0001));
	labelFunc0314_00A1:
		UI_play_sound_effect2_A1(0x0046, item);
		var0007 = UI_get_item_quality_1C(item);
		if(!((var0006 > 0x0005) && (var0006 < 0x000C))) goto labelFunc0314_00FD;
		if(!(var0006 < 0x000A)) goto labelFunc0314_00E5;
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x02E8], 0x0001);
		goto labelFunc0314_00FA;
	labelFunc0314_00E5:
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x060B], 0x0001);
	labelFunc0314_00FA:
		goto labelFunc0314_01C3;
	labelFunc0314_00FD:
		var0008 = UI_find_nearby_41(item, 0x0366, 0x000F, 0x0000);
		var0009 = UI_find_nearby_41(item, 0x0203, 0x000F, 0x0000);
		var0008 = (var0008 & var0009);
		var0009 = [];
		enum();
	labelFunc0314_0130:
		for (var000C in var0008 with var000A to var000B atend labelFunc0314_0156);
		if(!(UI_get_item_quality_1C(var000C) == var0007)) goto labelFunc0314_0153;
		var0009 = (var0009 & var000C);
	labelFunc0314_0153:
		goto labelFunc0314_0130;
	labelFunc0314_0156:
		var0004 = Func089D(var0009);
		Func0924(item, 0xFE99);
		if(!((var0007 >= 0x00C9) && (var0007 <= 0x00D9))) goto labelFunc0314_01C3;
		var000D = [0x0087, 0x06C2, 0x0001];
		if(!UI_find_object_32(var000D, 0x0314, 0x00DC, 0x0000)) goto labelFunc0314_019E;
		gflags[01E0] = true;
	labelFunc0314_019E:
		if(!UI_find_object_32(var000D, 0x0314, 0x00DC, 0x0001)) goto labelFunc0314_01B5;
		gflags[01E0] = false;
	labelFunc0314_01B5:
		if(!(gflags[01E0] == true)) goto labelFunc0314_01C3;
		Func092A(var0007);
	labelFunc0314_01C3:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern var Func0890 0x890 ();
extern var Func08E7 0x8E7 (var var0000);

Func0316 0x316 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event != 0x0001)) goto labelFunc0316_0009;
	exit2();
	labelFunc0316_0009:
		if(!UI_in_gump_mode_9B()) goto labelFunc0316_0014;
		UI_close_gumps_98();
	labelFunc0316_0014:
		if(!UI_get_barge_6D(item)) goto labelFunc0316_00D2;
		if(!(!UI_get_item_flag_A3(0xFE9C, 0x000A))) goto labelFunc0316_00BA;
		var0000 = UI_get_item_quality_1C(item);
		var0001 = UI_count_objects_31(0xFE9B, 0x031D, var0000, 0xFE99);
		if(!(((!var0001) && (!gflags[0005])) && (!((var0000 == 0x0001) && gflags[00EC])))) goto labelFunc0316_007D;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) == 0x0001)) goto labelFunc0316_0076;
		Func094A("@This vessel belongs to another.@");
		goto labelFunc0316_007C;
	labelFunc0316_0076:
		Func094A("@This vessel doth not belong to us.@");
	labelFunc0316_007C:
		exit2();
	labelFunc0316_007D:
		if(!Func0890()) goto labelFunc0316_00A8;
		UI_clear_item_flag_A5(0xFE9C, 0x0014);
		UI_set_item_flag_A4(0xFE9C, 0x000A);
		UI_set_item_flag_A4(UI_get_barge_6D(0xFE9C), 0x001A);
		goto labelFunc0316_00B7;
	labelFunc0316_00A8:
		var0002 = Func08E7(item);
		UI_set_item_flag_A4(item, 0x0014);
	labelFunc0316_00B7:
		goto labelFunc0316_00D2;
	labelFunc0316_00BA:
		UI_clear_item_flag_A5(item, 0x0014);
		UI_clear_item_flag_A5(item, 0x000A);
		UI_clear_item_flag_A5(item, 0x001A);
	labelFunc0316_00D2:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();

Func0319 0x319 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0000)) goto labelFunc0319_0070;
	var0003 = UI_die_roll_17(0x0001, 0x0004);
	if(!(var0003 == 0x0001)) goto labelFunc0319_003A;
	UI_item_say_4D(item, "@All dead...@");
	labelFunc0319_003A:
		if(!(var0003 == 0x0002)) goto labelFunc0319_004C;
		UI_item_say_4D(item, "@Oh, Britannia...@");
	labelFunc0319_004C:
		if(!(var0003 == 0x0003)) goto labelFunc0319_005E;
		UI_item_say_4D(item, "@If only the Avatar...@");
	labelFunc0319_005E:
		if(!(var0003 == 0x0004)) goto labelFunc0319_0070;
		UI_item_say_4D(item, "@Curse the Guardian!@");
	labelFunc0319_0070:
		if(!(event == 0x0009)) goto labelFunc0319_0088;
		UI_item_say_4D(item, "@Ah, there thou art, Avatar!@");
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc0319_0088:
		if(!(event == 0x0007)) goto labelFunc0319_00D5;
		UI_show_npc_face0_05(0xFEEC, 0x0000);
		UcMessage("\"This nightmare hath become too much to bear! The Avatar himself hath turned against me!\" *\"The Guardian's foul deeds have even corrupted our last bastion of virtue. Britannia is lost without its hero! I must awake...\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0004 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x001A, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x004C);
		UI_kill_npc_57(item);
	labelFunc0319_00D5:
		if(!(event == 0x0001)) goto labelFunc0319_02EB;
		UI_show_npc_face0_05(0xFEEC, 0x0000);
		UcMessage("\"Avatar! At last thou hast come. Seeing thee again hath brought me strength.\"");
		UcSay;
		UcMessage("\"Dost thou know that I expected to find thee here, in my dreams? I wish that thou wert truly here to counsel me...");
		UcSay;
		UI_add_answer_0C(["name", "job", "bye"]);
	labelFunc0319_00FF:
		UcAsk;
		cmps("name");
		UcMessage("\"Dost thou truly have to ask my name? Hast thou suffered from the recent afflictions as has all of Britannia? Canst thou not recognize thine old friend?\"* \"'Tis I, Lord British, ruler of all Britannia. Or at least what is left of it after all of the disasters...\"");
		UcSay;
		UI_remove_answer_0D("name");
		UI_add_answer_0C(["disasters"]);
	labelFunc0319_011F:
		cmps("job");
		UcMessage("\"Thou dost have to ask? Why, I am ruler of Britannia, if thou dost not remember.\" ~\"'Tis sad. Truly thou art suffering from some sort of malady such as the imbalances which are plaguing all of the land. I fear that nature is trying to rend itself apart.\" ~\"Mine only hope is that thou art truly in fair health and that this pale reflection of thee in my dream is only a deceit of thy true fate.\"");
		UcSay;
		UI_remove_answer_0D("job");
		UI_add_answer_0C(["dream"]);
	labelFunc0319_013C:
		cmps("dream");
		UcMessage("\"Of course this is a dream! Thou hast not yet returned from the Serpent Isle to which I sent thee.\" *\"Some days I fear that thou shalt never return... The storms began shortly after thou didst set sail.\"");
		UcSay;
		UI_remove_answer_0D("dream");
		UI_add_answer_0C("storms");
	labelFunc0319_0156:
		cmps("storms");
		UcMessage("\"They are storms unlike anyone has seen before. The scholars can find no mention of such storms in any of the archives.\" *\"How can a mere stroke of lightning rip away the entire royal mint...\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["mint", "disturbance"]);
	labelFunc0319_0176:
		cmps("mint");
		UcMessage("\"Thou dost think me slack-witted, I am certain. But I have seen it for myself...\" *\"The royal mint is gone. In its place stands a strange lighthouse.\"");
		UcSay;
		UI_remove_answer_0D("mint");
		UI_add_answer_0C("lighthouse");
	labelFunc0319_0190:
		cmps("lighthouse");
		UcMessage("\"'Twas clear enough what it was... Its light was still shining after the storm.\" *\"But none of the sailors recognized it.\"");
		UcSay;
		UI_remove_answer_0D("lighthouse");
	labelFunc0319_01A3:
		cmps("disturbance");
		UcMessage("\"I know not what they mean... But none of the mages in Britannia seem to be able to predict the outcome of the most simple spells.\"");
		UcSay;
		UI_remove_answer_0D("disturbance");
		UI_add_answer_0C("outcome");
	labelFunc0319_01BD:
		cmps("outcome");
		UcMessage("\"A mage might find his entire house burned to the ground after merely trying to light a candle magically. Or another mage may, in the same instant, find himself unable to light a candle with a great flame spell.\" *\"The mages claim that the ether is unstable...\"");
		UcSay;
		UI_remove_answer_0D("outcome");
		UI_add_answer_0C("ether");
	labelFunc0319_01D7:
		cmps("ether");
		UcMessage("\"Ether, that which mages call upon to shape their spells. The mages say that the instability is a very bad sign.\" *\"According to the mages, such an imbalance could easily destroy the world -- if it continues to increase in severity.\"");
		UcSay;
		UI_remove_answer_0D("ether");
	labelFunc0319_01EA:
		cmps("disasters");
		UcMessage("\"If it were only the strange storms, or only the magic instability, I would be less concerned. But when thou dost consider it along with the earthquakes, the emps, and the gargoyles, I fear that the world may indeed be ending.\"");
		UcSay;
		UI_remove_answer_0D("disasters");
		UI_add_answer_0C(["earthquakes", "emps", "gargoyles"]);
	labelFunc0319_020D:
		cmps("earthquakes");
		UcMessage("\"The earthquakes started not long after the storms began. At first they were fairly small and infrequent, but now they are growing more powerful and threatening the castle itself.\"");
		UcSay;
		UI_remove_answer_0D("earthquakes");
		UI_add_answer_0C("castle");
	labelFunc0319_0227:
		cmps("castle");
		UcMessage("\"Only this morning did a guard find a crack at the base of the castle's foundation. It hath grown wider during the day...\" *\"If the castle falls, there will be no turning back. There will be nothing I can do to hold back the destruction.\"");
		UcSay;
		UI_remove_answer_0D("castle");
	labelFunc0319_023A:
		cmps("emps");
		UcMessage("\"Thou shouldst remember the emps, Avatar. Thou didst save their trees before I sent thee to find the Serpent Isle.\" *\"I fear that this cataclysm is affecting them the hardest of all.\"");
		UcSay;
		UI_remove_answer_0D("emps");
		UI_add_answer_0C("cataclysm");
	labelFunc0319_0254:
		cmps("cataclysm");
		UcMessage("\"The emps live in closer harmony with the natural world than man does, Avatar. The storms and earthquakes have brought a great illness upon them.\"");
		UcSay;
		UI_remove_answer_0D("cataclysm");
		UI_add_answer_0C("illness");
	labelFunc0319_026E:
		cmps("illness");
		UcMessage("\"Many of the emps have died already. I have little hope that any of that gentle race shall survive, even if the world doth not rend itself apart.\" *\"I am sure that the illness will spread to humans, if something is not done to stop these disasters.\"");
		UcSay;
		UI_remove_answer_0D("illness");
	labelFunc0319_0281:
		cmps("gargoyles");
		UcMessage("\"The gargoyles have also succumbed to these afflictions. They have fallen into a deep state of dreaming.\"");
		UcSay;
		UI_remove_answer_0D("gargoyles");
		UI_add_answer_0C("dreaming");
	labelFunc0319_029B:
		cmps("dreaming");
		UcMessage("\"Few of the gargoyles can resist the compulsion to sleep, Avatar. Their slumber seems troubled, however. They thrash about and mutter in their sleep.\" *\"Yet when we attempted to wake a sleeping gargoyle, to see if his dreams held any answers, he attacked us. I fear that we will have no answers from dreams...\"");
		UcSay;
		UI_remove_answer_0D("dreaming");
		UI_add_answer_0C("answers");
	labelFunc0319_02B5:
		cmps("answers");
		UcMessage("\"There are no answers, Avatar. No answers for those who sleep. I must wake and seek what answers I can without thee here.\" *\"I do not know that thou couldst save us if thou wert here, but I would have more hope if thou didst return...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_schedule_type_25(item, 0x0007);
		abrt();
	labelFunc0319_02CE:
		cmps("bye");
		UcMessage("\"Yes, yes. I should not be talking to myself anyway. With Britannia in the grip of these dark events it would be best if the people not fear that I have become afflicted, too. Thank thee, Avatar. Though thou art just a dream thou hast given me hope that Britannia will yet survive these dark days.\"");
		UcSay;
		UI_set_schedule_type_25(item, 0x0007);
		UI_remove_npc_face1_08();
		abrt();
	labelFunc0319_02E7:
		goto labelFunc0319_00FF;
	labelFunc0319_02EA:
		end_conv();
	labelFunc0319_02EB:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func031D 0x31D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event != 0x0001)) goto labelFunc031D_0009;
	exit2();
	labelFunc031D_0009:
		var0000 = UI_is_pc_female_6F();
		var0001 = "him";
		var0002 = "his";
		if(!var0000) goto labelFunc031D_002E;
		var0001 = "her";
		var0002 = "her";
	labelFunc031D_002E:
		var0003 = UI_get_item_quality_1C(item);
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		if(!(var0003 == 0x0000)) goto labelFunc031D_0054;
		UcMessage("One bird in thine hand is better than two birds in the bush.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0054:
		if(!(var0003 == 0x0001)) goto labelFunc031D_0065;
		UcMessage("To the adventurer actively looking for me treasure:~~ Yes, thou be looking for me gold, I ken that much.~~Beware!~~ All is not as easy as it seems. All is not as it appears. Thou may not see what is there and what thou do not see can harm ye. Nevertheless, what thou do not see may save thy life.~ Thy rewards will make ye rich. In order to go there, thou hast to find the entrance. Obvious, yes? Yes, but the entrance is not to be found easily, for it is a hidden one.~ Good luck to ye!~~Silverpate.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0065:
		if(!(var0003 == 0x0002)) goto labelFunc031D_00D6;
		var0004 = Func0953();
		UcMessage("To Gustacio, wisest of Mages --");
		UcSay;
		UcMessage("The Mundane outsider, ");
		UcMessage(var0004);
		UcMessage(", carried with ");
		UcMessage(var0001);
		UcMessage(" a very rare and powerful weapon. The blade gained its considerable power from a Daemon bound within the blade by a most puissant enchantment.");
		UcSay;
		UcMessage("I would very much like to study the Mundane's blade. Unfortunately, ");
		UcMessage(var0004);
		UcMessage(" released the Daemon from the sword in order to escape from the Mountains of Freedom.");
		UcSay;
		UcMessage("I wonder... how doth a mere Mundane obtain such a weapon?");
		UcSay;
		UcMessage("Now the blade needs to have its sorcerous energies realigned if it is to ever contain another bound spirit.");
		UcSay;
		UcMessage("I could repair it if I coud use thy flux analyzer. I know that the device was stolen from thee years ago. Hast thou ever recovered it?");
		UcSay;
		UcMessage("-- Melino");
		UcSay;
		if(!(!gflags[00CE])) goto labelFunc031D_00D3;
		if(!gflags[023C]) goto labelFunc031D_00C3;
		var0005 = Func0992(0x0001, "@We found it in Skullcrusher!@", "@I found it in Skullcrusher!@", true);
		goto labelFunc031D_00D3;
	labelFunc031D_00C3:
		var0005 = Func0992(0x0001, "@We must seek this flux analyzer!@", "@I must find this flux analyzer!@", true);
	labelFunc031D_00D3:
		goto labelFunc031D_0A44;
	labelFunc031D_00D6:
		if(!(var0003 == 0x0003)) goto labelFunc031D_00F3;
		UcMessage("I See the @Hero From Another Land@ in the frozen lands of the North. The Hero seeks the wife of ");
		UcMessage(var0002);
		UcMessage(" oldest companion. A wall of ice doth prevent the Hero from reaching the woman. The Hero lifts a horn -- the Horn of the Gwani -- to ");
		UcMessage(var0002);
		UcMessage(" lips and blows. The sound of the horn is deafening! The wall of ice is shattered!");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_00F3:
		if(!(var0003 == 0x0004)) goto labelFunc031D_0104;
		UcMessage("Dearest Delphynia,~~ The enchanted afternoon when I first saw thy precious face, thou wert in the full bloom of thy beauty and I was blinded. I forgot everything, everyone. I forgot all about Batlin standing next to me and the reagents we were supposed to purchase. That day I fell in love with thee, my Delphynia. But I fear thou wert blinded by my physical appearance as well. Alas! The scars that twist my face are not a pretty sight.~ Look beyond mine appearance, Delphynia. Let thy mind's eye see my soul. Thy mind is less deceitful than thine eyes which only glance at the surface of things and people. If thou wilt but look, thou wouldst see the hidden treasures of thy	scarred Ruggs. For I am a good man. My heart is pure and so is my mind, Delphynia. I beg of thee, look at me. 'Til I see thee again,~~Ruggs.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0104:
		if(!(var0003 == 0x0005)) goto labelFunc031D_0115;
		UcMessage("  Oh, Great Captains, my Great Captains! So powerful you were yesterday, so pitiful you are today. Rulers of the City are now prisoners of the Oracle. What a fate you might have met! Iolo is pleased that such powerful creatures as you, Great Captains, have lost power, herein uncovering the fools in them... ~~Iolo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0115:
		if(!(var0003 == 0x0006)) goto labelFunc031D_012A;
		UcMessage("Everyone is in search of The Lady of Fawn. For The Lady hath been lost since dawn. Barking their strange tune throughout the city, All of them, townsfolk and priests. Iolo did it, enjoying such feasts. Avatar, is it not pretty?~~");
		UcSay;
		UcMessage("      Iolo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_012A:
		if(!(var0003 == 0x0007)) goto labelFunc031D_013F;
		UcMessage("   I must seek out Voldin. He will know what can be done against the power that this \"Mad\" Iolo doth exhibit. I still can hardly believe what hath befallen me, Zulith, Chancellor of Fawn -- the most clever man on Serpent Isle: forced to flee from an insane mage!~ ~Still, all is not lost: the treasure room is well hidden and I have one of its two keys. Lady Yelinda doth have the other, though I doubt she remembers it. ~The so-called Serpent Armour is safe from that devil Iolo, and I still have my freedom and my life. Yet I cannot leave Fawn till I have secured all of the treasure!~ ~Hah! 'Tis laughable to think about the titular ruler of Fawn -- Lady Yelinda -- a woman that hath the intelligence of a fish. 'Tis best that she spend the rest of her days trapped in Gorlab, the fool! She thought that I was merely redecorating her throneroom when in sooth I had constructed (with the help of a Moonshadian mage) an illusionary wall in the southeast room of the palace! ~That is where I had to store the Serpent Armour. 'Tis safe from all, I tell you!~~");
		UcSay;
		UcMessage("PS: I must incorporate these writings into my diary lest I forget!");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_013F:
		if(!(var0003 == 0x0008)) goto labelFunc031D_0150;
		UcMessage("Kylista needs must speak with thee, Avatar, now that is interesting... Heretofore, she was in communication with the Oracle and now she wants thee. Is there any hidden meaning to this change of heart? Thou shouldst know the answer to that, Avatar. When a woman needs to speak to one such as thee, thou dost not want her to wait, Avatar, or dost thou? Is there anything we should be aware of?~ Thy good old friend Iolo wants to know, Avatar...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0150:
		if(!(var0003 == 0x0009)) goto labelFunc031D_016F;
		UcMessage("  Journey to the mint; ambush the hero there. Succeed in thy mission and thou shalt be richly rewarded. There is but one penalty for failure -- death!");
		UcSay;
		UcMessage("~  Remember, the Avatar often travels with accursed companions, and they may be with ");
		UcMessage(var0001);
		UcMessage(". Ignore the companions -- direct thine energies to one goal: the destruction of the Avatar! Destroy this note.~");
		UcSay;
		UcMessage("   No evidence should be left behind thee. ~~  Batlin");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_016F:
		if(!(var0003 == 0x000A)) goto labelFunc031D_0188;
		UcMessage("  Honor be to thee, dear reader. This piece of parchment is mine only means of communication with thee. Mad Iolo cruelly removed my tongue, that I might lead by example and not by words!");
		UcSay;
		UcMessage("  I am so disenchanted... I cannot bear the fact that I could not save the city from further plagues. Moreover, there is absolutely no sign of the return of Batlin.");
		UcSay;
		UcMessage("  What is going to happen? Thou shouldst tell me, I beg of thee. ~~   Leon.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0188:
		if(!(var0003 == 0x000B)) goto labelFunc031D_01A1;
		UcMessage("Right adventurous Avatar,~");
		UcSay;
		UcMessage("   I greet thee well, Avatar, sending thee my blessings and letting thee know that it appears that thou art not paying due attention to my clues.");
		UcSay;
		UcMessage("   I require thee that thou dost so. ~~Faithfully thine, ~~                  Iolo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01A1:
		if(!(var0003 == 0x000C)) goto labelFunc031D_01B2;
		UcMessage("Thou art required at the temple for the trial");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01B2:
		if(!(var0003 == 0x000D)) goto labelFunc031D_01C7;
		UcMessage("Order be to thee, my right good reader!~~ Beware that when the virtues are in imbalance, a whole new system is set in motion. The Chaos Forces without the Order Forces create the Chaos Anti-Forces. I hope thou dost understand what the implications of such a change mean.~ A virtue like Tolerance without Ethicality creates a lack of standards of conduct and would lead, without a doubt, to Anarchy.~ Enthusiasm without Discipline promises actions without self-restraint that is Wantonness.~ Emotion deprived of Logic would foster an inability to overcome emotional impulses with rational thoughts, which augurs Insanity.~~");
		UcSay;
		UcMessage("On the other hand, the Order Forces without the Chaos Forces create the Order Anti-Forces.~ In this case, it means that Ethicality without Tolerance would bring about disrespect for the beliefs and rights of others.~ Discipline without Enthusiasm would foster a spirit of hopelessness which retards positive action. That is called Apathy.~ Logic without Emotion leads to self-advancing actions taken without regard to the wants or needs of others. That is called Ruthlessness. Hence, it is now obvious that only Discipline can correct Gwenno.~ Have this in remembrance and take care of thyself,~~Karnax");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01C7:
		if(!(var0003 == 0x000E)) goto labelFunc031D_01D8;
		UcMessage("Through darkness and despair~ The land was bare~ Looking for Thee, Mondain~ Alas, but in vain~ My soul and mine heart~ Pierced by Cupid's dart~ Will never heal~ Without Mondain's will~ Love is a desolate land~ Unless Thou, Mondain~ Takest me by the hand~ To thy youth fountain ~~Minax");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01D8:
		if(!(var0003 == 0x0014)) goto labelFunc031D_01ED;
		UcMessage("Notes to myself~~by Erstam~");
		UcSay;
		UcMessage("Methinks I knowest now why the blink spell no longer works. These cursed teleportation storms disturb the ether in such a way that the spell often ceases to function. Other times, it is partially successful, as when I cast it on Vasel's predecessor. Nasty business, that.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01ED:
		if(!(var0003 == 0x0015)) goto labelFunc031D_01FE;
		UcMessage("After many weeks of fruitless study, I can only conclude that the blink spell simply no longer works correctly. Nine times out of ten, nothing at all happens, while the results of the tenth occurrence are best not pondered. The most obvious reason for these failures is this blasted weather we have been experiencing. Maybe when the storms lessen, I can divine the answer. Until then, I will continue in mine attempts to find the answer.~ Notes this day, by Gustacio.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_01FE:
		if(!(var0003 == 0x001B)) goto labelFunc031D_0213;
		UcMessage("Most esteemed Ruggs,");
		UcSay;
		UcMessage("  I cannot forget the day I first beheld thy face, for it is never far from my mind. As thou art never far from mine heart. I will admit that to thee, though it may shame me. I cannot promise when, or if, we can ever be together, dear Ruggs. For thou art in exile, and I am the only healer in Fawn. I cannot dwell outside of the gates with thee, no matter how much mine heart may wish it. But someday, if the heavens smile upon us, I shall be able to cast aside my doubts and come to thee as thy love. Until then, I remain ever thine.~~Delphynia");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0213:
		if(!(var0003 == 0x001F)) goto labelFunc031D_0228;
		UcMessage("The Magic Compass~~This is said to be the legendary artifact which guided Erstam the Mad during the voyage to Serpent Isle. ~ To use it, thou must set the Compass upon the ground, and then chant the mantra 'Yleg Ort.' ~According to legend, the compass will show thee the way to travel, but only if thou art worthy.~~As for myself, I have never been able to make the damn thing work. Hence, I am donating it to the Seminarium.~~Filbercio the MageLord");
		UcSay;
		gflags[012A] = true;
		goto labelFunc031D_0A44;
	labelFunc031D_0228:
		if(!(var0003 == 0x0025)) goto labelFunc031D_0239;
		UcMessage("~~All is not as it seems...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0239:
		if(!(var0003 == 0x0026)) goto labelFunc031D_024A;
		UcMessage("   This shall be the last of my writings. The freakish storms have continued to worsen. The laborers have all fled in terror, despite mine offer of greater remuneration. It seems fate hath decreed my country estate shall never be completed...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_024A:
		if(!(var0003 == 0x002A)) goto labelFunc031D_025F;
		UcMessage("     I have been here for more days than I am able to remember, though I have not forgotten the day I entered this forsaken cave which has become my tomb. That was 2-29-0227. But my food was depleted long ago, and the rats are more interested in eating me than letting me eat them. My strength is gone, as is my will. If thou dost find this, please tell Mythra I love her.~~");
		UcSay;
		UcMessage("     --Denyel");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_025F:
		if(!(var0003 == 0x002B)) goto labelFunc031D_0278;
		UcMessage("Welcome, travellers, and be at ease.~ This rest house is open to all who Walk in Beauty.~");
		UcSay;
		UcMessage("Feel free to take whatever food thou mayest need.~");
		UcSay;
		UcMessage("As a courtesy to other travellers, please leave the rest house in the manner that thou didst find it...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0278:
		if(!(var0003 == 0x002C)) goto labelFunc031D_0291;
		UcMessage("Welcome to the Broken Oar, the finest inn in the known world!~");
		UcSay;
		UcMessage("While thou art staying at our fine inn, thou mayest like to try our fine food. Inquire downstairs with the bartender, Jendon.~");
		UcSay;
		UcMessage("We hope that thou dost enjoy thy stay at our establishment...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0291:
		if(!(var0003 == 0x002D)) goto labelFunc031D_02A2;
		UcMessage("Dearest Devra,~~ I hate having to leave thee for even a moment, but my father is as unmovable as a mountain!~ The months that we shared have been unforgettable.~ I will miss thee so much! I will miss thy wondrous red hair, thy silken skin, and thy lovely voice.~ I will miss all of thee. Please write to me. As thou knowest, I shall be going back to our inn, the Sleeping Bull.~~ Love, Angus");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_02A2:
		if(!(var0003 == 0x002E)) goto labelFunc031D_02B7;
		UcMessage("ERAX'S JOURNAL~~");
		UcSay;
		UcMessage("I alone have managed to safely return to the surface. Mine arrogant curiosity was almost mine undoing. The ruined Ophidian structure in the caverns below the swamp is very dangerous. My companions fell to the blows of the undead. No monk should ever return there. I have taken the key that opens the gate to the area and hidden it in the hollow tree near the southeastern portion of the ruin	in the swamp. I pray that no one shall ever find that key...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_02B7:
		if(!(var0003 == 0x002F)) goto labelFunc031D_02D0;
		UcMessage("XENKA'S PROPHECIES~");
		UcSay;
		UcMessage("Scattered Verses, Part I~~");
		UcSay;
		UcMessage("Madness! Madness is all I can see! The world hath turned inside out. The stars shine blood red... Men are beasts... Beasts are men... Ashes... Ashes. The End is upon us all... Snakes leering in the void... Dancing a dance of death.~~ The vision is over. I am without Sight...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_02D0:
		if(!(var0003 == 0x0030)) goto labelFunc031D_02F5;
		UcMessage("XENKA'S PROPHECIES~");
		UcSay;
		UcMessage("Scattered Verses, Part II~~");
		UcSay;
		UcMessage("I see the Hero From Another World ringing the bells!");
		UcSay;
		UcMessage("I am not there. I am dead. Ring the bells. Oh, joy!");
		UcSay;
		UcMessage("What sweet music the bells make");
		UcSay;
		UcMessage("I am dreaming. I hear the bells and I wake...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_02F5:
		if(!(var0003 == 0x0031)) goto labelFunc031D_031E;
		UcMessage("XENKA'S PROPHECIES~");
		UcSay;
		UcMessage("Scattered Verses, Part III~~");
		UcSay;
		UcMessage("I See the frozen waste...");
		UcSay;
		UcMessage("The Hero From Another World is there...");
		UcSay;
		UcMessage("I See men who are not men covered in fur...");
		UcSay;
		UcMessage("I See the Hero From Another World strike...");
		UcSay;
		UcMessage("No! The world is collapsing! I cannot breathe!");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_031E:
		if(!(var0003 == 0x0032)) goto labelFunc031D_0337;
		UcMessage("XENKA'S VISIONS~");
		UcSay;
		UcMessage("Scattered Verses, Part IV~~");
		UcSay;
		UcMessage("The Hero From Another World will meet the descendants of the Silver Captain under the	sign of the Bull. The Hero From Another World will be betrayed by a follower of the Other...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0337:
		if(!(var0003 == 0x0033)) goto labelFunc031D_0350;
		UcMessage("HORTICULTURAL NOTES~~");
		UcSay;
		UcMessage("The Mandrake Root, by Trexin the Gardener~");
		UcSay;
		UcMessage("The mandrake root is a short-stemmed plant that hath a fleshy, often forked root, somewhat resembling a man. This tuber, though not particularly pleasant to gaze upon, doth have useful qualities. The root seems to add power to certain spells of the greater circles. The mandrake root, contrary to what my colleague Moxa thinks, can indeed be found on our lonely isle. The root can be found growing in the swamp that is located on the northern part of the island. Most peculiarly, the root doth seemingly appear at random times...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0350:
		if(!(var0003 == 0x0034)) goto labelFunc031D_0369;
		UcMessage("HORTICULTURAL NOTES~~");
		UcSay;
		UcMessage("The Berry Bush, by Trexin the Gardener~");
		UcSay;
		UcMessage("I have discovered a wonderful plant that I have named the Berry Bush.	The fruit of this plant hath a wonderfully bittersweet, tangy taste. Furthermore, the bush doth grow well in our intemperate clime and needs little maintenance to produce an abundant crop.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0369:
		if(!(var0003 == 0x0036)) goto labelFunc031D_0392;
		UcMessage("XENKA'S VISIONS~");
		UcSay;
		UcMessage("Scattered Verses, Part V~~");
		UcSay;
		UcMessage("In the City of Mages, on the Isle of Beyond,~");
		UcSay;
		UcMessage("Doth the Hero walk~");
		UcSay;
		UcMessage("Mages with two faces prance about~");
		UcSay;
		UcMessage("To prove his worth, The Hero From Another World");
		UcSay;
		UcMessage("Must survive the perils of Freedom...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0392:
		if(!(var0003 == 0x0039)) goto labelFunc031D_03A3;
		UcMessage("I returned home to the Bull as soon as I received Mother's letter. It was not easy to relinquish my command, but Mother needed me, and so here I am.~ I have examined the grounds and found nothing. Mother says she heard noises from the cellar the night Father disappeared. When I investigated, I found crates overturned, but nothing else. I feel so	useless! If only I had something, some shred of evidence indicating what became of Father...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_03A3:
		if(!(var0003 == 0x003A)) goto labelFunc031D_03B4;
		UcMessage("   Welcome to the Sleeping Bull Inn! Our inn hath been owned by the same family for four generations. We have a long tradition of service. We will do our best to ensure that thy stay at the inn will be most enjoyable.~ If thou hast any questions, please inquire of Mistress Devra or Master Angus.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_03B4:
		if(!(var0003 == 0x003B)) goto labelFunc031D_03CD;
		UcMessage("This day Silverpate came to see me. The black-harted demon came to glote, and to give me scroll and kwill.~");
		UcSay;
		UcMessage("He said that I could rite whate'er I wanted, fer I would never see daylite agin. I fear he is rite.~ Silverpate beleves that I stole from him, the paranoid old coot! I ne'er woud beleve me mates when they spoke of the \"littel demons\" in the cap'in's pate, tellin him what to do.~ Corse, I beleved em rite enuf when ol' Pate tole me these things hisself!~ Alas, I lerned too late to prevent me imprisonment.~ I figure ol' Pate will ne'er read me words, and if he do, then so be it.~ Whomever ye be that reads me words, be warned aginst Cap'in Silverpate. He uses majic wardrobes to spy on his own mates! The littel swiches at the Bull don't work, the cap'in said, unless the \"Master Wardrobe\" is used. This \"Master Wardrobe\" be sichuated down in these here catacomes.~ I also herd the evil-harted bastard yammer bout sum Serpint Gate. Ol' Pate said the gate was hidden. It be rite hard to be thinkin strate, but I think the cap'n said something bout too torches markin the hidden entrans.");
		UcSay;
		UcMessage("Maybe this Serpint Gate cood help thee. Corse, it be likely that no bloke will e'er read me scribling...~ Pate thinks everyone be after his trezhure. So distrustful be ol' Pate, he even spies on his own famly!~ Let it be nown that I, Bren, cheef bosun on the Black Gull, were a pirate who ne'er turned aginst one o' his own...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_03CD:
		if(!(var0003 == 0x003C)) goto labelFunc031D_03E2;
		UcMessage("MAGIC SCROLLS -- A Primer~");
		UcSay;
		UcMessage("   The process of inscribing scrolls with mystic runes is beyond the scope of this primer. Using these enchanted scrolls, however, is a trivial matter. To unleash the power of the spell, simply unroll the parchment. The Runes of Power, and the scroll itself, will be totally consumed by the energies that are released.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_03E2:
		if(!(var0003 == 0x003D)) goto labelFunc031D_03F7;
		UcMessage("Beloved Shamino:~");
		UcSay;
		UcMessage("   Right beloved Sir, I recommend me to thee, greeting thee well and sending thee my blessings. I have to confess and apologize to thee for I have	looted the King's private arms. I beg of thee not to condemn me too hastily for I committed that horrible action when the castle was under siege. Danger was everywhere and so were the goblins. Thou wert not here and I had to take action. We need thee at the castle, prithee, when art thou returning? Life without thee is an endless torment. The goblins seemed to be a deliverance more than a threat to me. I am right sorry for this and wish it hath been otherwise. I wait daily for thee to come hither.~~Faithfully, thy Beatrix");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_03F7:
		if(!(var0003 == 0x003E)) goto labelFunc031D_0408;
		UcMessage("Come in and join the party...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0408:
		if(!(var0003 == 0x003F)) goto labelFunc031D_0421;
		UcMessage("   I know I did evil things whilst I was under the control of the Bane. In order to atone for the harm I have caused, I shall sacrifice myself to the Crematorium. If mine ashes can help restore the balance, then I might be partially redeemed for mine evil acts.~~");
		UcSay;
		UcMessage("    Farewell,~");
		UcSay;
		UcMessage("             Dupre");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0421:
		if(!(var0003 == 0x0040)) goto labelFunc031D_0442;
		UcMessage("Me Map, but I don't need to say that, because if it's anybody but me what's looking at this, I don't want to tell where me treasure is, so read no further, ye dog, lest I leave yer fate to the briny deep! This is dead-reckoning right, but I'm awfully drunk and mebbe I'm holdin' this thing upside-down.");
		UcSay;
		UcMessage("98S,28W");
		UcSay;
		UcMessage("33 Paces past the rock, excludin' that break I took fer drinkin'.");
		UcSay;
		UcMessage("11 Paces east of the whatever that blasted thing is.");
		UcSay;
		UcMessage("30 Paces, I think, because I was staggerin' about a bit and I stumbled and lost me count a couple o' times, past whatever me stinkin' map says is supposed to be there; I was sober when I drew that beauty. Unless this is me what's readin' this, I hope the treasure's already gone, ye thief!");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0442:
		if(!(var0003 == 0x0042)) goto labelFunc031D_0463;
		UcMessage("I have paid thee -- and paid thee well -- to fulfill the contract.");
		UcSay;
		UcMessage("Only fools would pay a great sum for an easy task... And I am no fool.");
		UcSay;
		UcMessage("Remember, I have chosen thee because thou art the best weapon available to me at the moment. Make no mistake, the Avatar is not an easy target and certainly the most challenging thou hast ever had.");
		UcSay;
		UcMessage("Dispose of the Avatar quickly. Destroy this note. No evidence should be left behind thee.");
		UcSay;
		UcMessage("X");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0463:
		if(!(var0003 == 0x0043)) goto labelFunc031D_047A;
		UcMessage("My dearest,~~ I beg thy forgiveness for my behavior last night. This difficulty with the Avatar hath disrupted my performance, but I assure thee that once we have taken care of ");
		UcMessage(var0001);
		UcMessage(", I will hold a private celebration thou shalt not soon forget...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_047A:
		if(!(var0003 == 0x0045)) goto labelFunc031D_04DF;
		UcMessage("Parting Verses: by Vasculio~~ As they lower me down,~ To this hole in the ground,~ I scream for help,~ But they can't hear a sound.~ I scratch on this lid,~ My fingers they bleed.~ They plant me deep,~ Like an evil seed.~ Now my bones decompose,~ My flesh doth rot,~ But soon I will rise,~ And torture the lot.");
		UcSay;
		var0006 = UI_find_nearby_41(0xFE9C, 0x00F3, 0x0028, 0x0000);
		if(!var0006) goto labelFunc031D_04DC;
		if(!(!gflags[0248])) goto labelFunc031D_04DC;
		gflags[0248] = true;
		var0007 = UI_direction_from_A2(0xFE9C, var0006);
		var0008 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, var0007, 0x27, 0x0005, 0x55, 0x0526]);
		UI_remove_item_84(item);
	labelFunc031D_04DC:
		goto labelFunc031D_0A44;
	labelFunc031D_04DF:
		if(!(var0003 == 0x0046)) goto labelFunc031D_04F0;
		UcMessage("Right Heartily and Beloved Father,~~ I recommend me to thee, letting thee know I am doing exceedingly well! Though I miss thee and my beloved sister, Alyssand, I am so excited. I have been learning so much magic, thou wouldst not believe thine eyes. I am good. Honest. I swear to thee, that's what the Mages here are saying. 'Tis fun, but frightening as well.~ I am a dedicated student, Father, thou canst be proud of me. And Alyssand, too. I miss thee so much. Thou shouldst visit. The Palace is a sight to see. Gorgeous! These Mages are incredible!~ Learning how to be a Mage is not easy, but I love it as much as I miss thee.~ Thou art on my mind everyday. I hope to see thee soon.~~ Eternal love,~~ Freli");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_04F0:
		if(!(var0003 == 0x0047)) goto labelFunc031D_0511;
		UcMessage("   To thee, fine warrior, who hast made it this far:");
		UcSay;
		UcMessage("If thou seekest to be a Knight of Monitor, thou must be willing");
		UcSay;
		UcMessage("to shed thy blood for the defense of others. To prove thy resolve,");
		UcSay;
		UcMessage("take this claw and use it upon thy person. Let thy blood be thine oath.~~");
		UcSay;
		UcMessage("   --Shmed, Master of Knight's Test");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0511:
		if(!(var0003 == 0x0048)) goto labelFunc031D_0536;
		UcMessage("   To thee, fine warrior, who hast made it this far:");
		UcSay;
		UcMessage("If thou seekest to be a Knight of Monitor, thou must mingle thy");
		UcSay;
		UcMessage("blood with the ashes of our ancient foe, Gurnordir the goblin king.");
		UcSay;
		UcMessage("Thy blood pledges vengeance against our enemies, and will give thee");
		UcSay;
		UcMessage("thy totem animal, the key to thy soul.~~");
		UcSay;
		UcMessage("  --Shmed, Master of Knight's Test");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0536:
		if(!(var0003 == 0x0049)) goto labelFunc031D_0553;
		UcMessage("   I love thee, father. I hope thou dost kill more than thy share of");
		UcSay;
		UcMessage("goblins. Come home soon.~~");
		UcSay;
		UcMessage("     Cantra");
		UcSay;
		gflags[00C6] = true;
		goto labelFunc031D_0A44;
	labelFunc031D_0553:
		if(!(var0003 == 0x004A)) goto labelFunc031D_0574;
		UcMessage("   Note to myself for further exploration of the North:");
		UcSay;
		UcMessage("I seem to have lost the Serpent Tooth I took from the Mad Mage.");
		UcSay;
		UcMessage("Need to check the area near the savages, as that was where I last");
		UcSay;
		UcMessage("remember having it with me.~~");
		UcSay;
		UcMessage("     Frigidazzi");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0574:
		if(!(var0003 == 0x0050)) goto labelFunc031D_05C1;
		UI_play_music_39(0x0032, Func09A0(0x0005, 0x0001));
		UcMessage("Dearest Drogeni,~");
		UcSay;
		UcMessage("   What follows is an excerpt from my translation of an ancient manuscript. The translation is crude since I do not as yet fully understand the Serpent Runes, but I think thou wilt find this very exciting.~ Until we meet again,~~-- Erstam, thy devoted servant~~");
		UcSay;
		UcMessage("   I write this in great haste, for I can already hear the forces of Order breaching the keep walls. I know not how this missive will survive to reach the outside lands, or for that matter, future generations. Mine only hope is that this speedily-drafted work");
		UcSay;
		UcMessage(" will offer record of our hallowed philosophy. For our culture to have any chance of enduring the ages, someone, somewhere must find this.~ Please, reader, I beseech thee, spread the word of our peoples. Release the spirit of our word and learn from the wisdom of the past.~~");
		UcSay;
		UcMessage("   Balance -- The harmony between the Principles of Order and Chaos -- is the one pure axiom we hold true.  All three Principles are symbolized in our hieroglyphs: The Great Earth Serpent, keeper of Balance, lies on a vertical plane, around which the two opposing serpents of Chaos and Order wrap themselves.~~");
		UcSay;
		UcMessage("   Chaos and Order each embrace three Forces. These six Forces, when combined, form the three Principles of Balance. The Forces of Chaos are Tolerance, Enthusiasm, and Emotion; the Forces of Order are Ethicality, Discipline, and Logic.~~");
		UcSay;
		UcMessage("CHAOS~Tolerance is that which encourages the acceptance of all things. Enthusiasm is the energy that allows one to perform great tasks. Emotion is the ability to perceive those feelings that come from the heart, as opposed to coming from the mind.~~");
		UcSay;
		UcMessage("ORDER~Ethicality is the belief that there is great value in abiding by rules of conduct. Discipline is the drive to complete a task and avoid the distractions that will prevent its completion. Logic permits clear, reasoned thought, free from any instinctual biases.~~");
		UcSay;
		UcMessage("BALANCE~From the marriage between two Forces, one each from Chaos and Order, come the Principles.~ Tolerance and Ethicality combine to form Harmony, the ability to be at peace with the self, the individual, and the world.~ From the union of Enthusiasm and Discipline springs Dedication, that which permits one to surmount obstacles and lead others.~");
		UcSay;
		UcMessage("And finally, Emotion tempered by Logic results in Rationality, the ability to comprehend life and understand the world around us.~~");
		UcSay;
		UcMessage("   The Forces of Chaos and Order must ever remain in Balance, for imbalance leads to disaster. Witness the war-torn state of our world today! ~~As thou canst surely see, my world hath been torn asunder by disregard for Balance -- our dearest axiom! If thou dost thrive");
		UcSay;
		UcMessage("in a time less violent, I can do no more than plead with thee to help restore Balance to the Serpent Isle! I must end this brief explication here, for I can hear mine attackers pounding upon the oaken door downstairs. I wish thee and thy world better fortune than mine own.~~ -- Ssithnos, the Great Hierophant");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_05C1:
		if(!(var0003 == 0x0064)) goto labelFunc031D_05D2;
		UcMessage("My darling Rotoluncia,~~ I know thy feelings about my letters, but I cannot help myself -- I think of thee day and night! Thou art the light of my miserable existence. Thou art like the sun, blinding all who doth gaze upon thy beauty. Thy lips are more luscious than the sweetest fruit. Thy skin is smoother than the most glorious rose. Thou art the essence of womanhood; none can surpass thee!~ Please, I beg of thee, say that thou wilt be mine!~~ Anxiously awaiting thy reply,~~ Filbercio ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_05D2:
		if(!(var0003 == 0x0065)) goto labelFunc031D_05E0;
		UcMessage("My darling Rotoluncia,~~ I know that thou dost love me as much as I love thee. Let us forget all of the intrigue that plagues this city and flee to the mainland! I can have built for us a modest love nest where we may spend the rest of our days in bliss!~ Thy servant,~~ Filbercio ");
		UcSay;
	labelFunc031D_05E0:
		if(!(var0003 == 0x0066)) goto labelFunc031D_05F1;
		UcMessage("My darling Rotoluncia,~~ I tried to sleep after our dalliance this night, yet I cannot. The feel of thy silken hair and the sweet taste of thy lips linger. Oh, my darling, I cannot wait until I see thee again. I feel that I shall go mad if I cannot make thee mine!~~ Thy lover,~~ Filbercio ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_05F1:
		if(!(var0003 == 0x0067)) goto labelFunc031D_0602;
		UcMessage("Rotoluncia,~~ I saw thee staring at that pig Torrissio at the banquet last night and I know now that thine affections shown toward me were false. Thou art a cow and a shabby sorceress as well!~ Do not try to pretend otherwise, for I know the truth now. I want nothing more from thee ever again!~~ Filbercio ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0602:
		if(!(var0003 == 0x0078)) goto labelFunc031D_0621;
		UcMessage("Marsten, Lord of Monitor:~~ The destruction of thine enemies is certain. My brave Goblin warriors have already plundered the Fawn Tower, and the Wolves which guarded it.~ Next, we shall strike the Bull Tower, and the Bears which serve there. Hail to victory! Soon, the Wolves and Bears shall cease to trouble thee. Then Monitor and the Goblins shall live in peace, and thou shalt be King of the Monitorians.~~ Do not let this messenger fall into the hands of our enemies.~~ Pomdirgun,~Chieftain of the Goblin Horde");
		UcSay;
		UI_set_item_flag_A4(0xFFBB, 0x001D);
		gflags[0093] = true;
		goto labelFunc031D_0A44;
	labelFunc031D_0621:
		if(!(var0003 == 0x0079)) goto labelFunc031D_064E;
		UcMessage("   Honor be to thee, Pomdirgun, Chieftain of the Goblin Horde:~~ Letting thee know that all of our plans in these parts fare well. I have learned from the Wolves that they plan to launch a patrol in the early morning hours of the seventh day of the new moon.~ If thou dost ambush the patrol, then it shall be easy for thee to overrun Fawn Tower itself.~ The Wolves shall be critically weakened, and the City of Fawn shall quake in fear!~ But if thou canst, spare the life of the leader of the patrol. She is a favorite of my liege.~~ We beg of thee not to let this messenger fall into the hands of our enemies, the Wolves.~~ Spektor, writing on behalf of Lord Marsten");
		UcSay;
		gflags[0093] = true;
		UI_set_item_flag_A4(0xFFBB, 0x001D);
		gflags[0094] = true;
		UI_set_item_flag_A4(0xFFB3, 0x001D);
		goto labelFunc031D_0A44;
	labelFunc031D_064E:
		if(!(var0003 == 0x007A)) goto labelFunc031D_066D;
		UcMessage("   Honor be to thee, Pomdirgun, Chieftain of the Goblin Horde:~~ Letting thee know that all of our plans in these parts fare well. Having learned from our successful experience with Fawn Tower, we have decided to withdraw, on the fourth night of the coming moon, as many troops as possible from Bull Tower.~ The Bears shall be marching westward on the plains, and shall be easily slaughtered.~ Then thou canst take the Tower, and plunder the Inn of the Sleeping Bull.~~ We want to remind thee of the supreme importance not to let this messenger fall into the hands of our enemies, the Wolves and the Bears.~~ Marsten, King of Monitor");
		UcSay;
		gflags[0093] = true;
		UI_set_item_flag_A4(0xFFBB, 0x001D);
		goto labelFunc031D_0A44;
	labelFunc031D_066D:
		if(!(var0003 == 0x007B)) goto labelFunc031D_0682;
		UcMessage("   Old man, if thou dost truly wish to survive Freedom, but dost feel that thou canst live to tell the tale of Lorthondo's final test, thou hast only to serve in my slave pit. Tend to my pets and I shall personally show thee to the door and to the blue skies of daylight and freedom. Guard my nightmare and care for him well.~ He is a treasure and a daemon in one. Take him through the teleporter once each day and let him feel the grass beneath his hooves.~ Take care, for one strike of his hoof could kill an old fool such as thou.~ Be thou sure to keep Sabrina from him. I fear that she doth frighten him. I find it strange that such a wild, untamed creature such as that should be frightened of her touch. Then again, mayhaps I can fathom why. ~");
		UcSay;
		UcMessage("   Lastly, take great care of my small furry prize. Do not be fooled by its diminutive size, it hath taken the lives of many a foolhardy man who dared to approach thinking it might make a tasty morsel.~ Thou shouldst treat it with as much respect as thou wouldst bestow upon me. If thou dost not, either one of us could end thy miserable existence.~ In the supply room, thou wilt find a year's worth of carrots for Buggs. Feed him but one per day. Place the carrots upon his golden plate -- 'tis the only way that he will feed. He is of royal lineage -- a born predator. If thou dost not, thou mayest find that thou art his next meal.~ Serve me well, old man, and thou mayest live to see the outside of this prison some year...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0682:
		if(!(var0003 == 0x007F)) goto labelFunc031D_0697;
		UcMessage("To me fellow trappers:~~ Greetings to ye.~~ I will be heading north when ye be reading this message. Make sure ye guard the cave and protect our goods well. If I find out ye let some ne'er-do-well steal our goods, I'll personally skin every one of ye bastards, hang yer hide on me walls, and eat yer black hearts for supper!~ By the way, don't be lookin fer the wonderful glass sword that appeared after the last storm, for I took it with me. I be headin' back to the North.~ This fancy sword should be mighty handy for slaying some dragon or other fearsome beast...~ Slaughter a beast in mine honor.~~Hazard");
		UcSay;
		gflags[028C] = true;
		goto labelFunc031D_0A44;
	labelFunc031D_0697:
		if(!(var0003 == 0x0082)) goto labelFunc031D_06AC;
		UcMessage("Virtues ----------------------------- ~ Tolerance, Enthusiasm, and Emotion Ethicality, Discipline, and Logic ~ ----------------------------- ~~");
		UcSay;
		UcMessage("Anti-Virtues ----------------------------- ~ Anarchy, Wantonness, and Insanity Prejudice, Apathy, and Ruthlessness ~ ----------------------------- ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_06AC:
		if(!(var0003 == 0x0087)) goto labelFunc031D_06C5;
		UcMessage("I, Purlonio, merchant of Moonshade, am about to tell my tale.~~ Back in the early days of the Sosarian colonization of Serpent Isle, I had accumulated -- I have to tell thee -- a massive fortune in the city. After a most unusual dream, I called upon an enchantress for help. She was expensive, but of good and right advice. Drogeni, the Wizard, warned me that I was about to lose all of my cherished wealth in the near future and that there was nothing she could do to prevent this from happening.~");
		UcSay;
		UcMessage("I thought I could outsmart Fate... I took all of my possessions, all of my gold, in a ship to this cave in the far northern reaches for safe storage.~ I hired Drogeni to create a series of tunnels in the rear of the cave so that a magic map would be required and no one could survive without it.~ Thereupon, I had the wizard conjure an Ice Dragon to guard my riches. Once this was done, we sailed back to the southern plains where I rid myself of the enchantress so that no one would ever know the secret to my riches.~");
		UcSay;
		UcMessage("Unfortunately, upon the death of the wizard, the magical map disintegrated. Fearing that the prophecy had come true, I went back to the cave and tried to find the route to my riches. To this day, I have not found my treasure.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_06C5:
		if(!(var0003 == 0x008D)) goto labelFunc031D_06D6;
		UcMessage("   In my life as a criminal, as they call me, I have had many a task to overcome. None before was as hard as the ones I am about to describe. This is done so that thou mayest save thy time and thy life.~ Of all the traps I had to overcome, the most interesting ones were the spear traps.~ First of all, thou needest to enter the caretaker's room. After many an observation and many more days than thou wouldst think, I discovered the routine of the caretaker.~ He usually is on patrol during the whole afternoon. He makes his rounds at noon and midnight.~ In his storehouse, thou shouldst find barrels and chests. Rummaging through the barrels I found a hidden lever. That lever, I came to realize later, turns off the spear traps in the corridor.~ Make good use of that, my friend. Blessings upon thee.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_06D6:
		if(!(var0003 == 0x0095)) goto labelFunc031D_06EB;
		UcMessage("To My Good Brethren and Comrades In Arms,~~");
		UcSay;
		UcMessage("After many long, arduous and harrowing adventures I have collected this considerable treasure. While this fair measure of wealth would be enough to keep a man happy for the rest of his days, I cannot possess it without remembering my good fellow knights -- many to whom I owe my very life. It is to thee that I leave this bountiful reward. It is secured by the soundest means that I currently have at my disposal. To obtain it, one need only use THE KEY.~~ Ever-faithful,~~   Pendar-");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_06EB:
		if(!(var0003 == 0x0096)) goto labelFunc031D_0704;
		UcMessage("Hark, adventurer, and read these words well.~~ Many know me as Gannt the Bard, singer of songs, and writer of fine poetry for all to enjoy. Though many know of me, most do not know of my life, or at least of how I came to this end. Read, and read well, dear adventurer.~ If thou hast any justice in thine heart, or any pity in thy soul, then thou wilt seek vengeance for mine untimely death. If thou, hearty adventurer, hast any sense of duty to avenge evils, then thou must seek out the craven and cowardly Captain Stokes of the rusty old bucket 'The Mustang' and exact just payment, for alas, since I am not of this world, I cannot.~~ One day as I was at the Inn of Sleeping Bull, plucking my lute, not bothering anyone, but practicing my trade, in walked the swine, Captain Stokes, billowing foul fog upon us with his ill-smelling fag.~");
		UcSay;
		UcMessage("Seeing that no one in the fair establishment could stomach the pungent smell of his tobacco-like rot, I dared to ask him to put it out, for the sake of all our healths. He stared at me, then turned a blind eye. I went back to strumming my lute, 'til again the smell began to bring tears to mine eyes. Again I asked him, begged him to stop, but again he turned away.~ Finally, as gentle ladies began to leave for air, and good children began to cough and cry from the Captain's reeking root, I tried once more. This time, though, he answered with the blade of his dagger. He thrust well through my lute and into mine entrails, stuffing it deep into my belly.~");
		UcSay;
		UcMessage("He grinned and twisted the blade, not once nor twice, but thrice! Being but a humble bard and quite mortal, I had little choice but to expire. I fell in a pool of mine own blood, mine hand strumming my last chord as I fell.~ I ask thee, I beg of thee to give me peace, and exact vengeance for my death. Before thee is the key to his rotten hovel which thou mayest find to the west of Fawn, above the forest of Knight's Test. Many ill-begotten instruments doth he hide in his house of ill-wares. Beware them! Please, noble adventurer, exact justice for my death, and exact the toll from that evil Captain Stokes.  Do this and let my spirit rest peacefully...~~Gannt...");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0704:
		if(!(var0003 == 0x00B5)) goto labelFunc031D_0715;
		UcMessage("The Art of Winemaking~~ The art of winemaking is not a difficult trade; indeed, making fine wine is the simplest of tasks. There are those laymen, however, who doth think making wine is some great secret. Nothing could be further from the truth!~ Sorcery hath made the process of making wine very easy, but sorcery cannot make the wine taste good. To make great wine, thou needest but one commodity -- great grapes! That is the secret to making a truly great vintage, one that shall be remembered by all who partake. ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0715:
		if(!(var0003 == 0x00BC)) goto labelFunc031D_073A;
		var0004 = Func0953();
		UcMessage("Dear ");
		UcMessage(var0004);
		UcMessage(", ~All of the portents indicate that this Quest to Find Batlin shall severely tax thine abilities. Consequently, I have ordered the armouries of the kingdom opened in order to equip thee and thy good companions. ~~Thou shalt be given these things -- ~~The Glass Sword, which can slay any foe (but which is destroyed in the act of such slaughter). ~~The MageBane, a fabled weapon which thou didst recover in thy previous encounter with Batlin. It steals the magic from sorcerers who oppose thee. ~~The Daemon Sword which thou didst obtain at the Forge of Virtue. It is truly a terrible weapon, but thou wilt surely need it. Beware the Daemon within!");
		UcSay;
		UcMessage("Rudyom's Wand, which doth make blackrock to explode. ~~The strange Serpent of Blackrock, which thou didst obtain from netherworlds during thy most recent adventure. Its powers are unknown, but those who gave it thee promised that it would be useful to thee soon. ~~A spellbook, to which hath been added every spell that could be speedily obtained. ~~For thee to wear, a set of armour of the best enchantments: breastplate, helm, and gauntlets. ~~For Iolo the Bard: a crossbow, which he doth wield so well. ~~For noble Dupre: a Magic Shield which I have prepared for him. ~~For Shamino the Ranger: a Magic Bow, and a goodly supply of Burst Arrows, which he shall no doubt use to good purpose. ~~As well as such common items as torches, a pair of swamp boots, a good dagger, and much food for an extended journey.");
		UcSay;
		UcMessage("~~Travel in safety, and may the villain Batlin soon fall into thine hands! Also, I hope that thou shalt soon find Iolo's lost wife, the goodwoman Gwenno. ~~~-- Lord British, thy liege.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_073A:
		if(!(var0003 == 0x00BD)) goto labelFunc031D_0941;
		UcMessage("The list of items which we found ourselves with after the storm:~~");
		UcSay;
		UcMessage("Prepared by Shamino.");
		UcSay;
		if(!gflags[00B7]) goto labelFunc031D_0756;
		UcMessage("With additional notes by Dupre.");
		UcSay;
	labelFunc031D_0756:
		if(!gflags[0078]) goto labelFunc031D_0760;
		UcMessage("And further comments by Iolo, since being freed from that vile Monitorian prison cell!");
		UcSay;
	labelFunc031D_0760:
		UcMessage("~~");
		UcSay;
		if(!(gflags[027A] && (!gflags[028C]))) goto labelFunc031D_0773;
		UcMessage("A pinecone (or, at least, it appears to be one).");
		UcSay;
	labelFunc031D_0773:
		if(!gflags[028C]) goto labelFunc031D_077D;
		UcMessage("A pinecone from the northern woods.");
		UcSay;
	labelFunc031D_077D:
		if(!(gflags[027B] && (!gflags[028D]))) goto labelFunc031D_078C;
		UcMessage("A fine pair of sheer stockings, probably women's attire.");
		UcSay;
	labelFunc031D_078C:
		if(!gflags[028D]) goto labelFunc031D_0796;
		UcMessage("A pair of moonsilk stockings, such as the enchantress Columna doth wear.");
		UcSay;
	labelFunc031D_0796:
		if(!(gflags[027C] && (!gflags[028E]))) goto labelFunc031D_07A5;
		UcMessage("Some sort of vase, with soot inside.");
		UcSay;
	labelFunc031D_07A5:
		if(!gflags[028E]) goto labelFunc031D_07AF;
		UcMessage("A funerary urn containing the Ashes of the Dead, taken from the Caves of Monitor.");
		UcSay;
	labelFunc031D_07AF:
		if(!(gflags[027D] && (!gflags[0110]))) goto labelFunc031D_07BE;
		UcMessage("A strange apparatus of glass and copper.");
		UcSay;
	labelFunc031D_07BE:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc031D_07CD;
		UcMessage("A specimen of laboratory apparatus from a mage's laboratory.");
		UcSay;
	labelFunc031D_07CD:
		if(!(gflags[0110] && gflags[028F])) goto labelFunc031D_07DB;
		UcMessage("The missing apparatus from the laboratory of Erstam, the so-called Mad Mage.");
		UcSay;
	labelFunc031D_07DB:
		if(!(gflags[027E] && (!gflags[0290]))) goto labelFunc031D_07EA;
		UcMessage("A rock.");
		UcSay;
	labelFunc031D_07EA:
		if(!gflags[0290]) goto labelFunc031D_07F4;
		UcMessage("A pumice rock from the fiery depths of some dungeon.");
		UcSay;
	labelFunc031D_07F4:
		if(!(gflags[027F] && (!gflags[014C]))) goto labelFunc031D_0803;
		UcMessage("A finely crafted ring, of silver, of a size to fit a small woman or a child.");
		UcSay;
	labelFunc031D_0803:
		if(!(gflags[014C] && (!gflags[0291]))) goto labelFunc031D_0812;
		UcMessage("A finely crafted silver ring, probably the lost engagement ring of a lass named Alyssand.");
		UcSay;
	labelFunc031D_0812:
		if(!gflags[0291]) goto labelFunc031D_081C;
		UcMessage("The engagement ring belonging to Alyssand of Fawn.");
		UcSay;
	labelFunc031D_081C:
		if(!(gflags[0280] && (!gflags[02A0]))) goto labelFunc031D_082B;
		UcMessage("A ridiculous fur cap.");
		UcSay;
	labelFunc031D_082B:
		if(!(gflags[02A0] && (!gflags[0292]))) goto labelFunc031D_083A;
		UcMessage("An expensive fur cap, which the MageLord of Moonshade obtained for one of his many lovers.");
		UcSay;
	labelFunc031D_083A:
		if(!gflags[0292]) goto labelFunc031D_0844;
		UcMessage("The elegant fur cap which Filbercio the MageLord purchased for his favorite, the sorceress Frigidazzi.");
		UcSay;
	labelFunc031D_0844:
		if(!(gflags[0281] && (!gflags[0293]))) goto labelFunc031D_0853;
		UcMessage("Some very old and worn slippers, such as might be worn in the privacy of one's home.");
		UcSay;
	labelFunc031D_0853:
		if(!gflags[0293]) goto labelFunc031D_085D;
		UcMessage("The well-worn slippers belonging to Devra, the mistress of the Inn of the Sleeping Bull.");
		UcSay;
	labelFunc031D_085D:
		if(!(gflags[0282] && (!gflags[0294]))) goto labelFunc031D_086C;
		UcMessage("An enameled breastplate, suitable for ceremonial occasions.");
		UcSay;
	labelFunc031D_086C:
		if(!gflags[0294]) goto labelFunc031D_0876;
		UcMessage("The ceremonial breastplate of the Priestess of Beauty, who is Kylista of Fawn. A very attractive lady, I should add.");
		UcSay;
	labelFunc031D_0876:
		if(!(gflags[0283] && (!gflags[0295]))) goto labelFunc031D_0885;
		UcMessage("A strange blue egg.");
		UcSay;
	labelFunc031D_0885:
		if(!gflags[0295]) goto labelFunc031D_088F;
		UcMessage("A penguin egg, such as may be found in the ice fields of the distant north.");
		UcSay;
	labelFunc031D_088F:
		if(!(gflags[0284] && (!gflags[0296]))) goto labelFunc031D_089E;
		UcMessage("A crude brush.");
		UcSay;
	labelFunc031D_089E:
		if(!gflags[0296]) goto labelFunc031D_08A8;
		UcMessage("A grisly brush made from the bones of some poor victim of the Goblins. How foul!");
		UcSay;
	labelFunc031D_08A8:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc031D_08B7;
		UcMessage("A bottle of ice wine -- whatever that is!");
		UcSay;
	labelFunc031D_08B7:
		if(!gflags[0297]) goto labelFunc031D_08C1;
		UcMessage("A bottle of that excellent vintage of wine sold by the Rangers of Moonshade. Why, I should sample some now...");
		UcSay;
	labelFunc031D_08C1:
		if(!(gflags[0287] && (!gflags[0299]))) goto labelFunc031D_08D0;
		UcMessage("Strange baubles -- silver disks with jewels in the center.");
		UcSay;
	labelFunc031D_08D0:
		if(!gflags[0299]) goto labelFunc031D_08DA;
		UcMessage("Jeweled coins from the City of Beauty, Fawn.");
		UcSay;
	labelFunc031D_08DA:
		if(!(gflags[0288] && (!gflags[029A]))) goto labelFunc031D_08E9;
		UcMessage("A large skull, no doubt belonging to some large and dead animal.");
		UcSay;
	labelFunc031D_08E9:
		if(!gflags[029A]) goto labelFunc031D_08F3;
		UcMessage("The skull of a great mountain bear.");
		UcSay;
	labelFunc031D_08F3:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc031D_0902;
		UcMessage("A bloody hand, severed from its corpse. It shows no sign of decay, yet...");
		UcSay;
	labelFunc031D_0902:
		if(!gflags[029B]) goto labelFunc031D_090C;
		UcMessage("The severed hand from one of the Mad Mage's experiments. It is not dead, yet not living -- it doth not decay.");
		UcSay;
	labelFunc031D_090C:
		if(!(gflags[028A] && (!gflags[029C]))) goto labelFunc031D_091B;
		UcMessage("An inexpensive shield, sturdy and suitable for battle.");
		UcSay;
	labelFunc031D_091B:
		if(!gflags[029C]) goto labelFunc031D_0925;
		UcMessage("One of the common shields used by the Pikemen of Monitor.");
		UcSay;
	labelFunc031D_0925:
		if(!(gflags[028B] && (!gflags[029D]))) goto labelFunc031D_0934;
		UcMessage("A red hunk of stone.");
		UcSay;
	labelFunc031D_0934:
		if(!gflags[029D]) goto labelFunc031D_093E;
		UcMessage("The dangerous mineral known as Stoneheart, which is used to produce the illegal reagent Bloodspawn.");
		UcSay;
	labelFunc031D_093E:
		goto labelFunc031D_0A44;
	labelFunc031D_0941:
		if(!(var0003 == 0x00BE)) goto labelFunc031D_0952;
		UcMessage(" Inventory swap list as updated by Iolo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0952:
		if(!(var0003 == 0x00BF)) goto labelFunc031D_0963;
		UcMessage("Inventory swap list as updated by Dupre");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0963:
		if(!(var0003 == 0x00C9)) goto labelFunc031D_0974;
		UcMessage("This certificate entitles the bearer to commit thievery up to a maximum of one hour.~~Shamino the Anarch.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0974:
		if(!(var0003 == 0x00CA)) goto labelFunc031D_0985;
		UcMessage("This is an invitation for thee and thy friends to dine at the MageLord's Palace.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0985:
		if(!(var0003 == 0x00CB)) goto labelFunc031D_0996;
		UcMessage("Dearest Avatar,~~ I would like to congratulate thee from the bottom of mine heart, on obtaining thy spellbook. That was not an easy task. Thou didst accomplish it most admirably.~ Also, I have been told that thou art asking questions about me. I think I would be the best person from whom to obtain the ultimate answers to thy questions. That is, the ones concerning myself.~ For all those reasons and so many more, I would like for thee to come to my manor. ~~Frigidazzi.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0996:
		if(!(var0003 == 0x00CC)) goto labelFunc031D_09A7;
		UcMessage("Dearest Avatar,~~ ~Love and Honor be to thee. Letting thee know that I cannot wait to see thee again. I cannot think of time far from thy strong person and handsome body. Thy broad shoulders and great arms are such an open invitation for a woman like me. Thine eyes, Avatar, so piercing yet so full of love. I could feel that love during thy last visit.~ I beg of thee, come visit me tonight. Thou dost remember where my manor is, dost thou not? I have a very rare spell (a true tongue-twister) I could teach thee and thou wouldst be the only one enjoying that treasured spell of mine. Once more, I beg of thee, do come tonight and do come alone.~~ Thy love,      ~~Frigidazzi.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09A7:
		if(!(var0003 == 0x00CD)) goto labelFunc031D_09B8;
		UcMessage("Dearest Avatar,~~ A thousand apologies is what I present thee with. I am the one who caused thee to be arrested and I cannot forgive myself.~ Thou hauntest my dreams. Memories of thee flash in front of mine eyes and the only way I can solve this nightmare is by presenting thee with a very special gift.~ I beg of thee to accept these Serpent Earrings, a token of mine affection for thee, Avatar. ~~Frigidazzi.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09B8:
		if(!(var0003 == 0x00CE)) goto labelFunc031D_09C9;
		UcMessage("   Fedabiblio, this is a message to let thee know that all is not well.~ I desperately need thine help. I beg of thee to answer my call.~ Thou must needs use the Crystal Ball.~~Gustacio.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09C9:
		if(!(var0003 == 0x00CF)) goto labelFunc031D_09DA;
		UcMessage("To the right good Avatar,~~ Thou must not think thy quest is done. For I offer ye a great challenge. To ye I leave my treasure -- if thou canst find it.~ Within this booty lies a Serpent Crown, waiting for ye to discover its hiding place.~~Captain Hawk.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09DA:
		if(!(var0003 == 0x00D0)) goto labelFunc031D_09EB;
		UcMessage("Avatar,~~ I have in my possession something extremely valuable which would be even more vital to thee. Thou couldst make good use of it, believe me.~ If thou art interested (and thou shouldst be), come to the cabin in the forest.~~Stefano.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09EB:
		if(!(var0003 == 0x00D1)) goto labelFunc031D_09FC;
		UcMessage("From Flindo~~ To Torrissio:~~ Dearest and most Powerful Mage,~~ I recommend me to thee as well as the bearer of this message.~ This letter of introduction entitles the bearer to a chat with thee. Trust thy righteous friend, Torrissio, the bearer is worth thy time.~ I thank thee for thine understanding. Treat the bearer the way thou wouldst treat me.~~ With a right good will, sincerely thy,~~Flindo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_09FC:
		if(!(var0003 == 0x00D2)) goto labelFunc031D_0A0D;
		UcMessage("To Melino and Columna:~~ Dearest and most Powerful Mages,~~ I recommend me to thee as well as the bearer of this message. This letter of introduction entitles the bearer to a chat with you. Trust thy righteous friend, the bearer is worth your time.~ I thank you for your understanding. Treat the bearer the way you would treat me.~~ With a right good will, faithfully,~~Flindo");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0A0D:
		if(!(var0003 == 0x00D3)) goto labelFunc031D_0A1E;
		UcMessage("Dearest Avatar,~~ Love and Honor be to thee. Letting thee know that I cannot wait to see thee again. I cannot think of time far from thy strong and good-hearted person.~ Thine eyes, Avatar, so piercing yet so full of love. I could feel that love during thy last visit. I beg of thee, come visit me tonight.~ I have a very rare spell I could teach thee and thou wouldst be the only one learning it.~ Once more, I beg of thee, do come tonight and do come alone.~~ Sincerely thy,	~~Frigidazzi.");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0A1E:
		if(!(var0003 == 0x00D4)) goto labelFunc031D_0A2F;
		UcMessage("   I have made the most wonderful discovery about the Comb that I took from that empty-headed ruler of Fawn! No longer shall I be forced to content myself with the bumbling attentions of Melino, my pitiful excuse for a husband!~ For upon using the Comb on myself, I have become beautiful and desirable! No one will ever guess now that Mosh and I are twins! Now I may use my wits for better things... like the Adept Torrissio!~~Columna");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0A2F:
		if(!(var0003 == 0x00D5)) goto labelFunc031D_0A40;
		UcMessage("Know, adventurer, that to proceed onward thou must pass three puzzles. At the first test, throw two down. At the second test: throw three down to get eight. At the third test: throw four down to get twelve.	If the levers are not in the correct position when the button is depressed, thou wilt surely be destroyed.~ Aram-Dol ");
		UcSay;
		goto labelFunc031D_0A44;
	labelFunc031D_0A40:
		UcMessage("     QA, report this scroll.");
		UcSay;
	labelFunc031D_0A44:
		return;
}
Func031F 0x31F (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc031F_003B;
	if(!(UI_get_item_frame_1A(item) != 0x0012)) goto labelFunc031F_0015;
	abrt();
	labelFunc031F_0015:
		UI_item_say_4D(0xFE9C, "@Hello, head.@");
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Who said that?@", 0x27, 0x0007, 0x55, 0x0422]);
	labelFunc031F_003B:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0320 0x320 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = 0xFE9C;
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_set_item_quality_1D(item, 0x0000);
	var0003 = UI_get_object_position_20(item);
	var0004 = UI_get_object_position_20(0xFE9C);
	if(!(var0001 < 0x00FB)) goto labelFunc0320_0153;
	UI_sprite_effect_68(0x002F, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0051);
	if(!var0002) goto labelFunc0320_0153;
	Func097F(0xFE9C, "@Trapped!@", 0x0000);
	var0005 = UI_get_party_list_2B();
	var0006 = 0x0010;
	enum();
	labelFunc0320_007B:
		for (var0009 in var0005 with var0007 to var0008 atend labelFunc0320_00C7);
		UI_set_item_flag_A4(var0009, 0x0008);
		UI_set_item_flag_A4(var0009, 0x0007);
		UI_set_item_flag_A4(var0009, 0x0002);
		UI_set_item_flag_A4(var0009, 0x0003);
		var0006 = (var0006 + 0x0010);
		Func097F(0xFE9C, "@Arrrgh!@", var0006);
		goto labelFunc0320_007B;
	labelFunc0320_00C7:
		UI_sprite_effect_68(0x0021, (var0004[0x0001] + 0x0002), var0004[0x0002], Dupre, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0021, var0004[0x0001], (var0004[0x0002] + 0x0002), 0x0000, Dupre, 0x0000, Dupre);
		UI_sprite_effect_68(0x0021, (var0004[0x0001] - 0x0002), var0004[0x0002], 0x0001, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0021, var0004[0x0001], (var0004[0x0002] - 0x0002), 0x0000, 0x0001, 0x0000, Dupre);
	labelFunc0320_0153:
		if(!(var0001 == 0x00FB)) goto labelFunc0320_01C4;
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x001D);
		Func097F(0xFE9C, "@Yow!", 0x0002);
		Func097F(0xFE9C, "'Twas trapped!@", 0x0012);
		UI_set_item_flag_A4(0xFE9C, 0x0003);
		UI_sprite_effect_68(0x001A, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0320_01C4:
		if(!(var0001 == 0x00FC)) goto labelFunc0320_021A;
		UI_play_sound_effect_16(0x0052);
		var0002 = UI_create_new_object_2C(0x0386);
		if(!var0002) goto labelFunc0320_021A;
		Func097F(0xFE9C, "@'Twas trapped!@", 0x0002);
		UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_update_last_created_2F(var0004);
	labelFunc0320_021A:
		if(!(var0001 == 0x00FD)) goto labelFunc0320_026D;
		UI_play_sound_effect_16(0x005C);
		UI_sprite_effect_68(0x0006, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFE9C, "@Run away!@", 0x0000);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x060F], 0x0005);
	labelFunc0320_026D:
		if(!(var0001 == 0x00FE)) goto labelFunc0320_02C3;
		UI_play_sound_effect_16(0x0068);
		var0002 = UI_create_new_object_2C(0x0384);
		if(!var0002) goto labelFunc0320_02C3;
		Func097F(0xFE9C, "@Aagh! Poison!@", 0x0002);
		UI_sprite_effect_68(0x000D, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_update_last_created_2F(var0004);
	labelFunc0320_02C3:
		if(!(var0001 == 0x00FF)) goto labelFunc0320_0330;
		UI_sprite_effect_68(0x001B, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000A = UI_create_new_object_2C(0x037F);
		if(!var000A) goto labelFunc0320_0330;
		UI_play_sound_effect_16(0x0027);
		var0002 = UI_update_last_created_2F(var0004);
		var0002 = UI_delayed_execute_usecode_array_02(var000A, [0x23, 0x55, 0x02C0], 0x0007);
		Func097F(0xFE9C, "@Run away!@", 0x0002);
	labelFunc0320_0330:
		return;
}
// externs
extern var Func099D 0x99D (var var0000);
extern Func08AF 0x8AF (var var0000, var var0001);
extern var Func0955 0x955 ();
extern Func0922 0x922 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0326 0x326 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	UI_close_gumps_98();
	if(!(event == 0x0006)) goto labelFunc0326_002A;
	if(!((gflags[023A] == false) && (gflags[00CF] == true))) goto labelFunc0326_0029;
	if(!(!Func099D(item))) goto labelFunc0326_0029;
	Func08AF(item, 0x0000);
	labelFunc0326_0029:
		abrt();
	labelFunc0326_002A:
		if(!(event == 0x0001)) goto labelFunc0326_0260;
		if(!(gflags[00CF] == false)) goto labelFunc0326_00CA;
		if(!(gflags[00D0] || (gflags[00D2] || gflags[00D1]))) goto labelFunc0326_00C9;
		var0000 = UI_click_on_item_3F();
		if(!(!var0000)) goto labelFunc0326_0057;
		exit2();
	labelFunc0326_0057:
		var0001 = UI_get_item_shape_18(var0000);
		if(!(var0001 == 0x01BD)) goto labelFunc0326_00C9;
		var0002 = UI_get_item_frame_1A(var0000);
		if(!(gflags[00D0] && (var0002 == 0x0004))) goto labelFunc0326_0091;
		gflags[00D0] = false;
		UI_set_item_frame_1B(var0000, 0x0007);
	labelFunc0326_0091:
		if(!(gflags[00D2] && (var0002 == 0x0002))) goto labelFunc0326_00AD;
		gflags[00D2] = false;
		UI_set_item_frame_1B(var0000, 0x0005);
	labelFunc0326_00AD:
		if(!(gflags[00D1] && (var0002 == 0x0003))) goto labelFunc0326_00C9;
		gflags[00D1] = false;
		UI_set_item_frame_1B(var0000, 0x0006);
	labelFunc0326_00C9:
		abrt();
	labelFunc0326_00CA:
		if(!(!gflags[0006])) goto labelFunc0326_00F3;
		UI_close_gumps_98();
		UI_show_npc_face0_05(0xFEFF, 0x0000);
		UcMessage("\"Where hast thou taken me, Avatar?!\"");
		UcSay;
		UcMessage("\"I served thee well upon the Isle of Fire! Why hast thou brought me to this cold place?\"");
		UcSay;
		UcMessage("\"I gave thee the power of life and death over thine enemies! And see how thou hast repaid me?! I remain bound within this jewel... In a land where I cannot feed! The veins of power have been disrupted! Release me! Release me...\"");
		UcSay;
		UI_remove_npc_face0_07();
		abrt();
		goto labelFunc0326_0260;
	labelFunc0326_00F3:
		UI_close_gumps_98();
		UI_show_npc_face0_05(0xFEFF, 0x0000);
		UcMessage("\"I shall offer thee mine aid once again, Avatar... Thou dost not possess the skill or power enough to overcome the madman Lorthondo thou must face. I do, but not within the constraints of this gem in which thou didst bind me.\"");
		UcSay;
		UcMessage("\"Free me and I shall help thee win free of this place!\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0326_0140;
		UI_play_sound_effect_16(0x004C);
		UcMessage("\"Free! Free! Free at last!\"");
		UcSay;
		UI_play_sound_effect_16(0x0074);
		UcMessage("\"Thou art a fool, Avatar! Thou hast no idea what thou hast lost!\"");
		UcSay;
		UcMessage("\"I thank thee for thine ignorance...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func0922(0x0017);
		gflags[023A] = true;
		gflags[00CF] = false;
		goto labelFunc0326_014C;
	labelFunc0326_0140:
		UcMessage("\"Beware! The energy of the stones here is drawing away thy power to keep me imprisoned...\"");
		UcSay;
		UcMessage("\"But thou wilt accept mine offer yet...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc0326_014C:
		if(!(UI_npc_nearby_3A(0xFF5D) && (gflags[023A] == true))) goto labelFunc0326_0260;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0003 = UI_find_nearby_41(0xFF5D, 0x0113, 0x0000, 0x0010);
		if(!var0003) goto labelFunc0326_0186;
		UI_remove_item_84(var0003);
	labelFunc0326_0186:
		UI_clear_item_say_4E(0xFF5D);
		Func097F(0xFF5D, "@No, wait!...@", 0x0000);
		var0004 = UI_find_nearby_41(0xFF5D, 0x0341, 0x0005, 0x0000);
		var0004 = (var0004 & UI_find_nearby_41(0xFF5D, 0x0349, 0x0005, 0x0000));
		var0005 = UI_execute_usecode_array_01(var0004[0x0001], [0x27, 0x0005, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0003], [0x27, 0x0008, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0002], [0x27, 0x000A, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0004], [0x27, 0x000E, 0x55, 0x04A3, 0x2D]);
		var0006 = UI_find_nearest_15(0xFF5D, 0x031F, 0x000A);
		if(!var0006) goto labelFunc0326_0260;
		var0005 = UI_execute_usecode_array_01(var0006, [0x27, 0x0010, 0x55, 0x04A3]);
	labelFunc0326_0260:
		if(!(event == 0x0002)) goto labelFunc0326_0396;
		if(!(gflags[00CF] == false)) goto labelFunc0326_037A;
		if(!(UI_get_distance_21(0xFE9C, 0xFF5D) < 0x002D)) goto labelFunc0326_0379;
		UI_show_npc_face_03(0xFF00, 0x0000);
		UcMessage("\"Avatar! Because thou didst keep thy promise to release me\"");
		UcSay;
		UcMessage("\"now shall I return the favor.\"");
		UcSay;
		UcMessage("\"This dark sorcerer will trouble thee no more...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_clear_item_say_4E(0xFF5D);
		Func097F(0xFF5D, "@No, wait! Please...@", 0x0000);
		var0004 = UI_find_nearby_41(0xFF5D, 0x0341, 0x0005, 0x0000);
		var0004 = (var0004 & UI_find_nearby_41(0xFF5D, 0x0349, 0x0005, 0x0000));
		var0005 = UI_execute_usecode_array_01(var0004[0x0001], [0x27, 0x0005, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0003], [0x27, 0x0008, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0002], [0x27, 0x000A, 0x55, 0x04A3, 0x2D]);
		var0005 = UI_execute_usecode_array_01(var0004[0x0004], [0x27, 0x000E, 0x55, 0x04A3, 0x2D]);
		var0006 = UI_find_nearest_15(0xFF5D, 0x031F, 0x000A);
		if(!var0006) goto labelFunc0326_0375;
		var0005 = UI_execute_usecode_array_01(var0006, [0x27, 0x0010, 0x55, 0x04A3]);
	labelFunc0326_0375:
		abrt();
		goto labelFunc0326_037A;
	labelFunc0326_0379:
		abrt();
	labelFunc0326_037A:
		if(!gflags[0006]) goto labelFunc0326_0396;
		UI_close_gumps_98();
		UI_show_npc_face0_05(0xFEFF, 0x0000);
		UcMessage("\"Avatar, thou must set me free now! The stone's power is quickly diminishing, and this evil wizard will take thee before long.\" ~\"If thou wilt but liberate me from this crystal prison I shall serve thee once more before departing from thy side...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc0326_0396:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0329 0x329 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!gflags[0004]) goto labelFunc0329_003F;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_clear_item_say_4E(item);
	Func097F(item, "@No! It must work!@", 0x0000);
	UI_obj_sprite_effect_91(item, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x002B);
	abrt();
	labelFunc0329_003F:
		var0000 = UI_set_npc_prop_29(item, 0x0003, 0x0005);
		var0001 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x001A, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		UI_remove_npc_4C(item);
		UI_set_schedule_type_25(item, 0x0004);
		var0002 = Func0992(0x0001, "@What happened?@", "@Gone!@", 0x0003);
		return;
}
// externs
extern Func062C 0x62C (var var0000);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func032A 0x32A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(UI_get_item_frame_1A(item) == 0x0006)) goto labelFunc032A_000D;
	exit2();
	labelFunc032A_000D:
		if(!(event == 0x0001)) goto labelFunc032A_00CE;
		var0000 = UI_get_container_83(item);
		if(!(var0000 == UI_get_npc_object_23(0xFE9C))) goto labelFunc032A_0037;
		event = 0x000A;
		item;
		calle();
		exit2();
		goto labelFunc032A_007A;
	labelFunc032A_0037:
		if(!var0000) goto labelFunc032A_007A;
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc032A_0079;
		var0001 = UI_give_last_created_42(0xFE9C);
		if(!(!var0001)) goto labelFunc032A_006D;
		var0001 = UI_give_last_created_42(var0000);
		UI_flash_mouse_7F(0x0000);
	labelFunc032A_006D:
		event = 0x000A;
		item;
		calle();
		exit2();
		goto labelFunc032A_007A;
	labelFunc032A_0079:
		exit2();
	labelFunc032A_007A:
		UI_close_gumps_98();
		var0002 = [0x0001, Dupre, 0x0000, 0x0001, Dupre, Dupre, 0x0000, Dupre];
		var0003 = [0x0000, Dupre, Dupre, Dupre, 0x0000, 0x0001, 0x0001, 0x0001];
		Func090D(item, var0002, var0003, Dupre, 0x062C, item, 0x000A);
	labelFunc032A_00CE:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func032B 0x32B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0008)) goto labelFunc032B_0010;
	UI_set_polymorph_B3(item, 0x02E6);
	labelFunc032B_0010:
		if(!(event == 0x0002)) goto labelFunc032B_0020;
		UI_set_schedule_type_25(item, 0x001D);
	labelFunc032B_0020:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(item) == 0x001D))) goto labelFunc032B_03DB;
		UI_move_object_4B(0xFE9C, [0x018E, 0x09B3, 0x0001]);
		var0000 = UI_create_new_object_2C(0x02F9);
		if(!var0000) goto labelFunc032B_0134;
		UI_set_item_frame_1B(var0000, 0x0005);
		UI_UNKNOWN_67(var0000);
		var0001 = [0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0008, 0x0009, 0x000C, 0x000D, 0x000E, 0x000F, 0x0011, 0x0012, 0x0014, 0x0015, 0x0016, 0x0018, 0x0019, 0x001A, 0x001C, 0x001D, 0x001E, 0x001F, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0028, 0x002A, 0x002B, 0x002C, 0x002E, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0037, 0x0039, 0x003A, 0x003E, 0x003F, 0x0040, 0x0041, 0x0042, 0x0044, 0x0045, 0x0046];
		enum();
	labelFunc032B_010C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc032B_012A);
		var0005 = UI_add_spell_66(var0004, 0x0000, var0000);
		goto labelFunc032B_010C;
	labelFunc032B_012A:
		var0005 = UI_give_last_created_42(0xFE9C);
	labelFunc032B_0134:
		var0005 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0326, 0xFE99, 0x0000, 0x0000);
		var0005 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x025C, 0xFE99, 0x0000, 0x0000);
		var0005 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0303, 0xFE99, 0x0000, 0x0000);
		UI_play_sound_effect_16(0x0074);
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		UI_set_schedule_type_25(Shamino, 0x000C);
		UI_set_schedule_type_25(Dupre, 0x000C);
		UI_set_schedule_type_25(Iolo, 0x000C);
		var0005 = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x55, 0x01D1], 0x0000);
		var0006 = Func09A0(0x0007, 0x0001);
		if(!var0006) goto labelFunc032B_01EC;
		var0005 = UI_delayed_execute_usecode_array_02(var0006, [0x54, 0x000D], 0x0028);
	labelFunc032B_01EC:
		UI_clear_item_flag_A5(0xFE9C, 0x0022);
		UI_clear_item_flag_A5(0xFE9C, 0x0021);
		var0007 = Dupre;
	labelFunc032B_0206:
		if(!(var0007 > 0xFE9B)) goto labelFunc032B_026D;
		if(!(var0007 != 0xFE9C)) goto labelFunc032B_0242;
		UI_set_npc_id_BD(var0007, 0x0000);
		UI_clear_item_flag_A5(var0007, 0x001C);
		UI_clear_item_flag_A5(var0007, 0x001E);
		UI_clear_item_flag_A5(var0007, 0x001F);
	labelFunc032B_0242:
		UI_clear_item_flag_A5(var0007, 0x001D);
		UI_clear_item_flag_A5(var0007, 0x0020);
		UI_set_temperature_BA(var0007, 0x0000);
		var0007 = (var0007 - 0x0001);
		goto labelFunc032B_0206;
	labelFunc032B_026D:
		UI_set_item_flag_A4(Dupre, 0x001C);
		UI_set_item_flag_A4(Shamino, 0x001C);
		UI_set_item_flag_A4(Iolo, 0x001C);
		UI_set_item_flag_A4(0xFEFC, 0x001C);
		UI_set_item_flag_A4(0xFEFB, 0x001C);
		UI_set_item_flag_A4(0xFF6D, 0x001E);
		UI_set_item_flag_A4(0xFF6B, 0x001E);
		var0008 = [0xFE9C, 0xFFD4, 0xFFC7, 0xFFDB, 0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2B, 0xFF2A, 0xFF30, 0xFF2E, 0xFFCB, 0xFF33, 0xFF35, 0xFF34, 0xFEF0, 0xFEDB, 0xFF29, 0xFF4B, 0xFF4A, 0xFFC0, 0xFF6A, 0xFFB6, 0xFFC1, 0xFFB1, 0xFFB9, 0xFEF7, 0xFF89, 0xFF88, 0xFF87, 0xFF86, 0xFF85, 0xFF58];
		enum();
	labelFunc032B_0320:
		for (var000B in var0008 with var0009 to var000A atend labelFunc032B_0338);
		UI_set_item_flag_A4(var000B, 0x001D);
		goto labelFunc032B_0320;
	labelFunc032B_0338:
		var0008 = [0xFEED, 0xFEE8, 0xFF84, 0xFF37, 0xFF26, 0xFEF8, 0xFEF9, 0xFEFA, 0xFFBF, 0xFFB0, 0xFFBD, 0xFFBC, 0xFFBA, 0xFFD2, 0xFFD1, 0xFFD0, 0xFFCF, 0xFFCE, 0xFFCD, Jendon, 0xFFCB, Kylista, 0xFFC9, 0xFFC8, 0xFFC6, 0xFFC5, 0xFFC4, 0xFFC3, 0xFFDE, 0xFF64, 0xFFBB, 0xFFB3, 0xFFEE, 0xFFDF, 0xFFE6, 0xFFEC, 0xFFEF, 0xFFFC, 0xFFED, 0xFFF2, 0xFFE8, 0xFFEA, 0xFFE5, 0xFF61];
		enum();
	labelFunc032B_03C3:
		for (var000B in var0008 with var000C to var000D atend labelFunc032B_03DB);
		UI_set_item_flag_A4(var000B, 0x001D);
		goto labelFunc032B_03C3;
	labelFunc032B_03DB:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func09AA 0x9AA ();

Func032C 0x32C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0001)) goto labelFunc032C_00B4;
	var0000 = UI_find_nearby_41(item, 0x0113, 0x0005, 0x0010);
	enum();
	labelFunc032C_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc032C_0066);
		var0004 = UI_get_item_quality_1C(var0003);
		var0005 = UI_get_item_frame_1A(var0003);
		if(!(var0005 == 0x0007)) goto labelFunc032C_0063;
		if(!(var0004 == 0x00C8)) goto labelFunc032C_0063;
		gflags[0314] = true;
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x060A]);
	labelFunc032C_0063:
		goto labelFunc032C_001A;
	labelFunc032C_0066:
		var0007 = UI_get_item_frame_1A(item);
		if(!(var0007 == 0x0001)) goto labelFunc032C_0081;
		UI_set_item_frame_1B(item, 0x0000);
		abrt();
	labelFunc032C_0081:
		if(!(var0007 == 0x0000)) goto labelFunc032C_00B4;
		if(!(gflags[0314] == false)) goto labelFunc032C_00B4;
		Func090D(item, [0x0001, 0x0000], [0x0000, 0x0001], Dupre, 0x032C, item, 0x000A);
		abrt();
	labelFunc032C_00B4:
		if(!(event == 0x000A)) goto labelFunc032C_0103;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_polymorph_B3(0xFE9C, 0x00EF);
		UI_set_item_frame_1B(item, 0x0001);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x032C], 0x0019);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@AAAAAHHHHH!!!!!!@"], 0x0002);
		abrt();
	labelFunc032C_0103:
		if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc032C_0274;
		var0007 = UI_get_item_frame_1A(item);
		if(!(var0007 == 0x0000)) goto labelFunc032C_0135;
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@...uunnhhhh...@"]);
	labelFunc032C_0135:
		if(!(var0007 == 0x0001)) goto labelFunc032C_023A;
		var0008 = 0x0000;
	labelFunc032C_0145:
		if(!(var0008 < 0x000F)) goto labelFunc032C_01D3;
		var0009 = UI_create_new_object_2C(0x0390);
		if(!var0009) goto labelFunc032C_01C6;
		UI_set_item_flag_A4(var0009, 0x0012);
		var000A = UI_die_roll_17(0x0000, 0x0003);
		UI_set_item_frame_1B(var0009, var000A);
		var000B = UI_die_roll_17(Shamino, 0x0002);
		var000C = UI_die_roll_17(0x0001, 0x0002);
		var000D = UI_get_object_position_20(item);
		var0006 = UI_update_last_created_2F([(var000D[0x0001] + var000B), (var000D[0x0002] + var000C), var000D[0x0003]]);
	labelFunc032C_01C6:
		var0008 = (var0008 + 0x0001);
		goto labelFunc032C_0145;
	labelFunc032C_01D3:
		UI_set_item_frame_1B(item, 0x0000);
		var000D = UI_get_object_position_20(item);
		var000D[0x0002] = (var000D[0x0002] + 0x0002);
		UI_move_object_4B(0xFE9C, var000D);
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		var0006 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x6E, 0x27, 0x000F], 0x0005);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x032C], 0x000F);
		gflags[0007] = true;
		abrt();
	labelFunc032C_023A:
		if(!(var0007 == 0x0002)) goto labelFunc032C_0274;
		var000D = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0011, (var000D[0x0001] - 0x0006), (var000D[0x0002] - 0x0006), 0x000F, 0x000F, 0x0000, Dupre);
		abrt();
	labelFunc032C_0274:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc032C_02A3;
		Func09AA();
		gflags[0007] = false;
		var0006 = UI_get_npc_prop_28(0xFE9C, 0x0003);
		UI_reduce_health_87(0xFE9C, var0006, 0x0000);
	labelFunc032C_02A3:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func032D 0x32D (var var0000)
{
	var var0001;

	var0000 = Func0992(0xFE9C, "@Who wants this?@", 0x0000, true);
	if(!UI_npc_nearby_3A(Iolo)) goto labelFunc032D_0026;
	Func097F(Iolo, "@I do!@", 0x0008);
	labelFunc032D_0026:
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc032D_003C;
		Func097F(Shamino, "@I shall do it!@", 0x000C);
	labelFunc032D_003C:
		if(!UI_npc_nearby_3A(Dupre)) goto labelFunc032D_0052;
		Func097F(Dupre, "@Me! Me! Me!@", 0x0010);
	labelFunc032D_0052:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AF 0x9AF (var var0000, var var0001, var var0002, var var0003);
extern Func0907 0x907 (var var0000, var var0001);
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func098D 0x98D ();

Func032E 0x32E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = "his";
	var0003 = "him";
	var0004 = "he";
	var0005 = "man";
	if(!UI_is_pc_female_6F()) goto labelFunc032E_0044;
	var0002 = "her";
	var0004 = "she";
	var0003 = "her";
	var0005 = "woman";
	labelFunc032E_0044:
		var0006 = Func0953();
		var0007 = UI_part_of_day_48();
		var0008 = 0x0000;
		if(!(UI_get_npc_id_BC(0xFFEC) > 0x0001)) goto labelFunc032E_006B;
		var0008 = 0x0002;
	labelFunc032E_006B:
		if(!((var0007 > 0x0001) || (var0007 < 0x0006))) goto labelFunc032E_0086;
		var0007 = "day";
		goto labelFunc032E_008C;
	labelFunc032E_0086:
		var0007 = "evening";
	labelFunc032E_008C:
		if(!(event == 0x0003)) goto labelFunc032E_009D;
		UI_set_schedule_type_25(item, 0x000F);
		abrt();
	labelFunc032E_009D:
		if(!(event == 0x000E)) goto labelFunc032E_00A9;
		event = 0x0002;
	labelFunc032E_00A9:
		if(!((event == 0x0002) && (!gflags[00D9]))) goto labelFunc032E_0B47;
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000C)) goto labelFunc032E_00F1;
		UI_set_npc_id_BD(0xFFEE, 0x000D);
		var0009 = UI_execute_usecode_array_01(0xFFE3, [0x23, 0x59, 0x0000, 0x6C, 0x6D, 0x27, 0x0002, 0x55, 0x032E]);
		abrt();
	labelFunc032E_00F1:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000B)) goto labelFunc032E_0157;
		UI_set_npc_id_BD(0xFFEE, 0x000C);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"And to think she was once a young and beautiful sorceress, before her ambitions turned her cold and heartless...\"");
		UcSay;
		UI_end_conversation_86();
		UI_si_path_run_usecode_C1(0xFFE3, [0x090A, 0x071A, 0x0000], 0x0002, item, 0x032E, false);
		Func097F(0xFFE3, "@Pardon me...@", 0x0005);
		UI_play_music_39(0x0012, Func09A0(0x0005, 0x0001));
		abrt();
	labelFunc032E_0157:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x000A)) goto labelFunc032E_0275;
		UI_set_npc_id_BD(0xFFEE, 0x000B);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEA, 0x0000);
		UcMessage("\"See here, Rotoluncia! This stranger may have secrets -- as do we all! But I will not condone treating a guest of the Council like a criminal!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFE1, 0x0000);
		UcMessage("\"Thou dost dare to interfere with my spells! MageLord, I demand that thou reprimandest this sorcerer.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"My dear, calm thyself. Perhaps our visitor shall tell us all, without the use of force...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFE1, 0x0000);
		UcMessage("\"If there is one thing I cannot stand, it is being hamstrung by petty politics. Thou art not half the man thou once wert, Filbercio...\"");
		UcSay;
		UcMessage("\"I bid you all a pleasant dinner. I have lost mine appetite and am leaving. But mark my words -- I shall have my way!\"");
		UcSay;
		UI_end_conversation_86();
		var000A = UI_get_object_position_20(0xFFE1);
		UI_sprite_effect_68(0x001A, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		UI_set_new_schedules_B6(0xFFE1, 0x0000, 0x000C, [0x086D, 0x0837]);
		UI_run_schedule_B7(0xFFE1);
		UI_move_object_4B(0xFFE1, [0x086D, 0x0837, 0x0000]);
		UI_set_item_flag_A4(0xFFE1, 0x001D);
		Func097F(0xFFEC, "@Goodbye, witch...@", 0x0004);
		var0009 = UI_execute_usecode_array_01(0xFFEA, [0x23, 0x59, 0x0004, 0x6C, 0x6B, 0x27, 0x0002]);
		var0009 = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x27, 0x0008, 0x52, "@Good riddance!@", 0x27, 0x0004, 0x55, 0x032E], 0x0008);
		abrt();
	labelFunc032E_0275:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0009)) goto labelFunc032E_031D;
		UI_set_npc_id_BD(0xFFEE, 0x000A);
		var000B = UI_find_nearby_41(item, 0x0121, 0x0014, 0x0000);
		enum();
	labelFunc032E_029F:
		for (var000E in var000B with var000C to var000D atend labelFunc032E_02E4);
		var000A = UI_get_object_position_20(var000E);
		UI_remove_item_84(var000E);
		UI_sprite_effect_68(0x0009, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0068);
		goto labelFunc032E_029F;
	labelFunc032E_02E4:
		var0009 = UI_execute_usecode_array_01(0xFFE1, [0x23, 0x27, 0x0005, 0x59, 0x0002]);
		var0009 = UI_delayed_execute_usecode_array_02(0xFFEA, [0x59, 0x0006, 0x27, 0x0002, 0x55, 0x032E], 0x000A);
		abrt();
	labelFunc032E_031D:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0008)) goto labelFunc032E_0391;
		UI_set_npc_id_BD(0xFFEE, 0x0009);
		var000A = UI_get_object_position_20(0xFFEA);
		UI_sprite_effect_68(0x002F, (var000A[0x0001] - 0x0003), (var000A[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0083);
		var0009 = UI_delayed_execute_usecode_array_02(0xFFEA, [0x23, 0x55, 0x032E], 0x000F);
		Func097F(0xFFE1, "@How darest thou!@", 0x000A);
		abrt();
	labelFunc032E_0391:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0007)) goto labelFunc032E_0435;
		UI_set_npc_id_BD(0xFFEE, 0x0008);
		var000B = UI_find_nearby_41(item, 0x025F, 0x0014, 0x0010);
		var000A = UI_get_object_position_20(var000B);
		UI_remove_item_84(var000B);
		var000B = UI_create_new_object_2C(0x0121);
		if(!var000B) goto labelFunc032E_040B;
		var0009 = UI_update_last_created_2F(var000A);
		UI_sprite_effect_68(0x001E, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
	labelFunc032E_040B:
		var0009 = UI_execute_usecode_array_01(0xFFEA, [0x23, 0x52, "@Stop this!@", 0x27, 0x0005, 0x6C, 0x61, 0x6F, 0x52, "@Contra Flam!@", 0x55, 0x032E]);
		abrt();
	labelFunc032E_0435:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0006)) goto labelFunc032E_053D;
		UI_set_npc_id_BD(0xFFEE, 0x0007);
		var000B = UI_find_nearby_41(item, 0x025F, 0x0014, 0x0010);
		var000A = UI_get_object_position_20(var000B);
		UI_remove_item_84(var000B);
		var000B = UI_create_new_object_2C(0x0121);
		if(!var000B) goto labelFunc032E_04AF;
		var0009 = UI_update_last_created_2F(var000A);
		UI_sprite_effect_68(0x001E, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0027);
	labelFunc032E_04AF:
		var000B = UI_create_new_object_2C(0x025F);
		if(!var000B) goto labelFunc032E_0503;
		UI_clear_item_flag_A5(var000B, 0x0012);
		var000A = UI_get_object_position_20(0xFE9C);
		var0009 = UI_update_last_created_2F([(var000A[0x0001] + 0x0002), var000A[0x0002], var000A[0x0003]]);
		var0009 = UI_projectile_effect_4F(0xFFE1, var000B, 0x0118);
	labelFunc032E_0503:
		var0009 = UI_execute_usecode_array_01(0xFFE1, [0x23, 0x61, 0x52, "@Mas Mas!@", 0x67, 0x01, 0x58, 0x0014, 0x7A, 0x61, 0x27, 0x0002, 0x55, 0x032E]);
		Func097F(0xFFEE, "@Must thou?@", 0x0005);
		abrt();
	labelFunc032E_053D:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0005)) goto labelFunc032E_0684;
		UI_set_npc_id_BD(0xFFEE, 0x0006);
		var000B = UI_find_nearby_41(item, 0x025F, 0x0014, 0x0010);
		var000A = UI_get_object_position_20(var000B);
		UI_remove_item_84(var000B);
		var000B = UI_create_new_object_2C(0x0121);
		if(!var000B) goto labelFunc032E_05B7;
		var0009 = UI_update_last_created_2F(var000A);
		UI_sprite_effect_68(0x001E, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
	labelFunc032E_05B7:
		var000B = UI_create_new_object_2C(0x025F);
		if(!var000B) goto labelFunc032E_060B;
		UI_clear_item_flag_A5(var000B, 0x0012);
		var000A = UI_get_object_position_20(0xFE9C);
		var0009 = UI_update_last_created_2F([(var000A[0x0001] - 0x0002), var000A[0x0002], var000A[0x0003]]);
		var0009 = UI_projectile_effect_4F(0xFFE1, var000B, 0x0118);
	labelFunc032E_060B:
		var0009 = UI_execute_usecode_array_01(0xFFE1, [0x23, 0x61, 0x52, "@Flam Mas!@", 0x67, 0x01, 0x58, 0x0014, 0x7A, 0x61, 0x27, 0x0002, 0x55, 0x032E]);
		Func097F(0xFFF6, "@Help!@", 0x0000);
		UI_si_path_run_usecode_C1(0xFFF6, [0x0916, 0x0742, 0x0000], 0x0003, item, 0x032E, false);
		Func097F(0xFFEC, "@How rude...@", 0x0006);
		Func097F(Shamino, "@Stop that!@", 0x0002);
		Func097F(Dupre, "@No!@", 0x000A);
		abrt();
	labelFunc032E_0684:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0004)) goto labelFunc032E_0785;
		UI_set_npc_id_BD(0xFFEE, 0x0005);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"Good Mages, this is the adventurer from a distant land whose arrival was foretold in our conjurings!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEC, 0x0000);
		UcMessage("\"Could ");
		UcMessage(var0004);
		UcMessage(" be responsible for the storms which plague the land? Or for the growing strangenesses which afflict our spellcasting?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I hope, my dear, that ");
		UcMessage(var0004);
		UcMessage(" is the solution to our problems, rather than the cause...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFE1, 0x0000);
		UcMessage("\"Thou art a fool, MageLord! Our guest is most certainly a factor in the supernatural disturbances that are threatening our world. Let us question ");
		UcMessage(var0003);
		UcMessage(" now!\"");
		UcSay;
		UI_play_music_39(0x0010, Func09A0(0x0005, 0x0001));
		UI_end_conversation_86();
		UI_remove_npc_face1_08();
		var000B = UI_create_new_object_2C(0x025F);
		if(!var000B) goto labelFunc032E_0757;
		UI_clear_item_flag_A5(var000B, 0x0012);
		var000A = UI_get_object_position_20(0xFE9C);
		var0009 = UI_update_last_created_2F([var000A[0x0001], (var000A[0x0002] + 0x0002), var000A[0x0003]]);
		var0009 = UI_projectile_effect_4F(0xFFE1, var000B, 0x0118);
	labelFunc032E_0757:
		var0009 = UI_execute_usecode_array_01(0xFFE1, [0x23, 0x61, 0x52, "@Ex Ort Flam!@", 0x67, 0x01, 0x58, 0x0014, 0x7A, 0x61, 0x27, 0x0002, 0x55, 0x032E]);
		abrt();
	labelFunc032E_0785:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0003)) goto labelFunc032E_07D4;
		UI_set_npc_id_BD(0xFFEE, 0x0004);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		UcMessage("\"Welcome to thee. These cursed teleportation storms have made travel so difficult that we are becoming isolated! It hath disturbed everyone, but it is good to see a new face.\"");
		UcSay;
		UI_end_conversation_86();
		var0009 = UI_execute_usecode_array_01(0xFFEC, [0x59, 0x0000, 0x6C, 0x6B, 0x27, 0x0002, 0x55, 0x032E]);
		abrt();
	labelFunc032E_07D4:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0002)) goto labelFunc032E_0826;
		UI_set_npc_id_BD(0xFFEE, 0x0003);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFE1, 0x0000);
		UcMessage("\"Filbercio is never lacking in social graces, ");
		UcMessage(var0000);
		UcMessage(". Now if he only attended to the problems of Moonshade as he doth attend to his mistresses. Speaking of which...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Ahem--! Also present, as my dinner companion, is the most charming Frigidazzi. She, too, is a Mage.\"");
		UcSay;
		UI_end_conversation_86();
		Func09AF(0xFFE1, 0xFFEC, 0x0004, 0x032E);
		abrt();
	labelFunc032E_0826:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0001)) goto labelFunc032E_0878;
		UI_set_npc_id_BD(0xFFEE, 0x0002);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEA, 0x0000);
		UcMessage("\"Thou needest not worry, ");
		UcMessage(var0000);
		UcMessage(". We have brought thee here against thy will, but only that we may get to know thee. Thou art free to leave, once this dinner is concluded.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Quite right, Gustacio... and here is Adept Rotoluncia, whom I believe thou hast met.\"");
		UcSay;
		UI_end_conversation_86();
		Func09AF(0xFFEA, 0xFFE1, 0x0004, 0x032E);
		abrt();
	labelFunc032E_0878:
		if(!(UI_get_npc_id_BC(0xFFEE) == 0x0000)) goto labelFunc032E_0966;
		UI_play_music_39(0x001B, Func09A0(0x0005, 0x0001));
		UI_set_npc_id_BD(0xFFEE, 0x0001);
		UI_set_item_flag_A4(0xFFEE, 0x001C);
		var000F = UI_find_nearby_41(0xFE9C, 0x010E, 0x002D, 0x0000);
		var0010 = UI_find_nearby_41(0xFE9C, 0x01B0, 0x002D, 0x0000);
		enum();
	labelFunc032E_08D1:
		for (var0013 in var000F with var0011 to var0012 atend labelFunc032E_08F6);
		if(!(UI_get_item_quality_1C(var0013) == 0x00CF)) goto labelFunc032E_08F3;
		Func0907(var0013, 0x0000);
	labelFunc032E_08F3:
		goto labelFunc032E_08D1;
	labelFunc032E_08F6:
		enum();
	labelFunc032E_08F7:
		for (var0013 in var0010 with var0014 to var0015 atend labelFunc032E_091C);
		if(!(UI_get_item_quality_1C(var0013) == 0x00CF)) goto labelFunc032E_0919;
		Func0907(var0013, 0x0000);
	labelFunc032E_0919:
		goto labelFunc032E_08F7;
	labelFunc032E_091C:
		var0016 = UI_get_party_list_2B();
		enum();
	labelFunc032E_0924:
		for (var000B in var0016 with var0017 to var0018 atend labelFunc032E_093C);
		UI_set_schedule_type_25(var000B, 0x001F);
		goto labelFunc032E_0924;
	labelFunc032E_093C:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		UcMessage("\"Please be seated. We have been waiting for thee. I am the MageLord Filbercio.\"");
		UcSay;
		UcMessage("\"Allow me to introduce the others. First, my fellow members on the Council of Mages. Adept Gustacio...\"");
		UcSay;
		UI_end_conversation_86();
		Func09AF(0xFFEE, 0xFFEA, 0x0002, 0x032E);
		abrt();
	labelFunc032E_0966:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFE3, 0x0000);
		UcMessage("\"I beg thy pardon, MageLord Filbercio, but I have an urgent message for thee.\"");
		UcSay;
		UcMessage("\"I regret to report that mine attempts to locate any significant quantity of the reagent Blood Moss have met with failure.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Pothos! I should send thee to the dungeons and have the rats feed on thy carcass!\"");
		UcSay;
		UcMessage("\"Dear guests, I am afraid that I shall have to adjourn this pleasant repast.\"");
		UcSay;
		UcMessage("\"Pothos and I must speak privately concerning important matters of state. I thank thee all for coming!\"");
		UcSay;
		gflags[00D9] = true;
		var0019 = [0xFFEE, 0xFFEC, 0xFFEA, 0xFFE3];
		enum();
	labelFunc032E_09A9:
		for (var000B in var0019 with var001A to var001B atend labelFunc032E_09BE);
		UI_revert_schedule_B4(var000B);
		goto labelFunc032E_09A9;
	labelFunc032E_09BE:
		var0019 = Func0988(0xFFEA, var0019);
		enum();
	labelFunc032E_09CB:
		for (var000B in var0019 with var001C to var001D atend labelFunc032E_0A09);
		var000A = UI_get_object_position_20(var000B);
		UI_sprite_effect_68(0x0007, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(var000B);
		goto labelFunc032E_09CB;
	labelFunc032E_0A09:
		UI_set_schedule_type_25(0xFFEA, 0x001A);
		UI_set_schedule_type_25(0xFFF6, 0x0017);
		UI_play_sound_effect_16(0x0082);
		UI_set_new_schedules_B6(0xFFEE, [0x0000, 0x0001, 0x0003, 0x0004, 0x0006, 0x0007], [0x0010, 0x000E, 0x001A, 0x0010, 0x001A, 0x000C], [0x0926, 0x0726, 0x08F7, 0x071C, 0x090A, 0x0717, 0x08F7, 0x0737, 0x090A, 0x0717, 0x0918, 0x072F]);
		var001E = [0x08F3, 0x0779];
		var001F = [0x08E6, 0x0776];
		var0020 = [0x08C8, 0x0716];
		UI_set_new_schedules_B6(0xFFE3, [0x0002, 0x0003, 0x0007], [0x001A, 0x001D, 0x000E], [var0020, var001E, var001F]);
		UI_move_object_4B(0xFFE3, [0x08F9, 0x0778, 0x0000]);
		UI_run_schedule_B7(0xFFE3);
		var0016 = UI_find_nearby_41(0xFE9C, Dupre, 0x002D, 0x0004);
		var0009 = Func098D();
		enum();
	labelFunc032E_0AFF:
		for (var000B in var0016 with var0021 to var0022 atend labelFunc032E_0B2E);
		if(!((UI_get_npc_id_BC(var000B) == 0x000B) && in(UI_get_npc_number_47(var000B), var0009))) goto labelFunc032E_0B2B;
		UI_add_to_party_26(var000B);
	labelFunc032E_0B2B:
		goto labelFunc032E_0AFF;
	labelFunc032E_0B2E:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		gflags[00DA] = false;
		UI_set_npc_id_BD(0xFFEE, 0x0000);
		abrt();
	labelFunc032E_0B47:
		return;
}
// externs
extern var Func0989 0x989 (var var0000, var var0001);
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0334 0x334 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = item;
	var0001 = UI_get_item_quality_1C(var0000);
	if(!(event == 0x0003)) goto labelFunc0334_0172;
	if(!(UI_get_item_shape_18(item) != 0x0334)) goto labelFunc0334_0049;
	var0000 = UI_find_nearby_41(var0000, 0x0334, 0x0005, 0x00B0);
	var0000 = Func0989(var0000, var0000);
	if(!(!var0000)) goto labelFunc0334_0049;
	abrt();
	labelFunc0334_0049:
		var0001 = UI_get_item_quality_1C(var0000);
		var0002 = [];
		if(!(var0001 == 0x0007)) goto labelFunc0334_0072;
		var0002 = [0x0258, 0x026F, 0x022D];
	labelFunc0334_0072:
		if(!(var0001 == 0x0008)) goto labelFunc0334_0082;
		var0002 = 0x0273;
	labelFunc0334_0082:
		if(!(var0001 == 0x000A)) goto labelFunc0334_0092;
		var0002 = 0x028E;
	labelFunc0334_0092:
		if(!(var0001 == 0x000B)) goto labelFunc0334_00AB;
		var0002 = [0x0284, 0x0285, 0x0286];
	labelFunc0334_00AB:
		var0003 = false;
		enum();
	labelFunc0334_00B0:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc0334_016A);
		if(!UI_find_nearby_41(var0000, var0006, 0x0005, 0x00B0)) goto labelFunc0334_0167;
		if(!(var0001 < 0x000B)) goto labelFunc0334_00FD;
		var0001 = (var0001 + 0x0001);
		var0007 = UI_set_item_quality_1D(var0000, var0001);
		UI_close_gumps_98();
		var0003 = true;
		goto labelFunc0334_016A;
		goto labelFunc0334_0167;
	labelFunc0334_00FD:
		var0008 = UI_get_object_position_20(var0000);
		var0008[0x0001] = (var0008[0x0001] - (var0008[0x0003] / 0x0002));
		var0008[0x0002] = (var0008[0x0002] - (var0008[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0007, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		UI_remove_item_84(var0000);
		UI_close_gumps_98();
		abrt();
	labelFunc0334_0167:
		goto labelFunc0334_00B0;
	labelFunc0334_016A:
		if(!(!var0003)) goto labelFunc0334_0172;
		abrt();
	labelFunc0334_0172:
		var0009 = Func0953();
		if(!(var0001 == 0x0000)) goto labelFunc0334_0194;
		var000A = ["po,|no", "plaques|here", "on|pain|of|d+("];
		goto labelFunc0334_0B45;
	labelFunc0334_0194:
		if(!(var0001 == 0x0001)) goto labelFunc0334_01D0;
		var000A = ["choose"];
		var000B = UI_find_nearby_41(item, 0x010E, 0x0005, 0xFE99);
		var0007 = UI_delayed_execute_usecode_array_02(var000B, [0x55, 0x010E], 0x0005);
		goto labelFunc0334_0B45;
	labelFunc0334_01D0:
		if(!(var0001 == 0x0002)) goto labelFunc0334_01E9;
		var000A = ["wardrobe", "room"];
		goto labelFunc0334_0B45;
	labelFunc0334_01E9:
		if(!(var0001 == 0x0003)) goto labelFunc0334_0202;
		var000A = ["wine", "room"];
		goto labelFunc0334_0B45;
	labelFunc0334_0202:
		if(!(var0001 == 0x0014)) goto labelFunc0334_0218;
		var000A = ["1"];
		goto labelFunc0334_0B45;
	labelFunc0334_0218:
		if(!(var0001 == 0x0015)) goto labelFunc0334_022E;
		var000A = ["2"];
		goto labelFunc0334_0B45;
	labelFunc0334_022E:
		if(!(var0001 == 0x0016)) goto labelFunc0334_0244;
		var000A = ["3"];
		goto labelFunc0334_0B45;
	labelFunc0334_0244:
		if(!(var0001 == 0x0017)) goto labelFunc0334_025A;
		var000A = ["4"];
		goto labelFunc0334_0B45;
	labelFunc0334_025A:
		if(!(var0001 == 0x0018)) goto labelFunc0334_0270;
		var000A = ["5"];
		goto labelFunc0334_0B45;
	labelFunc0334_0270:
		if(!(var0001 == 0x0019)) goto labelFunc0334_0286;
		var000A = ["6"];
		goto labelFunc0334_0B45;
	labelFunc0334_0286:
		if(!(var0001 == 0x001A)) goto labelFunc0334_029C;
		var000A = ["7"];
		goto labelFunc0334_0B45;
	labelFunc0334_029C:
		if(!(var0001 == 0x001B)) goto labelFunc0334_02B2;
		var000A = ["Throw two up"];
		goto labelFunc0334_0B45;
	labelFunc0334_02B2:
		if(!(var0001 == 0x001C)) goto labelFunc0334_02C8;
		var000A = ["3 down gets 8"];
		goto labelFunc0334_0B45;
	labelFunc0334_02C8:
		if(!(var0001 == 0x001D)) goto labelFunc0334_02E4;
		var000A = ["(e", "blue", "boar"];
		goto labelFunc0334_0B45;
	labelFunc0334_02E4:
		if(!(var0001 == 0x001E)) goto labelFunc0334_02FD;
		var000A = ["royal", "museum"];
		goto labelFunc0334_0B45;
	labelFunc0334_02FD:
		if(!(var0001 == 0x001F)) goto labelFunc0334_0319;
		var000A = ["(e", "music", "hall"];
		goto labelFunc0334_0B45;
	labelFunc0334_0319:
		if(!(var0001 == 0x0020)) goto labelFunc0334_0332;
		var000A = ["town", "hall"];
		goto labelFunc0334_0B45;
	labelFunc0334_0332:
		if(!(var0001 == 0x0021)) goto labelFunc0334_034B;
		var000A = ["royal", "mint"];
		goto labelFunc0334_0B45;
	labelFunc0334_034B:
		if(!(var0001 == 0x0022)) goto labelFunc0334_0361;
		var000A = ["4 down"];
		goto labelFunc0334_0B45;
	labelFunc0334_0361:
		if(!(var0001 == 0x0023)) goto labelFunc0334_0377;
		var000A = ["First & Last are even"];
		goto labelFunc0334_0B45;
	labelFunc0334_0377:
		if(!(var0001 == 0x0024)) goto labelFunc0334_038D;
		var000A = ["3 follows 4"];
		goto labelFunc0334_0B45;
	labelFunc0334_038D:
		if(!(var0001 == 0x002E)) goto labelFunc0334_03A6;
		var000A = ["DO NOT", "ENTER"];
		goto labelFunc0334_0B45;
	labelFunc0334_03A6:
		if(!(var0001 == 0x0032)) goto labelFunc0334_03C8;
		var000A = ["in", "lovi*", "memory", "of", "mama"];
		goto labelFunc0334_0B45;
	labelFunc0334_03C8:
		if(!(var0001 == 0x0033)) goto labelFunc0334_03E4;
		var000A = ["BEWARE", "THE", "DRAGON"];
		goto labelFunc0334_0B45;
	labelFunc0334_03E4:
		if(!(var0001 == 0x0034)) goto labelFunc0334_0406;
		var000A = ["for", "(e", "love", "of", "marney"];
		goto labelFunc0334_0B45;
	labelFunc0334_0406:
		if(!(var0001 == 0x0035)) goto labelFunc0334_0428;
		var000A = ["|j|r|r|t|", "a|gr+t", "man", "a|gr+t", "writer"];
		goto labelFunc0334_0B45;
	labelFunc0334_0428:
		if(!(var0001 == 0x003D)) goto labelFunc0334_0447;
		var000A = ["beware!", "spirits", "prowl", "here!"];
		goto labelFunc0334_0B45;
	labelFunc0334_0447:
		if(!(var0001 == 0x003E)) goto labelFunc0334_0460;
		var000A = ["town", "hall"];
		goto labelFunc0334_0B45;
	labelFunc0334_0460:
		if(!(var0001 == 0x003F)) goto labelFunc0334_0479;
		var000A = ["provision", "shoppe"];
		goto labelFunc0334_0B45;
	labelFunc0334_0479:
		if(!(var0001 == 0x0040)) goto labelFunc0334_048F;
		var000A = ["archives"];
		goto labelFunc0334_0B45;
	labelFunc0334_048F:
		if(!(var0001 == 0x0041)) goto labelFunc0334_04AB;
		var000A = ["goblin", "war", "drum"];
		goto labelFunc0334_0B45;
	labelFunc0334_04AB:
		if(!(var0001 == 0x0042)) goto labelFunc0334_04C4;
		var000A = ["goblin", "artifacts"];
		goto labelFunc0334_0B45;
	labelFunc0334_04C4:
		if(!(var0001 == 0x0043)) goto labelFunc0334_04E3;
		var000A = ["b+trix", "of|(e", "broken", "h+rt"];
		goto labelFunc0334_0B45;
	labelFunc0334_04E3:
		if(!(var0001 == 0x0046)) goto labelFunc0334_04FF;
		var000A = ["sarah", "swift|of|blade", ",ro*|of|h+rt"];
		goto labelFunc0334_0B45;
	labelFunc0334_04FF:
		if(!(var0001 == 0x0047)) goto labelFunc0334_051E;
		var000A = ["groat", "no|knight", "swifter", "(an|he"];
		goto labelFunc0334_0B45;
	labelFunc0334_051E:
		if(!(var0001 == 0x0048)) goto labelFunc0334_053A;
		var000A = ["edmund", "archer", "par|excellence"];
		goto labelFunc0334_0B45;
	labelFunc0334_053A:
		if(!(var0001 == 0x0049)) goto labelFunc0334_0553;
		var000A = ["reynald", "valiant|and|glorious"];
		goto labelFunc0334_0B45;
	labelFunc0334_0553:
		if(!(var0001 == 0x004A)) goto labelFunc0334_0572;
		var000A = ["pedigar", ",re*(", "and", "valor"];
		goto labelFunc0334_0B45;
	labelFunc0334_0572:
		if(!(var0001 == 0x004B)) goto labelFunc0334_0591;
		var000A = ["elena", "wor(y", "of", "immortality"];
		goto labelFunc0334_0B45;
	labelFunc0334_0591:
		if(!(var0001 == 0x004C)) goto labelFunc0334_05AD;
		var000A = ["caladin", "golden-to*ued", "knight"];
		goto labelFunc0334_0B45;
	labelFunc0334_05AD:
		if(!(var0001 == 0x004D)) goto labelFunc0334_05C9;
		var000A = ["terrence", "(e", "pure"];
		goto labelFunc0334_0B45;
	labelFunc0334_05C9:
		if(!(var0001 == 0x004E)) goto labelFunc0334_05E8;
		var000A = ["randall", "intrepid", "and", "brave"];
		goto labelFunc0334_0B45;
	labelFunc0334_05E8:
		if(!(var0001 == 0x004F)) goto labelFunc0334_0607;
		var000A = ["samuel", "(ou|wert", "never", "matched"];
		goto labelFunc0334_0B45;
	labelFunc0334_0607:
		if(!(var0001 == 0x0050)) goto labelFunc0334_0626;
		var000A = ["kosric", "(underbolts", "from", "above"];
		goto labelFunc0334_0B45;
	labelFunc0334_0626:
		if(!(var0001 == 0x0051)) goto labelFunc0334_0642;
		var000A = ["bryan", "his|skill", "knew|no|bounds"];
		goto labelFunc0334_0B45;
	labelFunc0334_0642:
		if(!(var0001 == 0x0052)) goto labelFunc0334_0661;
		var000A = ["goff", "renown", "and", "honor"];
		goto labelFunc0334_0B45;
	labelFunc0334_0661:
		if(!(var0001 == 0x0053)) goto labelFunc0334_0686;
		var000A = ["melina", "adept", "in|(e", "art", "of", "war"];
		goto labelFunc0334_0B45;
	labelFunc0334_0686:
		if(!(var0001 == 0x0054)) goto labelFunc0334_06AB;
		var000A = ["roland", "red)med", "(e", "honor", "of|our", "land"];
		goto labelFunc0334_0B45;
	labelFunc0334_06AB:
		if(!(var0001 == 0x0055)) goto labelFunc0334_06C4;
		var000A = ["cellia's", "fine|furs"];
		goto labelFunc0334_0B45;
	labelFunc0334_06C4:
		if(!(var0001 == 0x0056)) goto labelFunc0334_06DD;
		var000A = ["li,", "field"];
		goto labelFunc0334_0B45;
	labelFunc0334_06DD:
		if(!(var0001 == 0x0057)) goto labelFunc0334_06F6;
		var000A = ["lydia's", "tattoo|parlor"];
		goto labelFunc0334_0B45;
	labelFunc0334_06F6:
		if(!(var0001 == 0x0058)) goto labelFunc0334_070C;
		var000A = ["crematorium"];
		goto labelFunc0334_0B45;
	labelFunc0334_070C:
		if(!(var0001 == 0x0059)) goto labelFunc0334_0722;
		var000A = ["armoury"];
		goto labelFunc0334_0B45;
	labelFunc0334_0722:
		if(!(var0001 == 0x005A)) goto labelFunc0334_0738;
		var000A = ["banquet|hall"];
		goto labelFunc0334_0B45;
	labelFunc0334_0738:
		if(!(var0001 == 0x005B)) goto labelFunc0334_074E;
		var000A = ["jail"];
		goto labelFunc0334_0B45;
	labelFunc0334_074E:
		if(!(var0001 == 0x005C)) goto labelFunc0334_0764;
		var000A = ["traini*|hall"];
		goto labelFunc0334_0B45;
	labelFunc0334_0764:
		if(!(var0001 == 0x005F)) goto labelFunc0334_077D;
		var000A = ["supply", "room"];
		goto labelFunc0334_0B45;
	labelFunc0334_077D:
		if(!(var0001 == 0x0075)) goto labelFunc0334_0799;
		var000A = ["enter", "(y|name", "into|log|book"];
		goto labelFunc0334_0B45;
	labelFunc0334_0799:
		if(!(var0001 == 0x0076)) goto labelFunc0334_07B5;
		var000A = ["enter|at", "(ine|own", "risk"];
		goto labelFunc0334_0B45;
	labelFunc0334_07B5:
		if(!(var0001 == 0x0077)) goto labelFunc0334_07D1;
		var000A = ["warni*", "da*erous|b+,", "wi(in"];
		goto labelFunc0334_0B45;
	labelFunc0334_07D1:
		if(!(var0001 == 0x0078)) goto labelFunc0334_07ED;
		var000A = ["f)d", "b+,", "daily"];
		goto labelFunc0334_0B45;
	labelFunc0334_07ED:
		if(!(var0001 == 0x0079)) goto labelFunc0334_080C;
		var000A = ["pick", "one", "or", "die"];
		goto labelFunc0334_0B45;
	labelFunc0334_080C:
		if(!(var0001 == 0x007A)) goto labelFunc0334_0828;
		var000A = ["inmates", "mu,", "work"];
		goto labelFunc0334_0B45;
	labelFunc0334_0828:
		if(!(var0001 == 0x007B)) goto labelFunc0334_0847;
		var000A = ["kn)l", "before", "(e", "ma,er"];
		goto labelFunc0334_0B45;
	labelFunc0334_0847:
		if(!(var0001 == 0x007C)) goto labelFunc0334_0866;
		var000A = ["do", "not", "di,urb", "gamema,ers"];
		goto labelFunc0334_0B45;
	labelFunc0334_0866:
		if(!(var0001 == 0x007D)) goto labelFunc0334_088D;
		var000A = ["ri*", "bell|for", "service"];
		var0007 = UI_set_item_quality_1D(item, 0x007E);
		goto labelFunc0334_0B45;
	labelFunc0334_088D:
		if(!(var0001 == 0x007E)) goto labelFunc0334_08B4;
		var000A = ["r+ch", "bell|for", "fr)dom"];
		var0007 = UI_set_item_quality_1D(item, 0x007D);
		goto labelFunc0334_0B45;
	labelFunc0334_08B4:
		if(!(var0001 == 0x007F)) goto labelFunc0334_08DB;
		var000A = ["enter", "(e", "flame"];
		var0007 = UI_set_item_quality_1D(item, 0x0081);
		goto labelFunc0334_0B45;
	labelFunc0334_08DB:
		if(!(var0001 == 0x0080)) goto labelFunc0334_08F7;
		var000A = ["t+mwork", "insures", "liberty"];
		goto labelFunc0334_0B45;
	labelFunc0334_08F7:
		if(!(var0001 == 0x0081)) goto labelFunc0334_091E;
		var000A = ["to", "end|(y", "dr+m"];
		var0007 = UI_set_item_quality_1D(item, 0x007F);
		goto labelFunc0334_0B45;
	labelFunc0334_091E:
		if(!(var0001 == 0x0082)) goto labelFunc0334_0934;
		var000A = ["room 1"];
		goto labelFunc0334_0B45;
	labelFunc0334_0934:
		if(!(var0001 == 0x0083)) goto labelFunc0334_094A;
		var000A = ["room 2"];
		goto labelFunc0334_0B45;
	labelFunc0334_094A:
		if(!(var0001 == 0x0084)) goto labelFunc0334_0960;
		var000A = ["room 3"];
		goto labelFunc0334_0B45;
	labelFunc0334_0960:
		if(!(var0001 == 0x0085)) goto labelFunc0334_0976;
		var000A = ["room 4"];
		goto labelFunc0334_0B45;
	labelFunc0334_0976:
		if(!(var0001 == 0x0086)) goto labelFunc0334_098C;
		var000A = ["room 5"];
		goto labelFunc0334_0B45;
	labelFunc0334_098C:
		if(!(var0001 == 0x0087)) goto labelFunc0334_09A2;
		var000A = ["room 6"];
		goto labelFunc0334_0B45;
	labelFunc0334_09A2:
		if(!(var0001 == 0x0088)) goto labelFunc0334_09B8;
		var000A = ["room 7"];
		goto labelFunc0334_0B45;
	labelFunc0334_09B8:
		if(!(var0001 == 0x0089)) goto labelFunc0334_09CE;
		var000A = ["palace"];
		goto labelFunc0334_0B45;
	labelFunc0334_09CE:
		if(!(var0001 == 0x008A)) goto labelFunc0334_09EA;
		var000A = ["temple", "of", "b+uty"];
		goto labelFunc0334_0B45;
	labelFunc0334_09EA:
		if(!(var0001 == 0x008B)) goto labelFunc0334_0A03;
		var000A = ["royal", "gardens"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A03:
		if(!(var0001 == 0x008C)) goto labelFunc0334_0A1C;
		var000A = ["broken", "oar"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A1C:
		if(!(var0001 == 0x008D)) goto labelFunc0334_0A32;
		var000A = ["re,house"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A32:
		if(!(var0001 == 0x008E)) goto labelFunc0334_0A4B;
		var000A = ["donations", "welcome"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A4B:
		if(!(var0001 == 0x008F)) goto labelFunc0334_0A64;
		var000A = ["magic", "wine"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A64:
		if(!(var0001 == 0x009E)) goto labelFunc0334_0A80;
		var000A = ["gannt", "(e|bard", "wanders|no|more"];
		goto labelFunc0334_0B45;
	labelFunc0334_0A80:
		if(!(var0001 == 0x009F)) goto labelFunc0334_0B45;
		var000A = ["gannt", "(e|bard", "wanders|no|more"];
		UI_display_runes_3E(0x002E, var000A);
		var0007 = UI_set_item_quality_1D(item, 0x009E);
		Func097F(0xFE9C, "@Stand back!@", 0x0002);
		Func097F(0xFE9C, "@It dropped a scroll!@", 0x0014);
		var0008 = [0x0138, 0x07EF, 0x0000];
		UI_sprite_effect_68(0x0004, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0007 = Func09AB(0x031D, 0x0004, 0x0096, false, var0008);
		var0008 = UI_get_object_position_20(item);
		var000C = UI_create_new_object2_2D(0x0151, [(var0008[0x0001] + 0x0001), (var0008[0x0002] + 0x0001), 0x0002]);
		UI_set_schedule_type_25(var000C, 0x0014);
		UI_play_sound_effect_16(0x003A);
		abrt();
	labelFunc0334_0B45:
		UI_display_runes_3E(0x002E, var000A);
		return;
}
// externs
extern Func0971 0x971 (var var0000);
extern Func0949 0x949 (var var0000);

Func0336 0x336 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0336_00D9;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc0336_0069;
	var0001 = UI_click_on_item_3F();
	var0002 = UI_get_item_shape_18(var0001);
	if(!(var0002 == 0x02DA)) goto labelFunc0336_0040;
	UI_set_item_frame_1B(item, 0x0001);
	goto labelFunc0336_0069;
	labelFunc0336_0040:
		if(!(UI_get_item_shape_18(var0001) == 0x0336)) goto labelFunc0336_0063;
		if(!(UI_get_item_frame_1A(var0001) == 0x0002)) goto labelFunc0336_0060;
		Func0971(item);
	labelFunc0336_0060:
		goto labelFunc0336_0069;
	labelFunc0336_0063:
		Func0949("@Those are for infants.@");
	labelFunc0336_0069:
		if(!(var0000 == 0x0001)) goto labelFunc0336_00C9;
		var0001 = UI_click_on_item_3F();
		if(!UI_is_npc_3D(var0001)) goto labelFunc0336_00A9;
		UI_set_schedule_type_25(var0001, 0x0000);
		UI_set_attack_mode_59(var0001, 0x0007);
		UI_set_opponent_5B(var0001, 0xFE9C);
		Func0971(item);
		goto labelFunc0336_00C9;
	labelFunc0336_00A9:
		if(!(UI_get_item_shape_18(var0001) == 0x0336)) goto labelFunc0336_00C9;
		if(!(UI_get_item_frame_1A(var0001) == 0x0002)) goto labelFunc0336_00C9;
		Func0971(item);
	labelFunc0336_00C9:
		if(!(var0000 == 0x0002)) goto labelFunc0336_00D9;
		Func0949("@That is for dirty diapers.@");
	labelFunc0336_00D9:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0949 0x949 (var var0000);

Func0337 0x337 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0337_0140;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 < 0x0002)) goto labelFunc0337_002D;
	var0001 = Func0992(Iolo, "@Thou art painting with thy fingers again?@", 0x0000, false);
	goto labelFunc0337_0140;
	labelFunc0337_002D:
		var0002 = UI_click_on_item_3F();
		var0003 = UI_get_item_shape_18(var0002);
		if(!(var0003 == 0x0337)) goto labelFunc0337_0139;
		if(!(UI_get_item_frame_1A(var0002) < 0x0002)) goto labelFunc0337_0136;
		var0002 = UI_click_on_item_3F();
		if(!(UI_get_item_shape_18(var0002) == 0x0345)) goto labelFunc0337_0109;
		var0004 = (UI_get_item_frame_1A(var0002) % 0x0008);
		var0005 = UI_die_roll_17(0x0001, 0x000A);
		if(!(var0005 == 0x0001)) goto labelFunc0337_0096;
		var0006 = "@That is quite good!@";
	labelFunc0337_0096:
		if(!(var0005 == 0x0002)) goto labelFunc0337_00A6;
		var0006 = "@Do not change thine occupation for a painter.@";
	labelFunc0337_00A6:
		if(!(var0005 == 0x0003)) goto labelFunc0337_00BA;
		var0006 = ("@I can almost not" & "see the numbers.@");
	labelFunc0337_00BA:
		if(!(var0005 == 0x0004)) goto labelFunc0337_00CA;
		var0006 = "@Thou shouldst stay within the lines.@";
	labelFunc0337_00CA:
		if(!(var0005 == 0x0005)) goto labelFunc0337_00DA;
		var0006 = "@What is it?@";
	labelFunc0337_00DA:
		var0001 = Func0992(Iolo, var0006, 0x0000, false);
		if(!(var0004 < 0x0007)) goto labelFunc0337_0106;
		UI_set_item_frame_1B(var0002, (UI_get_item_frame_1A(var0002) + 0x0001));
	labelFunc0337_0106:
		goto labelFunc0337_0136;
	labelFunc0337_0109:
		if(!UI_is_npc_3D(var0002)) goto labelFunc0337_0126;
		var0001 = Func0992(Iolo, "@Tattooing?@", 0x0000, true);
		goto labelFunc0337_0136;
	labelFunc0337_0126:
		var0001 = Func0992(Iolo, "@The stain will never come out.@", 0x0000, false);
	labelFunc0337_0136:
		goto labelFunc0337_0140;
	labelFunc0337_0139:
		Func0949("@Thou must use pigments!@");
		exit2();
	labelFunc0337_0140:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func0339 0x339 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x000A)) goto labelFunc0339_0032;
	var0000 = Func090C(0xFE9C, item);
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0000, 0x01, 0x6A, 0x61]);
	UI_set_item_frame_1B(item, 0x0000);
	labelFunc0339_0032:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern Func0949 0x949 (var var0000);
extern var Func0983 0x983 (var var0000);
extern Func0971 0x971 (var var0000);

Func033B 0x33B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc033B_00F1;
	var0000 = UI_click_on_item_3F();
	if(!UI_is_npc_3D(var0000)) goto labelFunc033B_00EB;
	var0001 = UI_get_npc_prop_28(var0000, 0x0000);
	var0002 = UI_get_npc_prop_28(var0000, 0x0003);
	if(!(var0002 == var0001)) goto labelFunc033B_0046;
	Func094A("@It doth not appear that a bandage is needed.@");
	goto labelFunc033B_00E8;
	labelFunc033B_0046:
		if(!(UI_get_npc_number_47(var0000) == 0xFE9C)) goto labelFunc033B_005D;
		Func0949("@Much better.@");
		goto labelFunc033B_00AF;
	labelFunc033B_005D:
		if(!Func0983(var0000)) goto labelFunc033B_00AF;
		var0003 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0003 == 0x0001)) goto labelFunc033B_0087;
		UI_item_say_4D(var0000, "@Ah, much better!@");
	labelFunc033B_0087:
		if(!(var0003 == 0x0002)) goto labelFunc033B_009B;
		UI_item_say_4D(var0000, "@Thank thee!@");
	labelFunc033B_009B:
		if(!(var0003 == 0x0003)) goto labelFunc033B_00AF;
		UI_item_say_4D(var0000, "@That looks better.@");
	labelFunc033B_00AF:
		var0003 = UI_die_roll_17(0x0001, 0x0004);
		if(!((var0002 + var0003) > var0001)) goto labelFunc033B_00D4;
		var0003 = (var0001 - var0002);
	labelFunc033B_00D4:
		var0003 = UI_set_npc_prop_29(var0000, 0x0003, var0003);
		Func0971(item);
	labelFunc033B_00E8:
		goto labelFunc033B_00F1;
	labelFunc033B_00EB:
		Func0949("@Do not soil the bandages.@");
	labelFunc033B_00F1:
		return;
}
// externs
extern var Func090A 0x90A (var var0000);

Func033C 0x33C (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc033C_000F;
	exit2();
	labelFunc033C_000F:
		if(!(UI_get_item_quality_1C(item) == 0x0000)) goto labelFunc033C_0022;
		var0000 = Func090A(item);
	labelFunc033C_0022:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func089C 0x89C (var var0000, var var0001);

Func033D 0x33D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	if(!(event == 0x0002)) goto labelFunc033D_0679;
	if(!((!gflags[0007]) && ((!gflags[0008]) && ((!gflags[0009]) && (!gflags[000A]))))) goto labelFunc033D_0032;
	Func090D(item, 0x0000, 0x0000, Dupre, 0x033D, item, 0x000A);
	labelFunc033D_0032:
		if(!gflags[0007]) goto labelFunc033D_00AF;
		var0000 = Func0953();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		var0001 = (("@" + var0000) + ", I am afraid.@");
		UI_item_say_4D(0xFFE4, var0001);
		var0002 = UI_direction_from_A2(0xFE9C, 0xFFE4);
		var0003 = UI_direction_from_A2(0xFFE4, 0xFE9C);
		UI_halt_scheduled_71(0xFE9C);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@Don't worry,@", 0x27, 0x000E, 0x55, 0x033D], 0x000E);
		gflags[0007] = false;
		gflags[0008] = true;
		exit2();
	labelFunc033D_00AF:
		if(!gflags[0008]) goto labelFunc033D_00E3;
		UI_halt_scheduled_71(0xFE9C);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x52, "@Everything should@", 0x27, 0x000C, 0x55, 0x033D]);
		gflags[0008] = false;
		gflags[0009] = true;
		exit2();
	labelFunc033D_00E3:
		if(!gflags[0009]) goto labelFunc033D_01D0;
		UI_halt_scheduled_71(0xFE9C);
		UI_halt_scheduled_71(0xFFE4);
		UI_set_polymorph_B3(0xFFE4, 0x014E);
		UI_set_schedule_type_25(0xFFE4, 0x000F);
		UI_set_item_flag_A4(0xFE9C, 0x0023);
		var0005 = UI_get_object_position_20(0xFFE4);
		var0006 = UI_get_object_position_20(0xFE9C);
		var0002 = UI_direction_from_A2(0xFE9C, 0xFFE4);
		var0003 = UI_direction_from_A2(0xFFE4, 0xFE9C);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x52, "@...be fine...@"]);
		var0004 = UI_execute_usecode_array_01(0xFFE4, [0x23, 0x27, 0x0004, 0x55, 0x033D]);
		var0007 = UI_get_object_position_20(0xFFE4);
		UI_sprite_effect_68(0x002B, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0001, Dupre);
		UI_play_sound_effect_16(0x0074);
		UI_UNKNOWN_72();
		UI_play_music_39(0x0035, 0x0000);
		var0008 = Func09A0(0x0001, 0x0001);
		var0004 = UI_set_item_quality_1D(var0008, 0x0001);
		gflags[0009] = false;
		gflags[000A] = true;
		exit2();
	labelFunc033D_01D0:
		if(!gflags[000A]) goto labelFunc033D_0679;
		UI_halt_scheduled_71(0xFE9C);
		UI_halt_scheduled_71(0xFFE4);
		var0008 = Func09A0(0x0001, 0x0001);
		var0009 = UI_get_item_quality_1C(var0008);
		var000A = UI_is_pc_female_6F();
		var000B = UI_get_skin_colour_A6();
		if(!(var0009 == 0x0001)) goto labelFunc033D_022C;
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x033D], 0x000C);
		goto labelFunc033D_029A;
	labelFunc033D_022C:
		var0007 = UI_get_object_position_20(item);
		var000C = UI_die_roll_17(0x0001, 0x0002);
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc033D_0270;
		UI_sprite_effect_68(0x002B, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, var000C, Dupre);
		goto labelFunc033D_028F;
	labelFunc033D_0270:
		UI_sprite_effect_68(0x002B, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, var000C, Iolo);
	labelFunc033D_028F:
		UI_UNKNOWN_72();
		UI_play_sound_effect_16(0x0074);
	labelFunc033D_029A:
		if(!(var0009 == 0x0002)) goto labelFunc033D_02E8;
		if(!(var000B == 0x0002)) goto labelFunc033D_02C1;
		UI_set_polymorph_B3(0xFE9C, Func089C(0x0001, 0x0000));
		goto labelFunc033D_02D1;
	labelFunc033D_02C1:
		UI_set_polymorph_B3(0xFE9C, Func089C(0x0002, 0x0000));
	labelFunc033D_02D1:
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0005);
	labelFunc033D_02E8:
		if(!(var0009 == 0x0003)) goto labelFunc033D_0313;
		UI_set_polymorph_B3(0xFFE4, 0x0292);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x033D], 0x0004);
	labelFunc033D_0313:
		if(!(var0009 == 0x0004)) goto labelFunc033D_0344;
		UI_set_polymorph_B3(0xFE9C, Func089C(var000B, var000A));
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0004);
	labelFunc033D_0344:
		if(!(var0009 == 0x0005)) goto labelFunc033D_0375;
		UI_set_polymorph_B3(0xFFE4, Func089C(var000B, var000A));
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0004);
	labelFunc033D_0375:
		if(!(var0009 == 0x0006)) goto labelFunc033D_03C3;
		if(!(var000B == 0x0002)) goto labelFunc033D_039C;
		UI_set_polymorph_B3(0xFFE4, Func089C(0x0000, 0x0001));
		goto labelFunc033D_03AC;
	labelFunc033D_039C:
		UI_set_polymorph_B3(0xFFE4, Func089C(0x0002, 0x0001));
	labelFunc033D_03AC:
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0004);
	labelFunc033D_03C3:
		if(!(var0009 == 0x0007)) goto labelFunc033D_0474;
		if(!(var000B == 0x0001)) goto labelFunc033D_03EA;
		UI_set_polymorph_B3(0xFFE4, Func089C(0x0000, 0x0001));
		goto labelFunc033D_03FA;
	labelFunc033D_03EA:
		UI_set_polymorph_B3(0xFFE4, Func089C(0x0001, 0x0001));
	labelFunc033D_03FA:
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x033D], 0x0003);
		var0007 = UI_get_object_position_20(0xFE9C);
		var000C = UI_die_roll_17(0x0000, 0x0003);
		UI_sprite_effect_68(0x002B, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, var000C, 0x0001);
		if(!(var000B == 0x0001)) goto labelFunc033D_0464;
		UI_set_polymorph_B3(0xFE9C, Func089C(0x0000, 0x0000));
		goto labelFunc033D_0474;
	labelFunc033D_0464:
		UI_set_polymorph_B3(0xFE9C, Func089C(0x0001, 0x0000));
	labelFunc033D_0474:
		if(!(var0009 == 0x0008)) goto labelFunc033D_04A5;
		UI_set_polymorph_B3(0xFE9C, Func089C(var000B, var000A));
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0002);
	labelFunc033D_04A5:
		if(!(var0009 == 0x0009)) goto labelFunc033D_04D0;
		UI_set_polymorph_B3(0xFFE4, 0x014E);
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0002);
	labelFunc033D_04D0:
		if(!(var0009 == 0x000A)) goto labelFunc033D_0541;
		UI_set_polymorph_B3(0xFFE4, Func089C(var000B, 0x0001));
		var0004 = UI_delayed_execute_usecode_array_02(0xFFE4, [0x23, 0x55, 0x033D], 0x0002);
		UI_set_polymorph_B3(0xFE9C, 0x02EB);
		var0007 = UI_get_object_position_20(0xFE9C);
		var000C = UI_die_roll_17(0x0000, 0x0003);
		UI_sprite_effect_68(0x002B, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, var000C, 0x0001);
	labelFunc033D_0541:
		if(!(var0009 == 0x000B)) goto labelFunc033D_056C;
		UI_set_polymorph_B3(0xFFE4, 0x0292);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x033D], 0x0001);
	labelFunc033D_056C:
		if(!(var0009 == 0x000C)) goto labelFunc033D_0597;
		UI_set_polymorph_B3(0xFE9C, 0x014E);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x033D], 0x0001);
	labelFunc033D_0597:
		if(!(var0009 == 0x000D)) goto labelFunc033D_05C5;
		UI_set_polymorph_B3(0xFE9C, Func089C(var000B, var000A));
		var0004 = UI_execute_usecode_array_01(0xFFE4, [0x23, 0x55, 0x033D]);
	labelFunc033D_05C5:
		if(!(var0009 == 0x000E)) goto labelFunc033D_05ED;
		UI_set_polymorph_B3(0xFFE4, 0x02D1);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x033D]);
	labelFunc033D_05ED:
		if(!(var0009 == 0x000F)) goto labelFunc033D_0668;
		var0004 = UI_delayed_execute_usecode_array_02(var0008, [0x55, 0x070A], 0x03E8);
		UI_set_polymorph_B3(0xFE9C, 0x0292);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_item_flag_A4(0xFFE4, 0x001D);
		gflags[000A] = false;
		if(!(!var000A)) goto labelFunc033D_065D;
		gflags[0228] = true;
		var0004 = UI_set_npc_prop_29(0xFFE4, 0x000A, 0x0000);
		var0004 = UI_set_npc_prop_29(0xFE9C, 0x000A, 0x0001);
	labelFunc033D_065D:
		UI_play_music_39(0x0040, 0x0000);
		exit2();
	labelFunc033D_0668:
		var0004 = UI_set_item_quality_1D(var0008, (var0009 + 0x0001));
	labelFunc033D_0679:
		if(!(event == 0x000A)) goto labelFunc033D_06C8;
		var000D = UI_direction_from_A2(0xFE9C, 0xFFE4);
		var000E = UI_direction_from_A2(0xFFE4, 0xFE9C);
		gflags[0007] = true;
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x59, var000D, 0x55, 0x033D]);
		var0004 = UI_execute_usecode_array_01(0xFFE4, [0x59, var000E]);
	labelFunc033D_06C8:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0345 0x345 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0345_0026;
	var0000 = (("@Thou shouldst use the brush and pigments, " + Func0953()) + ".@");
	var0001 = Func0992(Iolo, var0000, 0x0000, true);
	labelFunc0345_0026:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0346 0x346 (var var0000)
{
	var var0001;
	var var0002;

	UI_close_gumps_98();
	if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc0346_009C;
	if(!Func0942(0xFFDB)) goto labelFunc0346_008D;
	if(!(UI_get_distance_21(0xFE9C, 0xFFDB) < 0x0003)) goto labelFunc0346_0058;
	var0000 = UI_set_last_created_2E(item);
	var0001 = UI_get_object_position_20(0xFFDB);
	var0000 = UI_update_last_created_2F(var0001);
	UI_set_item_frame_1B(item, 0x0001);
	UI_remove_npc_4C(0xFFDB);
	goto labelFunc0346_008A;
	labelFunc0346_0058:
		var0000 = UI_set_last_created_2E(item);
		var0000 = UI_give_last_created_42(0xFE9C);
		UI_set_schedule_type_25(0xFFDB, 0x000A);
		Func090D(0xFFDB, Dupre, Dupre, Iolo, 0x0346, item, 0x0001);
	labelFunc0346_008A:
		goto labelFunc0346_0099;
	labelFunc0346_008D:
		Func097F(0xFE9C, "@Ale? Where art thou?@", 0x0000);
	labelFunc0346_0099:
		goto labelFunc0346_0108;
	labelFunc0346_009C:
		UI_set_item_frame_1B(item, 0x0000);
		var0001 = UI_get_object_position_20(item);
		var0001[0x0001] = (var0001[0x0001] - 0x0001);
		var0001[0x0002] = (var0001[0x0002] - 0x0001);
		UI_move_object_4B(0xFFDB, [var0001[0x0001], var0001[0x0002], 0x0000]);
		UI_set_new_schedules_B6(0xFFDB, 0x0000, 0x0011, [var0001[0x0001], var0001[0x0002]]);
		UI_run_schedule_B7(0xFFDB);
	labelFunc0346_0108:
		return;
}
// externs
extern var Func08F8 0x8F8 (var var0000, var var0001, var var0002);
extern var Func08FC 0x8FC ();
extern Func07D2 0x7D2 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0347 0x347 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc0347_015C;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0001)) goto labelFunc0347_015C;
	var0001 = UI_get_object_position_20(item);
	if(!Func08F8(var0001, [0x0910, 0x0170], [0x093F, 0x019F])) goto labelFunc0347_0063;
	UI_close_gumps_98();
	UI_play_sound_effect_16(0x0030);
	UI_obj_sprite_effect_91(item, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	abrt();
	labelFunc0347_0063:
		var0002 = true;
		var0003 = UI_find_nearby_41(0xFE9C, 0xFE99, 0x000A, 0x0004);
		enum();
	labelFunc0347_007B:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0347_00A1);
		var0007 = UI_get_schedule_type_24(var0006);
		if(!(var0007 == 0x0000)) goto labelFunc0347_009E;
		var0002 = false;
	labelFunc0347_009E:
		goto labelFunc0347_007B;
	labelFunc0347_00A1:
		if(!var0002) goto labelFunc0347_013B;
		if(!Func08FC()) goto labelFunc0347_0117;
		var0008 = UI_get_object_position_20(0xFE9C);
		UI_move_object_4B(0xFF2D, var0008);
		0xFF2D;
		calle();
		UI_set_schedule_type_25(0xFF2D, 0x0003);
		UI_obj_sprite_effect_91(0xFF2D, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0009 = Func09A0(0x0002, 0x0001);
		if(!var0009) goto labelFunc0347_0110;
		UI_play_music_39(0x003F, var0009);
	labelFunc0347_0110:
		UI_close_gumps_98();
		goto labelFunc0347_0138;
	labelFunc0347_0117:
		UI_play_sound_effect_16(0x000E);
		UI_obj_sprite_effect_91(item, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0347_0138:
		goto labelFunc0347_015C;
	labelFunc0347_013B:
		UI_play_sound_effect_16(0x0030);
		UI_obj_sprite_effect_91(item, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0347_015C:
		return;
}
// externs
extern Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003);
extern Func0971 0x971 (var var0000);

Func034A 0x34A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(UI_get_item_frame_1A(item) == 0x0004)) goto labelFunc034A_0020;
	var0000 = UI_click_on_item_3F();
	Func08AD(item, 0x0002, 0x0026, var0000);
	labelFunc034A_0020:
		if(!(UI_get_item_frame_1A(item) == 0x000F)) goto labelFunc034A_0080;
		var0000 = UI_click_on_item_3F();
		if(!((UI_get_item_shape_18(var0000) == 0x032A) && (UI_get_item_frame_1A(var0000) == 0x0002))) goto labelFunc034A_0080;
		UI_set_item_frame_1B(var0000, 0x0000);
		UI_set_item_frame_1B(item, 0x0008);
		UI_play_sound_effect_16(0x0021);
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc034A_0080:
		if(!(UI_get_item_frame_1A(item) == 0x000E)) goto labelFunc034A_012F;
		var0001 = UI_click_on_item_3F();
		if(!(var0001[0x0001] == UI_get_npc_object_23(0xFE9C))) goto labelFunc034A_00A5;
		exit2();
	labelFunc034A_00A5:
		if(!((UI_get_item_shape_18(var0001[0x0001]) == 0x0379) && ((UI_get_item_frame_1A(var0001[0x0001]) == 0x0000) || ((UI_get_item_frame_1A(var0001[0x0001]) == 0x0001) || ((UI_get_item_frame_1A(var0001[0x0001]) == 0x0004) || (UI_get_item_frame_1A(var0001[0x0001]) == 0x0005)))))) goto labelFunc034A_012F;
		Func0971(item);
		UI_set_item_shape_14(var0001[0x0001], 0x020E);
		var0002 = UI_find_nearby_41(var0001[0x0001], 0x0211, 0x0028, 0x0000);
		enum();
	labelFunc034A_011A:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc034A_012F);
		UI_kill_npc_57(var0005);
		goto labelFunc034A_011A;
	labelFunc034A_012F:
		return;
}
// externs
extern var Func090B 0x90B (var var0000);

Func034D 0x34D (var var0000)
{
	var var0001;

	if(!((event != 0x0001) && (event != 0x0002))) goto labelFunc034D_000F;
	exit2();
	labelFunc034D_000F:
		if(!(UI_get_item_quality_1C(item) == 0x0000)) goto labelFunc034D_0022;
		var0000 = Func090B(item);
	labelFunc034D_0022:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func0353 0x353 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0353_0018;
	var0000 = ("@That appears to be very fine cloth." + "Perhaps thou couldst cut it into bandages with shears.@");
	Func094A(var0000);
	labelFunc0353_0018:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0355 0x355 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0002)) goto labelFunc0355_0096;
	var0000 = UI_get_object_position_20(item);
	if(!(UI_get_npc_id_BC(item) == 0x000F)) goto labelFunc0355_004A;
	var0001 = UI_create_new_object_2C(0x037F);
	if(!var0001) goto labelFunc0355_0036;
	var0002 = UI_update_last_created_2F(var0000);
	labelFunc0355_0036:
		UI_remove_item_84(item);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		abrt();
	labelFunc0355_004A:
		UI_sprite_effect_68(0x0008, (var0000[0x0001] + UI_get_npc_id_BC(item)), (var0000[0x0002] - UI_get_npc_id_BC(item)), 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_npc_id_BD(item, (UI_get_npc_id_BC(item) + 0x0001));
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0355]);
		abrt();
	labelFunc0355_0096:
		UI_play_music_39(0x0035, Func09A0(0x0005, 0x0001));
		UI_show_npc_face0_05(0xFEE4, 0x0000);
		UcMessage("\"Who dares to disturb the restless repose of the Hierophant of Chaos!\"");
		UcSay;
		UcMessage("\"Wait -- I know thee! The Void hath whispered to me of thy coming, Hero from a Distant Land. But dost thou dare to hear the answers to thy questions?\"");
		UcSay;
		gflags[022B] = true;
		UI_add_answer_0C(["restless repose", "whispers from the Void", "questions", "bye"]);
	labelFunc0355_00CF:
		UcAsk;
		cmps("restless repose");
		UI_remove_answer_0D("restless repose");
		UcMessage("\"Did not faithful Sethys tell thee of my fate? I was slain on this very spot centuries ago, at the hands of the Soldiers of Order.\"");
		UcSay;
		UcMessage("\"My spirit hath lingered here, for my final duties remain unfinished...\"");
		UcSay;
		UcMessage("\"Once I have passed my knowledge to thee, I shall be free to ascend to the Void. However, my soul shall not have rest until the Chaos Serpent is restored.\"");
		UcSay;
	labelFunc0355_00ED:
		cmps("whispers from the Void");
		UI_remove_answer_0D("whispers from the Void");
		UcMessage("\"Do not toy with me, Hero! Though our purposes may be the same, our philosophies are not -- I know thee to be no friend of Chaos!\"");
		UcSay;
		UcMessage("\"Yet we both can sense the messages from the Void Between the Worlds. The wisdom of the Great Earth Serpent...\"");
		UcSay;
		UcMessage("\"We thought him dead, or deposed, yet he again speaks to Men -- though his power is a pale imitation of his former glory.\"");
		UcSay;
	labelFunc0355_0108:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"Must we? Very well...\"");
		UcSay;
	labelFunc0355_0118:
		cmps("nothing more");
		UI_pop_answers_0F();
		UcMessage("\"If thou art certain...\"");
		UcSay;
	labelFunc0355_0128:
		cmps("questions");
		UI_remove_answer_0D("questions");
		UcMessage("\"I know what thou dost seek, Hero, and I am opposed to it. Chaos must reign supreme, and not be unequally yoked to Order in the prison known as Balance!\"");
		UcSay;
		UcMessage("\"Yet even servitude would be better than the damnation that Chaos now endures, with its Forces driven apart and broken.\"");
		UcSay;
		UcMessage("\"Listen carefully -- I shall give thee mine aid this one time, but we must be enemies ever afterward!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["aid", "damnation", "change subject"]);
	labelFunc0355_0157:
		cmps("damnation");
		UI_remove_answer_0D("damnation");
		UcMessage("\"Behold the mystery of Balance! When Order struck down the Serpent of Chaos, the act undid the tapestry of Balance.\"");
		UcSay;
		UcMessage("\"Thus, both Chaos and Order were doomed!\"");
		UcSay;
		UcMessage("\"When the Serpent was broken, the three Forces of Chaos were driven to insanity -- but so was the Order Serpent...\"");
		UcSay;
		UI_add_answer_0C(["Forces of Chaos", "Order Serpent"]);
	labelFunc0355_017F:
		cmps("Forces of Chaos");
		UI_remove_answer_0D("Forces of Chaos");
		UcMessage("\"The Forces of Chaos -- the sacred embodiment of the philosophies of Chaos -- were corrupted, and became the Banes which thou hast fought against!\"");
		UcSay;
		UcMessage("\"Didst thou suppose the Banes to be innately evil? False supposition!\"");
		UcSay;
		UcMessage("\"The Banes are only insane because of the Imbalance. Restore Balance, and they shall be healed!\"");
		UcSay;
	labelFunc0355_019A:
		cmps("Order Serpent");
		UI_remove_answer_0D("Order Serpent");
		UcMessage("\"The Serpent of Order thought itself victorious in the War of Imbalance, but the act of destroying the Chaos Serpent brought despair!\"");
		UcSay;
		UcMessage("\"With the Great Earth Serpent lost, and the Chaos Serpent struck down, only the Order Serpent remains to rule in the Void.\"");
		UcSay;
		UcMessage("\"Yet due to the Imbalance, the Serpent of Order hath lost its mind! It floats mindlessly in the Void, able to coalesce a thought with only the most supreme effort!\"");
		UcSay;
	labelFunc0355_01B5:
		cmps("aid");
		UI_remove_answer_0D("aid");
		UcMessage("\"I shall now tell thee the way to restore the Serpent of Chaos. Until thou dost do this, Balance cannot be restored.\"");
		UcSay;
		UcMessage("\"I have no love for Balance, but I also know that Chaos cannot reign in Imbalance...\"");
		UcSay;
		UcMessage("\"Ask me these things: where thou must go, what thou must bring, and the rite thou must perform.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["where I must go", "what I must bring", "the rite", "nothing more"]);
	labelFunc0355_01E7:
		cmps("where I must go");
		UI_remove_answer_0D("where I must go");
		UcMessage("\"The Shrine of Chaos doth lie within the heart of the Skullcrusher Mountains. I know that thou hast been in this dungeon, but hast thou found the secret passageways?\"");
		UcSay;
		UcMessage("\"I see a shadow of a vision -- a mighty detonation, shattering the great bronze doors. Is this of the future, or hast thou done this in the past?\"");
		UcSay;
		UcMessage("\"The rite is to be performed in the most sacred precincts of the Shrine, before the Wall of Lights.\"");
		UcSay;
	labelFunc0355_0202:
		cmps("what I must bring");
		UI_remove_answer_0D("what I must bring");
		UcMessage("\"The rite cannot succeed unless thou dost bring the Serpent of Blackrock, to open the Wall of Lights and admit the energy from the Void.\"");
		UcSay;
		UcMessage("\"Any of the three Serpents shall do, though the Serpent of Chaos would be most appropriate.\"");
		UcSay;
		UcMessage("\"Thou must also bring the Banes, imprisoned within the Prisms which thou hast fashioned.\"");
		UcSay;
	labelFunc0355_021D:
		cmps("the rite");
		UI_remove_answer_0D("the rite");
		UcMessage("\"Thou must begin by opening the Wall of Lights, for this provides the energy source which the Rite requires. This is done by placing the Serpent of Blackrock in the stone slot on the floor.\"");
		UcSay;
		UcMessage("\"Next, thou must place the Banes upon the altars of Chaos. Thou must place each Bane upon the altar which is dedicated to its native Force!\"");
		UcSay;
		UcMessage("\"When thou hast placed each correctly, a flame of Chaos shall appear as thy sign.\"");
		UcSay;
		UcMessage("\"The time is now right to restore the Serpent of Chaos to completeness. Recite this mantra...\"");
		UcSay;
		UcMessage("\"In pri kli ort ailem, Priin ort inten mani!\"");
		UcSay;
	labelFunc0355_0240:
		cmps("bye");
		UcMessage("\"Wait, Hero -- I can only speak with thee this once! Dost thou understand all that I have said?\"");
		UcSay;
		if(!(!Func0955())) goto labelFunc0355_0271;
		UcMessage("\"Then ask of me again, and I shall explain once more.\"");
		UcSay;
		UI_clear_answers_10();
		UI_add_answer_0C(["restless repose", "whispers from the Void", "questions", "bye"]);
		goto labelFunc0355_02F4;
	labelFunc0355_0271:
		UcMessage("\"I disbelieve thee, mortal. Take this scroll. It shall bring our conversation to thy remembrance, in thine hour of need.\"");
		UcSay;
		var0002 = Func099B(0xFE9C, 0x0001, 0x02C3, 0x0063, 0x0000, 0x0000, true);
		UcMessage("\"I must confess, Avatar, that there is a mystery which even I cannot explain.\"");
		UcSay;
		UcMessage("\"The Rite cannot succeed without an allied force strong enough to weld the Banes together into the Serpent. It is a greater task to restore than to destroy.\"");
		UcSay;
		UcMessage("\"Seek the answer to this mystery, or thou shalt not succeed! Now, I must go...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_play_music_39(0x0035, Func09A0(0x0005, 0x0001));
		UI_set_schedule_type_25(item, 0x000F);
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		UI_set_schedule_type_25(item, 0x000F);
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x52, "@Into the Void!@", 0x55, 0x0355]);
		abrt();
	labelFunc0355_02F4:
		goto labelFunc0355_00CF;
	labelFunc0355_02F7:
		end_conv();
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0357 0x357 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_item_frame_1A(item);
	var0002 = false;
	if(!(!gflags[016C])) goto labelFunc0357_009E;
	var0003 = UI_get_object_position_20(0xFE9C);
	UI_sprite_effect_68(0x0005, (var0003[0x0001] - 0x0001), (var0003[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
	UI_UNKNOWN_72();
	var0004 = UI_get_random_00(0x0002);
	UI_reduce_health_87(0xFE9C, var0004, 0x0005);
	var0005 = ("@Yow!@" & ("@Ouch!@" & ("@That hurt!@" & ("@Ugh...@" & ("@Damn!@" & "@Yikes!@")))));
	var0002 = var0005[UI_get_random_00(UI_get_array_size_73(var0005))];
	Func097F(0xFE9C, var0002, 0x0001);
	labelFunc0357_009E:
		if(!(var0000 == 0x000B)) goto labelFunc0357_00D4;
		if(!gflags[016D]) goto labelFunc0357_00C6;
		if(!gflags[016C]) goto labelFunc0357_00BB;
		gflags[016C] = false;
		goto labelFunc0357_00BF;
	labelFunc0357_00BB:
		gflags[016C] = true;
	labelFunc0357_00BF:
		var0002 = true;
		goto labelFunc0357_00D4;
	labelFunc0357_00C6:
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
		var0002 = false;
	labelFunc0357_00D4:
		if(!(var0000 == 0x000F)) goto labelFunc0357_0182;
		if(!gflags[016D]) goto labelFunc0357_0174;
		if(!gflags[016B]) goto labelFunc0357_00F1;
		gflags[016B] = false;
		goto labelFunc0357_016D;
	labelFunc0357_00F1:
		gflags[016B] = true;
		var0006 = UI_find_nearby_41(item, 0x00F9, 0x001E, 0x0000);
		enum();
	labelFunc0357_0107:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0357_016D);
		if(!(UI_get_item_frame_1A(var0009) == 0x0001)) goto labelFunc0357_016A;
		var0002 = UI_execute_usecode_array_01(var0009, [0x23, 0x52, "@Yes, Master?@"]);
		var000A = Func0992(0x0001, 0x0000, 0x0000, true);
		Func097F(var000A, "@The Oracle speaks!@", 0x0003);
		var0002 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x00F9, 0x0000], 0x000A);
	labelFunc0357_016A:
		goto labelFunc0357_0107;
	labelFunc0357_016D:
		var0002 = true;
		goto labelFunc0357_0182;
	labelFunc0357_0174:
		var0002 = false;
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
	labelFunc0357_0182:
		if(!(var0000 == 0x000D)) goto labelFunc0357_01A1;
		if(!gflags[016D]) goto labelFunc0357_0199;
		gflags[016D] = false;
		goto labelFunc0357_019D;
	labelFunc0357_0199:
		gflags[016D] = true;
	labelFunc0357_019D:
		var0002 = true;
	labelFunc0357_01A1:
		if(!(var0000 == 0x000C)) goto labelFunc0357_0225;
		if(!gflags[016D]) goto labelFunc0357_0217;
		var000B = UI_find_nearby_41(item, 0x00C8, 0x000F, 0x0010);
		if(!var000B) goto labelFunc0357_0206;
		var0002 = true;
		if(!var0001) goto labelFunc0357_01DC;
		UI_remove_item_84(var000B);
		goto labelFunc0357_0203;
	labelFunc0357_01DC:
		var0002 = UI_execute_usecode_array_01(var000B, [0x23, 0x49, 0x0002, 0x0005]);
		var000A = Func0992(0x0001, "@Watch out!@", "@Whoops...@", true);
	labelFunc0357_0203:
		goto labelFunc0357_0214;
	labelFunc0357_0206:
		var0002 = false;
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
	labelFunc0357_0214:
		goto labelFunc0357_0225;
	labelFunc0357_0217:
		var0002 = false;
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
	labelFunc0357_0225:
		if(!(var0000 == 0x000E)) goto labelFunc0357_02C2;
		if(!gflags[016D]) goto labelFunc0357_02B4;
		var0002 = true;
		if(!(!var0001)) goto labelFunc0357_02B1;
		gflags[0166] = true;
		UI_earthquake_6E(0x0002);
		var0006 = UI_find_nearby_41(item, 0x00F9, 0x001E, 0x0000);
		enum();
	labelFunc0357_025D:
		for (var0009 in var0006 with var000C to var000D atend labelFunc0357_02A1);
		if(!(UI_get_item_frame_1A(var0009) == 0x0001)) goto labelFunc0357_029E;
		var0002 = UI_execute_usecode_array_01(var0009, [0x23, 0x52, "@Oh!@", 0x27, 0x000F, 0x52, "@Please, Master...@", 0x27, 0x000F, 0x52, "@Stop!@"]);
	labelFunc0357_029E:
		goto labelFunc0357_025D;
	labelFunc0357_02A1:
		var000A = Func0992(0x0001, "@I hear something...@", "@What was that?@", true);
	labelFunc0357_02B1:
		goto labelFunc0357_02C2;
	labelFunc0357_02B4:
		var0002 = false;
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
	labelFunc0357_02C2:
		if(!var0002) goto labelFunc0357_02FC;
		if(!((var0001 % 0x0002) == 0x0000)) goto labelFunc0357_02E5;
		UI_set_item_frame_1B(item, (var0001 + 0x0001));
		goto labelFunc0357_02F1;
	labelFunc0357_02E5:
		UI_set_item_frame_1B(item, (var0001 - 0x0001));
	labelFunc0357_02F1:
		UI_play_sound_effect2_A1(0x0046, item);
		goto labelFunc0357_0303;
	labelFunc0357_02FC:
		UI_flash_mouse_7F(0x0000);
	labelFunc0357_0303:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0949 0x949 (var var0000);

Func035F 0x35F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!(event == 0x0001)) goto labelFunc035F_01FD;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc035F_00ED;
	var0001 = UI_click_on_item_3F();
	var0002 = UI_get_object_position_20(var0001);
	var0003 = UI_get_item_shape_18(var0001);
	var0004 = Dupre;
	if(!(var0003 == 0x03FA)) goto labelFunc035F_006F;
	var0004 = (var0002[0x0001] - UI_die_roll_17(0x0000, 0x0003));
	var0005 = var0002[0x0002];
	var0006 = (var0002[0x0003] + 0x0002);
	labelFunc035F_006F:
		if(!(var0003 == 0x03EB)) goto labelFunc035F_00A3;
		var0004 = var0002[0x0001];
		var0005 = (var0002[0x0002] - UI_die_roll_17(0x0000, 0x0002));
		var0006 = (var0002[0x0003] + 0x0002);
	labelFunc035F_00A3:
		if(!(var0004 == Dupre)) goto labelFunc035F_00B6;
		Func094A("@Do not pour flour on that!@");
		goto labelFunc035F_00ED;
	labelFunc035F_00B6:
		var0007 = UI_create_new_object_2C(0x035F);
		if(!var0007) goto labelFunc035F_00ED;
		UI_set_item_flag_A4(var0007, 0x0012);
		UI_set_item_frame_1B(var0007, 0x0010);
		var0008 = UI_update_last_created_2F([var0004, var0005, var0006]);
	labelFunc035F_00ED:
		if(!((var0000 == 0x0008) || (var0000 == 0x0009))) goto labelFunc035F_013B;
		var0001 = UI_click_on_item_3F();
		if(!(UI_get_item_shape_18(var0001) == 0x035F)) goto labelFunc035F_012F;
		if(!(UI_get_item_frame_1A(var0001) == 0x0012)) goto labelFunc035F_012C;
		UI_set_item_frame_1B(var0001, 0x0011);
	labelFunc035F_012C:
		goto labelFunc035F_013B;
	labelFunc035F_012F:
		Func097F(var0001, "@Zounds! That did hurt!@", 0x0000);
	labelFunc035F_013B:
		if(!((var0000 == 0x000D) || (var0000 == 0x000E))) goto labelFunc035F_0155;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc035F_0155:
		if(!((var0000 == 0x0011) || (var0000 == 0x0012))) goto labelFunc035F_01FD;
		var0001 = UI_click_on_item_3F();
		var0009 = UI_get_item_shape_18(var0001);
		if(!(var0009 == 0x033F)) goto labelFunc035F_01FD;
		var0008 = UI_set_last_created_2E(item);
		if(!var0008) goto labelFunc035F_01FD;
		var0002 = UI_get_object_position_20(var0001);
		var0002[0x0001] = (var0002[0x0001] - UI_die_roll_17(0x0001, 0x0002));
		var0002[0x0003] = (var0002[0x0003] + 0x0001);
		var0008 = UI_update_last_created_2F(var0002);
		if(!var0008) goto labelFunc035F_01FD;
		var0008 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x035F], 0x003C);
		if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc035F_01FD;
		Func0949("@Do not thou overcook it!@");
	labelFunc035F_01FD:
		if(!(event == 0x0002)) goto labelFunc035F_0290;
		var0002 = UI_get_object_position_20(item);
		var000A = UI_find_nearby_41(item, 0x033F, 0x0002, 0x0000);
		if(!(UI_get_array_size_73(var000A) > 0x0000)) goto labelFunc035F_0290;
		UI_remove_item_84(item);
		var000B = UI_create_new_object_2C(0x0179);
		if(!var000B) goto labelFunc035F_0290;
		UI_set_item_flag_A4(var000B, 0x0012);
		UI_set_item_frame_1B(item, 0x0000);
		var0008 = UI_update_last_created_2F(var0002);
		if(!var0008) goto labelFunc035F_0290;
		var000C = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000C == 0x0001)) goto labelFunc035F_0280;
		Func0949("@I believe the bread is ready.@");
	labelFunc035F_0280:
		if(!(var000C == 0x0002)) goto labelFunc035F_0290;
		Func0949("@Mmm... 'Tis a wonderful aroma.@");
	labelFunc035F_0290:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0362 0x362 (var var0000)
{
	if(!UI_npc_nearby_3A(Iolo)) goto labelFunc0362_003A;
	Func097F(0xFE9C, "@Iolo, about that gold...@", 0x0000);
	Func097F(0xFE9C, "@thou dost owe me...@", 0x0010);
	Func097F(Iolo, "@Avatar, what gold?@", 0x0020);
	Func097F(0xFE9C, "@Just kidding...@", 0x0030);
	labelFunc0362_003A:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func098C 0x98C ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func094F 0x94F (var var0000, var var0001);

Func0363 0x363 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_is_pc_female_6F();
	var0001 = Func0994();
	var0002 = "son";
	var0003 = UI_get_npc_object_23(0xFF2D);
	if(!var0000) goto labelFunc0363_0029;
	var0002 = "daughter";
	labelFunc0363_0029:
		if(!((event == 0x0003) && (var0001 == 0x001F))) goto labelFunc0363_00BA;
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		UcMessage("Greetings, hero from another world!\"");
		UcSay;
		UcMessage("\"I foretold that we would meet again, though I had not expected thee in the realm of dreams.\" *\"That which thou dost see before thee is the Moon's Eye. It is thy goal in the waking world.\"");
		UcSay;
		UcMessage("\"Seek out the true Moon's Eye in the Temple of the Ancient Ones in the icy wastes to the north. It will show thee what thou must know...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF2D, "@Seek the Moon's Eye...@", 0x0002);
		Func097F(0xFE9C, "@Wait...@", 0x000C);
		var0004 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0007, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0005 = UI_set_item_quality_1D(item, 0x0005);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06D9], 0x000A);
		abrt();
	labelFunc0363_00BA:
		if(!(event == 0x0002)) goto labelFunc0363_042F;
		if(!((item == var0003) && (var0001 == 0x0018))) goto labelFunc0363_0161;
		var0006 = UI_get_object_position_20(0xFF2D);
	labelFunc0363_00DC:
		if(!(var0006[0x0003] > 0x0000)) goto labelFunc0363_011C;
		var0006[0x0001] = (var0006[0x0001] - 0x0001);
		var0006[0x0002] = (var0006[0x0002] - 0x0001);
		var0006[0x0003] = (var0006[0x0003] - 0x0002);
		goto labelFunc0363_00DC;
	labelFunc0363_011C:
		UI_sprite_effect_68(0x0007, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF2D);
		UI_clear_item_flag_A5(Dupre, 0x0001);
		UI_clear_item_flag_A5(Shamino, 0x0001);
		UI_clear_item_flag_A5(Iolo, 0x0001);
		abrt();
	labelFunc0363_0161:
		if(!(var0001 == 0x001B)) goto labelFunc0363_042F;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		UcMessage("\"Even as was foretold! I have travelled a great distance to meet with thee. My name is Thoxa.\"");
		UcSay;
		UcMessage("\"But wait! I proceed too quickly. Perhaps thou art not the promised Hero... I must test thee, lest I give mine assistance in error.\"");
		UcSay;
		if(!Func098C()) goto labelFunc0363_0407;
		UcMessage("\"Thou art truly the one I seek! Here is the Hourglass of Fate. Keep it with thee always, for through it the Monks of Xenka can aid thee.\"");
		UcSay;
		var0005 = Func099B(0xFE9C, 0x0001, 0x0347, 0xFE99, 0x0001, false, true);
		UI_add_answer_0C(["foretold", "promised Hero", "assistance", "Hourglass"]);
		UI_add_answer_0C("bye");
	labelFunc0363_01BC:
		UcAsk;
		cmps("Hourglass");
		UI_remove_answer_0D("Hourglass");
		UcMessage("\"As long as the Hourglass of Fate is with thee, if thou art killed, thou shalt be resurrected on Monk Isle.\"");
		UcSay;
		UcMessage("\"And if one of thy companions is killed, thou canst summon one of us to resurrect him or her, by use of the Hourglass.\"");
		UcSay;
		UcMessage("\"The monk shall come soon, when thou art in a safe place, without strangers or distractions.\"");
		UcSay;
	labelFunc0363_01DA:
		cmps("foretold");
		UI_remove_answer_0D("foretold");
		UcMessage("\"I am a Xenkan monk, my ");
		UcMessage(var0002);
		UcMessage(". As such, I have devoted my life to studying the prophecies of Xenka.\"");
		UcSay;
		UcMessage("\"The writings are clear: the Hero shall come in the last days, with Three Companions, to battle against the Evil which is in the land.\"");
		UcSay;
		UcMessage("\"Further, the Hero shall be given guidance from a Power that dwells in the Void.\"");
		UcSay;
		UI_add_answer_0C(["Companions", "Power"]);
	labelFunc0363_0208:
		cmps("Companions");
		UI_remove_answer_0D("Companions");
		UcMessage("\"The writings of Xenka speak of the Three which shall travel with thee. Without them, thou canst not succeed.\"");
		UcSay;
		UcMessage("\"They shall be thine oldest and most trusted friends, and it is their part to share thine adventure with thee.\"");
		UcSay;
		UcMessage("\"Thou must find them, Hero! And then never let them leave thy side...\"");
		UcSay;
		gflags[02C3] = true;
	labelFunc0363_0227:
		cmps("Power");
		UI_remove_answer_0D("Power");
		UcMessage("\"The writings are vague on this point, so that it is not certain whether the Power lives in the Void now, or merely came from that place.\"");
		UcSay;
		UcMessage("\"However, I know that thou shalt need to seek out three artifacts -- a Ring, a Necklace, and an Earring.\"");
		UcSay;
		UcMessage("\"Through these ancient items, the Power shall communicate with thee. More than this, I know not.\"");
		UcSay;
		gflags[02C2] = true;
	labelFunc0363_0246:
		cmps("Xenka");
		UI_remove_answer_0D("Xenka");
		UcMessage("\"How can I explain Xenka in the short time we have? Xenka is the prophetess who receives wisdom from beyond the Void...\"");
		UcSay;
	labelFunc0363_0259:
		cmps("promised Hero");
		UI_remove_answer_0D("promised Hero");
		UcMessage("\"The land is in dire need of a Hero, for the end of the world draws nigh!\"");
		UcSay;
		UcMessage("\"There are storms which lash out with magical lightnings, and strange illnesses which plague the innocent.\"");
		UcSay;
		UcMessage("\"Lastly, there is the growing sense that something is wrong in the land...\"");
		UcSay;
		UI_add_answer_0C(["storms", "illnesses", "wrong"]);
	labelFunc0363_0284:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"The storms are one of the signs that the end of the world is at hand. I know not what causes them, or how they may be stopped.\"");
		UcSay;
		UcMessage("\"Most ships have ceased to sail, for the storms strike any vessel which leaves harbor.\"");
		UcSay;
		UcMessage("\"The lightning doth have the power to kill or to teleport, and sometimes it changes the nature of that which it strikes.\"");
		UcSay;
	labelFunc0363_029F:
		cmps("illnesses");
		UI_remove_answer_0D("illnesses");
		UcMessage("\"The prophecies mention that a plague will come among us, to sicken the meek and the innocent.\"");
		UcSay;
		UcMessage("\"Hast thou noticed the dying birds? They are only the first victims. At first the disease shall strike the wildest races, and lastly, the race of Men.\"");
		UcSay;
	labelFunc0363_02B6:
		cmps("wrong");
		UI_remove_answer_0D("wrong");
		UcMessage("\"I cannot explain further. Dost thou not feel it? The sense that something is... not right?\"");
		UcSay;
		UcMessage("\"Xenka speaks of these days as the Time of Imbalance.\"");
		UcSay;
	labelFunc0363_02CD:
		cmps("assistance");
		UI_remove_answer_0D("assistance");
		UcMessage("\"My time with thee is short, so take careful heed of mine advice --\"");
		UcSay;
		UcMessage("\"There is a cave further south by a large red bush -- its entrance is invisible. If thou canst find thy way in, it may provide more clues.\"");
		UcSay;
		UcMessage("\"Follow the coast until thou dost come to a great city. The name of the city is Monitor. An old friend of thine awaits thee there.\"");
		UcSay;
	labelFunc0363_02E8:
		cmps("aid");
		UI_remove_answer_0D("aid");
		UcMessage("\"With it, thou wilt know how long thou hast to complete thy quest before we are all doomed! And as long as the sands run within the Hourglass of Fate, we may intercede if thou art slain before thy quest is completed -- Thou wilt be resurrected on Monk Isle.\"");
		UcSay;
	labelFunc0363_02FB:
		cmps("Sands of Time");
		UI_remove_answer_0D("Sands of Time");
		UcMessage("\"Within the Hourglass of Fate lie the Sands of Time. As each grain doth fall, so doth another moment hasten us to our doom.\"");
		UcSay;
		UI_add_answer_0C("doom");
	labelFunc0363_0315:
		cmps("doom");
		UI_remove_answer_0D("doom");
		UcMessage("\"If thou dost fail in thy quest, our world will end... ripped apart by the earthquakes that will soon plague it.\"");
		UcSay;
	labelFunc0363_0328:
		cmps("bye");
		UcMessage("\"I must go now, before those who oppose me find that I have been here.\"");
		UcSay;
		var0005 = ("@Farewell!@" & "@No!@");
		Func094F(0xFF2D, var0005);
		UI_end_conversation_86();
		UI_remove_npc_face0_07();
		var0007 = UI_get_object_position_20(0xFF2D);
		var0007[0x0001] = (var0007[0x0001] + 0x000C);
		var0007[0x0002] = (var0007[0x0002] - 0x0003);
		UI_move_object_4B(0xFF31, var0007);
		UI_play_sound_effect_16(0x0051);
		UI_sprite_effect_68(0x001A, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0005 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x55, 0x0109], 0x0014);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x59, 0x32, 0x01, 0x64], 0x0007);
		var0005 = ("@Thoxa!@" & ("" & ("@Vex Ort!@" & ("@Mas Ort!@" & ("@Vex Ort!@" & ("" & "@She lives!@"))))));
		Func094F(0xFF31, var0005);
		abrt();
	labelFunc0363_0400:
		goto labelFunc0363_01BC;
	labelFunc0363_0403:
		end_conv();
		goto labelFunc0363_042F;
	labelFunc0363_0407:
		UI_set_schedule_type_25(0xFF2D, 0x0014);
		UI_clear_item_say_4E(0xFF2D);
		Func097F(0xFF2D, "@An impostor!@", 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		abrt();
	labelFunc0363_042F:
		return;
}
Func0368 0x368 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc0368_0041;
	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc0368_0041;
	UI_play_sound_effect_16(0x0061);
	UI_set_item_frame_1B(item, 0x0001);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0014, 0x55, 0x0368]);
	abrt();
	labelFunc0368_0041:
		if(!(event == 0x0002)) goto labelFunc0368_0058;
		UI_set_item_frame_1B(item, 0x0000);
		UI_play_sound_effect_16(0x00FF);
	labelFunc0368_0058:
		return;
}
// externs
extern Func088D 0x88D (var var0000, var var0001);

Func0369 0x369 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0369_001E;
	var0000 = UI_get_container_83(item);
	if(!var0000) goto labelFunc0369_0017;
	exit2();
	labelFunc0369_0017:
		Func088D(item, 0x0369);
	labelFunc0369_001E:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func083B 0x83B (var var0000);
extern var Func0994 0x994 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func036A 0x36A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0007)) goto labelFunc036A_0046;
	var0000 = UI_die_roll_17(0x0001, 0x0002);
	UI_clear_item_say_4E(item);
	if(!(var0000 == 0x0001)) goto labelFunc036A_002C;
	UI_item_say_4D(item, "@Yipe, yipe, yipe!@");
	labelFunc036A_002C:
		if(!(var0000 == 0x0002)) goto labelFunc036A_003E;
		UI_item_say_4D(item, "@Aoaaoouuu!@");
	labelFunc036A_003E:
		UI_set_attack_mode_59(item, 0x0007);
	labelFunc036A_0046:
		if(!(event == 0x0001)) goto labelFunc036A_007D;
		UI_item_say_4D(0xFE9C, "@Come here, boy!@");
		0xFEF3;
		calle();
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@Woof!@"], 0x0002);
		UI_set_schedule_type_25(0xFEF3, 0x0003);
	labelFunc036A_007D:
		if(!(event == 0x0002)) goto labelFunc036A_02E8;
		if(!(item == Func09A0(0x0005, 0x0001))) goto labelFunc036A_00B7;
		var0002 = UI_find_nearby_41(0xFE9C, 0x036A, 0x0028, 0x0000);
		if(!var0002) goto labelFunc036A_00B6;
		UI_set_schedule_type_25(var0002, 0x0009);
	labelFunc036A_00B6:
		abrt();
	labelFunc036A_00B7:
		var0003 = UI_click_on_item_3F();
		var0004 = UI_get_item_shape_18(var0003);
		var0005 = UI_get_item_frame_1A(var0003);
		var0006 = UI_get_item_quality_1C(var0003);
		UI_play_music_39(0x0012, Func09A0(0x0005, 0x0001));
		if(!((var0004 == 0x03BB) && ((var0005 == 0x0005) && (gflags[01B1] && (!gflags[0212]))))) goto labelFunc036A_0116;
		Func083B([0x0619, 0x05B9, 0x0000]);
	labelFunc036A_0116:
		if(!((var0004 == 0x0208) && (gflags[005B] && (!gflags[02E2])))) goto labelFunc036A_0158;
		gflags[0000] = true;
		if(!(Func0994() == 0x0010)) goto labelFunc036A_0149;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_0158;
	labelFunc036A_0149:
		Func083B([0x0762, 0x03E7, 0x0000]);
	labelFunc036A_0158:
		if(!((var0004 == 0x03BB) && ((var0005 == 0x0004) && (gflags[02E2] && (!gflags[0004]))))) goto labelFunc036A_01A2;
		gflags[025D] = true;
		if(!(Func0994() == 0x0018)) goto labelFunc036A_0193;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_01A2;
	labelFunc036A_0193:
		Func083B([0x0768, 0x02E3, 0x0000]);
	labelFunc036A_01A2:
		if(!((var0004 == 0x03BB) && ((var0005 == 0x0008) && (gflags[0004] && (!gflags[00D5]))))) goto labelFunc036A_01E8;
		if(!(Func0994() == 0x0000)) goto labelFunc036A_01D9;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_01E8;
	labelFunc036A_01D9:
		Func083B([0x0709, 0x05B2, 0x0000]);
	labelFunc036A_01E8:
		if(!((var0004 == 0x02B4) && ((var0005 == 0x0002) && (gflags[0004] && (!gflags[00D5]))))) goto labelFunc036A_022E;
		if(!(Func0994() == 0x0000)) goto labelFunc036A_021F;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_022E;
	labelFunc036A_021F:
		Func083B([0x0709, 0x05B2, 0x0000]);
	labelFunc036A_022E:
		if(!((var0004 == 0x01EA) && (gflags[0004] && (!gflags[00D3])))) goto labelFunc036A_026C;
		if(!(Func0994() == 0x0000)) goto labelFunc036A_025D;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_026C;
	labelFunc036A_025D:
		Func083B([0x0709, 0x05B2, 0x0000]);
	labelFunc036A_026C:
		if(!((var0004 == 0x0282) && ((var0006 == 0x003E) && (gflags[0004] && (!gflags[00D4]))))) goto labelFunc036A_02B2;
		if(!(Func0994() == 0x0000)) goto labelFunc036A_02A3;
		Func083B([Dupre, 0x0000, 0x0000]);
		goto labelFunc036A_02B2;
	labelFunc036A_02A3:
		Func083B([0x0709, 0x05B2, 0x0000]);
	labelFunc036A_02B2:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Woof woof?@"]);
		var0007 = Func0992(0x0001, 0x0000, 0x0000, false);
		UI_clear_item_say_4E(var0007);
		Func097F(var0007, "@The hound looks confused.@", 0x0004);
		abrt();
	labelFunc036A_02E8:
		if(!(event == 0x0009)) goto labelFunc036A_0432;
		UI_set_schedule_type_25(0xFEF3, 0x0009);
		UI_show_npc_face0_05(0xFEE9, 0x0000);
		UcMessage("\"Woof!\"");
		UcSay;
		UI_add_answer_0C(["trick", "track", "attack", "bye"]);
	labelFunc036A_031B:
		UcAsk;
		cmps("track");
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x036A]);
		abrt();
	labelFunc036A_0339:
		cmps("trick");
		UI_set_schedule_type_25(item, 0x0004);
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Ruff ruff ruff!@"]);
		abrt();
	labelFunc036A_035C:
		cmps("attack");
		var0003 = UI_click_on_item_3F();
		if(!((!var0003) || ((UI_get_alignment_49(var0003) == 0x0001) || (!UI_is_npc_3D(var0003))))) goto labelFunc036A_038E;
		UcMessage("\"Woof?\"");
		UcSay;
		goto labelFunc036A_040F;
	labelFunc036A_038E:
		if(!(UI_get_alignment_49(var0003) == 0x0000)) goto labelFunc036A_03B9;
		UcMessage("\"Woof.\"");
		UcSay;
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_oppressor_5E(item, var0003);
		UI_set_opponent_5B(item, var0003);
		abrt();
	labelFunc036A_03B9:
		if(!(UI_get_alignment_49(var0003) == 0x0003)) goto labelFunc036A_03E4;
		UcMessage("\"Woof!\"");
		UcSay;
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_oppressor_5E(item, var0003);
		UI_set_opponent_5B(item, var0003);
		abrt();
	labelFunc036A_03E4:
		if(!(UI_get_alignment_49(var0003) == 0x0002)) goto labelFunc036A_040F;
		UcMessage("\"Woof!!\"");
		UcSay;
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_oppressor_5E(item, var0003);
		UI_set_opponent_5B(item, var0003);
		abrt();
	labelFunc036A_040F:
		cmps("bye");
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Woof! Woof!@"]);
		UI_remove_npc_face0_07();
		abrt();
	labelFunc036A_042E:
		goto labelFunc036A_031B;
	labelFunc036A_0431:
		end_conv();
	labelFunc036A_0432:
		if(!(event == 0x000D)) goto labelFunc036A_0454;
		UI_set_schedule_type_25(item, 0x0009);
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Ruff!@"]);
	labelFunc036A_0454:
		if(!(event == 0x000E)) goto labelFunc036A_0464;
		UI_set_schedule_type_25(item, 0x0009);
	labelFunc036A_0464:
		if(!(event == 0x0000)) goto labelFunc036A_04A1;
		var0008 = UI_die_roll_17(0x0001, 0x0002);
		if(!(var0008 == 0x0001)) goto labelFunc036A_048D;
		UI_item_say_4D(0xFEF3, "@Woof!@");
	labelFunc036A_048D:
		if(!(var0008 == 0x0002)) goto labelFunc036A_04A1;
		UI_item_say_4D(0xFEF3, "@Bark!@");
	labelFunc036A_04A1:
		return;
}
Func036C 0x36C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0002)) goto labelFunc036C_00AA;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_frame_1A(item);
	if(!(var0002 == 0x0000)) goto labelFunc036C_0033;
	var0002 = 0x0000;
	goto labelFunc036C_004C;
	labelFunc036C_0033:
		if(!(var0002 == 0x0002)) goto labelFunc036C_0046;
		var0002 = 0x000A;
		goto labelFunc036C_004C;
	labelFunc036C_0046:
		var0002 = 0x0005;
	labelFunc036C_004C:
		UI_remove_item_84(item);
		var0003 = UI_create_new_object_2C(0x036C);
		if(!var0003) goto labelFunc036C_00A9;
		UI_set_item_frame_1B(var0003, var0002);
		var0004 = UI_set_item_quality_1D(var0003, var0001);
		var0004 = UI_update_last_created_2F(var0000);
		if(!var0004) goto labelFunc036C_00A9;
		var0005 = UI_execute_usecode_array_01(var0003, [0x4E, 0x58, 0x0059, 0x0B, Iolo, 0x0003, 0x58, 0x0058]);
	labelFunc036C_00A9:
		abrt();
	labelFunc036C_00AA:
		if(!(event == 0x0001)) goto labelFunc036C_00BA;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc036C_00BA:
		return;
}
Func0370 0x370 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x000D)) goto labelFunc0370_001E;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x59, 0x0002, 0x6C, 0x6B]);
	labelFunc0370_001E:
		if(!(event == 0x000E)) goto labelFunc0370_002E;
		UI_set_schedule_type_25(item, 0x000C);
	labelFunc0370_002E:
		if(!(event == 0x0007)) goto labelFunc0370_00D9;
		if(!(!gflags[00CE])) goto labelFunc0370_003E;
		abrt();
	labelFunc0370_003E:
		if(!gflags[00CF]) goto labelFunc0370_0045;
		abrt();
	labelFunc0370_0045:
		if(!(UI_get_oppressor_5C(item) == 0x0000)) goto labelFunc0370_00D9;
		if(!(UI_get_weapon_5D(0xFE9C) == 0x0326)) goto labelFunc0370_00D9;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Thou hast beaten me, vile human. I will remember this day!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0001 = UI_get_object_position_20(item);
		UI_set_schedule_type_25(item, 0x000F);
		UI_set_oppressor_5E(0xFE9C, 0x0001);
		UI_move_object_4B(item, [0x008E, 0x002E, 0x0000]);
		UI_clear_item_flag_A5(Iolo, 0x0004);
		UI_set_item_flag_A4(Iolo, 0x001E);
		UI_clear_item_flag_A5(Iolo, 0x001D);
		UI_move_object_4B(Iolo, var0001);
		UI_reduce_health_87(Iolo, 0x0037, 0x0000);
		gflags[00D2] = true;
		gflags[00D5] = true;
	labelFunc0370_00D9:
		return;
}
// externs
extern Func0919 0x919 (var var0000);
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();

Func0373 0x373 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_npc_number_47(item);
	var0001 = UI_get_npc_id_BC(item);
	if(!(var0000 == 0xFEDB)) goto labelFunc0373_0021;
	Func0919(0xFEDB);
	abrt();
	labelFunc0373_0021:
		if(!(event == 0x0008)) goto labelFunc0373_0031;
		UI_set_polymorph_B3(item, 0x01F5);
	labelFunc0373_0031:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc0373_005D;
		UI_set_schedule_type_25(item, 0x000F);
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x6C, 0x6D, 0x52, "@Master!@"]);
	labelFunc0373_005D:
		if(!(var0001 == 0x0000)) goto labelFunc0373_00FB;
		var0003 = Func0954();
		var0004 = UI_is_pc_female_6F();
		var0005 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0373_008C;
		UI_set_schedule_type_25(0x0373, 0x0003);
	labelFunc0373_008C:
		if(!(event == 0x0000)) goto labelFunc0373_00FB;
		var0006 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0006 == 0x0001)) goto labelFunc0373_00B3;
		UI_item_say_4D(item, "@To fight, these snakes!@");
	labelFunc0373_00B3:
		if(!(var0006 == 0x0002)) goto labelFunc0373_00C5;
		UI_item_say_4D(item, "@To win, if Balanced!@");
	labelFunc0373_00C5:
		if(!(var0006 == 0x0003)) goto labelFunc0373_00D7;
		UI_item_say_4D(item, "@To lose, if not in Balance!@");
	labelFunc0373_00D7:
		if(!(var0006 == 0x0004)) goto labelFunc0373_00E9;
		UI_item_say_4D(item, "@To run out of time, this fight!@");
	labelFunc0373_00E9:
		if(!(var0006 == 0x0005)) goto labelFunc0373_00FB;
		UI_item_say_4D(item, "@To lose hope, this fight!@");
	labelFunc0373_00FB:
		if(!(var0001 == 0x0001)) goto labelFunc0373_0199;
		var0003 = Func0954();
		var0004 = UI_is_pc_female_6F();
		var0005 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0373_012A;
		UI_set_schedule_type_25(0x0373, 0x0003);
	labelFunc0373_012A:
		if(!(event == 0x0000)) goto labelFunc0373_0199;
		var0006 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0006 == 0x0001)) goto labelFunc0373_0151;
		UI_item_say_4D(item, "@To seek help, for this fight!@");
	labelFunc0373_0151:
		if(!(var0006 == 0x0002)) goto labelFunc0373_0163;
		UI_item_say_4D(item, "@To risk all, a hero!@");
	labelFunc0373_0163:
		if(!(var0006 == 0x0003)) goto labelFunc0373_0175;
		UI_item_say_4D(item, "@To end world, this fight!@");
	labelFunc0373_0175:
		if(!(var0006 == 0x0004)) goto labelFunc0373_0187;
		UI_item_say_4D(item, "@To return home, these snakes!@");
	labelFunc0373_0187:
		if(!(var0006 == 0x0005)) goto labelFunc0373_0199;
		UI_item_say_4D(item, "@To fight, these snakes!@");
	labelFunc0373_0199:
		if(!(var0001 == 0x0002)) goto labelFunc0373_0237;
		var0003 = Func0954();
		var0004 = UI_is_pc_female_6F();
		var0005 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0373_01C8;
		UI_set_schedule_type_25(0x0373, 0x0003);
	labelFunc0373_01C8:
		if(!(event == 0x0000)) goto labelFunc0373_0237;
		var0006 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0006 == 0x0001)) goto labelFunc0373_01EF;
		UI_item_say_4D(item, "@To need unity, these snakes!@");
	labelFunc0373_01EF:
		if(!(var0006 == 0x0002)) goto labelFunc0373_0201;
		UI_item_say_4D(item, "@To be separate, these snakes!@");
	labelFunc0373_0201:
		if(!(var0006 == 0x0003)) goto labelFunc0373_0213;
		UI_item_say_4D(item, "@To fight, these snakes!@");
	labelFunc0373_0213:
		if(!(var0006 == 0x0004)) goto labelFunc0373_0225;
		UI_item_say_4D(item, "@To end all, this fight!@");
	labelFunc0373_0225:
		if(!(var0006 == 0x0005)) goto labelFunc0373_0237;
		UI_item_say_4D(item, "@To hope, this fight!@");
	labelFunc0373_0237:
		return;
}
// externs
extern Func09A3 0x9A3 (var var0000);

Func0375 0x375 (var var0000)
{
	var var0001;

	if(!(event == 0x0009)) goto labelFunc0375_00B1;
	UI_show_npc_face0_05(0xFED8, 0x0000);
	UcMessage("\"Avatar! How good it is to see thee! How long hath it been since we last met?\"");
	UcSay;
	UI_show_npc_face1_06(0xFE9C, 0x0000);
	UcMessage("\"Ahhhh... Errrr... Well....\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_show_npc_face0_05(0xFED8, 0x0000);
	UcMessage("\"Do not tell me that thou dost not recognize me? Come now, Avatar, it hath not been that long.\"");
	UcSay;
	UI_show_npc_face1_06(0xFE9C, 0x0000);
	UcMessage("\"Welll... Maybe...\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_show_npc_face0_05(0xFED8, 0x0000);
	UcMessage("\"It is I! Smith the Horse! Only the finest steed in all of Britannia.\"* \"Oh, I suppose thou wouldst not recognize me such as I am. This is the appearance I take here at the Realm of Dreams.\"* \"Ah, this is the life. Mine own keep, as much hay as I could want, no insects to bother me... Who could ask for more?\" *\"Where are my wits! Avatar, I have something important to tell thee. But what was it?\"");
	UcSay;
	UcMessage("\"Oh, yes! Avatar, thou must take Rudyom's wand to the Isle of the Avatar!\"* \"There thou wilt find a monolith made of blackrock that Batlin is using to create a gateway to bring the Guardian into our world!\"* \"The future of Britannia doth lie in thine hands, Avatar!\"");
	UcSay;
	UI_show_npc_face1_06(0xFE9C, 0x0000);
	UcMessage("\"Ahh, Smith, the Guardian hath been stopped. Everything is safe.\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_show_npc_face0_05(0xFED8, 0x0000);
	UcMessage("\"Oh...\" *\"I feel like I have made a mule of myself. Never mind...\" *\"Now I remember! Thou hast left Britannia and hast journeyed to the Serpent Isle in search of Batlin!\" *\"Poor Iolo, he must be distraught to have found that Gwenno left on that voyage with that fiend. I hope that thou wilt find her before that evil man doth do something to her. She, at least, hath always been kind to me.\" *\"Wait! Avatar, I do have some information thou canst use!\" *\"Batlin and his band of hired swords are waiting for thee at...\" *\"Yummie! Here comes someone with more hay...\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0000 = UI_get_object_position_20(item);
	UI_sprite_effect_68(0x0015, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(item);
	UI_play_sound_effect_16(0x004C);
	labelFunc0375_00B1:
		if(!(event == 0x0002)) goto labelFunc0375_0157;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_clear_item_flag_A5(item, 0x001D);
		var0000 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0004, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0011, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0002, 0x0003);
		UI_sprite_effect_68(0x0011, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_UNKNOWN_72();
		Func09A3(item);
	labelFunc0375_0157:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0916 0x916 ();

Func0377 0x377 (var var0000)
{
	if(!(item == Func09A0(0x0005, 0x0004))) goto labelFunc0377_0019;
	if(!(event == 0x0002)) goto labelFunc0377_0019;
	Func0916();
	labelFunc0377_0019:
		return;
}
Func0379 0x379 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0379_009C;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 == 0x0000) || ((var0000 == 0x0001) || ((var0000 == 0x0004) || (var0000 == 0x0005))))) goto labelFunc0379_0039;
	exit2();
	labelFunc0379_0039:
		var0001 = UI_create_new_object_2C(0x01B8);
		if(!var0001) goto labelFunc0379_009C;
		var0002 = UI_get_object_position_20(item);
		var0002[0x0001] = (var0002[0x0001] + 0x0003);
		var0002[0x0002] = (var0002[0x0002] + 0x0003);
		UI_set_item_frame_1B(var0001, UI_die_roll_17(0x0000, 0x0007));
		if(!UI_update_last_created_2F(var0002)) goto labelFunc0379_009C;
		UI_set_item_shape_14(item, 0x020E);
		UI_play_sound_effect2_A1(0x0041, item);
	labelFunc0379_009C:
		return;
}
Func038A 0x38A (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x000D)) goto labelFunc038A_001E;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x59, 0x0002, 0x6C, 0x6B]);
	labelFunc038A_001E:
		if(!(event == 0x000E)) goto labelFunc038A_002E;
		UI_set_schedule_type_25(item, 0x000C);
	labelFunc038A_002E:
		if(!(event == 0x0007)) goto labelFunc038A_00D9;
		if(!(!gflags[00CE])) goto labelFunc038A_003E;
		abrt();
	labelFunc038A_003E:
		if(!gflags[00CF]) goto labelFunc038A_0045;
		abrt();
	labelFunc038A_0045:
		if(!(UI_get_oppressor_5C(item) == 0x0000)) goto labelFunc038A_00D9;
		if(!(UI_get_weapon_5D(0xFE9C) == 0x0326)) goto labelFunc038A_00D9;
		UI_show_npc_face0_05(0xFEE6, 0x0000);
		UcMessage("\"Vanquished! By a mere mortal!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0001 = UI_get_object_position_20(item);
		UI_set_schedule_type_25(item, 0x000F);
		UI_set_oppressor_5E(0xFE9C, 0x0001);
		UI_move_object_4B(item, [0x008E, 0x002E, 0x0000]);
		UI_clear_item_flag_A5(Dupre, 0x0004);
		UI_move_object_4B(Dupre, var0001);
		UI_set_item_flag_A4(Dupre, 0x001E);
		UI_clear_item_flag_A5(Dupre, 0x001D);
		UI_reduce_health_87(Dupre, 0x0037, 0x0000);
		gflags[00D1] = true;
		gflags[00D3] = true;
	labelFunc038A_00D9:
		if(!(event == 0x0002)) goto labelFunc038A_00F3;
		UI_show_npc_face0_05(0xFEE6, 0x0000);
		UcMessage("\"Puny mortal!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc038A_00F3:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func09AD 0x9AD (var var0000);

Func0395 0x395 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = false;
	var0001 = UI_get_object_position_20(0xFE9C);
	var0002 = var0001[0x0001];
	var0003 = var0001[0x0002];
	if(!((var0002 > 0x0498) && ((var0002 < 0x04F8) && ((var0003 > 0x01AF) && (var0003 < 0x021F))))) goto labelFunc0395_0046;
	var0000 = true;
	labelFunc0395_0046:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFEED, 0x001D))) goto labelFunc0395_0092;
		UI_show_npc_face0_05(0xFEE8, 0x0000);
		UcMessage("\"Argh! Thou thinkest thou canst save thy precious Gwani by slaying me? Fool! Thou hast the brain of a headless!\" *\"I laugh at thee, even as I lie here dying in mine own blood. The Gwani are doomed I tell thee, doomed like a feeble rabbit in my trap, hahaha...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_clear_item_flag_A5(0xFEED, 0x001D);
		Func097F(0xFE9C, "@Taste my steel, trapper!@", 0x0001);
		UI_reduce_health_87(0xFEED, 0x0037, 0x0000);
		gflags[0263] = true;
	labelFunc0395_0092:
		if(!((event == 0x0001) && (var0000 == false))) goto labelFunc0395_00C0;
		UI_item_say_4D(0xFE9C, "@Stand fast, trapper!@");
		0x0395;
		calle();
		Func097F(0x0395, "@Thou shalt not take me!@", 0x0003);
		Func09AD(item);
	labelFunc0395_00C0:
		if(!((event == 0x0001) && var0000)) goto labelFunc0395_00F0;
		UI_item_say_4D(0xFE9C, "@Stand fast, Trapper!@");
		0x0395;
		calle();
		Func097F(0x0395, "@At last!@", 0x0003);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc0395_00F0:
		if(!(event == 0x0009)) goto labelFunc0395_01C3;
		UI_run_schedule_B7(item);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEE8, 0x0000);
		UcMessage("\"We have stalked each other long enough!\"");
		UcSay;
		UI_add_answer_0C(["Are you The Trapper?", "bye"]);
	labelFunc0395_011D:
		UcAsk;
		cmps("Are you The Trapper?");
		UI_remove_answer_0D("Are you The Trapper?");
		UcMessage("\"Forgo the pretense, I am Hazard the Trapper as thou dost know well by now.\"");
		UcSay;
		UI_add_answer_0C("Murderer!");
	labelFunc0395_013A:
		cmps("Murderer!");
		UI_remove_answer_0D("Murderer!");
		UcMessage("\"That charge is most unfair! The Gwani are merely animals! I kill them as I would a bear, or a leopard.\"* \"Their skins keep many a man warm when they venture into these icy regions. Why, I would kill a man if he dared to steal mine.\"* \"Aye, their skins are the most profitable, too.\"");
		UcSay;
		UI_add_answer_0C(["animals", "profit", "Gwani"]);
	labelFunc0395_015D:
		cmps("profit");
		UI_remove_answer_0D("profit");
		UcMessage("\"Aye, the best skins I take are those I peel from those beasts while they still live. I have not killed a Gwani before skinning it in years, and I shan't stop till the last one is gone!\"");
		UcSay;
	labelFunc0395_0170:
		cmps("animals");
		UI_remove_answer_0D("animals");
		UcMessage("\"Trapping them is too easy. 'Tis a wonder they survive out here at all! Why, they are as docile as sheep!\"* \"A leopard at least is sport. It would sever mine arm if I gave it the chance. Slaughtering the Gwani is doing them a favor.\"");
		UcSay;
		UI_add_answer_0C("Stop the killing.");
	labelFunc0395_018A:
		cmps("Gwani");
		UI_remove_answer_0D("Gwani");
		UcMessage("\"They provide me a fat living. Thou art daft to be concerned for the likes of them!\"* \"And if thou hast a plan for stopping me then I think thou shouldst leave now, lest I skin thee alive, too!\"");
		UcSay;
	labelFunc0395_019D:
		cmps("Stop the killing.");
		UcMessage("\"No one tells me what I can and cannot kill! Prepare to join thy Gwani friends on my wall, Avatar.\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc0395_01AE:
		cmps("bye");
		UcMessage("\"From the look in thine eye I can see that this is far from over. Truly this is farewell, Avatar.\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc0395_01BF:
		goto labelFunc0395_011D;
	labelFunc0395_01C2:
		end_conv();
	labelFunc0395_01C3:
		return;
}
Func03A1 0x3A1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc03A1_00AC;
	UI_close_gumps_98();
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_object_position_20(var0000);
	var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
	var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0015, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	if(!((UI_get_item_shape_18(var0000) == 0x03E6) && (UI_get_item_frame_1A(var0000) == 0x0006))) goto labelFunc03A1_00A5;
	UI_play_sound_effect_16(0x0077);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x03E6], 0x0005);
	goto labelFunc03A1_00AC;
	labelFunc03A1_00A5:
		UI_play_sound_effect_16(0x0030);
	labelFunc03A1_00AC:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func03A6 0x3A6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc03A6_02E5;
	var0000 = UI_get_item_frame_1A(item);
	if(!(Func0994() == 0x000B)) goto labelFunc03A6_0037;
	var0001 = UI_create_new_object2_2D(0x01EF, [0x0259, 0x0255, 0x0000]);
	gflags[0295] = true;
	goto labelFunc03A6_024E;
	labelFunc03A6_0037:
		var0002 = UI_get_random_00(0x0008);
		if(!(var0000 == 0x0000)) goto labelFunc03A6_014E;
		if(!(var0002 == 0x0001)) goto labelFunc03A6_006B;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0816, 0x052F, 0x0000]);
	labelFunc03A6_006B:
		if(!(var0002 == 0x0002)) goto labelFunc03A6_008B;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0258, 0x0255, 0x000E]);
	labelFunc03A6_008B:
		if(!(var0002 == 0x0003)) goto labelFunc03A6_00AB;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x02BD, 0x0687, 0x0000]);
	labelFunc03A6_00AB:
		if(!(var0002 == 0x0004)) goto labelFunc03A6_00CB;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0896, 0x054D, 0x000E]);
	labelFunc03A6_00CB:
		if(!(var0002 == 0x0005)) goto labelFunc03A6_00EB;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x02DB, 0x0554, 0x0000]);
	labelFunc03A6_00EB:
		if(!(var0002 == 0x0006)) goto labelFunc03A6_010B;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x01B0, 0x006D, 0x000E]);
	labelFunc03A6_010B:
		if(!(var0002 == 0x0007)) goto labelFunc03A6_012B;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0419, 0x0686, 0x0000]);
	labelFunc03A6_012B:
		if(!(var0002 == 0x0008)) goto labelFunc03A6_014B;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0929, 0x07C5, 0x0000]);
	labelFunc03A6_014B:
		goto labelFunc03A6_024E;
	labelFunc03A6_014E:
		if(!(var0002 == 0x0001)) goto labelFunc03A6_016E;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0507, 0x08C0, 0x0000]);
	labelFunc03A6_016E:
		if(!(var0002 == 0x0002)) goto labelFunc03A6_018E;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0896, 0x054D, 0x000E]);
	labelFunc03A6_018E:
		if(!(var0002 == 0x0003)) goto labelFunc03A6_01AE;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x05C6, 0x0998, 0x0002]);
	labelFunc03A6_01AE:
		if(!(var0002 == 0x0004)) goto labelFunc03A6_01CE;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x03C0, 0x0A1C, 0x000E]);
	labelFunc03A6_01CE:
		if(!(var0002 == 0x0005)) goto labelFunc03A6_01EE;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0965, 0x04A0, 0x000E]);
	labelFunc03A6_01EE:
		if(!(var0002 == 0x0006)) goto labelFunc03A6_020E;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x090E, 0x0889, 0x0000]);
	labelFunc03A6_020E:
		if(!(var0002 == 0x0007)) goto labelFunc03A6_022E;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x0248, 0x09B0, 0x000E]);
	labelFunc03A6_022E:
		if(!(var0002 == 0x0008)) goto labelFunc03A6_024E;
		var0001 = UI_create_new_object2_2D(0x01EF, [0x01D0, 0x04A0, 0x000E]);
	labelFunc03A6_024E:
		if(!(!var0001)) goto labelFunc03A6_0266;
		var0003 = Func0992(0x0001, "@It doesn't work!@", "@'Tis broken...@", true);
		abrt();
	labelFunc03A6_0266:
		UI_set_schedule_type_25(var0001, 0x000F);
		UI_set_item_flag_A4(var0001, 0x001D);
		UI_set_polymorph_B3(var0001, 0x00EF);
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_set_item_flag_A4(var0001, 0x0012);
		UI_set_camera_AE(var0001);
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x0636], 0x0001);
		var0004 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x03A6], 0x0032);
		abrt();
	labelFunc03A6_02E5:
		if(!(event == 0x0002)) goto labelFunc03A6_0334;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_polymorph_B3(item, 0x01EF);
		UI_set_camera_AE(0xFE9C);
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x0003);
	labelFunc03A6_0334:
		return;
}
Func03A7 0x3A7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0002)) goto labelFunc03A7_0083;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_frame_1A(item);
	if(!(var0002 <= 0x0004)) goto labelFunc03A7_0033;
	var0002 = 0x0000;
	goto labelFunc03A7_004C;
	labelFunc03A7_0033:
		if(!(var0002 >= 0x000A)) goto labelFunc03A7_0046;
		var0002 = 0x0002;
		goto labelFunc03A7_004C;
	labelFunc03A7_0046:
		var0002 = 0x0001;
	labelFunc03A7_004C:
		UI_remove_item_84(item);
		var0003 = UI_create_new_object_2C(0x03A7);
		if(!var0003) goto labelFunc03A7_0082;
		UI_set_item_frame_1B(var0003, var0002);
		var0004 = UI_set_item_quality_1D(var0003, var0001);
		var0004 = UI_update_last_created_2F(var0000);
	labelFunc03A7_0082:
		abrt();
	labelFunc03A7_0083:
		if(!(event == 0x0001)) goto labelFunc03A7_0093;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc03A7_0093:
		return;
}
Func03A8 0x3A8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0002)) goto labelFunc03A8_0083;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_frame_1A(item);
	if(!(var0002 <= 0x0004)) goto labelFunc03A8_0033;
	var0002 = 0x0000;
	goto labelFunc03A8_004C;
	labelFunc03A8_0033:
		if(!(var0002 >= 0x000A)) goto labelFunc03A8_0046;
		var0002 = 0x0002;
		goto labelFunc03A8_004C;
	labelFunc03A8_0046:
		var0002 = 0x0001;
	labelFunc03A8_004C:
		UI_remove_item_84(item);
		var0003 = UI_create_new_object_2C(0x03A8);
		if(!var0003) goto labelFunc03A8_0082;
		UI_set_item_frame_1B(var0003, var0002);
		var0004 = UI_set_item_quality_1D(var0003, var0001);
		var0004 = UI_update_last_created_2F(var0000);
	labelFunc03A8_0082:
		abrt();
	labelFunc03A8_0083:
		if(!(event == 0x0001)) goto labelFunc03A8_0093;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc03A8_0093:
		return;
}
// externs
extern var Func0983 0x983 (var var0000);

Func03B0 0x3B0 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc03B0_003E;
	if(!UI_get_item_frame_1A(item)) goto labelFunc03B0_003E;
	if(!Func0983(0xFE9C)) goto labelFunc03B0_003E;
	UI_item_say_4D(0xFE9C, "Ptui!");
	if(!(!UI_in_gump_mode_9B())) goto labelFunc03B0_003E;
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x58, 0x001E], 0x0003);
	labelFunc03B0_003E:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func03B1 0x3B1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = "he";
	if(!UI_is_pc_female_6F()) goto labelFunc03B1_001F;
	var0002 = "she";
	labelFunc03B1_001F:
		if(!(event == 0x0001)) goto labelFunc03B1_004F;
		UI_item_say_4D(0xFE9C, "@Might I speak with thee?@");
		item;
		calle();
		Func097F(item, (("@Certainly, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc03B1_004F:
		if(!(event == 0x0009)) goto labelFunc03B1_0595;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFECE, 0x0000);
		var0003 = UI_get_npc_id_BC(item);
		if(!(var0003 == false)) goto labelFunc03B1_0099;
		UI_set_npc_id_BD(item, 0x0001);
		UcMessage("\"So, thou art come as the Order Hierophant foretold. I must admit, even as dedicated as I am, I doubted that there could be another Champion of Balance.");
		UcSay;
		UcMessage("\"I am Isstanar, Commander of The Serpent's Fang and its garrison.");
		UcSay;
		UcMessage("\"Thou wilt forgive me if I remain skeptical a bit longer. One does not attain a position such as mine by being overly trusting.\"");
		UcSay;
		gflags[030D] = true;
		goto labelFunc03B1_00C9;
	labelFunc03B1_0099:
		if(!(gflags[02FC] || gflags[0313])) goto labelFunc03B1_00BB;
		UcMessage("\"I am pleased to see thee, ");
		UcMessage(var0001);
		UcMessage(".");
		UcSay;
		UcMessage("\"How might I aid the Champion of Balance in fulfilling thy duty?\"");
		UcSay;
		UI_add_answer_0C("apologize");
		goto labelFunc03B1_00C9;
	labelFunc03B1_00BB:
		UcMessage("\"I am pleased to see thee, ");
		UcMessage(var0001);
		UcMessage(". Thy continued survival does much to convince me that thou art indeed the Champion of Balance.");
		UcSay;
		UcMessage("\"How might I aid thee in fulfilling thy duty?\"");
		UcSay;
	labelFunc03B1_00C9:
		UI_add_answer_0C(["Order Hierophant", "Champion of Balance", "Serpent's Fang", "bye"]);
	labelFunc03B1_00DC:
		UcAsk;
		cmps("apologize");
		UI_remove_answer_0D("apologize");
		if(!(gflags[02FC] && (!gflags[0313]))) goto labelFunc03B1_0114;
		UcMessage("\"I am now convinced that thou art the Champion of Balance, ");
		UcMessage(var0001);
		UcMessage(". I apologize for doubting thee.");
		UcSay;
		UcMessage("\"Now that thou hast the Silver Seed, thou shouldst plant it. Our only hope is that the Tree of Balance will heal the land.");
		UcSay;
		UcMessage("\"Please, ");
		UcMessage(var0001);
		UcMessage(", I humbly ask that thee to plant it soon.\"");
		UcSay;
		goto labelFunc03B1_011C;
	labelFunc03B1_0114:
		UcMessage("\"I apologize for doubting thee, Champion of Balance.");
		UcSay;
		UcMessage("\"Although it is too late to stop the war, perhaps the Tree of Balance will speed the healing of the land's wounds after this grim business is done.\"");
		UcSay;
	labelFunc03B1_011C:
		cmps("Order Hierophant");
		UI_remove_answer_0D("Order Hierophant");
		UcMessage("\"Could it be that thou dost not know of Calithiss the Avenger and our holy crusade?");
		UcSay;
		UcMessage("\"But, if thou art the Champion of Balance, perhaps thou hast spent thy life as an Acolyte on the Isle of Crypts.");
		UcSay;
		UcMessage("\"I shall honor thy title by telling thee the tale. If art an imposter, it shall be apparent soon enough... For thou wilt never survive what lies ahead.\"");
		UcSay;
		UI_add_answer_0C(["Avenger", "holy crusade", "Isle of Crypts", "what lies ahead"]);
	labelFunc03B1_014A:
		cmps("Avenger");
		UI_remove_answer_0D("Avenger");
		UcMessage("\"Before the War of Imbalance began, Calithiss was known as the Steadfast. But after the foul murder of Ssithnos she named herself the Avenger.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["War of Imbalance", "Ssithnos", "nothing more"]);
	labelFunc03B1_0171:
		cmps("War of Imbalance");
		UI_remove_answer_0D("War of Imbalance");
		UcMessage("\"Those who served Balance were always few in number, ");
		UcMessage(var0001);
		UcMessage(". I cannot imagine how one could walk the shining path, swayed by neither Order nor Chaos. I do not see how it is humanly possible.");
		UcSay;
		UcMessage("\"But there has always been those few called to serve all Ophidians, and they followed the Great Hierophant. But followers of Chaos slew the last Great Hierophant and plunged the land into war, for there was no one to maintain Balance.\"");
		UcSay;
		UI_add_answer_0C(["shining path", "Ophidians"]);
	labelFunc03B1_019B:
		cmps("shining path");
		UI_remove_answer_0D("shining path");
		UcMessage("\"Art thou testing my knowledge, Champion of Balance? Dost thou think to find an Order warrior of my status wanting?");
		UcSay;
		UcMessage("\"I am no follower of Balance, but even I know that only the Great Hierophant may safely enter the Void to commune with the Serpents, that he walks upon a shining path to receive Their wisdom.");
		UcSay;
		UcMessage("\"All others who would venture into the Void have no path to guide them and are doomed to death for their arrogance.\"");
		UcSay;
	labelFunc03B1_01B6:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"Thy questions art most perplexing, ");
		UcMessage(var0001);
		UcMessage(".  Thou art the Champion of Balance, and yet thou dost ask about things that all people know...");
		UcSay;
		UcMessage("\"Art thou trying to discover how far we have fallen since Ssithnos perished? Then thou mayest judge Order by me, one of their ultimate warriors.");
		UcSay;
		UcMessage("\"We are Ophidians, followers of Balance, Order and, alas, Chaos. We revere the Serpents that dwell within the Void, for Theirs is the wisdom that guides us all.");
		UcSay;
		UcMessage("\"There, thou dost see that Order does not forget the teachings. That is why Order must triumph in this war. Chaos fiends killed the Great Hierophant. It is they who have fallen from the path, not Order.\"");
		UcSay;
	labelFunc03B1_01DB:
		cmps("Ssithnos");
		UI_remove_answer_0D("Ssithnos");
		UcMessage("\"Ssithnos was the last Great Hierophant. He was a holy man, ");
		UcMessage(var0001);
		UcMessage(". The wisdom of the Great Earth Serpent shone in him.");
		UcSay;
		UcMessage("\"It was my honor to meet him once when I was a young warrior, when he came to the Temple of Discipline. That was long before he met his tragic end.\"");
		UcSay;
		UI_add_answer_0C(["Great Earth Serpent", "young warrior", "Temple of Discipline"]);
	labelFunc03B1_0208:
		cmps("Great Earth Serpent");
		UI_remove_answer_0D("Great Earth Serpent");
		UcMessage("\"Why wouldst thou ask me? Thou art the Champion of Balance. How could I instruct thee in such a matter?");
		UcSay;
		UcMessage("\"But I would venture to ask thee a question, ");
		UcMessage(var0001);
		UcMessage(". Do not take this amiss, for I do not mean to disparage thee. But...");
		UcSay;
		UcMessage("\"What hope is there for thee, the Champion of Balance, to restore Balance if the Great Hierophant is dead? Without him to voice the will of the Great Earth Serpent, how canst thou hope to succeed?\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["I know not.", "All shall be revealed later.", "There is no hope."]);
	labelFunc03B1_023D:
		cmps("I know not.");
		UI_remove_answer_0D(["I know not.", "All shall be revealed later.", "There is no hope."]);
		UcMessage("\"Alas, I had hoped that thou wouldst know what was to happen. Now I do not know whether to believe that thou art not the Champion of Balance, or whether thou art simply ignorant of thy fate.");
		UcSay;
		UcMessage("\"I must consider this... It is not unusual for a warrior to be sent into battle without knowing what he shall face, but I had expected a pawn of prophecy to be more... informed.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc03B1_0261:
		cmps("All shall be revealed later.");
		UI_remove_answer_0D(["I know not.", "All shall be revealed later.", "There is no hope."]);
		UcMessage("\"Thou dost answer my question with an easy evasion. This either means that thou knowest not, or that thou wilt not tell me.");
		UcSay;
		UcMessage("\"If thou knowest not, it means that thou art either not the Champion of Balance, or that thou art ignorant of thy fate.");
		UcSay;
		UcMessage("\"If thou art not the Champion of Balance, I pity thee for thou art not long for this life. If thou art ignorant of thy fate, it is nothing to cause thee shame. Many warriors go to battle uncertain of their fate.");
		UcSay;
		UcMessage("\"If, on the other hand, thou knowest and choose not to reveal it to me, I respect thy choice. The Champion of Balance is the pawn of prophecy, and I can wait forever to learn the true answer to my question.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc03B1_028D:
		cmps("There is no hope.");
		UI_remove_answer_0D(["I know not.", "All shall be revealed later.", "There is no hope."]);
		UcMessage("\"Thou art truly worthy of the title Champion of Balance. Only a true warrior understands that duty is all that remains when hope is lost.");
		UcSay;
		UcMessage("\"I salute thee, ");
		UcMessage(var0001);
		UcMessage(", for thy path is difficult, but thy name shall be honored among warriors.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc03B1_02B7:
		cmps("young warrior");
		UI_remove_answer_0D("young warrior");
		UcMessage("\"I have not always been as thou dost see me now. I have spent a lifetime becoming worthy of this honor.\"");
		UcSay;
		UI_add_answer_0C("honor");
	labelFunc03B1_02D1:
		cmps("honor");
		UI_remove_answer_0D("honor");
		UcMessage("\"I was once flesh and blood, like thee, a warrior of Order. I was chosen to be tested shortly before the war began.\"");
		UcSay;
		UI_add_answer_0C("tested");
	labelFunc03B1_02EB:
		cmps("tested");
		UI_remove_answer_0D("tested");
		UcMessage("\"Only those warriors possessing unswerving Discipline, flawless Ethicality, and the finest Logic are selected for testing.");
		UcSay;
		UcMessage("\"Of all of those brought before the Order Hierophant, only a few hands of that number withstand the testing. Of that number, less than a hand make the final sacrifice.");
		UcSay;
		UcMessage("\"I am one of the elite... The ultimate Order warrior. I have traded my body for eternal service to Order.\"");
		UcSay;
	labelFunc03B1_0306:
		cmps("Temple of Discipline");
		UI_remove_answer_0D("Temple of Discipline");
		UcMessage("\"The Temple was once my home, ");
		UcMessage(var0001);
		UcMessage(". It was my privilege to serve as a guard for the Master of Discipline. It was there that the long road to this keep began.");
		UcSay;
		UcMessage("\"The Temple is the primary staging and training area for our efforts in this accursed war. It is the headquarters of the High Command.\"");
		UcSay;
		UI_add_answer_0C("High Command");
	labelFunc03B1_032A:
		cmps("High Command");
		UI_remove_answer_0D("High Command");
		UcMessage("\"All respect to them!");
		UcSay;
		UcMessage("\"The High Command are the highest ranking Order officers who report directly to the Order Hierophant. It is they who are charged with fulfilling the will of the Order Serpent to unite the world under the Ethicality and Discipline of Order.\"");
		UcSay;
	labelFunc03B1_0341:
		cmps("holy crusade");
		UI_remove_answer_0D("holy crusade");
		UcMessage("\"The followers of Chaos broke the Teaching and plunged the land into war. It is they who murdered the Great Hierophant. It is they who have killed thousands of peaceful followers of Order.");
		UcSay;
		UcMessage("\"The followers of Chaos must be held responsible for their crimes. There is no Great Hierophant to oversee justice, so it must fall to Order to see that the shedding of blood is met in kind until Chaos bows before Order, and Balance is restored.\"");
		UcSay;
		UI_add_answer_0C("Teaching");
	labelFunc03B1_035F:
		cmps("Teaching");
		UI_remove_answer_0D("Teaching");
		UcMessage("\"Before Ssithnos was murdered, this land thrived in Balance. Order and Chaos each knew their duty, their place within the scheme of life. Both factions were equal, held in check by the authority of the Great Hierophant.");
		UcSay;
		UcMessage("\"All people were taught that this had always been so, and must remain so. That was the will of the Great Earth Serpent, so that all people would reap the bounty of Balance's peace.");
		UcSay;
		UcMessage("\"But the Great Hierophant was murdered and now there is no peace. There is no bounty... only war and bloodshed. It was Chaos that brought us to this crossroad, and it is they who will pay.\"");
		UcSay;
	labelFunc03B1_037A:
		cmps("Isle of Crypts");
		UI_remove_answer_0D("Isle of Crypts");
		UcMessage("\"How canst thou be the Champion of Balance and not know of the Isle of Crypts?! I suspect thee to be an imposter with each question thou dost utter!");
		UcSay;
		UcMessage("\"But I have been taught that it is the duty of all people to aid a pawn of prophecy. I must hold fast to the belief that, if thou art false, thou wilt fall to a fate worse than any I could mete out.");
		UcSay;
		UcMessage("\"So I shall tell thee what little a warrior of Order knows. I hope that it instructs thee well, if thou art truly the Champion of Balance, for thou art woefully ignorant of thy duty.\"");
		UcSay;
		UI_add_answer_0C("Tell me.");
	labelFunc03B1_039C:
		cmps("Tell me.");
		UI_remove_answer_0D("Tell me.");
		UcMessage("\"The Isle of Crypts is the very heart of Balance. It is believed that the island was once the dwelling place of the Great Earth Serpent, before He journeyed into the Void to bring Balance to the universe.");
		UcSay;
		UcMessage("\"It is common knowledge that this hallowed ground is the final resting place of all the Great Hierophants... though I know not if this is true of poor Sithnos.");
		UcSay;
		UcMessage("\"It is also said that the island is the home of the Acolytes of Balance, though I would have thought that thou wouldst have known more of this than I.\"");
		UcSay;
		UI_add_answer_0C("Where is the island?");
	labelFunc03B1_03BE:
		cmps("Where is the island?");
		UI_remove_answer_0D("Where is the island?");
		UcMessage("\"Thou art most certainly not what I would have expected from the Champion of Balance. But it is not my place to judge a pawn of prophecy.");
		UcSay;
		UcMessage("\"I regret to inform thee that I do not know the exact location of the Isle of Crypts. It is somewhere in the north-west, but other than that I know not.");
		UcSay;
		UcMessage("\"I had always hoped that one day I would be able to make a pilgrimage there, but now it shall have to wait until after the war.\"");
		UcSay;
	labelFunc03B1_03D9:
		cmps("what lies ahead");
		UI_remove_answer_0D("what lies ahead");
		UcMessage("\"If thou art truly the Champion of Balance, which I begin to doubt more strongly, then thou must have the Silver Seed to restore Balance to the world.");
		UcSay;
		UcMessage("\"While I will freely tell thee that it is hidden here within this keep, I shall not tell thee where. Thou must be truly illumined before thou wilt find the Seed... *However, I shall tell thee that the magical orbs have been lost or scattered.");
		UcSay;
		UcMessage("\"It shall be up to thee to overcome the hazards of this region to obtain these orbs. If thou dost survive in these attempts, I shall be more disposed to believe that thou art the Champion of Balance.\"");
		UcSay;
		UI_add_answer_0C(["Silver Seed", "magical orbs"]);
	labelFunc03B1_0401:
		cmps("Silver Seed");
		UI_remove_answer_0D("Silver Seed");
		UcMessage("\"The Silver Seed is the acorn from the Tree of Balance. Only once every one hundred centuries does the Tree of Balance cast an acorn. It is our honor to be the keeper of the Seed.");
		UcSay;
		UcMessage("\"When the Great Hierophant was murdered, the Tree of Balance that had existed for time beyond memory withered and died. Once we have crushed Chaos, Calithiss the Avenger shall take a new name -- the Renewer, and plant the seed so that Balance may heal our land.\"");
		UcSay;
	labelFunc03B1_0418:
		cmps("magical orbs");
		UI_remove_answer_0D("magical orbs");
		UcMessage("\"I am sorry, ");
		UcMessage(var0001);
		UcMessage(". My conscious will not allow me to tell thee any more on this subject. I still cannot believe that thou art the Champion of Balance. So thou must find thy own answers. I have aided thee enough.");
		UcSay;
		UcMessage("\"The only thing I will tell thee is that thou shouldst search the areas adjacent to this keep for the orbs. They have been widely scattered... And, take care for those areas are dangerous.\"");
		UcSay;
		UI_add_answer_0C("dangerous");
	labelFunc03B1_043C:
		cmps("dangerous");
		UI_remove_answer_0D("dangerous");
		UcMessage("\"I have not been at the keep long, ");
		UcMessage(var0001);
		UcMessage(", so I cannot yet confirm any of these stories. I shall continue investigating their truth, but I see no reason why the warriors garrisoned here should lie.");
		UcSay;
		UcMessage("\"It is said that there is a dragon, and a lich, nearby. This seems unlikely, as one would usually immediately kill or drive away the other... unless they are in league in some way.");
		UcSay;
		UcMessage("\"There is also an abandoned outpost that is considered to be inhabited by creatures of Chaos. And, of course, there is the unfinished maze... from which Issik, the architect, never returned to reveal the secret of its interior.");
		UcSay;
		UcMessage("\"I am told there is a madman who dwells within one of the caverns near here. The warriors call him the Fiend. They say that he feeds on human flesh.\"");
		UcSay;
		UcMessage("\"Use caution, but I fear that thou wilt have to scour these areas in search of the orbs thou dost seek.\"");
		UcSay;
	labelFunc03B1_0465:
		cmps("Champion of Balance");
		UI_remove_answer_0D("Champion of Balance");
		UcMessage("\"Thou dost possess the lost Amulet of Balance, ");
		UcMessage(var0001);
		UcMessage(". According to legend, only the Champion of Balance may bear it... all others would perish. However, I am no Mage. I do not know if this is true.");
		UcSay;
		if(!(!gflags[0300])) goto labelFunc03B1_0493;
		UcMessage("\"It is said that the Champion will restore Balance and heal our land. As it appears that thou art this long-awaited Champion, I have something which should aid thee.\"");
		UcSay;
		UI_add_answer_0C("What is it?");
		goto labelFunc03B1_049D;
	labelFunc03B1_0493:
		UcMessage("\"I hope thou art finding the key ring to be of use, ");
		UcMessage(var0001);
		UcMessage(". Thou wilt need all the help thou canst find ere thy quest is finished.\"");
		UcSay;
	labelFunc03B1_049D:
		cmps("What is it?");
		UI_remove_answer_0D("What is it?");
		UcMessage("\"It is a key ring, ");
		UcMessage(var0001);
		UcMessage(". Although it may seem to be a paltry offering, it is no mere trinket. It is a magical item.");
		UcSay;
		UcMessage("\"Any key that thou dost put upon it will disappear. It shall never weigh more that what it does now. And if any of the keys thou didst put upon it fits a door thou wishest to open, one of the keys that thou dost see upon the keyring now will open it.");
		UcSay;
		UcMessage("\"I hope that thou shall find it useful to thee.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x01E5, 0xFE99, 0x0000, false, true);
		gflags[0300] = true;
		UI_add_answer_0C(["Who crafted it?", "Why give it to me?"]);
	labelFunc03B1_04E6:
		cmps("Who crafted it?");
		UI_remove_answer_0D("Who crafted it?");
		UcMessage("\"I know not who crafted it, ");
		UcMessage(var0001);
		UcMessage(". It is very old, and once belonged to the Order Hierophant.");
		UcSay;
		UcMessage("\"When I made the final sacrifice, Calithiss said, @Give this to ");
		UcMessage(var0002);
		UcMessage(" who shall heal our land.@");
		UcSay;
		UcMessage("\"I know now that she meant thee, Champion. How she knew that I would meet thee I shall never know. But, as always, her wisdom is infallible.\"");
		UcSay;
	labelFunc03B1_050D:
		cmps("Why give it to me?");
		UI_remove_answer_0D("Why give it to me?");
		UcMessage("\"It is said that the Champion shall need the keys to the land before Balance shall be restored. I think that this was meant symbolically, but the keyring was made for thee anyway. In this way, Order recognizes what thou shalt do for us all.\"");
		UcSay;
	labelFunc03B1_0520:
		cmps("Serpent's Fang");
		UI_remove_answer_0D("Serpent's Fang");
		UcMessage("\"Serpent's Fang is the name of this keep, ");
		UcMessage(var0001);
		UcMessage(". It was so designated because this was once the keep from which all Order attacks on Chaos were launched.");
		UcSay;
		UcMessage("\"Commander Ardiniss, who I now replace, was a brilliant tactician. He held this keep and its surroundings through some of the most bloody fighting this war has yet seen. It was during that time that the warriors began referring to the keep as DeathWatch.");
		UcSay;
		UcMessage("\"Ardiniss' loss was a sad blow as the tides of war turned. Now Serpent's Fang holds the line of retreat, not the forefront of the war, and DeathWatch has taken on another meaning... watching for the fall of Chaos.\"");
		UcSay;
	labelFunc03B1_0541:
		cmps("nothing more");
		UcMessage("\"As thou dost wish... What else shall we speak of?\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc03B1_0551:
		cmps("bye");
		if(!(gflags[02FC] || gflags[0313])) goto labelFunc03B1_056A;
		UcMessage("\"I wish thee luck in thy journeys, Champion of Balance. I am sure that thy road will be long...\"");
		UcSay;
		goto labelFunc03B1_056E;
	labelFunc03B1_056A:
		UcMessage("\"I am still unconvinced that thou art the Champion of Balance. I suppose only time will tell. Thou art free to go, but I shall be watching thee...\"");
		UcSay;
	labelFunc03B1_056E:
		UI_remove_npc_face0_07();
		UI_item_say_4D(0xFE9C, "@Farewell!@");
		Func097F(item, "@Mind thy duty!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		goto labelFunc03B1_0594;
	labelFunc03B1_0591:
		goto labelFunc03B1_00DC;
	labelFunc03B1_0594:
		end_conv();
	labelFunc03B1_0595:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0954 0x954 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08FB 0x8FB ();
extern var Func0955 0x955 ();
extern Func086B 0x86B ();
extern Func08FE 0x8FE ();
extern var Func09AE 0x9AE (var var0000);

Func03B2 0x3B2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = Func0953();
	var0001 = UI_part_of_day_48();
	var0002 = Func0954();
	var0003 = Func097D(0xFE9B, 0x0001, 0x03E4, 0xFE99, 0xFE99);
	var0004 = Func097D(0xFE9B, 0x0001, 0x03E9, 0xFE99, 0xFE99);
	var0005 = Func097D(0xFE9B, 0x0001, 0x03DE, 0xFE99, 0xFE99);
	var0006 = Func097D(0xFE9B, 0x0001, 0x0128, 0xFE99, 0x0003);
	var0007 = Func097D(0xFE9B, 0x0001, 0x03F5, 0xFE99, 0xFE99);
	if(!((var0001 > 0x0001) || (var0001 < 0x0006))) goto labelFunc03B2_0097;
	var0001 = "day";
	goto labelFunc03B2_009D;
	labelFunc03B2_0097:
		var0001 = "evening";
	labelFunc03B2_009D:
		if(!(event == 0x0001)) goto labelFunc03B2_00C5;
		UI_item_say_4D(0xFE9C, "@Greetings, sir.@");
		item;
		calle();
		Func097F(item, "@Greetings to thee.@", 0x0002);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc03B2_00C5:
		if(!(event == 0x0009)) goto labelFunc03B2_051F;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFECC, 0x0000);
		var0008 = UI_get_npc_id_BC(item);
		if(!(gflags[02FC] || gflags[0313])) goto labelFunc03B2_0107;
		UcMessage("\"Who would have thought that lowly Surok would be speaking with the Champion of Balance? I am honored.");
		UcSay;
		UcMessage("\"How may I aid thee, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		goto labelFunc03B2_0153;
	labelFunc03B2_0107:
		if(!(!var0008)) goto labelFunc03B2_0137;
		if(!(!gflags[026F])) goto labelFunc03B2_0120;
		UcMessage("\"Ah, a new face! And who art thou, stranger, that thou doth risk death by coming here to Serpent's Fang? A servant of Chaos? Hmmm... I think not.\"");
		UcSay;
		UcMessage("\"I am Surok, the Healer of Serpent's Fang and I perceive that thou art lost. Perhaps I can aid thee, if thou dost wish.\"");
		UcSay;
		goto labelFunc03B2_012C;
	labelFunc03B2_0120:
		UcMessage("\"'Tis lucky for thee that a patrol didst find thee, stranger! Thou wert unconscious and bleeding from many wounds... Ah, but I forget my manners!\"");
		UcSay;
		UcMessage("\"I am Surok, the Healer of Serpent's Fang and I didst heal thee of thy wounds.\"");
		UcSay;
		gflags[026F] = false;
	labelFunc03B2_012C:
		UI_set_npc_id_BD(item, 0x0001);
		goto labelFunc03B2_0153;
	labelFunc03B2_0137:
		if(!(!gflags[026F])) goto labelFunc03B2_0145;
		UcMessage("\"Thou dost return? Perhaps to regale me with stories of thine exploits?\"");
		UcSay;
		goto labelFunc03B2_0153;
	labelFunc03B2_0145:
		UcMessage("\"Ah, ");
		UcMessage(var0000);
		UcMessage(", thou hast awakened. Good. Thou hast been revived by mine art. Thou art able to resume thine adventures now.\"");
		UcSay;
		gflags[026F] = false;
	labelFunc03B2_0153:
		UI_add_answer_0C(["healing", "information", "bye"]);
		if(!(UI_get_array_size_73(Func08FB()) > 0x0000)) goto labelFunc03B2_017C;
		UcMessage("\"Ah, one of thy companions hath been slain. 'Tis within my power to heal thy friend if thou dost wish...\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc03B2_017C:
		var0009 = 0x0000;
		var000A = 0x0006;
	labelFunc03B2_0188:
		UcAsk;
		cmps("healing");
		UcMessage("\"Dost thou need healing?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03B2_01A3;
		Func086B();
		goto labelFunc03B2_01A7;
	labelFunc03B2_01A3:
		UcMessage("\"As thou dost wish.\"");
		UcSay;
	labelFunc03B2_01A7:
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc03B2_01B9:
		cmps("information");
		if(!((!gflags[02F4]) || (UI_get_timer_7A(0x0002) > 0x0004))) goto labelFunc03B2_01F8;
		UcMessage("\"I have been here at Serpent's Fang longer than most. Perhaps I can aid thee with information. What dost thou wish to know of?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0001;
		UI_add_answer_0C(["people", "places", "strange items", "nothing more"]);
		goto labelFunc03B2_01FC;
	labelFunc03B2_01F8:
		UcMessage("\"I must be about my duties. Perhaps we can discuss this another time, my friend.\"");
		UcSay;
	labelFunc03B2_01FC:
		cmps("people");
		UI_remove_answer_0D("people");
		UcMessage("\"There are very few of us here, ");
		UcMessage(var0002);
		UcMessage(". I can tell thee what I know, but it is not much. Whom here at Serpent's Fang dost thou wish to know of?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0002;
		UI_add_answer_0C(["Isstanar", "Elissa", "Tsandar", "Guards", "Strangers", "nothing more"]);
	labelFunc03B2_0238:
		cmps("places");
		UI_remove_answer_0D("places");
		UcMessage("\"I know of many places, ");
		UcMessage(var0002);
		UcMessage(". Which dost thou wish to know of?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0002;
		UI_add_answer_0C(["Abandoned Outpost", "The Maze", "Aram-Dol's Lair", "nothing more"]);
	labelFunc03B2_026E:
		cmps("strange items");
		UI_remove_answer_0D("strange items");
		UcMessage("\"Show me thine items, I will tell thee what I know, if anything.\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0002;
		if(!var0003) goto labelFunc03B2_0298;
		UI_add_answer_0C("Loriel's Gift");
	labelFunc03B2_0298:
		if(!var0004) goto labelFunc03B2_02A5;
		UI_add_answer_0C("Gauntlets");
	labelFunc03B2_02A5:
		if(!var0005) goto labelFunc03B2_02B2;
		UI_add_answer_0C("Axe");
	labelFunc03B2_02B2:
		if(!var0006) goto labelFunc03B2_02BF;
		UI_add_answer_0C("Ring");
	labelFunc03B2_02BF:
		if(!var0007) goto labelFunc03B2_02CC;
		UI_add_answer_0C("Helm");
	labelFunc03B2_02CC:
		UI_add_answer_0C("nothing more");
	labelFunc03B2_02D3:
		cmps("Gauntlets");
		UI_remove_answer_0D("Gauntlets");
		UcMessage("\"Hmmm... These are obviously enchanted to aid thee in the speedy deliverance of thy blows, yet I have never seen their like. They do have the look of an Order armourer, 'tis true, yet the stench of evil doth linger upon them. Thou wouldst be wise not to trust in these gloves, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_02F5:
		cmps("Axe");
		UI_remove_answer_0D("Axe");
		UcMessage("\"'Tis truly a wonderful weapon, ");
		UcMessage(var0002);
		UcMessage("! Where didst thou come by such? I do not know exactly what it does, but I am sure that thou dost use it well...\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_0317:
		cmps("Ring");
		UI_remove_answer_0D("Ring");
		UcMessage("\"Thou didst take great risk in acquiring this ring, ");
		UcMessage(var0002);
		UcMessage(". 'Tis Shal's ring itself. I would wager that thou fought many foul creatures in the Fiend's Lair... but dost thou know the true power of this ring? 'Twill allow thee to cast spells without reagents! Thou hast perhaps one of the most potent artifacts ever made!\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_0339:
		cmps("Loriel's Gift");
		UI_remove_answer_0D("Loriel's Gift");
		UcMessage("\"Why, thou dost wear the Belt of Strength! 'Twas made by Commander Ardiniss's wife, Loriel, many years ago. If I remember correctly, she made the belt from the hair of Giants and then enchanted it.  Loriel was a gifted mage, but alas, was yet another victim of this damnable war with Chaos! As thou dost wear her handiwork, thou shouldst remember her, ");
		UcMessage(var0002);
		UcMessage("...\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_035B:
		cmps("Helm");
		UI_remove_answer_0D("Helm");
		UcMessage("\"Thou dost possess the Helm of Light! 'Twas worn by Issik the Architect when he did create the Maze. Didst thou discover the secret of the Maze, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03B2_0381;
		UcMessage("\"Thou art truly the Champion of Balance! None other except Issik could navigate that Maze of Death. From my talks with Issik, the Helm will never cease giving light and the only manner of dousing it's brilliance is to cover it over or put it in a bag.\"");
		UcSay;
		goto labelFunc03B2_038B;
	labelFunc03B2_0381:
		UcMessage("\"Then how didst thou come by the Helm? Issik disappeared into his creation and never returned. *Ah, 'tis of no matter. Do not listen to the ramblings of an old man, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc03B2_038B:
		var000A = Func09AE(var000A);
	labelFunc03B2_0394:
		cmps("Isstanar");
		UI_remove_answer_0D("Isstanar");
		UcMessage("\"He is the Commander of our outpost, though he was not such a year ago. Do not cross him, ");
		UcMessage(var0000);
		UcMessage(", for he is terrible in his anger! He believes that those who have not given their lives for the cause of Order are not truly worthy. He has become the @Ultimate Warrior of Order@ and has cast his human body away to become metal. I believe that his soul has become as hardened as his exterior.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_03B6:
		cmps("Elissa");
		UI_remove_answer_0D("Elissa");
		UcMessage("\"She is our Mage. If thou hast gold enough, I am certain she would be willing to teach thee spells. Though she is young, she would like nothing better than to stay youthful -- forever.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_03D2:
		cmps("Tsandar");
		UI_remove_answer_0D("Tsandar");
		UcMessage("\"Tsandar is a friend, and I will not speak ill of him. Though I wish that he would confide in me what it is that bothers him these days. He is troubled and perhaps with good cause. I will speak no more on this subject, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_03F4:
		cmps("Guards");
		UI_remove_answer_0D("Guards");
		UcMessage("\"The Automatons that thou dost see about our Outpost are our servitors. They act as guards as thou no doubt know already, but they also serve in other ways. Cooks, tailors, blacksmiths... all of these menial tasks can be performed by our metal men.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_0410:
		cmps("Strangers");
		UI_remove_answer_0D("Strangers");
		UcMessage("\"Other than thyself, ");
		UcMessage(var0002);
		UcMessage(", there have been few that were brave enough to enter our Keep. There are three women that profess to be on the side of Order, but I doubt their word. Indeed, I believe them to be agents of Chaos, but they have not attacked us here at Serpent's Fang, and have fought the Chaos creatures that venture forth from the surrounding tunnels. They wait, but for what I am not certain.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_0432:
		cmps("Abandoned Outpost");
		UI_remove_answer_0D("Abandoned Outpost");
		UcMessage("\"Nine months ago, our Commander was Ardiniss. He led an expedition into our southwest outpost to clear it of infiltrating Chaos agents, and to set mystic traps to kill those that would surely come again. We knew that he was successful in creating the pitfalls, but he never returned. We assumed he was slain by those he sought to slay. He was a good man. If thou dost find his body in thy wanderings, 'twould be kind of thee to return him here to Serpent's Fang.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_044E:
		cmps("The Maze");
		UI_remove_answer_0D("The Maze");
		UcMessage("\"Hah! 'Twas built by an exceedingly crafty architect indeed! An item of importance was hidden there, and that is all I shall say on the matter.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_046A:
		cmps("Aram-Dol's Lair");
		UI_remove_answer_0D("Aram-Dol's Lair");
		UcMessage("\"Aram Dol is a foul thing that should be destroyed! It exists only to destroy and I fear that if our forces do not return soon, that creature of loathsome chaos will continue to test our defenses and send its unholy servants to our gate! Aram Dol is a powerful sorcerer, and controls items of great power. If thou wert to destroy this demon, I am certain that Isstanar would reward thee!\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_0486:
		cmps("Loriel's Gift");
		UI_remove_answer_0D("Loriel's Gift");
		UcMessage("\"Thou dost wear the Belt of Strength?! How didst thou come by it? It was thought lost these many months. No... no, I do not want to know, ");
		UcMessage(var0002);
		UcMessage(", though I would not show the others the Belt. They would not be as understanding as I and perhaps would demand that thou returnest it.\"");
		UcSay;
		var000A = Func09AE(var000A);
	labelFunc03B2_04A8:
		cmps("nothing more");
		if(!(var0009 == 0x0001)) goto labelFunc03B2_04C5;
		UI_pop_answers_0F();
		UcMessage("\"As thou dost wish...\"");
		UcSay;
		goto labelFunc03B2_04E4;
	labelFunc03B2_04C5:
		if(!(var0009 > 0x0001)) goto labelFunc03B2_04E0;
		UI_pop_answers_0F();
		var0009 = (var0009 - 0x0001);
		goto labelFunc03B2_04C5;
	labelFunc03B2_04E0:
		UcMessage("\"Is there anything else I can help thee with?\"");
		UcSay;
	labelFunc03B2_04E4:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, (("@Good " + var0001) + "!@"), 0x0000);
		Func097F(item, "@Be careful!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		abrt();
	labelFunc03B2_051B:
		goto labelFunc03B2_0188;
	labelFunc03B2_051E:
		end_conv();
	labelFunc03B2_051F:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0873 0x873 ();

Func03B3 0x3B3 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_npc_id_BC(item);
	var0001 = Func0953();
	if(!(event == 0x0001)) goto labelFunc03B3_004A;
	if(!(!var0000)) goto labelFunc03B3_002A;
	UI_item_say_4D(0xFE9C, "@Pardon me, Milord.@");
	goto labelFunc03B3_0034;
	labelFunc03B3_002A:
		UI_item_say_4D(0xFE9C, "@Pardon me, SubCommander.@");
	labelFunc03B3_0034:
		item;
		calle();
		Func097F(item, "@Dost thou address me?@", 0x0002);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc03B3_004A:
		if(!(event == 0x0009)) goto labelFunc03B3_0494;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFECB, 0x0000);
		if(!(!var0000)) goto labelFunc03B3_0083;
		UcMessage("\"Who art thou?! But wait -- Thou dost wear the Amulet of Balance!");
		UcSay;
		UcMessage("\"I am no lord, stranger. I am merely a warrior. Thou mayest address me by name or title. I am SubCommander Tsandar.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
		goto labelFunc03B3_00A5;
	labelFunc03B3_0083:
		if(!(gflags[02FC] || gflags[0313])) goto labelFunc03B3_009B;
		UcMessage("\"I am honored to see thee again, Champion of Balance.\"");
		UcSay;
		UI_add_answer_0C("Congratulations");
		goto labelFunc03B3_00A5;
	labelFunc03B3_009B:
		UcMessage("\"Forgive my rudeness, ");
		UcMessage(var0001);
		UcMessage(". I fear I am not yet accustomed to the title of SubCommander.\"");
		UcSay;
	labelFunc03B3_00A5:
		UI_add_answer_0C(["Train", "SubCommander", "Amulet of Balance", "bye"]);
	labelFunc03B3_00B8:
		UcAsk;
		cmps("Congratulations");
		UI_remove_answer_0D("Congratulations");
		if(!(gflags[02FC] && (!gflags[0313]))) goto labelFunc03B3_00EC;
		UcMessage("\"It took a mighty warrior to retrieve those Orbs, ");
		UcMessage(var0001);
		UcMessage(". Thou art truly worthy of carrying the Silver Seed.");
		UcSay;
		UcMessage("\"Plant it quickly, ");
		UcMessage(var0001);
		UcMessage(". It may be the only hope our battered world has of surviving this war.\"");
		UcSay;
		goto labelFunc03B3_00F4;
	labelFunc03B3_00EC:
		UcMessage("\"Now that the Tree of Balance again graces our world, perhaps we can end this war soon.");
		UcSay;
		UcMessage("\"Thou art truly the Champion of Balance.\"");
		UcSay;
	labelFunc03B3_00F4:
		cmps("Train");
		Func0873();
	labelFunc03B3_00FF:
		cmps("SubCommander");
		UI_remove_answer_0D("SubCommander");
		UcMessage("\"When I was assigned to this garrison, I was Senior File Leader. Then, nine months ago, when those Chaos fiends took Commander Ardiniss, I was was made Garrison Commander.");
		UcSay;
		UcMessage("\"Naturally, now that Isstanar is here, I have become the SubCommander.\"");
		UcSay;
		UI_add_answer_0C(["Senior File Leader", "Chaos fiends", "Commander Ardiniss", "Isstanar"]);
	labelFunc03B3_0129:
		cmps("Senior File Leader");
		UI_remove_answer_0D("Senior File Leader");
		UcMessage("\"Ones rank denotes how many warriors one is responsible for. It is always an even number of men, measured in hands -- or groups of five.\"");
		UcSay;
		UI_add_answer_0C(["rank", "even number"]);
	labelFunc03B3_0149:
		cmps("rank");
		UI_remove_answer_0D("rank");
		UcMessage("\"A Senior Warrior commands one hand of warriors, and reports to the Junior File Leader.");
		UcSay;
		UcMessage("\"A Junior File Leader is in charge of two hands of warriors, and reports to the File Leader.");
		UcSay;
		UcMessage("\"A File Leader oversees four hands of warriors, and reports to the Senior File Leader.\"");
		UcSay;
		UcMessage("\"A Senior File Leader controls ten hands of warriors, and reports to the SubCommander of the Garrison. The SubCommander acts as the aide to the Garrison Commander.\"");
		UcSay;
	labelFunc03B3_0168:
		cmps("even number");
		UI_remove_answer_0D("even number");
		UcMessage("\"Of course, even! Dost thou not have two hands? Are there not two forces continually at war within the Void -- Order and vile Chaos?");
		UcSay;
	labelFunc03B3_017B:
		cmps("Chaos fiends");
		UI_remove_answer_0D("Chaos fiends");
		UcMessage("\"Everyone knows that the followers of Chaos practice unnatural acts! By the two hands of Order, we shall wipe the Chaos abomination from the face of the land!\"");
		UcSay;
	labelFunc03B3_018E:
		cmps("Commander Ardiniss");
		UI_remove_answer_0D("Commander Ardiniss");
		UcMessage("\"Commander Ardiniss was a brave man, ");
		UcMessage(var0001);
		UcMessage(". He was responsible for carving this keep out of hostile Chaos territory.");
		UcSay;
		UcMessage("\"No warrior could match the Commander's mind for Logic. Yet even Logic is no match for the sheer number of Chaos followers that fell on us that day...");
		UcSay;
		UcMessage("\"I regret that we were unable to wrest his body from those vile murderers. Ardiniss deserved a proper warrior's funeral.\"");
		UcSay;
		UI_add_answer_0C(["What is this place?", "sheer number"]);
	labelFunc03B3_01BC:
		cmps("What is this place?");
		UI_remove_answer_0D("What is this place?");
		UcMessage("\"The Order High Command designated this keep as the Serpent's Fang. But our troops call it DeathWatch.");
		UcSay;
		UcMessage("\"The battles have long since raged beyond us. It is our sad duty to continue to hold DeathWatch from any retreating Chaos minions.");
		UcSay;
		UcMessage("\"We long for word of how the War of Imbalance turns.\"");
		UcSay;
		UI_add_answer_0C(["Order High Command", "battles"]);
	labelFunc03B3_01E4:
		cmps("Order High Command");
		UI_remove_answer_0D("Order High Command");
		UcMessage("\"All respect to them!");
		UcSay;
		UcMessage("\"The High Command are the officers that report directly to the Order Hierophant. It is their wisdom that will fulfill the will of the Order Serpent to unite the world under the Ethicality and Discipline of Order.\"");
		UcSay;
		UI_add_answer_0C(["Order Hierophant", "Order Serpent", "Ethicality", "Discipline"]);
	labelFunc03B3_020E:
		cmps("Order Hierophant");
		UI_remove_answer_0D("Order Hierophant");
		UcMessage("\"The Order Hierophant is our spiritual leader. She is the Voice of the Order Serpent. I would follow her orders even into the very face of death.");
		UcSay;
		UcMessage("\"After those... those... Chaos monsters murdered the Great Hierophant, it was only natural that command of the land fall to Order. We will make them all pay for their crime!\"");
		UcSay;
		UI_add_answer_0C("Great Hierophant");
	labelFunc03B3_022C:
		cmps("Great Hierophant");
		UI_remove_answer_0D("Great Hierophant");
		UcMessage("\"Sithnos was the last Great Hierophant, ");
		UcMessage(var0001);
		UcMessage(". He was murdered when I was but a boy, over three hands of years ago now.");
		UcSay;
		UcMessage("\"The Great Hierophant was the Voice of the Great Earth Serpent... Only the will of the Great Earth Serpent could keep the animosity of Order and Chaos at bay.");
		UcSay;
		UcMessage("\"Only the Great Hierophant's wisdom kept Balance within the land.  The last Acolytes of Balance spirited Ssithnos' body away, and the warriors of Order swore vengeance upon Chaos...");
		UcSay;
		UcMessage("\"We have been at war ever since.\"");
		UcSay;
	labelFunc03B3_0251:
		cmps("Order Serpent");
		UI_remove_answer_0D("Order Serpent");
		UcMessage("\"The Order Serpent dwells within the Void, eternally battling the Chaos Serpent. Only the strength of the Great Earth Serpent could separate these ancient enemies.");
		UcSay;
		UcMessage("\"But something happened within the Void... I know not what. The power of the Great Earth Serpent is no longer felt, and we no longer have the wisdom of Sithnos to guide us.");
		UcSay;
		UcMessage("\"Our land is doomed unless we can restore it to Order.\"");
		UcSay;
	labelFunc03B3_026C:
		cmps("Ethicality");
		UI_remove_answer_0D("Ethicality");
		UcMessage("\"Ethicality is one of the major tenets of Order, ");
		UcMessage(var0001);
		UcMessage(". By forcing those depraved followers of Chaos to conform with the accepted moral standards of Order we shall end the decadence that Tolerance has spread.\"");
		UcSay;
		UI_add_answer_0C("Tolerance");
	labelFunc03B3_028C:
		cmps("Tolerance");
		UI_remove_answer_0D("Tolerance");
		UcMessage("\"Wouldst thou allow a thief or a murderer to enter thy home, to dwell alongside thy loved ones?");
		UcSay;
		UcMessage("\"Yet this is what insanity Chaos preaches! They would have it thought that even those who practice unnatural acts must be accepted as part of the fabric of life!");
		UcSay;
		UcMessage("\"Better that such fabric be unwoven or burned!\"");
		UcSay;
	labelFunc03B3_02A7:
		cmps("Discipline");
		UI_remove_answer_0D("Discipline");
		UcMessage("\"Discipline is what gives meaning to my life! Once we have yoked the laggard followers of Chaos to the Discipline of Order, there will be peace in the land!");
		UcSay;
		UcMessage("\"It matters not if one has no Enthusiasm for one's orders. Those in command know what must be done, that is enough for a true warrior.\"");
		UcSay;
		UI_add_answer_0C("Enthusiasm");
	labelFunc03B3_02C5:
		cmps("Enthusiasm");
		UI_remove_answer_0D("Enthusiasm");
		UcMessage("\"Imagine what would happen if everyone went about doing only what they pleased, only what appealed to them! Nothing would ever work smoothly again, for there are always distasteful tasks to be performed.");
		UcSay;
		UcMessage("\"Yet the followers of Chaos feel that no one should be constrained to do anything they do not wish to do! Who then would dig latrines, or collect refuse, or bury the dead?");
		UcSay;
		UcMessage("\"The land would soon be overrun by disease and vermin!\"");
		UcSay;
	labelFunc03B3_02E0:
		cmps("battles");
		UI_remove_answer_0D("battles");
		UcMessage("\"For more than two hands of years, Order has fought only a holding battle against the forces of Chaos. Nothing we did could give us an advantage over their numbers.");
		UcSay;
		UcMessage("\"But now that we have the automatons, nothing can stand in our way! DeathWatch was situated on the spear's point in the confrontation... Now we guard the lines of retreat.");
		UcSay;
		UcMessage("\"I only wish we knew more than what Commander Isstanar had to tell us when he arrived a few weeks ago.\"");
		UcSay;
		UI_add_answer_0C(["automatons", "DeathWatch"]);
	labelFunc03B3_0308:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"Are they not a marvel?! Look at how they go about their tasks without complaint! They have no cares, no concerns... only their assigned duty.");
		UcSay;
		UcMessage("\"Since our mages discovered the way to imbue their metal bodies with life, Chaos has been without hope! With metal warriors to lead the way, victory will soon be ours!\"");
		UcSay;
	labelFunc03B3_031F:
		cmps("DeathWatch");
		UI_remove_answer_0D("DeathWatch");
		UcMessage("\"I am sorry. I should refer to the keep as the Serpent's Fang, but I think of it as DeathWatch... even so.\"");
		UcSay;
	labelFunc03B3_0332:
		cmps("sheer number");
		UI_remove_answer_0D("sheer number");
		UcMessage("\"I could not count them all, ");
		UcMessage(var0001);
		UcMessage(". They filled all the passageways.  It was all we could do to maintain our hold on the keep.\"");
		UcSay;
	labelFunc03B3_034B:
		cmps("Isstanar");
		UI_remove_answer_0D("Isstanar");
		UcMessage("\"The epitome of Order warriors, ");
		UcMessage(var0001);
		UcMessage("! Isstanar has forsaken the cares of the flesh and taken the body of an automaton!");
		UcSay;
		UcMessage("\"Eternal life and service to Order are his. It is quite an honor to have him assigned as our new Commander. I am proud that he has allowed me to become his aide.");
		UcSay;
		UcMessage("\"Perhaps one day I too will be worthy of a Commander's position... And I shall not have to make these endless circuits of a nearly empty garrison!\"");
		UcSay;
		UI_add_answer_0C("taken the body");
	labelFunc03B3_0373:
		cmps("taken the body");
		UI_remove_answer_0D("taken the body");
		UcMessage("\"I know not how it is accomplished. It is a secret closely guarded by the Order Hierophant and the High Command. Thou couldst ask Isstanar if thou dost desire, but I doubt that he will tell thee anything.");
		UcSay;
		UcMessage("\"In fact, there is a cold arrogance about him. He does not speak with any of the command unless it is in the line of duty. His commitment to Discipline is absolute, but he does little to ease our minds.\"");
		UcSay;
	labelFunc03B3_038A:
		cmps("Amulet of Balance");
		UI_remove_answer_0D("Amulet of Balance");
		UcMessage("\"Thou dost not know what thou dost wear?! Couldst thou truly be the warrior of prophecy and not know what it is that thou dost wear?");
		UcSay;
		UcMessage("\"Perhaps I should send thee to speak with Surok. He is the closest thing we have to a Keeper of Knowledge. I canst tell thee what I know, but I fear that it will do thee little good.\"");
		UcSay;
		UI_add_answer_0C(["warrior of prophecy", "Surok"]);
	labelFunc03B3_03AE:
		cmps("warrior of prophecy");
		UI_remove_answer_0D("warrior of prophecy");
		UcMessage("\"When the Great Hierophant was struck down, tales spread through the land saying that a warrior would arise to avenge the death of Sithnos.");
		UcSay;
		UcMessage("\"The Amulet thou dost wear is one that only the Champion of Balance could wear. I do not know how thou couldst wear it and live, if thou art not the chosen Champion.");
		UcSay;
		UcMessage("\"But I do not understand how thou couldst not know of thy duty, if thou art the chosen Champion. This is most perplexing... My Logic does not seem equal to the task. Speak with Isstanar or Surok.\"");
		UcSay;
		UI_add_answer_0C("Champion of Balance");
	labelFunc03B3_03D0:
		cmps("Champion of Balance");
		UI_remove_answer_0D("Champion of Balance");
		UcMessage("\"In the history of our people there were times when a group of disbelievers refused to accept the authority of the Great Hierophant.");
		UcSay;
		UcMessage("\"It would be unseemly for such a holy man to take arms against anyone. So a warrior was chosen from among the Acolytes of Balance to go forth and subdue the renegades. These warriors were without equal and never failed, no matter what the odds.\"");
		UcSay;
	labelFunc03B3_03E7:
		cmps("Surok");
		UI_remove_answer_0D("Surok");
		UcMessage("\"Surok is our healer. He is very old, and I fear that his resolve is weakening. He has not yet failed in his duty, but I have advised Isstanar to watch him closely nonetheless.");
		UcSay;
		UcMessage("\"We cannot allow any lapse in Discipline. I suspect that he has lost sight of the absolute Ethicality.\"");
		UcSay;
		UI_add_answer_0C(["resolve weakening", "lost sight"]);
	labelFunc03B3_040B:
		cmps("resolve weakening");
		UI_remove_answer_0D("resolve weakening");
		UcMessage("\"Surok has been a fearless warrior in his day, as well as a healer. It is a sign of his aging, assuredly, but he seems... well, less sure of the right of our cause.");
		UcSay;
		UcMessage("\"I hope that I die in battle, that no one may doubt my dedication to Order!\"");
		UcSay;
	labelFunc03B3_0422:
		cmps("lost sight");
		UI_remove_answer_0D("lost sight");
		UcMessage("\"We captured a Chaos monster lurking on the outskirts of the keep nearly a month ago. It was a fearsome beast -- an impossible cross between a man and a cat.");
		UcSay;
		UcMessage("\"It was my immediate thought that this creature might be Chaos' answer to our automatons. So I brought the beast to Surok to dissect.");
		UcSay;
		UcMessage("\"I have no way to prove this, of course, else I would have gone to Isstanar. But I believe that Surok was taken in with pity for the beast and allowed it to escape.");
		UcSay;
		UcMessage("\"The beast fled into the Endless Maze, and we have been unable to recapture it. I could not afford to risk any warriors to hunt it down, and we have not seen the monster again.\"");
		UcSay;
		UI_add_answer_0C("Endless Maze");
	labelFunc03B3_0448:
		cmps("Endless Maze");
		UI_remove_answer_0D("Endless Maze");
		UcMessage("\"Issik the Architect came to the keep before the start of the war. It was his duty to create an impossible maze to protect the treasures of the Order.");
		UcSay;
		UcMessage("\"But when the war started, Issik was told that he only had three months to complete the work. No one knows what became of him, for he never came out.");
		UcSay;
		UcMessage("\"The three rescuers who sought to find him never returned. The entrance to the Maze was locked... until the beast stole the key during its escape.\"");
		UcSay;
	labelFunc03B3_0463:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(item, "@Have Discipline!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		goto labelFunc03B3_0493;
	labelFunc03B3_0490:
		goto labelFunc03B3_00B8;
	labelFunc03B3_0493:
		end_conv();
	labelFunc03B3_0494:
		return;
}
// externs
extern Func09BB 0x9BB (var var0000, var var0001);

Func03B5 0x3B5 (var var0000)
{
	UI_close_gumps_98();
	Func09BB(item, event);
	return;
}
// externs
extern Func09BB 0x9BB (var var0000, var var0001);

Func03B6 0x3B6 (var var0000)
{
	if(!(UI_get_item_quality_1C(item) == 0x000A)) goto labelFunc03B6_001B;
	if(!(gflags[0174] || (gflags[0173] || gflags[0175]))) goto labelFunc03B6_001B;
	abrt();
	labelFunc03B6_001B:
		UI_close_gumps_98();
		Func09BB(item, event);
		return;
}
// externs
extern Func0916 0x916 ();
extern Func087C 0x87C ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0994 0x994 ();

Func03BB 0x3BB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc03BB_005D;
	var0000 = UI_get_readied_BE(0xFE9C, 0x0003);
	if(!(var0000 == item)) goto labelFunc03BB_005D;
	var0001 = UI_get_item_frame_1A(var0000);
	var0002 = UI_get_item_shape_18(var0000);
	if(!((var0002 == 0x03BB) && (var0001 == 0x0002))) goto labelFunc03BB_0047;
	Func0916();
	abrt();
	labelFunc03BB_0047:
		if(!((var0002 == 0x03BB) && (var0001 == 0x0009))) goto labelFunc03BB_005D;
		Func087C();
		abrt();
	labelFunc03BB_005D:
		if(!(event == 0x000A)) goto labelFunc03BB_0107;
		if(!(!gflags[02EE])) goto labelFunc03BB_00D3;
		gflags[02EE] = true;
		UI_save_pos_74(item);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		Func097F(0xFE9C, "@What?@", 0x0023);
		Func097F(0xFE9C, "@Why isn't this working?@", 0x0037);
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0004, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x0B, Dupre, 0x001E, 0x27, 0x001E, 0x55, 0x07D3]);
		goto labelFunc03BB_0107;
	labelFunc03BB_00D3:
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0002, 0x59, 0x0004, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x0B, Dupre, 0x000A, 0x55, 0x03BB]);
	labelFunc03BB_0107:
		if(!(event == 0x0002)) goto labelFunc03BB_0141;
		var0004 = Func0994();
		if(!(var0004 == 0x0020)) goto labelFunc03BB_0128;
		UI_teleport_to_saved_pos_75(item);
		abrt();
		goto labelFunc03BB_0141;
	labelFunc03BB_0128:
		UI_save_pos_74(item);
		UI_move_object_4B(0xFE9B, [0x0A87, 0x0B02, 0x0002]);
		abrt();
	labelFunc03BB_0141:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func03BD 0x3BD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_npc_id_BC(item);
	if(!(event == 0x0000)) goto labelFunc03BD_0049;
	if(!(UI_get_schedule_type_24(item) == 0x001D)) goto labelFunc03BD_0049;
	var0001 = ["@Leave Yurel alone!@", "@Stay away from Yurel!@", "@Yurel wants to go home!@", "@Oh, woe!@", "@Yurel hungry!@", "@Help me!@"];
	Func097F(item, var0001[UI_get_random_00(UI_get_array_size_73(var0001))], 0x0000);
	labelFunc03BD_0049:
		if(!(event == 0x0001)) goto labelFunc03BD_009B;
		if(!(!var0000)) goto labelFunc03BD_0065;
		UI_item_say_4D(0xFE9C, "@Stop, monster!@");
		goto labelFunc03BD_006F;
	labelFunc03BD_0065:
		UI_item_say_4D(0xFE9C, "@Ho, Yurel!@");
	labelFunc03BD_006F:
		0xFEF5;
		calle();
		if(!(!var0000)) goto labelFunc03BD_0089;
		Func097F(item, "@I am no monster!@", 0x0002);
		goto labelFunc03BD_0093;
	labelFunc03BD_0089:
		Func097F(item, "@Good to see thee.@", 0x0002);
	labelFunc03BD_0093:
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc03BD_009B:
		if(!(event == 0x0009)) goto labelFunc03BD_0375;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEC9, 0x0000);
		var0000 = UI_get_npc_id_BC(item);
		if(!(!var0000)) goto labelFunc03BD_00DC;
		UcMessage("\"I am Yurel. Yurel is no monster. Yurel means no one harm.");
		UcSay;
		UcMessage("\"Yurel wishes only to be left in peace... and to go home.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
		goto labelFunc03BD_00E0;
	labelFunc03BD_00DC:
		UcMessage("\"Have they stopped looking for monsters yet? Can Yurel go home in peace now?\"");
		UcSay;
	labelFunc03BD_00E0:
		if(!(gflags[02FA] == true)) goto labelFunc03BD_00EF;
		UI_add_answer_0C("food");
	labelFunc03BD_00EF:
		UI_add_answer_0C(["monster", "peace", "home", "bye"]);
	labelFunc03BD_0102:
		UcAsk;
		cmps("monster");
		UI_remove_answer_0D("monster");
		UcMessage("\"Yurel knows not how he came to be this way... so unlike others. Yurel has been told that he was an... experiment long ago gone wrong.");
		UcSay;
		UcMessage("\"Yurel does not care. Yurel breaths. Yurel fears. Yurel loves. That makes Yurel the same as others, though Yurel wears fur or not.\"");
		UcSay;
		UI_add_answer_0C("experiment");
	labelFunc03BD_0123:
		cmps("experiment");
		UI_remove_answer_0D("experiment");
		UcMessage("\"Yurel knows not who did such a thing, or why. The Master of Tolerance said that Chaos did not do such a thing. He said that it was those of Order.");
		UcSay;
		UcMessage("\"Yurel does not care. Yurel here now, and must find a way home. Yurel only wants to live... Do not others feel the same way?\"");
		UcSay;
		UI_add_answer_0C(["Chaos", "Order"]);
	labelFunc03BD_0147:
		cmps("Chaos");
		UI_remove_answer_0D("Chaos");
		UcMessage("\"The Master of Tolerance told Yurel that his home was a place dedicated to Chaos. Yurel was not sure what this meant. Yurel was only happy that Yurel could stay there and be useful.");
		UcSay;
		UcMessage("\"Yurel does not understand why the others hate one another. Are they not the same? They have no fur, as Yurel does. Yurel is confused... and hungry.\"");
		UcSay;
	labelFunc03BD_015E:
		cmps("Order");
		UI_remove_answer_0D("Order");
		UcMessage("\"Yurel often saw warriors of Order as Yurel went about hunting. Yurel learned quickly to avoid them, for they would beat Yurel up if they could catch Yurel.");
		UcSay;
		UcMessage("\"Now they have killed Yurel's friends. Killed the Master of Tolerance who took Yurel in. Yurel wishes they would go away. It was better before they took over.\"");
		UcSay;
	labelFunc03BD_0175:
		cmps("peace");
		UI_remove_answer_0D("peace");
		UcMessage("\"Yurel remembers peace. Yurel wishes to the end of his days without pain and fear. Yurel wishes what others wish, to see this fighting end.");
		UcSay;
		UcMessage("\"And food... Food would be good. Yurel is very hungry.\"");
		UcSay;
		UI_add_answer_0C(["fighting", "food"]);
	labelFunc03BD_0199:
		cmps("fighting");
		UI_remove_answer_0D("fighting");
		UcMessage("\"There has been fighting for a long, long time now. Something happened when Yurel was away hunting. Yurel knows not what.");
		UcSay;
		UcMessage("\"Those of Order who captured Yurel called Yurel a murderer. But Yurel has never harmed others. Yurel has hunted to bring others food. Yurel knows not why they say such things.\"");
		UcSay;
		UI_add_answer_0C("captured");
	labelFunc03BD_01B7:
		cmps("captured");
		UI_remove_answer_0D("captured");
		UcMessage("\"Warriors of Order found Yurel out hunting. They beat Yurel and dragged Yurel to the cruel place beyond these walls. They wanted to cut Yurel up... So Yurel ran away. Yurel not dumb.");
		UcSay;
		UcMessage("\"Yearl hoped that if Yurel took their ball they would be too busy looking for it to hunt for Yurel. Yurel must have been right... They have not come for Yurel yet, and Yurel still has the ball.\"");
		UcSay;
		UI_add_answer_0C("ball");
	labelFunc03BD_01D5:
		cmps("ball");
		UI_remove_answer_0D("ball");
		UcMessage("\"Yurel knows not what is so special about it. It is pretty. It sat upon a pedestal. So it must have been important.\"");
		UcSay;
	labelFunc03BD_01E8:
		cmps("food");
		UI_remove_answer_0D("food");
		if(!gflags[030E]) goto labelFunc03BD_0208;
		UcMessage("\"Yurel thanks thee for the cheese.");
		UcSay;
		UcMessage("\" Yurel loves cheese.\"");
		UcSay;
		goto labelFunc03BD_0313;
	labelFunc03BD_0208:
		UcMessage("\"Yurel is so hungry. Yurel has not had food in many days. Yurel would be willing to trade thee Yurel's ball for cheese.");
		UcSay;
		UcMessage("\"Yurel loves cheese...\"");
		UcSay;
		UcMessage("\"Dost thou have cheese thou wouldst give Yurel?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03BD_030B;
		var0002 = Func097D(0xFE9C, 0x0001, 0x0179, 0xFE99, 0x001A);
		var0003 = Func097D(0xFE9C, 0x0001, 0x0179, 0xFE99, 0x001B);
		var0004 = Func097D(0xFE9C, 0x0001, 0x0179, 0xFE99, 0x001C);
		if(!(var0002 || (var0003 || var0004))) goto labelFunc03BD_02FC;
		if(!var0002) goto labelFunc03BD_02A3;
		var0005 = UI_remove_party_items_34(0x0001, 0x0179, 0xFE99, 0x001A, 0x0012);
		UcMessage("\"Oh, Yurel is so happy! Thou art kind, kind, kind! The ball is yours... But be careful of the warriors, they are looking for it.\"");
		UcSay;
		var0005 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x01C2, 0xFE99, 0x0009, 0x0000);
		goto labelFunc03BD_02F9;
	labelFunc03BD_02A3:
		if(!var0003) goto labelFunc03BD_02C2;
		var0005 = UI_remove_party_items_34(0x0001, 0x0179, 0xFE99, 0x001B, 0x0012);
		goto labelFunc03BD_02D8;
	labelFunc03BD_02C2:
		var0005 = UI_remove_party_items_34(0x0001, 0x0179, 0xFE99, 0x001C, 0x0012);
	labelFunc03BD_02D8:
		UcMessage("\"Oh, Yurel is so happy! Thou art kind, kind, kind! The ball is yours... But be careful of the warriors, they are looking for it.\"");
		UcSay;
		var0005 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x01C2, 0xFE99, 0x0009, 0x0000);
		gflags[030E] = true;
	labelFunc03BD_02F9:
		goto labelFunc03BD_0308;
	labelFunc03BD_02FC:
		UcMessage("\"Thou dost tease Yurel! Thou dost not have cheese!");
		UcSay;
		UcMessage("\"But if thou dost find some, Yurel will still trade.\"");
		UcSay;
		gflags[02FA] = true;
	labelFunc03BD_0308:
		goto labelFunc03BD_0313;
	labelFunc03BD_030B:
		UcMessage("\"If thou dost change thy mind, Yurel will still trade.\"");
		UcSay;
		gflags[02FA] = true;
	labelFunc03BD_0313:
		cmps("home");
		UI_remove_answer_0D("home");
		UcMessage("\"Yurel's home was the Temple of Tolerance. They accepted Yurel there. Did not throw stones at Yurel. Let Yurel help, catch food for the others. Teach Yurel how to eat so as not to frighten others.");
		UcSay;
		UcMessage("\"Yurel had friends. Yurel had a safe place to sleep. Yurel worked hard and had fun. Yurel wants to go home...\"");
		UcSay;
		UI_add_answer_0C("Temple of Tolerance");
	labelFunc03BD_0331:
		cmps("Temple of Tolerance");
		UI_remove_answer_0D("Temple of Tolerance");
		UcMessage("\"The Temple of Tolerance was the home of those the others did not want. Yurel was friends with many there.");
		UcSay;
		UcMessage("\"Yurel does not care if they were not smart, or if they looked different... Yurel looks different from all others. Yurel does not understand why others turn out their own children for looking different. They look enough alike to Yurel.");
		UcSay;
		UcMessage("\"Perhaps Yurel will never know. Perhaps Yurel will never live to see home again. Yurel is lonely... and hungry.\"");
		UcSay;
	labelFunc03BD_034C:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		Func097F(item, "@Take care.@", 0x0002);
		goto labelFunc03BD_0374;
	labelFunc03BD_0371:
		goto labelFunc03BD_0102;
	labelFunc03BD_0374:
		end_conv();
	labelFunc03BD_0375:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0887 0x887 (var var0000);

Func03BE 0x3BE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x000D);
	if(!(event == 0x0001)) goto labelFunc03BE_008C;
	if(!(var0000 || gflags[02FF])) goto labelFunc03BE_004C;
	UI_si_path_run_usecode_C1(0xFE9C, UI_get_object_position_20(item), 0x000D, item, 0x03BE, true);
	UI_set_path_failure_A7([0x0400], item, 0x000E);
	goto labelFunc03BE_008C;
	labelFunc03BE_004C:
		if(!((!var0000) || (!gflags[02FF]))) goto labelFunc03BE_007B;
		var0001 = Func0992(0x0001, "@Maybe we can climb down?!@", "@Maybe I can climb down?!@", true);
		var0002 = Func0992(0x0001, "@But with what?@", 0x0000, true);
		goto labelFunc03BE_008B;
	labelFunc03BE_007B:
		var0001 = Func0992(0x0001, "@We need the rope!@", "@I need the rope!@", true);
	labelFunc03BE_008B:
		abrt();
	labelFunc03BE_008C:
		if(!((event == 0x000D) || ((event == 0x000E) || (event == 0x0002)))) goto labelFunc03BE_00A4;
		Func0887(item);
	labelFunc03BE_00A4:
		return;
}
// externs
extern Func091A 0x91A (var var0000);

Func03C0 0x3C0 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc03C0_000F;
	Func091A(0x03C0);
	abrt();
	labelFunc03C0_000F:
		var0000 = UI_get_npc_number_47(item);
		if(!((event == 0x0002) && UI_get_item_flag_A3(var0000, 0x0024))) goto labelFunc03C0_0073;
		if(!UI_get_item_flag_A3(var0000, 0x0006)) goto labelFunc03C0_0068;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x063D]);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x03C0], UI_die_roll_17(0x0064, 0x00AF));
		goto labelFunc03C0_0072;
	labelFunc03C0_0068:
		UI_clear_item_flag_A5(var0000, 0x0024);
	labelFunc03C0_0072:
		abrt();
	labelFunc03C0_0073:
		if(!((event == 0x0002) && (!UI_get_item_flag_A3(var0000, 0x0024)))) goto labelFunc03C0_00A3;
		UI_item_say_4D(item, "@Whoa. Bad shrooms.@");
		if(!(var0000 == 0xFE9C)) goto labelFunc03C0_00A3;
		UI_clear_item_flag_A5(var0000, 0x0019);
	labelFunc03C0_00A3:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func090C 0x90C (var var0000, var var0001);

Func03CA 0x3CA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc03CA_0092;
	var0000 = UI_get_npc_id_BC(item);
	if(!(var0000 < 0x0003)) goto labelFunc03CA_002A;
	UI_set_npc_id_BD(item, (var0000 + 0x0001));
	abrt();
	goto labelFunc03CA_0092;
	labelFunc03CA_002A:
		if(!(UI_die_roll_17(0x0001, 0x000A) == 0x0001)) goto labelFunc03CA_0092;
		UI_set_npc_id_BD(item, 0x0000);
		var0001 = Func0992(0x0001, "@That's baaaad!@", "@I'm baaaad!@", true);
		UI_halt_scheduled_71(item);
		UI_set_schedule_type_25(item, 0x000F);
		var0002 = [0x0001, 0x0001];
		var0003 = [0x0000, 0x0000];
		var0004 = Dupre;
		Func090D(item, var0002, var0003, var0004, 0x03CA, item, 0x000A);
	labelFunc03CA_0092:
		if(!(event == 0x000A)) goto labelFunc03CA_0169;
		var0005 = Func090C(0xFE9C, item);
		var0006 = Func090C(item, 0xFE9C);
		UI_halt_scheduled_71(0xFE9C);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		if(!UI_is_pc_female_6F()) goto labelFunc03CA_0119;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0005, 0x6E]);
		if(!(!var0001)) goto labelFunc03CA_00EB;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc03CA_00EB:
		var0001 = UI_execute_usecode_array_01(item, [0x59, var0006, 0x27, 0x0014, 0x55, 0x03CA]);
		if(!(!var0001)) goto labelFunc03CA_0116;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc03CA_0116:
		goto labelFunc03CA_0169;
	labelFunc03CA_0119:
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0005, 0x6D]);
		if(!(!var0001)) goto labelFunc03CA_013E;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc03CA_013E:
		var0001 = UI_execute_usecode_array_01(item, [0x59, var0005, 0x27, 0x0014, 0x55, 0x03CA]);
		if(!(!var0001)) goto labelFunc03CA_0169;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc03CA_0169:
		if(!(event == 0x0002)) goto labelFunc03CA_0193;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_set_schedule_type_25(item, 0x0014);
		var0001 = Func0992(0x0001, "@Thou art SICK!@", "@That felt good!@", true);
	labelFunc03CA_0193:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func09AD 0x9AD (var var0000);

Func03CF 0x3CF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func0953();
	var0001 = Func097D(0xFE9B, 0x0001, 0x0128, 0xFE99, 0x0003);
	var0002 = false;
	if(!(event == 0x0001)) goto labelFunc03CF_0047;
	UI_item_say_4D(0xFE9C, "@I would have words with thee!@");
	item;
	calle();
	Func097F(item, "@They will be thine last.@", 0x0005);
	UI_set_schedule_type_25(item, 0x0003);
	labelFunc03CF_0047:
		if(!(event == 0x0009)) goto labelFunc03CF_0370;
		UI_set_schedule_type_25(item, 0x0004);
		UI_show_npc_face0_05(0xFECF, 0x0000);
		UI_add_answer_0C(["name", "bye"]);
		var0003 = UI_get_npc_id_BC(item);
		if(!var0003) goto labelFunc03CF_00BA;
		UcMessage("\"How nice.  Thou hast returned to me.  Hast thou brought the ring?\"");
		UcSay;
		var0004 = Func0955();
		if(!(var0004 == true)) goto labelFunc03CF_00AE;
		if(!(var0001 == true)) goto labelFunc03CF_00A2;
		UcMessage("\"Excellent.  Thou hast served me well, pawn.  Alas, I shall kill thee just the same.\"");
		UcSay;
		Func09AD(item);
		abrt();
		goto labelFunc03CF_00AB;
	labelFunc03CF_00A2:
		UcMessage("\"Thou dost dare lie to me!  I shall make thee pay!\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc03CF_00AB:
		goto labelFunc03CF_00B7;
	labelFunc03CF_00AE:
		UcMessage("\"Curse thee!  I shall roast thine flesh!\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc03CF_00B7:
		goto labelFunc03CF_00C6;
	labelFunc03CF_00BA:
		UcMessage("\"Welcome, Simpleton.  Do not expect to stay long, for I am getting rather hungry and it has been months since I have eaten the flesh of a human.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
	labelFunc03CF_00C6:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am the manifestation of the horrific images of thine mind's darkest recesses!  Ha!  I am Chaos Unrestrained!  Those cowards in the keep call me the Fiend!\"");
		UcSay;
		UI_add_answer_0C(["unrestrained", "orb"]);
	labelFunc03CF_00E9:
		cmps("unrestrained");
		UI_remove_answer_0D("unrestrained");
		UcMessage("\"Fool!  Dost thou think those flimsy doors are my prison?  That the meager traps and inconsequential guards hold me here?  Nonsense!\"");
		UcSay;
		UI_add_answer_0C("Why stay?");
	labelFunc03CF_0103:
		cmps("Why stay?");
		UI_remove_answer_0D("Why stay?");
		UcMessage("\"The ring!  I am a prisoner of my former self, for without the ring I cannot right the world!\"");
		UcSay;
		UI_add_answer_0C(["former self", "ring", "right the world"]);
	labelFunc03CF_0126:
		cmps("former self");
		UI_remove_answer_0D("former self");
		UcMessage("\"Master of reagents!  Wizard beyond compare!\"");
		UcSay;
		UI_add_answer_0C("master");
	labelFunc03CF_0140:
		cmps("master");
		UI_remove_answer_0D("master");
		UcMessage("\"I do not expect thee to comprehend, simpleton!  The Ring! Creator of the Ring!\"");
		UcSay;
		if(!(!(var0002 == true))) goto labelFunc03CF_0163;
		UI_add_answer_0C("ring");
	labelFunc03CF_0163:
		cmps("ring");
		UI_remove_answer_0D("ring");
		UcMessage("\"Thou must know of the Ring of Shal.  Even the King of Fools knows of its powers.  Any idiot can see what importance it bears to my ambitions.\"");
		UcSay;
		var0002 = true;
		UI_add_answer_0C(["ambitions", "powers"]);
	labelFunc03CF_0187:
		cmps("right the world");
		UI_remove_answer_0D("right the world");
		UcMessage("\"Order is folly!  The world has blinded itself to this truth, and I shall force them to see!\"");
		UcSay;
		UI_add_answer_0C("see");
	labelFunc03CF_01A1:
		cmps("see");
		UI_remove_answer_0D("see");
		UcMessage("\"I shall bring death to the hierophants to bring Chaos and freedom.  No longer shall men weaken themselves with reason! I shall liberate the entire world!\"");
		UcSay;
	labelFunc03CF_01B4:
		cmps("ambitions");
		UI_remove_answer_0D("ambitions");
		UcMessage("\"I shall save the world.  I shall take away its order as it was taken from me.  Thus shall I show the world the truth.\"");
		UcSay;
	labelFunc03CF_01C7:
		cmps("powers");
		UI_remove_answer_0D("powers");
		UcMessage("\"Fool!  Ignoramus!  I should slay you and add your bones to my collection!  Thou knowest well the powers of the ring!  If I had the reagents to spare I would strike thee down with a spell most dire!  If I had the ring...\"");
		UcSay;
		UI_add_answer_0C("reagents");
	labelFunc03CF_01E1:
		cmps("reagents");
		UI_remove_answer_0D("reagents");
		UcMessage("\"Thou art not merely feigning stupidity, art thou?  With it on my finger, I need never use reagents, for it simulates their magical properties!  That is why I created the ring!  That is why I pledged myself to Chaos!\"");
		UcSay;
		UI_add_answer_0C("created");
	labelFunc03CF_01FB:
		cmps("created");
		UI_remove_answer_0D("created");
		UcMessage("\"Yes, you fool.  I was Shal.  But Shal had not the knowledge to create his life's goal, so he called upon greater powers than he to complete his work.  The Chaos Serpent granted him that power, but there was a price.\"");
		UcSay;
		UI_add_answer_0C(["price", "greater powers"]);
	labelFunc03CF_021B:
		cmps("greater powers");
		UI_remove_answer_0D("greater powers");
		UcMessage("\"Yes!  Greater powers!  He called to the Serpents of Order and Chaos.  He spoke with Demons.  Only the Chaos Serpent would hear him!\"");
		UcSay;
	labelFunc03CF_022E:
		cmps("price");
		UI_remove_answer_0D("price");
		UcMessage("\"Price?  He was shown the error of his ways!  It was a gift! He was granted a year's time to complete his work, at which time he would be changed...into me.  Bless the Chaos Serpent for his Wisdom!\"");
		UcSay;
		UI_add_answer_0C(["changed", "time"]);
	labelFunc03CF_024E:
		cmps("changed");
		UI_remove_answer_0D("changed");
		UcMessage("\"My dear moron, Shal was shown the wisdom of Chaos!  All traces of Order were removed from him; he became a paragon of Chaos.\"");
		UcSay;
		UI_add_answer_0C("paragon");
	labelFunc03CF_0268:
		cmps("paragon");
		UI_remove_answer_0D("paragon");
		UcMessage("\"Aye, a paragon of Chaos--me.  There were some Chaotics who said my words were those of a fanatic; that I am too extreme.  Ha!  They are all dead now.  That skeleton in the corner was Selioas; near you, Ajalsarthis. They now face the Chaos Serpent's wrath for defying me.\"");
		UcSay;
	labelFunc03CF_027B:
		cmps("time");
		UI_remove_answer_0D("time");
		UcMessage("\"The Chaos Serpent was far too generous in granting him a full year.  Had it granted him but a month, I would already have saved the world!\"");
		UcSay;
		UI_add_answer_0C("generous");
	labelFunc03CF_0295:
		cmps("generous");
		UI_remove_answer_0D("generous");
		UcMessage("\"Shal had time to hide the ring from me. He did give the ring to an animated suit of armor, with the orders to hide and guard it, even from himself.  I have not yet been able to recover it.\"");
		UcSay;
		UI_add_answer_0C(["recover", "armor"]);
	labelFunc03CF_02B5:
		cmps("armor");
		UI_remove_answer_0D("armor");
		UcMessage("\"The predecessors to automatons.  They cannot speak and can barely follow orders.  They make idiots like thyself seem intelligent.\"");
		UcSay;
		UI_add_answer_0C("orders");
	labelFunc03CF_02CF:
		cmps("orders");
		UI_remove_answer_0D("orders");
		UcMessage("\"I would not be surprised if the suit of armor forgot entirely about it.\"");
		UcSay;
		UI_add_answer_0C("forgot");
	labelFunc03CF_02E9:
		cmps("forgot");
		UI_remove_answer_0D("forgot");
		UcMessage("\"The accursed thing may have noticed it days later and thought it was a rock!  It could be in a pile of rubble!  It might still have the ring in its hand!  Curse this world!\"");
		UcSay;
	labelFunc03CF_02FC:
		cmps("recover");
		UI_remove_answer_0D("recover");
		UcMessage("\"My only thought thus far has been to see thine bones scattered across my floor, but you might yet be of use to me.  I shall let thee live if thou dost retrieve the ring and bring it to me.  Dost thou agree?\"");
		UcSay;
		var0005 = Func0955();
		if(!(var0005 == true)) goto labelFunc03CF_0325;
		UcMessage("\"Ha!  Excellent!  Go then!  Bring me the ring!  Do not betray me or I shall sate myself by killing thee slowly!\"");
		UcSay;
		abrt();
		goto labelFunc03CF_032E;
	labelFunc03CF_0325:
		UcMessage("\"Fool!  Simpleton!  Idiot!  Thou hast condemned thyself to death!\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc03CF_032E:
		cmps("bye");
		UcMessage("\"Not so fast, mealworm!  I have developed an appetite for thee!\"");
		UcSay;
		Func09AD(item);
		abrt();
	labelFunc03CF_033F:
		cmps("orb");
		UI_remove_answer_0D("orb");
		UcMessage("\"I do not possess this orb, moron, nor have I any desire to. I do, however, recall an entertaining diversion perhaps one year ago.  A crazed soldier of Chaos stole it and brought it into my domain.\"");
		UcSay;
		UI_add_answer_0C("soldier");
	labelFunc03CF_0359:
		cmps("soldier");
		UI_remove_answer_0D("soldier");
		UcMessage("\"I assume he had been discovered and, rather than face the persuasive initiates of Discipline, sought asylum in my domain.  He fell victim to one of my more flamboyant traps. I'm sure he still has the orb on his charred body!\"");
		UcSay;
	labelFunc03CF_036C:
		goto labelFunc03CF_00C6;
	labelFunc03CF_036F:
		end_conv();
	labelFunc03CF_0370:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func03D0 0x3D0 (var var0000)
{
	var var0001;

	var0000 = UI_get_item_frame_1A(item);
	if(!(var0000 == 0x0000)) goto labelFunc03D0_002D;
	UI_set_item_frame_1B(item, 0x0001);
	UI_play_sound_effect_16(0x000C);
	Func097F(Dupre, "@Take care!@", 0x0003);
	labelFunc03D0_002D:
		if(!(var0000 == 0x0001)) goto labelFunc03D0_005E;
		UI_set_item_frame_1B(item, 0x0002);
		UI_play_sound_effect_16(0x000C);
		Func097F(0xFFDB, "@Squawk!@", 0x0003);
		Func097F(Shamino, "@'Twas a wild throw.@", 0x0001);
	labelFunc03D0_005E:
		if(!(var0000 == 0x0002)) goto labelFunc03D0_0083;
		UI_set_item_frame_1B(item, 0x0003);
		Func097F(Iolo, "@Excellent shot!@", 0x0003);
		UI_play_sound_effect_16(0x000C);
	labelFunc03D0_0083:
		if(!(var0000 == 0x0003)) goto labelFunc03D0_00A1;
		UI_set_item_frame_1B(item, 0x0000);
		Func097F(0xFE9C, "@Another game?@", 0x0000);
	labelFunc03D0_00A1:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern var Func0956 0x956 (var var0000);
extern var Func0955 0x955 ();
extern Func0821 0x821 ();
extern Func0822 0x822 ();
extern Func0823 0x823 ();
extern Func0824 0x824 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func03D2 0x3D2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = UI_get_npc_id_BC(item);
	var0001 = Func0954();
	var0002 = Func0953();
	var0003 = Func0954();
	var0004 = Func0942(Iolo);
	var0005 = Func0942(Dupre);
	var0006 = Func0942(Shamino);
	var0007 = false;
	var0008 = false;
	var0009 = false;
	var000A = false;
	if(!(event == 0x0001)) goto labelFunc03D2_0059;
	item;
	calle();
	UI_set_schedule_type_25(item, 0x0003);
	labelFunc03D2_0059:
		if(!(event == 0x0009)) goto labelFunc03D2_09CF;
		UI_show_npc_face0_05(0xFECA, 0x0000);
		if(!(var0000 == false)) goto labelFunc03D2_0087;
		UcMessage("\"A human. How interesting. What dost thou want?\"");
		UcSay;
		UI_add_answer_0C(["Who art thou?", "bye"]);
		goto labelFunc03D2_00A1;
	labelFunc03D2_0087:
		UcMessage("\"Greetings, ");
		UcMessage(var0002);
		UcMessage(". How may I be of service to thee?\"");
		UcSay;
		UI_add_answer_0C(["information", "riddles", "bye"]);
	labelFunc03D2_00A1:
		UcAsk;
		cmps("Who art thou?");
		UI_remove_answer_0D("Who art thou?");
		UcMessage("\"My, what an impudent hatchling. Thou hast the gall to march into my home, walk up to my presence on thy tiny, ridiculous legs, and dare to ask my name?!\"");
		UcSay;
		UcMessage("\"I think that I shall be the one to ask the questions. We shall begin by asking thee what thou art called and why thou hast come to my domain.\"");
		UcSay;
		var000B = Func0956(["I am the Avatar", ("I am " + var0002)]);
		if(!(var000B == "I am the Avatar")) goto labelFunc03D2_00E4;
		UcMessage("\"How interesting.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
	labelFunc03D2_00E4:
		if(!(var000B == ("I am " + var0002))) goto labelFunc03D2_00FE;
		UcMessage("\"I see.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
	labelFunc03D2_00FE:
		UcMessage("\"Thou dost not look like those humans who call themselves Ophidians, but I canst smell their spore upon thee.\"");
		UcSay;
		UcMessage("\"Art thou an official envoy from Serpent's Fang?\"");
		UcSay;
		var000C = Func0955();
		if(!var000C) goto labelFunc03D2_0119;
		UcMessage("\"Hmmm. I suppose I can tolerate thy presence for a few moments.\"");
		UcSay;
		goto labelFunc03D2_011D;
	labelFunc03D2_0119:
		UcMessage("\"I thought as much! Thou dost not have that irrational look in thy eyes as do those ill-mannered Ophidians.\"");
		UcSay;
	labelFunc03D2_011D:
		UcMessage("\"Now then, why hast thou come to my domain?\"");
		UcSay;
		var000D = Func0956(["No reason", "I'm looking for something", "I'm lost"]);
		if(!(var000D == "No reason")) goto labelFunc03D2_014D;
		UcMessage("\"I see. Well then, ");
		UcMessage(var0003);
		UcMessage(" ");
		UcMessage(var0002);
		UcMessage(", it hath been many years since one of thy kind hath dared to enter my domain.\"");
		UcSay;
	labelFunc03D2_014D:
		if(!(var000D == "I'm looking for something")) goto labelFunc03D2_0166;
		UcMessage("\"Yes, well... are not we all. Ahem. I suppose that I should not bore thee with my sophomoric philosophy.\"");
		UcSay;
		UcMessage("\"Well, I won't ask thee what it is that thou are searching for. However, if thou art willing to stay a while I might be inclined to help thee find whatever it is thou dost seek.\"");
		UcSay;
		UI_add_answer_0C("help");
	labelFunc03D2_0166:
		if(!(var000D == "I'm lost")) goto labelFunc03D2_017B;
		UcMessage("\"I'm sorry to hear that. I myself rarely venture far from my domain.\"");
		UcSay;
		UI_add_answer_0C("rarely");
	labelFunc03D2_017B:
		UcMessage("\"Now that I know something about thee, it is only fair that I tell thee that my name is Draxinar. My friends, however, call me 'Stumpy'.\"");
		UcSay;
		UcMessage("\"If thou dost desire to stay for a while I shall not prevent thee. Indeed, thy company would be most welcome.\"");
		UcSay;
		UcMessage("\"And perhaps if thou art willing, I shall puzzle thee with my riddles.\"");
		UcSay;
		UcMessage("\"Now then, how may I help thee?\"");
		UcSay;
		UI_add_answer_0C(["riddles", "information", "company", "Stumpy?"]);
	labelFunc03D2_019E:
		cmps("riddles");
		UI_push_answers_0E();
		UI_remove_answer_0D("riddles");
		if(!var0007) goto labelFunc03D2_01BE;
		UcMessage("\"As I have said before, I am very good at riddles. Art thou sure that thou doth want to play?\"");
		UcSay;
		goto labelFunc03D2_01C6;
	labelFunc03D2_01BE:
		UcMessage("\"I don't like to boast, but I daresay there is no better riddlemaster than myself! Art thou sure thou doth want to play?\"");
		UcSay;
		var0007 = true;
	labelFunc03D2_01C6:
		if(!Func0955()) goto labelFunc03D2_02B4;
		if(!((!gflags[0309]) && ((!gflags[030A]) && ((!gflags[030B]) && (!gflags[030C]))))) goto labelFunc03D2_01ED;
		UcMessage("\"Excellent! We shall start with a simple riddle.\"");
		UcSay;
		UcMessage("\"If thou dost answer it correctly I shall give thee a more dificult riddle.\"");
		UcSay;
		Func0821();
	labelFunc03D2_01ED:
		if(!(gflags[0309] && ((!gflags[030A]) && ((!gflags[030B]) && (!gflags[030C]))))) goto labelFunc03D2_021D;
		UcMessage("\"Thou didst solve my first riddle. Shall I tell thee a slightly more dificult riddle?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_0212;
		Func0822();
		goto labelFunc03D2_021D;
	labelFunc03D2_0212:
		UcMessage("\"So be it. Perhaps thou wilt enjoy a riddle later.\"");
		UcSay;
		UI_add_answer_0C("bye");
	labelFunc03D2_021D:
		if(!(gflags[0309] && (gflags[030A] && ((!gflags[030B]) && (!gflags[030C]))))) goto labelFunc03D2_024C;
		UcMessage("\"Thou didst solve my first two riddles. Dost thou want to hear another riddle?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_0241;
		Func0823();
		goto labelFunc03D2_024C;
	labelFunc03D2_0241:
		UcMessage("\"So be it. Perhaps thou wilt enjoy a riddle later.\"");
		UcSay;
		UI_add_answer_0C("bye");
	labelFunc03D2_024C:
		if(!(gflags[0309] && (gflags[030A] && (gflags[030B] && (!gflags[030C]))))) goto labelFunc03D2_0277;
		UcMessage("\"Thou hath solved my first three riddles. Doth thou wish to try a more dificult one?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_0273;
		UcMessage("\"Very well. See if thou canst solve my last riddle!\"");
		UcSay;
		Func0824();
		goto labelFunc03D2_0277;
	labelFunc03D2_0273:
		UcMessage("\"So be it. Perhaps thou wilt enjoy a riddle later.\"");
		UcSay;
	labelFunc03D2_0277:
		if(!(gflags[0309] && (gflags[030A] && (gflags[030B] && gflags[030C])))) goto labelFunc03D2_02B1;
		UcMessage("\"Thou hath solved all of mine riddles. Doth thou wish to hear them again?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_02AD;
		UcMessage("\"As thy wish. I shall start again with Rhys...\"");
		UcSay;
		gflags[0309] = false;
		gflags[030A] = false;
		gflags[030B] = false;
		gflags[030C] = false;
		Func0821();
		goto labelFunc03D2_02B1;
	labelFunc03D2_02AD:
		UcMessage("\"I understand perfectly. Why wouldst thou, who hast already solved my riddles, want to hear them again?\"");
		UcSay;
	labelFunc03D2_02B1:
		goto labelFunc03D2_02BF;
	labelFunc03D2_02B4:
		UcMessage("\"That is unfortunate. I had hoped to stump thee with my riddles. Later, perhaps, thou wilt change thy mind.\"");
		UcSay;
		UI_add_answer_0C("bye");
	labelFunc03D2_02BF:
		UI_pop_answers_0F();
	labelFunc03D2_02C3:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"And what dost thou wish to know?\"");
		UcSay;
		UI_add_answer_0C(["people", "places", "things"]);
	labelFunc03D2_02E6:
		cmps("Stumpy?");
		UI_remove_answer_0D("Stumpy?");
		if(!(var0008 == true)) goto labelFunc03D2_034B;
		UcMessage("\"As thou hast probably guessed by now, my friends started calling me 'Stumpy' because I loved to stump them with my riddles.\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_0348;
		var000F = "@That is one of the worst nicknames I have ever
						heard!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc03D2_0348:
		goto labelFunc03D2_034F;
	labelFunc03D2_034B:
		UcMessage("\"Tis my nickname. Perhaps when I know thee better, I shall tell thee the reason I was given this nickname...\"");
		UcSay;
	labelFunc03D2_034F:
		cmps("company");
		UI_remove_answer_0D("company");
		UcMessage("\"It hath been years since I last talked with anyone. Thou wouldst not believe how lonely the life of a dragon can be.\"");
		UcSay;
		UI_add_answer_0C("lonely");
	labelFunc03D2_0369:
		cmps("lonely");
		UI_remove_answer_0D("lonely");
		UcMessage("\"Everyone fears us. Dragons, that is. In the process of defending myself from countless attacks I have killed many men. Those who have come before thee let their weapons do the talking.\"");
		UcSay;
	labelFunc03D2_037C:
		cmps("help");
		UI_remove_answer_0D("help");
		UcMessage("\"Indeed. I know that I do not look it, but I am several centuries old. Although I have lived in this area a mere dozen decades, I have managed to learn quite a few things...\"");
		UcSay;
	labelFunc03D2_038F:
		cmps("rarely");
		UI_remove_answer_0D("rarely");
		UcMessage("\"My cave hast grown comfortable. I see little reason to traipse about the hinterlands like some hatchling, especially when one considers the many hazards in this area.\"");
		UcSay;
		UI_add_answer_0C("hazards");
	labelFunc03D2_03A9:
		cmps("hazards");
		UI_remove_answer_0D("hazards");
		if(!(var0009 == true)) goto labelFunc03D2_03CE;
		UcMessage("\"I have already mentioned the Opidian civil war, but I don't think thou art aware of the the liche known as Aram-Dol.\"");
		UcSay;
		UI_add_answer_0C("Aram-Dol");
		goto labelFunc03D2_03DF;
	labelFunc03D2_03CE:
		UcMessage("\"Truly thou art not from these parts if thou art not aware of the civil war the Ophidians wage against each other, or the perils of Aram-Dol's domain!\"");
		UcSay;
		UI_add_answer_0C(["civil war", "Aram-Dol"]);
	labelFunc03D2_03DF:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"Yes, I have heard of these people and I don't particularly care for them.\"");
		UcSay;
		UI_add_answer_0C("don't care for them");
	labelFunc03D2_03F9:
		cmps("The Fiend");
		UI_remove_answer_0D("The Fiend");
		UcMessage("\"I have heard a tale about a mad human who is known as 'The Fiend'. Apparently he is very dangerous.\"");
		UcSay;
		UcMessage("\"Doesn't it strike	thee as odd that the most evil creatures in these caverns are humans?\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_0463;
		var000F = "@I suppose there has never been a dragon that was evil, eh?!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@Bloody Wyrm!@", 0x0000);
	labelFunc03D2_0463:
		cmps("civil war");
		UI_remove_answer_0D("civil war");
		if(!(var0009 == true)) goto labelFunc03D2_0493;
		UcMessage("\"I have mentioned this war to thee already. Shall I repeat what I said?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_0490;
		UcMessage("\"Very well.\"");
		UcSay;
		UcMessage("\"The tribe of humans known as the Ophidians wage war upon one another. I do not know much about these humans.\"");
		UcSay;
		UcMessage("\"They seem to worship the powers of Order and Chaos.\"");
		UcSay;
	labelFunc03D2_0490:
		goto labelFunc03D2_049B;
	labelFunc03D2_0493:
		UcMessage("\"Aye. The tribe of humans known as the Ophidians wage war upon one another. I do not know much about these humans. They seem to worship the powers of Order and Chaos.\"");
		UcSay;
		var0009 = true;
	labelFunc03D2_049B:
		cmps("Aram-Dol");
		UI_remove_answer_0D("Aram-Dol");
		if(!(var000A == true)) goto labelFunc03D2_0536;
		UcMessage("\"I have already told described the liche to thee. Shall I tell thee about the liche again?\"");
		UcSay;
		if(!Func0955()) goto labelFunc03D2_052F;
		UcMessage("\"A more evil or cunning creature thou wilt not find! Fortunately, the liche rarely ventures from its lair.");
		UcSay;
		UcMessage("\"If thou art fond of thy life I would advise against venturing into Aram-Dol's domain.\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_0517;
		var000F = "@The Avatar has fought the undead before and triumphed!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@<PCName> is not afraid!@", 0x0000);
	labelFunc03D2_0517:
		UcMessage("\"Aram-Dol is not easily reached. The liche hath surrounded his lair with many creatures.\"");
		UcSay;
		UcMessage("\"If I were thee, I would avoid his domain... Although, I have heard that the liche possesses two fabulous treasures.\"");
		UcSay;
		UI_add_answer_0C(["fabulous treasures", "creatures"]);
		goto labelFunc03D2_0533;
	labelFunc03D2_052F:
		UcMessage("\"Very well. What shall we discuss next?\"");
		UcSay;
	labelFunc03D2_0533:
		goto labelFunc03D2_0599;
	labelFunc03D2_0536:
		UcMessage("\"A more evil or cunning creature thou wilt not find! Fortunately, the liche rarely ventures from its lair.");
		UcSay;
		UcMessage("\"If thou art fond of thy life I would advise against venturing into Aram-Dol's domain.\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_0591;
		var000F = "@The Avatar has fought the undead before and triumphed!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@<PCName> is not afraid!@", 0x0000);
	labelFunc03D2_0591:
		UcMessage("\"Aram-Dol is not easily reached. The liche hath surrounded his lair with many creatures.\"");
		UcSay;
		UcMessage("\"If I were thee, I would avoid his domain... Although, I have heard that the liche possesses two fabulous treasures.\"");
		UcSay;
	labelFunc03D2_0599:
		UI_add_answer_0C(["fabulous treasures", "creatures"]);
	labelFunc03D2_05A6:
		cmps("Longtooth");
		UI_remove_answer_0D("Longtooth");
		UcMessage("\"Longtooth is my aunt's son. A sorrier	dragon thou shalt never find! Of course, what happened to him was not his fault.\"");
		UcSay;
		UI_add_answer_0C("what happened?");
	labelFunc03D2_05C0:
		cmps("what happened?");
		UI_remove_answer_0D("what happened?");
		UcMessage("\"Longtooth was once smart, handsome, and very fierce. Many hatchlings looked up to Longtooth, and many females wanted to mate with him. Then one day some iron-plated human warrior came along and tried to kill him.\"");
		UcSay;
		UcMessage("\"Longtooth thought the idea of a human challenging him, a prime example of dragonkind, was funny. So Longtooth obliged the human and the fight began.\"");
		UcSay;
		UcMessage("\"What my cousin was not aware of was that the human had friends who were hiding. When Longtooth had the warrior pinned, the jackals struck from ambush. Longtooth managed to escape, but he's never been the same since.\"");
		UcSay;
		UcMessage("\"Why, he can't even out riddle a goblin!\"");
		UcSay;
	labelFunc03D2_05DF:
		cmps("fabulous treasures");
		UI_remove_answer_0D("fabulous treasures");
		UcMessage("\"One of these treasures, I have heard tell, is a weapon -- an axe, I believe -- of unimagineable power. The other treasure is a pair of gauntlets that purportedly once belonged to some thief known	as 'Karas the Quick'.\"");
		UcSay;
		UcMessage("\"I have not heard what power the gauntlets possess.\"");
		UcSay;
	labelFunc03D2_05F6:
		cmps("creatures");
		UI_remove_answer_0D("creatures");
		UcMessage("\"The liche uses dead humans that he has reanimated as guardians. To reach Aram-Dol, one must traverse a veritable gauntlet of undead creatures.\"");
		UcSay;
		UcMessage("\"There are also the abominations called the 'Arachnians'.\"");
		UcSay;
		UI_add_answer_0C("Arachnians");
	labelFunc03D2_0614:
		cmps("Arachnians");
		UI_remove_answer_0D("Arachnians");
		UcMessage("\"In years past, Aram-Dol took many humans as prisoners. By means of the blackest sorcery, Aram-Dol fused the torsos of men with the bulbous bodies of giant spiders.\"");
		UcSay;
		UcMessage("\"These creatures are fiercesome fighters. They are cunning and evil. Pray to whatever gods thou doth worship if thou art caught by the Arachnians. They eat their prey alive...\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_067E;
		var000F = "@By the virtues! Such foul creatures should be exterminated!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@Eaten alive. Yuch!@", 0x0000);
	labelFunc03D2_067E:
		cmps("treasure");
		UI_remove_answer_0D("treasure");
		UcMessage("\"It hath been many years since one of thy kind ventured into my domain. Those who came before thought they could slay me with their bits of iron and steal my tresure!");
		UcSay;
		UcMessage("\"They were wrong. They paid for their foolishness and greed with their lives.\"");
		UcSay;
		UcMessage("\"Aye, tis true. I have a treasure. What self-respecting dragon doesn't have a treasure horde?\"");
		UcSay;
		UcMessage("\"Of course, there is my aunt's son Longtooth. A sorrier dragon thou shalt never find! Of course, what happened to him was not his fault.\"");
		UcSay;
		UI_add_answer_0C("Longtooth");
	labelFunc03D2_06A4:
		cmps("people");
		UI_remove_answer_0D("people");
		UcMessage("\"People! Hrrmphh. Thou dost realize, I hope, that not every sentient creature likes to be characterized in human terminology.\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_070A;
		var000F = "@Thou art an insufferable wyrm!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@What arrogance!@", 0x0000);
	labelFunc03D2_070A:
		UcMessage("\"To answer thy question, however, I know, or have heard of, many 'people'. Who, in particular, wert thou interested in?\"");
		UcSay;
		UI_add_answer_0C(["Ophidians", "The Fiend", "Aram-Dol", "Longtooth"]);
	labelFunc03D2_0721:
		cmps("not human");
		UI_remove_answer_0D("not human");
		UcMessage("\"Aye. This new commander is some sort of magical construct. I believe the Ophidians call these creatures 'automatons'. I daresay that it is probably an improvement...\"");
		UcSay;
		UI_add_answer_0C("automatons");
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Shamino) || (var000E == Dupre)))) goto labelFunc03D2_078E;
		var000F = "@Now see here! There is no cause to be insulting!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		Func097F(var000E, "@Insolent dragon!@", 0x0000);
	labelFunc03D2_078E:
		if(!(var000E == 0xFFE4)) goto labelFunc03D2_07B5;
		var000F = "@I'll take that as a compliment!@";
		var000E = Func0992(var000E, var000F, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc03D2_07B5:
		cmps("places");
		UI_remove_answer_0D("places");
		UcMessage("\"What place art thou interested in?\"");
		UcSay;
		UI_add_answer_0C(["Serpent's Fang", "The Maze", "home"]);
	labelFunc03D2_07D8:
		cmps("home");
		UI_remove_answer_0D("home");
		UcMessage("\"I am quite familiar with my own cave, although I doubt that thou wouldst find it quite as charming as I do...\" Art thou really interested in learning about my humble domicile?\"");
		UcSay;
		var0010 = Func0955();
		if(!var0010) goto labelFunc03D2_080D;
		UcMessage("\"Thou art a most unusual human.\"");
		UcSay;
		UcMessage("\"I moved to this cave one hundred and twelve years ago. It was not	easy finding the perfect cave -- I have my standards, afterall. And thou wouldst not believe how dificult it is to find a good cave.\"");
		UcSay;
		UcMessage("\"Anyway, I had spent weeks searching and was about to give up the search when, quite by accident, I wandered into this cavern.\"");
		UcSay;
		UI_add_answer_0C("cavern");
		goto labelFunc03D2_0811;
	labelFunc03D2_080D:
		UcMessage("\"I understand. I can not blame thee for not being interested. It is not a particularly fascinating topic.\"");
		UcSay;
	labelFunc03D2_0811:
		cmps("Serpent's Fang");
		UI_remove_answer_0D("Serpent's Fang");
		UcMessage("\"Serpent's Fang is what the Ophidians call that Keep of theirs. I don't really know much about the place except that the commander of the few humans that are left is not human.\"");
		UcSay;
		UcMessage("\"Frankly, I do not	care to know much about that place.\"");
		UcSay;
		UcMessage("\"As long as those humans stay out of my domain I shall reciprocate by not trespassing upon theirs.\"");
		UcSay;
		UI_add_answer_0C("not human");
	labelFunc03D2_0833:
		cmps("things");
		UI_remove_answer_0D("things");
		UcMessage("\"My goodness! Thou art a curious one! I suppose that I should inform thee of the numerous hazards that are found within our subterranean realm.\"");
		UcSay;
		UI_add_answer_0C("hazards");
	labelFunc03D2_084D:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"I have heard that these constructs are absolutely obedient to their Ophidian masters, that they never tire, and that they do not need food!\"");
		UcSay;
	labelFunc03D2_0860:
		cmps("don't care for them");
		UI_remove_answer_0D("don't care for them");
		UcMessage("\"The Ophidians are the ill-mannered humans who built the large Keep not far from this cavern. Only a few of them are left in that Keep, however.\"");
		UcSay;
		UI_add_answer_0C(["ill-mannered", "Keep"]);
	labelFunc03D2_0880:
		cmps("Keep");
		UI_remove_answer_0D("Keep");
		UcMessage("\"The Ophidians call their keep 'Serpent's Fang'. I don't really know much about the place except that the commander of the few humans that are left is not human.\"");
		UcSay;
		UcMessage("\"Frankly, I do not	care to know much about that place.\"");
		UcSay;
		UcMessage("\"As long as those humans stay out of my domain I shall reciprocate by not trespassing upon theirs.\"");
		UcSay;
		UI_add_answer_0C("not human");
	labelFunc03D2_08A2:
		cmps("ill-mannered");
		UI_remove_answer_0D("ill-mannered");
		UcMessage("\"Before the Ophidians came to these caverns there existed a natural balance	amongst the creatures that lived here. There was conflict, to be sure, but there existed a rythym to life.\"");
		UcSay;
		UcMessage("\"There was space and food enough for everyone. The Ophidians arrival disrupted the balance. They forced many creatures from their homes. And now they wage a war amongst themselves.\"");
		UcSay;
		UcMessage("\"Truly. I think I shall never understand humans.\"");
		UcSay;
		UI_add_answer_0C("civil-war");
	labelFunc03D2_08C4:
		cmps("civil-war");
		UI_remove_answer_0D("civil-war");
		UcMessage("\"Aye, these snake-lovers took up arms against one another. They have taken to slaughtering one another as easily as a hatchling takes to breathing fire...\"");
		UcSay;
		UcMessage("\"They have been fighting for at least a year I think.\"");
		UcSay;
		UI_add_answer_0C(["why", "snake-lovers"]);
	labelFunc03D2_08E8:
		cmps("why");
		UI_remove_answer_0D("why");
		UcMessage("\"I cannot say why you humans do the things you do: you are peculiar creatures, with odd customs and strange rituals.\"");
		UcSay;
		UcMessage("\"All I know is that these Ophidians starting slaughtering each other about one year ago.\"");
		UcSay;
	labelFunc03D2_08FF:
		cmps("snake-lovers");
		UI_remove_answer_0D("snake-lovers");
		UcMessage("\"As I have said, I know little of your human rituals, but I do know that these Ophidians worship snakes.\"");
		UcSay;
		UcMessage("\"Now that I think about it, I remember hearing that they worship the forces of Order and Chaos, albeit in the forms of snakes.\"");
		UcSay;
		UI_add_answer_0C("Order and Chaos?");
	labelFunc03D2_091D:
		cmps("Order and Chaos?");
		UI_remove_answer_0D("Order and Chaos?");
		UcMessage("\"Tis a silly philosophy if thou dost ask me. The Ophidians, however, believe in their doctrines so well that they have taken up arms against one another!\"");
		UcSay;
	labelFunc03D2_0930:
		cmps("cavern");
		UI_remove_answer_0D("cavern");
		UcMessage("\"These caverns are fairly large, a fact that suited me because I myself am fairly large.\"");
		UcSay;
		UcMessage("\"This cave was perfect for me. I could come and go as I pleased, at least until Aram-Dol started expanding his territory.\"");
		UcSay;
		UI_add_answer_0C("territory");
	labelFunc03D2_094E:
		cmps("territory");
		UI_remove_answer_0D("territory");
		UcMessage("\"Many years ago Aram-Dol created the Arachnian creatures. The liche released these creatures into these caverns. The foul beasts killed everything within their path. The vile creatures even managed to attack me in mass! I was very nearly slain. Fortunately for me, the Arachnians have a weakness.\"");
		UcSay;
		UI_add_answer_0C(["weakness", "Arachnians"]);
	labelFunc03D2_096E:
		cmps("weakness");
		UI_remove_answer_0D("weakness");
		UcMessage("\"Aye, the bugs have a weakness: they are especially vulnerable to fire. I fried dozens of the monsters before they broke ranks and ran!\"");
		UcSay;
		UcMessage("\"After that battle I caved-in some of the passageways near my cave and moved large boulders to block other entrances into my cave.\"");
		UcSay;
		UcMessage("\"The tactic seems to have worked because I have had little trouble from the creatures since I erected the barriers.\"");
		UcSay;
	labelFunc03D2_0989:
		cmps("The Maze");
		UI_remove_answer_0D("The Maze");
		UcMessage("\"The Ophidians built other structures within these caverns besides that Keep of theirs. One of these structures is a maze. Although I have not been there, I have heard that it is extremely dificult.\"");
		UcSay;
		UcMessage("\"I don't mean any offense to thee, but I think that any maze devised by the mind of man could easily be solved by any sensible dragon!\"");
		UcSay;
	labelFunc03D2_09A0:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(item, "@Fare thee well!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		abrt();
	labelFunc03D2_09CB:
		goto labelFunc03D2_00A1;
	labelFunc03D2_09CE:
		end_conv();
	labelFunc03D2_09CF:
		return;
}
Func03DB 0x3DB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc03DB_015F;
	var0000 = UI_get_item_frame_1A(item);
	if(!((var0000 > 0x0009) && (var0000 < 0x0010))) goto labelFunc03DB_008F;
	if(!(!UI_in_usecode_8F(item))) goto labelFunc03DB_008E;
	var0001 = [0x46, 0x000A, 0x46, 0x000B, 0x46, 0x000C, 0x58, 0x0075, 0x46, 0x000C, 0x46, 0x000B, 0x46, 0x000A, 0x46, 0x000D, 0x46, 0x000E, 0x58, 0x0075, 0x46, 0x000E, 0x46, 0x000D, 0x46, 0x000A];
	UI_halt_scheduled_71(item);
	var0002 = UI_execute_usecode_array_01(item, (var0001 & [0x0B, 0xFFE6, 0x0002]));
	labelFunc03DB_008E:
		abrt();
	labelFunc03DB_008F:
		UI_close_gumps_98();
		if(!((var0000 > Dupre) && (var0000 < 0x0005))) goto labelFunc03DB_00EF;
		var0001 = [0x46, 0x0000, 0x46, 0x0001, 0x46, 0x0002, 0x58, 0x0075, 0x46, 0x0002, 0x46, 0x0001, 0x46, 0x0000, 0x46, 0x0003, 0x46, 0x0004, 0x58, 0x0075, 0x46, 0x0004, 0x46, 0x0003, 0x46, 0x0000];
		goto labelFunc03DB_0148;
	labelFunc03DB_00EF:
		if(!((var0000 > 0x0004) && (var0000 < 0x000A))) goto labelFunc03DB_0148;
		var0001 = [0x46, 0x0005, 0x46, 0x0006, 0x46, 0x0007, 0x58, 0x0075, 0x46, 0x0007, 0x46, 0x0006, 0x46, 0x0005, 0x46, 0x0008, 0x46, 0x0009, 0x58, 0x0075, 0x46, 0x0009, 0x46, 0x0008, 0x46, 0x0005];
	labelFunc03DB_0148:
		var0002 = UI_execute_usecode_array_01(item, (var0001 & [0x0B, 0xFFE6, 0x0002]));
	labelFunc03DB_015F:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func03DC 0x3DC (var var0000)
{
	var var0001;
	var var0002;

	if(!(!gflags[012A])) goto labelFunc03DC_000F;
	UI_play_sound_effect_16(0x0030);
	abrt();
	labelFunc03DC_000F:
		if(!Func097D(0xFE9B, 0x0001, 0x03DC, 0xFE99, 0xFE99)) goto labelFunc03DC_002C;
		UI_play_sound_effect_16(0x0030);
		abrt();
	labelFunc03DC_002C:
		UI_close_gumps_98();
		UI_play_sound_effect_16(0x001B);
		Func097F(0xFE9C, "@Yleg Ort!@", 0x0000);
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_item_frame_1B(item, (UI_get_random_00(0x0008) - 0x0001));
		if(!(UI_get_random_00(0x0003) == 0x0001)) goto labelFunc03DC_00C4;
		var0000 = ["@Let us go!@", "@It shows the way!@", "@Try again.@", "@That direction?@", "@Is it broken?@", "@I do not think it works.@"];
		var0001 = Func0992(0x0001, 0x0000, 0x0000, true);
		if(!(var0001 != 0xFE9C)) goto labelFunc03DC_00C4;
		Func097F(var0001, var0000[UI_get_random_00(UI_get_array_size_73(var0000))], 0x0005);
	labelFunc03DC_00C4:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func03DE 0x3DE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!((event == 0x0005) || (event == 0x0006))) goto labelFunc03DE_0048;
	var0000 = UI_get_container_83(item);
	labelFunc03DE_0016:
		if(!((var0000 != 0x0000) && (!UI_is_npc_3D(var0000)))) goto labelFunc03DE_0036;
		var0000 = UI_get_container_83(var0000);
		goto labelFunc03DE_0016;
	labelFunc03DE_0036:
		if(!(var0000 == 0x0000)) goto labelFunc03DE_0048;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc03DE_0048:
		if(!(event == 0x0005)) goto labelFunc03DE_00C3;
		if(!UI_get_readied_BE(UI_get_container_83(item), 0x0001)) goto labelFunc03DE_00C3;
		if(!(!gflags[0304])) goto labelFunc03DE_0070;
		Func095D(0x03E8);
		gflags[0304] = true;
	labelFunc03DE_0070:
		if(!(!gflags[0303])) goto labelFunc03DE_00C3;
		var0001 = UI_get_npc_prop_28(var0000, 0x0004);
		var0002 = (0x001E - var0001);
		if(!(var0002 > 0x000A)) goto labelFunc03DE_009E;
		var0002 = 0x000A;
	labelFunc03DE_009E:
		var0003 = UI_set_item_quality_1D(item, var0002);
		var0004 = UI_set_npc_prop_29(var0000, 0x0004, var0002);
		if(!var0004) goto labelFunc03DE_00C3;
		gflags[0303] = true;
	labelFunc03DE_00C3:
		if(!(event == 0x0006)) goto labelFunc03DE_00FD;
		if(!gflags[0303]) goto labelFunc03DE_00FD;
		var0005 = UI_get_item_quality_1C(item);
		var0006 = (Dupre * var0005);
		var0004 = UI_set_npc_prop_29(var0000, 0x0004, var0006);
		if(!var0004) goto labelFunc03DE_00FD;
		gflags[0303] = false;
	labelFunc03DE_00FD:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func03E4 0x3E4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!((event == 0x0005) || (event == 0x0006))) goto labelFunc03E4_0048;
	var0000 = UI_get_container_83(item);
	labelFunc03E4_0016:
		if(!((var0000 != 0x0000) && (!UI_is_npc_3D(var0000)))) goto labelFunc03E4_0036;
		var0000 = UI_get_container_83(var0000);
		goto labelFunc03E4_0016;
	labelFunc03E4_0036:
		if(!(var0000 == 0x0000)) goto labelFunc03E4_0048;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc03E4_0048:
		if(!(event == 0x0005)) goto labelFunc03E4_00C3;
		if(!UI_get_readied_BE(UI_get_container_83(item), 0x000B)) goto labelFunc03E4_00C3;
		if(!(!gflags[02E9])) goto labelFunc03E4_0070;
		Func095D(0x03E8);
		gflags[02E9] = true;
	labelFunc03E4_0070:
		if(!(!gflags[02E8])) goto labelFunc03E4_00C3;
		var0001 = UI_get_npc_prop_28(var0000, 0x0000);
		var0002 = (0x001E - var0001);
		if(!(var0002 > 0x000A)) goto labelFunc03E4_009E;
		var0002 = 0x000A;
	labelFunc03E4_009E:
		var0003 = UI_set_item_quality_1D(item, var0002);
		var0004 = UI_set_npc_prop_29(var0000, 0x0000, var0002);
		if(!var0004) goto labelFunc03E4_00C3;
		gflags[02E8] = true;
	labelFunc03E4_00C3:
		if(!(event == 0x0006)) goto labelFunc03E4_013B;
		if(!gflags[02E8]) goto labelFunc03E4_013B;
		var0005 = UI_get_item_quality_1C(item);
		var0006 = (Dupre * var0005);
		var0004 = UI_set_npc_prop_29(var0000, 0x0000, var0006);
		if(!var0004) goto labelFunc03E4_013B;
		gflags[02E8] = false;
		var0001 = UI_get_npc_prop_28(var0000, 0x0000);
		var0007 = UI_get_npc_prop_28(var0000, 0x0003);
		if(!(var0007 > var0001)) goto labelFunc03E4_013B;
		var0008 = (var0001 - var0007);
		var0004 = UI_set_npc_prop_29(var0000, 0x0003, var0008);
	labelFunc03E4_013B:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func03E6 0x3E6 (var var0000)
{
	var var0001;

	if(!(event == 0x0002)) goto labelFunc03E6_00DC;
	UI_play_music_39(0x002C, Func09A0(0x0005, 0x0001));
	var0000 = UI_get_object_position_20(item);
	UI_remove_item_84(item);
	UI_move_object_4B(0xFFEF, var0000);
	UI_set_new_schedules_B6(0xFFEF, [0x0000, 0x0002, 0x0004, 0x0005, 0x0006], [0x000E, 0x0015, 0x0015, 0x001A, 0x0015], [0x0939, 0x081A, 0x0950, 0x0823, 0x09A7, 0x07E5, 0x0943, 0x0835, 0x0950, 0x0823]);
	UI_set_new_schedules_B6(0xFF3F, [0x0000, 0x0003, 0x0005, 0x0006], [0x0001, 0x0002, 0x0017, 0x0002], [0x094F, 0x082D, 0x0970, 0x0813, 0x0943, 0x0834, 0x0961, 0x0812]);
	UI_run_schedule_B7(0xFF3F);
	UI_set_schedule_type_25(0xFFEF, 0x0003);
	Func097F(0xFFEF, "@Much better...@", 0x0000);
	gflags[00F1] = true;
	labelFunc03E6_00DC:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func03E9 0x3E9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!((event == 0x0005) || (event == 0x0006))) goto labelFunc03E9_0048;
	var0000 = UI_get_container_83(item);
	labelFunc03E9_0016:
		if(!((var0000 != 0x0000) && (!UI_is_npc_3D(var0000)))) goto labelFunc03E9_0036;
		var0000 = UI_get_container_83(var0000);
		goto labelFunc03E9_0016;
	labelFunc03E9_0036:
		if(!(var0000 == 0x0000)) goto labelFunc03E9_0048;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc03E9_0048:
		if(!(event == 0x0005)) goto labelFunc03E9_00C3;
		if(!UI_get_readied_BE(UI_get_container_83(item), 0x0005)) goto labelFunc03E9_00C3;
		if(!(!gflags[02F9])) goto labelFunc03E9_0070;
		Func095D(0x03E8);
		gflags[02F9] = true;
	labelFunc03E9_0070:
		if(!(!gflags[0302])) goto labelFunc03E9_00C3;
		var0001 = UI_get_npc_prop_28(var0000, 0x0001);
		var0002 = (0x001E - var0001);
		if(!(var0002 > 0x000A)) goto labelFunc03E9_009E;
		var0002 = 0x000A;
	labelFunc03E9_009E:
		var0003 = UI_set_item_quality_1D(item, var0002);
		var0004 = UI_set_npc_prop_29(var0000, 0x0001, var0002);
		if(!var0004) goto labelFunc03E9_00C3;
		gflags[0302] = true;
	labelFunc03E9_00C3:
		if(!(event == 0x0006)) goto labelFunc03E9_00FD;
		if(!gflags[0302]) goto labelFunc03E9_00FD;
		var0005 = UI_get_item_quality_1C(item);
		var0006 = (Dupre * var0005);
		var0004 = UI_set_npc_prop_29(var0000, 0x0001, var0006);
		if(!var0004) goto labelFunc03E9_00FD;
		gflags[0302] = false;
	labelFunc03E9_00FD:
		return;
}
Func03F2 0x3F2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0002)) goto labelFunc03F2_014F;
	var0000 = UI_find_nearby_41(item, 0x03FB, 0x000A, 0x0000);
	var0001 = UI_find_nearby_41(var0000, 0xFE99, 0x0005, 0x0000);
	var0002 = UI_get_object_position_20(var0000);
	enum();
	labelFunc03F2_0037:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc03F2_008F);
		var0006 = UI_get_object_position_20(var0005);
		if(!(var0006[0x0003] == 0x0001)) goto labelFunc03F2_008C;
		var0007 = UI_set_last_created_2E(var0005);
		if(!var0007) goto labelFunc03F2_008C;
		var0006[0x0001] = (var0006[0x0001] - 0x0001);
		var0006[0x0003] = 0x0000;
		var0007 = UI_update_last_created_2F(var0006);
	labelFunc03F2_008C:
		goto labelFunc03F2_0037;
	labelFunc03F2_008F:
		if(!(UI_get_item_frame_1A(var0000) < 0x000A)) goto labelFunc03F2_00C7;
		if(!var0000) goto labelFunc03F2_00C4;
		var0007 = UI_execute_usecode_array_01(var0000, [0x46, 0x0000, 0x4E, 0x0B, Dupre, 0x000A, 0x55, 0x03F2]);
	labelFunc03F2_00C4:
		goto labelFunc03F2_014F;
	labelFunc03F2_00C7:
		var0008 = UI_get_object_position_20(var0000);
		var0008[0x0001] = (var0008[0x0001] - 0x0001);
		var0008[0x0002] = (var0008[0x0002] - 0x0001);
		var0008[0x0003] = 0x0001;
		var0007 = UI_create_new_object_2C(0x0392);
		if(!var0007) goto labelFunc03F2_0145;
		UI_set_item_frame_1B(var0007, 0x0000);
		if(!gflags[0007]) goto labelFunc03F2_012E;
		gflags[0007] = false;
		var0007 = UI_set_item_quality_1D(var0007, 0x0001);
		goto labelFunc03F2_013B;
	labelFunc03F2_012E:
		var0007 = UI_set_item_quality_1D(var0007, 0x0000);
	labelFunc03F2_013B:
		var0007 = UI_update_last_created_2F(var0008);
	labelFunc03F2_0145:
		UI_set_item_frame_1B(var0000, 0x0000);
	labelFunc03F2_014F:
		return;
}
// externs
extern Func087F 0x87F (var var0000);

Func03F3 0x3F3 (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc03F3_000C;
	Func087F(item);
	labelFunc03F3_000C:
		return;
}
Func03F5 0x3F5 (var var0000)
{
	if(!(event == 0x0005)) goto labelFunc03F5_0012;
	UI_infravision_C5(UI_get_container_83(item), true);
	labelFunc03F5_0012:
		if(!(event == 0x0006)) goto labelFunc03F5_0024;
		UI_infravision_C5(UI_get_container_83(item), false);
	labelFunc03F5_0024:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern var Func0956 0x956 (var var0000);
extern Func082A 0x82A ();
extern Func082C 0x82C ();

Func03F7 0x3F7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = Func0954();
	var0001 = Func0953();
	if(!(event == 0x0001)) goto labelFunc03F7_003C;
	UI_item_say_4D(0xFE9C, "@Might I speak with thee?@");
	item;
	calle();
	Func097F(item, (("@Certainly, " + var0000) + ".@"), 0x0002);
	UI_set_schedule_type_25(item, 0x0003);
	labelFunc03F7_003C:
		if(!(event == 0x0009)) goto labelFunc03F7_05F3;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFECD, 0x0000);
		var0002 = UI_get_npc_id_BC(item);
		if(!(gflags[02FC] || gflags[0313])) goto labelFunc03F7_007F;
		UcMessage("\"I am pleased to see thee, Champion of Balance.");
		UcSay;
		UcMessage("\"How might I be of service to thee?\"");
		UcSay;
		UI_add_answer_0C("service");
		goto labelFunc03F7_00EF;
	labelFunc03F7_007F:
		if(!(var0002 == false)) goto labelFunc03F7_00B0;
		UcMessage("\"I do not believe I have had the pleasure of meeting thee, ");
		UcMessage(var0000);
		UcMessage(". I think it would be wise for thee to prove that thou art not a foul Chaos spy.");
		UcSay;
		UcMessage("\"Make no untoward moves, I warn thee, for I am Elissa, Order Mage of the First Rank.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0002);
		UI_add_answer_0C(["prove", "Chaos spy", "Mage of the First Rank"]);
		goto labelFunc03F7_00EF;
	labelFunc03F7_00B0:
		if(!(var0002 == 0x0002)) goto labelFunc03F7_00DE;
		if(!gflags[030D]) goto labelFunc03F7_00D6;
		UcMessage("\"Ah, thou hast spoken with our Commander! Very good. What can I do for thee?\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
		UI_add_answer_0C("service");
		goto labelFunc03F7_00DB;
	labelFunc03F7_00D6:
		UcMessage("\"Begone from my sight, miscreant!\"");
		UcSay;
		abrt();
	labelFunc03F7_00DB:
		goto labelFunc03F7_00EF;
	labelFunc03F7_00DE:
		UcMessage("\"How good it is to see thee again, ");
		UcMessage(var0001);
		UcMessage("! How might I be of service to thee this day?\"");
		UcSay;
		UI_add_answer_0C("service");
	labelFunc03F7_00EF:
		UI_add_answer_0C("bye");
	labelFunc03F7_00F6:
		UcAsk;
		cmps("prove");
		UI_remove_answer_0D("prove");
		UcMessage("\"Unless thou canst prove to me that thou dost not mean harm to DeathWatch, I shall have to turn thee over to Isstanar.  Thou wouldst find the experience most unpleasant.\"");
		UcSay;
		UI_add_answer_0C(["DeathWatch", "Isstanar"]);
	labelFunc03F7_0119:
		cmps("DeathWatch");
		UI_remove_answer_0D("DeathWatch");
		UcMessage("\"'Tis not what our High Command calls it, but then they are not here. To them this is the Serpent's Fang keep. To those of us who have held back the mindless hordes of Chaos, this is DeathWatch keep...");
		UcSay;
		UcMessage("\"Or, now that the war has passed us by, perhaps we should call it DeathWait.");
		UcSay;
		UcMessage("\"But I must have assurances of thy identity, ");
		UcMessage(var0000);
		UcMessage(", or things will go badly for thee.\"");
		UcSay;
		UI_add_answer_0C("assurances");
	labelFunc03F7_0141:
		cmps("assurances");
		UI_remove_answer_0D("assurances");
		UcMessage("\"Thou must have some proof of thy identity...\"");
		UcSay;
		if(!((!Func0942(Iolo)) || ((!Func0942(Shamino)) || (!Func0942(Dupre))))) goto labelFunc03F7_0181;
		UI_add_answer_0C(["I need no proof!", "I am the Avatar!", "Amulet"]);
		goto labelFunc03F7_0240;
	labelFunc03F7_0181:
		if(!Func0942(Iolo)) goto labelFunc03F7_01B3;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(" is the Avatar! Thou dost not need any further proof than the fact that the Amulet didst bring us here!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_item_say_4D(Iolo, "@Nosey biddy!@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_01B3:
		if(!Func0942(Shamino)) goto labelFunc03F7_01F5;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"What about the Amulet that Karnax didst give thee, Avatar? It brought us here. Perhaps this Mage would recognize it.\"");
		UcSay;
		UI_remove_npc_face1_08();
		if(!Func0942(Iolo)) goto labelFunc03F7_01E4;
		UI_item_say_4D(Shamino, "@Mind thy manners, Iolo!@");
		goto labelFunc03F7_01EE;
	labelFunc03F7_01E4:
		UI_item_say_4D(Shamino, "@I am sick of these rules!@");
	labelFunc03F7_01EE:
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_01F5:
		if(!Func0942(Dupre)) goto labelFunc03F7_0225;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Beware how thou dost speak to the Avatar!");
		UcSay;
		UcMessage("\"Avatar, let us use the Amulet to return to where we were. We have enough to worry with on this quest without such presumptuous women!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_item_say_4D(Dupre, "@Arrogant wench!@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_0225:
		UcMessage("\"I have no idea what it is that thy friends speak of, ");
		UcMessage(var0000);
		UcMessage(". I mean no disrespect, but I have never heard of @the Avatar@ before.");
		UcSay;
		UcMessage("\"But if I might see the Amulet that they speak about, perhaps I can end this questioning now.\"");
		UcSay;
		UI_add_answer_0C(["Amulet", "questioning"]);
	labelFunc03F7_0240:
		cmps("I need no proof!");
		UI_remove_answer_0D(["I need no proof!", "I am the Avatar!"]);
		UcMessage("\"Art thou a member of the High Command? Art thou a Hierophant? I think not!");
		UcSay;
		UcMessage("\"Thine attitude dost seriously endanger thy freedom. I suggest that thou change it quickly.\"");
		UcSay;
	labelFunc03F7_025D:
		cmps("I am the Avatar!");
		UI_remove_answer_0D(["I am the Avatar!", "I need no proof!"]);
		UcMessage("\"I mean no disrespect, but I have never heard of @the Avatar@ before.\"");
		UcSay;
	labelFunc03F7_0276:
		cmps("Amulet");
		UI_remove_answer_0D(["Amulet", "I am the Avatar!", "I need no proof!"]);
		UcMessage("\"No, it cannot be! There has not been a Champion of Balance since before Ssithnos was murdered!");
		UcSay;
		UcMessage("\"I can scarcely believe my eyes! But the item is authentic, that much I am sure of...");
		UcSay;
		UcMessage("\"Forgive my doubts, ");
		UcMessage(var0001);
		UcMessage(". I gave little credit to the stories. I thought that they were no more than folk tales born on the eve of war. I did not mean to offend thee.\"");
		UcSay;
		UI_set_npc_id_BD(item, 0x0001);
		UI_add_answer_0C(["Champion of Balance", "Ssithnos", "stories"]);
	labelFunc03F7_02B8:
		cmps("Champion of Balance");
		UI_remove_answer_0D("Champion of Balance");
		UcMessage("\"Law required that the Great Hierophant remain an impartial judge of the people. No matter what the offense, he could not raise his hand to dispense justice.");
		UcSay;
		UcMessage("\"Only four times in history was there any who dared to defy the word of the Great Hierophant. As these people lived outside of Order and Chaos, neither group could act upon them without usurping the power of Balance.");
		UcSay;
		UcMessage("\"So it fell to the Great Hierophant to choose one among his Acolytes to go and battle these unlawful ones. The Champion was given all the power of Balance and never failed to restore harmony to the land.\"");
		UcSay;
	labelFunc03F7_02D3:
		cmps("Ssithnos");
		UI_remove_answer_0D("Ssithnos");
		UcMessage("\"Ssithnos was the last Great Hierophant of Balance. But he was foully murdered by the followers of Chaos.");
		UcSay;
		UcMessage("\"He was unable to choose a Champion, but only the Great Hierophant knew the location of the Amulet. Even though thou art ignorant of thy duty, thou art certainly the Champion of Balance.\"");
		UcSay;
	labelFunc03F7_02EA:
		cmps("stories");
		UI_remove_answer_0D("stories");
		UcMessage("\"With the death of the Great Hierophant, the land soon fell into confusion. Order vowed vengeance upon Chaos, and those followers of Chaos fled in panic into much of the countryside.");
		UcSay;
		UcMessage("\"During that time, the people began telling of the coming of a Champion of Balance who would see justice done and restore Balance to the world.");
		UcSay;
		UcMessage("\"I thought that it was the prattling of cowards who wished to avoid the coming war. But now that I have seen thee and the Amulet, I am uncertain.\"");
		UcSay;
	labelFunc03F7_0305:
		cmps("questioning");
		UI_remove_answer_0D("questioning");
		UcMessage("\"If thou wilt not answer to me, I shall be forced to bespell thee and take thee to the Commander of the keep.");
		UcSay;
		if(!Func0942(Iolo)) goto labelFunc03F7_033A;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Thou dost take too much upon thyself, woman!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_033A:
		if(!Func0942(Shamino)) goto labelFunc03F7_0360;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"I doubt it shall be as easy as thou dost imagine. Thou dost not speak to an ordinary warrior...");
		UcSay;
		UcMessage("\"This is the Avatar thou dost question!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_0360:
		if(!Func0942(Dupre)) goto labelFunc03F7_0382;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"If she tries anything, Avatar, I shall gladly lop her head off for the effort!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_0382:
		UcMessage("\"This is a time of war! Thou canst not think to wander about unchallenged. 'Twould be a breach of duty if I did not stop and question thee.\"");
		UcSay;
		if(!Func0942(Iolo)) goto labelFunc03F7_03B2;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"I am sorry, good Mage. Thou art quite right.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_item_say_4D(Iolo, "@My apologies.@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_03B2:
		if(!Func0942(Shamino)) goto labelFunc03F7_03DE;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"We are strangers here. Thou dost well in questioning us. We wrong thee with our demands to be unaccountable.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_item_say_4D(Shamino, "@Remain vigilant.@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_03DE:
		if(!Func0942(Dupre)) goto labelFunc03F7_040A;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Thou must honor thy duty. I apologize for speaking ill of a honorable warrior such as thyself.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_item_say_4D(Dupre, "@Duty is our honor...@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc03F7_040A:
		cmps("Isstanar");
		UI_remove_answer_0D("Isstanar");
		UcMessage("\"Thou wouldst know him, if thou hadst met him. He is the ultimate Order warrior! Nothing touches him. He is bound only by his duty.\"");
		UcSay;
		UI_add_answer_0C(["ultimate warrior", "nothing touches him"]);
	labelFunc03F7_042A:
		cmps("ultimate warrior");
		UI_remove_answer_0D("ultimate warrior");
		UcMessage("\"Isstanar is invincible! He cannot die. He does not need food or rest. His strength makes even a weapon unnecessary.");
		UcSay;
		UcMessage("\"What army, if filled with warriors such as Isstanar, could not march easily to victory? Soon this accursed war will be over, and I shall retire to a life of research.");
		UcSay;
		UcMessage("\"Who knows, perhaps some day -- once I am sure that I would still have the use of my magic -- I shall make the final sacrifice and become one such as Isstanar.\"");
		UcSay;
		UI_add_answer_0C(["How can this be?", "final sacrifice"]);
	labelFunc03F7_0452:
		cmps("How can this be?");
		UI_remove_answer_0D("How can this be?");
		UcMessage("\"Oh, no! Even if I knew how this was accomplished, which I do not, I would not tell thee!");
		UcSay;
		UcMessage("\"My honor is worth more than that! I shall not have it said that I betrayed Order!\"");
		UcSay;
	labelFunc03F7_0469:
		cmps("final sacrifice");
		UI_remove_answer_0D("final sacrifice");
		UcMessage("\"To forsake the needs and desires of the body, what more dost thou ask?");
		UcSay;
		UcMessage("\"I know nothing further than what I have told thee. I have not yet attained that level.\"");
		UcSay;
	labelFunc03F7_0480:
		cmps("nothing touches him");
		UI_remove_answer_0D("nothing touches him");
		UcMessage("\"Isstanar has transcended the restraints of the body. All that remains is his iron will and the fine Logic of his mind.");
		UcSay;
		UcMessage("\"Nothing can distract him from his duty. He does not fear, he does not worry. Unlike the rest of us here, he is not consumed by boredom or impatience. He just... is.\"");
		UcSay;
	labelFunc03F7_0497:
		cmps("Chaos spy");
		UI_remove_answer_0D("Chaos spy");
		UcMessage("\"Everyone knows that the tides of battle have turned since the High Command unleashed our secret weapon. Chaos would do anything to learn how to neutralize our advantage.\"");
		UcSay;
		UI_add_answer_0C(["secret weapon", "neutralize"]);
	labelFunc03F7_04B7:
		cmps("secret weapon");
		UI_remove_answer_0D("secret weapon");
		UcMessage("\"If thou art observant, thou wilt know the answer to thy question. If not, I shall not aid thee... No matter who thou art.\"");
		UcSay;
	labelFunc03F7_04CA:
		cmps("neutralize");
		UI_remove_answer_0D("neutralize");
		UcMessage("\"The only secret that spies need learn is that there is no way to neutralize our advantage. Order cannot fail now... The sooner that those wretched Chaos followers realize this, the sooner this war shall end!\"");
		UcSay;
	labelFunc03F7_04DD:
		cmps("Mage of the First Rank");
		UI_remove_answer_0D("Mage of the First Rank");
		UcMessage("\"Thou canst always tell the quality of a Mage by how rank he is... Thou canst smell his superiority for leagues!");
		UcSay;
		UcMessage("\"But I should not jest so... Thou art a stranger and may mistake me. In truth, a Mage's rank reflects his ability.");
		UcSay;
		UcMessage("\"Those of the First Rank have mastered all spells. Those of the Second Rank have mastered the next lowest level of spells, and so on.");
		UcSay;
		UcMessage("\"Although our titles are different, I am equal in rank to SubCommander Tsandar.\"");
		UcSay;
		UI_add_answer_0C("SubCommander Tsandar");
	labelFunc03F7_0503:
		cmps("SubCommander Tsandar");
		UI_remove_answer_0D("SubCommander Tsandar");
		UcMessage("\"Tsandar is now Isstanar's aide, though he commanded the garrison after Commander Ardiniss' death. Tsandar did not take his replacement very well, I fear.");
		UcSay;
		UcMessage("\"Tsandar's devotion to Order is strong, to be sure. But how could he expect to command now that Isstanar is here?\"");
		UcSay;
		UI_add_answer_0C("Commander Ardiniss");
	labelFunc03F7_0521:
		cmps("Commander Ardiniss");
		UI_remove_answer_0D("Commander Ardiniss");
		UcMessage("\"Ardiniss was an old man, ");
		UcMessage(var0000);
		UcMessage(". It was he who founded this keep. He was a loyal servant of Order, but he did not keep Discipline as he should have.");
		UcSay;
		UcMessage("\"Fortunately, he was honored by a clean death in battle before anyone could question the strictness of his command.\"");
		UcSay;
	labelFunc03F7_053E:
		cmps("service");
		UI_remove_answer_0D("service");
		UcMessage("\"I have little to do these days. I do not know if I long to be at the front, or if I simply yearn for reassignment elsewhere. It is quite depressing being in a nearly deserted keep.");
		UcSay;
		if(!gflags[00DB]) goto labelFunc03F7_05AD;
		UcMessage("\"I canst tell thou art a Mage, though I cannot perceive what Rank. If thou desirest, I will teach thee a few spells... for a small fee, of course.");
		UcSay;
		UcMessage("\"Or, if thou dost not desire spells, perhaps I could train thee in the use of magic... for a small fee, naturally. It will help pass the time.\"");
		UcSay;
		UcMessage("\"What dost thou desire?\"");
		UcSay;
		var0003 = Func0956(["Nothing", "Spells", "Training"]);
		if(!(var0003 == "Nothing")) goto labelFunc03F7_0590;
		UcMessage("\"Another time, perhaps. I should go and make my rounds now anyway...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_item_say_4D(item, "@Until later...@");
		abrt();
	labelFunc03F7_0590:
		if(!(var0003 == "Spells")) goto labelFunc03F7_059D;
		Func082A();
	labelFunc03F7_059D:
		if(!(var0003 == "Training")) goto labelFunc03F7_05AA;
		Func082C();
	labelFunc03F7_05AA:
		goto labelFunc03F7_05C2;
	labelFunc03F7_05AD:
		UcMessage("\"If thou wert a Mage, I would have been willing to teach thee a few spells. Or I could have trained thee in the use of magic... All for a small fee, naturally. It would have helped to pass the time.");
		UcSay;
		UcMessage("\"Ah well, I shall have to content myself with making rounds. I suppose it would be too much to hope for that I might encounter a Chaos monster this time...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_item_say_4D(item, "@Duty calls!@");
		abrt();
	labelFunc03F7_05C2:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(item, "@Farewell!@", 0x0002);
		UI_set_schedule_type_25(item, 0x0015);
		goto labelFunc03F7_05F2;
	labelFunc03F7_05EF:
		goto labelFunc03F7_00F6;
	labelFunc03F7_05F2:
		end_conv();
	labelFunc03F7_05F3:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func03FD 0x3FD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	UI_close_gumps_98();
	var0000 = UI_get_item_frame_1A(item);
	if(!(event == 0x0001)) goto labelFunc03FD_0087;
	if(!(var0000 == 0x0003)) goto labelFunc03FD_0031;
	var0001 = Func0992(0x0001, "@It hath been picked clean.@", "@No more berries...@", true);
	goto labelFunc03FD_0087;
	labelFunc03FD_0031:
		var0002 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0194, 0x0000, 0x0004, 0x0012);
		if(!(!var0002)) goto labelFunc03FD_0077;
		UI_set_item_frame_1B(item, (var0000 + 0x0001));
		UI_play_sound_effect_16(0x000C);
		var0001 = Func0992(0x0001, "@Thou hast plucked a berry!@", "@I have a berry!@", true);
		goto labelFunc03FD_0087;
	labelFunc03FD_0077:
		var0001 = Func0992(0x0001, "@But thine hands are full!@", "@I have no room for berries...@", true);
	labelFunc03FD_0087:
		return;
}
// externs
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern var Func0994 0x994 ();
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern Func07D7 0x7D7 (var var0000);
extern var Func08B6 0x8B6 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08F8 0x8F8 (var var0000, var var0001, var var0002);
extern Func08B8 0x8B8 ();
extern Func08F6 0x8F6 ();
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func08F3 0x8F3 ();
extern var Func084E 0x84E (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0400 0x400 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	if(!(event == 0x0008)) goto labelFunc0400_002C;
	if(!UI_get_item_flag_A3(0xFE9C, 0x0023)) goto labelFunc0400_0022;
	UI_set_polymorph_B3(0xFE9C, 0x0292);
	goto labelFunc0400_002C;
	labelFunc0400_0022:
		UI_set_polymorph_B3(0xFE9C, 0x0212);
	labelFunc0400_002C:
		if(!(event == 0x0007)) goto labelFunc0400_08D1;
		if(!gflags[0083]) goto labelFunc0400_0070;
		var0000 = UI_get_oppressor_5C(0xFE9C);
		var0000 = (0x0000 - var0000);
		if(!(!gflags[0007])) goto labelFunc0400_006B;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0000), UI_get_npc_object_23(0xFE9C));
		exit2();
	labelFunc0400_006B:
		Func092E(item);
		exit2();
	labelFunc0400_0070:
		if(!(gflags[00BF] && (!gflags[0048]))) goto labelFunc0400_007C;
		abrt();
	labelFunc0400_007C:
		var0001 = Func0994();
		if(!((var0001 == 0x0014) && (!UI_get_item_flag_A3(0xFE9C, 0x0010)))) goto labelFunc0400_021B;
		var0002 = UI_get_object_position_20(0xFE9C);
		if(!((var0002[0x0001] > 0x09D0) && ((var0002[0x0001] < 0x09FA) && ((var0002[0x0002] > 0x0320) && (var0002[0x0002] < 0x033A))))) goto labelFunc0400_0112;
		var0000 = UI_get_npc_prop_28(0xFE9C, 0x0003);
		if(!(var0000 < 0x0000)) goto labelFunc0400_00F1;
		var0000 = (0x0003 - var0000);
	labelFunc0400_00F1:
		if(!(var0000 == 0x0000)) goto labelFunc0400_0101;
		var0000 = 0x0003;
	labelFunc0400_0101:
		var0000 = UI_set_npc_prop_29(0xFE9C, 0x0003, var0000);
		abrt();
	labelFunc0400_0112:
		var0003 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
		var0000 = UI_find_direction_22(var0003, 0xFE9C);
		var0000 = UI_execute_usecode_array_01(var0003, [0x23, 0x59, var0000]);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6E]);
		var0002 = UI_get_object_position_20(0xFE9C);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		var0000 = UI_create_new_object_2C(0x0390);
		if(!var0000) goto labelFunc0400_019F;
		var0000 = UI_update_last_created_2F(var0002);
	labelFunc0400_019F:
		var0002[0x0001] = (var0002[0x0001] - 0x0002);
		var0000 = UI_create_new_object_2C(0x0390);
		if(!var0000) goto labelFunc0400_01C9;
		var0000 = UI_update_last_created_2F(var0002);
	labelFunc0400_01C9:
		var0002[0x0002] = (var0002[0x0002] + 0x0001);
		var0000 = UI_create_new_object_2C(0x0390);
		if(!var0000) goto labelFunc0400_01F3;
		var0000 = UI_update_last_created_2F(var0002);
	labelFunc0400_01F3:
		UI_halt_scheduled_71(var0003);
		UI_set_schedule_type_25(var0003, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x0400], 0x0005);
	labelFunc0400_021B:
		if(!(var0001 == 0x001F)) goto labelFunc0400_03CC;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		var0004 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc0400_0246:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0400_0276);
		if(!(!((UI_get_item_shape_18(var0007) == 0x01E6) || (UI_get_item_shape_18(var0007) == 0x025F)))) goto labelFunc0400_0273;
		UI_remove_item_84(var0007);
	labelFunc0400_0273:
		goto labelFunc0400_0246;
	labelFunc0400_0276:
		var0008 = 0x0000;
		var0004 = UI_get_cont_items_33(0xFF1B, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0400_028F:
		if(!(var0008 < 0x0002)) goto labelFunc0400_0301;
		enum();
	labelFunc0400_029A:
		for (var0007 in var0004 with var0009 to var000A atend labelFunc0400_02E1);
		if(!(Func09A6(var0007) || (var0008 == 0x0001))) goto labelFunc0400_02DE;
		if(!(!UI_set_last_created_2E(var0007))) goto labelFunc0400_02CA;
		Func092F(0xFE9C, 0x000D);
	labelFunc0400_02CA:
		if(!(!UI_give_last_created_43(0xFE9C))) goto labelFunc0400_02DE;
		Func092F(0xFE9C, 0x000E);
	labelFunc0400_02DE:
		goto labelFunc0400_029A;
	labelFunc0400_02E1:
		var0008 = (var0008 + 0x0001);
		var0004 = UI_get_cont_items_33(0xFF1B, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0400_028F;
	labelFunc0400_0301:
		UI_play_music_39(0x0016, Func09A0(0x0005, 0x0001));
		UI_move_object_4B(0xFE9C, [0x05B4, 0x0652, 0x0000]);
		if(!(Func095C(0xFE9C, 0x0000) > Func095C(0xFE9C, 0x0003))) goto labelFunc0400_035C;
		var0000 = (Func095C(0xFE9C, 0x0000) - Func095C(0xFE9C, 0x0003));
		Func095E(0xFE9C, 0x0003, var0000);
	labelFunc0400_035C:
		item;
		calle();
		var0004 = Func08B6();
		enum();
	labelFunc0400_0367:
		for (var0007 in var0004 with var000B to var000C atend labelFunc0400_039A);
		UI_clear_item_flag_A5(var0007, 0x0001);
		UI_set_schedule_type_25(var0007, 0x001F);
		var0000 = UI_execute_usecode_array_01(var0007, [0x23, 0x61]);
		goto labelFunc0400_0367;
	labelFunc0400_039A:
		if(!var0007) goto labelFunc0400_03AC;
		Func097F(var0007, "@What dreams!@", 0x000E);
	labelFunc0400_03AC:
		var000D = Func09A0(0x0002, 0x0001);
		var0000 = UI_execute_usecode_array_01(var000D, [0x23, 0x55, 0x0636]);
	labelFunc0400_03CC:
		if(!((var0001 == 0x0020) && (!gflags[026F]))) goto labelFunc0400_0545;
		var000E = UI_get_object_position_20(0xFE9C);
		if(!Func08F8(var000E, [0x0900, 0x0A00], [0x09FF, 0x0AFF])) goto labelFunc0400_0521;
		var0004 = [0xFE9C];
		var000F = true;
		enum();
	labelFunc0400_040E:
		for (var0003 in var0004 with var0010 to var0011 atend labelFunc0400_051E);
		UI_halt_scheduled_71(var0003);
		UI_clear_item_say_4E(var0003);
		if(!(!UI_get_item_flag_A3(var0003, 0x001E))) goto labelFunc0400_043F;
		UI_set_schedule_type_25(var0003, 0x001F);
	labelFunc0400_043F:
		UI_set_temperature_BA(var0003, 0x0000);
		UI_clear_item_flag_A5(var0003, 0x0001);
		UI_clear_item_flag_A5(var0003, 0x0002);
		UI_clear_item_flag_A5(var0003, 0x0003);
		UI_clear_item_flag_A5(var0003, 0x0004);
		UI_clear_item_flag_A5(var0003, 0x0005);
		UI_clear_item_flag_A5(var0003, 0x0007);
		UI_clear_item_flag_A5(var0003, 0x0008);
		UI_clear_item_flag_A5(var0003, 0x0010);
		if(!(Func095C(var0003, 0x0000) > Func095C(var0003, 0x0003))) goto labelFunc0400_04D1;
		var0000 = (Func095C(var0003, 0x0000) - Func095C(var0003, 0x0003));
		Func095E(var0003, 0x0003, var0000);
	labelFunc0400_04D1:
		var0000 = Func095C(var0003, 0x0009);
		var0000 = (0x001F - var0000);
		Func095E(var0003, 0x0009, var0000);
		gflags[026F] = true;
		Func08B8();
		var0012 = Func09A0(0x0000, 0x0004);
		var0000 = UI_execute_usecode_array_01(var0012, [0x23, 0x55, 0x0616]);
		abrt();
		goto labelFunc0400_040E;
	labelFunc0400_051E:
		goto labelFunc0400_0545;
	labelFunc0400_0521:
		var0012 = Func09A0(0x0000, 0x0001);
		var0000 = UI_execute_usecode_array_01(var0012, [0x23, 0x55, 0x060C]);
		gflags[026F] = true;
	labelFunc0400_0545:
		if(!((var0001 != 0x0014) && ((var0001 != 0x001F) && ((var0001 != 0x0020) && (!gflags[026F]))))) goto labelFunc0400_08D1;
		Func08F6();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0004 = Func08B6();
		var0004 = [0xFE9C, var0004];
		var0002 = [0x0967, 0x047C, 0x0000];
		var0013 = [0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001];
		var0014 = [Dupre, Dupre, Dupre, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000];
		var0007 = 0x0001;
		UI_sprite_effect_68(0x0007, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		enum();
	labelFunc0400_0618:
		for (var0003 in var0004 with var0015 to var0016 atend labelFunc0400_074E);
		UI_halt_scheduled_71(var0003);
		UI_clear_item_say_4E(var0003);
		if(!(!UI_get_item_flag_A3(var0003, 0x001E))) goto labelFunc0400_0649;
		UI_set_schedule_type_25(var0003, 0x001F);
	labelFunc0400_0649:
		UI_set_temperature_BA(var0003, 0x0000);
		UI_clear_item_flag_A5(var0003, 0x0001);
		UI_clear_item_flag_A5(var0003, 0x0002);
		UI_clear_item_flag_A5(var0003, 0x0003);
		UI_clear_item_flag_A5(var0003, 0x0004);
		UI_clear_item_flag_A5(var0003, 0x0005);
		UI_clear_item_flag_A5(var0003, 0x0007);
		UI_clear_item_flag_A5(var0003, 0x0008);
		UI_clear_item_flag_A5(var0003, 0x0010);
		if(!(Func095C(var0003, 0x0000) > Func095C(var0003, 0x0003))) goto labelFunc0400_06DB;
		var0000 = (Func095C(var0003, 0x0000) - Func095C(var0003, 0x0003));
		Func095E(var0003, 0x0003, var0000);
	labelFunc0400_06DB:
		var0000 = Func095C(var0003, 0x0009);
		var0000 = (0x001F - var0000);
		Func095E(var0003, 0x0009, var0000);
		var0000 = [(var0002[0x0001] + var0013[var0007]), (var0002[0x0002] + var0014[var0007]), var0002[0x0003]];
		UI_move_object_4B(var0003, var0000);
		var0000 = UI_execute_usecode_array_01(var0003, [0x61, 0x59, 0x0000]);
		var0007 = (var0007 + 0x0001);
		goto labelFunc0400_0618;
	labelFunc0400_074E:
		var0002 = [];
		var0013 = [];
		var0014 = [];
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0636]);
		var0017 = [0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2B, 0xFF2A, 0xFF30, 0xFF2E];
		if(!(!gflags[01CC])) goto labelFunc0400_07A3;
		var0017 = Func0988(0xFF2F, var0017);
	labelFunc0400_07A3:
		if(!Func08F3()) goto labelFunc0400_07B3;
		var0017 = (var0017 & 0xFF29);
	labelFunc0400_07B3:
		var0000 = UI_set_item_quality_1D(Func09A0(0x0005, 0x0001), 0x0003);
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x00FA, 0x0000], 0x00C8);
		enum();
	labelFunc0400_07E7:
		for (var0003 in var0017 with var0018 to var0019 atend labelFunc0400_08C3);
		UI_move_object_4B(var0003, Func084E(var0003, 0x0003));
		UI_set_new_schedules_B6(var0003, 0x0000, 0x0010, Func084E(var0003, 0x0003));
		UI_run_schedule_B7(var0003);
		if(!(var0003 == 0xFF31)) goto labelFunc0400_08A8;
		UI_clear_item_flag_A5(var0003, 0x0001);
		UI_clear_item_flag_A5(var0003, 0x0002);
		UI_clear_item_flag_A5(var0003, 0x0003);
		UI_clear_item_flag_A5(var0003, 0x0004);
		UI_clear_item_flag_A5(var0003, 0x0005);
		UI_clear_item_flag_A5(var0003, 0x0007);
		UI_clear_item_flag_A5(var0003, 0x0008);
		UI_clear_item_flag_A5(var0003, 0x0010);
		UI_set_npc_id_BD(0xFF31, 0x0000);
		UI_set_schedule_type_25(0xFF31, 0x0003);
		var0000 = UI_execute_usecode_array_01(0xFF31, [0x59, 0x0004, 0x61, 0x6F, 0x70]);
		goto labelFunc0400_08C0;
	labelFunc0400_08A8:
		var0000 = UI_execute_usecode_array_01(var0003, [0x59, 0x0000, 0x61, 0x6F, 0x6B]);
	labelFunc0400_08C0:
		goto labelFunc0400_07E7;
	labelFunc0400_08C3:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		gflags[026F] = true;
	labelFunc0400_08D1:
		if(!(event == 0x0002)) goto labelFunc0400_0B32;
		if(!gflags[021E]) goto labelFunc0400_09A3;
		UI_set_schedule_type_25(item, 0x0000);
		UI_show_npc_face0_05(0xFEE1, 0x0000);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(item, 0x000F);
		UcMessage("\"Thou art nearly dead, Avatar!\"");
		UcSay;
		UcMessage("\"Yield to me, and perhaps I shall spare thy life! Dost thou yield?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0400_0969;
		UcMessage("\"I always knew that thou wert a coward!\"");
		UcSay;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x67, 0x23, 0x6A, 0x23, 0x67], 0x0001);
		var0000 = UI_set_npc_prop_29(0xFE9C, 0x0003, 0x000A);
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x07DA], 0x000A);
		Func097F(item, "@Die, fool!@", 0x0000);
		goto labelFunc0400_09A2;
	labelFunc0400_0969:
		Func097F(item, "@Damn thee!@", 0x0000);
		var0000 = UI_set_npc_prop_29(0xFE9C, 0x0003, 0x000A);
		gflags[021F] = true;
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07DA], 0x000A);
		gflags[021E] = false;
	labelFunc0400_09A2:
		abrt();
	labelFunc0400_09A3:
		if(!(Func0994() == 0x0003)) goto labelFunc0400_0B32;
		if(!gflags[0007]) goto labelFunc0400_0A25;
		var0000 = UI_game_hour_45();
		if(!(var0000 > 0x000A)) goto labelFunc0400_09D5;
		var0003 = (0x000A + (0x0018 - var0000));
		goto labelFunc0400_09DF;
	labelFunc0400_09D5:
		var0003 = (0x000A - var0000);
	labelFunc0400_09DF:
		var0000 = ((0x05DC * var0003) + (0x0019 * (0x003C - UI_game_minute_46())));
		UI_advance_time_8E(var0000);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		gflags[0007] = false;
		goto labelFunc0400_0B32;
	labelFunc0400_0A25:
		gflags[0007] = true;
		var0004 = UI_get_party_list_2B();
		enum();
	labelFunc0400_0A31:
		for (var0003 in var0004 with var001A to var001B atend labelFunc0400_0A58);
		var0000 = UI_execute_usecode_array_01(var0003, [0x61]);
		UI_set_schedule_type_25(var0003, 0x001F);
		goto labelFunc0400_0A31;
	labelFunc0400_0A58:
		gflags[0187] = true;
		var0000 = UI_create_new_object_2C(0x0281);
		if(!var0000) goto labelFunc0400_0A8C;
		var0000 = UI_set_item_quality_1D(var0000, 0x000B);
		var0000 = UI_update_last_created_2F([0x03A1, 0x06F9, 0x0008]);
	labelFunc0400_0A8C:
		var0000 = UI_create_new_object_2C(0x031D);
		if(!var0000) goto labelFunc0400_0ABC;
		var0000 = UI_set_item_quality_1D(var0000, 0x000C);
		var0000 = UI_update_last_created_2F([0x03A1, 0x06F7, 0x0008]);
	labelFunc0400_0ABC:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0004), [0x55, 0x07DC], 0x012C);
		var0000 = Func0992(0x0001, 0x0000, 0x0000, true);
		Func097F(var0000, "@Wake up!@", 0x0004);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x59, 0x0000, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x52, "@Oh, mine head...@"]);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0400], 0x0005);
		abrt();
	labelFunc0400_0B32:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern Func0829 0x829 ();
extern Func09B4 0x9B4 (var var0000);
extern Func092B 0x92B ();
extern var Func0994 0x994 ();

Func0401 0x401 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_get_npc_id_BC(Dupre);
	var0001 = Func0954();
	var0002 = Func0953();
	var0003 = UI_is_pc_female_6F();
	if(!(event == 0x0007)) goto labelFunc0401_0061;
	if(!gflags[0083]) goto labelFunc0401_0061;
	var0004 = UI_get_oppressor_5C(Dupre);
	var0004 = (0x0000 - var0004);
	if(!(!gflags[0007])) goto labelFunc0401_005C;
	gflags[0007] = true;
	Func0936(UI_get_npc_object_23(var0004), UI_get_npc_object_23(Dupre));
	exit2();
	labelFunc0401_005C:
		Func092E(item);
		exit2();
	labelFunc0401_0061:
		if(!(event == 0x0001)) goto labelFunc0401_010D;
		UI_item_say_4D(0xFE9C, "@Dupre...@");
		Dupre;
		calle();
		if(!(!UI_get_item_flag_A3(Dupre, 0x001E))) goto labelFunc0401_00A8;
		Func097F(Dupre, (("@Yes, " + var0001) + "?@"), 0x0002);
		UI_set_schedule_type_25(Dupre, 0x0003);
		goto labelFunc0401_010D;
	labelFunc0401_00A8:
		var0005 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0005 == 0x0001)) goto labelFunc0401_00CB;
		Func097F(Dupre, "@Bring to me a woman!@", 0x0002);
	labelFunc0401_00CB:
		if(!(var0005 == 0x0002)) goto labelFunc0401_00E1;
		Func097F(Dupre, "@I will slay you all!@", 0x0002);
	labelFunc0401_00E1:
		if(!(var0005 == 0x0003)) goto labelFunc0401_00F7;
		Func097F(Dupre, "@Fulfill thy desires!@", 0x0002);
	labelFunc0401_00F7:
		if(!(var0005 == 0x0004)) goto labelFunc0401_010D;
		Func097F(Dupre, "@I must have ale!@", 0x0002);
	labelFunc0401_010D:
		if(!(event == 0x0009)) goto labelFunc0401_04C3;
		UI_show_npc_face0_05(Dupre, 0x0000);
		UI_clear_item_say_4E(Dupre);
		if(!UI_get_item_flag_A3(Dupre, 0x0006)) goto labelFunc0401_0147;
		UI_set_schedule_type_25(Dupre, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0401_0155;
	labelFunc0401_0147:
		UI_run_schedule_B7(Dupre);
		UI_add_answer_0C("join");
	labelFunc0401_0155:
		if(!(var0000 == 0x001E)) goto labelFunc0401_01C7;
		UcMessage("\"How good to see thee again, ");
		UcMessage(var0001);
		UcMessage("! Knowing that thou wouldst soon return, I have waited for thee at this establishment.\"");
		UcSay;
		if(!Func0942(0xFFE2)) goto labelFunc0401_0186;
		Func094E(0xFFE2, "@And he hath developed quite a bar tab!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"One that I shall pay, worry thou not!\"");
		UcSay;
	labelFunc0401_0186:
		if(!(!gflags[0135])) goto labelFunc0401_019E;
		UcMessage("\"And I have good news for thee, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_add_answer_0C("good news");
	labelFunc0401_019E:
		UI_set_npc_id_BD(Dupre, 0x0000);
		UI_add_to_party_26(Dupre);
		gflags[0017] = true;
		UI_remove_answer_0D("join");
		UI_add_answer_0C(["leave"]);
		goto labelFunc0401_027A;
	labelFunc0401_01C7:
		if(!(gflags[0006] && (!gflags[00B7]))) goto labelFunc0401_0235;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("! I thought I would never find thee!\"");
		UcSay;
		UcMessage("\"When that strange storm struck, there was a flash, and then I found myself in a wilderness.\"");
		UcSay;
		UcMessage("\"Fearing to be slain by the Goblins patrolling the woods, I instead took shelter in this walled city. But these Pikemen insist on escorting me to their leader!\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFBB)) goto labelFunc0401_0207;
		UI_show_npc_face1_06(0xFFBB, 0x0000);
		UcMessage("\"That is all right. If thou art with my friend here, thou needest not speak with me.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0401_0207:
		UI_add_to_party_26(Dupre);
		UI_remove_answer_0D("join");
		UI_add_answer_0C("leave");
		UI_set_new_schedules_B6(Dupre, 0x0000, 0x001A, [0x097C, 0x0464]);
		goto labelFunc0401_027A;
	labelFunc0401_0235:
		var0006 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0006 == 0x0001)) goto labelFunc0401_0250;
		UcMessage("\"This is no time for idle chat. We're on a quest!\"");
		UcSay;
	labelFunc0401_0250:
		if(!(var0006 == 0x0002)) goto labelFunc0401_025E;
		UcMessage("\"This must wait. There is no time for delay!\"");
		UcSay;
	labelFunc0401_025E:
		if(!(var0006 == 0x0003)) goto labelFunc0401_026C;
		UcMessage("\"We must press on, Avatar!\"");
		UcSay;
	labelFunc0401_026C:
		if(!(var0006 == 0x0004)) goto labelFunc0401_027A;
		UcMessage("\"The Sands of Time are dwindling! We must hurry!\"");
		UcSay;
	labelFunc0401_027A:
		if(!(UI_get_npc_id_BC(Shamino) == 0x001E)) goto labelFunc0401_028F;
		UI_add_answer_0C("Shamino's whereabouts");
	labelFunc0401_028F:
		if(!(UI_get_npc_id_BC(Iolo) == 0x001E)) goto labelFunc0401_02A4;
		UI_add_answer_0C("Iolo's whereabouts");
	labelFunc0401_02A4:
		if(!(UI_get_npc_id_BC(0xFFDE) == 0x001E)) goto labelFunc0401_02B9;
		UI_add_answer_0C("Boydon's whereabouts");
	labelFunc0401_02B9:
		if(!(gflags[0017] && ((!UI_get_item_flag_A3(Dupre, 0x0006)) && UI_get_cont_items_33(Dupre, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc0401_02E3;
		UI_add_answer_0C("belongings");
	labelFunc0401_02E3:
		UI_add_answer_0C(["bye"]);
	labelFunc0401_02ED:
		UcAsk;
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		Func0829();
	labelFunc0401_0302:
		cmps("good news");
		UI_remove_answer_0D("good news");
		if(!(UI_get_item_flag_A3(Iolo, 0x0006) || (UI_get_npc_id_BC(Iolo) == 0x001E))) goto labelFunc0401_0331;
		UcMessage("\"But I should let Iolo tell thee...\"");
		UcSay;
		goto labelFunc0401_0341;
	labelFunc0401_0331:
		UcMessage("\"The wizard Gustacio hath agreed to aid us, if we will but assist him in his experiments.\"");
		UcSay;
		UcMessage("\"He bet with me that thou wouldst not survive Freedom, but I told him that thou wert made of tougher stuff than any dungeon!\"");
		UcSay;
		UcMessage("\"I think thy survival shall impress him...\"");
		UcSay;
		gflags[0135] = true;
	labelFunc0401_0341:
		cmps("join");
		if(!(gflags[0082] && (!gflags[004A]))) goto labelFunc0401_0380;
		UcMessage("\"But Sir Shmed said that the Test is only for one, ");
		UcMessage(var0001);
		UcMessage("! I cannot come with thee.\"");
		UcSay;
		Func094E(Shmed, "@Thou must enter alone, stranger.@");
		Func097F(Shmed, "@Alone!@", 0x0000);
		Func097F(Dupre, "@Be brave!@", 0x0000);
		abrt();
	labelFunc0401_0380:
		UI_remove_answer_0D("join");
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0401_03AF;
		UI_add_answer_0C("leave");
		UcMessage("\"With great pride!\"");
		UcSay;
		UI_add_to_party_26(Dupre);
		gflags[0017] = true;
		goto labelFunc0401_03C3;
	labelFunc0401_03AF:
		UcMessage("\"But thou hast so many companions, ");
		UcMessage(var0002);
		UcMessage("! I shall only be in thy way.\"");
		UcSay;
		UcMessage("\"'Twould be better for me to remain where I am, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0401_03C3:
		cmps("leave");
		UI_remove_answer_0D("leave");
		if(!(!gflags[0006])) goto labelFunc0401_03E0;
		UcMessage("\"Leave thee at a time such as this? Surely, thou dost jest. Onward!\"");
		UcSay;
		goto labelFunc0401_03FB;
	labelFunc0401_03E0:
		UI_add_answer_0C("join");
		UcMessage("\"I hesitate to leave thee. But if thou dost insist...\"");
		UcSay;
		UI_remove_from_party_27(Dupre);
		Func0829();
		Func09B4(Dupre);
	labelFunc0401_03FB:
		cmps("Shamino's whereabouts");
		UI_remove_answer_0D("Shamino's whereabouts");
		if(!gflags[012B]) goto labelFunc0401_0414;
		UcMessage("\"I have exciting news -- the monks have returned Shamino to us again, healthy and whole! This he can explain to thee.\"");
		UcSay;
	labelFunc0401_0414:
		UcMessage("\"Not being as patient as I am, ");
		UcMessage(var0001);
		UcMessage(", our good friend Shamino hath gone into the woods to hunt wild game.\"");
		UcSay;
		UcMessage("\"He went west from here, towards the magic woods.\"");
		UcSay;
	labelFunc0401_0422:
		cmps("Iolo's whereabouts");
		UI_remove_answer_0D("Iolo's whereabouts");
		UcMessage("\"The good bard was very disturbed by thy sudden departure, and hath been questioning the Mages constantly as to thy fate.\"");
		UcSay;
		UcMessage("\"He hath gained the friendship of the Sorcerer Gustacio, and hath taken to aiding that worthy in his studies. We can find him there.\"");
		UcSay;
	labelFunc0401_0439:
		cmps("Boydon's whereabouts");
		UI_remove_answer_0D("Boydon's whereabouts");
		UcMessage("\"Thou wouldst never believe it! Boydon hath become very friendly with young Bucia of the Canton, and spends much time with her.\"");
		UcSay;
		UcMessage("\"If we can find her, then we shall find him!\"");
		UcSay;
	labelFunc0401_0450:
		cmps("bye");
		if(!(gflags[0006] && (!gflags[00B7]))) goto labelFunc0401_0498;
		UcMessage("\"Before we go any farther, Avatar, I think we should take stock of our supplies.\"");
		UcSay;
		UcMessage("\"That blasted storm exchanged all of mine equipment for useless refuse! Even mine enchanted shield!\"");
		UcSay;
		UcMessage("\"We cannot hope to survive long without the proper equipment. Perhaps if we can find where this rubbish came from, we can find our good equipment.\"");
		UcSay;
		UcMessage("\"I shall prepare a list.\"");
		UcSay;
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc0401_0491;
		Func094E(Shamino, "@I have already begun one.@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then I shall add to it.\"");
		UcSay;
	labelFunc0401_0491:
		Func092B();
		gflags[00B7] = true;
	labelFunc0401_0498:
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@That's all for now.@", 0x0000);
		Func097F(Dupre, (("@Yes, " + var0001) + "."), 0x0002);
		goto labelFunc0401_04C2;
	labelFunc0401_04BF:
		goto labelFunc0401_02ED;
	labelFunc0401_04C2:
		end_conv();
	labelFunc0401_04C3:
		if(!(event == 0x0003)) goto labelFunc0401_04FA;
		var0007 = Func0994();
		if(!(var0007 == 0x0016)) goto labelFunc0401_04FA;
		UI_show_npc_face0_05(Dupre, 0x0000);
		UcMessage("\"Unholy creatures!	We must destroy these foul skeletons, Avatar!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Dupre, "@I hate skeletons!@", 0x0002);
		abrt();
	labelFunc0401_04FA:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern var Func0994 0x994 ();
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func092B 0x92B ();
extern Func09AA 0x9AA ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0863 0x863 ();
extern Func094E 0x94E (var var0000, var var0001);
extern Func09B4 0x9B4 (var var0000);

Func0402 0x402 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = UI_get_npc_id_BC(Shamino);
	var0001 = Func0954();
	var0002 = UI_is_pc_female_6F();
	var0003 = Func0953();
	var0004 = UI_part_of_day_48();
	if(!((event == 0x0007) && UI_get_item_flag_A3(Shamino, 0x001D))) goto labelFunc0402_0135;
	if(!gflags[0083]) goto labelFunc0402_0076;
	var0005 = UI_get_oppressor_5C(Shamino);
	var0005 = (0x0000 - var0005);
	if(!(!gflags[0007])) goto labelFunc0402_006E;
	gflags[0007] = true;
	Func0936(UI_get_npc_object_23(var0005), UI_get_npc_object_23(Shamino));
	exit2();
	labelFunc0402_006E:
		Func092E(item);
		exit2();
		goto labelFunc0402_0135;
	labelFunc0402_0076:
		if(!gflags[025B]) goto labelFunc0402_0135;
		if(!((Func0994() != 0x0010) && ((!gflags[0004]) && (Func0994() != 0x0018)))) goto labelFunc0402_011E;
		UI_show_npc_face0_05(0xFEE2, 0x0000);
		UcMessage("\"Do not die, my sweet King...\"");
		UcSay;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Beatrix, is that thee?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I forgive thee for deserting us, King Shamino. To prove that my love for thee is stronger than eternity, I shall heal thee of thy wounds.\"");
		UcSay;
		UcMessage("\"Keep this book as a keepsake between us. Now I must go into the Void, but remember me always...\"");
		UcSay;
		var0006 = Func095C(Shamino, 0x0000);
		var0007 = Func095C(Shamino, 0x0003);
		var0008 = (var0006 - var0007);
		Func095E(Shamino, 0x0003, var0008);
		var0009 = Func099B(Shamino, 0x0001, 0x0282, 0x003F, 0x0000, 0x0000, true);
		gflags[025B] = false;
		gflags[025C] = true;
		UI_clear_item_flag_A5(Shamino, 0x001D);
		goto labelFunc0402_0135;
	labelFunc0402_011E:
		UI_clear_item_flag_A5(Shamino, 0x001D);
		UI_reduce_health_87(Shamino, 0x0032, 0x0000);
	labelFunc0402_0135:
		if(!(event == 0x0001)) goto labelFunc0402_01E1;
		UI_item_say_4D(0xFE9C, "Shamino...");
		Shamino;
		calle();
		if(!(!UI_get_item_flag_A3(Shamino, 0x001E))) goto labelFunc0402_017C;
		Func097F(Shamino, (("@Yes, " + var0003) + "?"), 0x0002);
		UI_set_schedule_type_25(Shamino, 0x0003);
		goto labelFunc0402_01E1;
	labelFunc0402_017C:
		var000A = UI_die_roll_17(0x0001, 0x0004);
		if(!(var000A == 0x0001)) goto labelFunc0402_019F;
		Func097F(Shamino, "@Backward, not forward!@", 0x0002);
	labelFunc0402_019F:
		if(!(var000A == 0x0002)) goto labelFunc0402_01B5;
		Func097F(Shamino, "@Free thyselves!@", 0x0002);
	labelFunc0402_01B5:
		if(!(var000A == 0x0003)) goto labelFunc0402_01CB;
		Func097F(Shamino, "@Chaos reigns!@", 0x0002);
	labelFunc0402_01CB:
		if(!(var000A == 0x0004)) goto labelFunc0402_01E1;
		Func097F(Shamino, "@Take from the rich!@", 0x0002);
	labelFunc0402_01E1:
		if(!(event == 0x0009)) goto labelFunc0402_0658;
		UI_clear_item_say_4E(Shamino);
		if(!UI_get_item_flag_A3(Shamino, 0x0006)) goto labelFunc0402_0211;
		UI_set_schedule_type_25(Shamino, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0402_021F;
	labelFunc0402_0211:
		UI_run_schedule_B7(Shamino);
		UI_add_answer_0C("join");
	labelFunc0402_021F:
		UI_show_npc_face0_05(Shamino, 0x0000);
		if(!(gflags[0006] && (!gflags[02A2]))) goto labelFunc0402_0295;
		UcMessage("\"Avatar! Art thou all right? I heard what sounded like the explosions of a volcano -- and look at all the fire here...\"");
		UcSay;
		UcMessage("\"I have been searching all over for thee! That storm hath left me quite disconcerted. I can find neither Iolo nor Dupre.\"");
		UcSay;
		UcMessage("\"And, to make matters worse, nothing remains of the equipment that Lord British gave us! It hath all been replaced by strange items that I do not recognize.\"");
		UcSay;
		UcMessage("\"Perhaps thou shouldst inspect thine equipment as well! I shall make a list of what we have.\"");
		UcSay;
		var0009 = Func099B(0xFE9C, 0x0001, 0x031D, 0x00BD, 0x0000, 0x0000, true);
		Func092B();
		gflags[02A2] = true;
		Func097F(Shamino, "@Such strangeness!@", 0x0000);
		Func09AA();
		UI_add_to_party_26(Shamino);
		gflags[0018] = true;
		UI_set_new_schedules_B6(Shamino, 0x0000, 0x001A, [0x097C, 0x0464]);
		abrt();
	labelFunc0402_0295:
		if(!(var0000 == 0x001E)) goto labelFunc0402_033A;
		UcMessage("\"Thou hast escaped the foul mages' prison swiftly, indeed. Most wonderful!\"");
		UcSay;
		UcMessage("\"Of course, I never doubted that thou wouldst return...\"");
		UcSay;
		UcMessage("\"I also have news, ");
		UcMessage(var0001);
		UcMessage(". I bear a message, as well as two presents.\"");
		UcSay;
		var000B = false;
		var000C = false;
		UI_add_answer_0C(["message", "presents"]);
		if(!(!gflags[0135])) goto labelFunc0402_02D4;
		UI_add_answer_0C("news");
	labelFunc0402_02D4:
		if(!gflags[013A]) goto labelFunc0402_02E1;
		UI_add_answer_0C("How didst thou arrive?");
	labelFunc0402_02E1:
		if(!gflags[012B]) goto labelFunc0402_02EE;
		UI_add_answer_0C("death");
	labelFunc0402_02EE:
		UI_remove_answer_0D("join");
		goto labelFunc0402_03B9;
	labelFunc0402_02F8:
		UI_add_to_party_26(Shamino);
		gflags[0018] = true;
		UI_set_npc_id_BD(Shamino, 0x0000);
		var0009 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x000A);
		Func097F(Shamino, "@Welcome back!@", 0x0000);
		abrt();
		goto labelFunc0402_0344;
	labelFunc0402_033A:
		UcMessage("\"I am ready to provide whatever aid I can, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0402_0344:
		if(!(UI_get_npc_id_BC(Dupre) == 0x001E)) goto labelFunc0402_0359;
		UI_add_answer_0C("Dupre's whereabouts");
	labelFunc0402_0359:
		if(!(UI_get_npc_id_BC(Iolo) == 0x001E)) goto labelFunc0402_036E;
		UI_add_answer_0C("Iolo's whereabouts");
	labelFunc0402_036E:
		if(!(UI_get_npc_id_BC(0xFFDE) == 0x001E)) goto labelFunc0402_0383;
		UI_add_answer_0C("Boydon's whereabouts");
	labelFunc0402_0383:
		if(!((!UI_get_item_flag_A3(Shamino, 0x0006)) && (UI_get_cont_items_33(Shamino, 0xFE99, 0xFE99, 0xFE99) && (gflags[0018] == true)))) goto labelFunc0402_03AF;
		UI_add_answer_0C("belongings");
	labelFunc0402_03AF:
		UI_add_answer_0C(["bye"]);
	labelFunc0402_03B9:
		UcAsk;
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		Func0863();
	labelFunc0402_03CE:
		cmps("How didst thou arrive?");
		UI_remove_answer_0D("How didst thou arrive?");
		UcMessage("\"The monks came and brought me here, saying that it was vitally important for me to be here.\"");
		UcSay;
		UcMessage("\"The one called Karnax said that I must fulfill my purpose, or the world itself would be in jeopardy...\"");
		UcSay;
		if(!(var000B && var000C)) goto labelFunc0402_03F2;
		goto labelFunc0402_02F8;
	labelFunc0402_03F2:
		cmps("death");
		UI_remove_answer_0D("death");
		UcMessage("\"That is right, I was dead when last we saw one another. However, the good monks found my body and returned life to me.\"");
		UcSay;
		if(!(var000B && var000C)) goto labelFunc0402_0412;
		goto labelFunc0402_02F8;
	labelFunc0402_0412:
		cmps("news");
		UI_remove_answer_0D("news");
		if(!UI_get_item_flag_A3(Iolo, 0x0006)) goto labelFunc0402_0435;
		UcMessage("\"To be honest, this is not my news -- it belongs to our good friend, the Bard. Thou shouldst ask Iolo.\"");
		UcSay;
		goto labelFunc0402_0456;
	labelFunc0402_0435:
		if(!(UI_get_npc_id_BC(Iolo) == 0x001E)) goto labelFunc0402_044A;
		UcMessage("\"Quickly, let us find Iolo. He can tell thee all about the discovery!\"");
		UcSay;
		goto labelFunc0402_0456;
	labelFunc0402_044A:
		UcMessage("\"The Mages of this place are not friendly toward outsiders, but thy survival shall surely impress them.\"");
		UcSay;
		UcMessage("\"Particularly, I am sure that the one known as Gustacio will be inclined to help us now. Let us seek him out.\"");
		UcSay;
		gflags[0135] = true;
	labelFunc0402_0456:
		if(!(var000B && var000C)) goto labelFunc0402_0463;
		goto labelFunc0402_02F8;
	labelFunc0402_0463:
		cmps("message");
		UI_remove_answer_0D("message");
		var000B = true;
		if(!var0002) goto labelFunc0402_0487;
		UcMessage("\"I have had the chance to spend a few hours in the company of the Mage Frigidazzi, on whose account thou hast been imprisoned.\"");
		UcSay;
		UcMessage("\"She asked me to convey her apologies to thee, and to present thee with three gifts.\"");
		UcSay;
		goto labelFunc0402_0499;
	labelFunc0402_0487:
		UcMessage("\"The Sorceress Frigidazzi met secretly with me, and expressed her sorrow at what had been done to thee.\"");
		UcSay;
		UcMessage("\"I think she likes thee, ");
		UcMessage(var0001);
		UcMessage(". But with that MageLord around, she doth not dare to see thee again!\"");
		UcSay;
		UcMessage("\"As a sign of her regret for what hath happened -- jail and all -- she sent three gifts to thee.\"");
		UcSay;
	labelFunc0402_0499:
		if(!(var000B && var000C)) goto labelFunc0402_04A6;
		goto labelFunc0402_02F8;
	labelFunc0402_04A6:
		cmps("presents");
		UI_remove_answer_0D("presents");
		var000C = true;
		if(!var0002) goto labelFunc0402_04CE;
		UcMessage("\"These earrings are of ancient devising, and I was told that they would be most flattering to thee.\"");
		UcSay;
		UcMessage("\"Note that they are engraved with serpentine runes, milady.\"");
		UcSay;
		UcMessage("\"There is also a magic scroll, upon which is inscribed a spell to protect against heat. This we shall need ere we venture into the subterranean passageways.\"");
		UcSay;
		goto labelFunc0402_04DA;
	labelFunc0402_04CE:
		UcMessage("\"I bear three gifts from thine admirer -- a magic scroll, an earring, and a note.\"");
		UcSay;
		UcMessage("\"The scroll bears a spell of protection against heat, and should be most useful.\"");
		UcSay;
		UcMessage("\"As for the earring, it is inscribed with serpentine runes of ancient design.\"");
		UcSay;
	labelFunc0402_04DA:
		UcMessage("\"Lastly, there is a note, but its contents are not known to me.\"");
		UcSay;
		UcMessage("\"Here they are...\"");
		UcSay;
		var0009 = Func099B(0xFE9C, 0x0001, 0x027B, 0xFE99, 0x0000, 0x0000, true);
		var0009 = Func099B(0xFE9C, 0x0001, 0x031D, 0x00CD, 0x0006, 0x0000, true);
		var0009 = Func099B(0xFE9C, 0x0001, 0x02CB, 0x0010, 0x0000, 0x0000, true);
		gflags[014B] = true;
		if(!(var000B && var000C)) goto labelFunc0402_053E;
		goto labelFunc0402_02F8;
	labelFunc0402_053E:
		cmps("join");
		if(!(gflags[0082] && (!gflags[004A]))) goto labelFunc0402_057D;
		UcMessage("\"And disregard the rules of the Test of Knighthood? ");
		UcMessage(var0001);
		UcMessage(", I am shocked.\"");
		UcSay;
		Func094E(Shmed, "@Thou must go alone.@");
		Func097F(Shmed, "@Alone!@", 0x0000);
		Func097F(Shamino, "@Shocked!@", 0x0002);
		abrt();
	labelFunc0402_057D:
		UI_remove_answer_0D("join");
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0402_05AC;
		UI_add_answer_0C("leave");
		UcMessage("\"Most gratefully!\"");
		UcSay;
		UI_add_to_party_26(Shamino);
		gflags[0018] = true;
		goto labelFunc0402_05B4;
	labelFunc0402_05AC:
		UcMessage("\"I would join with thee, old friend, but I can see that thou already hast a large party.\"");
		UcSay;
		UcMessage("\"A woodsman like myself would feel uncomfortable travelling with such a large group. I will remain here, instead.\"");
		UcSay;
	labelFunc0402_05B4:
		cmps("leave");
		UI_remove_answer_0D("leave");
		if(!(!gflags[0006])) goto labelFunc0402_05D1;
		UcMessage("\"But we have barely begun, Avatar! How can I stand idly here while the adventure awaits?\"");
		UcSay;
		goto labelFunc0402_05EC;
	labelFunc0402_05D1:
		UI_add_answer_0C("join");
		UcMessage("\"If that is what thou dost wish...\"");
		UcSay;
		UI_remove_from_party_27(Shamino);
		Func0863();
		Func09B4(Shamino);
	labelFunc0402_05EC:
		cmps("Dupre's whereabouts");
		UI_remove_answer_0D("Dupre's whereabouts");
		UcMessage("\"Thou knowest our good friend! He hath deposited himself at the Blue Boar Inn, and hath been trying out the local brews!\"");
		UcSay;
	labelFunc0402_05FF:
		cmps("Iolo's whereabouts");
		UI_remove_answer_0D("Iolo's whereabouts");
		UcMessage("\"Iolo hath struck up a friendship with the Mage Gustacio, from whom he is learning much about the storms which plague this land.\"");
		UcSay;
		UcMessage("\"I expect we could find him at Gustacio's manor.\"");
		UcSay;
	labelFunc0402_0616:
		cmps("Boydon's whereabouts");
		UI_remove_answer_0D("Boydon's whereabouts");
		UcMessage("\"Why, that magical creation doth have a budding romance with the shopgirl from the Canton!\"");
		UcSay;
		UcMessage("\"If the shop is open when we arrive there, Boydon will almost certainly be there.\"");
		UcSay;
	labelFunc0402_062D:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thanks!@", 0x0000);
		Func097F(Shamino, "@Any time.@", 0x0002);
		goto labelFunc0402_0657;
	labelFunc0402_0654:
		goto labelFunc0402_03B9;
	labelFunc0402_0657:
		end_conv();
	labelFunc0402_0658:
		if(!(event == 0x0003)) goto labelFunc0402_06B7;
		var000D = Func0994();
		if(!(var000D == 0x0016)) goto labelFunc0402_068F;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"We are beset by dragons, Avatar! We must slay them quickly!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Shamino, "@I hate dragons!@", 0x0002);
		abrt();
	labelFunc0402_068F:
		if(!(var000D == 0x0010)) goto labelFunc0402_06B7;
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"It hath been so long I barely recognize this place, like somewhere from a dream. I do recall that there is an illusory door west of the castle gates near a big tree.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Shamino, "@Somewhere around here...@", 0x0003);
	labelFunc0402_06B7:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0906 0x906 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0942 0x942 (var var0000);
extern Func092B 0x92B ();
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0977 0x977 (var var0000);
extern Func09B4 0x9B4 (var var0000);
extern var Func0957 0x957 (var var0000);
extern Func09B0 0x9B0 (var var0000);
extern var Func0994 0x994 ();

Func0403 0x403 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	var0000 = UI_get_npc_id_BC(Iolo);
	var0001 = Func0954();
	var0002 = Func0953();
	if(!(event == 0x0007)) goto labelFunc0403_005A;
	if(!gflags[0083]) goto labelFunc0403_005A;
	var0003 = UI_get_oppressor_5C(Iolo);
	var0003 = (0x0000 - var0003);
	if(!(!gflags[0007])) goto labelFunc0403_0055;
	gflags[0007] = true;
	Func0936(UI_get_npc_object_23(var0003), UI_get_npc_object_23(Iolo));
	exit2();
	labelFunc0403_0055:
		Func092E(item);
		exit2();
	labelFunc0403_005A:
		if(!(event == 0x0001)) goto labelFunc0403_01D4;
		Func097F(0xFE9C, "@Dear friend...@", 0x0000);
		Iolo;
		calle();
		if(!(!UI_get_item_flag_A3(Iolo, 0x001E))) goto labelFunc0403_0172;
		if(!(gflags[0006] && (!gflags[0078]))) goto labelFunc0403_0159;
		var0004 = false;
		var0005 = UI_find_nearby_41(Iolo, 0x0178, 0x000F, 0x0000);
		enum();
	labelFunc0403_00A5:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0403_00D0);
		if(!((UI_get_item_quality_1C(var0008) == 0x0068) && (Func0906(var0008) != 0x0002))) goto labelFunc0403_00CD;
		var0004 = true;
	labelFunc0403_00CD:
		goto labelFunc0403_00A5;
	labelFunc0403_00D0:
		var0005 = UI_find_nearby_41(Iolo, 0x010E, 0x000F, 0x0000);
		enum();
	labelFunc0403_00E4:
		for (var0008 in var0005 with var0009 to var000A atend labelFunc0403_0104);
		if(!(UI_get_item_quality_1C(var0008) == 0x0068)) goto labelFunc0403_0101;
		var0004 = true;
	labelFunc0403_0101:
		goto labelFunc0403_00E4;
	labelFunc0403_0104:
		if(!var0004) goto labelFunc0403_0123;
		Func097F(Iolo, "@I am free!@", 0x0002);
		UI_set_schedule_type_25(Iolo, 0x0003);
		goto labelFunc0403_0156;
	labelFunc0403_0123:
		Iolo;
		calle();
		Func097F(Iolo, "@Help me, Avatar!@", 0x0002);
		var000B = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x55, 0x01D1], 0x0007);
		UI_set_schedule_type_25(Iolo, 0x000F);
	labelFunc0403_0156:
		goto labelFunc0403_016F;
	labelFunc0403_0159:
		Func097F(Iolo, "@Yes?@", 0x0002);
		UI_set_schedule_type_25(Iolo, 0x0003);
	labelFunc0403_016F:
		goto labelFunc0403_01D4;
	labelFunc0403_0172:
		var000C = UI_get_random_00(0x0004);
		if(!(var000C == 0x0001)) goto labelFunc0403_0192;
		Func097F(Iolo, "@Wrong is right!@", 0x0002);
	labelFunc0403_0192:
		if(!(var000C == 0x0002)) goto labelFunc0403_01A8;
		Func097F(Iolo, "@Life is a farce!@", 0x0002);
	labelFunc0403_01A8:
		if(!(var000C == 0x0003)) goto labelFunc0403_01BE;
		Func097F(Iolo, "@Sing the dirge of love...@", 0x0002);
	labelFunc0403_01BE:
		if(!(var000C == 0x0004)) goto labelFunc0403_01D4;
		Func097F(Iolo, "@Futility is the answer!@", 0x0002);
	labelFunc0403_01D4:
		if(!(event == 0x0009)) goto labelFunc0403_0A12;
		UI_clear_item_say_4E(Iolo);
		UI_clear_item_say_4E(0xFE9C);
		if(!(!gflags[0003])) goto labelFunc0403_02AF;
		UI_init_conversation_85();
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"'Twas a fearsome passage, ");
		UcMessage(var0002);
		UcMessage(". After we sailed between the Serpent Pillars, I could have sworn that we were flying...\"");
		UcSay;
		UcMessage("\"Yet here we are on the ship. I wonder if I lost anything...\"");
		UcSay;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"We may be on the ship, but the ship is upon dry land! I think that thou art correct, Iolo. We did fly!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Brrr. Dost thou notice the chill in the air? 'Tis much colder here than at home.\"");
		UcSay;
		UcMessage("\"I hope Gwenno brought enough warm clothing...\"");
		UcSay;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Do not worry so, old friend. We shall find thy wife soon enough.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"And that fiend, Batlin, I hope!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Look, ");
		UcMessage(var0002);
		UcMessage("! A strange storm is nearly upon us. This is certainly not Britannia!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Shamino, "@Where are we?@", 0x0005);
		Func097F(Dupre, "@Let us find Batlin!@", 0x000F);
		Func097F(Iolo, "@Do not forget about Gwenno...@", 0x0023);
		UI_add_to_party_26(Iolo);
		UI_add_to_party_26(Dupre);
		UI_add_to_party_26(Shamino);
		gflags[0003] = true;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		abrt();
	labelFunc0403_02AF:
		if(!(gflags[0006] && (!gflags[0078]))) goto labelFunc0403_0351;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"I thank thee for freeing me from this hellhole! The natives of this place are ignorant sots. Imagine, thinking me to be a sorcerer!\"");
		UcSay;
		UcMessage("\"Hast thou looked in thy packs since the storm, ");
		UcMessage(var0001);
		UcMessage("? Nothing in my backpack is as it was when Lord British gave us the list, Avatar!\"");
		UcSay;
		if(!Func0942(Shamino)) goto labelFunc0403_02FB;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"I am making a list of the strange items which the storm gave us.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then I shall add to it.\"");
		UcSay;
		goto labelFunc0403_0328;
	labelFunc0403_02FB:
		if(!Func0942(Dupre)) goto labelFunc0403_0324;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"I have a list of the strange items which the storm gave us.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I shall add to it.\"");
		UcSay;
		goto labelFunc0403_0328;
	labelFunc0403_0324:
		UcMessage("\"I shall make a list of the strange things I have found in my packs. Perhaps these are clues to where our real belongings have gone.\"");
		UcSay;
	labelFunc0403_0328:
		UI_add_to_party_26(Iolo);
		UI_set_new_schedules_B6(Iolo, 0x0000, 0x001A, [0x097C, 0x0464]);
		gflags[0019] = true;
		Func092B();
		gflags[0078] = true;
		abrt();
	labelFunc0403_0351:
		UI_show_npc_face0_05(Iolo, 0x0000);
		if(!UI_get_item_flag_A3(Iolo, 0x0006)) goto labelFunc0403_037C;
		UI_set_schedule_type_25(Iolo, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0403_038A;
	labelFunc0403_037C:
		UI_run_schedule_B7(Iolo);
		UI_add_answer_0C("join");
	labelFunc0403_038A:
		if(!(var0000 == 0x001E)) goto labelFunc0403_03F8;
		UI_remove_answer_0D("join");
		UcMessage("\"Thank the Virtues! Thou art whole and hale, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"I feared that I had lost both thee and my beloved wife, but thou hast survived the depths even as Dupre assured me that thou wouldst...\"");
		UcSay;
		if(!Func0942(0xFFEA)) goto labelFunc0403_03CB;
		UI_show_npc_face1_06(0xFFEA, 0x0000);
		UcMessage("\"'Tis said that only a superb Mage can leave the Mountains of Freedom alive.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0403_03CB:
		UcMessage("\"The Sorcerer Gustacio hath been instructing me somewhat in the magic of this land, ");
		UcMessage(var0001);
		UcMessage(". I think that he doth have information that shall interest thee.\"");
		UcSay;
		gflags[0135] = true;
		UI_set_npc_id_BD(Iolo, 0x0000);
		UI_add_to_party_26(Iolo);
		gflags[0019] = true;
		UI_add_answer_0C("leave");
		goto labelFunc0403_0409;
	labelFunc0403_03F8:
		UcMessage("\"Wouldst thou enjoy some idle conversation, ");
		UcMessage(var0001);
		UcMessage(", or shall I embrace my lute and provide a musical interlude?\"");
		UcSay;
		UI_add_answer_0C("a song");
	labelFunc0403_0409:
		if(!(UI_get_npc_id_BC(Shamino) == 0x001E)) goto labelFunc0403_041E;
		UI_add_answer_0C("Shamino's whereabouts");
	labelFunc0403_041E:
		if(!(UI_get_npc_id_BC(Dupre) == 0x001E)) goto labelFunc0403_0433;
		UI_add_answer_0C("Dupre's whereabouts");
	labelFunc0403_0433:
		if(!(UI_get_npc_id_BC(0xFFDE) == 0x001E)) goto labelFunc0403_0448;
		UI_add_answer_0C("Boydon's whereabouts");
	labelFunc0403_0448:
		if(!(gflags[0019] && (UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99) && (!UI_get_item_flag_A3(Iolo, 0x0006))))) goto labelFunc0403_0472;
		UI_add_answer_0C("belongings");
	labelFunc0403_0472:
		UI_show_npc_face0_05(Iolo, 0x0000);
		UI_add_answer_0C(["Gwenno", "bye"]);
	labelFunc0403_0489:
		UcAsk;
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		if(!UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0403_05C3;
		UcMessage("\"I am carrying many items, some of which may be of use to thee. Wouldst thou care to have these?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0403_05BB;
		UcMessage("\"Here they are.\"");
		UcSay;
		gflags[0019] = false;
		var000D = [false, 0x0000];
		var000E = UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc0403_04DE:
		for (var0011 in var000E with var000F to var0010 atend labelFunc0403_0570);
		if(!(!((UI_get_item_shape_18(var0011) == 0x0128) && (UI_get_item_frame_1A(var0011) == 0x0002)))) goto labelFunc0403_056D;
		var000B = Func099B(0xFE9C, UI_get_item_quantity_1E(var0011, 0x0000), UI_get_item_shape_18(var0011), UI_get_item_quality_1C(var0011), UI_get_item_frame_1A(var0011), UI_get_item_flag_A3(var0011, 0x0012), false);
		if(!(var000D[0x0001] == 0x0000)) goto labelFunc0403_0550;
		var000D[0x0001] = var000B[0x0001];
	labelFunc0403_0550:
		var000D[0x0002] = (var000D[0x0002] + var000B[Func0977(var000B)]);
		UI_remove_item_84(var0011);
	labelFunc0403_056D:
		goto labelFunc0403_04DE;
	labelFunc0403_0570:
		var000B = var000D;
		if(!(var000B[0x0001] != 0x0000)) goto labelFunc0403_0587;
		UcMessage("\"Thy friends will have to help carry these things.\"");
		UcSay;
	labelFunc0403_0587:
		if(!(var000B[0x0002] > 0x0000)) goto labelFunc0403_05B8;
		var000B = var000B[0x0002];
		if(!(var000B > 0x0001)) goto labelFunc0403_05B4;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var000B);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc0403_05B8;
	labelFunc0403_05B4:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc0403_05B8:
		goto labelFunc0403_05C3;
	labelFunc0403_05BB:
		gflags[0019] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask again.\"");
		UcSay;
	labelFunc0403_05C3:
		cmps("join");
		if(!(gflags[0082] && (!gflags[004A]))) goto labelFunc0403_061B;
		if(!Func0942(Shmed)) goto labelFunc0403_060A;
		UcMessage("\"But ");
		UcMessage(var0001);
		UcMessage(", the Guardian of the Test is standing right here. If thou desirest to cheat, thou shouldst at least do so	covertly...\"");
		UcSay;
		UI_show_npc_face1_06(Shmed, 0x0000);
		UcMessage("\"No cheating, stranger!\"");
		UcSay;
		UI_remove_npc_face1_08();
		Func097F(Shmed, "@No cheating!@", 0x0002);
		goto labelFunc0403_060E;
	labelFunc0403_060A:
		UcMessage("\"I cannot join thee, friend. Even if thou wouldst cheat at the Test, I cannot aid thee in so doing. I am thy true friend.\"");
		UcSay;
	labelFunc0403_060E:
		Func097F(Iolo, "@Sorry...@", 0x0000);
		abrt();
	labelFunc0403_061B:
		UI_remove_answer_0D("join");
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0403_0650;
		UI_add_answer_0C("leave");
		UcMessage("\"'Tis always an adventure to travel with thee, ");
		UcMessage(var0002);
		UcMessage("! I shall be proud to accompany thee.\"");
		UcSay;
		UI_add_to_party_26(Iolo);
		gflags[0019] = true;
		goto labelFunc0403_065E;
	labelFunc0403_0650:
		UcMessage("\"I would be glad to accompany thee, ");
		UcMessage(var0001);
		UcMessage(". However, I am an old man, and I can see that thou hast many companions at thy side.\"");
		UcSay;
		UcMessage("\"I think that perhaps I should remain where I am...\"");
		UcSay;
	labelFunc0403_065E:
		cmps("leave");
		UI_remove_answer_0D("leave");
		if(!(!gflags[0006])) goto labelFunc0403_067B;
		UcMessage("\"Thy concern for an old man is appreciated, my old friend. However, we have barely begun this adventure, and I am spry enough to keep up with thee!\"");
		UcSay;
		goto labelFunc0403_07BB;
	labelFunc0403_067B:
		UI_add_answer_0C("join");
		UcMessage("\"Whatever thou dost wish, Avatar.\"");
		UcSay;
		UI_remove_from_party_27(Iolo);
		if(!UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0403_07B5;
		UcMessage("\"I am carrying many items, some of which may be of use to thee. Wouldst thou care to have these before I depart?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0403_07AD;
		UcMessage("\"Here they are.\"");
		UcSay;
		gflags[0019] = false;
		var000D = [false, 0x0000];
		var000E = UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc0403_06D0:
		for (var0011 in var000E with var0012 to var0013 atend labelFunc0403_0762);
		if(!(!((UI_get_item_shape_18(var0011) == 0x0128) && (UI_get_item_frame_1A(var0011) == 0x0002)))) goto labelFunc0403_075F;
		var000B = Func099B(0xFE9C, UI_get_item_quantity_1E(var0011, 0x0000), UI_get_item_shape_18(var0011), UI_get_item_quality_1C(var0011), UI_get_item_frame_1A(var0011), UI_get_item_flag_A3(var0011, 0x0012), false);
		if(!(var000D[0x0001] == 0x0000)) goto labelFunc0403_0742;
		var000D[0x0001] = var000B[0x0001];
	labelFunc0403_0742:
		var000D[0x0002] = (var000D[0x0002] + var000B[Func0977(var000B)]);
		UI_remove_item_84(var0011);
	labelFunc0403_075F:
		goto labelFunc0403_06D0;
	labelFunc0403_0762:
		var000B = var000D;
		if(!(var000B[0x0001] != 0x0000)) goto labelFunc0403_0779;
		UcMessage("\"Thy friends will have to help carry these things.\"");
		UcSay;
	labelFunc0403_0779:
		if(!(var000B[0x0002] > 0x0000)) goto labelFunc0403_07AA;
		var000B = var000B[0x0002];
		if(!(var000B > 0x0001)) goto labelFunc0403_07A6;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var000B);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc0403_07AA;
	labelFunc0403_07A6:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc0403_07AA:
		goto labelFunc0403_07B5;
	labelFunc0403_07AD:
		gflags[0019] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask again.\"");
		UcSay;
	labelFunc0403_07B5:
		Func09B4(Iolo);
	labelFunc0403_07BB:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		var000B = Func0942(0xFF6B);
		if(!(UI_get_item_flag_A3(0xFF6B, 0x0006) || (var000B && (!UI_get_item_flag_A3(0xFF6B, 0x001E))))) goto labelFunc0403_07FD;
		UcMessage("\"No truer friend have I had in all of my life than thee, ");
		UcMessage(var0002);
		UcMessage(". With my lady love Gwenno returned to my side where she doth belong, my life is once again complete.\"");
		UcSay;
		goto labelFunc0403_0844;
	labelFunc0403_07FD:
		if(!(!gflags[0262])) goto labelFunc0403_080B;
		UcMessage("\"I miss Gwenno so much, Avatar. I hope that it is not long before we find her and I may hold her in mine arms again.\"");
		UcSay;
		goto labelFunc0403_0844;
	labelFunc0403_080B:
		if(!(!gflags[025F])) goto labelFunc0403_081F;
		UcMessage("\"Mine heart is broken! My life hath no meaning without my lady love! Oh, ");
		UcMessage(var0002);
		UcMessage(", how could our good and noble quest have ended in such tragedy!\"");
		UcSay;
		goto labelFunc0403_0844;
	labelFunc0403_081F:
		if(!gflags[026A]) goto labelFunc0403_082C;
		UcMessage("\"Now that we have succeeded in freeing Gwenno's body, perhaps the Monks of Monk Isle -- the self-professed masters of life and death -- may be able to help her.\"");
		UcSay;
		goto labelFunc0403_0844;
	labelFunc0403_082C:
		if(!UI_get_item_flag_A3(0xFF6B, 0x001E)) goto labelFunc0403_0840;
		UcMessage("\"We must find some way of restoring Gwenno's mind! Unless we can do that her precious spirit is lost to me.\"");
		UcSay;
		goto labelFunc0403_0844;
	labelFunc0403_0840:
		UcMessage("\"My soul is at peace. Joy is to know Gwenno, and to have her once more in thriving good health.\"");
		UcSay;
	labelFunc0403_0844:
		cmps("a song");
		UI_remove_answer_0D("a song");
		var0014 = UI_get_item_flag_A3(0xFFD9, 0x001C);
		if(!var0014) goto labelFunc0403_098F;
		UcMessage("\"Dost thou wish me to repeat a song thou hast already heard? Or dost thou wish to hear a new song?\"");
		UcSay;
		var0015 = [];
		if(!(Func0957(["old song", "new song"]) == 0x0001)) goto labelFunc0403_08F2;
		if(!(gflags[01D3] == true)) goto labelFunc0403_0895;
		var0015 = (var0015 & 0x0001);
	labelFunc0403_0895:
		if(!(gflags[01D4] == true)) goto labelFunc0403_08A7;
		var0015 = (var0015 & 0x0002);
	labelFunc0403_08A7:
		if(!(gflags[01D5] == true)) goto labelFunc0403_08B9;
		var0015 = (var0015 & 0x0003);
	labelFunc0403_08B9:
		if(!(gflags[01D6] == true)) goto labelFunc0403_08CB;
		var0015 = (var0015 & 0x0004);
	labelFunc0403_08CB:
		if(!(gflags[01D7] == true)) goto labelFunc0403_08DD;
		var0015 = (var0015 & 0x0005);
	labelFunc0403_08DD:
		if(!(gflags[01D8] == true)) goto labelFunc0403_08EF;
		var0015 = (var0015 & 0x0006);
	labelFunc0403_08EF:
		goto labelFunc0403_095E;
	labelFunc0403_08F2:
		if(!(gflags[01D3] == false)) goto labelFunc0403_0904;
		var0015 = (var0015 & 0x0001);
	labelFunc0403_0904:
		if(!(gflags[01D4] == false)) goto labelFunc0403_0916;
		var0015 = (var0015 & 0x0002);
	labelFunc0403_0916:
		if(!(gflags[01D5] == false)) goto labelFunc0403_0928;
		var0015 = (var0015 & 0x0003);
	labelFunc0403_0928:
		if(!(gflags[01D6] == false)) goto labelFunc0403_093A;
		var0015 = (var0015 & 0x0004);
	labelFunc0403_093A:
		if(!(gflags[01D7] == false)) goto labelFunc0403_094C;
		var0015 = (var0015 & 0x0005);
	labelFunc0403_094C:
		if(!(gflags[01D8] == false)) goto labelFunc0403_095E;
		var0015 = (var0015 & 0x0006);
	labelFunc0403_095E:
		if(!(var0015 == [])) goto labelFunc0403_096F;
		UcMessage("\"I'm sorry... Thou hast heard all of my songs.\"");
		UcSay;
		goto labelFunc0403_098C;
	labelFunc0403_096F:
		var0016 = UI_get_random_00(UI_get_array_size_73(var0015));
		var0017 = var0015[var0016];
		Func09B0(var0017);
	labelFunc0403_098C:
		goto labelFunc0403_0999;
	labelFunc0403_098F:
		UcMessage("\"I cannot think of anything to sing at the moment, ");
		UcMessage(var0001);
		UcMessage(". Perhaps if thou didst ask me later...\"");
		UcSay;
	labelFunc0403_0999:
		cmps("Shamino's whereabouts");
		UI_remove_answer_0D("Shamino's whereabouts");
		if(!gflags[012B]) goto labelFunc0403_09B9;
		UcMessage("\"Thou hast no doubt heard by now the news? That Shamino doth live again! The monks brought him to us.\"");
		UcSay;
		UcMessage("\"I think he was more disturbed by thy departure than he cared to show. Or else they have told him something...\"");
		UcSay;
		goto labelFunc0403_09BD;
	labelFunc0403_09B9:
		UcMessage("\"I think he was more disturbed by thine abrupt departure than he cared to show.\"");
		UcSay;
	labelFunc0403_09BD:
		UcMessage("\"He went west into the woods, to be alone.\"");
		UcSay;
	labelFunc0403_09C1:
		cmps("Dupre's whereabouts");
		UI_remove_answer_0D("Dupre's whereabouts");
		UcMessage("\"At the nearest tavern, of course!\"");
		UcSay;
	labelFunc0403_09D4:
		cmps("Boydon's whereabouts");
		UI_remove_answer_0D("Boydon's whereabouts");
		UcMessage("\"Um... well, I am not sure. Perhaps Dupre or Shamino might know.\"");
		UcSay;
	labelFunc0403_09E7:
		cmps("bye");
		Func097F(0xFE9C, "@Thanks!@", 0x0000);
		Func097F(Iolo, "@A pleasure!@", 0x0002);
		UI_remove_npc_face0_07();
		goto labelFunc0403_0A11;
	labelFunc0403_0A0E:
		goto labelFunc0403_0489;
	labelFunc0403_0A11:
		end_conv();
	labelFunc0403_0A12:
		if(!(event == 0x0003)) goto labelFunc0403_0AFB;
		var0018 = Func0994();
		var0019 = UI_get_item_quality_1C(item);
		if(!(var0018 == 0x001F)) goto labelFunc0403_0AA9;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"Avatar! Why art thou in my dream? I was looking for Gwenno...\"");
		UcSay;
		UcMessage("\"Oh. Perhaps I have intruded upon thy dream.\"");
		UcSay;
		UcMessage("\"Forgive me. I shall go seeking my wife and leave thee to thy dream.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Iolo, "@Pleasant dreams!@", 0x0002);
		var001A = UI_get_object_position_20(0xFF4E);
		UI_sprite_effect_68(0x001A, var001A[0x0001], var001A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var000B = UI_set_item_quality_1D(item, 0x0003);
		var000B = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06D9], 0x000A);
		abrt();
	labelFunc0403_0AA9:
		if(!(var0018 == 0x0016)) goto labelFunc0403_0AD2;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"More snakes! Destroy the vile creatures, Avatar!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Iolo, "@I hate snakes!@", 0x0002);
		abrt();
	labelFunc0403_0AD2:
		if(!(var0018 == 0x0008)) goto labelFunc0403_0AFB;
		UI_show_npc_face0_05(Iolo, 0x0000);
		UcMessage("\"Oh, my poor Gwenno!\" *\"Now she is truly frigid.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Iolo, "@My love hath now departed!@", 0x0002);
		abrt();
	labelFunc0403_0AFB:
		if(!(event == 0x0000)) goto labelFunc0403_0B4B;
		if(!(UI_get_schedule_type_24(Iolo) == 0x001D)) goto labelFunc0403_0B4B;
		if(!(gflags[0006] && (!gflags[0078]))) goto labelFunc0403_0B4B;
		var001B = ["@Woe is me!@", "@I feel cold.@", "@I am hungry.@", "@Release me!@", "@I'm innocent!@", "@Pity an old man...@"];
		Func097F(Iolo, var001B[UI_get_random_00(UI_get_array_size_73(var001B))], 0x0000);
	labelFunc0403_0B4B:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0956 0x956 (var var0000);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);
extern Func08FF 0x8FF ();

Func0404 0x404 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_is_pc_female_6F();
	var0003 = UI_part_of_day_48();
	if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc0404_0035;
	var0003 = "day";
	goto labelFunc0404_003B;
	labelFunc0404_0035:
		var0003 = "evening";
	labelFunc0404_003B:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0404_005E;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0404_005E:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(0xFFFC) == 0x0009))) goto labelFunc0404_00B0;
		if(!(UI_get_random_00(0x000A) < 0x0006)) goto labelFunc0404_0081;
		abrt();
	labelFunc0404_0081:
		var0005 = ["@How fascinating!@", "@Pay me no mind.@", "@I am simply watching...@", "@What art thou doing?@", "@I do hope I'm not in the way...@", "@May I see?@"];
		Func097F(0xFFFC, var0005[UI_get_random_00(UI_get_array_size_73(var0005))], 0x0000);
	labelFunc0404_00B0:
		if(!(event == 0x0001)) goto labelFunc0404_00EE;
		UI_item_say_4D(0xFE9C, (("@Good " + var0003) + "!@"));
		0xFFFC;
		calle();
		Func097F(0xFFFC, (("@Greetings, " + var0000) + "."), 0x0002);
		UI_set_schedule_type_25(0xFFFC, 0x0003);
	labelFunc0404_00EE:
		if(!(event == 0x0009)) goto labelFunc0404_04DB;
		UI_run_schedule_B7(0xFFFC);
		UI_clear_item_say_4E(0xFFFC);
		UI_show_npc_face0_05(0xFFFC, 0x0000);
		var0006 = UI_get_item_flag_A3(0xFFFC, 0x001C);
		if(!gflags[0004]) goto labelFunc0404_0133;
		UcMessage("\"Oh, am I glad to see thee! I have been very scared.\"");
		UcSay;
		UI_add_answer_0C("scared");
		gflags[00F4] = true;
		goto labelFunc0404_015E;
	labelFunc0404_0133:
		if(!(var0006 == false)) goto labelFunc0404_0153;
		UI_set_item_flag_A4(0xFFFC, 0x001C);
		UcMessage("\"Hello, I am Andrio. I never meet outsiders. Couldst thou tell me all about thy travels and adventures?\"");
		UcSay;
		UI_add_answer_0C("adventures");
		goto labelFunc0404_015E;
	labelFunc0404_0153:
		UcMessage("\"Hast thou done anything exciting lately?\"");
		UcSay;
		UI_add_answer_0C("exciting");
	labelFunc0404_015E:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0404_0177;
		UI_add_answer_0C("kidnap");
	labelFunc0404_0177:
		UI_add_answer_0C(["bye"]);
	labelFunc0404_0181:
		UcAsk;
		cmps("scared");
		UI_remove_answer_0D("scared");
		UcMessage("\"The Glowing Man came and killed nearly everyone in the entire town. Fedabiblio tried to stop him, but not even he could withstand the Glowing Man's attack.\"");
		UcSay;
		UI_add_answer_0C("Fedabiblio");
	labelFunc0404_019E:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		var0007 = UI_get_schedule_type_24(0xFFEF);
		if(!(var0007 == 0x000F)) goto labelFunc0404_01CF;
		UcMessage("\"Fedabiblio fought a terrific battle, but when the Glowing Man was done with him, he had been turned into a statue. It remains beyond mine abilities to restore him.\"");
		UcSay;
		UI_add_answer_0C("restore");
		goto labelFunc0404_01D3;
	labelFunc0404_01CF:
		UcMessage("\"Thank goodness, thou wert able to restore him to life. Else I would never finish my Mage's training!\"");
		UcSay;
	labelFunc0404_01D3:
		cmps("restore");
		UI_remove_answer_0D("restore");
		UcMessage("\"I do not know for certain if anything can bring Fedabiblio back to life. Once I overheard Columna talking about a special wand that Torrissio owned.\"");
		UcSay;
		UI_add_answer_0C(["wand", "Torrissio"]);
	labelFunc0404_01F3:
		cmps("wand");
		UI_remove_answer_0D("wand");
		UcMessage("\"'Twas called the Philanderer's Friend. It enabled the user to command objects to move -- quite useful in thievery, I imagine. Perhaps it is a similar sort of magic that is required to	enable Fedabiblio to move again.\"");
		UcSay;
		gflags[0147] = true;
	labelFunc0404_020A:
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"I knew that thou didst lead an interesting life, ");
		UcMessage(var0001);
		UcMessage("! I'm sure I can help thee.\"");
		UcSay;
		UcMessage("\"Dost thou suspect townsfolk, or strangers?\"");
		UcSay;
		var0004 = Func0956(["townsfolk", "strangers"]);
		if(!(var0004 == "strangers")) goto labelFunc0404_0248;
		UcMessage("\"Perhaps. Yet to me, this doth have the stench of a Moonshadian intrigue.\"");
		UcSay;
		UcMessage("\"For the moment, let us assume that I am right and thou art wrong...\"");
		UcSay;
	labelFunc0404_0248:
		UcMessage("\"Is thine enemy a Mundane, or a Mage? What dost thou believe?\"");
		UcSay;
		var0004 = Func0956(["Mundane", "Mage"]);
		if(!(var0004 == "Mundane")) goto labelFunc0404_0270;
		UcMessage("\"No, no, no. How could a mere mortal snatch thy friend in such an arcane fashion?\"");
		UcSay;
		UcMessage("\"The criminal must be a Mage!\"");
		UcSay;
		goto labelFunc0404_0274;
	labelFunc0404_0270:
		UcMessage("\"Exactly so!\"");
		UcSay;
	labelFunc0404_0274:
		UcMessage("\"This narrows the search! If thou dost want the secrets of the Mages, ask Bucia the Provisioner -- she doth know all the gossip of the town.\"");
		UcSay;
		UcMessage("\"Yet I suspect Torrissio. He is a true swine, and it would take a devious person to plan such a crime.\"");
		UcSay;
		gflags[0142] = true;
	labelFunc0404_0280:
		cmps("adventures", "exciting");
		UI_remove_answer_0D(["adventures", "exciting"]);
		UcMessage("\"Yes, yes. I would very much love to hear about thine exciting adventures. While studying magic I have so little time to plan any expeditions of mine own.\"");
		UcSay;
		UI_add_answer_0C(["magic", "expeditions"]);
	labelFunc0404_02A9:
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"I am working to become a great master. Someday I hope to be as great as Master Filbercio.\"");
		UcSay;
		UcMessage("\"Of course, I know that level of expertise will take some time. But I have the discipline! Just ask Freli, he will tell thee I do.\"");
		UcSay;
		UI_add_answer_0C(["Filbercio", "Freli"]);
	labelFunc0404_02CD:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"He is the MageLord of all Moonshade. There are rumors that no mage hath lived who was more powerful, not even the Mad Mage!\"");
		UcSay;
		UI_add_answer_0C("Mad Mage");
	labelFunc0404_02E7:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"His name is Erstam. He was one of the founders of Moonshade. However, our instructors	claim he slowly became insane as his power grew. Eventually, he left the city to	be far away from his fellow spellcasters.\"");
		UcSay;
		UcMessage("\"They tell us the same could happen to us should we seek too much power too soon. I wonder if that is what caused the other two mages to flee to the Mountains of Freedom?\"");
		UcSay;
		UcMessage("\"Goodness, I hope that doth not happen to me!\"");
		UcSay;
		UI_add_answer_0C(["two mages", "Mountains of Freedom"]);
	labelFunc0404_030F:
		cmps("two mages");
		UI_remove_answer_0D("two mages");
		UcMessage("\"I remember not their names, but they had a reputation for conducting unusual experiments,	especially with reagents. Someone once told me that they were always searching for more powerful components to assist in their magics.\"");
		UcSay;
	labelFunc0404_0322:
		cmps("Mountains of Freedom");
		UI_remove_answer_0D("Mountains of Freedom");
		UcMessage("\"They lie to the north of the island. I have heard that the caves there are filled with the	rare mineral known as Stoneheart. I am sure someone as brave as thou art will go there someday and discover whether the legend is true. Please promise to bring the tale whenever thou dost return from such a grand excursion.\"");
		UcSay;
		UcMessage("\"Thou wilt tell, wilt thou not?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0404_034C;
		UcMessage("\"Excellent, ");
		UcMessage(var0000);
		UcMessage(". I cannot wait to hear further tales of thy journeys.\"");
		UcSay;
		goto labelFunc0404_0350;
	labelFunc0404_034C:
		UcMessage("\"I see... I suppose one with thine important duties hast not the time for a simple apprentice of the arcane arts...");
		UcSay;
	labelFunc0404_0350:
		cmps("Freli");
		UI_remove_answer_0D("Freli");
		UcMessage("\"He is my companion and fellow student. We have been friends for a very long time. And his mastery of magic is almost as great as mine own.\"");
		UcSay;
		if(!Func0942(0xFFED)) goto labelFunc0404_03AC;
		UI_show_npc_face1_06(0xFFED, 0x0000);
		UcMessage("\"Almost!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Well...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Better!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou art mad!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Stop this bickering!", "bye"]);
	labelFunc0404_03AC:
		cmps("Stop this bickering!");
		UI_remove_answer_0D("Stop this bickering!");
		UI_pop_answers_0F();
		UI_show_npc_face1_06(0xFFED, 0x0000);
		UcMessage("\"Quite right, ");
		UcMessage(var0000);
		UcMessage(". I am sorry.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, yes, ");
		UcMessage(var0000);
		UcMessage(". I, too, am truly sorry.\"");
		UcSay;
		UcMessage("\"How else may I help thee?\"");
		UcSay;
	labelFunc0404_03EC:
		cmps("expeditions");
		UI_remove_answer_0D("expeditions");
		UcMessage("\"Well, I am hesitant to admit how little I have seen of the land. Unlike thee, I am not an experienced traveller. There is so little I know about my surroundings, save how to manipulate them with magic. I have no knowledge of what it is like to face danger daily. Certainly nothing so grand as that which thou dost meet frequently. In comparison, my life is filled with boredom.\"");
		UcSay;
		UI_add_answer_0C("boredom");
	labelFunc0404_0406:
		cmps("boredom");
		UI_remove_answer_0D("boredom");
		UcMessage("\"Yesterday I saw Torrissio leave his house at 9 in the morning -- same as always -- and run into one of the food vendors. I was positive Torrissio was about to transform her into a frog or some such, but instead, he gave no more than a rude chastising.\"");
		UcSay;
		UI_add_answer_0C(["chastising", "Torrissio"]);
	labelFunc0404_0426:
		cmps("chastising");
		UI_remove_answer_0D("chastising");
		UcMessage("\"Torrissio is not very friendly. I have heard he bears ill will for many things, and doth not often forgive transgressions. I hope never to cross him, for I could not endure his enmity for long. Thou, too, shouldst walk with care, for if thou dost ever need his aid, pray no such bad feelings exist between thee and he	or he will offer nothing.\"");
		UcSay;
	labelFunc0404_0439:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		if(!gflags[0004]) goto labelFunc0404_0470;
		var0007 = UI_get_schedule_type_24(0xFFEF);
		if(!(var0007 == 0x000F)) goto labelFunc0404_0469;
		UcMessage("\"I know not if the wand is in Torrissio's possession, but perhap thou wilt be able to	convince him to help thee. Be wary of him, however! He hath a reputation for being very tricky!\"");
		UcSay;
		goto labelFunc0404_046D;
	labelFunc0404_0469:
		UcMessage("\"I am glad thou wert able to successfully deal with him, without him getting the best of thee!\"");
		UcSay;
	labelFunc0404_046D:
		goto labelFunc0404_0481;
	labelFunc0404_0470:
		UcMessage("\"He is an adept mage who commands the powers of life magic. Some day, when I am less afraid of his coarse manner, I plan to ask for his assistance in my Transmute Flesh to Wood	spell. I am told he hath done something similar with stone before.\"");
		UcSay;
		UI_add_answer_0C(["flesh to wood", "similar"]);
	labelFunc0404_0481:
		cmps("flesh to wood");
		UI_remove_answer_0D("flesh to wood");
		UcMessage("\"Yes, ");
		UcMessage(var0000);
		UcMessage(". This spell will change a warrior's skin, making it as tough as wood. This way, a fighter will require less armour to deflect blows. My greatest obstacle right now is how to permit the fighter to move once his flesh hath solidified into the wood.\"");
		UcSay;
	labelFunc0404_049A:
		cmps("similar");
		UI_remove_answer_0D("similar");
		UcMessage("\"Freli is researching a spell like mine, but involving stone instead of wood. The patrons at the	Blue Boar suggested we contact Torrissio about transforming such things, because his arcane emphasis involves matters of life, including changing flesh to other materials.\"");
		UcSay;
	labelFunc0404_04AD:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Must be going...@", 0x0000);
		Func097F(0xFFFC, "@I thank thee.@", 0x0002);
		Func08FF();
		goto labelFunc0404_04DA;
	labelFunc0404_04D7:
		goto labelFunc0404_0181;
	labelFunc0404_04DA:
		end_conv();
	labelFunc0404_04DB:
		return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func0405 0x405 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Columna and Melino";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func0406 0x406 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Gustacio";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func0407 0x407 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Torrissio";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func0408 0x408 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Ducio";
	var0001 = 0x0003;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func0409 0x409 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Ducio";
	var0001 = 0x0004;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func040A 0x40A (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Filbercio";
	var0001 = 0x0005;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func040B 0x40B (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Rotoluncia";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func040C 0x40C (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Canton";
	var0001 = 0x0006;
	Func0808(var0000, var0001);
	return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern var Func0942 0x942 (var var0000);
extern var Func09AE 0x9AE (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func0955 0x955 ();
extern Func080C 0x80C ();
extern Func080B 0x80B ();
extern Func08FF 0x8FF ();

Func040D 0x40D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = false;
	if(!(UI_get_schedule_type_24(0xFFF3) == 0x0007)) goto labelFunc040D_0016;
	var0000 = true;
	labelFunc040D_0016:
		var0001 = Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F);
		var0002 = Func0954();
		var0003 = UI_is_pc_female_6F();
		var0004 = Func0953();
		var0005 = 0x0000;
		var0006 = false;
		var0007 = UI_get_item_flag_A3(0xFFF3, 0x001C);
		if(!(event == 0x0000)) goto labelFunc040D_01B2;
		var0008 = UI_get_random_00(0x0006);
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc040D_010B;
		if(!(var0008 == 0x0001)) goto labelFunc040D_0090;
		UI_item_say_4D(0xFFF3, "@What is that smell?@");
	labelFunc040D_0090:
		if(!(var0008 == 0x0002)) goto labelFunc040D_00A4;
		UI_item_say_4D(0xFFF3, "@Phew!@");
	labelFunc040D_00A4:
		if(!(var0008 == 0x0003)) goto labelFunc040D_00B8;
		UI_item_say_4D(0xFFF3, "@Putrid odor...@");
	labelFunc040D_00B8:
		if(!(var0008 == 0x0004)) goto labelFunc040D_00E0;
		if(!(!gflags[0104])) goto labelFunc040D_00D6;
		UI_item_say_4D(0xFFF3, "@Away from here!@");
		goto labelFunc040D_00E0;
	labelFunc040D_00D6:
		UI_item_say_4D(0xFFF3, "@Something doth stink...@");
	labelFunc040D_00E0:
		if(!(var0008 == 0x0005)) goto labelFunc040D_00F4;
		UI_item_say_4D(0xFFF3, "@Open a window!@");
	labelFunc040D_00F4:
		if(!(var0008 == 0x0006)) goto labelFunc040D_0108;
		UI_item_say_4D(0xFFF3, "@Bad stench!@");
	labelFunc040D_0108:
		goto labelFunc040D_01B2;
	labelFunc040D_010B:
		if(!(var0008 == 0x0001)) goto labelFunc040D_013A;
		if(!var0007) goto labelFunc040D_0130;
		UI_item_say_4D(0xFFF3, (("@Greetings, " + var0004) + "!@"));
		goto labelFunc040D_013A;
	labelFunc040D_0130:
		UI_item_say_4D(0xFFF3, "@Greetings, stranger!@");
	labelFunc040D_013A:
		if(!(var0008 == 0x0002)) goto labelFunc040D_014E;
		UI_item_say_4D(0xFFF3, "@Goods for sale!@");
	labelFunc040D_014E:
		if(!(var0008 == 0x0003)) goto labelFunc040D_0162;
		UI_item_say_4D(0xFFF3, "@What a nice day.@");
	labelFunc040D_0162:
		if(!(var0008 == 0x0004)) goto labelFunc040D_018A;
		if(!(!var0007)) goto labelFunc040D_0180;
		UI_item_say_4D(0xFFF3, "@Art thou a visitor?@");
		goto labelFunc040D_018A;
	labelFunc040D_0180:
		UI_item_say_4D(0xFFF3, "@So nice to see thee.@");
	labelFunc040D_018A:
		if(!(var0008 == 0x0005)) goto labelFunc040D_019E;
		UI_item_say_4D(0xFFF3, "@Thou breakest, thou buyest.@");
	labelFunc040D_019E:
		if(!(var0008 == 0x0006)) goto labelFunc040D_01B2;
		UI_item_say_4D(0xFFF3, "@Provisions!@");
	labelFunc040D_01B2:
		if(!(event == 0x0001)) goto labelFunc040D_021B;
		UI_item_say_4D(0xFE9C, "@Greetings!@");
		0xFFF3;
		calle();
		Func097F(0xFFF3, (("@Yes, " + var0002) + "?@"), 0x0002);
		if(!(!var0000)) goto labelFunc040D_01F2;
		UI_set_schedule_type_25(0xFFF3, 0x0003);
		goto labelFunc040D_021B;
	labelFunc040D_01F2:
		UI_set_schedule_type_25(0xFFF3, 0x000A);
		0xFFF3;
		calle();
		var0008 = UI_execute_usecode_array_01(0xFFF3, [0x23, 0x27, 0x0007, 0x55, 0x040D]);
	labelFunc040D_021B:
		if(!(event == 0x0002)) goto labelFunc040D_0227;
		event = 0x0009;
	labelFunc040D_0227:
		if(!(event == 0x0009)) goto labelFunc040D_1525;
		UI_run_schedule_B7(0xFFF3);
		UI_clear_item_say_4E(0xFFF3);
		var0000 = false;
		if(!(UI_get_schedule_type_24(0xFFF3) == 0x0007)) goto labelFunc040D_0253;
		var0000 = true;
	labelFunc040D_0253:
		UI_show_npc_face0_05(0xFFF3, 0x0000);
		var0009 = 0x0006;
		if(!(Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003) && gflags[0104])) goto labelFunc040D_0281;
		UcMessage("\"Go away from me with that rotten egg. Phew!\"");
		UcSay;
		abrt();
	labelFunc040D_0281:
		if(!(var0007 == false)) goto labelFunc040D_02A7;
		if(!var0000) goto labelFunc040D_0296;
		UcMessage("\"What a pleasure to meet thee. My name is Bucia, and I tend this provisions shop. Is there anything that I can help thee with?\"");
		UcSay;
		goto labelFunc040D_029A;
	labelFunc040D_0296:
		UcMessage("\"Strangers are always welcome in Moonshade. My name is Bucia -- if thou needest help, thou hast merely to ask.\"");
		UcSay;
	labelFunc040D_029A:
		UI_set_item_flag_A4(0xFFF3, 0x001C);
		goto labelFunc040D_02B1;
	labelFunc040D_02A7:
		UcMessage("\"I am so glad to see thee again, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc040D_02B1:
		if(!var0000) goto labelFunc040D_02CA;
		UI_add_answer_0C(["provisions", "exchange"]);
		var0009 = 0x0003;
	labelFunc040D_02CA:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc040D_02E3;
		UI_add_answer_0C("kidnap");
	labelFunc040D_02E3:
		if(!Func0942(0xFFD6)) goto labelFunc040D_02F2;
		var0009 = 0x0001;
	labelFunc040D_02F2:
		UI_add_answer_0C(["information", "bye"]);
		var000A = false;
		var000B = 0x0000;
	labelFunc040D_0309:
		UcAsk;
		cmps("kidnap");
		UcMessage("\"Oh, my! What to do? What to do?\"");
		UcSay;
		UcMessage("\"Call the Rangers! Consult the Mages! Such a crime cannot go unpunished.\"");
		UcSay;
		UcMessage("\"Perhaps this has something to do with the magical storms? Perhaps we are all in danger!\"");
		UcSay;
		Func097F(0xFFF3, "@I am so afraid!@", 0x0000);
		abrt();
	labelFunc040D_032D:
		cmps("information");
		UI_remove_answer_0D("information");
		if(!((UI_npc_nearby_3A(0xFF3A) || (UI_npc_nearby_3A(0xFFE4) || UI_npc_nearby_3A(0xFFE2))) && gflags[013E])) goto labelFunc040D_038E;
		var0009 = 0x0064;
		gflags[013E] = false;
		UcMessage("\"'Tis so flattering to be asked so many questions by thee, ");
		UcMessage(var0004);
		UcMessage(". Of what wouldst thou like to know?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0001;
		UI_add_answer_0C(["people", "places", "strange objects", "nothing more"]);
		goto labelFunc040D_03C9;
	labelFunc040D_038E:
		if(!((!gflags[0103]) || (UI_get_timer_7A(0x0002) > 0x0004))) goto labelFunc040D_03C5;
		UcMessage("\"I am not certain that I'll know anything useful, but in what art thou interested?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0001;
		UI_add_answer_0C(["people", "places", "strange objects", "nothing more"]);
		goto labelFunc040D_03C9;
	labelFunc040D_03C5:
		UcMessage("\"I am afraid that I'm very busy right now. Perhaps we could talk about this later.\"");
		UcSay;
	labelFunc040D_03C9:
		cmps("people");
		UcMessage("\"'Twould be wrong for me to speak about people behind their backs.\"");
		UcSay;
		UcMessage("\"So please, do not tell anyone! Dost thou desire to know about townsfolk, or visitors?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0002;
		UI_add_answer_0C(["townsfolk", "visitors", "nothing more"]);
	labelFunc040D_03F3:
		cmps("townsfolk");
		UI_remove_answer_0D("townsfolk");
		UcMessage("\"Dost thou have an interest in mere Mundanes, or Mages?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0003;
		UI_add_answer_0C(["Mundanes", "Mages", "nothing more"]);
	labelFunc040D_0420:
		cmps("Mundanes");
		UcMessage("\"Those of us who do not cast magic are a small and disrespected part of society here. Whom dost thou desire to know about?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0004;
		UI_add_answer_0C(["the Artisans", "the Rangers", "Rocco and Petra", "Mosh the beggar", "nothing more"]);
	labelFunc040D_044C:
		cmps("the Artisans");
		UI_remove_answer_0D("the Artisans");
		UcMessage("\"Ducio is the Master Artisan, capable of forging or repairing all manner of magical apparatus.\"");
		UcSay;
		UcMessage("\"He hath grown lazy with prosperity, however -- his apprentice doth do most of the hard labor, while the Master wets his throat at the inn!\"");
		UcSay;
		UcMessage("\"Poor Topo! Someday he'll be the Master Artisan, but for now he must labor long hours for a mere pittance.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_0470:
		cmps("Pothos the Apothecary");
		UI_remove_answer_0D("Pothos the Apothecary");
		if(!gflags[00D9]) goto labelFunc040D_04AC;
		if(!gflags[00DD]) goto labelFunc040D_0492;
		UcMessage("\"He hath been most delighted lately -- as if some burden hath been lifted from his mind.\"");
		UcSay;
		goto labelFunc040D_04A9;
	labelFunc040D_0492:
		UcMessage("\"Pothos is back, and his shop is open once again.\"");
		UcSay;
		UcMessage("\"Hast thou heard the rumor about the apothecary? Some say that he hath a most uncanny resemblance to the Mad Mage.\"");
		UcSay;
		UcMessage("\"I think so, too.\"");
		UcSay;
		gflags[00DC] = true;
		UI_add_answer_0C("Mad Mage");
	labelFunc040D_04A9:
		goto labelFunc040D_04B8;
	labelFunc040D_04AC:
		UcMessage("\"Thou canst buy no reagents in Moonshade, for the Apothecary hath gone away!\"");
		UcSay;
		UcMessage("\"There is a tale that explains his absence.\"");
		UcSay;
		UcMessage("\"Don't tell that I told thee, but I hear that Pothos is on a secret errand for the MageLord!\"");
		UcSay;
	labelFunc040D_04B8:
		var0009 = Func09AE(var0009);
	labelFunc040D_04C1:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"Surely thou hast heard of Erstam, the Mad Mage. 'Twas he who helped found this city. Once he was a great wizard, able to control the very elements themselves. But then, as his power grew, his sanity shrank. It shrank and shrank until it was too small to perceive, and he went dashing into the hills, shrieking threats and insults. Past the Mountains of Freedom wilt thou find his isles.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_04DD:
		cmps("the Rangers");
		UI_remove_answer_0D("the Rangers");
		UcMessage("\"They are the pride of our city. The Chief Ranger, Julia, hath no mercy for troublemakers.\"");
		UcSay;
		UcMessage("\"But if thou dost ask me, she's too gruff -- I think she'd like to give everyone orders, if she could.\"");
		UcSay;
		UcMessage("\"By the way, be sure to give thy greetings to Ranger Ernesto...\"");
		UcSay;
		if(!var0003) goto labelFunc040D_0505;
		UcMessage("\"...he's rather cute.\"");
		UcSay;
		goto labelFunc040D_0509;
	labelFunc040D_0505:
		UcMessage("\"...he's a winsome lad.\"");
		UcSay;
	labelFunc040D_0509:
		var0009 = Func09AE(var0009);
	labelFunc040D_0512:
		cmps("Rocco and Petra");
		UI_remove_answer_0D("Rocco and Petra");
		UcMessage("\"I can say nothing bad about Goodman Rocco and his inn! He is a gentleman.\"");
		UcSay;
		UcMessage("\"Now, some enjoy talking about him and that female automaton living under the same roof, but not I.\"");
		UcSay;
		UcMessage("\"Petra is a fine girl, even if she's merely a magical construct.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_0536:
		cmps("Mosh the beggar");
		UI_remove_answer_0D("Mosh the beggar");
		UcMessage("\"Beware of Mosh! Those rats of hers are filled with disease.\"");
		UcSay;
		UcMessage("\"Do not listen to her accusations about the Sorceress Columna -- all imaginings, not true!\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_0556:
		cmps("Mages");
		UcMessage("\"Everything in this city revolves around the wizards and their cliques. Whom dost thou desire to know about?\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0004;
		UI_add_answer_0C(["the MageLord", "the Adepts", "the Magister", "Melino and Columna", "the minor Mages", "Pothos the Apothecary", "nothing more"]);
	labelFunc040D_0588:
		cmps("the MageLord");
		UI_remove_answer_0D("the MageLord");
		UcMessage("\"Filbercio is the most powerful wizard of them all.\"");
		UcSay;
		UcMessage("\"'Tis said that he hath some strange compelling power over women...\"");
		UcSay;
		if(!var0003) goto labelFunc040D_05AC;
		UcMessage("\"...thou had best watch thy step, lest he ensorcel thee with a love spell!\"");
		UcSay;
		goto labelFunc040D_05B7;
	labelFunc040D_05AC:
		UcMessage("\"...not me, of course, but he hath had his way with many other beautiful women! Thou wouldst be surprised to learn of many of them.\"");
		UcSay;
		UI_add_answer_0C("learn");
	labelFunc040D_05B7:
		if(!(!gflags[00D9])) goto labelFunc040D_05C2;
		UcMessage("\"He is not partial to visitors, so I doubt that thou shalt ever have the chance to make his acquaintance.\"");
		UcSay;
	labelFunc040D_05C2:
		var0009 = Func09AE(var0009);
	labelFunc040D_05CB:
		cmps("learn");
		UI_remove_answer_0D("learn");
		UcMessage("\"Perhaps thou hast heard the name Rotoluncia?\"");
		UcSay;
	labelFunc040D_05DE:
		cmps("the Adepts");
		UI_remove_answer_0D("the Adepts");
		UcMessage("\"Besides the MageLord, there are two others who compose the Council of Mages.\"");
		UcSay;
		UcMessage("\"Adept Gustacio is a wise wizard, but strict in his ways and aloof from Mundanes.\"");
		UcSay;
		UcMessage("\"As for Adept Rotoluncia, she is steeped in magic and a mistress of the arcane. Do not provoke her, for her anger is terrible.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_0602:
		cmps("the Magister");
		UI_remove_answer_0D("the Magister");
		UcMessage("\"Fedabiblio is the Magister. 'Tis he who directs the Seminarium, where young magelings are taught.\"");
		UcSay;
		UcMessage("\"In former times, 'twas his job to go to the mainland and acquire those babies which had promise of magical powers.\"");
		UcSay;
		UcMessage("\"But each year there have been fewer students, until now the school lies nearly empty.\"");
		UcSay;
		UcMessage("\"Perhaps this hath something to do with the multi-colored storms.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_062A:
		cmps("Melino and Columna");
		UI_remove_answer_0D("Melino and Columna");
		UcMessage("\"Such an odd couple! Melino is one of our eldest Mages, retired from the Council. He is a good man, but often befuddled.\"");
		UcSay;
		UcMessage("\"As for Columna, she is only one-third his age! And such an attractive woman...\"");
		UcSay;
		if(!var0003) goto labelFunc040D_064E;
		UcMessage("\"Between thou and me, she is too young for that husband of hers. If I were her, I'd die!\"");
		UcSay;
		goto labelFunc040D_0652;
	labelFunc040D_064E:
		UcMessage("\"There are many in this town who would like to steal her from Melino, but none hath succeeded!\"");
		UcSay;
	labelFunc040D_0652:
		var0009 = Func09AE(var0009);
	labelFunc040D_065B:
		cmps("the minor Mages");
		UI_remove_answer_0D("the minor Mages");
		UcMessage("\"Well, there is Mortegro -- his speciality is dead things, spirits, and burial rites. Not a pleasant fellow.\"");
		UcSay;
		UcMessage("\"And Torrissio, a fine young Mage with a burning ambition. He reads books and keeps to himself.\"");
		UcSay;
		UcMessage("\"Then there is Frigidazzi, the Frost Sorceress.\"");
		UcSay;
		if(!var0003) goto labelFunc040D_0683;
		UcMessage("\"She hath some strange habits, need I say more. The MageLord protects her, for she is his latest paramour.\"");
		UcSay;
		goto labelFunc040D_0687;
	labelFunc040D_0683:
		UcMessage("\"But thou shouldst stay away from her, for she is the MageLord's mistress, and he is a jealous man!\"");
		UcSay;
	labelFunc040D_0687:
		gflags[02A1] = true;
		if(!(gflags[02A0] && gflags[02A1])) goto labelFunc040D_0699;
		gflags[0292] = true;
	labelFunc040D_0699:
		var0009 = Func09AE(var0009);
	labelFunc040D_06A2:
		cmps("visitors");
		UI_remove_answer_0D("visitors");
		UcMessage("\"Perhaps thou shouldst speak to Rocco at the Blue Boar Inn. All of the town's visitors stay at his fine inn, even that travelling scholar.\"");
		UcSay;
		UcMessage("\"Also, Julia keeps an eye on all undesirables.\"");
		UcSay;
		var000C = Func0992(Iolo, "@Then she must have spotted Batlin!@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc040D_071C;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc040D_0715;
		var000D = var000C;
	labelFunc040D_06E8:
		if(!(var000D == var000C)) goto labelFunc040D_0705;
		var000D = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc040D_06E8;
	labelFunc040D_0705:
		var000D = Func0992(var000D, "@Ah, but Batlin can be very gentlemanly when it suits his purposes.@", 0x0000, false);
	labelFunc040D_0715:
		UI_set_conversation_slot_09(0x0000);
	labelFunc040D_071C:
		UcMessage("\"A visit to the Chief Ranger might be a good idea. Thou canst find her at the Winery, in the western part of town.\"");
		UcSay;
		var0009 = Func09AE(var0009);
		UI_add_answer_0C("travelling scholar");
	labelFunc040D_0730:
		cmps("travelling scholar");
		UI_remove_answer_0D("travelling scholar");
		UcMessage("\"Rocco could tell thee more, for he came to know her rather... well. I only know her name: Gwenno. She left here a few weeks ago.\"");
		UcSay;
	labelFunc040D_0743:
		cmps("places");
		UcMessage("\"Interested in seeing the sights, eh? Well, I can tell thee about the islands, or the mountains.\"");
		UcSay;
		UI_push_answers_0E();
		var000B = 0x0002;
		UI_add_answer_0C(["islands", "mountains", "nothing more"]);
	labelFunc040D_0769:
		cmps("islands");
		UI_remove_answer_0D("islands");
		UcMessage("\"I hope thou art not planning to visit the isle of the Mad Mage, Erstam? He was once, perhaps, a powerful wizard -- one of the founders. But now, I wonder about a man who feels the need to run from civilization.\" ~\"Now, if thou dost mean to visit Monk Isle, than I shall not discourage thee. Residing within the dense forest, the monks devote their entire lives to the pursuit of knowledge.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_0785:
		cmps("mountains");
		UI_remove_answer_0D("mountains");
		UcMessage("\"Ah, yes, the Mountains of Freedom. They occupy the entire shoreline of the northern part of the island. Be wary, for there are plenty of native monstrosities that call the mountainous caverns their home.\"");
		UcSay;
		var0009 = Func09AE(var0009);
	labelFunc040D_07A1:
		cmps("strange objects");
		var000B = (var000B + 0x0001);
		UI_remove_answer_0D("strange objects");
		var000E = [];
		if(!(gflags[027A] && (!gflags[028C]))) goto labelFunc040D_07D5;
		var000E = (var000E & "pinecone");
	labelFunc040D_07D5:
		if(!(gflags[027B] && (!gflags[028D]))) goto labelFunc040D_07EA;
		var000E = (var000E & "moonsilk stockings");
	labelFunc040D_07EA:
		if(!(gflags[027C] && (!gflags[028E]))) goto labelFunc040D_07FF;
		var000E = (var000E & "urn");
	labelFunc040D_07FF:
		if(!(gflags[027D] && (!gflags[028F]))) goto labelFunc040D_0814;
		var000E = (var000E & "apparatus");
	labelFunc040D_0814:
		if(!(gflags[027E] && (!gflags[0290]))) goto labelFunc040D_0829;
		var000E = (var000E & "pumice");
	labelFunc040D_0829:
		if(!(gflags[027F] && (!gflags[0291]))) goto labelFunc040D_083E;
		var000E = (var000E & "lost ring");
	labelFunc040D_083E:
		if(!(gflags[0280] && (!gflags[0292]))) goto labelFunc040D_0853;
		var000E = (var000E & "fur cap");
	labelFunc040D_0853:
		if(!(gflags[0281] && (!gflags[0293]))) goto labelFunc040D_0868;
		var000E = (var000E & "slippers");
	labelFunc040D_0868:
		if(!(gflags[0282] && (!gflags[0294]))) goto labelFunc040D_087D;
		var000E = (var000E & "breastplate");
	labelFunc040D_087D:
		if(!(gflags[0283] && (!gflags[0295]))) goto labelFunc040D_0892;
		var000E = (var000E & "blue egg");
	labelFunc040D_0892:
		if(!(gflags[0284] && (!gflags[0296]))) goto labelFunc040D_08A7;
		var000E = (var000E & "strange hairbrush");
	labelFunc040D_08A7:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc040D_08BC;
		var000E = (var000E & "bottle of wine");
	labelFunc040D_08BC:
		if(!(gflags[0287] && (!gflags[0299]))) goto labelFunc040D_08D1;
		var000E = (var000E & "strange coins");
	labelFunc040D_08D1:
		if(!(gflags[0288] && (!gflags[029A]))) goto labelFunc040D_08E6;
		var000E = (var000E & "skull");
	labelFunc040D_08E6:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc040D_08FB;
		var000E = (var000E & "bloody hand");
	labelFunc040D_08FB:
		if(!(gflags[028A] && (!gflags[029C]))) goto labelFunc040D_0910;
		var000E = (var000E & "plain shield");
	labelFunc040D_0910:
		if(!(gflags[028B] && (!gflags[029D]))) goto labelFunc040D_0925;
		var000E = (var000E & "glowing rock");
	labelFunc040D_0925:
		if(!(gflags[007B] && (!gflags[007C]))) goto labelFunc040D_093A;
		var000E = (var000E & "fish-net stockings");
	labelFunc040D_093A:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc040D_0956;
		var000E = (var000E & "brown bottle");
	labelFunc040D_0956:
		if(!(var000E == [])) goto labelFunc040D_0986;
		var000C = Func0992(0x0001, (("@But we have no strange objects to ask about, " + var0002) + ".@"), 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I do not think I can help thee, but if I think of anything, I'll inform thee!\"");
		UcSay;
		goto labelFunc040D_09EA;
	labelFunc040D_0986:
		UcMessage("\"What sort of items art thou inquiring about?\"");
		UcSay;
		UI_push_answers_0E();
		var000F = 0x0005;
	labelFunc040D_0994:
		if(!(var000F > 0x0000)) goto labelFunc040D_09E3;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_09CF;
		var000F = 0x0000;
		var0006 = true;
	labelFunc040D_09CF:
		UI_add_answer_0C(var0005);
		var000F = (var000F - 0x0001);
		goto labelFunc040D_0994;
	labelFunc040D_09E3:
		UI_add_answer_0C("nothing more");
	labelFunc040D_09EA:
		cmps("pinecone");
		UI_remove_answer_0D("pinecone");
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc040D_0A60;
		UcMessage("\"'Tis a pinecone! I don't know where they come from, but Captain Hawk gave me one once. May I have this one, too?\"");
		UcSay;
		gflags[0108] = true;
		if(!Func0955()) goto labelFunc040D_0A59;
		UcMessage("\"Thank thee!\"");
		UcSay;
		if(!(UI_get_npc_id_BC(0xFFF3) < 0x0019)) goto labelFunc040D_0A40;
		UI_set_npc_id_BD(0xFFF3, (UI_get_npc_id_BC(0xFFF3) + 0x0005));
	labelFunc040D_0A40:
		var0008 = UI_remove_party_items_34(0x0001, 0x0108, 0xFE99, 0xFE99, 0x0000);
		goto labelFunc040D_0A5D;
	labelFunc040D_0A59:
		UcMessage("\"'Tis fine, I do not need another one.\"");
		UcSay;
	labelFunc040D_0A5D:
		goto labelFunc040D_0A68;
	labelFunc040D_0A60:
		UcMessage("\"Perhaps the Magister could help thee. He is an authority on many subjects.\"");
		UcSay;
		gflags[010B] = true;
	labelFunc040D_0A68:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0AAA;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0AA3;
		var0006 = true;
	labelFunc040D_0AA3:
		UI_add_answer_0C(var0005);
	labelFunc040D_0AAA:
		cmps("moonsilk stockings");
		UI_remove_answer_0D("moonsilk stockings");
		gflags[028D] = true;
		UcMessage("\"From thy description, the stockings could only be one kind -- Moonsilk Stockings.\"");
		UcSay;
		UcMessage("\"I sell them here in the store, but not often. Only the Mages can afford luxuries like these.\"");
		UcSay;
		var000C = Func0992(Dupre, "@And who buys these fripperies?@", "@Whom dost thou sell them to, milady?@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The Green Sorceress, Columna -- she dresses in only the finest materials.\"");
		UcSay;
		UcMessage("\"She also has a moonsilk sleeping gown, which cost more guilders than I shall ever make!\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc040D_0B4C;
		UcMessage("\"Please, may I see the stockings...\"");
		UcSay;
		UcMessage("\"The silk is so soft! Didst thou know that the stockings are made from the cocoons of lunar moths?\"");
		UcSay;
		UcMessage("\"May I... could I... wouldst thou mind if I kept this pair? No Mundane could ever own such finery!\"");
		UcSay;
		if(!Func0955()) goto labelFunc040D_0B48;
		UcMessage("\"Ooooh!\"");
		UcSay;
		if(!(UI_get_npc_id_BC(0xFFF3) < 0x0014)) goto labelFunc040D_0B2F;
		UI_set_npc_id_BD(0xFFF3, (UI_get_npc_id_BC(0xFFF3) + 0x000A));
	labelFunc040D_0B2F:
		var0008 = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, 0x0000);
		goto labelFunc040D_0B4C;
	labelFunc040D_0B48:
		UcMessage("\"Oh.\"");
		UcSay;
	labelFunc040D_0B4C:
		gflags[028D] = true;
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0B92;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0B8B;
		var0006 = true;
	labelFunc040D_0B8B:
		UI_add_answer_0C(var0005);
	labelFunc040D_0B92:
		cmps("urn");
		UI_remove_answer_0D("urn");
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000)) goto labelFunc040D_0BBD;
		UcMessage("\"I do not know what that is, but it doth give me a shuddery feeling. Please, take it away...\"");
		UcSay;
		goto labelFunc040D_0BC5;
	labelFunc040D_0BBD:
		UcMessage("\"It doth sound like some sort of pot. Perhaps Topo could aid thee -- he assists Master Ducio in fashioning bowls and pots for the Mages.\"");
		UcSay;
		gflags[010F] = true;
	labelFunc040D_0BC5:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0C07;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0C00;
		var0006 = true;
	labelFunc040D_0C00:
		UI_add_answer_0C(var0005);
	labelFunc040D_0C07:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!gflags[00DB]) goto labelFunc040D_0C27;
		UcMessage("\"Since thou art a Mage, perhaps thou couldst ask thy fellow wizards about this magical apparatus.\"");
		UcSay;
		gflags[0110] = true;
		goto labelFunc040D_0C33;
	labelFunc040D_0C27:
		UcMessage("\"'Twill do no good to speak with the Mages, for they ignore Mundanes like ourselves.\"");
		UcSay;
		UcMessage("\"But if thou spokest with Master Ducio, perhaps he could help thee. He makes all of the apparatus for the wizards of Moonshade.\"");
		UcSay;
		gflags[0111] = true;
	labelFunc040D_0C33:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0C75;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0C6E;
		var0006 = true;
	labelFunc040D_0C6E:
		UI_add_answer_0C(var0005);
	labelFunc040D_0C75:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		if(!Func097D(0xFE9B, 0x0001, 0x010B, 0xFE99, 0xFE99)) goto labelFunc040D_0CA0;
		UcMessage("\"What an ugly rock. Take that with thee when thou leavest, please?\"");
		UcSay;
		goto labelFunc040D_0CA8;
	labelFunc040D_0CA0:
		UcMessage("\"The Magister is a storehouse of knowledge. Perhaps he could aid thee.\"");
		UcSay;
		gflags[0112] = true;
	labelFunc040D_0CA8:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0CEA;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0CE3;
		var0006 = true;
	labelFunc040D_0CE3:
		UI_add_answer_0C(var0005);
	labelFunc040D_0CEA:
		cmps("lost ring");
		UI_remove_answer_0D("lost ring");
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc040D_0D1D;
		UcMessage("\"What a pretty ring! A simple stone in a carved setting -- so unlike anything the Mages would have!\"");
		UcSay;
		UcMessage("\"All they think of are jewels and gold, until they've driven out all the beauty!\"");
		UcSay;
		UcMessage("\"I'll wager that ring comes from the Sea City, Fawn. Where else could such a wonderful creation come from?\"");
		UcSay;
		goto labelFunc040D_0D25;
	labelFunc040D_0D1D:
		UcMessage("\"Perhaps thou couldst speak to the Master Artisan. He hath made many baubles for the MageLord and his mistresses.\"");
		UcSay;
		gflags[0113] = true;
	labelFunc040D_0D25:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0D67;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0D60;
		var0006 = true;
	labelFunc040D_0D60:
		UI_add_answer_0C(var0005);
	labelFunc040D_0D67:
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004)) goto labelFunc040D_0DCE;
		UcMessage("\"Why, I sold that cap myself, from this very shop!\"");
		UcSay;
		UcMessage("\"Ordered it special from the furrier in Monitor. She obtained it from the far north, where the Trappers hunt bears, snow leopards, and the man-eating Gwani.\"");
		UcSay;
		UcMessage("\"With the storms, though, 'tis too dangerous to sail to the north. And we cannot trade by way of land, for the Swamp of Gorlab cuts the mainland in half.\"");
		UcSay;
		var000C = Func0992(0x0001, "@About the fur cap...@", "@About the fur cap...@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, yes, yes, I remember. I sold it to the MageLord, who gave it to his favorite at the Feast of Illusions. I'm surprised that unusual fellow never bought one, what with all the other furs he was collecting.\"");
		UcSay;
		gflags[02A0] = true;
		UI_add_answer_0C("unusual fellow");
		if(!(gflags[02A0] && gflags[02A1])) goto labelFunc040D_0DCB;
		gflags[0292] = true;
	labelFunc040D_0DCB:
		goto labelFunc040D_0DD6;
	labelFunc040D_0DCE:
		UcMessage("\"Anyone could tell thee that fur comes from the north, on the mainland beyond the great swamp.\"");
		UcSay;
		UcMessage("\"I've sold fur caps and cloaks from time to time, but the storms have isolated us from the Trappers. So I have none left to sell!\"");
		UcSay;
	labelFunc040D_0DD6:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0E18;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0E11;
		var0006 = true;
	labelFunc040D_0E11:
		UI_add_answer_0C(var0005);
	labelFunc040D_0E18:
		cmps("unusual fellow");
		UI_remove_answer_0D("unusual fellow");
		UcMessage("\"He was here about two months ago, buying all sorts of furs and such. Obviously he was planning a trip to the north. Of course, no one knows where he actually went, since he left in such a hurry.\"");
		UcSay;
	labelFunc040D_0E2B:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		if(!Func097D(0xFE9B, 0x0001, 0x024B, 0xFE99, 0x0005)) goto labelFunc040D_0E5A;
		UcMessage("\"Such old, ratty things! Must have belonged to some Mundane -- no Mage would wear anything so worn.\"");
		UcSay;
		gflags[0115] = true;
		goto labelFunc040D_0E62;
	labelFunc040D_0E5A:
		UcMessage("\"Slippers? No Mundane could afford them, but perhaps a Mage is missing a pair.\"");
		UcSay;
		gflags[0114] = true;
	labelFunc040D_0E62:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0EA4;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0E9D;
		var0006 = true;
	labelFunc040D_0E9D:
		UI_add_answer_0C(var0005);
	labelFunc040D_0EA4:
		cmps("breastplate");
		UI_remove_answer_0D("breastplate");
		if(!Func097D(0xFE9B, 0x0001, 0x01A3, 0xFE99, 0x0000)) goto labelFunc040D_0ED3;
		UcMessage("\"How exotic -- armour made for a woman! 'Tis too beautiful to come from Monitor, and no ranger here wears such a thing...\"");
		UcSay;
		UcMessage("\"I'll wager that it comes from the sea-city of Fawn. Thou shouldst ask about it there.\"");
		UcSay;
		goto labelFunc040D_0EDB;
	labelFunc040D_0ED3:
		UcMessage("\"Such items of heavy armour are not needed here, as we depend upon the Mages for our defense.\"");
		UcSay;
		UcMessage("\"Thou shouldst ask the armourers of the warrior-city of Monitor -- they make many kinds of armour.\"");
		UcSay;
	labelFunc040D_0EDB:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0F1D;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0F16;
		var0006 = true;
	labelFunc040D_0F16:
		UI_add_answer_0C(var0005);
	labelFunc040D_0F1D:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc040D_0F4D;
		UcMessage("\"Oh, 'tis a rotten egg! Leave here with that!\"");
		UcSay;
		gflags[0104] = true;
		abrt();
		goto labelFunc040D_0F55;
	labelFunc040D_0F4D:
		UcMessage("\"A blue egg? I have never heard of such a thing, but the Magister is wise in many subjects. Perhaps thou shouldst inquire of Fedabiblio.\"");
		UcSay;
		gflags[010C] = true;
	labelFunc040D_0F55:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_0F97;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_0F90;
		var0006 = true;
	labelFunc040D_0F90:
		UI_add_answer_0C(var0005);
	labelFunc040D_0F97:
		cmps("strange hairbrush");
		UI_remove_answer_0D("strange hairbrush");
		if(!Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0006)) goto labelFunc040D_0FC2;
		UcMessage("\"Such an odd little brush. I don't know why, but it doth give me a most unnatural feeling. Please, take it back!\"");
		UcSay;
		goto labelFunc040D_0FCA;
	labelFunc040D_0FC2:
		UcMessage("\"Thou art seeking brushes? Perhaps Topo the Artisan could help thee -- he makes many things for the Master Artisan.\"");
		UcSay;
		gflags[0116] = true;
	labelFunc040D_0FCA:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_100C;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_1005;
		var0006 = true;
	labelFunc040D_1005:
		UI_add_answer_0C(var0005);
	labelFunc040D_100C:
		cmps("bottle of wine");
		UI_remove_answer_0D("bottle of wine");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc040D_1052;
		UcMessage("\"Allow me to see that bottle. But of course! This is Moonshade wine, made by the Rangers of our town!\"");
		UcSay;
		UcMessage("\"If thou desirest more, simply inquire at the Winery on the west side of town.\"");
		UcSay;
		var000C = Func0992(Dupre, "@Very good idea. Let's go.@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc040D_106D;
	labelFunc040D_1052:
		UcMessage("\"Perhaps thou shouldst inquire at the Winery. The Rangers are most knowledgeable about wines.\"");
		UcSay;
		var000C = Func0992(Dupre, "@A visit to the Winery seems in order!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc040D_106D:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_10AF;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_10A8;
		var0006 = true;
	labelFunc040D_10A8:
		UI_add_answer_0C(var0005);
	labelFunc040D_10AF:
		cmps("strange coins");
		UI_remove_answer_0D("strange coins");
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc040D_10DE;
		UcMessage("\"Why, 'tis the money used in the sea-city of Fawn. See the gems in the center!\"");
		UcSay;
		UcMessage("\"If thou desirest, I can exchange those coins for valuable Moonshadian guilders.\"");
		UcSay;
		goto labelFunc040D_10E2;
	labelFunc040D_10DE:
		UcMessage("\"I cannot tell thee what the coin is unless I see it, but if it isn't green and glowing, 'tis worthless.\"");
		UcSay;
	labelFunc040D_10E2:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_1124;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_111D;
		var0006 = true;
	labelFunc040D_111D:
		UI_add_answer_0C(var0005);
	labelFunc040D_1124:
		cmps("skull");
		UI_remove_answer_0D("skull");
		if(!Func097D(0xFE9B, 0x0001, 0x00F4, 0xFE99, 0xFE99)) goto labelFunc040D_114F;
		UcMessage("\"How quaint. Take it with thee when thou leavest...\"");
		UcSay;
		goto labelFunc040D_1157;
	labelFunc040D_114F:
		UcMessage("\"A skull?! I know nothing about bones! Perhaps Magister Fedabiblio could help thee.\"");
		UcSay;
		gflags[010E] = true;
	labelFunc040D_1157:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_1199;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_1192;
		var0006 = true;
	labelFunc040D_1192:
		UI_add_answer_0C(var0005);
	labelFunc040D_1199:
		cmps("bloody hand");
		UI_remove_answer_0D("bloody hand");
		if(!Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0000)) goto labelFunc040D_11DA;
		UcMessage("\"What dost thou have there? Why, 'tis moving...\"");
		UcSay;
		Func097F(0xFFF3, "@Ah!!!@", 0x0000);
		UI_set_schedule_type_25(0xFFF3, 0x0014);
		goto labelFunc040D_11EE;
	labelFunc040D_11DA:
		UcMessage("\"How repugnant.\"");
		UcSay;
		UcMessage("\"Probably the work of the Goblins -- I have heard that they are most crude, though they do not bother us here on this island.\"");
		UcSay;
		UcMessage("\"Or perhaps one of the Mages hath been experimenting again in the forbidden arts.\"");
		UcSay;
		UcMessage("\"Mortegro doth have an interest in Death, and goodness knows what the Mad Mage might be doing!\"");
		UcSay;
		gflags[0117] = true;
	labelFunc040D_11EE:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_1230;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_1229;
		var0006 = true;
	labelFunc040D_1229:
		UI_add_answer_0C(var0005);
	labelFunc040D_1230:
		cmps("plain shield");
		UI_remove_answer_0D("plain shield");
		if(!Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0xFE99)) goto labelFunc040D_125B;
		UcMessage("\"Those colors are the hues worn by the Monitorians. The shield must have come from a pikeman.\"");
		UcSay;
		goto labelFunc040D_1263;
	labelFunc040D_125B:
		UcMessage("\"Perhaps Ernesto at the Winery could help thee. 'Tis said that he is good with weapons and such.\"");
		UcSay;
		gflags[0118] = true;
	labelFunc040D_1263:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_12A5;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_129E;
		var0006 = true;
	labelFunc040D_129E:
		UI_add_answer_0C(var0005);
	labelFunc040D_12A5:
		cmps("glowing rock");
		UI_remove_answer_0D("glowing rock");
		if(!(var0001 || gflags[0119])) goto labelFunc040D_12DE;
		if(!var0001) goto labelFunc040D_12CF;
		UcMessage("\"Put that away! I hope that no one saw...\"");
		UcSay;
		UcMessage("\"Dost thou not know that it is a crime to possess Stoneheart! It is a most dangerous substance.\"");
		UcSay;
		goto labelFunc040D_12D3;
	labelFunc040D_12CF:
		UcMessage("\"Thou dost know that it is a crime to possess Stoneheart! It drives men into lunacy!\"");
		UcSay;
	labelFunc040D_12D3:
		UcMessage("\"Thou shouldst discard it in some safe place, such as a remote isle or distant mountaintop.\"");
		UcSay;
		gflags[0119] = true;
		goto labelFunc040D_12F0;
	labelFunc040D_12DE:
		UcMessage("\"I'm not sure of what thou speakest, but perhaps Pothos the Apothecary could identify it for thee.\"");
		UcSay;
		gflags[011A] = true;
		if(!gflags[00D9]) goto labelFunc040D_12F0;
		UcMessage("\"Sadly, his shop is closed today. He hath not been seen for some time.\"");
		UcSay;
	labelFunc040D_12F0:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_1332;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_132B;
		var0006 = true;
	labelFunc040D_132B:
		UI_add_answer_0C(var0005);
	labelFunc040D_1332:
		cmps("fish-net stockings");
		UI_remove_answer_0D("fish-net stockings");
		var0010 = Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0001);
		if(!var0010) goto labelFunc040D_1363;
		UcMessage("\"Those are very interesting, but too daring for a nice girl to wear, methinks.\"");
		UcSay;
		goto labelFunc040D_1367;
	labelFunc040D_1363:
		UcMessage("\"I think I know the stockings thou art speaking of, but I am not certain...\"");
		UcSay;
	labelFunc040D_1367:
		UcMessage("\"I do not stock such goods any more, but I know where they can be obtained -- Fawn, the sea-city.\"");
		UcSay;
		var000C = Func0992(Shamino, "@But thou used to sell these stockings?@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc040D_13AD;
		UI_set_conversation_slot_09(0x0000);
		if(!var0010) goto labelFunc040D_13A1;
		UcMessage("\"Oh, yes. To the Sorceress of the Night, Selenia. But she hath been absent from this city for many weeks now.\"");
		UcSay;
		UcMessage("\"This stocking might be a clue to her strange disappearance! Thou shouldst take this to the Chief Ranger!\"");
		UcSay;
		gflags[0106] = true;
		goto labelFunc040D_13AD;
	labelFunc040D_13A1:
		UcMessage("\"Well, not having seen thy stocking, I cannot be sure. But it sounds like it might be the kind which I used to sell to the Sorceress of the Night.\"");
		UcSay;
		UcMessage("\"Perhaps this is a clue to the strange disappearance of Selenia!\"");
		UcSay;
		gflags[0106] = true;
	labelFunc040D_13AD:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_13EF;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_13E8;
		var0006 = true;
	labelFunc040D_13E8:
		UI_add_answer_0C(var0005);
	labelFunc040D_13EF:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0000)) goto labelFunc040D_1435;
		UcMessage("\"Could I see thy bottle? Hmm... A bitter ale of some kind.\"");
		UcSay;
		UcMessage("\"If I were thee, I'd discard this bile and replace it with some of our excellent Moonshadian wine. If thou desirest some, simply inquire at the Winery on the west side of town.\"");
		UcSay;
		var000C = Func0992(Dupre, "@Can we go?@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc040D_1450;
	labelFunc040D_1435:
		UcMessage("\"Perhaps thou shouldst inquire at the Winery. Ernesto is most knowledgeable about wines.\"");
		UcSay;
		var000C = Func0992(Dupre, "@I enjoy visiting wineries!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc040D_1450:
		var0009 = Func09AE(var0009);
		if(!(!var0006)) goto labelFunc040D_1492;
		var0005 = var000E[UI_get_random_00(UI_get_array_size_73(var000E))];
		var000E = Func0988(var0005, var000E);
		if(!(var000E == [])) goto labelFunc040D_148B;
		var0006 = true;
	labelFunc040D_148B:
		UI_add_answer_0C(var0005);
	labelFunc040D_1492:
		cmps("nothing more");
		if(!(var000B == 0x0001)) goto labelFunc040D_14AF;
		UI_pop_answers_0F();
		UcMessage("\"I wish I could have been of more help to thee...\"");
		UcSay;
		goto labelFunc040D_14CE;
	labelFunc040D_14AF:
		if(!(var000B > 0x0001)) goto labelFunc040D_14CA;
		UI_pop_answers_0F();
		var000B = (var000B - 0x0001);
		goto labelFunc040D_14AF;
	labelFunc040D_14CA:
		UcMessage("\"Is there anything else I can help thee with?\"");
		UcSay;
	labelFunc040D_14CE:
		cmps("provisions");
		UcMessage("\"The owner keeps the shop well-stocked with all of the most useful goods.\"");
		UcSay;
		if(!(!var000A)) goto labelFunc040D_14E9;
		UcMessage("\"But I am afraid that prices are rather high these days, now that the ships no longer sail.\"");
		UcSay;
		var000A = true;
	labelFunc040D_14E9:
		Func080C();
	labelFunc040D_14EC:
		cmps("exchange");
		Func080B();
	labelFunc040D_14F7:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@I must be going.@", 0x0000);
		Func097F(0xFFF3, "@Do return sometime!@", 0x0002);
		Func08FF();
		goto labelFunc040D_1524;
	labelFunc040D_1521:
		goto labelFunc040D_0309;
	labelFunc040D_1524:
		end_conv();
	labelFunc040D_1525:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0816 0x816 ();
extern var Func0955 0x955 ();
extern Func08FF 0x8FF ();

Func040E 0x40E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = "Mundane";
	if(!gflags[00DB]) goto labelFunc040E_0012;
	var0000 = "Mage";
	labelFunc040E_0012:
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		var0003 = UI_part_of_day_48();
		if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc040E_0041;
		var0003 = "day";
		goto labelFunc040E_0047;
	labelFunc040E_0041:
		var0003 = "evening";
	labelFunc040E_0047:
		if(!(event == 0x0001)) goto labelFunc040E_007D;
		UI_item_say_4D(0xFE9C, "Hello, there.");
		0xFFF2;
		calle();
		Func097F(0xFFF2, (("@Greetings, " + var0000) + "."), 0x0002);
		UI_set_schedule_type_25(0xFFF2, 0x0003);
	labelFunc040E_007D:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc040E_00A0;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc040E_00A0:
		if(!(event == 0x0000)) goto labelFunc040E_00B0;
		UI_set_schedule_type_25(item, 0x0015);
	labelFunc040E_00B0:
		if(!(event == 0x0009)) goto labelFunc040E_0450;
		UI_run_schedule_B7(0xFFF2);
		UI_clear_item_say_4E(0xFFF2);
		UI_halt_scheduled_71(0xFFF2);
		UI_halt_scheduled_71(0xFE9C);
		var0005 = UI_get_item_flag_A3(0xFF58, 0x0004);
		if(!gflags[00E2]) goto labelFunc040E_00F5;
		if(!(!var0005)) goto labelFunc040E_00F5;
		UI_add_answer_0C("Stefano");
	labelFunc040E_00F5:
		var0006 = Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000);
		if(!var0006) goto labelFunc040E_0117;
		UI_add_answer_0C("stockings");
	labelFunc040E_0117:
		if(!gflags[00FD]) goto labelFunc040E_012A;
		UI_show_npc_face0_05(0xFFF2, 0x0001);
		goto labelFunc040E_0134;
	labelFunc040E_012A:
		UI_show_npc_face0_05(0xFFF2, 0x0000);
	labelFunc040E_0134:
		if(!(!gflags[00DB])) goto labelFunc040E_014C;
		UcMessage("\"I am sorry, but thou hast mistaken me for someone else. Thou couldst not possibly be speaking to me, as I am a Mage... and thou art merely Mundane.\"");
		UcSay;
		Func097F(0xFFF2, "@Honestly!@", 0x0000);
		abrt();
	labelFunc040E_014C:
		var0007 = UI_get_item_flag_A3(0xFFF2, 0x001C);
		if(!(var0007 == false)) goto labelFunc040E_0176;
		UI_set_item_flag_A4(0xFFF2, 0x001C);
		UcMessage("\"I do not believe that we've met. It is so nice to make the acquaintance of a new, young Mage.\"");
		UcSay;
		UcMessage("\"I am Columna, the Green Enchantress.\"");
		UcSay;
		goto labelFunc040E_017A;
	labelFunc040E_0176:
		UcMessage("\"Welcome, Mage. I am pleased to see thee again.\"");
		UcSay;
	labelFunc040E_017A:
		if(!(gflags[00DF] && (!gflags[00EF]))) goto labelFunc040E_018F;
		UI_add_answer_0C(["Mosh"]);
	labelFunc040E_018F:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc040E_01A1;
		UI_add_answer_0C("apparatus");
	labelFunc040E_01A1:
		UI_add_answer_0C(["Green Enchantress", "bye"]);
	labelFunc040E_01AE:
		UcAsk;
		cmps("Green Enchantress");
		UI_remove_answer_0D("Green Enchantress");
		UcMessage("\"My name is Columna. Sorceress, wife of Melino, and I am also the most desired beauty in Moonshade.\"");
		UcSay;
		if(!gflags[00FD]) goto labelFunc040E_01CE;
		UcMessage("\"Is that not a funny joke?! Me, a decrepit hag?! The most desired beauty in all of Moonshade?! Once, in my time... In my time...\"");
		UcSay;
	labelFunc040E_01CE:
		UI_add_answer_0C(["sorceress", "Melino", "beauty"]);
	labelFunc040E_01DE:
		cmps("sorceress");
		UI_remove_answer_0D("sorceress");
		UcMessage("\"Perhaps I could interest thee in a spell. Many strange travellers have come from across the Serpent Isle to learn spells from me. But that, of course, was before the Teleport Storms.\"");
		UcSay;
		UI_add_answer_0C(["buy spells", "strange travellers", "teleport storms"]);
	labelFunc040E_0201:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		var0008 = Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001);
		if(!var0008) goto labelFunc040E_0236;
		UcMessage("\"This laboratory equipment must surely belong to Erstam, the Mad Mage! It bears the unmistakably foul stench of one of his experiments.\"");
		UcSay;
		gflags[028F] = true;
		goto labelFunc040E_023A;
	labelFunc040E_0236:
		UcMessage("\"Without being able to actually look at the item thou hast mentioned, I can tell thee nothing.\"");
		UcSay;
	labelFunc040E_023A:
		cmps("teleport storms");
		UI_remove_answer_0D("teleport storms");
		UcMessage("\"Since these vile telport storms began all sea travel has virtually stopped. Even long range travel over land is considered to be extremely dangerous!\"");
		UcSay;
	labelFunc040E_024D:
		cmps("buy spells");
		Func0816();
	labelFunc040E_0258:
		cmps("strange travellers");
		UI_remove_answer_0D("strange travellers");
		UcMessage("\"Many weeks ago a woman named Gwenno passed through Moonshade, and more recently a sage named Batlin.\"");
		UcSay;
		UI_add_answer_0C(["Gwenno", "Batlin"]);
	labelFunc040E_0278:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"The one and only time I saw her she was singing a love song about her husband, Iolo. But she made quite an impression on some people while she was here. If thou dost wish to know more of her, then ask around.\"");
		UcSay;
	labelFunc040E_028B:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"He came through town with a strange daemon creature as his companion and servant, and he had some sort of artifact in his possession.\"");
		UcSay;
		UI_add_answer_0C(["daemon", "artifact"]);
	labelFunc040E_02AB:
		cmps("daemon");
		UI_remove_answer_0D("daemon");
		UcMessage("\"'Twas male, and had bright red skin. But there were no horns on its head -- I swear. I believe its name was Palos.\"");
		UcSay;
	labelFunc040E_02BE:
		cmps("artifact");
		UI_remove_answer_0D("artifact");
		UcMessage("\"I personally did not see it, but I know that Gustacio did.\"");
		UcSay;
	labelFunc040E_02D1:
		cmps("Melino");
		UI_remove_answer_0D("Melino");
		UcMessage("\"I shall have thee know that mine husband is most influential with the Council of Mages. And is perfectly capable of satisfying my needs in nearly all other ways.\"");
		UcSay;
		UI_add_answer_0C(["influential", "satisfying needs"]);
	labelFunc040E_02F1:
		cmps("influential");
		UI_remove_answer_0D("influential");
		UcMessage("\"He is a close and trusted advisor to Filbercio, the MageLord of Moonshade and senior member of the Council.\"");
		UcSay;
	labelFunc040E_0304:
		cmps("satisfying needs");
		UI_remove_answer_0D("satisfying needs");
		UcMessage("\"Oh, worry thyself not. I am not one to allow my needs to go unsatisfied.\"");
		UcSay;
	labelFunc040E_0317:
		cmps("beauty");
		UI_remove_answer_0D("beauty");
		if(!gflags[00FD]) goto labelFunc040E_0333;
		UcMessage("\"Without my precious comb, all of my beauty hath long faded.\"");
		UcSay;
		goto labelFunc040E_0337;
	labelFunc040E_0333:
		UcMessage("\"Yes, in truth it hath always been so, and shall always be. My natural good looks must be the result of my good breeding.\"");
		UcSay;
	labelFunc040E_0337:
		cmps("Stefano");
		UI_remove_answer_0D("Stefano");
		UcMessage("\"'Twas Stefano who stole my stockings from Torrissio's house in an attempt to blackmail us over our affair.\"");
		UcSay;
		if(!gflags[0239]) goto labelFunc040E_0357;
		UcMessage("\"Now that he is returned to Moonshade, we have already seen to it that he shall die for what he tried to do to us.\"");
		UcSay;
		goto labelFunc040E_035B;
	labelFunc040E_0357:
		UcMessage("\"My sincerest wish is that he rot slowly in Filbercio's mountain prison.\"");
		UcSay;
	labelFunc040E_035B:
		cmps("stockings");
		UI_remove_answer_0D("stockings");
		if(!var0001) goto labelFunc040E_03B9;
		UcMessage("\"Those stockings thou dost have in thy possession are rightfully my property. They can be used by people to humiliate me and destroy my marriage. As one woman to another, I appeal to thee for understanding. If thou dost return them to me I will give to thee a spell from my personal spellbook. Wilt thou please return them to me?\"");
		UcSay;
		var0009 = Func0955();
		if(!var0009) goto labelFunc040E_03B2;
		var000A = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, true);
		UcMessage("\"Ha! There was thy spell, foolish woman! Now the stockings are destroyed and they shall trouble me no more!\"");
		UcSay;
		Func097F(0xFFF2, "@Fool!@", 0x0000);
		UI_set_schedule_type_25(0xFFF2, 0x000C);
		abrt();
		goto labelFunc040E_03B6;
	labelFunc040E_03B2:
		UcMessage("\"Please, I beg of thee to reconsider.\"");
		UcSay;
	labelFunc040E_03B6:
		goto labelFunc040E_03F9;
	labelFunc040E_03B9:
		UcMessage("\"Thou hast my stockings in thy possession. They are my intimate apparel and they do not belong in thy backpack. They belong on my creamy thighs. I am a woman and thou art a man and thou dost have me at an advantage. If thou wouldst but return them, I shall be happy to wear them for thee, in a night of passion that thou shalt remember all of thy days. May I have them now?\"");
		UcSay;
		var000B = Func0955();
		if(!var000B) goto labelFunc040E_03F5;
		var000C = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, true);
		if(!gflags[00DB]) goto labelFunc040E_03EA;
		UcMessage("\"Ha! Dost thou think that because thou art now a Mage, that thou art equal to me? I reject thine advances, mage.\"");
		UcSay;
		goto labelFunc040E_03EE;
	labelFunc040E_03EA:
		UcMessage("\"Ha! Thou dost think I would squander my lust on the likes of thee?! A Mundane!!! I laugh at thee.\"");
		UcSay;
	labelFunc040E_03EE:
		UcMessage("\"The stockings have now been destroyed by my magics. Thou dost have no hold over me, nor shall anyone else!\"");
		UcSay;
		goto labelFunc040E_03F9;
	labelFunc040E_03F5:
		UcMessage("\"Please, I beg of thee to reconsider.\"");
		UcSay;
	labelFunc040E_03F9:
		cmps("Mosh");
		UI_remove_answer_0D("Mosh");
		UcMessage("\"So thou hast been spending thy time with beggars and thieves? This does not speak well of thy character, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"No doubt she hath defamed me. What tales she tells! Of course, she is merely jealous of my position in society, and of my powers.\"");
		UcSay;
		UcMessage("\"Let me say this plainly. Mosh lies. She hath ruined herself with cruel indulgences, and now she is half mad.\"");
		UcSay;
		UcMessage("\"Why, she sleeps with her rats! I ask thee, is this the action of a respectable mage?\"");
		UcSay;
		gflags[00EE] = true;
	labelFunc040E_0422:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@I must be going...@", 0x0000);
		Func097F(0xFFF2, "@Farewell!@", 0x0002);
		Func08FF();
		goto labelFunc040E_044F;
	labelFunc040E_044C:
		goto labelFunc040E_01AE;
	labelFunc040E_044F:
		end_conv();
	labelFunc040E_0450:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0826 0x826 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0956 0x956 (var var0000);
extern Func0827 0x827 ();
extern Func08FF 0x8FF ();

Func040F 0x40F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_part_of_day_48();
	var0004 = false;
	var0005 = UI_find_nearby_41(0xFFF1, 0x02E3, 0x001E, 0x0000);
	if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc040F_004C;
	var0003 = "day";
	goto labelFunc040F_0052;
	labelFunc040F_004C:
		var0003 = "evening";
	labelFunc040F_0052:
		if(!(event == 0x000A)) goto labelFunc040F_005E;
		Func0826(event);
	labelFunc040F_005E:
		if(!(event == 0x0001)) goto labelFunc040F_0094;
		UI_item_say_4D(0xFE9C, "@Hello!@");
		0xFFF1;
		calle();
		Func097F(0xFFF1, (("@Good " + var0003) + ".@"), 0x0002);
		UI_set_schedule_type_25(0xFFF1, 0x0003);
	labelFunc040F_0094:
		if(!(event == 0x0009)) goto labelFunc040F_0635;
		UI_run_schedule_B7(0xFFF1);
		UI_clear_item_say_4E(0xFFF1);
		UI_show_npc_face0_05(0xFFF1, 0x0000);
		var0006 = UI_get_item_flag_A3(0xFFF1, 0x001C);
		if(!(var0006 == false)) goto labelFunc040F_00E1;
		UcMessage("\"I am Ducio, the Master Artisan.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFF1, 0x001C);
		UI_add_answer_0C("Master Artisan");
		goto labelFunc040F_0100;
	labelFunc040F_00E1:
		if(!gflags[0004]) goto labelFunc040F_00F5;
		UcMessage("\"Thou art alive! Thou hast survived the holocaust! So many are dead...\"");
		UcSay;
		UI_add_answer_0C("holocaust");
		goto labelFunc040F_0100;
	labelFunc040F_00F5:
		UcMessage("\"Welcome back...\"");
		UcSay;
		UI_add_answer_0C("Master Artisan");
	labelFunc040F_0100:
		if(!var0005) goto labelFunc040F_0114;
		UcMessage("\"What is thy business?\"");
		UcSay;
		UI_add_answer_0C("business");
		goto labelFunc040F_0118;
	labelFunc040F_0114:
		UcMessage("\"How may I be of use to thee?\"");
		UcSay;
	labelFunc040F_0118:
		if(!(gflags[0234] && (!gflags[00CE]))) goto labelFunc040F_012A;
		UI_add_answer_0C("Daemon Sword");
	labelFunc040F_012A:
		if(!(gflags[0111] && (!gflags[028F]))) goto labelFunc040F_013C;
		UI_add_answer_0C("apparatus");
	labelFunc040F_013C:
		if(!(gflags[0268] == true)) goto labelFunc040F_014B;
		UI_add_answer_0C("Worm Gem");
	labelFunc040F_014B:
		if(!(gflags[0113] && (!gflags[0291]))) goto labelFunc040F_015D;
		UI_add_answer_0C("lost ring");
	labelFunc040F_015D:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc040F_0176;
		UI_add_answer_0C("kidnap");
	labelFunc040F_0176:
		UI_add_answer_0C(["bye"]);
	labelFunc040F_0180:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Do not involve me in such matters, stranger! Canst thou not see that I am a Mundane?\"");
		UcSay;
		UcMessage("\"This matter smacks of wizardry, and I want no part of it!\"");
		UcSay;
		Func097F(0xFFF1, "@No part!@", 0x0000);
		abrt();
	labelFunc040F_01A7:
		cmps("holocaust");
		UI_remove_answer_0D("holocaust");
		UcMessage("\"Thy companion Shamino did return to this place, and he was in a killing rage. Despite all efforts to stop him, he did murder everyone in our town, save for Torrissio, Andrio and myself.\"");
		UcSay;
	labelFunc040F_01BA:
		cmps("Master Artisan");
		UI_remove_answer_0D("Master Artisan");
		if(!gflags[0004]) goto labelFunc040F_01D6;
		UcMessage("\"I have the talented hands that come from a long line of craftsmen. But I live in a world with no one but the dead to create for! A most funny joke, no?!\"");
		UcSay;
		goto labelFunc040F_01F2;
	labelFunc040F_01D6:
		UcMessage("\"I have an apprentice. I have automatons to help the work progress. That makes me a Master.\"");
		UcSay;
		UcMessage("\"I am able to create or repair anything. I make what the Mages need. That makes me an Artisan.\"");
		UcSay;
		UcMessage("\"If thou hast need of the Master, ask me. If not, ask Topo.\"");
		UcSay;
		UI_add_answer_0C(["automatons", "anything", "Topo"]);
	labelFunc040F_01F2:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"One that bakes. One that sews. One that smiths. All from Torrissio. They work hard... do not talk back like Topo.\"");
		UcSay;
		UI_add_answer_0C("Torrissio");
	labelFunc040F_020C:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Torrissio is an Adept. He makes automaton guards and servants. He does good work... almost like a Master Artisan. But he needs magic to make everything work.\"");
		UcSay;
		UcMessage("\"I gave him a good deal on the metal he needs. Now I've got three hard workers made of metal. Not a bad deal.\"");
		UcSay;
		UI_add_answer_0C(["magic", "deal"]);
	labelFunc040F_0230:
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"Torrissio doth not ask about my work. I do not ask about his.\"");
		UcSay;
		UcMessage("\"All I know is that his spells are old. Not anything created by these Mages.\"");
		UcSay;
		UcMessage("\"Thou wishest to ask more, ask Torrissio... If he will speak with thee.\"");
		UcSay;
		UI_add_answer_0C("old");
	labelFunc040F_0252:
		cmps("old");
		UI_remove_answer_0D("old");
		UcMessage("\"Very old. Maybe as old as the Serpent ruins, maybe not. I'm not a Mage.\"");
		UcSay;
		UI_add_answer_0C("Serpent Ruins");
	labelFunc040F_026C:
		cmps("Serpent Ruins");
		UI_remove_answer_0D("Serpent Ruins");
		UcMessage("\"What dost thou think I am, a teacher like Fedabiblio?!\"");
		UcSay;
		UcMessage("\"If thou wishest a history lesson, go to him like any novice. If thou wishest the work of a Master Artisan, stay.\"");
		UcSay;
		UcMessage("\"I do not have time for such questions!\"");
		UcSay;
		UI_add_answer_0C(["Fedabiblio", "novice"]);
	labelFunc040F_0294:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio teaches the young mages. He keeps the library of magic. He knows the history. Speak to him, do not bother me!\"");
		UcSay;
	labelFunc040F_02A7:
		cmps("novice");
		UI_remove_answer_0D("novice");
		UcMessage("\"If thou seekest knowledge, thou art a novice. One who seeks to be taught. I am a Master. I do not teach. I do not need teaching. I am not a novice.\"");
		UcSay;
	labelFunc040F_02BA:
		cmps("deal");
		UI_remove_answer_0D("deal");
		UcMessage("\"Art thou a Master?\"");
		UcSay;
		UcMessage("\"No. Then do not ask what deal I give to others. Bad manners.\"");
		UcSay;
	labelFunc040F_02D1:
		cmps("anything");
		UI_remove_answer_0D("anything");
		UcMessage("\"If the Mages can speak plain enough to explain what they need, I can make it.\"");
		UcSay;
		UcMessage("\"Magical apparatus. Swords. Whatever. I can make it. They enchant it. 'Tis fair.\"");
		UcSay;
		UI_add_answer_0C(["Magical apparatus", "Swords"]);
	labelFunc040F_02F5:
		cmps("Magical apparatus");
		UI_remove_answer_0D("Magical apparatus");
		UcMessage("\"I make all the apparatus for the Mages. All different. Every Mage wants something a little different than the next.\"");
		UcSay;
		UcMessage("\"I can tell thee who a piece belongs to just by looking at it. I remember everything I've made.\"");
		UcSay;
		UcMessage("\"Dost thou have something thou wishest me to look at?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc040F_031E;
		goto labelFunc040F_032A;
		goto labelFunc040F_0322;
	labelFunc040F_031E:
		UcMessage("\"Fine.\"");
		UcSay;
	labelFunc040F_0322:
		cmps("apparatus");
	labelFunc040F_032A:
		UI_remove_answer_0D("apparatus");
		if(!var0005) goto labelFunc040F_0380;
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc040F_0362;
		UcMessage("\"Hmmmm. This is a piece of lab apparatus that the mages use. In fact, this one was one of my first masterpieces. I thought it had been destroyed.\"");
		UcSay;
		UcMessage("\"I might ask how thou didst come by this. But I won't. I do not want to know. Vasculio hath been dead for years...\"");
		UcSay;
		var0007 = true;
		UI_add_answer_0C("Vasculio");
		goto labelFunc040F_037D;
	labelFunc040F_0362:
		UcMessage("\"Thou hast no such object! Do not waste my time, for I am a busy man...\"");
		UcSay;
		Func097F(0xFFF1, "@Must work...@", 0x0000);
		UI_set_schedule_type_25(0xFFF1, 0x0014);
		abrt();
	labelFunc040F_037D:
		goto labelFunc040F_0384;
	labelFunc040F_0380:
		UcMessage("\"If thou wouldst bring the object to my shop, I would be glad to examine it there. I do not have my tools with me now.\"");
		UcSay;
	labelFunc040F_0384:
		cmps("Vasculio");
		UI_remove_answer_0D("Vasculio");
		UcMessage("\"Not good, that one. Sought to reach beyond life and rule death. Not good.\"");
		UcSay;
		UcMessage("\"The Council killed him years ago. I thought they had destroyed all his equipment after they found the grave empty... But mayhaps Ensorcio took it.\"");
		UcSay;
		UI_add_answer_0C(["grave empty", "Ensorcio"]);
	labelFunc040F_03A8:
		cmps("grave empty");
		UI_remove_answer_0D("grave empty");
		UcMessage("\"They say he rose from the dead. They think he is looking for revenge.\"");
		UcSay;
		UcMessage("\"I think the Council secretly decided to burn him. No one can bring back the dead from ashes.\"");
		UcSay;
	labelFunc040F_03BF:
		cmps("Ensorcio");
		UI_remove_answer_0D("Ensorcio");
		UcMessage("\"Ensorcio was Vasculio's apprentice. Too much like his Master, that one.\"");
		UcSay;
		UcMessage("\"Exiled now. Hear he spends his time drinking away his sorrows on another island.\"");
		UcSay;
	labelFunc040F_03D6:
		cmps("Swords");
		UI_remove_answer_0D("Swords");
		UcMessage("\"Do not have much call for them. Not magic ones anyway. But I have made a few.\"");
		UcSay;
		UcMessage("\"Unless it is a special order, mine automaton makes it. For something non-magic, talk to Topo. If it's magic, talk to me.\"");
		UcSay;
	labelFunc040F_03ED:
		cmps("Topo");
		UI_remove_answer_0D("Topo");
		UcMessage("\"Mine apprentice. Scrawny boy. Large ambitions. Big mouth.\"");
		UcSay;
		UcMessage("\"But he doth work hard... when I yell at him. Shows promise.\"");
		UcSay;
		UcMessage("\"Tends to be a bit lazy, though. Must teach him better. Make certain he learns as much as he thinks he knows.\"");
		UcSay;
	labelFunc040F_0408:
		cmps("business");
		UI_remove_answer_0D("business");
		UcMessage("\"What dost thou need? To buy? To look? To talk?\"");
		UcSay;
		var0008 = Func0956(["buy", "look", "talk"]);
		if(!(var0008 == "buy")) goto labelFunc040F_0441;
		UI_add_answer_0C("buy");
		goto labelFunc040F_046D;
	labelFunc040F_0441:
		if(!(var0008 == "look")) goto labelFunc040F_0457;
		UcMessage("\"Looking is free. Inspect the automaton-made goods.\"");
		UcSay;
		UcMessage("\"I have everything from cloaks to baked goods. Ceramics to swords. And many things between.\"");
		UcSay;
		UcMessage("\"Let me know if thou dost wish to buy anything.\"");
		UcSay;
	labelFunc040F_0457:
		if(!(var0008 == "talk")) goto labelFunc040F_0465;
		UcMessage("\"Talk is free, too. But I'm a busy man.\"");
		UcSay;
	labelFunc040F_0465:
		cmps("buy");
	labelFunc040F_046D:
		if(!(var0004 == false)) goto labelFunc040F_048A;
		if(!gflags[0004]) goto labelFunc040F_0482;
		UcMessage("\"If thou seest something thou dost like, tell me. If thou desirest something I do not have, let me know. I can either make it for thee or direct thee to someone who can.\"");
		UcSay;
		goto labelFunc040F_0486;
	labelFunc040F_0482:
		UcMessage("\"If thou seest something thou dost like, tell Topo or me. If thou desirest something I do not have, let me know. I can either make it for thee or direct thee to someone who can.\"");
		UcSay;
	labelFunc040F_0486:
		var0004 = true;
	labelFunc040F_048A:
		Func0827();
	labelFunc040F_048D:
		cmps("lost ring");
		UI_remove_answer_0D("lost ring");
		if(!var0005) goto labelFunc040F_04DA;
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc040F_04D3;
		UcMessage("\"May I see it? Ah, thank thee...\"");
		UcSay;
		UcMessage("\"Too plain for a Mage... But wait, I remember this!\"");
		UcSay;
		UcMessage("\"I made it for a sailor from Fawn. I'll wager that it cost him half a year's wages. He wanted it for an engagement ring.\"");
		UcSay;
		UI_add_answer_0C(["Fawn", "sailor"]);
		goto labelFunc040F_04D7;
	labelFunc040F_04D3:
		UcMessage("\"So where is this ring? How can I tell thee anything about this ring, if thou dost not bring it to me?\"");
		UcSay;
	labelFunc040F_04D7:
		goto labelFunc040F_04DE;
	labelFunc040F_04DA:
		UcMessage("\"If thou wouldst bring thy ring to my shop, I would be glad to examine it there. I do not have my tools with me now.\"");
		UcSay;
	labelFunc040F_04DE:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"Fawn is on the other island. Somewhere on the far side, I think. 'Tis a port. Filled with sailors.\"");
		UcSay;
		UcMessage("\"That is all I know.\"");
		UcSay;
	labelFunc040F_04F5:
		cmps("sailor");
		UI_remove_answer_0D("sailor");
		UcMessage("\"I remember the piece, not the man. Wasn't a Mage. Not worth recalling, I imagine.\"");
		UcSay;
		UcMessage("\"Ask in Fawn. He was proud enough about the ring. Someone will know who it belongs to.\"");
		UcSay;
	labelFunc040F_050C:
		cmps("Daemon Sword");
		UI_remove_answer_0D("Daemon Sword");
		UcMessage("\"Magical swords are very difficult to deal with. In some cases, I can be of aid, but other cases require the assistance of a Mage.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0326, 0xFE99, 0xFE99)) goto labelFunc040F_055F;
		UcMessage("\"'Tis a magic sword, right enough. I'll take thy word about the Daemon...\"");
		UcSay;
		UcMessage("\"The structure of the blade is not damaged. It is not a problem that I can repair.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFEA, 0x0004)) goto labelFunc040F_0554;
		UcMessage("\"Thou must seek out a Mage to aid thee, if there are any left among the living...\"");
		UcSay;
		UcMessage("\"If Gustacio's flux analyzer had not been stolen, I would have sent thee to his lab. It was the only thing that might have helped thee.\"");
		UcSay;
		goto labelFunc040F_055C;
	labelFunc040F_0554:
		UcMessage("\"Thou mightest check with Gustacio. He might be able to help thee. I have heard that he is working on something called the flux analyzer. It might be of aid to thee.\"");
		UcSay;
		gflags[00FE] = true;
	labelFunc040F_055C:
		goto labelFunc040F_0563;
	labelFunc040F_055F:
		UcMessage("\"If thou wouldst bring me the sword, I could examine it for thee.\"");
		UcSay;
	labelFunc040F_0563:
		cmps("Worm Gem");
		UI_remove_answer_0D("Worm Gem");
		if(!var0005) goto labelFunc040F_05D5;
		UcMessage("\"What a strange request... Yes, I can make thee a Worm Gem, if thou dost desire.\"");
		UcSay;
		UI_add_answer_0C("strange request");
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000A)) goto labelFunc040F_05C7;
		if(!Func097D(0xFE9B, 0x0003, 0x034A, 0xFE99, 0x000A)) goto labelFunc040F_05B9;
		UcMessage("\"'Tis a simple matter, when thou dost know the secret...\"");
		UcSay;
		Func0826(event);
		abrt();
		goto labelFunc040F_05C4;
	labelFunc040F_05B9:
		UcMessage("\"Thou must bring me three Worm Hearts -- no less!\"");
		UcSay;
		UI_add_answer_0C("Worm Hearts");
	labelFunc040F_05C4:
		goto labelFunc040F_05D2;
	labelFunc040F_05C7:
		UcMessage("\"But first, thou must bring me the Hearts of three Ice Worms.\"");
		UcSay;
		UI_add_answer_0C("Worm Hearts");
	labelFunc040F_05D2:
		goto labelFunc040F_05D9;
	labelFunc040F_05D5:
		UcMessage("\"I will make thee a Worm Gem if thou wilt come to my shop when I am there...\"");
		UcSay;
	labelFunc040F_05D9:
		cmps("strange request");
		UI_remove_answer_0D("strange request");
		UcMessage("\"'Twas Torrissio who told me the secret of making these gems. He said he learned of it from ancient scrolls written in some strange runic lettering.\"");
		UcSay;
		UcMessage("\"For years, he hath been mine only customer for such gems. But then the stranger named Batlin asked me to craft some for him, and now thou dost request them...\"");
		UcSay;
	labelFunc040F_05F0:
		cmps("Worm Hearts");
		UI_remove_answer_0D("Worm Hearts");
		UcMessage("\"Why, the hearts of Ice Worms, of course! Kill an Ice Worm, strip it of its heart, and kill another.\"");
		UcSay;
		UcMessage("\"The Ice Worms are found in the cold northern lands, I am told. I have not been there myself. Heard stories. Very cold.\"");
		UcSay;
	labelFunc040F_0607:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		Func097F(0xFFF1, "@Come again!@", 0x0002);
		Func08FF();
		goto labelFunc040F_0634;
	labelFunc040F_0631:
		goto labelFunc040F_0180;
	labelFunc040F_0634:
		end_conv();
	labelFunc040F_0635:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0942 0x942 (var var0000);
extern Func08FF 0x8FF ();

Func0410 0x410 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_part_of_day_48();
	if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc0410_0035;
	var0003 = "day";
	goto labelFunc0410_003B;
	labelFunc0410_0035:
		var0003 = "evening";
	labelFunc0410_003B:
		if(!(gflags[0128] && ((event == 0x0000) && (!gflags[00E6])))) goto labelFunc0410_0382;
		UI_set_npc_id_BD(0xFFF0, (UI_get_npc_id_BC(0xFFF0) + 0x0001));
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0008)) goto labelFunc0410_00B3;
		UI_play_sound_effect_16(0x0074);
		var0004 = UI_get_object_position_20(0xFFF0);
		UI_sprite_effect_68(0x002B, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0005 = UI_delayed_execute_usecode_array_02(0xFFF0, [0x23, 0x55, 0x0410], 0x0003);
	labelFunc0410_00B3:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0007)) goto labelFunc0410_011D;
		Func097F(0xFFF0, "@Oh, no!@", 0x0000);
		UI_play_sound_effect_16(0x0074);
		var0004 = UI_get_object_position_20(0xFFF0);
		var0004[0x0001] = (var0004[0x0001] - 0x0004);
		var0004[0x0002] = (var0004[0x0002] - 0x0003);
		UI_sprite_effect_68(0x0028, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0410_011D:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0006)) goto labelFunc0410_0177;
		Func097F(0xFFF0, "@Must hide...@", 0x0000);
		UI_play_sound_effect_16(0x0074);
		var0004 = UI_get_object_position_20(0xFFF0);
		var0004[0x0001] = (var0004[0x0001] + 0x0011);
		UI_sprite_effect_68(0x0029, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0410_0177:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0005)) goto labelFunc0410_01E1;
		Func097F(0xFFF0, "@Teleport storm!@", 0x0000);
		UI_play_sound_effect_16(0x0074);
		var0004 = UI_get_object_position_20(0xFFF0);
		var0004[0x0001] = (var0004[0x0001] + 0x000C);
		var0004[0x0002] = (var0004[0x0002] + 0x0007);
		UI_sprite_effect_68(0x002A, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0410_01E1:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0004)) goto labelFunc0410_0228;
		UI_set_weather_53(0x0003);
		Func097F(0xFFF0, "@'Tis so windy!@", 0x0003);
		var0006 = 0x0247;
		var0007 = UI_find_nearby_41(0xFFF0, var0006, 0x000A, 0x0000);
		if(!var0007) goto labelFunc0410_0228;
		UI_remove_item_84(var0007);
	labelFunc0410_0228:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0003)) goto labelFunc0410_0268;
		Func097F(0xFFF0, "@I should fetch my belongings.@", 0x0000);
		var0006 = 0x0321;
		var0007 = UI_find_nearby_41(0xFFF0, var0006, 0x000A, 0x0000);
		if(!var0007) goto labelFunc0410_0268;
		UI_remove_item_84(var0007);
	labelFunc0410_0268:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0002)) goto labelFunc0410_029F;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		UI_play_music_39(0x000C, Func09A0(0x0005, 0x0001));
		Func097F(0xFFF0, "@It doth foretell a storm...@", 0x0000);
	labelFunc0410_029F:
		if(!(UI_get_npc_id_BC(0xFFF0) == 0x0001)) goto labelFunc0410_0381;
		UI_play_sound_effect_16(0x0074);
		UI_set_weather_53(0x0002);
		var0008 = UI_find_nearby_41(0xFFF0, 0x025F, 0x0014, 0x0010);
		var0009 = UI_create_new_object_2C(0x0339);
		if(!var0009) goto labelFunc0410_02F2;
		UI_set_item_flag_A4(var0009, 0x0012);
		var0005 = UI_update_last_created_2F(var0004);
	labelFunc0410_02F2:
		enum();
	labelFunc0410_02F3:
		for (var000C in var0008 with var000A to var000B atend labelFunc0410_0381);
		if(!(UI_get_item_frame_1A(var000C) == 0x0002)) goto labelFunc0410_0312;
		var0006 = 0x0321;
	labelFunc0410_0312:
		if(!(UI_get_item_frame_1A(var000C) == 0x0003)) goto labelFunc0410_0326;
		var0006 = 0x0247;
	labelFunc0410_0326:
		if(!((UI_get_item_frame_1A(var000C) == 0x0002) || (UI_get_item_frame_1A(var000C) == 0x0003))) goto labelFunc0410_037E;
		var0004 = UI_get_object_position_20(var000C);
		var0004[0x0002] = (var0004[0x0002] + 0x0001);
		var0009 = UI_create_new_object_2C(var0006);
		if(!var0009) goto labelFunc0410_037E;
		UI_set_item_flag_A4(var0009, 0x0012);
		var0005 = UI_update_last_created_2F(var0004);
	labelFunc0410_037E:
		goto labelFunc0410_02F3;
	labelFunc0410_0381:
		abrt();
	labelFunc0410_0382:
		if(!(gflags[0128] && ((event == 0x0002) && (!gflags[00E6])))) goto labelFunc0410_03D8;
		UI_set_schedule_type_25(0xFFDB, 0x000C);
		Func097F(0xFFDB, "@Awk!@", 0x0002);
		UI_set_camera_AE(0xFFDB);
		UI_remove_npc_4C(0xFFF0);
		UI_set_polymorph_B3(0xFFDB, 0x0304);
		var0005 = UI_delayed_execute_usecode_array_02(0xFFDB, [0x23, 0x55, 0x0425], 0x0005);
	labelFunc0410_03D8:
		if(!(event == 0x0001)) goto labelFunc0410_0400;
		UI_item_say_4D(0xFE9C, "@Excuse me...@");
		Func097F(0xFFF0, "@But of course!@", 0x0002);
		UI_set_schedule_type_25(0xFFF0, 0x0003);
	labelFunc0410_0400:
		if(!(event == 0x0009)) goto labelFunc0410_07B8;
		UI_run_schedule_B7(0xFFF0);
		UI_show_npc_face0_05(0xFFF0, 0x0000);
		UI_clear_item_say_4E(0xFFF0);
		var000D = UI_get_item_flag_A3(0xFFF0, 0x001C);
		if(!(var000D == false)) goto labelFunc0410_0454;
		UI_set_item_flag_A4(0xFFF0, 0x001C);
		UcMessage("\"I am a man! I am a man! I cannot tell thee how miserable it is to be a bird.\"");
		UcSay;
		UI_add_answer_0C("bird");
		UI_set_timer_7B(0x0005);
		goto labelFunc0410_0477;
	labelFunc0410_0454:
		UcMessage("\"I am forever in thy debt, ");
		UcMessage(var0000);
		UcMessage(". How may ol' Edrin be of aid to thee?\"");
		UcSay;
		UI_add_answer_0C("aid");
		if(!(UI_get_timer_7A(0x0005) >= 0x0003)) goto labelFunc0410_0477;
		var000E = true;
	labelFunc0410_0477:
		UI_add_answer_0C(["name", "bye"]);
	labelFunc0410_0484:
		UcAsk;
		cmps("name");
		UcMessage("\"My name is Edrin.\"");
		UcSay;
		UI_remove_answer_0D("name");
	labelFunc0410_049A:
		cmps("aid");
		UI_remove_answer_0D("aid");
		if(!UI_is_pc_female_6F()) goto labelFunc0410_04B9;
		var000F = "woman";
		goto labelFunc0410_04BF;
	labelFunc0410_04B9:
		var000F = "man";
	labelFunc0410_04BF:
		UcMessage("\"Well, ");
		UcMessage(var0000);
		UcMessage(", 'tis the least I can do for the ");
		UcMessage(var000F);
		UcMessage(" who made me once again a man. I can but hope thou wilt never experience the misery of being a bird!\"");
		UcSay;
		UI_add_answer_0C("bird");
	labelFunc0410_04D6:
		cmps("bird");
		UI_remove_answer_0D("bird");
		if(!var000E) goto labelFunc0410_04FB;
		var0010 = "However,@ he appears sad, @I am still without passage home";
		UI_add_answer_0C("still without");
		goto labelFunc0410_0508;
	labelFunc0410_04FB:
		var0010 = "Of course, first I must locate passage aboard a ship";
		UI_add_answer_0C("passage");
	labelFunc0410_0508:
		UcMessage("\"'Twas terrible, ");
		UcMessage(var0000);
		UcMessage("! Well, I should say, flying was rather exciting and all, but I never became accustomed to the worms. Were it not for my dreams, I would surely have lost sanity! But now, thanks to thee, I have no want but to return to my flock. ");
		UcMessage(var0010);
		UcMessage(".\"");
		UcSay;
		UI_add_answer_0C(["dreams", "flock"]);
	labelFunc0410_0525:
		cmps("dreams");
		UI_remove_answer_0D("dreams");
		if(!(!gflags[00F3])) goto labelFunc0410_0550;
		UcMessage("\"'Twas the most unusual thing I have ever known. Well, save being a bird. When I would dream, I would envision this maiden -- fair as summer's day. She called herself Siranush. Oftimes I would only see her from afar, bathing in a spring or basking in the sun. And other times, we would be together, swimming, gardening, walking...\"");
		UcSay;
		UcMessage("\"Oh, I beg thy pardon, ");
		UcMessage(var0000);
		UcMessage(", I did forget myself for a bit.\"");
		UcSay;
		gflags[00F3] = true;
		goto labelFunc0410_056E;
	labelFunc0410_0550:
		if(!(!gflags[0213])) goto labelFunc0410_0564;
		UcMessage("\"Yes, yes, ");
		UcMessage(var0000);
		UcMessage(". I told thee about the lovely maiden, Siranush. If only she were real,\" he sighs.");
		UcSay;
		goto labelFunc0410_056E;
	labelFunc0410_0564:
		UcMessage("He smiles. \"Yes, ");
		UcMessage(var0000);
		UcMessage(". I had forgotten to offer thee my thanks. Thou hast provided for me the opportunity to learn my visions were real. Now, however, I will have not the opportunity to lay eyes upon my lovely Siranush again...\"");
		UcSay;
	labelFunc0410_056E:
		cmps("flock");
		UI_remove_answer_0D("flock");
		UcMessage("\"Indeed, ");
		UcMessage(var0000);
		UcMessage(". I am a shepherd, caretaker of sheep. I have never known another life. Well, excepting my time as a bird, of course! But, like one of mine own sheep lost in the wild, I long for a way to return home.\"");
		UcSay;
	labelFunc0410_0587:
		cmps("passage");
		UI_remove_answer_0D("passage");
		UcMessage("\"Why, yes. After I find my brother we will return home, if possible. It will be much safer to travel by ship.\"");
		UcSay;
		UI_add_answer_0C(["brother", "safer"]);
	labelFunc0410_05A7:
		cmps("still without");
		UI_remove_answer_0D("still without");
		UcMessage("\"Aye. My brother says that he was told we can find safe passage aboard a ship here. But all we've seen is Captain Hawk.\"");
		UcSay;
		UI_add_answer_0C(["brother", "safe", "Hawk"]);
	labelFunc0410_05CA:
		cmps("Hawk");
		UI_remove_answer_0D("Hawk");
		UcMessage("\"He is the captain of the... the... what is the name of that ship?\"");
		UcSay;
		if(!Func0942(0xFFD5)) goto labelFunc0410_0622;
		UI_show_npc_face1_06(0xFFD5, 0x0000);
		UcMessage("\"The Arabella.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFF0, 0x0000);
		UcMessage("\"Ah, yes, now I remember. I thank thee.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD5, 0x0000);
		UcMessage("\"Thou art welcome.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc0410_0626;
	labelFunc0410_0622:
		UcMessage("\"Oh, well, I cannot remember.\"");
		UcSay;
	labelFunc0410_0626:
		if(!UI_get_item_flag_A3(0xFFD8, 0x0004)) goto labelFunc0410_0641;
		UcMessage("\"Anyway, now that he hath been killed, I know not what we'll do. I suppose we must await the arrival of another ship.\"");
		UcSay;
		UI_add_answer_0C("killed");
		goto labelFunc0410_0645;
	labelFunc0410_0641:
		UcMessage("\"Anyway, for some reason he doth refuse to sail again. I do wish he would change his mind, or that another ship would arrive.\"");
		UcSay;
	labelFunc0410_0645:
		cmps("killed");
		UcMessage("\"I did not see anything...\"");
		UcSay;
		if(!Func0942(0xFFD5)) goto labelFunc0410_0673;
		UI_show_npc_face1_06(0xFFD5, 0x0000);
		UcMessage("\"Nor did I!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0410_0673:
		UcMessage("\"Nor did Kane. However, he was in the tavern when Hawk scuffled with a man named Flindo. We can only guess the outcome, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0410_067D:
		cmps("safe", "safer");
		UI_remove_answer_0D(["safe", "safer"]);
		UcMessage("\"Well, I suppose a ship would offer only a little more protection, but anything would be better than travelling in the open, what with the storms and all.\"");
		UcSay;
		UI_add_answer_0C("storms");
	labelFunc0410_06A0:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"They are most unusual, ");
		UcMessage(var0000);
		UcMessage(". The thunder and lightning I have seen before, but the suddenness with which they strike would be unbelievable had I not experienced one firsthand. The storm had barely begun, when there was a flash of lightning and a clap of thunder. And the next thing I knew, I was flapping wings instead of waving arms. My memory is weak after that, but I do remember hearing Kane's shouts.\"");
		UcSay;
	labelFunc0410_06B9:
		cmps("brother");
		UI_remove_answer_0D("brother");
		UcMessage("\"Kane is my brother. He is a few years my junior, but certainly an able shepherd. I know how worried he must have been while I was a parrot.\"");
		UcSay;
		if(!var000E) goto labelFunc0410_06E0;
		UcMessage("\"I'm glad he met Mistress Devra.\"");
		UcSay;
		UI_add_answer_0C("Devra");
		goto labelFunc0410_06EB;
	labelFunc0410_06E0:
		UcMessage("\"I wonder how he will react to seeing me again. I hope he hath not strayed too far from home.\"");
		UcSay;
		UI_add_answer_0C("home");
	labelFunc0410_06EB:
		cmps("home");
		UI_remove_answer_0D("home");
		UcMessage("\"Well, we live on the mainland. Since I spy the Mountains of Freedom off in the distance, I know that this is not the mainland. And I have seen little goblin activity.\"");
		UcSay;
		UI_add_answer_0C(["Mountains of Freedom", "Goblin activity"]);
	labelFunc0410_070B:
		cmps("Mountains of Freedom");
		UI_remove_answer_0D("Mountains of Freedom");
		UcMessage("\"I know nothing about them, save for that they follow the coastline in an upside down `U' shape -- there are no mountain ranges like that near my farm.\"");
		UcSay;
	labelFunc0410_071E:
		cmps("Goblin activity");
		UI_remove_answer_0D("Goblin activity");
		UcMessage("\"Yes, in the forest near our farm there are a terrible number of Goblins. They often come to raid us on the way to the city.\"");
		UcSay;
		UI_add_answer_0C(["raid", "city"]);
	labelFunc0410_073E:
		cmps("city");
		UI_remove_answer_0D("city");
		UcMessage("\"Aye, ");
		UcMessage(var0000);
		UcMessage(". We tend our sheep south of Fawn. Excellent grazing pastures there.\"");
		UcSay;
	labelFunc0410_0757:
		cmps("raid");
		UI_remove_answer_0D("raid");
		UcMessage("\"Well, they rarely set upon us, ");
		UcMessage(var0000);
		UcMessage(", though sometimes a few will steal our sheep. Sometimes they are worse than wolves, I think. And much meaner!\"");
		UcSay;
	labelFunc0410_0770:
		cmps("Devra");
		UI_remove_answer_0D("Devra");
		UcMessage("\"She is the owner of the inn at Sleeping Bull. Kane tells me that she helped him find a place to stay while waiting for Captain Hawk. Of course, now it is time for us to head home.\"");
		UcSay;
		UI_add_answer_0C("home");
	labelFunc0410_078A:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Fare thee well!@", 0x0000);
		Func097F(0xFFF0, "@Goodbye!@", 0x0002);
		Func08FF();
		goto labelFunc0410_07B7;
	labelFunc0410_07B4:
		goto labelFunc0410_0484;
	labelFunc0410_07B7:
		end_conv();
	labelFunc0410_07B8:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func098C 0x98C ();
extern var Func099F 0x99F (var var0000, var var0001, var var0002);
extern Func08FF 0x8FF ();

Func0411 0x411 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_part_of_day_48();
	if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc0411_0035;
	var0003 = "day";
	goto labelFunc0411_003B;
	labelFunc0411_0035:
		var0003 = "evening";
	labelFunc0411_003B:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0411_005E;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0411_005E:
		if(!(event == 0x0001)) goto labelFunc0411_008E;
		UI_item_say_4D(0xFE9C, (("@Good " + var0003) + "!@"));
		Func097F(0xFFEF, "@Hush...@", 0x0002);
		UI_set_schedule_type_25(0xFFEF, 0x0003);
	labelFunc0411_008E:
		if(!(event == 0x0009)) goto labelFunc0411_0B31;
		UI_run_schedule_B7(0xFFEF);
		UI_clear_item_say_4E(0xFFEF);
		UI_show_npc_face0_05(0xFFEF, 0x0000);
		var0005 = UI_get_item_flag_A3(0xFFEF, 0x001C);
		if(!(gflags[00F0] && (!gflags[0128]))) goto labelFunc0411_00DD;
		UcMessage("\"I cannot give thee what thou dost desire until thou hast gazed into my crystal ball, ");
		UcMessage(var0000);
		UcMessage(". Come back when thou hast done so.\"");
		UcSay;
		Func097F(0xFFEF, "@The crystal ball!@", 0x0000);
		abrt();
	labelFunc0411_00DD:
		if(!(gflags[00F0] && (gflags[0128] && (!gflags[011D])))) goto labelFunc0411_011B;
		if(!gflags[00F2]) goto labelFunc0411_0106;
		UcMessage("\"Did I not tell thee to speak with Gustacio?\"");
		UcSay;
		Func097F(0xFFEF, "@Tell him the news.@", 0x0000);
		abrt();
		goto labelFunc0411_011B;
	labelFunc0411_0106:
		UcMessage("\"At last, all is made clear! Tell good Gustacio that Edrin the missing brother is actually Ale the Bird! He will know what to do from there...\"");
		UcSay;
		gflags[00F2] = true;
		Func097F(0xFFEF, "@Speak to Gustacio...@", 0x0000);
		abrt();
	labelFunc0411_011B:
		if(!gflags[0004]) goto labelFunc0411_0150;
		if(!gflags[00F6]) goto labelFunc0411_0134;
		UcMessage("\"So good to see that the Anarch hath not yet slain thee, ");
		UcMessage(var0000);
		UcMessage(". How may I be of aid?\"");
		UcSay;
		goto labelFunc0411_0138;
	labelFunc0411_0134:
		UcMessage("\"A thousand thanks! I had feared that I would remain an adornment of this place forever, thanks to Shamino the Anarch.\"");
		UcSay;
	labelFunc0411_0138:
		UI_add_answer_0C("Shamino the Anarch");
		if(!(!gflags[00F6])) goto labelFunc0411_014D;
		UI_add_answer_0C("gratitude");
	labelFunc0411_014D:
		goto labelFunc0411_017A;
	labelFunc0411_0150:
		if(!(var0005 == false)) goto labelFunc0411_0169;
		UI_set_item_flag_A4(0xFFEF, 0x001C);
		UcMessage("\"Thou must be a seeker after knowledge. I am the Mage Fedabiblio, and I serve as the Magister of Moonshade.\"");
		UcSay;
		goto labelFunc0411_016D;
	labelFunc0411_0169:
		UcMessage("\"Thou hast a voracious appetite for knowledge. What dost thou desire to learn?\"");
		UcSay;
	labelFunc0411_016D:
		UI_add_answer_0C(["Magister", "Moonshade"]);
	labelFunc0411_017A:
		if(!(!gflags[00DB])) goto labelFunc0411_0188;
		UI_add_answer_0C("spellbook");
	labelFunc0411_0188:
		if(!(gflags[00E4] && (!gflags[0128]))) goto labelFunc0411_019A;
		UI_add_answer_0C("Gustacio's experiment");
	labelFunc0411_019A:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0411_01B3;
		UI_add_answer_0C("kidnap");
	labelFunc0411_01B3:
		if(!((gflags[010B] && (!gflags[028C])) || ((gflags[010C] && (!gflags[0295])) || ((gflags[010E] && (!gflags[029A])) || ((gflags[0110] && (!gflags[028F])) || ((gflags[0112] && (!gflags[0290])) || (gflags[0114] && (!gflags[0293])))))))) goto labelFunc0411_01F2;
		UI_add_answer_0C("information");
	labelFunc0411_01F2:
		UI_add_answer_0C(["bye"]);
	labelFunc0411_01FC:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		if(!gflags[00EB]) goto labelFunc0411_021B;
		UcMessage("\"Most ominous... Again, I would direct thee to the MageLord. He is a man of low intellect and great cunning. No doubt he can aid thee.\"");
		UcSay;
		goto labelFunc0411_0238;
	labelFunc0411_021B:
		if(!gflags[0141]) goto labelFunc0411_022C;
		UcMessage("\"Do not waste thy time with the Rangers -- this is a case for Mages, most obviously!\"");
		UcSay;
		UcMessage("\"I direct thee to go immediately to MageLord Filbercio with this matter.\"");
		UcSay;
		goto labelFunc0411_0238;
	labelFunc0411_022C:
		UcMessage("\"Thy friend hath been taken! By means magical! 'Tis an offense to the Council...\"");
		UcSay;
		UcMessage("\"Take thy case directly to the MageLord -- he shall aid thee!\"");
		UcSay;
		gflags[0141] = true;
	labelFunc0411_0238:
		cmps("Shamino the Anarch");
		UI_remove_answer_0D("Shamino the Anarch");
		UcMessage("\"The first thing that thy monstrous companion did when he came into town was oust the MageLord and the Council of Mages. When they resisted his edicts, Shamino killed them!\"");
		UcSay;
		UcMessage("\"Thou wouldst not believe it, ");
		UcMessage(var0000);
		UcMessage("! The Anarch simply deflected all their spells... They had no effect at all.\"");
		UcSay;
		UcMessage("\"The Rangers became his instruments of chaos... Anything was allowed, as long as one held a 'permit' from the Anarch.\"");
		UcSay;
		UcMessage("\"I do not know how many of us are left now. It seems that most of the manors are abandoned...\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["anything", "left", "abandoned", "change subject"]);
	labelFunc0411_0274:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"Ah, thy mind is questing again! What shall we speak of now?\"");
		UcSay;
	labelFunc0411_0284:
		cmps("anything");
		UI_remove_answer_0D("anything");
		UcMessage("\"Many of the Mages fell to the Anarch's wild justice. Others fell to the unorthodox magic of their fellow Mages. And I found myself in the lamentable position thou didst find me in for NOT using Death spells!\"");
		UcSay;
		if(!(!gflags[0100])) goto labelFunc0411_02C7;
		UcMessage("\"I tried to save Captain Hawk from the Anarch, but my powers were not sufficient.\"");
		UcSay;
		UcMessage("\"As he lay dying, Hawk gave me this key. He said that it unlocked his sea chest at the Blue Boar Inn, and that the contents might be helpful someday.\"");
		UcSay;
		UcMessage("\"As I think the key might be useful to thee, I am giving it to thee.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x0281, 0x00BC, 0x0006, 0x0000, true);
		gflags[0100] = true;
	labelFunc0411_02C7:
		cmps("abandoned");
		UI_remove_answer_0D("abandoned");
		UcMessage("\"It might not seem virtuous, but I would suggest that thou shouldst explore the empty manors for magical scrolls and other items which might be of use in thy quest.\"");
		UcSay;
		UcMessage("\"For instance, thou couldst perchance assemble a near- complete set of the fabled Serpent Teeth -- \"");
		UcSay;
		UcMessage("\"It was a coup to steal such an artifact from old Erstam, but now the trophies lie abandoned in the mansions...\"");
		UcSay;
		UcMessage("\"I know not what the powers of the Teeth might be, but they might reveal their secret to thee.\"");
		UcSay;
		UcMessage("\"But beware of the automatons!\"");
		UcSay;
	labelFunc0411_02EA:
		cmps("left");
		UI_remove_answer_0D("left");
		UcMessage("\"The last I knew, before I earned the Anarch's ire, Stefano was alive... though he was being pursued by some fell creature.\"");
		UcSay;
		UcMessage("\"Ducio yet lived. As did Torrissio. And I can only pray that Andrio and Freli escaped the notice of that monster!\"");
		UcSay;
	labelFunc0411_0301:
		cmps("Magister");
		UI_remove_answer_0D("Magister");
		UcMessage("\"Thou dost not know what a Magister does? The Magister is the director of the Seminarium -- 'tis the only School for Mages in the entire land.\"");
		UcSay;
		UcMessage("\"One of my functions is to find gifted children for this school. When they are located, I bring them to the school.\"");
		UcSay;
		UcMessage("\"I was appointed as Magister for life.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Seminarium", "children", "change subject"]);
	labelFunc0411_0330:
		cmps("children");
		UI_remove_answer_0D("children");
		UcMessage("\"A young, untrained Mage can be quite dangerous! Therefore, these children must be brought to the Seminarium -- for their own safety!\"");
		UcSay;
		UcMessage("\"For instance, take young Freli. His father was a shopkeeper. What could a merchant teach his son about magical powers!\"");
		UcSay;
		UcMessage("\"Taking care of my students is a tiring but fulfilling duty. Young Freli shows much promise, and Andrio is almost ready to graduate.\"");
		UcSay;
		UI_add_answer_0C(["Andrio", "Freli"]);
	labelFunc0411_0358:
		cmps("Seminarium");
		UI_remove_answer_0D("Seminarium");
		UcMessage("\"The Seminarium is unique in all the land, for all Mages are welcome to come here and study our records concerning spell research and magical activity.\"");
		UcSay;
		UcMessage("\"Any Mage can study here in safety, knowing that this place is a sanctuary from violence.\"");
		UcSay;
		UcMessage("\"Passing travellers also stop here to access our library.\"");
		UcSay;
		UI_add_answer_0C(["travellers"]);
	labelFunc0411_037D:
		cmps("Andrio");
		UI_remove_answer_0D("Andrio");
		UcMessage("\"Andrio hath quite a bit of youthful enthusiasm, and I find that most refreshing, but I do wish that he would use a bit more caution in his experiments!\"");
		UcSay;
	labelFunc0411_0390:
		cmps("Freli");
		UI_remove_answer_0D("Freli");
		UcMessage("\"I must confess that Freli is my favorite student. He is most brilliant, but the unfortunate thing is that he knows this. Sometimes I feel that he is simply too smart for his own good.\"");
		UcSay;
	labelFunc0411_03A3:
		cmps("travellers");
		UI_remove_answer_0D("travellers");
		UcMessage("\"Thou art not the first to be attracted to our facilities! In recent days, two visitors are memorable.\"");
		UcSay;
		UcMessage("\"First, there was the scholar Gwenno. We could not help her much, as her interest was in historical matters. I suggested that she consult the library on Monk Isle.\"");
		UcSay;
		UcMessage("\"Less agreeable was the visit of the Mage Batlin. He appeared to be most interested in the ancient inhabitants of this land, the Ophidians. Indeed, one might say that he was obsessed.\"");
		UcSay;
	labelFunc0411_03BE:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"Since thou art a visitor, I will explain a few things to thee. Moonshade is a city of Mages and for Mages. It is ruled by the Adepts, and served by the lesser Mages. There is a lower class -- the Mundanes. But some of them are skilled as artisans.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Adepts", "lesser Mages", "artisans", "Mundanes", "change subject"]);
	labelFunc0411_03EB:
		cmps("Adepts");
		UI_remove_answer_0D("Adepts");
		UcMessage("\"The three Adepts are the most powerful wizards in the city. They compose the Council of Mages, which governs the city.\"");
		UcSay;
		UcMessage("\"One of the Adepts serves as MageLord. Currently, Filbercio rules as Lord of Moonshade.\"");
		UcSay;
		UI_add_answer_0C("Filbercio");
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc0411_044C;
		if(!gflags[00E2]) goto labelFunc0411_0434;
		UcMessage("\"All is in an uproar, with Rotoluncia dead and her replacement -- the Necromancer Mortegro -- missing.\"");
		UcSay;
		UcMessage("\"Gustacio hath asked that I join the Council in this troubled time, and I have done so.\"");
		UcSay;
		UI_add_answer_0C(["Gustacio", "missing?"]);
		goto labelFunc0411_0449;
	labelFunc0411_0434:
		UcMessage("\"Rotoluncia was on the Council, but her recent death hath made a change necessary. Therefore, Mortegro the Necromancer now holds her former position.\"");
		UcSay;
		UcMessage("\"Gustacio remains on the Council, as he is second in power only to Filbercio.\"");
		UcSay;
		UI_add_answer_0C(["Gustacio", "Mortegro"]);
	labelFunc0411_0449:
		goto labelFunc0411_045D;
	labelFunc0411_044C:
		UcMessage("\"The other two Adepts are Gustacio the Green Mage, and the Red Sorceress, Rotoluncia.\"");
		UcSay;
		UI_add_answer_0C(["Gustacio", "Rotoluncia"]);
	labelFunc0411_045D:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"He comes from a long line of Mages. Filbercio is well-respected and is known as a shrewd administrator of city affairs. In private, though, it is said that he is something of a womanizer.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["politics", "womanizer", "nothing more"]);
	labelFunc0411_0484:
		cmps("politics");
		UI_remove_answer_0D("politics");
		UcMessage("\"When dealing with magic in this city, everything in this city is political. And when dealing with politics, Filbercio is the master of the game. I dare say, he would be a force to be reckoned with, even if his actual magical skills alone were not good enough to make him the MageLord of Moonshade.\"");
		UcSay;
	labelFunc0411_0497:
		cmps("womanizer");
		UI_remove_answer_0D("womanizer");
		UcMessage("\"If Filbercio doth have a flaw, it is that he can be distracted by a pretty face. It doth not hurt if that face belongs to a woman who is also a powerful Mage. The trouble is that it doth not deter him if that woman is already betrothed to another! Oh, perhaps I have said too much...\"");
		UcSay;
	labelFunc0411_04AA:
		cmps("Gustacio");
		UI_remove_answer_0D("Gustacio");
		UcMessage("\"He is Filbercio's chief rival for the position of MageLord. Gustacio is extremely hard-working and devout in his studies and practices of the magical arts. He is a respected citizen, although there are those who do not like him -- he tends to have a rather severe personality.\"");
		UcSay;
		UcMessage("\"Now, Gustacio hath thrown himself into his studies of the phenomenon of the teleport storms. It hath become his obsession.\"");
		UcSay;
	labelFunc0411_04C1:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"Trust me, she is someone thou dost not wish to cross.\"");
		UcSay;
	labelFunc0411_04D4:
		cmps("Mortegro");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"Mortegro, master of death magic. Quite often he is dismissed as having the least political influence, but it is a mistake to underestimate him. He is a highly-skilled diplomat. After all, he hath remained on close personal speaking terms with the dead for all these years.\"");
		UcSay;
		UcMessage("\"He holds seances regularly. I am certain he will invite thee to one, sooner or later.\"");
		UcSay;
	labelFunc0411_04EB:
		cmps("missing?");
		UI_remove_answer_0D("missing?");
		UcMessage("\"Indeed, Mortegro hath gone missing! It is said that he chose to take a stroll during one of the magical storms...\"");
		UcSay;
		UcMessage("\"Whilst making his observations of the storm, the Necromancer was struck by lightning -- and disappeared.\"");
		UcSay;
		UcMessage("\"It would be a shame if he were dead, for only he knows the secrets of speaking with the souls of the dead.\"");
		UcSay;
	labelFunc0411_0506:
		cmps("lesser Mages");
		UI_remove_answer_0D("lesser Mages");
		UcMessage("\"These are citizens who have pursued some sort of magical education. Although they know a few spells, they were not able to become Adepts. Most become Rangers or Apothecaries.\"");
		UcSay;
	labelFunc0411_0519:
		cmps("artisans");
		UI_remove_answer_0D("artisans");
		UcMessage("\"These are basically Mundanes who possess some skill that is valued in the society of Mages. Artists, writers, musicians, metalsmiths... That sort.\"");
		UcSay;
	labelFunc0411_052C:
		cmps("Mundanes");
		UI_remove_answer_0D("Mundanes");
		UcMessage("\"These poor souls live in a dark little world where magic is merely another powerful natural force that affects them, which they desperately try to adjust to or withstand.\"");
		UcSay;
		UcMessage("\"Most of the Mundanes born here eventually leave. They settle in Fawn or Monitor, and this is better for them.\"");
		UcSay;
	labelFunc0411_0543:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"In what art thou interested?\"");
		UcSay;
		UI_push_answers_0E();
		var0006 = 0x0001;
		UI_add_answer_0C(["people", "places", "strange objects", "nothing more"]);
	labelFunc0411_0573:
		cmps("people");
		UI_remove_answer_0D("people");
		UcMessage("\"Thou hast mistaken me for a common gossip.\"");
		UcSay;
		Func097F(0xFFEF, "@Be gone with thee!@", 0x0000);
		abrt();
	labelFunc0411_0593:
		cmps("places");
		UI_remove_answer_0D("places");
		UcMessage("\"There are many strange places that one may explore in Moonshade. To the south of the city are ancient catacombs. Somewhere within those tunnels is a way leading to a dungeon known only as Furnace.\"");
		UcSay;
		UI_add_answer_0C(["catacombs", "Furnace"]);
	labelFunc0411_05B3:
		cmps("catacombs");
		UI_remove_answer_0D("catacombs");
		UcMessage("\"The catacombs were once occupied by the Rangers, until the water level began to rise. The Rangers built pumps to drain the water, but then a strange breed of rodent began to infest the catacombs. The creatures are said to be large vicious rats that have fangs as big as daggers. Needless to say, the catacombs were shortly abandoned.\"");
		UcSay;
	labelFunc0411_05C6:
		cmps("Furnace");
		UI_remove_answer_0D("Furnace");
		UcMessage("\"I myself would not go there. It is said that the heat there is so intense that it is lethal.\"");
		UcSay;
	labelFunc0411_05D9:
		cmps("strange objects");
		UcMessage("\"Bucia the Shopkeeper hath sent thee to me! And what did she tell thee to ask of me?\"");
		UcSay;
		UI_push_answers_0E();
		var0006 = (var0006 + 0x0001);
		if(!(gflags[0112] && (!gflags[0290]))) goto labelFunc0411_0605;
		UI_add_answer_0C("pumice");
	labelFunc0411_0605:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc0411_0617;
		UI_add_answer_0C("apparatus");
	labelFunc0411_0617:
		if(!(gflags[010B] && (!gflags[028C]))) goto labelFunc0411_0629;
		UI_add_answer_0C("pinecone");
	labelFunc0411_0629:
		if(!(gflags[010C] && (!gflags[0295]))) goto labelFunc0411_063B;
		UI_add_answer_0C("blue egg");
	labelFunc0411_063B:
		if(!(gflags[010E] && (!gflags[029A]))) goto labelFunc0411_064D;
		UI_add_answer_0C("skull");
	labelFunc0411_064D:
		UI_add_answer_0C("nothing more");
	labelFunc0411_0654:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		if(!Func097D(0xFE9B, 0x0001, 0x010B, 0xFE99, 0xFE99)) goto labelFunc0411_0683;
		UcMessage("\"Might I take that...\"");
		UcSay;
		UcMessage("\"Yes, this is pumice -- black in color, rough in texture, light in weight.\"");
		UcSay;
		goto labelFunc0411_0687;
	labelFunc0411_0683:
		UcMessage("\"Pumice is a light, rough rock of a black or light brown hue.\"");
		UcSay;
	labelFunc0411_0687:
		UcMessage("\"These rocks are formed when the Primal Forces of Fire and Earth collide -- during certain conjurations, for instance.\"");
		UcSay;
		UcMessage("\"Pumice is also found deep in the bowels of the world, where fire runs liquid.\"");
		UcSay;
		gflags[029E] = true;
		if(!(gflags[029E] && gflags[029F])) goto labelFunc0411_06A1;
		gflags[0290] = true;
	labelFunc0411_06A1:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc0411_071C;
		UcMessage("\"That item is used for researching the properties of magic, and to create new spells.\"");
		UcSay;
		if(!(!gflags[00DB])) goto labelFunc0411_0711;
		UcMessage("\"It is not safe for thee to have such an item. As the Magister, it is my duty to take that from thee.\"");
		UcSay;
		var0004 = UI_remove_party_items_34(0x0001, 0x02ED, 0xFE99, 0x0001, 0x0012);
		var0007 = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc0411_0711:
		UcMessage("\"It is not mine, but I cannot tell thee to whom it belongs. Only Master Ducio would know.\"");
		UcSay;
		gflags[0111] = true;
		goto labelFunc0411_072B;
	labelFunc0411_071C:
		UcMessage("\"The item sounds as if it might be a piece of magical apparatus. Master Ducio would know for certain.\"");
		UcSay;
		if(!(!gflags[00DB])) goto labelFunc0411_072B;
		UcMessage("\"But thou shouldst not handle such equipment -- for Mundanes, it could be very dangerous.\"");
		UcSay;
	labelFunc0411_072B:
		cmps("pinecone");
		UI_remove_answer_0D("pinecone");
		UcMessage("\"Ah, yes. We sometimes find these on the beach after a storm.\"");
		UcSay;
		UcMessage("\"The northern trees produce tough cones which are filled with seeds. Later, the cones open and release their seeds.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc0411_0762;
		UcMessage("\"As thou canst see, this cone still doth have its seeds. It hath been newly released from its tree.\"");
		UcSay;
		UcMessage("\"It must have come directly from the northern forests, on the mainland north of the Swamp of Gorlab.\"");
		UcSay;
		goto labelFunc0411_076A;
	labelFunc0411_0762:
		UcMessage("\"Once the pinecone releases its seeds, it becomes a dried husk. Being light, it is transported by wind and wave.\"");
		UcSay;
		UcMessage("\"Thy pinecone could have come from any northern forest or any beach.\"");
		UcSay;
	labelFunc0411_076A:
		gflags[028C] = true;
	labelFunc0411_076E:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc0411_079D;
		UcMessage("\"What a stench! This egg hath gone putrid!\"");
		UcSay;
		UcMessage("\"A blue egg... doth not seem to be magical or in any way arcane...\"");
		UcSay;
		goto labelFunc0411_07A1;
	labelFunc0411_079D:
		UcMessage("\"A blue egg... have I ever read of such a thing? Blue hens, blue frogs -- but eggs?\"");
		UcSay;
	labelFunc0411_07A1:
		UcMessage("\"I do not know what it is! And if I do not know, then no one shall.\"");
		UcSay;
		if(!(!(UI_get_item_flag_A3(0xFFD8, 0x0004) && Func0942(0xFFED)))) goto labelFunc0411_07DB;
		UI_show_npc_face1_06(0xFFED, 0x0000);
		UcMessage("\"Cap'n Hawk might know! He hath been everywhere in the world!\"");
		UcSay;
		gflags[010A] = true;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The lad doth have a point. Also...\"");
		UcSay;
		UcMessage("\"Erstam the Mad Mage would almost certainly know, but he doth not share his information with anyone.\"");
		UcSay;
	labelFunc0411_07DB:
		cmps("skull");
		UI_remove_answer_0D("skull");
		if(!Func097D(0xFE9B, 0x0001, 0x00F4, 0xFE99, 0xFE99)) goto labelFunc0411_080E;
		UcMessage("\"Allow me to handle it...\"");
		UcSay;
		UcMessage("\"But this is merely the skull of a common bear, such as are found on the mainland, most often along the westerly coast.\"");
		UcSay;
		gflags[029A] = true;
		goto labelFunc0411_0812;
	labelFunc0411_080E:
		UcMessage("\"If thou wilt bring me the item, I shall examine it for thee. I can tell thee nothing now.\"");
		UcSay;
	labelFunc0411_0812:
		cmps("nothing more");
		UI_pop_answers_0F();
		UcMessage("\"Remember always -- knowledge is power.\"");
		UcSay;
	labelFunc0411_0822:
		cmps("gratitude");
		UI_remove_answer_0D("gratitude");
		UcMessage("\"Thank thee for saving me. Now that I am no longer imprisoned within stone, I can continue my researches. There must be some way to stop Shamino the Anarch!\"");
		UcSay;
		var0008 = Func0992(0x0001, "@We seek the Scroll of the Serpent, sir.@", "@I seek the Scroll of the Serpent, sir.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The ancient scroll? Be warned -- it is written entirely in the ancient runes of the Daemons who once dwelt in this land. I can understand none of it.\"");
		UcSay;
		UcMessage("\"It is said that Erstam translated portions of it, but the translation was lost many years ago.\"");
		UcSay;
		UcMessage("\"As a token of my gratitude, please accept this, the Scroll of the Serpent.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x02C3, 0x0050, 0x0000, 0x0000, true);
		gflags[00F6] = true;
	labelFunc0411_0875:
		cmps("Gustacio's experiment");
		UI_remove_answer_0D("Gustacio's experiment");
		UcMessage("\"Hmmm... I think that thou shouldst consult my crystal ball. Perhaps it can provide a clue into the matter of the missing brother.\"");
		UcSay;
		UcMessage("\"Once thou hast looked, come back and I shall divine what thou hast seen.\"");
		UcSay;
		gflags[00F0] = true;
		Func097F(0xFFEF, "@The crystal ball!@", 0x0000);
		abrt();
	labelFunc0411_089D:
		cmps("spellbook");
		UI_remove_answer_0D("spellbook");
		if(!(!gflags[00DE])) goto labelFunc0411_08BB;
		UcMessage("\"Bring me three fresh Mandrake Roots, and I shall let thee have a spellbook. The Roots are found on Monk Isle.\"");
		UcSay;
		gflags[00DE] = true;
	labelFunc0411_08BB:
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x0003)) goto labelFunc0411_0AF5;
		if(!(!Func097D(0xFE9B, 0x0003, 0x034A, 0xFE99, 0x0003))) goto labelFunc0411_08F7;
		UcMessage("\"This is not a sufficient number of roots with which to make a spellbook. Return to Monk Isle, and when thou again comest, bring three roots of the Mandrake.\"");
		UcSay;
		Func097F(0xFFEF, "@Go back!@", 0x0000);
		abrt();
	labelFunc0411_08F7:
		if(!gflags[026D]) goto labelFunc0411_0ADD;
		UcMessage("\"I see that thou hast brought the Mandrake Roots. But I am still hesitant... If thou art truly a Mage, thou wilt be able to answer my four questions.\"");
		UcSay;
		if(!Func098C()) goto labelFunc0411_0ABC;
		UcMessage("\"Forgive me for my suspicions. But thou wilt understand that I take my responsibility seriously. I will now conjure a spellbook for thee.\"");
		UcSay;
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0004 = UI_remove_party_items_34(0x0003, 0x034A, 0xFE99, 0x0003, 0x0000);
		var0004 = Func099B(0xFE9C, 0x0001, 0x02F9, 0x0001, 0x0005, 0x0000, true);
		if(!(var0004[0x0002] != 0x0000)) goto labelFunc0411_0976;
		var0009 = UI_find_nearest_15(0xFE9C, 0x02F9, 0x000A);
		goto labelFunc0411_09A0;
	labelFunc0411_0976:
		var0004 = Func099F(0x02F9, 0xFE99, 0x0005);
		if(!(var0004 == 0x0000)) goto labelFunc0411_0997;
		UcMessage("\"Ummm.... For some reason, I cannot locate the spellbook that I was going to give thee. Thou wilt have to return at a later time.\"");
		UcSay;
		abrt();
		goto labelFunc0411_09A0;
	labelFunc0411_0997:
		var0009 = var0004[0x0001];
	labelFunc0411_09A0:
		UI_UNKNOWN_67(var0009);
		var000A = [0x0001, 0x0008, 0x000D, 0x0017, 0x001E];
		enum();
	labelFunc0411_09BD:
		for (var000D in var000A with var000B to var000C atend labelFunc0411_09DB);
		var0004 = UI_add_spell_66(var000D, 0x0000, var0009);
		goto labelFunc0411_09BD;
	labelFunc0411_09DB:
		UcMessage("\"Thou wilt notice that the Transcribe spell is within thy spellbook. Use it to copy spell scrolls into thy spellbook, for they will disappear once thou hast used them.\"");
		UcSay;
		UcMessage("\"Remember this well. It may mean the difference between thy life and thy death.\"");
		UcSay;
		gflags[00DB] = true;
		var000E = [0x0975, 0x0748];
		var000F = [0x0968, 0x0767];
		var0010 = [0x096F, 0x075E];
		UI_set_new_schedules_B6(0xFFEC, [0x0000, 0x0003, 0x0004], [0x000E, 0x001A, 0x0015], [var000E, var000F, var0010]);
		UI_move_object_4B(0xFFEC, [0x0978, 0x0764, 0x0000]);
		UI_run_schedule_B7(0xFFEC);
		var000E = [0x0988, 0x0742];
		var000F = [0x0969, 0x0768];
		var0010 = [0x0961, 0x0764];
		UI_set_new_schedules_B6(0xFFEB, [0x0000, 0x0003, 0x0004], [0x000E, 0x0017, 0x000C], [var000E, var000F, var0010]);
		UI_move_object_4B(0xFFEB, [0x096F, 0x075E, 0x0000]);
		UI_run_schedule_B7(0xFFEB);
		goto labelFunc0411_0ADA;
	labelFunc0411_0ABC:
		UI_set_schedule_type_25(0xFFEF, 0x0014);
		UI_clear_item_say_4E(0xFFEF);
		Func097F(0xFFEF, "@Be gone, rogue!@", 0x0000);
		abrt();
	labelFunc0411_0ADA:
		goto labelFunc0411_0AF2;
	labelFunc0411_0ADD:
		UcMessage("\"Thou didst not understand me. The Roots must be fresh, taken from the swamp precisely as the tides are receding. These roots are stale, and unsuitable for our purposes.\"");
		UcSay;
		UcMessage("\"Return to Monk Isle, and return with fresh roots of the Mandrake!\"");
		UcSay;
		Func097F(0xFFEF, "@Return!@", 0x0000);
		abrt();
	labelFunc0411_0AF2:
		goto labelFunc0411_0B03;
	labelFunc0411_0AF5:
		if(!gflags[00DE]) goto labelFunc0411_0B03;
		UcMessage("\"Without the Mandrake Roots, I can do nothing for thee.\"");
		UcSay;
		UcMessage("\"Return to Monk Isle, and return with fresh roots of the Mandrake!\"");
		UcSay;
	labelFunc0411_0B03:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thank thee!@", 0x0000);
		Func097F(0xFFEF, "@Seek truth always.@", 0x0002);
		Func08FF();
		goto labelFunc0411_0B30;
	labelFunc0411_0B2D:
		goto labelFunc0411_01FC;
	labelFunc0411_0B30:
		end_conv();
	labelFunc0411_0B31:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0830 0x830 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0412 0x412 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = "his";
	var0003 = "him";
	var0004 = "he";
	var0005 = "man";
	if(!UI_is_pc_female_6F()) goto labelFunc0412_0044;
	var0002 = "her";
	var0004 = "she";
	var0003 = "her";
	var0005 = "woman";
	labelFunc0412_0044:
		var0006 = Func0953();
		var0007 = UI_part_of_day_48();
		var0008 = 0x0000;
		if(!(UI_get_npc_id_BC(0xFFEC) > 0x0001)) goto labelFunc0412_006B;
		var0008 = 0x0002;
	labelFunc0412_006B:
		if(!((var0007 > 0x0001) || (var0007 < 0x0006))) goto labelFunc0412_0086;
		var0007 = "day";
		goto labelFunc0412_008C;
	labelFunc0412_0086:
		var0007 = "evening";
	labelFunc0412_008C:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0412_00AF;
		var0009 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0412_00AF:
		if(!(event == 0x0001)) goto labelFunc0412_00DD;
		UI_item_say_4D(0xFE9C, "@Greetings!@");
		0xFFEE;
		calle();
		Func097F(0xFFEE, "@Ah, yes...@", 0x0002);
		UI_set_schedule_type_25(0xFFEE, 0x0003);
	labelFunc0412_00DD:
		if(!(event == 0x0009)) goto labelFunc0412_0649;
		UI_run_schedule_B7(0xFFEE);
		UI_halt_scheduled_71(0xFFEE);
		UI_show_npc_face0_05(0xFFEE, 0x0000);
		var000A = UI_get_item_flag_A3(0xFFEE, 0x001C);
		UcMessage("\"'Tis thee again. Hast thou good news?\"");
		UcSay;
		UI_add_answer_0C(["duties", "politics"]);
		if(!(gflags[00EA] && ((!gflags[00EB]) && (!UI_get_item_flag_A3(0xFFE1, 0x0004))))) goto labelFunc0412_0139;
		UI_add_answer_0C("kidnap");
	labelFunc0412_0139:
		if(!(gflags[00EB] && (!UI_is_dead_44(0xFFE1)))) goto labelFunc0412_014F;
		UI_add_answer_0C("search");
	labelFunc0412_014F:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc0412_0161;
		UI_add_answer_0C("apparatus");
	labelFunc0412_0161:
		if(!(gflags[0114] && (!gflags[0293]))) goto labelFunc0412_0173;
		UI_add_answer_0C("slippers");
	labelFunc0412_0173:
		UI_add_answer_0C(["bye"]);
	labelFunc0412_017D:
		UcAsk;
		cmps("change subject");
		UcMessage("\"But we were only beginning! Very well, if thou dost insist...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0412_0190:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"As thou hast no doubt noticed, the burden of being MageLord wears heavily upon me. I spend all of mine hours in the palace. I have no life of mine own. I seldom even research new spells.\"");
		UcSay;
		Func0830();
		UI_push_answers_0E();
		UI_add_answer_0C(["burden", "palace", "life", "spells", "change subject"]);
	labelFunc0412_01C0:
		cmps("spells");
		UI_remove_answer_0D("spells");
		UcMessage("\"Hmmpf...\"");
		UcSay;
		UcMessage("\"'Tis beneath my station to teach thee, or any other, the awesome knowledge that is mine alone. Go and badger Melino or Columna, if thou dost wish to learn the arcane arts.\"");
		UcSay;
	labelFunc0412_01D7:
		cmps("burden");
		UI_remove_answer_0D("burden");
		UcMessage("\"Indeed. Sometimes I think that my subjects do not appreciate me. They have given me wealth and power, but I have given them my life! Now is that a fair exchange?\"");
		UcSay;
		UcMessage("\"Perhaps I shall go live in a hut on the coast. That would be less stressful...\"");
		UcSay;
		Func0830();
	labelFunc0412_01F1:
		cmps("palace");
		UI_remove_answer_0D("palace");
		UcMessage("\"Is this not a grand old building? Most of the downstairs chambers are used for business of the court, while the remaining rooms are mine own.\"");
		UcSay;
		UcMessage("\"Never mind the legends of hidden treasure chambers here. If there were gold here, I would have it by now!\"");
		UcSay;
		Func0830();
	labelFunc0412_020B:
		cmps("life");
		UI_remove_answer_0D("life");
		UcMessage("\"It is lonely to be MageLord. I have the needs of a normal man, yet I am overwhelmed by the demands of the citizens...\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0412_0234;
		UcMessage("\"I am grateful for thy sympathy, madam. I too am attracted to thee. Aha, thou didst not think I noticed thy glances!\"");
		UcSay;
		UcMessage("\"But alas, I am spoken for! The sorceress Frigidazzi is my current love, and she allows me no trespasses.\"");
		UcSay;
		UcMessage("\"And I am jealous of her affections, as well. I have found that women are notoriously fickle...\"");
		UcSay;
		goto labelFunc0412_0248;
	labelFunc0412_0234:
		UcMessage("\"No doubt thou hast heard tales of my romantic conquests! This is the answer I have found to the pressures of being MageLord.\"");
		UcSay;
		UcMessage("\"I know that the citizens talk of me all the time, behind my back. They say that I am a great lover, and indeed, I am!\"");
		UcSay;
		UcMessage("\"But I have never found true love. Romance is like the fog that dissolves in the sunlight.\"");
		UcSay;
		UcMessage("\"Do not speak of this to the Sorceress Frigidazzi! She is my current passion, and I fear that she doth love me too much.\"");
		UcSay;
		UcMessage("\"I am supremely jealous of her affections, as well. Though I do not truly love her, I will not be made a fool of!\"");
		UcSay;
	labelFunc0412_0248:
		Func0830();
	labelFunc0412_024B:
		cmps("politics");
		UI_remove_answer_0D("politics");
		UcMessage("\"Is there no end to the bickering among the Mages? We have three factions here, and each elects its favorite to the Council of Moonshade.\"");
		UcSay;
		UcMessage("\"As the voice of compromise and experience, I have always been selected MageLord by the Adepts.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc0412_0276;
		UcMessage("\"My fellow Lords are Gustacio and Mortegro.\"");
		UcSay;
		goto labelFunc0412_027A;
	labelFunc0412_0276:
		UcMessage("\"My fellow Lords are Rotoluncia and Gustacio.\"");
		UcSay;
	labelFunc0412_027A:
		Func0830();
		UI_push_answers_0E();
		UI_add_answer_0C(["Adept Gustacio"]);
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc0412_02A2;
		UI_add_answer_0C("Adept Mortegro");
		goto labelFunc0412_02A9;
	labelFunc0412_02A2:
		UI_add_answer_0C("Adept Rotoluncia");
	labelFunc0412_02A9:
		UI_add_answer_0C("change subject");
	labelFunc0412_02B0:
		cmps("Adept Rotoluncia");
		UI_remove_answer_0D("Adept Rotoluncia");
		UcMessage("\"The Sorceress Rotoluncia is the heart of dissension. She is ambitious beyond measure, and causes all manner of trouble.\"");
		UcSay;
		UcMessage("\"She was not always this way. I remember the summer of my last apprenticeship year. She was two years younger than I, and asked me to be her tutor...\"");
		UcSay;
		UcMessage("\"Ah, but she did tutor me as well, that summer! There have been many loves, before and since, but I shall always remember Rotoluncia.\"");
		UcSay;
		Func0830();
	labelFunc0412_02CE:
		cmps("Adept Gustacio");
		UI_remove_answer_0D("Adept Gustacio");
		UcMessage("\"Gustacio doth	adhere too strictly to outdated codes of ethics. Why, we could accomplish nothing in Moonshade if we followed his advice!\"");
		UcSay;
		if(!(!gflags[00E2])) goto labelFunc0412_02F0;
		UcMessage("\"I doubt that he shall even deign to speak with thee. He is of the old school, and speaks only to those he considers worthy of his time.\"");
		UcSay;
		UcMessage("\"Until thou hast proven thyself, he shall have little to do with thee.\"");
		UcSay;
	labelFunc0412_02F0:
		Func0830();
	labelFunc0412_02F3:
		cmps("Adept Mortegro");
		UI_remove_answer_0D("Adept Mortegro");
		UcMessage("\"Now that Rotoluncia is dead -- and I shall miss her, for she and I were once lovers -- I hope for greater harmony.\"");
		UcSay;
		UcMessage("\"The Black Mage, Mortegro, hath been selected to take Rotoluncia's seat on the Council.\"");
		UcSay;
		UcMessage("\"They say that he is crazy, but I think there is prejudice everywhere against necromancers. He is not that bad.\"");
		UcSay;
		Func0830();
	labelFunc0412_0311:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc0412_0382;
		UcMessage("\"Allow me to see what thou hast -- it had better not be one of mine own!\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFF6)) goto labelFunc0412_0360;
		UI_show_npc_face1_06(0xFED6, 0x0000);
		UcMessage("\"Thieves could not take thy goods, MageLord. I protect them well.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"That had best be true, or thou wilt find thyself on the scrap heap!\"");
		UcSay;
	labelFunc0412_0360:
		var000B = Func0992(0x0001, "@This be it.@", "@Here it is.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, good! 'Tis not mine at all. Thou must understand that every item of magical equipment must be custom-made for each Mage.\"");
		UcSay;
		UcMessage("\"I do not know to whom this belongs, but it is not mine.\"");
		UcSay;
		goto labelFunc0412_03A1;
	labelFunc0412_0382:
		UcMessage("\"Hast thou brought this object with thee?\"");
		UcSay;
		var000B = Func0992(0x0001, "@No, we do not have it with us.@", "@No, I have not.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then I can tell thee nothing. But if thou hast stolen this from me, I shall not pay ransom for it!\"");
		UcSay;
	labelFunc0412_03A1:
		Func0830();
	labelFunc0412_03A4:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"Slippers! What business is my footwear to thee! Dost thou think to have a laugh at mine expense?\"");
		UcSay;
		UcMessage("\"Begone with thee, fool...\"");
		UcSay;
		var000C = UI_get_object_position_20(0xFFEE);
		UI_sprite_effect_68(0x001A, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFEE, [0x05F2, 0x078F, 0x0000]);
		abrt();
	labelFunc0412_03F8:
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Thy friend hath been taken! How foul! And by magical means! Indeed...\"");
		UcSay;
		UcMessage("\"Whom dost thou suspect of this terrible crime?\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Batlin"]);
		if(!gflags[013F]) goto labelFunc0412_042A;
		UI_add_answer_0C("Mortegro");
	labelFunc0412_042A:
		if(!gflags[0142]) goto labelFunc0412_0437;
		UI_add_answer_0C("Torrissio");
	labelFunc0412_0437:
		UI_add_answer_0C(["Rotoluncia", "unknown"]);
	labelFunc0412_0444:
		cmps("Mortegro");
		UcMessage("\"Nonsense! That man is an honest and an upright Mage, though he doth have unsettling habits...\"");
		UcSay;
		UcMessage("\"Withdraw thy suspicions -- I vouch for his integrity. Mortegro did not steal thy friend.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0412_0458:
		cmps("Torrissio");
		UcMessage("\"Hmm... He is very young, but also clever and devious. Perhaps thou shouldst confront him with thy suspicions, and see what he doth have to say.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0412_0468:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"That name is familiar to me... he came to Moonshade many weeks ago, a large man in a brown cloak of a very common quality.\"");
		UcSay;
		UcMessage("\"Perhaps thou shouldst inquire of Bucia at the Provisioner's Shop -- if there is anything to be known in this city, she would know it.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0412_0483:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc0412_04AA;
		UcMessage("\"A tragedy that the two of thee were unable to settle thy differences amicably.\"");
		UcSay;
		UI_pop_answers_0F();
		goto labelFunc0412_04C7;
	labelFunc0412_04AA:
		UcMessage("\"I have heard that she believes thee to consort with Daemons, and to be a partner of the one called Batlin.\"");
		UcSay;
		UcMessage("\"Thou shouldst search her manor for clues. Open every door, for thy friend might be hidden anywhere.\"");
		UcSay;
		UcMessage("\"Thou canst find her mansion in the northeast part of town, built into the face of the southern mountains.\"");
		UcSay;
		UcMessage("\"Be careful -- the Red Witch is most powerful, and I cannot protect thee from her enchantments!\"");
		UcSay;
		Func097F(0xFFEE, "@Report thy findings.@", 0x0000);
		abrt();
	labelFunc0412_04C7:
		cmps("unknown");
		UI_remove_answer_0D("unknown");
		UcMessage("\"If thou hast no suspects, then thou surely art clueless! I mourn for thee and thy lost friend.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0412_04DE:
		cmps("search");
		UI_remove_answer_0D("search");
		if(!gflags[00EC]) goto labelFunc0412_04FA;
		UcMessage("\"I have already given thee my permission. Go! Do not trouble me further! I can do no more in this matter.\"");
		UcSay;
		goto labelFunc0412_0516;
	labelFunc0412_04FA:
		UcMessage("\"So thou hast searched Rotoluncia's manor, and there is no sign of thy friend, or of Rotoluncia? How interesting...\"");
		UcSay;
		UcMessage("\"I have one last hope for thee, but I must first share a secret with thee...\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["last hope", "secret", "change subject"]);
	labelFunc0412_0516:
		cmps("last hope");
		UI_remove_answer_0D("last hope");
		UcMessage("\"If I am wrong this time, then thine enemy must not be Rotoluncia, but rather some other Mage.\"");
		UcSay;
		UcMessage("\"If this is so, I cannot aid thee.\"");
		UcSay;
	labelFunc0412_052D:
		cmps("secret");
		UI_remove_answer_0D("secret");
		UcMessage("\"I am reluctant to admit this, but under the circumstances, I think that I must.\"");
		UcSay;
		UcMessage("\"A year ago, the Red Sorceress and I renewed that passionate affair which we began in our youth. This was none of mine idea, but I could not resist her advances...\"");
		UcSay;
		UcMessage("\"She demanded that our love-making be done in secret, and so I built a secluded love palace.\"");
		UcSay;
		UI_add_answer_0C(["love palace", "love-making"]);
	labelFunc0412_0555:
		cmps("love palace");
		UI_remove_answer_0D("love palace");
		UcMessage("\"Oh, it is a modest place -- not like this great masterpiece! A mere cottage.\"");
		UcSay;
		UcMessage("\"Perhaps Rotoluncia hath gone there to hide, and taken thy friend as well. If so, then she hath betrayed me.\"");
		UcSay;
		UcMessage("\"Go quickly! See if she is there, and if so, flush her out!\"");
		UcSay;
		UI_add_answer_0C("Where is it?");
	labelFunc0412_0577:
		cmps("Where is it?");
		UI_remove_answer_0D("Where is it?");
		UcMessage("\"It is located in the center of the Lake of Enchantment, south and west of where we now stand.\"");
		UcSay;
		UcMessage("\"Thou shalt need a boat to reach this place. Take my yacht. I give thee permission.\"");
		UcSay;
		UcMessage("\"The royal yacht is moored at the pier which can only be reached from within my palace. Thou wilt note that my yacht will not move unless the mystic engine is engaged.\"");
		UcSay;
		gflags[00EC] = true;
		UI_add_answer_0C("betrayed");
	labelFunc0412_059D:
		cmps("betrayed");
		UI_remove_answer_0D("betrayed");
		UcMessage("\"Did she make love to me, only thinking to use me? Was her passion false, a mere pretense in order to coerce me into building that hidden citadel?\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0412_05BC;
		UcMessage("\"Women are fickle! Never give thine heart to one of their kind, stranger. Better to love them and then leave them...\"");
		UcSay;
	labelFunc0412_05BC:
		UcMessage("\"I am undone! Mine heart grieves. I must go away to be with my thoughts...\"");
		UcSay;
		var000C = UI_get_object_position_20(0xFFEE);
		UI_sprite_effect_68(0x0007, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFFEE);
		UI_set_schedule_type_25(0xFFEE, 0x0004);
		Func097F(0xFE9C, "@Gosh!@", 0x0003);
		abrt();
	labelFunc0412_0607:
		cmps("love-making");
		UI_remove_answer_0D("love-making");
		UcMessage("\"Aha, but I cannot speak of this with thee! It is a private matter...\"");
		UcSay;
		UcMessage("\"But let me say this -- in the years since our youth, the Red Sorceress learned many strange and difficult practices. Why, she even taught me a thing or two!\"");
		UcSay;
	labelFunc0412_061E:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Must be going...@", 0x0000);
		Func097F(0xFFEE, "@Good fortune!@", 0x0002);
		goto labelFunc0412_0648;
	labelFunc0412_0645:
		goto labelFunc0412_017D;
	labelFunc0412_0648:
		end_conv();
	labelFunc0412_0649:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0942 0x942 (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08FF 0x8FF ();

Func0413 0x413 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = false;
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0413_002D;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0413_002D:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(0xFFED) == 0x0009))) goto labelFunc0413_007B;
		if(!(UI_get_random_00(0x000A) < 0x0006)) goto labelFunc0413_0050;
		abrt();
	labelFunc0413_0050:
		var0003 = ["@Zounds!@", "@A true warrior!@", "@Tell me a story!@", "@Look! A stranger!@", "@May I be thy friend?@", "@Beware the mages...@"];
		Func097F(0xFFED, var0003[UI_get_random_00(0x0006)], 0x0000);
	labelFunc0413_007B:
		if(!(event == 0x0001)) goto labelFunc0413_00A9;
		UI_item_say_4D(0xFE9C, "@Little boy!@");
		0xFFED;
		calle();
		Func097F(0xFFED, "@Hi!@", 0x0002);
		UI_set_schedule_type_25(0xFFED, 0x0003);
	labelFunc0413_00A9:
		if(!(event == 0x0009)) goto labelFunc0413_0426;
		UI_run_schedule_B7(0xFFED);
		UI_clear_item_say_4E(0xFFED);
		UI_show_npc_face0_05(0xFFED, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFED, 0x001C);
		if(!gflags[0004]) goto labelFunc0413_00FD;
		if(!gflags[00F1]) goto labelFunc0413_00EF;
		UcMessage("\"I am so glad to see thee, ");
		UcMessage(var0000);
		UcMessage("! There hath been so much trouble here of late...\"");
		UcSay;
		goto labelFunc0413_00F3;
	labelFunc0413_00EF:
		UcMessage("\"I need thine help! I need thine help! I am in so much trouble...\"");
		UcSay;
	labelFunc0413_00F3:
		UI_add_answer_0C("trouble");
		goto labelFunc0413_0134;
	labelFunc0413_00FD:
		if(!(var0004 == false)) goto labelFunc0413_0123;
		UI_set_item_flag_A4(0xFFED, 0x001C);
		UcMessage("\"Art thou the great hero from a distant land?! Oh, my name is Freli. I am glad to meet thee!\"");
		UcSay;
		UI_add_answer_0C(["hero", "distant land"]);
		goto labelFunc0413_0134;
	labelFunc0413_0123:
		UcMessage("\"'Tis the Avatar! 'Tis the Avatar, from far away!\"");
		UcSay;
		UI_add_answer_0C(["Avatar", "far away"]);
	labelFunc0413_0134:
		if(!(gflags[0267] && (!gflags[00F6]))) goto labelFunc0413_0146;
		UI_add_answer_0C("looking for scroll");
	labelFunc0413_0146:
		if(!(gflags[018D] && (!gflags[00E7]))) goto labelFunc0413_0158;
		UI_add_answer_0C("Delin");
	labelFunc0413_0158:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0413_0171;
		UI_add_answer_0C("kidnap");
	labelFunc0413_0171:
		UI_add_answer_0C(["bye"]);
	labelFunc0413_017B:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Thou shouldst ask Andrio -- I am certain that he could help thee! He is very bright.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFFC)) goto labelFunc0413_01B1;
		UI_set_schedule_type_25(0xFFFC, 0x0003);
		Func097F(0xFFFC, "@I can help!@", 0x0002);
	labelFunc0413_01B1:
		cmps("hero", "Avatar");
		UI_remove_answer_0D(["hero", "Avatar"]);
		UcMessage("\"I know thou hast participated in many daring exploits. I so want to hear about everything! Life is so dreary here. I have nothing but my study of magic to interest me.\"");
		UcSay;
		UI_add_answer_0C(["dreary", "study", "magic"]);
	labelFunc0413_01DD:
		cmps("dreary");
		UI_remove_answer_0D("dreary");
		UcMessage("\"Why, nothing ever happens here in Moonshade. At least, nothing to match thy fascinating activities. I would wager not even Filbercio hath seen as much as thee.\"");
		UcSay;
		UI_add_answer_0C(["Moonshade", "Filbercio"]);
	labelFunc0413_01FD:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"'Twas founded several centuries ago, ");
		UcMessage(var0000);
		UcMessage(". Legend holds that the Mad Mage himself journeyed from a far away place, arriving here and laying claim to the land.\"");
		UcSay;
		UI_add_answer_0C("Mad Mage");
	labelFunc0413_021D:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"His true name is Erstam. He is called the Mad Mage because he fled the city many years ago to leave behind our civilization. No one truly knows why he left, but some who were there claim he made references to the townspeoples' 'petty bickering'.\"");
		UcSay;
	labelFunc0413_0230:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"The MageLord? He is the greatest of all wizards, or so I have heard. He rules with a kind but stern hand. Of course, I would not count on his friendship were I to be seen with his lover.\"");
		UcSay;
		UI_add_answer_0C("lover");
	labelFunc0413_024A:
		cmps("lover");
		UI_remove_answer_0D("lover");
		UcMessage("\"This is but rumor, ");
		UcMessage(var0000);
		UcMessage(". However, it hath been said that he is seen late at night in the presence of the Mistress of Cold, Frigidazzi.\"");
		UcSay;
	labelFunc0413_0263:
		cmps("study");
		UI_remove_answer_0D("study");
		UcMessage("\"Well, I certainly love magic and all, but it's taking too long! I have been learning for years, thou wouldst think me a master at this point. I do not believe it fair -- that traveller needed no tutelage, he simply paid Torrissio and was off.\"");
		UcSay;
		UI_add_answer_0C(["traveller", "Torrissio"]);
	labelFunc0413_0283:
		cmps("traveller");
		UI_remove_answer_0D("traveller");
		UcMessage("\"I had not the chance to meet him, but those who did called him Batlin. He was not here long, and left in a rush, but I overheard that he purchased spells from Torrissio.\"");
		UcSay;
	labelFunc0413_0296:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Torrissio can be quite mean, I have heard. Andrio is afraid of him, I know that.\"");
		UcSay;
		if(!Func0942(0xFFFC)) goto labelFunc0413_02EC;
		UI_show_npc_face1_06(0xFFFC, 0x0000);
		UcMessage("\"I am not!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, thou art!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"'Tis a lie! Besides, thou art afraid of him as well!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"That is, uh, not at all true!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0413_02EC:
		UcMessage("\"Why, Andrio will not even pass his house before 9 in the morning.\"");
		UcSay;
		UI_add_answer_0C("nine");
	labelFunc0413_02F7:
		cmps("nine");
		UI_remove_answer_0D("nine");
		UcMessage("\"That is when he leaves his laboratory to go out into the city.\"");
		UcSay;
	labelFunc0413_030A:
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"I mean no disrespect, ");
		UcMessage(var0000);
		UcMessage(". I find it a most fascinating topic. I could	spend days creating brilliant flashes of light, moving stones with my mind, and summoning animals from nothing. 'Tis the arcane art that keeps mine interest in daily life. I simply want to be further along in my studies.\"");
		UcSay;
	labelFunc0413_0323:
		cmps("distant land", "far away");
		UI_remove_answer_0D(["distant land", "far away"]);
		UcMessage("\"I have heard that thou hast travelled a great many miles to come here. When thou hast the time, I would love to listen to stories of thine homeland.\"");
		UcSay;
	labelFunc0413_033F:
		cmps("trouble");
		UI_remove_answer_0D("trouble");
		UcMessage("\"It was so terrible! Everyone is dead, and the city is destroyed...\"");
		UcSay;
		UcMessage("\"I was in the Seminarium when the Glowing Man came. Fedabiblio tried to	stop him, but could not...\"");
		UcSay;
		if(!(!var0001)) goto labelFunc0413_0364;
		UI_add_answer_0C("Fedabiblio");
	labelFunc0413_0364:
		cmps("Fedabiblio");
		var0001 = true;
		UI_remove_answer_0D("Fedabiblio");
		if(!gflags[00F1]) goto labelFunc0413_038E;
		UcMessage("\"Thou art a Mage beyond compare, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"I thought that Fedabiblio was dead after the Glowing Man turned him into a statue. I had no idea how to change him back... I hope Fedabiblio rewarded thee richly for saving him!\"");
		UcSay;
		goto labelFunc0413_0396;
	labelFunc0413_038E:
		UcMessage("\"He is dead, he is dead... The Glowing Man turned him into cold, cold stone. He is standing in the Seminarium...\"");
		UcSay;
		UcMessage("\"And I do not know how to change him back!\"");
		UcSay;
	labelFunc0413_0396:
		cmps("Delin");
		UI_remove_answer_0D("Delin");
		UcMessage("\"He is my long-lost father. Here is a scroll thou canst give him from me.\"");
		UcSay;
		var0002 = Func099B(0xFE9C, 0x0001, 0x031D, 0x0046, 0x0000, 0x0000, true);
		gflags[00E7] = true;
	labelFunc0413_03C6:
		cmps("looking for scroll");
		UI_remove_answer_0D("looking for scroll");
		UcMessage("\"I know that one! It is written entirely in Serpent Runic, and kept in the library of the Seminarium.\"");
		UcSay;
		if(!gflags[00F1]) goto labelFunc0413_03E6;
		UcMessage("\"Thou shouldst ask Fedabiblio for the key. I am sure he will give it to thee since thou didst save him.\"");
		UcSay;
		goto labelFunc0413_03EA;
	labelFunc0413_03E6:
		UcMessage("\"Only Fedabiblio had the key. But now he hath been turned to stone!\"");
		UcSay;
	labelFunc0413_03EA:
		if(!(!var0001)) goto labelFunc0413_03F8;
		UI_add_answer_0C("Fedabiblio");
	labelFunc0413_03F8:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(0xFFED, "@Please come again!@", 0x0002);
		Func08FF();
		goto labelFunc0413_0425;
	labelFunc0413_0422:
		goto labelFunc0413_017B;
	labelFunc0413_0425:
		end_conv();
	labelFunc0413_0426:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D2 0x7D2 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern Func0907 0x907 (var var0000, var var0001);
extern Func08FF 0x8FF ();

Func0414 0x414 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = UI_get_item_flag_A3(0xFFEC, 0x001C);
	var0001 = Func0954();
	var0002 = UI_is_pc_female_6F();
	var0003 = Func0953();
	var0004 = UI_part_of_day_48();
	if(!((var0004 > 0x0001) || (var0004 < 0x0006))) goto labelFunc0414_0042;
	var0004 = "day";
	goto labelFunc0414_0048;
	labelFunc0414_0042:
		var0004 = "evening";
	labelFunc0414_0048:
		var0005 = "his";
		if(!var0002) goto labelFunc0414_005A;
		var0005 = "her";
	labelFunc0414_005A:
		var0006 = UI_get_distance_21(0xFFEC, 0xFE9C);
		var0007 = [0x0975, 0x0748, 0x0000];
		var0008 = UI_get_object_position_20(0xFFEC);
		var0009 = [0x0986, 0x0766];
		var000A = Func09A0(0x0005, 0x0003);
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0414_00BB;
		var000B = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0414_00BB:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFEC) != 0x000F))) goto labelFunc0414_019D;
		if(!(UI_get_npc_id_BC(0xFFEC) != 0x0000)) goto labelFunc0414_00E7;
		UI_set_npc_id_BD(0xFFEC, 0x0000);
	labelFunc0414_00E7:
		var0008 = UI_get_object_position_20(0xFFEC);
		if(!(gflags[0125] && ((var0008[0x0001] > 0x0587) && ((var0008[0x0001] < 0x098A) && ((var0008[0x0002] > 0x0740) && (var0008[0x0002] < 0x0750)))))) goto labelFunc0414_0162;
		0xFFEC;
		calle();
		0xFFEC;
		calle();
		UI_set_schedule_type_25(0xFFEC, 0x000F);
		Func097F(0xFFEC, "@Oh, 'tis thee!@", 0x0002);
		var000B = UI_delayed_execute_usecode_array_02(0xFFEC, [0x23, 0x55, 0x00E6, 0x0000], 0x0005);
		goto labelFunc0414_019D;
	labelFunc0414_0162:
		UI_item_say_4D(0xFE9C, "Pardon me...");
		0xFFEC;
		calle();
		if(!var0002) goto labelFunc0414_0187;
		Func097F(0xFFEC, "@Yes, love?@", 0x0002);
		goto labelFunc0414_0193;
	labelFunc0414_0187:
		Func097F(0xFFEC, "@Yes, handsome?@", 0x0002);
	labelFunc0414_0193:
		UI_set_schedule_type_25(0xFFEC, 0x0003);
	labelFunc0414_019D:
		if(!(event == 0x0009)) goto labelFunc0414_03B9;
		UI_run_schedule_B7(0xFFEC);
		UI_clear_item_say_4E(0xFFEC);
		UI_show_npc_face0_05(0xFFEC, 0x0000);
		if(!(var0000 == false)) goto labelFunc0414_01D6;
		UI_set_item_flag_A4(0xFFEC, 0x001C);
		UcMessage("\"Yes, we met at the MageLord's banquet. I am Frigidazzi, of course.\"");
		UcSay;
		goto labelFunc0414_01DA;
	labelFunc0414_01D6:
		UcMessage("\"Back so soon? But of course.\"");
		UcSay;
	labelFunc0414_01DA:
		if(!gflags[0292]) goto labelFunc0414_01E7;
		UI_add_answer_0C("fur cap");
	labelFunc0414_01E7:
		UI_add_answer_0C(["spells", "goblin", "Batlin", "Moonshade", "Gwenno", "bye"]);
	labelFunc0414_0200:
		UcAsk;
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		var000B = Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004);
		if(!var000B) goto labelFunc0414_0267;
		UcMessage("\"Why, thou dost have my favorite fur cap! I have been looking for it everywhere! In fact, I have not seen it since that storm we had a while ago. Hmmm, that would mean that I have something that belongs to thee. I shall trade thee thine helm for my fur cap.\"");
		UcSay;
		gflags[0292] = false;
		var000B = UI_remove_party_items_34(0x0001, 0x03EC, 0xFE99, 0x0004, 0x0000);
		var000B = Func099B(0xFE9C, 0x0001, 0x017F, 0xFE99, 0x0000, 0x0000, true);
		goto labelFunc0414_026B;
	labelFunc0414_0267:
		UcMessage("\"Thou must me talking about my favorite fur cap! I have been looking for it everywhere! In fact, I have not seen it since that storm we had a while ago. Hmmm, perhaps that means I have something that belongs to thee. If thou dost return my fur cap to me I shall see what I have of thine.\"");
		UcSay;
	labelFunc0414_026B:
		cmps("goblin");
		UI_remove_answer_0D("goblin");
		UcMessage("\"Yes, I have a goblin for a servant. What of it? She is a perfect servant because she is almost completely impervious to the cold. But surely we can think of more interesting things to talk about...\"");
		UcSay;
	labelFunc0414_027E:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"Yes, I saw her briefly a few times while she was in our city. She spent a lot of time at the Seminarium. Gwenno had a lot of interest in the exotic races of our land.\"");
		UcSay;
	labelFunc0414_0291:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"That disgusting oaf! He wanted to buy a serpent relic from me, but I did not sell it to him!\"");
		UcSay;
		UcMessage("\"Cannot we find a different topic of conversation?\"");
		UcSay;
		UI_add_answer_0C("serpent relic");
	labelFunc0414_02AF:
		cmps("serpent relic");
		UI_remove_answer_0D("serpent relic");
		UcMessage("\"It was not very remarkable -- merely a stone in the shape of a serpent's tooth. It had no powers that I know of...\"");
		UcSay;
		UcMessage("\"Many of us have these stones. In fact, it is a tradition for the best Mages to own one or more of them.\"");
		UcSay;
		UcMessage("\"Canst thou keep a secret?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0414_02DF;
		UcMessage("\"I can tell thee from whence the Serpent Teeth came...\"");
		UcSay;
		UcMessage("\"The Mages of Moonshade steal them from Erstam, the Mad Mage who lives on the island! It is such fine sport, but if he catches thee, he turns thee into a newt!\"");
		UcSay;
		UcMessage("\"We do not know why he values them so. And since he now hates us, I doubt that he shall explain the matter to us.\"");
		UcSay;
		goto labelFunc0414_02E3;
	labelFunc0414_02DF:
		UcMessage("\"Neither can I! But I had best not share my secrets with thee...\"");
		UcSay;
	labelFunc0414_02E3:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"A beautiful city, is it not? But ever so much more beautiful at night when the moon is shining down upon it. Dost thou not agree?\"");
		UcSay;
	labelFunc0414_02F6:
		cmps("spells");
		UI_remove_answer_0D("spells");
		UcMessage("\"I could teach thee many things, ");
		UcMessage(var0003);
		UcMessage(". Come after midnight, alone, to my manor, and I shall reveal such knowledge as thou hast never before beheld.\"");
		UcSay;
		UcMessage("\"I am a heavy sleeper, so thou shalt most likely have to awaken me...\"");
		UcSay;
		gflags[0125] = true;
		var000B = UI_find_nearby_41(0xFE9C, 0x010E, 0x003C, 0x0000);
		enum();
	labelFunc0414_032B:
		for (var000E in var000B with var000C to var000D atend labelFunc0414_0350);
		if(!(UI_get_item_quality_1C(var000E) == 0x00C8)) goto labelFunc0414_034D;
		Func0907(var000E, 0x0001);
	labelFunc0414_034D:
		goto labelFunc0414_032B;
	labelFunc0414_0350:
		UI_add_answer_0C(["knowledge"]);
	labelFunc0414_035A:
		cmps("knowledge");
		UI_remove_answer_0D("knowledge");
		UcMessage("\"I am the mistress of cold-fire magic, a specialty I learned during my many travels to the north.\"");
		UcSay;
		UcMessage("\"Extreme cold is in its own way just as powerful a force as extreme heat. Over time, I have learned to bend it to my will.\"");
		UcSay;
		UI_add_answer_0C("travels to the north");
	labelFunc0414_0378:
		cmps("travels to the north");
		UI_remove_answer_0D("travels to the north");
		UcMessage("\"Some of my most memorable experiences have been on my various expeditions to the north. It is a harsh and unforgiving environment, that brings out the passionate will in one's heart to survive. It is extremely invigorating. All I shall tell thee is that if thou shouldst ever travel there thou shouldst dress warmly!\"");
		UcSay;
	labelFunc0414_038B:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(0xFFEC, "@Until next time!@", 0x0002);
		Func08FF();
		goto labelFunc0414_03B8;
	labelFunc0414_03B5:
		goto labelFunc0414_0200;
	labelFunc0414_03B8:
		end_conv();
	labelFunc0414_03B9:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();

Func0415 0x415 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	return;
}
// externs
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0834 0x834 ();
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func095D 0x95D (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08FF 0x8FF ();

Func0416 0x416 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = "Mundane";
	if(!gflags[00DB]) goto labelFunc0416_0012;
	var0000 = "Mage";
	labelFunc0416_0012:
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0416_0042;
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0416_0042:
		if(!(event == 0x0001)) goto labelFunc0416_0070;
		UI_item_say_4D(0xFE9C, "@A moment, sir.@");
		0xFFEA;
		calle();
		Func097F(0xFFEA, "@I am a busy mage...@", 0x0002);
		UI_set_schedule_type_25(0xFFEA, 0x0003);
	labelFunc0416_0070:
		if(!(event == 0x0009)) goto labelFunc0416_0591;
		UI_run_schedule_B7(0xFFEA);
		UI_clear_item_say_4E(0xFFEA);
		UI_show_npc_face0_05(0xFFEA, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFEA, 0x001C);
		if(!(UI_get_schedule_type_24(0xFFEA) == 0x000E)) goto labelFunc0416_00BC;
		UcMessage("\"Canst thou not see that I am trying to sleep!\"");
		UcSay;
		Func097F(0xFFEA, "@Return tomorrow!@", 0x0000);
		abrt();
	labelFunc0416_00BC:
		if(!(var0004 == false)) goto labelFunc0416_00FD;
		if(!gflags[00D9]) goto labelFunc0416_00D1;
		UcMessage("\"I know thee! Thou art the adventurer for whom the MageLord held the banquet.\"");
		UcSay;
		goto labelFunc0416_00D5;
	labelFunc0416_00D1:
		UcMessage("\"A pleasure to meet thee, I am certain. But I have no patience for idle tongue wagging.\"");
		UcSay;
	labelFunc0416_00D5:
		UcMessage("\"Forgive me, but this is an absolute waste of time, when there are other matters which are pressing...\"");
		UcSay;
		UI_set_item_flag_A4(0xFFEA, 0x001C);
		UI_set_schedule_type_25(0xFFEA, 0x000C);
		Func097F(0xFFEA, "@To work...@", 0x0000);
		abrt();
		goto labelFunc0416_013E;
	labelFunc0416_00FD:
		if(!(!gflags[00E2])) goto labelFunc0416_0118;
		UcMessage("\"I am sorry, but I do not have time for this. My studies devour mine entire day.\"");
		UcSay;
		Func097F(0xFFEA, "@Now, where is that book?@", 0x0000);
		abrt();
		goto labelFunc0416_013E;
	labelFunc0416_0118:
		UcMessage("\"It is an honor to receive thee, ");
		UcMessage(var0002);
		UcMessage(". How may I be of service to thee?\"");
		UcSay;
		if(!(!gflags[0239])) goto labelFunc0416_0130;
		UI_add_answer_0C("Dungeon Freedom");
	labelFunc0416_0130:
		if(!(!gflags[0172])) goto labelFunc0416_013E;
		UI_add_answer_0C("the trial");
	labelFunc0416_013E:
		if(!(gflags[00E3] && (!gflags[0128]))) goto labelFunc0416_0150;
		UI_add_answer_0C("experiment");
	labelFunc0416_0150:
		if(!(gflags[0128] && ((!gflags[00E6]) && (!gflags[011D])))) goto labelFunc0416_0167;
		UI_add_answer_0C("Ale is Edrin");
	labelFunc0416_0167:
		if(!(gflags[0128] && ((!gflags[00E6]) && gflags[011D]))) goto labelFunc0416_017D;
		UI_add_answer_0C("instructions");
	labelFunc0416_017D:
		if(!(gflags[00E6] && (!gflags[00E5]))) goto labelFunc0416_018F;
		UI_add_answer_0C("experiment");
	labelFunc0416_018F:
		if(!(gflags[00FE] && (!gflags[00CE]))) goto labelFunc0416_01A1;
		UI_add_answer_0C("Daemon Sword");
	labelFunc0416_01A1:
		if(!gflags[00E2]) goto labelFunc0416_01AE;
		UI_add_answer_0C("stone altar");
	labelFunc0416_01AE:
		UI_add_answer_0C(["name", "spells", "bye"]);
		if(!(gflags[00E3] && (!gflags[00E6]))) goto labelFunc0416_01D0;
		UI_remove_answer_0D("spells");
	labelFunc0416_01D0:
		UcAsk;
		cmps("the trial");
		UI_remove_answer_0D("the trial");
		UcMessage("\"Please do not hold me responsible for that travesty of justice! In Moonshade, one doth not contradict the MageLord!\"");
		UcSay;
		UcMessage("\"Besides, thou wast guilty of the crime, meaning that thou wast in the forbidden bedchamber...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0416_01F6;
		UcMessage("\"Oh, how I envy thee! But I am old now, and have my researches to content me.\"");
		UcSay;
	labelFunc0416_01F6:
		cmps("Dungeon Freedom");
		UI_remove_answer_0D("Dungeon Freedom");
		UcMessage("\"Thou must indeed be a formidable Mage, ");
		UcMessage(var0002);
		UcMessage(", since thou wast able to survive Filbercio's dungeons.\"");
		UcSay;
		UcMessage("\"I apologize for being brusque with thee before. I had no true concept of thine abilities.\"");
		UcSay;
	labelFunc0416_0213:
		cmps("name");
		UcMessage("\"My name is Gustacio, if thou must inquire!\"");
		UcSay;
		UI_remove_answer_0D("name");
	labelFunc0416_0226:
		cmps("Daemon Sword");
		UI_remove_answer_0D("Daemon Sword");
		UcMessage("\"Thy daemon sword needs to have its sorcerous energies realigned. I could repair it if I had my flux analyzer.\"");
		UcSay;
		if(!gflags[023C]) goto labelFunc0416_0288;
		var0005 = Func0992(0x0001, "@We found it in Skullcrusher!@", "@I found it in Skullcrusher!@", false);
		var0006 = UI_count_objects_31(0xFE9B, 0x01C8, 0xFE99, 0xFE99);
		if(!(var0006 > 0x0000)) goto labelFunc0416_027A;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Excellent! Now we can repair thy sword.\"~ \"Place it here and activate it. When the machine is working, use it on the sword.\"");
		UcSay;
		goto labelFunc0416_0285;
	labelFunc0416_027A:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou didst? But then where is it?\"~ \"Thou wouldst have me think that thou didst find it!\"");
		UcSay;
	labelFunc0416_0285:
		goto labelFunc0416_028C;
	labelFunc0416_0288:
		UcMessage("\"Unfortunately, it was stolen from me years ago.\"");
		UcSay;
	labelFunc0416_028C:
		cmps("spells");
		UI_remove_answer_0D("spells");
		if(!gflags[00E6]) goto labelFunc0416_02AB;
		UcMessage("\"I thank thee for thine excellent help. Now that my work hath been completed, I have time to teach thee magic as I promised.\"");
		UcSay;
		Func0834();
		goto labelFunc0416_0308;
	labelFunc0416_02AB:
		if(!gflags[011C]) goto labelFunc0416_02BB;
		UcMessage("\"Thou didst agree to help with mine experiments. Why hast thou not taken the energy globe to the tower on the plains?\"");
		UcSay;
		goto labelFunc0416_02C9;
		goto labelFunc0416_0308;
	labelFunc0416_02BB:
		UcMessage("\"If thou wilt aid me with mine experiments involving the teleport storms, I shall reward thee with magic. Dost thou agree?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0416_02F7;
		UcMessage("\"Excellent! First I shall need to tell thee what I have learned of these storms so far. They appear to have three powers: teleportation, transposition and transmutation. Also, the lightning of the teleport storms appears to have several different colors.\"");
		UcSay;
	labelFunc0416_02C9:
		UI_push_answers_0E();
		var0007 = true;
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
		UI_add_answer_0C(["teleportation", "transposition", "transmutation", "lightning colors"]);
		goto labelFunc0416_0308;
	labelFunc0416_02F7:
		UcMessage("\"Then I am sorry, I do not have any time to spare for thee.\"");
		UcSay;
		Func097F(0xFFEA, "@Farewell...@", 0x0000);
		abrt();
	labelFunc0416_0308:
		cmps("teleportation");
		UI_remove_answer_0D("teleportation");
		gflags[0007] = true;
		UcMessage("\"This is the mysterious power to move things from one place to another without passing through the space between.\"");
		UcSay;
		if(!(gflags[0007] && (gflags[0008] && (gflags[0009] && gflags[000A])))) goto labelFunc0416_0338;
		UI_add_answer_0C("further details");
	labelFunc0416_0338:
		cmps("transposition");
		UI_remove_answer_0D("transposition");
		gflags[0008] = true;
		UcMessage("\"This is a more elaborate form of teleportation, wherein two objects exchange places -- neither passing through the physical space between them. Fascinating!\"");
		UcSay;
		if(!(gflags[0007] && (gflags[0008] && (gflags[0009] && gflags[000A])))) goto labelFunc0416_0368;
		UI_add_answer_0C("further details");
	labelFunc0416_0368:
		cmps("transmutation");
		UI_remove_answer_0D("transmutation");
		gflags[0009] = true;
		UcMessage("\"I am not quite certain that this power actually exists. I have theorized that it would involve taking one object and literally changing it into another type of object. The difficulty in proving that something like this exists is that this power must be directly witnessed. Otherwise how is one to know that an item is not what it always was?\"");
		UcSay;
		if(!(gflags[0007] && (gflags[0008] && (gflags[0009] && gflags[000A])))) goto labelFunc0416_0398;
		UI_add_answer_0C("further details");
	labelFunc0416_0398:
		cmps("lightning colors");
		UI_remove_answer_0D("lightning colors");
		gflags[000A] = true;
		UcMessage("\"I have a theory that the colors of the lightning somehow directly correspond to the supernatural force behind it.\"");
		UcSay;
		if(!(!gflags[00E3])) goto labelFunc0416_03BD;
		UcMessage("\"But I have developed an experiment to test this theory, and thou canst help me with it.\"");
		UcSay;
		goto labelFunc0416_03C1;
	labelFunc0416_03BD:
		UcMessage("\"And the experiment that thou didst carry out for me seems to confirm what I believed to be true.\"");
		UcSay;
	labelFunc0416_03C1:
		if(!(gflags[0007] && (gflags[0008] && (gflags[0009] && gflags[000A])))) goto labelFunc0416_03DA;
		UI_add_answer_0C("further details");
	labelFunc0416_03DA:
		cmps("further details");
		UI_remove_answer_0D("further details");
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
		if(!(!gflags[011C])) goto labelFunc0416_0421;
		UcMessage("\"Since thou hast agreed to help with mine experiments, take this energy globe to my special tower. Thou wilt find this tower in the valley to the north of Moonshade in the middle of the plains.\"");
		UcSay;
		var0003 = Func099B(0xFE9C, 0x0001, 0x01C2, 0x0000, 0x0002, 0x0000, true);
		gflags[011C] = true;
	labelFunc0416_0421:
		UcMessage("\"Place the globe on the platform, on top of the tower structure.\"");
		UcSay;
		UcMessage("\"Next, thou shouldst engage the winch. This will seal thee within the tower, and activate the levers. It will also summon a magical storm.\"");
		UcSay;
		var0005 = Func0992(0x0001, "@Thou dost want us to summon a storm? This is madness!@", 0x0000, false);
		if(!(var0005 != 0xFE9C)) goto labelFunc0416_044E;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I assure thee, thou art in no danger! I would do this myself, but at mine age, climbing stairs is very difficult...\"");
		UcSay;
	labelFunc0416_044E:
		UcMessage("\"Pull the levers one at a time. This will draw down lightning from the storm, and cause it to strike the objects which I have placed on the tower.\"");
		UcSay;
		UcMessage("\"Observe the effects, and most importantly -- observe which color lightning hath which effect. Then return to me with thy report.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0416_045A:
		cmps("experiment");
		UI_remove_answer_0D("experiment");
		if(!gflags[0128]) goto labelFunc0416_04BA;
		UcMessage("\"Thou hast completed the experiment. As a token of appreciation, here is the Mirror of Truth.\"");
		UcSay;
		gflags[00E5] = true;
		Func095D(0x03E8);
		var0003 = Func099B(0xFE9C, 0x0001, 0x0289, 0x0000, 0x000B, 0x0000, true);
		gflags[02D9] = true;
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x0064);
		goto labelFunc0416_04C2;
	labelFunc0416_04BA:
		UcMessage("\"But of course! Thou must needs go to Fedabiblio for the answers...\"");
		UcSay;
		gflags[00E4] = true;
	labelFunc0416_04C2:
		cmps("instructions");
		UI_remove_answer_0D("instructions");
		if(!gflags[011D]) goto labelFunc0416_04DB;
		UcMessage("\"Why hast thou not taken the energy globe which I did give thee to the tower on the plains?\"");
		UcSay;
	labelFunc0416_04DB:
		cmps("Ale is Edrin");
		UcMessage("\"Thou must needs take the bird Ale to the tower in the wilderness, and place him where the lightning can strike him.\"");
		UcSay;
		if(!(!gflags[014A])) goto labelFunc0416_050F;
		UcMessage("\"I shall give thee this cage to hold the bird within.\"");
		UcSay;
		gflags[014A] = true;
		var0003 = Func099B(0xFE9C, 0x0001, 0x0346, 0x0000, 0x0000, 0x0000, true);
	labelFunc0416_050F:
		if(!(!gflags[011D])) goto labelFunc0416_0537;
		UcMessage("\"Return to the tower with this new energy globe!\"");
		UcSay;
		var0003 = Func099B(0xFE9C, 0x0001, 0x01C2, 0x0000, 0x0001, 0x0000, true);
		gflags[011D] = true;
	labelFunc0416_0537:
		UI_remove_answer_0D("Ale is Edrin");
	labelFunc0416_053E:
		cmps("stone altar");
		UI_remove_answer_0D("stone altar");
		UcMessage("\"Such a curious thing happened during mine experiments, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"While Mortegro and I were working to discover the secret of the teleportation storms, Mortegro was hit by a lightning strike.\"");
		UcSay;
		UcMessage("\"In his place, within my cellar, is this odd stone altar. By its look it is something from a Serpent temple, but I have no idea how to send it back where it came from... yet.\"");
		UcSay;
		UcMessage("\"If I can discern how to reverse the teleportation, perhaps I can rescue poor Mortegro. I hope he was not killed in the exchange...\"");
		UcSay;
	labelFunc0416_0563:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		Func097F(0xFFEA, "@Back to my studies...@", 0x0002);
		Func08FF();
		goto labelFunc0416_0590;
	labelFunc0416_058D:
		goto labelFunc0416_01D0;
	labelFunc0416_0590:
		end_conv();
	labelFunc0416_0591:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func095B 0x95B (var var0000);
extern var Func0957 0x957 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern Func0840 0x840 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func08FF 0x8FF ();

Func0417 0x417 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_part_of_day_48();
	if(!((var0003 > 0x0001) || (var0003 < 0x0006))) goto labelFunc0417_0035;
	var0003 = "day";
	goto labelFunc0417_003B;
	labelFunc0417_0035:
		var0003 = "evening";
	labelFunc0417_003B:
		if(!(event == 0x0001)) goto labelFunc0417_0071;
		UI_item_say_4D(0xFE9C, (("@Good " + var0003) + ", miss.@"));
		0xFFE9;
		calle();
		Func097F(0xFFE9, "@So?@", 0x0002);
		UI_set_schedule_type_25(0xFFE9, 0x0003);
	labelFunc0417_0071:
		if(!(event == 0x0000)) goto labelFunc0417_0140;
		var0004 = UI_get_random_00(0x0006);
		if(!(var0004 == 0x0001)) goto labelFunc0417_0097;
		UI_item_say_4D(0xFFE9, "@Do not go there!@");
	labelFunc0417_0097:
		if(!(var0004 == 0x0002)) goto labelFunc0417_00AB;
		UI_item_say_4D(0xFFE9, "@Wine for sale!@");
	labelFunc0417_00AB:
		if(!(var0004 == 0x0003)) goto labelFunc0417_00BF;
		UI_item_say_4D(0xFFE9, "@Very suspicious...@");
	labelFunc0417_00BF:
		if(!(var0004 == 0x0004)) goto labelFunc0417_00D3;
		UI_item_say_4D(0xFFE9, "@Magical wine!@");
	labelFunc0417_00D3:
		if(!(var0004 == 0x0005)) goto labelFunc0417_012C;
		var0005 = UI_find_nearby_41(0xFFE9, 0x0103, 0x000A, 0xFE99);
		if(!(var0005 != [])) goto labelFunc0417_0122;
		UI_item_say_4D(0xFFE9, "@Clean this!@");
		enum();
	labelFunc0417_0105:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0417_011F);
		Func097F(var0008, "@Yes, ma'am@", 0x0002);
		goto labelFunc0417_0105;
	labelFunc0417_011F:
		goto labelFunc0417_012C;
	labelFunc0417_0122:
		UI_item_say_4D(0xFFE9, "@Where is Ernesto?@");
	labelFunc0417_012C:
		if(!(var0004 == 0x0006)) goto labelFunc0417_0140;
		UI_item_say_4D(0xFFE9, "@Taste the wine!@");
	labelFunc0417_0140:
		if(!(event == 0x0009)) goto labelFunc0417_098F;
		UI_run_schedule_B7(0xFFE9);
		UI_clear_item_say_4E(0xFFE9);
		UI_show_npc_face0_05(0xFFE9, 0x0000);
		var0009 = UI_get_item_flag_A3(0xFFE9, 0x001C);
		if(!(var0009 == false)) goto labelFunc0417_0186;
		UcMessage("\"In what way can I help thee, stranger?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE9, 0x001C);
		goto labelFunc0417_018A;
	labelFunc0417_0186:
		UcMessage("\"We meet again.\"");
		UcSay;
	labelFunc0417_018A:
		if(!(gflags[00ED] && (!gflags[00E0]))) goto labelFunc0417_01A9;
		UI_add_answer_0C("Catacombs");
		if(!gflags[014B]) goto labelFunc0417_01A9;
		UI_add_answer_0C("key");
	labelFunc0417_01A9:
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc0417_01BB;
		UI_add_answer_0C("slippers");
	labelFunc0417_01BB:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc0417_01CD;
		UI_add_answer_0C("strange wine");
	labelFunc0417_01CD:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0417_01E6;
		UI_add_answer_0C("brown bottle");
	labelFunc0417_01E6:
		if(!(gflags[0106] && (!gflags[011B]))) goto labelFunc0417_01F8;
		UI_add_answer_0C("Celennia's disappearance");
	labelFunc0417_01F8:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0417_0211;
		UI_add_answer_0C("kidnap");
	labelFunc0417_0211:
		UI_add_answer_0C(["name", "wine", "bye"]);
	labelFunc0417_0221:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		if(!gflags[0143]) goto labelFunc0417_024E;
		UcMessage("\"I have most excellent news, ");
		UcMessage(var0002);
		UcMessage("! I have spoken personally with the MageLord, and he hath agreed to see thee.\"");
		UcSay;
		UcMessage("\"A crime that involved magic must be handled by the Council of Mages, naturally.\"");
		UcSay;
		UcMessage("\"And due to mine intervention, the MageLord shall be glad to speak with thee. Please, go to him soonest!\"");
		UcSay;
		goto labelFunc0417_02E3;
	labelFunc0417_024E:
		if(!gflags[0144]) goto labelFunc0417_0297;
		UcMessage("\"I have no information for thee, ");
		UcMessage(var0002);
		UcMessage(". The crime remains a mystery.\"");
		UcSay;
		UcMessage("\"Perhaps if thou couldst provide the 30 guilders which a proper investigation costs...?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0417_0290;
		if(!UI_remove_party_items_34(0x001E, 0x03B8, 0xFE99, 0xFE99, 0x0000)) goto labelFunc0417_0289;
		UcMessage("\"Most excellent! We shall be to work immediately, and hope to have information very soon. Please return in a few hours.\"");
		UcSay;
		gflags[0143] = true;
		goto labelFunc0417_028D;
	labelFunc0417_0289:
		UcMessage("\"We only accept guilders here, stranger. Perhaps Bucia the Provisioner can aid thee in exchanging thy worthless coins for Moonshadian money.\"");
		UcSay;
	labelFunc0417_028D:
		goto labelFunc0417_0294;
	labelFunc0417_0290:
		UcMessage("\"That is too bad. However, if we learn anything, we shall inform thee.\"");
		UcSay;
	labelFunc0417_0294:
		goto labelFunc0417_02E3;
	labelFunc0417_0297:
		if(!gflags[0140]) goto labelFunc0417_02A5;
		UcMessage("\"Thou wert wise to follow the advise of the townsfolk in coming to me -- \"");
		UcSay;
		UcMessage("\"the Rangers must always be consulted in criminal matters.\"");
		UcSay;
	labelFunc0417_02A5:
		UcMessage("\"This crime doth seem clearly to be magical. That is a problem -- 'twill be costly to proceed. A Mage should be consulted, and his fee will be steep.\"");
		UcSay;
		UcMessage("\"Canst thou afford the 20 guilders which a Mages' Analysis would cost?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0417_02DB;
		if(!UI_remove_party_items_34(0x0014, 0x03B8, 0xFE99, 0xFE99, 0x0000)) goto labelFunc0417_02D4;
		UcMessage("\"Most excellent! We shall be to work immediately, and hope to have information very soon. Please return to me in a few hours.\"");
		UcSay;
		gflags[0143] = true;
		goto labelFunc0417_02D8;
	labelFunc0417_02D4:
		UcMessage("\"We only accept guilders here, stranger. Perhaps Bucia the Provisioner can aid thee in exchanging thy worthless coins for Moonshadian money.\"");
		UcSay;
	labelFunc0417_02D8:
		goto labelFunc0417_02DF;
	labelFunc0417_02DB:
		UcMessage("\"That is too bad. However, the Rangers shall investigate thy mystery. If we learn anything, we shall inform thee.\"");
		UcSay;
	labelFunc0417_02DF:
		gflags[0144] = true;
	labelFunc0417_02E3:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"What business is it of thine? Who art thou, coming into my city and asking questions?\"");
		UcSay;
		UcMessage("\"If thou must know, I am Julia, chief of rangers. If thou dost make trouble in Moonshade, I will see that thou art sent to the dungeons!\"");
		UcSay;
		UI_add_answer_0C(["Rangers", "Moonshade", "dungeons"]);
	labelFunc0417_030A:
		cmps("Rangers");
		UI_remove_answer_0D("Rangers");
		UcMessage("\"We are the guardians of Moonshade. The City of Mages hath always been guarded by Rangers.\"");
		UcSay;
		UcMessage("\"The tradition doth date to the ancient city of Moon, from whence our ancestors came.\"");
		UcSay;
		UI_add_answer_0C(["guardians", "Moon"]);
	labelFunc0417_032E:
		cmps("guardians");
		UI_remove_answer_0D("guardians");
		UcMessage("\"Dost thou think that the mighty Mages deal with every thief or common brawler? Certainly not!\"");
		UcSay;
		UcMessage("\"That is what the Rangers are for. To stop common annoyances from bothering the Mages in their work. And if thou art not a Mage, thou dost qualify as a common annoyance.\"");
		UcSay;
	labelFunc0417_0345:
		cmps("Moon");
		UI_remove_answer_0D("Moon");
		UcMessage("\"Thou art dredging up ancient history!\"");
		UcSay;
		UcMessage("\"In days long gone, there was a peaceful land called Sosaria. It was a land of many kingdoms and cultures, a paradise of individuality.\"");
		UcSay;
		UcMessage("\"But times changed. A tyrant named British overthrew the kingdoms and declared himself king.\"");
		UcSay;
		var000A = false;
		var000B = [];
		if(!Func0942(Dupre)) goto labelFunc0417_0386;
		var000A = Func0992(Dupre, "@She doth refer to Lord
										British!@", 0x0000, false);
		goto labelFunc0417_03BB;
	labelFunc0417_0386:
		if(!Func0942(Shamino)) goto labelFunc0417_03A2;
		var000A = Func0992(Shamino, "@She doth refer to Lord
											British!@", 0x0000, false);
		goto labelFunc0417_03BB;
	labelFunc0417_03A2:
		if(!Func0942(Iolo)) goto labelFunc0417_03BB;
		var000A = Func0992(Iolo, "@She doth refer to
												Lord British!@", 0x0000, false);
	labelFunc0417_03BB:
		var000B = (var000B & ["@I serve Lord British!@", "say nothing"]);
		if(!(var000A != 0x0000)) goto labelFunc0417_03F1;
		var000B = (var000B & (("@Hush, " + Func095B(var000A)) + "@"));
		UI_set_conversation_slot_09(0x0000);
	labelFunc0417_03F1:
		var000C = Func0957(var000B);
		if(!(var000C == 0x0003)) goto labelFunc0417_0414;
		Func094E(var000A, "@But she doth slander our liege!@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc0417_0414:
		if(!(var000C == 0x0001)) goto labelFunc0417_0422;
		UcMessage("\"There is no need to be vulgar. The Daemon King hath been dead for many centuries. No one doth serve him now.\"");
		UcSay;
	labelFunc0417_0422:
		UcMessage("\"The Daemon British enforced a radical	scheme of philosophy upon his subjects, forcing them into exile if they would not submit.\"");
		UcSay;
		UcMessage("\"The Mages and Rangers were bound by the travesty known as the Oath of Honesty!\"");
		UcSay;
		var000A = Func0992(Shamino, "@But what is improper about
									honesty?@", 0x0000, false);
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Nothing is more cruel than unflinching Honesty. It doth shatter hearts, instill insecurity, and promote civil strife.\"");
		UcSay;
		UcMessage("\"Therefore, our ancestors fled the City of Moon in the	land British conquered, and sailed until they found this land.\"");
		UcSay;
	labelFunc0417_044D:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"Aye, the City of Mages. There is much magic here, and more than a little sorcery.\"");
		UcSay;
		UcMessage("\"The name is symbolic. Moon represents the powers beyond those of mere mortals, just as the moon is suspended over the world.\"");
		UcSay;
		UcMessage("\"As for Shade, it stands for shelter against the cruel light of Honesty. We believe in Truth here, but only within reason.\"");
		UcSay;
		UI_add_answer_0C(["magic", "sorcery"]);
	labelFunc0417_0475:
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"Mages use reagents and such like to cast magic. The good or ill of it comes from the caster's intent.\"");
		UcSay;
		UcMessage("\"Magic, in and of itself, is neither good nor evil. But sorcery is another matter altogether.\"");
		UcSay;
		UI_add_answer_0C("reagents");
	labelFunc0417_0493:
		cmps("reagents");
		UI_remove_answer_0D("reagents");
		UcMessage("\"Why ask me about them? I am a Ranger, not a Mage!\"");
		UcSay;
		UcMessage("\"If thou dost wish such information, seek out Pothos. Do not trouble me to teach thee the rudiments of magic! I am no teacher. Thou shouldst seek Fedabiblio with thine annoying questions!\"");
		UcSay;
		UI_add_answer_0C(["Pothos", "Fedabiblio"]);
	labelFunc0417_04B7:
		cmps("Pothos");
		UI_remove_answer_0D("Pothos");
		UcMessage("\"Pothos is the Apothecary here in Moonshade. He will be able to tell thee all about anything that thou wouldst need to cast magic.\"");
		UcSay;
		UcMessage("\"I hear the storms have cut badly into his supplies, but he should be able to help thee. Or at least he may have more time to deal with thee... I am a very busy woman!\"");
		UcSay;
	labelFunc0417_04CE:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio is the master of novices here in Moonshade. It is his lamentable duty to try and make those miscreants into Mages!\"");
		UcSay;
		UcMessage("\"If he doth not have time for thee, perhaps he could allow thee to satisfy thy curiosity in the library of magics.\"");
		UcSay;
	labelFunc0417_04E5:
		cmps("sorcery");
		UI_remove_answer_0D("sorcery");
		UcMessage("\"Sorcery is outlawed here in Moonshade, but that doth not mean that some Mages do not still practice its dark arts.\"");
		UcSay;
		UcMessage("\"Whereas magic is neither good nor evil, sorcery -- with its use of Bloodspawn -- hath no good intent at all. And the very possession of Stoneheart would have thee thrown into the deepest corners of the dungeons.\"");
		UcSay;
		UI_add_answer_0C(["Bloodspawn", "Stoneheart"]);
	labelFunc0417_0509:
		cmps("Bloodspawn");
		UI_remove_answer_0D("Bloodspawn");
		UcMessage("\"Thou dost not know of Bloodspawn? Good!\"");
		UcSay;
		UcMessage("\"The less that thou knowest, the less trouble that thou canst cause!\"");
		UcSay;
		UcMessage("\"I will say only that spells of great destruction require that vile compound. I will tell thee no more...\"");
		UcSay;
	labelFunc0417_0524:
		cmps("Stoneheart");
		UI_remove_answer_0D("Stoneheart");
		UcMessage("\"Thou art certainly ignorant!\"");
		UcSay;
		var000A = Func0992(0x0001, "@Thou art rude!@", 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc0417_055C;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"My, thou art touchy! I meant no offense... Only that thou didst not know things that are common knowledge here.\"");
		UcSay;
	labelFunc0417_055C:
		UcMessage("\"Stoneheart is the ore that produces Bloodspawn. I know not how this is done. I am not a Mage.\"");
		UcSay;
		UcMessage("\"And I would advise thee to use great caution about who thou dost ask... lest thou dost find thyself thrown in the dungeons.\"");
		UcSay;
	labelFunc0417_0564:
		cmps("dungeons");
		UI_remove_answer_0D("dungeons");
		UcMessage("\"Beware how thou dost step! The MageLord is apt to send any transgressor into the pits beneath the Mountains of Freedom.\"");
		UcSay;
		UcMessage("\"None have returned from that dank, dark abyss.\"");
		UcSay;
		UI_add_answer_0C(["MageLord", "transgressor", "Freedom"]);
	labelFunc0417_058B:
		cmps("MageLord");
		UI_remove_answer_0D("MageLord");
		if(!(gflags[0004] && (UI_get_schedule_type_24(0xFEF9) != 0x000F))) goto labelFunc0417_05B7;
		UcMessage("\"Our city is ruled by Shamino the Anarch, a most powerful wizard.\"");
		UcSay;
		UcMessage("\"He is a great improvement over our previous MageLord, who was indolent and deceitful. I am glad that Shamino rules.\"");
		UcSay;
		goto labelFunc0417_05C6;
	labelFunc0417_05B7:
		UcMessage("\"Our city is ruled by the MageLord Filbercio. He is benevolent and wise, and rules well.\"");
		UcSay;
		if(!(!gflags[00D9])) goto labelFunc0417_05C6;
		UcMessage("\"However, he doth not receive visitors, so do not dream of entering his palace.\"");
		UcSay;
	labelFunc0417_05C6:
		cmps("transgressor");
		UI_remove_answer_0D("transgressor");
		if(!(gflags[0004] && (UI_get_schedule_type_24(0xFEF9) != 0x000F))) goto labelFunc0417_05F2;
		UcMessage("\"'Tis best not to try and second guess Shamino the Anarch. His definition of a transgression changes from moment to moment...\"");
		UcSay;
		UcMessage("\"And the fine could be as insignificant as a verbal upbraiding, or as serious as thy life.\"");
		UcSay;
		goto labelFunc0417_0601;
	labelFunc0417_05F2:
		UcMessage("\"If thou art a Mage, thou must follow the Strictures. If thou art a Mundane, thou must not overly annoy a Mage. That much is simple logic.\"");
		UcSay;
		UcMessage("\"But, as long as Filbercio is the MageLord, thou wouldst do well to remember that it is unhealthy to cross any of Filbercio's whims.\"");
		UcSay;
		UI_add_answer_0C("Strictures");
	labelFunc0417_0601:
		cmps("Strictures");
		UI_remove_answer_0D("Strictures");
		UcMessage("\"'Tis not my job to know them. 'Tis for the Council of Mages to enforce.\"");
		UcSay;
		UcMessage("\"In short, thou canst not possess Bloodspawn unless the Council approves of it. And thou shouldst report any research that thou dost wish to do to the Council, as well.\"");
		UcSay;
		UI_add_answer_0C(["approves", "Council"]);
	labelFunc0417_0625:
		cmps("approves");
		UI_remove_answer_0D("approves");
		UcMessage("\"Thou art as full of questions as a novice!\"");
		UcSay;
		UcMessage("\"No spell is ever purposefully forgotten. But if it is dangerous, the Council tries to regulate who doth have access to such reagents and spells.\"");
		UcSay;
	labelFunc0417_063C:
		cmps("Council");
		UI_remove_answer_0D("Council");
		UcMessage("\"The Council is comprised of the MageLord and two other Adepts. They act as the voice of all the Mages in Moonshade, except when a quorum vote is called of all Adepts...\"");
		UcSay;
		UcMessage("\"Usually on the election of a new Council member, or a new MageLord.\"");
		UcSay;
	labelFunc0417_0653:
		cmps("Freedom");
		UI_remove_answer_0D("Freedom");
		UcMessage("\"Ha! Now there is a fine jest, if ever I heard one!\"");
		UcSay;
		UcMessage("\"All that was ever retrieved out of those mountains was the ore that was taken out while it was still a mine!\"");
		UcSay;
		UcMessage("\"Ever since Filbercio made it a prison, no one hath come out of there again!\"");
		UcSay;
	labelFunc0417_066E:
		cmps("wine");
		UI_remove_answer_0D("wine");
		if(!(UI_get_schedule_type_24(0xFFE9) == 0x0007)) goto labelFunc0417_06A8;
		UcMessage("\"We make the finest wine that thou wilt find anywhere. Wouldst thou care to try some?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0417_06A1;
		UcMessage("\"Good...\"");
		UcSay;
		Func0840();
		goto labelFunc0417_06A5;
	labelFunc0417_06A1:
		UcMessage("\"Thy loss...\"");
		UcSay;
	labelFunc0417_06A5:
		goto labelFunc0417_06AC;
	labelFunc0417_06A8:
		UcMessage("\"Come to the winery when we are open and thou canst sample our wares then!\"");
		UcSay;
	labelFunc0417_06AC:
		cmps("Catacombs");
		UI_remove_answer_0D("Catacombs");
		UcMessage("\"So, thou hast learned of the catacombs, hast thou? I hope thou hast not ventured to those ruins south of town, they are dangerous!");
		UcSay;
		UcMessage("\"I do not care what thou art after, but I'll tell thee that thou wilt throw thy life away down there.");
		UcSay;
		UcMessage("The depths belong to the Rat-Men, not to mention the burning heat. That is why the gate must always be locked.\"");
		UcSay;
		UI_add_answer_0C(["Rat-Men", "burning heat"]);
	labelFunc0417_06D4:
		cmps("Rat-Men");
		UI_remove_answer_0D("Rat-Men");
		UcMessage("\"There are too many Rat-Men to eliminate, so it is my duty to see that the gate remains closed. All that I and the other Rangers can do to keep them pacified is to toss scraps of food through the gate.\"");
		UcSay;
		UcMessage("\"Of course, my job is to keep any of those creatures from getting into the city,");
		UcSay;
		UcMessage("but I might be able to forget that I saw anyone going down there, if the price was good enough...\"");
		UcSay;
		UcMessage("\"But I doubt even thou would survive the heat down there. Though the Rat-Men thrive on it, the temperatures down there would most certianly boil thee in thine own flesh.");
		UcSay;
	labelFunc0417_06F3:
		cmps("burning heat");
		UI_remove_answer_0D("burning heat");
		UcMessage("\"Only once did I ever venture into the catacombs, with twenty strong Rangers at my back. And before we had gone far, half of our party had fallen to the heat alone...\"");
		UcSay;
		UcMessage("\"It felt like we were walking into a smith's forge! We had to turn back, and no one hath gone in there since.\"");
		UcSay;
		UcMessage("I might be tempted to 'loan' thee the key at a price...");
		UcSay;
		UcMessage("...but not until thou has found a way to protect thyself from the fervid temperatures. Giving thou the key now would mean certian death should thou be foolhearty enough to venture there.");
		UcSay;
		UcMessage("A sword may protect thee from the Rat-Men, but only magic can save thee from the fearsome heat.");
		UcSay;
		UcMessage("Return to me for the key when thou hast found the means to survive the heat.");
		UcSay;
	labelFunc0417_071A:
		cmps("key");
		UcMessage("I heard thou hast magic to protect thyself from the heat in the catacombs. I hope thou hast thought to take enough reagents, not that thou will survive the Rat-Men...");
		UcSay;
		UcMessage("\"I will 'loan' thou this key for say... 40 guilders? Is it worth that much to adventure in the catacombs?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0417_07B1;
		var000D = UI_count_objects_31(0xFE9B, 0x03B8, 0xFE99, 0xFE99);
		if(!(var000D >= 0x0028)) goto labelFunc0417_0795;
		UcMessage("\"Well enough! Take this blue key. It will open the gate to the catacombs for thee.\"");
		UcSay;
		var000E = UI_remove_party_items_34(0x0028, 0x03B8, 0xFE99, 0xFE99, true);
		var000F = Func099B(0xFE9C, 0x0001, 0x0281, 0x00CB, 0x0004, 0x0000, true);
		gflags[00E0] = true;
		UI_remove_answer_0D("Catacombs");
		UI_remove_answer_0D("key");
		goto labelFunc0417_07AE;
	labelFunc0417_0795:
		UcMessage("\"Art thou trying to jest with me? Thou dost not have 40 guilders!\"");
		UcSay;
		UcMessage("\"Return when thou hast learned how to count!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFE9, "@Oaf!@", 0x0000);
		abrt();
	labelFunc0417_07AE:
		goto labelFunc0417_07B5;
	labelFunc0417_07B1:
		UcMessage("\"Let me know if thou dost change thy mind.\"");
		UcSay;
	labelFunc0417_07B5:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"They are not mine, if that is what thou art asking. I would not wear anything that frilly. And a Mage would never wear anything that plain.\"");
		UcSay;
	labelFunc0417_07C8:
		cmps("strange wine");
		UI_remove_answer_0D("strange wine");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc0417_07F7;
		UcMessage("\"Thou hast wine from our winery! I hope thou didst enjoy it... Hmm. It is the same vintage as the wine that disappeared.\"");
		UcSay;
		UcMessage("\"Hast thou seen our wine press? We are very proud of it.\"");
		UcSay;
		goto labelFunc0417_07FB;
	labelFunc0417_07F7:
		UcMessage("\"I am no Mage to divine what it was that thou didst have! Bring to me the bottle or trouble me no more about it. I have enough to do taking care of our wine press.\"");
		UcSay;
	labelFunc0417_07FB:
		UI_add_answer_0C("wine press");
	labelFunc0417_0802:
		cmps("wine press");
		UI_remove_answer_0D("wine press");
		UcMessage("\"The finest wine press in all the land! For it operates by no human hand!\"");
		UcSay;
		UcMessage("\"'Tis a magic wine press, ");
		UcMessage(var0000);
		UcMessage(". Made by the one and only Mad Mage... before he began his weird experiments, that is.\"");
		UcSay;
		UI_add_answer_0C(["Mad Mage", "experiments"]);
	labelFunc0417_082C:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"Thou hast not heard of the Mad Mage?!\"");
		UcSay;
		UcMessage("\"His true name is Erstam. He lives on a small island away from Moonshade. He was once the Adepts' mentor... before he went mad.\"");
		UcSay;
	labelFunc0417_0843:
		cmps("experiments");
		UI_remove_answer_0D("experiments");
		UcMessage("\"Makes me ill to think about them!\"");
		UcSay;
		UcMessage("\"The Mad Mage thinks that he can learn to create life. Or life from death, I should say.\"");
		UcSay;
		UcMessage("\"They say that he hacks his assistants to use in his experiments, and that he doth have all sorts of hideous things wandering around the island -- failed experiments that he turns out his door!\"");
		UcSay;
	labelFunc0417_085E:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"I would recognize that mud-brown bottle any day! 'Tis what those brine-drunk Fawn sailors swill! Bad enough to choke a goat, I will tell thee! Thou wilt not find any in this city!\"");
		UcSay;
		UI_add_answer_0C(["brine-drunk sailors", "Fawn"]);
	labelFunc0417_087E:
		cmps("brine-drunk sailors");
		UI_remove_answer_0D("brine-drunk sailors");
		UcMessage("\"Nearly all who live in Fawn are sailors. I suppose after all those hours at sea, anything would taste good... Mayhaps it kills thy sense of taste. Or mayhaps the smell of fish kills thy sense of smell. I do not know how anyone could drink that bilge water any other way!\"");
		UcSay;
	labelFunc0417_0891:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"Fawn is a pretty city, built on the water. 'Tis on the west side of the mainland.\"");
		UcSay;
		UcMessage("\"I have met Fawn's guard captain. He is a handsome man, quite capable... though how he stomachs that swill they call ale, I shall never know.\"");
		UcSay;
		UI_add_answer_0C("guard captain");
	labelFunc0417_08AF:
		cmps("guard captain");
		UI_remove_answer_0D("guard captain");
		UcMessage("\"Fawn's guard captain is a fellow named Jorvin.\"");
		UcSay;
		UcMessage("\"I would have liked to have become better acquainted with him, but I think that he was already -- friendly -- with the Lady of Fawn herself...\"");
		UcSay;
		UcMessage("\"A girl cannot compete with that.\"");
		UcSay;
	labelFunc0417_08CA:
		cmps("Celennia's disappearance");
		UI_remove_answer_0D("Celennia's disappearance");
		UcMessage("\"I do not know the whole of it, in truth.\"");
		UcSay;
		UcMessage("\"All I know is that Celennia and Frigidazzi had some sort of noisy falling out, over the Mage that came here, I did hear.\"");
		UcSay;
		UcMessage("\"And then Celennia disappears, just like that! Left Frigidazzi in quite a snit, I'll tell thee!\"");
		UcSay;
		UI_add_answer_0C(["Frigidazzi", "Mage"]);
	labelFunc0417_08F2:
		cmps("Frigidazzi");
		UI_remove_answer_0D("Frigidazzi");
		UcMessage("\"Frigidazzi is the Adept that specializes in cold spells. I have heard her referred to as the 'ice maiden'!\"");
		UcSay;
		UcMessage("\"She and Celennia were good friends until Celennia became involved with that Mage.\"");
		UcSay;
	labelFunc0417_0909:
		cmps("Mage");
		UI_remove_answer_0D("Mage");
		UcMessage("\"Batlin, I think his name was. Poked around Moonshade for quite a while, asking questions and buying spells.\"");
		UcSay;
		UcMessage("\"I hear that he had something that interested Celennia -- though I will never know what, he was not her type. And whatever it was made Frigidazzi buzzing mad!\"");
		UcSay;
		UcMessage("\"Only Frigidazzi knows what happened for certain. And I would not care to ask her about it, either!\"");
		UcSay;
	labelFunc0417_0924:
		cmps("certificate");
		UI_remove_answer_0D("certificate");
		if(!(gflags[00FC] == false)) goto labelFunc0417_095D;
		UcMessage("\"With this Crime Certificate, thou canst commit one unlawful act without fear of punishment. If thou dost commit more than one, without another Certificate, Shamino the Anarch's justice will be swift!\"");
		UcSay;
		var000F = Func099B(0xFE9C, 0x0001, 0x031D, 0x00BB, 0xFE99, true, true);
		gflags[00FC] = true;
		goto labelFunc0417_0961;
	labelFunc0417_095D:
		UcMessage("\"I did give thee the Crime Certificate already!\"");
		UcSay;
	labelFunc0417_0961:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFFE9, "@Do not make trouble!@", 0x0002);
		Func08FF();
		goto labelFunc0417_098E;
	labelFunc0417_098B:
		goto labelFunc0417_0221;
	labelFunc0417_098E:
		end_conv();
	labelFunc0417_098F:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func084B 0x84B ();
extern Func08FF 0x8FF ();

Func0418 0x418 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_is_pc_female_6F();
	var0001 = Func0953();
	var0002 = "Mundane";
	var0003 = Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000);
	if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc0418_0041;
	var0004 = true;
	labelFunc0418_0041:
		if(!gflags[00DB]) goto labelFunc0418_004D;
		var0002 = "Mage";
	labelFunc0418_004D:
		var0005 = Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F);
		var0006 = UI_part_of_day_48();
		if(!((var0006 > 0x0001) || (var0006 < 0x0006))) goto labelFunc0418_0084;
		var0006 = "day";
		goto labelFunc0418_008A;
	labelFunc0418_0084:
		var0006 = "evening";
	labelFunc0418_008A:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0418_00AD;
		var0007 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0418_00AD:
		if(!(event == 0x0001)) goto labelFunc0418_00E3;
		UI_item_say_4D(0xFE9C, "Hello there.");
		0xFFE8;
		calle();
		Func097F(0xFFE8, (("@Greetings, " + var0002) + "."), 0x0002);
		UI_set_schedule_type_25(0xFFE8, 0x0003);
	labelFunc0418_00E3:
		if(!(event == 0x0009)) goto labelFunc0418_05F9;
		UI_run_schedule_B7(0xFFE8);
		UI_clear_item_say_4E(0xFFE8);
		UI_show_npc_face0_05(0xFFE8, 0x0000);
		if(!(!gflags[00DB])) goto labelFunc0418_011B;
		UcMessage("\"I am sorry, but thou hast mistaken me for someone else. Thou couldst not possibly be speaking to me, as I am a Mage... and thou art merely Mundane.\"");
		UcSay;
		Func097F(0xFFE8, "@Such impudence!@", 0x0000);
		abrt();
	labelFunc0418_011B:
		if(!(gflags[011E] == true)) goto labelFunc0418_0134;
		UcMessage("\"I shall never speak to thee again!\"");
		UcSay;
		Func097F(0xFFE8, "@Never!@", 0x0000);
		abrt();
	labelFunc0418_0134:
		var0008 = UI_get_item_flag_A3(0xFFE8, 0x001C);
		if(!(var0008 == false)) goto labelFunc0418_016B;
		UI_set_item_flag_A4(0xFFE8, 0x001C);
		UcMessage("\"I do not believe that we have met. 'Tis so nice to make the acquaintance of a new, young Mage.\"");
		UcSay;
		UcMessage("\"I am Melino, husband of the Green Enchantress.\"");
		UcSay;
		UI_add_answer_0C(["new Mage", "Green Enchantress"]);
		goto labelFunc0418_016F;
	labelFunc0418_016B:
		UcMessage("\"Welcome, Mage. I am pleased to see thee again.\"");
		UcSay;
	labelFunc0418_016F:
		if(!(gflags[00DF] && (!gflags[00EF]))) goto labelFunc0418_0181;
		UI_add_answer_0C("Mosh");
	labelFunc0418_0181:
		if(!(var0004 && (!gflags[0297]))) goto labelFunc0418_0193;
		UI_add_answer_0C("wine");
	labelFunc0418_0193:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc0418_01A5;
		UI_add_answer_0C("apparatus");
	labelFunc0418_01A5:
		if(!var0005) goto labelFunc0418_01B2;
		UI_add_answer_0C("Stoneheart");
	labelFunc0418_01B2:
		if(!var0003) goto labelFunc0418_01BF;
		UI_add_answer_0C("Moonsilk stockings");
	labelFunc0418_01BF:
		if(!(UI_get_schedule_type_24(0xFFE8) == 0x000C)) goto labelFunc0418_01D4;
		UI_add_answer_0C("spells");
	labelFunc0418_01D4:
		UI_add_answer_0C(["bye"]);
	labelFunc0418_01DE:
		UcAsk;
		cmps("new Mage");
		UI_remove_answer_0D("new Mage");
		UcMessage("\"Of course thou art new here! I know all other Mages in Moonshade... And I have never seen thee before.\"");
		UcSay;
		UcMessage("\"And thou hast thy spellbook, so thou art not a Mundane. Therefore, thou art a Mage.\"");
		UcSay;
		UcMessage("\"By careful reasoning then, thou art a new Mage!\"");
		UcSay;
		UcMessage("\"But I cannot recall having seen thee in Fedabiblio's training... But then I do not usually take much note of the novices.\"");
		UcSay;
		UI_add_answer_0C(["other Mages", "Mundane", "Fedabiblio"]);
	labelFunc0418_0210:
		cmps("other Mages");
		UI_remove_answer_0D("other Mages");
		if(!(!gflags[00E2])) goto labelFunc0418_022D;
		UcMessage("\"While I am far too busy to sit on the Council, I am well-connected, nonetheless. Many Mages come to consult me during their research.\"");
		UcSay;
		goto labelFunc0418_0231;
	labelFunc0418_022D:
		UcMessage("\"I have always been well-connected -- even before I took a seat on the Council. Many Mages come to consult me during their research.\"");
		UcSay;
	labelFunc0418_0231:
		UI_add_answer_0C(["Council", "research"]);
	labelFunc0418_023E:
		cmps("Council");
		UI_remove_answer_0D("Council");
		UI_push_answers_0E();
		UI_add_answer_0C("change subject");
		if(!(!gflags[00E2])) goto labelFunc0418_027A;
		UcMessage("\"The Council of Mages is the ruling body of Moonshade. To be asked to take a seat on the Council is a great honor, but I had to turn it down...\"");
		UcSay;
		UcMessage("\"The current members are Mortegro, Gustacio, and Filbercio... of course.\"");
		UcSay;
		UI_add_answer_0C(["Mortegro", "Gustacio", "Filbercio"]);
		goto labelFunc0418_028F;
	labelFunc0418_027A:
		UcMessage("\"The Council of Mages is the ruling body of Moonshade. I did not wish to accept a seat on the Council, but Columna persuaded me...\"");
		UcSay;
		UcMessage("\"The other members are Gustacio and Filbercio, of course...\"");
		UcSay;
		UI_add_answer_0C(["Gustacio", "Filbercio"]);
	labelFunc0418_028F:
		cmps("Mortegro");
		UI_remove_answer_0D("Mortegro");
		if(!(!gflags[00E2])) goto labelFunc0418_02B7;
		UcMessage("\"Mortegro is the local necromancer. He specializes in speaking with the dead, not raising them. Which is just as well, as the Council frowns on such exercises.\"");
		UcSay;
		UcMessage("\"Why raise the dead for servants when thou hast Mundanes for servants, after all? And we have no need of another Vasculio, that is clear.\"");
		UcSay;
		UI_add_answer_0C("Vasculio");
		goto labelFunc0418_02CC;
	labelFunc0418_02B7:
		UcMessage("\"Mortegro was the local necromancer. He specialized in speaking with the dead, not raising them...\"");
		UcSay;
		UcMessage("\"Or at least that is what we all thought until he disappeared. Perhaps we have been harboring another Vasculio all this time.\"");
		UcSay;
		UI_add_answer_0C(["disappeared", "Vasculio"]);
	labelFunc0418_02CC:
		cmps("Vasculio");
		UI_remove_answer_0D("Vasculio");
		UcMessage("\"Do not speak his name aloud again! I am not superstitious, mind thee... But there are those that say that calling a spirit three times by name will summon it. I would rather not find out, if thou dost not mind.\"");
		UcSay;
		UcMessage("\"The unnamed one was an Adept who hungered for power at any cost. When he could not gain enough to suit him by normal means... he resorted to foul deeds to obtain more.\"");
		UcSay;
		UcMessage("\"Though he was put to death for his crimes, he broke free from the grave... vowing vengeance upon us all. That is why the Council carefully monitors all research to this day.\"");
		UcSay;
	labelFunc0418_02E7:
		cmps("disappeared");
		UI_remove_answer_0D("disappeared");
		UcMessage("\"Gone! In a trice! No word to anyone...\"");
		UcSay;
		UcMessage("\"Gustacio is mightily peeved, I can tell thee. Mortegro was helping him with an experiment, and Gustacio cannot complete his work alone.\"");
		UcSay;
		UI_add_answer_0C("experiment");
	labelFunc0418_0305:
		cmps("experiment");
		UI_remove_answer_0D("experiment");
		UcMessage("\"I believe that the experiment had something to do with the teleport storms. Thou wouldst have to speak to Gustacio for more information, though.\"");
		UcSay;
	labelFunc0418_0318:
		cmps("Gustacio");
		UI_remove_answer_0D("Gustacio");
		UcMessage("\"Gustacio's specialty lies in manipulating the weather. He spends most of his days sitting and staring at the sky... I can never tell if he is collecting data or catching a few winks!\"");
		UcSay;
	labelFunc0418_032B:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"Filbercio is the MageLord, which is probably the safest place to keep him. Thou mayest think that doth sound ridiculous, but 'tis one of the only ways we Mages can be assured of what he is doing. As long as Filbercio thinks he doth have power, he is too busy using it to satisfy his hungers to be causing too much trouble. On the other hand, if Filbercio did not think he had power, he would devote all his being to ruining everyone else to procure power.\"");
		UcSay;
		UI_add_answer_0C(["hungers", "trouble"]);
	labelFunc0418_034B:
		cmps("hungers");
		UI_remove_answer_0D("hungers");
		UcMessage("\"The only polite thing I can think of to say is that Filbercio enjoys the company of women... And that he tires of his pursuits soon after he hath won them.\"");
		UcSay;
	labelFunc0418_035E:
		cmps("trouble");
		UI_remove_answer_0D("trouble");
		UcMessage("\"Filbercio's true forte lies in playing all sides against each other. He is very subtle in creating the right illusion in which to trap his prey... It always looks enticing, until it flares in thy face. And usually very publicly, too.\"");
		UcSay;
	labelFunc0418_0371:
		cmps("research");
		UI_remove_answer_0D("research");
		UI_push_answers_0E();
		UI_add_answer_0C("change subject");
		UcMessage("\"I seem to have a talent for discovering forgotten references within the archives. Such information can prove to be the key to a new spell or new aspect of an existing spell.\"");
		UcSay;
		UcMessage("\"For instance, Torrissio hath been paying me outrageous sums to deliver a list of reagents for a certain set of spells. I will not rest until I can justify his faith in me...\"");
		UcSay;
		UcMessage("\"Luckily, Columna hath been very understanding of the time I devote to my work.\"");
		UcSay;
		UI_add_answer_0C("Torrissio");
	labelFunc0418_039E:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Torrissio is a very talented young Mage. His specialty is the creation of the automatons that serve as servants and guards for our mansions.\"");
		UcSay;
		UcMessage("\"He hath a fine eye for detail, even for such menial creatures as servants. Thou mayest see his best work at the Blue Boar -- where he lets Rocco display Petra for him.\"");
		UcSay;
		UI_add_answer_0C(["Blue Boar", "Rocco", "Petra"]);
	labelFunc0418_03C5:
		cmps("Blue Boar");
		UI_remove_answer_0D("Blue Boar");
		UcMessage("\"The Blue Boar is the only eating establishment in Moonshade. Therefore, it caters to both Mage and Mundane, unfortunately. Thou mayest meet many other Mages there, if thou art patient enough.\"");
		UcSay;
	labelFunc0418_03D8:
		cmps("Rocco");
		UI_remove_answer_0D("Rocco");
		UcMessage("\"Rocco is the Mundane innkeeper of the Blue Boar. He is a bit of a surly lout. But then I do not go there for his conversation... only his food.\"");
		UcSay;
		UcMessage("\"His business hath certainly benefitted from Petra's skills. Petra is one of the finest cooks in the city.\"");
		UcSay;
	labelFunc0418_03EF:
		cmps("Petra");
		UI_remove_answer_0D("Petra");
		UcMessage("\"Petra is one of Torrissio's creations. She is very pretty, for an automaton, and cooks very well. Sometimes I think that Torrissio is as much an artisan as a Mage.\"");
		UcSay;
		UcMessage("\"I think that Petra's presence at the Blue Boar doth do much for Torrissio's reputation...\"");
		UcSay;
	labelFunc0418_0406:
		cmps("Mundane");
		UI_remove_answer_0D("Mundane");
		UcMessage("\"One who doth not possess magic -- that is a Mundane. Without magic, man is little more than a slightly evolved animal. Suited only to be a beast of burden for those whose powers are clearly superior.\"");
		UcSay;
		UcMessage("\"I know nothing about them, nor do I care to. What use is it to note such furtive little lives that pass so quickly and with so little note?\"");
		UcSay;
		UcMessage("\"Only from time to time hath one caught mine eye... Like that striking young woman that came through here a while ago.\"");
		UcSay;
		UI_add_answer_0C("young woman");
	labelFunc0418_0428:
		cmps("young woman");
		UI_remove_answer_0D("young woman");
		UcMessage("\"To be fair, Columna noticed her first... But then my wife always hath had a fancy for music. And this young woman was singing some sort of ballad about her beloved husband.\"");
		UcSay;
		UcMessage("\"I found it a bit tedious, but Columna was enchanted... so to speak. However, when we spoke to her, she seemed intelligent enough for a Mundane.\"");
		UcSay;
		UcMessage("\"She was asking all sorts of questions about history and such like. -- Her name? Let me see... I believe it was Gwenno. -- Columna directed her to Fedabiblio.\"");
		UcSay;
	labelFunc0418_0443:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio is the instructor of all novice Mages. He provides a solid foundation for the principles of magic. And then he passes the students on to the Adepts for more specialized training.\"");
		UcSay;
		UcMessage("\"Of course, at one time all Mages were taught by the Mad Mage. But not any more... Though the tradition of stealing something from him to prove that thou art indeed worthy of a title above novice remains.\"");
		UcSay;
		UcMessage("\"I doubt that he doth have any Serpent Teeth left to steal, so thou wilt have to make do with something else I suspect.\"");
		UcSay;
		UI_add_answer_0C(["Mad Mage", "Serpent Teeth"]);
	labelFunc0418_046B:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"I suppose that it would be polite to refer to him by his name... Erstam. But I am an Adept, and have long since outstripped anything he had to teach me.\"");
		UcSay;
		UcMessage("\"He dreams of becoming a god, and refuses to see his students as his equal. In truth, the Mad Mage is a doddering old man squatting on his island... Afraid of the students that surpassed him and the long march of time that his spells have cheated.\"");
		UcSay;
	labelFunc0418_0482:
		cmps("Serpent Teeth");
		UI_remove_answer_0D("Serpent Teeth");
		UcMessage("\"The Mad Mage had a peculiar collection of Serpent's Teeth. Nearly every Adept in the city doth have one that they stole from the old man. It was a juvenile prank I suppose, like tweaking a dragon's beard. But it hath become a tradition, nonetheless.\"");
		UcSay;
		UcMessage("\"I would show thee one, so that thou wouldst know what to take, but I am afraid that I seem to have lost mine. I cannot recall when I last saw it...\"");
		UcSay;
		UcMessage("\"Perhaps Columna would show thee her Serpent Tooth. I know that she possesses it.\"");
		UcSay;
	labelFunc0418_049D:
		cmps("Green Enchantress");
		UI_remove_answer_0D("Green Enchantress");
		UcMessage("\"Thou dost not know the Green Enchantress? Ah, perhaps thou wouldst recognize her by the spell she is famous for... Columna's Intuition.\"");
		UcSay;
		UI_add_answer_0C(["famous", "Columna's Intuition"]);
	labelFunc0418_04BD:
		cmps("famous");
		UI_remove_answer_0D("famous");
		UcMessage("\"No other Mage doth have a spell named after them... Of course she is famous! Why everyone agrees how remarkably useful it is!\"");
		UcSay;
	labelFunc0418_04D0:
		cmps("Columna's Intuition");
		UI_remove_answer_0D("Columna's Intuition");
		UcMessage("\"Columna is the Green Enchantress' name. And thou wouldst be amazed by her spell...\"");
		UcSay;
		UcMessage("\"It tells thee of anything hidden and potentially dangerous in the area. It doth not guarantee that what it finds is dangerous, but it doth warn thee.\"");
		UcSay;
	labelFunc0418_04E7:
		cmps("Mosh");
		UI_remove_answer_0D("Mosh");
		UcMessage("\"She said terrible things about my wife! Terrible! All lies! Lies!\"");
		UcSay;
		var0009 = true;
	labelFunc0418_04FE:
		cmps("wine");
		UI_remove_answer_0D("wine");
		UcMessage("\"Why, that is wine from the Rangers' winery! Their magical winepress always leaves a distinctive flavor... Quite a tingle!\"");
		UcSay;
		gflags[0297] = true;
	labelFunc0418_0515:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		UcMessage("\"Any Mage could tell thee that this is a piece of lab equipment!\"");
		UcSay;
		UcMessage("\"I am missing nothing... 'tis not mine. Thou wilt have to ask others about it.\"");
		UcSay;
	labelFunc0418_052C:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"What dost thou take me for, a Mundane?!\"");
		UcSay;
		UcMessage("\"One merely has to glance at these pitiful things to know that they would belong to no self-respecting Mage! Ask a Mundane or a shopkeeper, indeed!\"");
		UcSay;
		gflags[0115] = true;
	labelFunc0418_0547:
		cmps("Stoneheart");
		UI_remove_answer_0D("Stoneheart");
		UcMessage("\"I will tell thee that possession of Stoneheart is forbidden in Moonshade. I have no idea where thou didst come by it, nor do I want to know.\"");
		UcSay;
		UcMessage("\"Thou canst find other spells without resorting to those that are restricted.\"");
		UcSay;
		UI_add_answer_0C(["spells", "restricted"]);
	labelFunc0418_056B:
		cmps("spells");
		UcMessage("\"I could sell thee several spells, Mage...\"");
		UcSay;
		Func084B();
	labelFunc0418_057A:
		cmps("restricted");
		UI_remove_answer_0D("restricted");
		UcMessage("\"'Tis true that there are spells that require Stoneheart for a reagent, but they are very dangerous. Only a select few Mages are allowed such knowledge... So that it will not be lost.\"");
		UcSay;
	labelFunc0418_058D:
		cmps("Moonsilk stockings");
		UI_remove_answer_0D("Moonsilk stockings");
		UcMessage("\"Those are my wife's stockings! Oh, vile fiend! To think that thou wouldst flaunt Columna's indiscretion in my face! After I trusted thee!\"");
		UcSay;
		UcMessage("\"Out! OUT! Take thyself from my sight and never return!\"");
		UcSay;
		gflags[011E] = true;
		UI_remove_npc_face0_07();
		Func097F(0xFFE8, "@Never return!@", 0x0002);
		goto labelFunc0418_05F8;
	labelFunc0418_05BB:
		cmps("change subject");
		UcMessage("\"Certainly...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0418_05CB:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@I must be leaving...@", 0x0000);
		Func097F(0xFFE8, "@Farewell!@", 0x0002);
		Func08FF();
		goto labelFunc0418_05F8;
	labelFunc0418_05F5:
		goto labelFunc0418_01DE;
	labelFunc0418_05F8:
		end_conv();
	labelFunc0418_05F9:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0419 0x419 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0419_000F;
	Func0809();
	abrt();
	labelFunc0419_000F:
		var0000 = Func0954();
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0419_0052;
		UI_item_say_4D(0xFE9C, "@Excuse me...@");
		Func097F(0xFFE7, (("@At thy service, " + var0000) + "!@"), 0x0002);
		UI_set_schedule_type_25(0xFFE7, 0x0003);
	labelFunc0419_0052:
		if(!(event == 0x0000)) goto labelFunc0419_00DC;
		var0003 = UI_get_random_00(0x0006);
		if(!(var0003 == 0x0001)) goto labelFunc0419_0078;
		UI_item_say_4D(0xFFE7, "@Please leave...@");
	labelFunc0419_0078:
		if(!(var0003 == 0x0002)) goto labelFunc0419_008C;
		UI_item_say_4D(0xFFE7, "@Rangers!@");
	labelFunc0419_008C:
		if(!(var0003 == 0x0003)) goto labelFunc0419_00A0;
		UI_item_say_4D(0xFFE7, "@Leave!@");
	labelFunc0419_00A0:
		if(!(var0003 == 0x0004)) goto labelFunc0419_00B4;
		UI_item_say_4D(0xFFE7, "@Beware!@");
	labelFunc0419_00B4:
		if(!(var0003 == 0x0005)) goto labelFunc0419_00C8;
		UI_item_say_4D(0xFFE7, "@Do not touch that!@");
	labelFunc0419_00C8:
		if(!(var0003 == 0x0006)) goto labelFunc0419_00DC;
		UI_item_say_4D(0xFFE7, "@Go quickly!@");
	labelFunc0419_00DC:
		if(!(event == 0x0009)) goto labelFunc0419_02DA;
		UI_run_schedule_B7(0xFFE7);
		UI_clear_item_say_4E(0xFFE7);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		if(!(!gflags[00E9])) goto labelFunc0419_0150;
		if(!gflags[00D7]) goto labelFunc0419_0116;
		UcMessage("\"Again we meet, ");
		UcMessage(var0000);
		UcMessage(". My mistress hath dispatched me to see if thou hast yet read the scroll she sent?\"");
		UcSay;
		goto labelFunc0419_013D;
	labelFunc0419_0116:
		UcMessage("\"Pardon, ");
		UcMessage(var0000);
		UcMessage(". I bring thee greetings from my mistress, the sorceress Rotoluncia. This scroll is from her.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x02C3, 0x001F, 0x0006, 0x0012, true);
		gflags[00D7] = true;
	labelFunc0419_013D:
		UI_add_answer_0C(["Rotoluncia", "scroll", "servant"]);
		goto labelFunc0419_01C1;
	labelFunc0419_0150:
		var0005 = UI_get_object_position_20(item);
		if(!((var0005[0x0001] < 0x09C2) && ((var0005[0x0001] > 0x0992) && ((var0005[0x0002] < 0x0750) && (var0005[0x0002] > 0x0700))))) goto labelFunc0419_01AA;
		UcMessage("\"This is the manor of the Enchantress Rotoluncia! Thou canst not enter without permission!\"");
		UcSay;
		UI_add_answer_0C(["Rotoluncia"]);
		if(!gflags[00EA]) goto labelFunc0419_01A7;
		UI_add_answer_0C(["kidnap", "Where is she?"]);
	labelFunc0419_01A7:
		goto labelFunc0419_01C1;
	labelFunc0419_01AA:
		UcMessage("\"I must be about my duties.\"");
		UcSay;
		Func097F(item, "@Pardom me...@", 0x0000);
		UI_set_schedule_type_25(item, 0x000C);
		abrt();
	labelFunc0419_01C1:
		UI_add_answer_0C("bye");
	labelFunc0419_01C8:
		UcAsk;
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"My mistress commands many powerful and strange magics, and sits upon the Council of Mages.\"");
		UcSay;
		if(!(!gflags[00EA])) goto labelFunc0419_01EC;
		UcMessage("\"She is terrible to her enemies, but tolerant of those who aid her.\"");
		UcSay;
		goto labelFunc0419_01F0;
	labelFunc0419_01EC:
		UcMessage("\"As thou now knowest, she is most terrible to those who do not bend to her will.\"");
		UcSay;
	labelFunc0419_01F0:
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"I am forbidden to discuss this subject with thee!\"");
		UcSay;
		var0006 = true;
	labelFunc0419_0207:
		cmps("Where is she?");
		UI_remove_answer_0D("Where is she?");
		UcMessage("\"I must not tell! In fact, thou shouldst leave here at once.\"");
		UcSay;
		var0006 = true;
	labelFunc0419_021E:
		cmps("scroll");
		UcMessage("\"'Tis not an ordinary scroll, but one of the magical variety. I assure thee that it is entirely free of harmful magic.\"");
		UcSay;
		UI_remove_answer_0D("scroll");
	labelFunc0419_0231:
		cmps("servant");
		UcMessage("\"The Mages of Moonshade are quite powerful, and have found the way to acquire servants such as myself.\"");
		UcSay;
		UcMessage("\"My mistress says that automatons are more trustworthy, since we can neither be corrupted nor tortured.\"");
		UcSay;
		UI_remove_answer_0D("servant");
	labelFunc0419_0248:
		cmps("bye");
		if(!gflags[00EA]) goto labelFunc0419_025A;
		gflags[00EB] = true;
	labelFunc0419_025A:
		if(!((!gflags[00E9]) && (!gflags[00EA]))) goto labelFunc0419_0285;
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Good day.@", 0x0000);
		Func097F(0xFFE7, "@Do not forget the scroll.@", 0x0002);
		goto labelFunc0419_02D3;
	labelFunc0419_0285:
		if(!(gflags[00EA] && var0006)) goto labelFunc0419_02C5;
		UcMessage("\"Thou dost look at me oddly... I think I have said too much!\"");
		UcSay;
		UcMessage("\"Now I must kill thee...\"");
		UcSay;
		UI_set_alignment_4A(0xFFE7, 0x0003);
		Func097F(0xFFE7, "@Must kill!@", 0x0000);
		UI_set_schedule_type_25(0xFFE7, 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFFE7);
		abrt();
		goto labelFunc0419_02D3;
	labelFunc0419_02C5:
		UcMessage("\"If thou dost not leave quickly, I must call the Rangers!\"");
		UcSay;
		UI_set_schedule_type_25(0xFFE7, 0x0007);
	labelFunc0419_02D3:
		goto labelFunc0419_02D9;
	labelFunc0419_02D6:
		goto labelFunc0419_01C8;
	labelFunc0419_02D9:
		end_conv();
	labelFunc0419_02DA:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0419_0334;
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0419_031D;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Rotoluncia shall avenge my loss...\"");
		UcSay;
		gflags[00EB] = true;
		UI_set_alignment_4A(0xFFE1, 0x0003);
		UI_remove_npc_face0_07();
	labelFunc0419_031D:
		UI_clear_item_flag_A5(0xFFE7, 0x001D);
		UI_reduce_health_87(0xFFE7, 0x0037, 0x0000);
	labelFunc0419_0334:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);
extern Func084F 0x84F ();
extern Func08FF 0x8FF ();

Func041A 0x41A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0994();
	var0004 = Func097D(0xFE9B, 0x0001, 0x024B, 0x0000, 0x0005);
	var0005 = Func097D(0xFE9B, 0x0001, 0x031A, 0x0000, 0x0000);
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc041A_0066;
	var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc041A_0066:
		if(!((event == 0x0002) && ((var0003 == 0x0016) && (!gflags[0215])))) goto labelFunc041A_007F;
		event = 0x0009;
	labelFunc041A_007F:
		if(!(event == 0x0001)) goto labelFunc041A_0118;
		UI_item_say_4D(0xFE9C, "@Ho, mage!@");
		0xFFE6;
		calle();
		var0006 = UI_find_nearby_41(item, 0x0366, 0x0014, 0x0000);
		enum();
	labelFunc041A_00A9:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc041A_00C9);
		if(!(UI_get_item_quality_1C(var0009) == 0x00B5)) goto labelFunc041A_00C6;
		gflags[0215] = true;
	labelFunc041A_00C6:
		goto labelFunc041A_00A9;
	labelFunc041A_00C9:
		if(!((var0003 == 0x0016) && (!gflags[0215]))) goto labelFunc041A_0102;
		item;
		calle();
		Func097F(0xFFE6, "@Help!", 0x0002);
		var0006 = UI_delayed_execute_usecode_array_02(0xFFE6, [0x23, 0x55, 0x041A], 0x0007);
		goto labelFunc041A_0118;
	labelFunc041A_0102:
		Func097F(0xFFE6, "@What dost thou wish?@", 0x0005);
		UI_set_schedule_type_25(0xFFE6, 0x0003);
	labelFunc041A_0118:
		if(!(event == 0x0000)) goto labelFunc041A_024A;
		if(!((var0003 == 0x0016) && (!gflags[0215]))) goto labelFunc041A_01B4;
		var000A = UI_get_random_00(0x0006);
		if(!(var000A == 0x0001)) goto labelFunc041A_014D;
		UI_item_say_4D(0xFFE6, "@Another spell failed!@");
	labelFunc041A_014D:
		if(!(var000A == 0x0002)) goto labelFunc041A_0161;
		UI_item_say_4D(0xFFE6, "@Help! Someone help me!@");
	labelFunc041A_0161:
		if(!(var000A == 0x0003)) goto labelFunc041A_0175;
		UI_item_say_4D(0xFFE6, "@Lower the drawbridge!@");
	labelFunc041A_0175:
		if(!(var000A == 0x0004)) goto labelFunc041A_0189;
		UI_item_say_4D(0xFFE6, "@Release me, please!@");
	labelFunc041A_0189:
		if(!(var000A == 0x0005)) goto labelFunc041A_019D;
		UI_item_say_4D(0xFFE6, "@Why will my spells not work?@");
	labelFunc041A_019D:
		if(!(var000A == 0x0006)) goto labelFunc041A_01B1;
		UI_item_say_4D(0xFFE6, "@How did I arrive here?@");
	labelFunc041A_01B1:
		goto labelFunc041A_024A;
	labelFunc041A_01B4:
		var000A = UI_get_random_00(0x0006);
		if(!(var000A == 0x0001)) goto labelFunc041A_01D2;
		UI_item_say_4D(0xFFE6, "@How shall I return home?@");
	labelFunc041A_01D2:
		if(!(var000A == 0x0002)) goto labelFunc041A_01E6;
		UI_item_say_4D(0xFFE6, "@I am so lost...@");
	labelFunc041A_01E6:
		if(!(var000A == 0x0003)) goto labelFunc041A_01FA;
		UI_item_say_4D(0xFFE6, "@Where am I?@");
	labelFunc041A_01FA:
		if(!(var000A == 0x0004)) goto labelFunc041A_020E;
		UI_item_say_4D(0xFFE6, "@How did I arrive here?@");
	labelFunc041A_020E:
		if(!(var000A == 0x0005)) goto labelFunc041A_022C;
		UI_item_say_4D(0xFFE6, "@I am so cold...@");
		UI_set_schedule_type_25(0xFFE6, 0x0004);
	labelFunc041A_022C:
		if(!(var000A == 0x0006)) goto labelFunc041A_024A;
		UI_item_say_4D(0xFFE6, "@Perhaps this direction...@");
		UI_set_schedule_type_25(0xFFE6, 0x0001);
	labelFunc041A_024A:
		if(!(event == 0x0009)) goto labelFunc041A_0912;
		UI_clear_item_say_4E(0xFFE6);
		if(!UI_get_item_flag_A3(0xFFE6, 0x0006)) goto labelFunc041A_027A;
		UI_set_schedule_type_25(0xFFE6, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc041A_0281;
	labelFunc041A_027A:
		UI_run_schedule_B7(0xFFE6);
	labelFunc041A_0281:
		UI_show_npc_face0_05(0xFFE6, 0x0000);
		var000B = UI_get_item_flag_A3(0xFFE6, 0x001C);
		if(!((gflags[0215] == true) && (!gflags[0216]))) goto labelFunc041A_02D7;
		gflags[0216] = true;
		UcMessage("\"Many thanks, ");
		UcMessage(var0002);
		UcMessage(". Now I shall reward thee, as promised!\"");
		UcSay;
		UcMessage("\"I shall give thee a scroll, which contains the spell of Shade Summoning. Thou wouldst be wise to copy it to thy spellbook at the first opportunity.\"");
		UcSay;
		UcMessage("\"Here it is.\"");
		UcSay;
		var0006 = Func099B(0xFE9C, 0x0001, 0x02CB, 0x0026, 0x0000, 0x0000, true);
		goto labelFunc041A_0385;
	labelFunc041A_02D7:
		if(!((var0003 == 0x0016) && (!gflags[0215]))) goto labelFunc041A_0362;
		if(!(gflags[0214] == true)) goto labelFunc041A_032B;
		UcMessage("\"Thou hast returned! Wilt thou release me from this forsaken island?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041A_0305;
		UcMessage("\"Wonderful!\"");
		UcSay;
		UcMessage("\"Perhaps if thou dost search the building, thou wilt find a way to lower the drawbridge...\"");
		UcSay;
		goto labelFunc041A_0328;
	labelFunc041A_0305:
		UcMessage("\"Suit thyself...\"");
		UcSay;
		UcMessage("\"Perhaps I can find another way to escape before I starve to death.\"");
		UcSay;
		gflags[0214] = true;
		UI_set_schedule_type_25(0xFFE6, 0x0014);
		Func097F(0xFFE6, "@So cold...@", 0x0000);
		abrt();
	labelFunc041A_0328:
		goto labelFunc041A_0352;
	labelFunc041A_032B:
		if(!(var000B == false)) goto labelFunc041A_034A;
		UcMessage("\"Excuse me, ");
		UcMessage(var0000);
		UcMessage("! My name is Mortegro, mage of Moonshade.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE6, 0x001C);
		goto labelFunc041A_034E;
	labelFunc041A_034A:
		UcMessage("\"Avatar! I am glad to see thee!\"");
		UcSay;
	labelFunc041A_034E:
		UcMessage("\"I was caught in one of those bizarre storms, and seem to be trapped here on this island. If thou wouldst be so kind as to help me free of this place I would be willing to teach thee a spell or two... Or provide thee with a suitable spell scroll if thou art unable to handle spells of such a level.\"");
		UcSay;
	labelFunc041A_0352:
		UI_add_answer_0C(["trapped", "spell"]);
		goto labelFunc041A_0385;
	labelFunc041A_0362:
		if(!(var000B == false)) goto labelFunc041A_037B;
		UcMessage("\"Hello, there! I am Mortegro, the Necromage of Moonshade.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE6, 0x001C);
		goto labelFunc041A_0385;
	labelFunc041A_037B:
		UcMessage("\"Hello once again, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc041A_0385:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc041A_0397;
		UI_add_answer_0C("apparatus");
	labelFunc041A_0397:
		if(!(gflags[0114] && (!gflags[0293]))) goto labelFunc041A_03A9;
		UI_add_answer_0C("slippers");
	labelFunc041A_03A9:
		if(!(gflags[0117] && (!gflags[029B]))) goto labelFunc041A_03BB;
		UI_add_answer_0C("the bloody hand");
	labelFunc041A_03BB:
		if(!(var0003 == 0x000E)) goto labelFunc041A_03CC;
		UI_add_answer_0C("Moonshade");
	labelFunc041A_03CC:
		if(!gflags[0132]) goto labelFunc041A_03D9;
		UI_add_answer_0C("seance");
	labelFunc041A_03D9:
		if(!(gflags[013F] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc041A_03F2;
		UI_add_answer_0C("accuse");
	labelFunc041A_03F2:
		UI_add_answer_0C(["Necromage", "learn spells"]);
		UI_add_answer_0C("bye");
	labelFunc041A_0406:
		UcAsk;
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc041A_043A;
		UcMessage("\"It is some Mage's lab apparatus, ");
		UcMessage(var0000);
		UcMessage(". I regret that I cannot be of help to thee. It is not a design I recognize. Thou shalt have to ask another Mage.\"");
		UcSay;
		goto labelFunc041A_0444;
	labelFunc041A_043A:
		UcMessage("\"It sounds like it is some Mage's lab apparatus, ");
		UcMessage(var0000);
		UcMessage(". I regret that I cannot be of help to thee. It is not a design I recognize. Thou shalt have to ask another Mage.\"");
		UcSay;
	labelFunc041A_0444:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		if(!var0004) goto labelFunc041A_0460;
		UcMessage("\"Those slippers look most comfortable. They must belong in a place of comfort. The most comfortable place I know is the Inn of the Sleeping Bull. Perhaps that is where they are from.\"");
		UcSay;
		goto labelFunc041A_0464;
	labelFunc041A_0460:
		UcMessage("\"Perhaps if I could see the slippers I could tell thee more about them...\"");
		UcSay;
	labelFunc041A_0464:
		cmps("the bloody hand");
		UI_remove_answer_0D("the bloody hand");
		if(!var0005) goto labelFunc041A_0480;
		UcMessage("\"This is obviously the handiwork of a powerful mage. And there is only one who would produce something as vile as this. The Mad Mage! I can say no more of this.\"");
		UcSay;
		goto labelFunc041A_0484;
	labelFunc041A_0480:
		UcMessage("\"Art thou absolutely certain that this thing was a living severed hand? I doubt it is so. Perhaps if thou didst have it to show to me...\"");
		UcSay;
	labelFunc041A_0484:
		cmps("accuse");
		UI_remove_answer_0D("accuse");
		UcMessage("\"So! Thou dost suspect me of kidnapping thy friend!\"");
		UcSay;
		UcMessage("\"Mine interest lies with dead beings, not with living persons. I do not have thy friend, nor do I know who doth have him.\"");
		UcSay;
		UcMessage("\"Thine impudence is beyond belief! Always, 'tis the superstitious and the jealous who persecute the Necromancer...\"");
		UcSay;
		var000C = UI_get_object_position_20(0xFFE6);
		UI_sprite_effect_68(0x001A, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		UI_move_object_4B(0xFFE6, [0x046E, 0x0985, 0x0000]);
		var0006 = Func0992(0x0001, "@Where did he go?@", "@Shazzam!@", true);
		abrt();
	labelFunc041A_04F3:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UcMessage("\"But thou didst promise to bring me home to Moonshade! A promise is a promise, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041A_050C:
		cmps("Necromage");
		UI_remove_answer_0D("Necromage");
		UcMessage("\"Yes, that is a special sort of mage who specializes in magics that deal with dead things, as well as with the spirits of the dead themselves.\"");
		UcSay;
		UI_add_answer_0C(["dead things", "spirits of dead"]);
	labelFunc041A_052C:
		cmps("dead things");
		UI_remove_answer_0D("dead things");
		UcMessage("\"Actually, that is rather unpleasant work. A bit discourteous to talk about it in mixed company, if thou dost know what I mean.\"");
		UcSay;
	labelFunc041A_053F:
		cmps("spirits of dead");
		UI_remove_answer_0D("spirits of dead");
		UcMessage("\"Yes, as a Necromage I can commune with the spirits of the dead. I learn the secrets of the dead as well as the occasional portent of the future. But these seances are unpredictable in their results.\"");
		UcSay;
		if(!(!gflags[0132])) goto labelFunc041A_0564;
		gflags[0132] = true;
		UI_add_answer_0C("seance");
	labelFunc041A_0564:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"It is a city of Mages, run by Mages and that is the way we mages like it. We are even governed by our own Council of Mages, chaired by Filbercio, Gustacio and Rotoluncia.\"");
		UcSay;
		UI_add_answer_0C(["Filbercio", "Gustacio", "Rotoluncia"]);
	labelFunc041A_0587:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"He is the supreme MageLord of the city of Moonshade.\"");
		UcSay;
	labelFunc041A_059A:
		cmps("Gustacio");
		UI_remove_answer_0D("Gustacio");
		UcMessage("\"Gustacio and I are engaged in studies of the strange teleport storms that have been afflicting our land.\"");
		UcSay;
	labelFunc041A_05AD:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"She is a powerful mage. Her only real weakness is that she is most unpleasant when she is thwarted in her desires.\"");
		UcSay;
	labelFunc041A_05C0:
		cmps("seance");
		UI_remove_answer_0D("seance");
		if(!(UI_get_schedule_type_24(0xFFE6) == 0x0015)) goto labelFunc041A_06D1;
		if(!((UI_get_timer_7A(0x0006) < 0x000C) && gflags[0129])) goto labelFunc041A_05F6;
		UcMessage("\"Speaking with the spirits of the dead doth fatigue me. We must wait another day before I can muster the energies required.\"");
		UcSay;
		goto labelFunc041A_06CE;
	labelFunc041A_05F6:
		UI_set_timer_7B(0x0006);
		UI_play_music_39(0x0038, Func09A0(0x0005, 0x0001));
		UcMessage("\"It is time for the seance to begin. I have already prepared all of the elaborate reagents and incantations necessary to open my mind, as a portal through which the spirits of the dead may speak. What thou shalt see are not dreams or hallucinations, but actual ghosts who will join with us in communion. Do not be afraid.\"");
		UcSay;
		UcMessage("\"I summon you, ghosts! Come join us here and speak with us. Share with us thy visions of this world and the next.\"");
		UcSay;
		if(!(!gflags[0129])) goto labelFunc041A_0644;
		UI_show_npc_face1_06(0xFEEB, 0x0000);
		UcMessage("\"I have heard thy call, Mortegro! In life I was Christopher, blacksmith of Trinsic. My time here is short and I wish to have words with the one who is called the Avatar.\"");
		UcSay;
		UcMessage("\"Avatar, I thank thee for protecting my son and for breaking The Fellowship's evil grip over Britannia. But I also bring thee a warning. Many are the spirits in this realm who await thee, and there is but one thing on their mind -- to have their revenge against thee! There is one thing... that thou must... always... remember...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh! I have lost contact with the spirit! Forgive me, but with a contact that intense, the length of time that I can maintain is always shorter.\"");
		UcSay;
		gflags[0129] = true;
		goto labelFunc041A_06CE;
	labelFunc041A_0644:
		if(!(UI_npc_nearby_3A(Iolo) && (!gflags[0131]))) goto labelFunc041A_06A5;
		UI_show_npc_face1_06(0xFEEB, 0x0001);
		UcMessage("\"My darling husband, Iolo, although I am dead I must tell thee that my love for thee shall never die. Always remember me. Farewell.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I have lost the contact -- there are strange forces connected with this spirit!\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"No! It cannot be true! She cannot be dead! I refuse to believe it!\"");
		UcSay;
		var0006 = ("@Gwenno!@" & "@Come back to me!@");
		Func094F(Iolo, var0006);
		Func097F(0xFFE6, "@Spirits do not lie.@", 0x0005);
		gflags[0131] = true;
		abrt();
		goto labelFunc041A_06CE;
	labelFunc041A_06A5:
		UI_show_npc_face0_05(0xFFE6, 0x0000);
		UcMessage("\"Once again I call out to the spirit of Edrin, brother of Kane. If thou canst hear me, Edrin, please contact us. Thy brother Kane dost need to know if thou hast perished. Thou hast been missing for so long that even thy brother dost think that he shall never see thee again. If thou canst hear my words, please contact us.\"");
		UcSay;
		var000D = Func0992(0x0001, "@There seems to be no reply.@", "@There is no reply.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"This is a favorable sign for Kane. It may well mean that his brother is not in the realm of ghosts.\"");
		UcSay;
	labelFunc041A_06CE:
		goto labelFunc041A_06E2;
	labelFunc041A_06D1:
		if(!gflags[00E2]) goto labelFunc041A_06DE;
		UcMessage("\"Ahem, once I have gotten back to Moonshade I will be glad to oblige thee.\"");
		UcSay;
		goto labelFunc041A_06E2;
	labelFunc041A_06DE:
		UcMessage("\"I must first prepare the proper materials. Thou shouldst come to my manor after midnight, and we shall then conjure spectres.\"");
		UcSay;
	labelFunc041A_06E2:
		cmps("trapped");
		UI_remove_answer_0D("trapped");
		UcMessage("\"Well, I hesitate to admit that an Adept such as myself could be caught in such a manner... But none of my magics have worked to free me from this island.\"");
		UcSay;
		UI_add_answer_0C("magics");
	labelFunc041A_06FC:
		cmps("magics");
		UI_remove_answer_0D("magics");
		UcMessage("\"Although I am not an expert in it, I can do simple teleports and fetches. But nothing I have tried has worked. I think, perhaps, that this is a null magic area.\"");
		UcSay;
		UI_add_answer_0C("null magic area");
	labelFunc041A_0716:
		cmps("null magic area");
		UI_remove_answer_0D("null magic area");
		UcMessage("\"There are such areas where magic cannot be used. I think that this... place... may be one of them.\" *\"Or, perhaps, common magic --  if thou wilt -- cannot function here. Whatever the case, I cannot escape by magical means.\"");
		UcSay;
	labelFunc041A_0729:
		cmps("learn spells");
		UI_remove_answer_0D("learn spells");
		if(!(gflags[00E2] && (!gflags[0215]))) goto labelFunc041A_074A;
		UcMessage("\"How can I concentrate on teaching thee spells when I am freezing to death by the moment?\"");
		UcSay;
		goto labelFunc041A_0778;
	labelFunc041A_074A:
		if(!(gflags[0215] == true)) goto labelFunc041A_075C;
		UcMessage("\"As thou didst free me, I can offer my spells to thee at a discount. Say, perhaps half the normal price? Yes, that is what I will sell my spells for -- half cost!\"");
		UcSay;
		Func084F();
		goto labelFunc041A_0778;
	labelFunc041A_075C:
		if(!gflags[00DB]) goto labelFunc041A_076C;
		UcMessage("\"I can teach thee spells... for a fee.\"");
		UcSay;
		Func084F();
		goto labelFunc041A_0778;
	labelFunc041A_076C:
		UcMessage("\"Thou art not a Mage, so teaching thee spells would be a waste of both our times.\"");
		UcSay;
		UcMessage("\"If thou art serious about mastering magic, perhaps thou shouldst speak with Master Fedabiblio at the Seminarium.\"");
		UcSay;
		UcMessage("\"But I think thou art too old to learn spell-casting...\"");
		UcSay;
	labelFunc041A_0778:
		cmps("spell");
		UI_remove_answer_0D("spell");
		UcMessage("\"Thou canst consider me a Necromancer, although I do not reanimate the dead. Specifically, I seek information from the dead. Thou wouldst no doubt find the Summon Shade spell useful.\"");
		UcSay;
		UI_add_answer_0C(["information", "Summon Shade"]);
	labelFunc041A_0798:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"I am usually commissioned by one of the other mages when they are seeking lost information. I, myself, am not conducting any research at the moment. I was working with Gustacio on an experiment when I suddenly found myself here.\"");
		UcSay;
		UI_add_answer_0C("experiment");
	labelFunc041A_07B2:
		cmps("experiment");
		UI_remove_answer_0D("experiment");
		UcMessage("\"I allowed Gustacio to convince me to help him with his plan to divert the teleportation storms.\"");
		UcSay;
		UcMessage("\"Perhaps it was not the wisest of things to have done... As I am trapped here and have no idea how to return to Moonshade.\"");
		UcSay;
		UcMessage("\"I believe I exchanged places with an altar of some sort. I am sure it rather surprised old Gustacio when I disappeared. He is no doubt wondering about whatever is now in his work area.\"");
		UcSay;
		UI_add_answer_0C("altar");
	labelFunc041A_07D4:
		cmps("altar");
		UI_remove_answer_0D("altar");
		UcMessage("\"Yes, there are marks here on the island that suggest that something was here until recently.\"");
		UcSay;
		UcMessage("\"Given the architecture, this must be one of the old Serpent temples. So I assume that this may have been where the altar once stood.\"");
		UcSay;
	labelFunc041A_07EB:
		cmps("Summon Shade");
		UI_remove_answer_0D("Summon Shade");
		UcMessage("\"It is quite a handy spell, actually. It allows thee to question the shade of a dead person... As long as thou dost possess some item that the person had valued in life. Of course, it doth have its drawbacks...\"");
		UcSay;
		UI_add_answer_0C("drawbacks");
	labelFunc041A_0805:
		cmps("drawbacks");
		UI_remove_answer_0D("drawbacks");
		UcMessage("\"If thou dost summon a shade from its resting place without the appropriate item, the shade may well attack thee. And the spell doth use an inordinate amount of reagents... But thou dost learn such interesting things!\"");
		UcSay;
		UI_add_answer_0C("reagents");
	labelFunc041A_081F:
		cmps("reagents");
		UcMessage("\"It doth require Sulphurous Ash, Blood Moss, Mandrake Root, Nightshade and Spider's Silk. Quite costly, so thou shouldst use this spell sparingly. And remember that thou must have an item belonging to that person to call them forth.\"");
		UcSay;
		UI_remove_answer_0D("reagents");
	labelFunc041A_0832:
		cmps("bye");
		if(!(gflags[0216] && (!UI_get_item_flag_A3(0xFFE6, 0x0006)))) goto labelFunc041A_08B0;
		UcMessage("\"Wouldst thou allow me to accompany thee back to Moonshade? I am afraid that I do not know where I am.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) > 0x0004)) goto labelFunc041A_0872;
		var000D = Func0992(0x0001, "@We do not have room for another to travel with us, Avatar.@", 0x0000, false);
		goto labelFunc041A_0895;
	labelFunc041A_0872:
		if(!(Func0955() == true)) goto labelFunc041A_0895;
		UcMessage("\"I do not believe I could return home without thy guidance... For all that I am an Adept.\"");
		UcSay;
		UI_add_to_party_26(0xFFE6);
		Func097F(0xFFE6, "@Thank thee!@", 0x0000);
		abrt();
		goto labelFunc041A_08B0;
	labelFunc041A_0895:
		UcMessage("\"Well, perhaps I can find my way home on mine own... I am an Adept, after all.\"");
		UcSay;
		Func097F(0xFFE6, "@What lies this way?@", 0x0000);
		UI_set_schedule_type_25(0xFFE6, 0x000C);
		abrt();
	labelFunc041A_08B0:
		UI_remove_npc_face0_07();
		if(!((var0003 == 0x0016) && (!gflags[0215]))) goto labelFunc041A_08DE;
		Func097F(0xFE9C, "@Stay calm.@", 0x0000);
		Func097F(0xFFE6, "@Please help me!@", 0x0005);
		goto labelFunc041A_08FE;
	labelFunc041A_08DE:
		Func097F(0xFE9C, "@Thanks for thine help.@", 0x0000);
		Func097F(0xFFE6, (("@Fare thee well, " + var0000) + ".@"), 0x0005);
	labelFunc041A_08FE:
		if(!(Func0994() == 0x000E)) goto labelFunc041A_090B;
		Func08FF();
	labelFunc041A_090B:
		goto labelFunc041A_0911;
	labelFunc041A_090E:
		goto labelFunc041A_0406;
	labelFunc041A_0911:
		end_conv();
	labelFunc041A_0912:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08FF 0x8FF ();

Func041B 0x41B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc041B_0036;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc041B_0036:
		if(!(event == 0x0001)) goto labelFunc041B_0058;
		UI_item_say_4D(0xFE9C, "@Could we speak?@");
		0xFFE5;
		calle();
		UI_set_schedule_type_25(0xFFE5, 0x0003);
	labelFunc041B_0058:
		if(!(event == 0x0000)) goto labelFunc041B_020B;
		var0004 = UI_get_array_size_73(UI_find_nearby_41(0xFE9C, 0x020B, 0x0023, 0x0000));
		if(!(var0004 < 0x000A)) goto labelFunc041B_00F3;
		var0005 = 0x0000;
		var0006 = UI_get_random_00(0x0002);
	labelFunc041B_0091:
		if(!(var0005 < var0006)) goto labelFunc041B_00F3;
		var0005 = (var0005 + 0x0001);
		var0007 = UI_get_object_position_20(0xFFE5);
		var0008 = UI_create_new_object2_2D(0x020B, [(var0007[0x0001] - 0x0001), (var0007[0x0002] - 0x0001), var0007[0x0003]]);
		if(!var0008) goto labelFunc041B_00F0;
		UI_set_item_flag_A4(var0008, 0x0012);
		UI_set_schedule_type_25(var0008, 0x0009);
	labelFunc041B_00F0:
		goto labelFunc041B_0091;
	labelFunc041B_00F3:
		var0009 = UI_get_random_00(0x0006);
		if(!(var0004 > 0x0000)) goto labelFunc041B_0193;
		if(!(var0009 == 0x0001)) goto labelFunc041B_011B;
		UI_item_say_4D(0xFFE5, "@Nice rats.@");
	labelFunc041B_011B:
		if(!(var0009 == 0x0002)) goto labelFunc041B_012F;
		UI_item_say_4D(0xFFE5, "@Come to mother!@");
	labelFunc041B_012F:
		if(!(var0009 == 0x0003)) goto labelFunc041B_0143;
		UI_item_say_4D(0xFFE5, "@Cheese!@");
	labelFunc041B_0143:
		if(!(var0009 == 0x0004)) goto labelFunc041B_0157;
		UI_item_say_4D(0xFFE5, "@Here, rats!@");
	labelFunc041B_0157:
		if(!(var0009 == 0x0005)) goto labelFunc041B_016B;
		UI_item_say_4D(0xFFE5, "@Now, do not bite me!@");
	labelFunc041B_016B:
		if(!(var0009 == 0x0006)) goto labelFunc041B_0190;
		var000A = ["@I am very hungry...@", "@Hmmm...@", "@Do I smell baked fish?@", "@Petra is a marvelous chef...@"];
		Func094F(0xFFE5, var000A);
	labelFunc041B_0190:
		goto labelFunc041B_020B;
	labelFunc041B_0193:
		if(!(var0009 == 0x0001)) goto labelFunc041B_01A7;
		UI_item_say_4D(0xFFE5, "@Where are they?@");
	labelFunc041B_01A7:
		if(!(var0009 == 0x0002)) goto labelFunc041B_01BB;
		UI_item_say_4D(0xFFE5, "@I've lost my rats.@");
	labelFunc041B_01BB:
		if(!(var0009 == 0x0003)) goto labelFunc041B_01CF;
		UI_item_say_4D(0xFFE5, "@Do not bother me.@");
	labelFunc041B_01CF:
		if(!(var0009 == 0x0004)) goto labelFunc041B_01E3;
		UI_item_say_4D(0xFFE5, "@Stay away!@");
	labelFunc041B_01E3:
		if(!(var0009 == 0x0005)) goto labelFunc041B_01F7;
		UI_item_say_4D(0xFFE5, "@Death to cats!@");
	labelFunc041B_01F7:
		if(!(var0009 == 0x0006)) goto labelFunc041B_020B;
		UI_item_say_4D(0xFFE5, "@Where am I?@");
	labelFunc041B_020B:
		if(!(event == 0x0009)) goto labelFunc041B_06C5;
		UI_run_schedule_B7(0xFFE5);
		UI_clear_item_say_4E(0xFFE5);
		UI_show_npc_face0_05(0xFFE5, 0x0000);
		var000B = UI_get_item_flag_A3(0xFFE5, 0x001C);
		if(!(var000B == false)) goto labelFunc041B_0251;
		UI_set_item_flag_A4(0xFFE5, 0x001C);
		UcMessage("\"So what'rt thou looking at, eh?\"");
		UcSay;
		goto labelFunc041B_0285;
	labelFunc041B_0251:
		if(!gflags[00EF]) goto labelFunc041B_0281;
		if(!Func097D(0xFE9B, 0x0001, 0x0179, 0xFE99, 0x000D)) goto labelFunc041B_027A;
		UcMessage("\"I smell something... thou hast some fish! Thou hast brought it for me! Oh, I do so love a good fish.\"");
		UcSay;
		UI_add_answer_0C("give fish");
		goto labelFunc041B_027E;
	labelFunc041B_027A:
		UcMessage("\"Oh, it is my friend! Hast thou brought me something? No, I suppose not...\"");
		UcSay;
	labelFunc041B_027E:
		goto labelFunc041B_0285;
	labelFunc041B_0281:
		UcMessage("\"Why dost thou not leave me alone?\"");
		UcSay;
	labelFunc041B_0285:
		UI_add_answer_0C("name");
		if(!(gflags[00EE] && (!gflags[00EF]))) goto labelFunc041B_029E;
		UI_add_answer_0C("Columna");
	labelFunc041B_029E:
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc041B_02B0;
		UI_add_answer_0C("slippers");
	labelFunc041B_02B0:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc041B_02C9;
		UI_add_answer_0C("kidnap");
	labelFunc041B_02C9:
		UI_add_answer_0C(["bye"]);
	labelFunc041B_02D3:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Well, do not stare at me like that. I be innocent. They've never convicted me of any crimes...\"");
		UcSay;
		Func097F(0xFFE5, "@Leave me alone!@", 0x0000);
		abrt();
	labelFunc041B_02F6:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"What's it to ye? Some call me the Rat Woman, but I'll have ye know that my rightful name is Mosh.\"");
		UcSay;
		UI_add_answer_0C(["Rat Woman", "Mosh"]);
	labelFunc041B_0316:
		cmps("Mosh");
		UI_remove_answer_0D("Mosh");
		UcMessage("\"Aye, Mosh...\"");
		UcSay;
		if(!gflags[00EF]) goto labelFunc041B_033D;
		UcMessage("\"..and I am linked by fate to Columna, the Green Enchantress! She is my very own sister.\"");
		UcSay;
		UI_add_answer_0C("sister");
		goto labelFunc041B_0341;
	labelFunc041B_033D:
		UcMessage("\"Would that thou wert to believe me, I could tell thee a story! 'Tis done... though not forgotten. I will not talk of it now.\"");
		UcSay;
	labelFunc041B_0341:
		cmps("sister");
		UI_remove_answer_0D("sister");
		UcMessage("\"I tell thee that I have a twin. She is Columna! Yet wert thou to see us together, any similarity would be gone.\"");
		UcSay;
		UcMessage("\"It is she who possesses the youth and beauty I held dear not long ago. But ask whether love passes between us and I will tell thee nay.\"");
		UcSay;
	labelFunc041B_0358:
		cmps("Rat Woman");
		UI_remove_answer_0D("Rat Woman");
		UcMessage("\"Snigger not at me! I have company enough -- more guests in mine house than thou couldst have in thine.\"");
		UcSay;
		UcMessage("\"I was a powerful enchantress, in my prime. Before I was cheated of my powers.\"");
		UcSay;
		UI_add_answer_0C(["company", "house", "enchantress", "magic", "cheated"]);
	labelFunc041B_0385:
		cmps("house");
		UI_remove_answer_0D("house");
		UcMessage("\"'Tis not a bad place to live.\"");
		UcSay;
		var000C = Func0992(0x0001, "@The sewers not bad? Art thou daft?@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc041B_03C0;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Scowl not at Mosh. Thou knowest nothing of what thou sayest. Each one of us makes of life what we can, whether by fate or the treachery of others. Dost thou see me judging ye?\"");
		UcSay;
		goto labelFunc041B_03C4;
	labelFunc041B_03C0:
		UcMessage("\"Each one of us makes of life what we can, whether by fate or the treachery of others. Dost thou see me judging ye?\"");
		UcSay;
	labelFunc041B_03C4:
		cmps("company");
		UI_remove_answer_0D("company");
		UcMessage("\"The rats are my friends. Dost thou not like my companions?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041B_03E4;
		UcMessage("\"Good! Then with time, perhaps, we could learn to like thee.\"");
		UcSay;
		goto labelFunc041B_03FF;
	labelFunc041B_03E4:
		UcMessage("\"Then I do not like thee!\"");
		UcSay;
		Func097F(0xFFE5, "@Away from me!@", 0x0000);
		UI_set_schedule_type_25(0xFFE5, 0x0014);
		abrt();
	labelFunc041B_03FF:
		cmps("enchantress");
		UI_remove_answer_0D("enchantress");
		UcMessage("\"I was once a beautiful young woman, and not so many years ago as thou mightest believe! There was a young mage who wanted mine hand -- \"");
		UcSay;
		UcMessage("\"Trulacci, whose ill-fated son now languishes in the depths of the Mountains of Freedom.\"");
		UcSay;
		if(!gflags[00EF]) goto labelFunc041B_0423;
		UcMessage("\"It was Columna who stole him from my love, by using her magics on him. Yet she never loved him... he was simply a toy to her.\"");
		UcSay;
		goto labelFunc041B_0431;
	labelFunc041B_0423:
		UcMessage("\"But another stole Trulacci's heart from me, and I shall never forgive her for that!\"");
		UcSay;
		UI_add_answer_0C(["another"]);
	labelFunc041B_0431:
		UI_add_answer_0C(["Trulacci"]);
	labelFunc041B_043B:
		cmps("Trulacci");
		UI_remove_answer_0D("Trulacci");
		UcMessage("\"Where hath he gone? Bah, I know not. Nor, for that matter, do I care!\"");
		UcSay;
		var000C = Func0992(Iolo, "@Ah, but I can see that thou dost still care, madam.@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc041B_0473;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Rubbish! 'Tis long gone, and I am an old woman now.\"");
		UcSay;
	labelFunc041B_0473:
		cmps("magic");
		UI_remove_answer_0D("magic");
		if(!gflags[00EF]) goto labelFunc041B_048F;
		UcMessage("\"Let me be honest with thee. My powers have dwindled to nothingness. I can teach thee no spell worth knowing!\"");
		UcSay;
		goto labelFunc041B_0535;
	labelFunc041B_048F:
		UcMessage("\"My spells are not for sale, not to the likes of such as thyself. But assume not that all my powers have left me, for some still remain.\"");
		UcSay;
		UcMessage("\"I have no need for others, when I can create mine own friends.\"");
		UcSay;
		Func097F(0xFFE5, "@See for thyself!@", 0x0000);
		var000D = UI_get_object_position_20(0xFFE5);
		var000D[0x0001] = (var000D[0x0001] + 0x0002);
		var000D[0x0002] = (var000D[0x0002] - 0x0002);
		var0008 = UI_create_new_object2_2D(0x020B, var000D);
		if(!var0008) goto labelFunc041B_0515;
		UI_obj_sprite_effect_91(var0008, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(var0008, 0x0009);
		Func097F(var0008, "@Eek!@", 0x0005);
		goto labelFunc041B_0534;
	labelFunc041B_0515:
		UI_sprite_effect_68(0x0015, var000D[0x0001], var000D[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc041B_0534:
		abrt();
	labelFunc041B_0535:
		cmps("cheated");
		UI_remove_answer_0D("cheated");
		if(!gflags[00EF]) goto labelFunc041B_055D;
		UcMessage("\"Cheated, and by mine own sister, wouldst thou believe it!\"");
		UcSay;
		UcMessage("\"Yet it is as nothing compared to the greater swindles which she practices. She doth conspire against Nature itself, didst thou know?\"");
		UcSay;
		UcMessage("\"She doth possess a Magic Comb, stolen from the City of Beauty. 'Tis an enchanted object which she used to make herself appear young and beautiful.\"");
		UcSay;
		UcMessage("\"Without it, she would be exactly like me! I know not where she keeps it. But I am certain it is in a well hidden spot.\"");
		UcSay;
		goto labelFunc041B_0561;
	labelFunc041B_055D:
		UcMessage("\"I will not speak of that now, but suffice it to say that she who looks like me deep inside hath taken from me all that should be mine!\"");
		UcSay;
	labelFunc041B_0561:
		cmps("another");
		UI_remove_answer_0D("another");
		UcMessage("\"Thou shouldst speak to she who hath done me wrong: The Sorceress Columna, whom they sometimes call the Green Sorceress.\"");
		UcSay;
		UcMessage("\"Listen to what she says!\"");
		UcSay;
		UI_add_answer_0C("the Green Sorceress");
		gflags[00DF] = true;
	labelFunc041B_0583:
		cmps("the Green Sorceress");
		UI_remove_answer_0D("the Green Sorceress");
		UcMessage("\"The rumors say that her name stems from her attire, but I know the truth. 'Tis the very envy she doth have for me that hath spawned her title.\"");
		UcSay;
	labelFunc041B_0596:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"So thou hast spoken to that hag! Tell me now -- dost thou believe me, or she?\"");
		UcSay;
		var000E = Func0956(["believe Columna", "believe Mosh"]);
		if(!(var000E == "believe Columna")) goto labelFunc041B_05DD;
		UcMessage("\"Thou art worthless.\"");
		UcSay;
		Func097F(0xFFE5, "@Come, rats!@", 0x0000);
		UI_set_schedule_type_25(0xFFE5, 0x0014);
		abrt();
	labelFunc041B_05DD:
		UcMessage("\"Thou dost truly believe me now... ah, I see that thou dost. Thou art truly one I can say is my friend.\"");
		UcSay;
		gflags[00EF] = true;
		if(!Func097D(0xFE9B, 0x0001, 0x0179, 0xFE99, 0x000D)) goto labelFunc041B_0608;
		UcMessage("\"I smell something... thou hast some fish! Oh, I do so love a good fish.\"");
		UcSay;
		UI_add_answer_0C("give fish");
		goto labelFunc041B_0610;
	labelFunc041B_0608:
		UcMessage("\"If thou art ever in need, come to me. I shall give thee anything I possess. Thou dost see, I have a good heart.\"");
		UcSay;
		UcMessage("\"And if thou dost ever have something that I could use, please bring it. Nothing large. Perhaps a morsel of food.\"");
		UcSay;
	labelFunc041B_0610:
		cmps("give fish");
		UI_remove_answer_0D("give fish");
		var0003 = UI_remove_party_items_34(0x0001, 0x0179, 0xFE99, 0x000D, 0x0012);
		if(!gflags[00E1]) goto labelFunc041B_0642;
		UcMessage("\"I thank ye for thy fish, as I do love it!\"");
		UcSay;
		goto labelFunc041B_0657;
	labelFunc041B_0642:
		UcMessage("\"I thank ye, ");
		UcMessage(var0000);
		UcMessage(". Thou art indeed a kind one. I knew the moment I saw ye I could call ye friend.\"");
		UcSay;
		UcMessage("\"And know that my little ones call ye friend as well, as do their larger cousins.\"");
		UcSay;
		UI_add_answer_0C("larger cousins");
	labelFunc041B_0657:
		cmps("larger cousins");
		UI_remove_answer_0D("larger cousins");
		UcMessage("\"Aye, my friend. Beneath the very ground upon which thou dost walk rest many twisting tunnels. They are known as the catacombs, and the lovelies who call them home are the ratmen.\"");
		UcSay;
		UcMessage("\"But how will they recognize ye as my friend? I know! I will give ye mine harp. Shouldst thou ever find thyself in the complex below, strum it for them.\"");
		UcSay;
		UcMessage("\"The sweet tunes from mine instrument will pacify them, for in younger days I did play it for them as they laid themselves down to sleep. Here, please take this for thy kindness.\"");
		UcSay;
		var0003 = Func099B(0xFE9C, 0x0001, 0x01FA, 0xFE99, 0xFE99, 0x0000, true);
		gflags[00E1] = true;
	labelFunc041B_068F:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thanks for thine help.@", 0x0000);
		Func097F(0xFFE5, (("@Fare thee well, " + var0000) + ".@"), 0x0005);
		Func08FF();
		goto labelFunc041B_06C4;
	labelFunc041B_06C1:
		goto labelFunc041B_02D3;
	labelFunc041B_06C4:
		end_conv();
	labelFunc041B_06C5:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0976 0x976 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern var Func0994 0x994 ();
extern var Func0955 0x955 ();
extern Func0852 0x852 ();
extern Func0853 0x853 ();
extern Func0851 0x851 ();
extern var Func09B3 0x9B3 (var var0000);
extern Func09B4 0x9B4 (var var0000);
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func08FF 0x8FF ();

Func041C 0x41C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_object_position_20(0xFFE4);
	if(!((var0003[0x0001] < 0x08DF) && ((var0003[0x0001] > 0x0890) && ((var0003[0x0002] < 0x072F) && (var0003[0x0002] > 0x0700))))) goto labelFunc041C_004F;
	var0004 = true;
	labelFunc041C_004F:
		var0005 = false;
		var0006 = UI_part_of_day_48();
		if(!((var0006 > 0x0001) || (var0006 < 0x0006))) goto labelFunc041C_0075;
		var0006 = "day";
		goto labelFunc041C_007B;
	labelFunc041C_0075:
		var0006 = "evening";
	labelFunc041C_007B:
		if(!(event == 0x0007)) goto labelFunc041C_00B5;
		if(!UI_get_item_flag_A3(0xFFE4, 0x001D)) goto labelFunc041C_00B5;
		Func0976(0xFFE4, 0x0005);
		UI_clear_item_flag_A5(0xFFE4, 0x001D);
		var0003 = UI_execute_usecode_array_01(0xFFE4, [0x55, 0x070A]);
	labelFunc041C_00B5:
		if(!(event == 0x0001)) goto labelFunc041C_00EB;
		UI_item_say_4D(0xFE9C, "@Hello, there.@");
		0xFFE4;
		calle();
		Func097F(0xFFE4, (("@Greetings, " + var0000) + ".@"), 0x0002);
		UI_set_schedule_type_25(0xFFE4, 0x0003);
	labelFunc041C_00EB:
		if(!(event == 0x0000)) goto labelFunc041C_0197;
		var0007 = UI_get_random_00(0x0006);
		if(!(var0007 == 0x0001)) goto labelFunc041C_0111;
		UI_item_say_4D(0xFFE4, "@Art thou thirsty?@");
	labelFunc041C_0111:
		if(!(var0007 == 0x0002)) goto labelFunc041C_0125;
		UI_item_say_4D(0xFFE4, "@Ale! Wine!@");
	labelFunc041C_0125:
		if(!(var0007 == 0x0003)) goto labelFunc041C_0139;
		UI_item_say_4D(0xFFE4, "@Welcome!@");
	labelFunc041C_0139:
		if(!(var0007 == 0x0004)) goto labelFunc041C_014D;
		UI_item_say_4D(0xFFE4, "@Want a room?@");
	labelFunc041C_014D:
		if(!(var0007 == 0x0005)) goto labelFunc041C_0183;
		if(!Func0942(0xFFE2)) goto labelFunc041C_0179;
		UI_item_say_4D(0xFFE4, "@Rocco!@");
		Func097F(0xFFE2, "@In a minute...@", 0x0002);
		goto labelFunc041C_0183;
	labelFunc041C_0179:
		UI_item_say_4D(0xFFE4, "@Work, work, work...@");
	labelFunc041C_0183:
		if(!(var0007 == 0x0006)) goto labelFunc041C_0197;
		UI_item_say_4D(0xFFE4, "@Baked fish!@");
	labelFunc041C_0197:
		if(!(event == 0x0008)) goto labelFunc041C_01DC;
		if(!gflags[0228]) goto labelFunc041C_01D2;
		var0003 = UI_set_npc_prop_29(0xFE9C, 0x000A, 0x0000);
		UI_set_polymorph_B3(0xFFE4, 0x02D1);
		var0003 = UI_set_npc_prop_29(0xFE9C, 0x000A, 0x0001);
		goto labelFunc041C_01DC;
	labelFunc041C_01D2:
		UI_set_polymorph_B3(0xFFE4, 0x02D1);
	labelFunc041C_01DC:
		if(!(event == 0x000A)) goto labelFunc041C_01EE;
		UI_item_say_4D(0xFFE4, "@I'm ready.@");
	labelFunc041C_01EE:
		if(!(event == 0x0009)) goto labelFunc041C_08BF;
		if(!UI_get_item_flag_A3(0xFFE4, 0x0006)) goto labelFunc041C_0217;
		UI_set_schedule_type_25(0xFFE4, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc041C_0232;
	labelFunc041C_0217:
		UI_run_schedule_B7(0xFFE4);
		UI_clear_item_say_4E(0xFFE4);
		if(!gflags[0015]) goto labelFunc041C_0232;
		UI_add_answer_0C("belongings");
	labelFunc041C_0232:
		UI_show_npc_face0_05(0xFFE4, 0x0000);
		var0008 = UI_get_item_flag_A3(0xFFE4, 0x001C);
		if(!((var0008 == false) && (!gflags[0004]))) goto labelFunc041C_0274;
		UI_set_item_flag_A4(0xFFE4, 0x001C);
		UcMessage("\"This is the Blue Boar Inn, and I am the barmaid. My name is Petra.\"");
		UcSay;
		UI_add_answer_0C(["Blue Boar Inn", "barmaid"]);
		goto labelFunc041C_02DD;
	labelFunc041C_0274:
		if(!gflags[0004]) goto labelFunc041C_02C6;
		if(!(!gflags[0139])) goto labelFunc041C_0296;
		UcMessage("\"Mine existence is pointless now, ");
		UcMessage(var0000);
		UcMessage(". Rocco -- my love -- is dead, and the Blue Boar destroyed.\"");
		UcSay;
		UcMessage("\"I am only an automaton, with no hope that any soul I may have will join Rocco in the world beyond this one. There is nothing left for me.\"");
		UcSay;
		gflags[0139] = true;
		goto labelFunc041C_02C3;
	labelFunc041C_0296:
		if(!(UI_get_item_flag_A3(0xFFE4, 0x0006) || (!(Func0994() == 0x000E)))) goto labelFunc041C_02B9;
		UcMessage("\"Glad to talk to thee again, ");
		UcMessage(var0002);
		UcMessage(". I only wish I could be of more help to thee. I am merely an automaton...\"");
		UcSay;
		goto labelFunc041C_02C3;
	labelFunc041C_02B9:
		UcMessage("\"Aiding thee is mine only solace. How may I be of service, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc041C_02C3:
		goto labelFunc041C_02DD;
	labelFunc041C_02C6:
		if(!var0004) goto labelFunc041C_02D9;
		UcMessage("\"Can I bring thee anything, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		goto labelFunc041C_02DD;
	labelFunc041C_02D9:
		UcMessage("\"Is this not a nice day?\"");
		UcSay;
	labelFunc041C_02DD:
		if(!(gflags[0226] && (!UI_get_item_flag_A3(0xFFE4, 0x0006)))) goto labelFunc041C_02F6;
		UI_add_answer_0C("acid");
	labelFunc041C_02F6:
		if(!(gflags[0227] && ((Func0994() == 0x0011) && (!UI_get_item_flag_A3(0xFE9C, 0x0023))))) goto labelFunc041C_034A;
		var0009 = UI_find_nearby_41(0xFE9C, 0x0314, 0x000F, 0x0000);
		enum();
	labelFunc041C_0324:
		for (var000C in var0009 with var000A to var000B atend labelFunc041C_034A);
		if(!(UI_get_item_quality_1C(var000C) == 0x003D)) goto labelFunc041C_0347;
		UI_add_answer_0C("switch bodies");
		goto labelFunc041C_034A;
	labelFunc041C_0347:
		goto labelFunc041C_0324;
	labelFunc041C_034A:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc041C_0363;
		UI_add_answer_0C("kidnap");
	labelFunc041C_0363:
		if(!(var0004 && (!UI_get_item_flag_A3(0xFFE4, 0x0006)))) goto labelFunc041C_0385;
		UI_add_answer_0C(["food", "drink", "room"]);
	labelFunc041C_0385:
		UI_add_answer_0C(["bye"]);
	labelFunc041C_038F:
		UcAsk;
		cmps("food");
		UcMessage("\"We have a fine selection of meals available for thee to choose from. Art thou hungry, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041C_03B2;
		Func0852();
		goto labelFunc041C_03BC;
	labelFunc041C_03B2:
		UcMessage("\"Summon me if thou dost change thy mind, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041C_03BC:
		cmps("drink");
		UcMessage("\"I think thou wilt like our selection of potables, ");
		UcMessage(var0000);
		UcMessage(". Dost thou wish a drink?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041C_03DC;
		Func0853();
		goto labelFunc041C_03E6;
	labelFunc041C_03DC:
		UcMessage("\"Perhaps later, then, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041C_03E6:
		cmps("room");
		Func0851();
	labelFunc041C_03F1:
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Oh, this is horrible! Though I am but a woman of metal, I have a heart that feels pain for thee.\"");
		UcSay;
		UcMessage("\"Thou shouldst go quickly to Julia -- the Rangers can solve crimes such as this!\"");
		UcSay;
	labelFunc041C_0408:
		cmps("leave");
		UI_remove_answer_0D("leave");
		if(!gflags[0220]) goto labelFunc041C_0424;
		UcMessage("\"I will do so with haste. I have duties which need attending.\"");
		UcSay;
		goto labelFunc041C_042E;
	labelFunc041C_0424:
		UcMessage("\"As thou wishest, ");
		UcMessage(var0000);
		UcMessage("... If thou hast further need of me, thou hast but to ask.\"");
		UcSay;
	labelFunc041C_042E:
		UI_remove_from_party_27(0xFFE4);
		if(!UI_get_cont_items_33(0xFFE4, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc041C_04C2;
		UcMessage("\"Dost thou wish thy belongings returned to thee?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041C_04BA;
		UcMessage("\"Here they are.\"");
		UcSay;
		gflags[0015] = false;
		var0003 = Func09B3(0xFFE4);
		if(!(var0003[0x0001] != 0x0000)) goto labelFunc041C_0497;
		UcMessage("\"Thy companions carry some of thine inventory.\"");
		UcSay;
		if(!(var0003[0x0002] > 0x0000)) goto labelFunc041C_0494;
		var0003 = var0003[0x0002];
		UcMessage("\"I also had to place ");
		UcMessage(var0003);
		UcMessage(" items of thine upon the ground.\"");
		UcSay;
	labelFunc041C_0494:
		goto labelFunc041C_04B7;
	labelFunc041C_0497:
		if(!(var0003[0x0002] > 0x0000)) goto labelFunc041C_04B7;
		var0003 = var0003[0x0002];
		UcMessage("\"I had to place ");
		UcMessage(var0003);
		UcMessage(" items of thine on the ground.\"");
		UcSay;
	labelFunc041C_04B7:
		goto labelFunc041C_04C2;
	labelFunc041C_04BA:
		gflags[0015] = true;
		UcMessage("\"Then I will keep thine inventory for thee. Find me if thou changest thy mind.\"");
		UcSay;
	labelFunc041C_04C2:
		Func09B4(0xFFE4);
	labelFunc041C_04C8:
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		UcMessage("\"Thou hast returned for thy belongings. Dost thou want them now?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041C_0549;
		UcMessage("\"Here they are.\"");
		UcSay;
		gflags[0015] = false;
		var0003 = Func09B3(0xFFE4);
		if(!(var0003[0x0001] != 0x0000)) goto labelFunc041C_0526;
		UcMessage("\"Thy companions carry some of thine inventory.\"");
		UcSay;
		if(!(var0003[0x0002] > 0x0000)) goto labelFunc041C_0523;
		var0003 = var0003[0x0002];
		UcMessage("\"I also had to place ");
		UcMessage(var0003);
		UcMessage(" items of thine upon the ground.\"");
		UcSay;
	labelFunc041C_0523:
		goto labelFunc041C_0546;
	labelFunc041C_0526:
		if(!(var0003[0x0002] > 0x0000)) goto labelFunc041C_0546;
		var0003 = var0003[0x0002];
		UcMessage("\"I had to place ");
		UcMessage(var0003);
		UcMessage(" items of thine on the ground.\"");
		UcSay;
	labelFunc041C_0546:
		goto labelFunc041C_0551;
	labelFunc041C_0549:
		gflags[0015] = true;
		UcMessage("\"Then I will continue to keep thine inventory for thee. Find me if thou dost truly want them returned.\"");
		UcSay;
	labelFunc041C_0551:
		cmps("Blue Boar Inn");
		UI_remove_answer_0D("Blue Boar Inn");
		UcMessage("\"The finest eating and drinking establishment in all Moonshade! Run by the finest man in all Moonshade...\"");
		UcSay;
		if(!(Func0942(0xFFE2) == true)) goto labelFunc041C_058C;
		UI_show_npc_face1_06(0xFFE2, 0x0000);
		UcMessage("\"What madness art thou saying, Petra?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"It is not madness, Rocco. I am proud of thee...\"");
		UcSay;
	labelFunc041C_058C:
		UcMessage("\"Rocco, the innkeeper. A finer man thou shalt not find.\"");
		UcSay;
		UI_add_answer_0C(["Rocco"]);
	labelFunc041C_059A:
		cmps("Rocco");
		UI_remove_answer_0D("Rocco");
		UcMessage("\"Thou mayest find Rocco a bit gruff, but he doth have a good heart. After all, he alone hath stood between Torrissio and me... At great peril to himself, I might add.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Torrissio", "peril", "change subject"]);
	labelFunc041C_05C1:
		cmps("change subject");
		UcMessage("\"Oh, of course! I did not mean to bore thee...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc041C_05D1:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Thou canst not have failed to notice that I am an automaton. Torrissio is my maker... Curse his black heart!\"");
		UcSay;
		UcMessage("\"Torrissio is a man who feeds off the misery of others. He created me with the sole intent of having a captive to torment for the rest of his life.\"");
		UcSay;
		UcMessage("\"But I escaped and Rocco took me in.\"");
		UcSay;
		UI_add_answer_0C("automaton");
	labelFunc041C_05F3:
		cmps("automaton");
		UI_remove_answer_0D("automaton");
		UcMessage("\"I am a magical construct. An animated body of metal.\"");
		UcSay;
		UcMessage("\"Yet I can think. I can reason. And I believe I can care for others.\"");
		UcSay;
		UcMessage("\"Whether this means that I have a soul locked away within the confines of mine hollow body, I do not know. All I do know is that I am much more complex than the automatons Torrissio normally makes for the other Mages.\"");
		UcSay;
		UI_add_answer_0C(["soul", "other Mages"]);
	labelFunc041C_061B:
		cmps("soul");
		UI_remove_answer_0D("soul");
		UcMessage("\"If thou dost love, if thou hast compassion for others, if thou dost feel the injustice of the world, art thou not said to possess a soul?\"");
		UcSay;
		UcMessage("\"If I have all these things, can I not say that I, too, have a soul?\"");
		UcSay;
		UcMessage("\"In this I am unique, for none of the other automatons claim to feel emotions as I do. But I do not know why I should be different.\"");
		UcSay;
	labelFunc041C_0636:
		cmps("other Mages");
		UI_remove_answer_0D("other Mages");
		UcMessage("\"Most Mages do not wish to be disturbed by the presence of other living beings. Therefore they come to Torrissio to provide them with servants and guards of undemanding metal.\"");
		UcSay;
		UcMessage("\"However, the magic did not originate with Torrissio --\"");
		UcSay;
		UcMessage("he is merely the latest master of the ancient spells which he did find in certain buried ruins. It is said that automatons served those who dwelt in this land anciently.\"");
		UcSay;
		UcMessage("\"Even with all his magic, Torrissio cannot construct new automatons --\"");
		UcSay;
		UcMessage("he can merely reanimate those broken automatons which are discovered in the ruins.\"");
		UcSay;
		UcMessage("\"What better servants to have? Automatons can exist for centuries without any maintenance at all.\"");
		UcSay;
		UcMessage("\"They ask nothing. They expect nothing. They do what task is assigned to them until their magic at last fails, and then they simply stop.\"");
		UcSay;
	labelFunc041C_0661:
		cmps("peril");
		UI_remove_answer_0D("peril");
		UcMessage("\"Oh, ");
		UcMessage(var0000);
		UcMessage("! Thou canst not know what danger there is in thwarting the will of a Mage!\"");
		UcSay;
		UcMessage("\"Rocco could be killed easily, and spells are untraceable. Or he could be spirited away to hideous torture. No one would be the wiser.\"");
		UcSay;
		UcMessage("\"So I look after him as best I can, even as he doth care for me. It also helps that everyone believes the tale we have spread.\"");
		UcSay;
		UI_add_answer_0C("tale");
	labelFunc041C_0689:
		cmps("tale");
		UI_remove_answer_0D("tale");
		UcMessage("\"Rocco hath led everyone to believe that he and Torrissio reached an agreement to have me work here to advertise Torrissio's skill.\"");
		UcSay;
		UcMessage("\"In truth, my cooking ability doth do Torrissio no small credit. And I dare say that it wins him many customers as well.\"");
		UcSay;
		UcMessage("\"But he is still a willful, vicious man who doth not take it kindly when he feels cheated. And I fear his vengeance, for both myself and Rocco.\"");
		UcSay;
	labelFunc041C_06A4:
		cmps("barmaid");
		UI_remove_answer_0D("barmaid");
		UcMessage("\"I serve Rocco in whatever function I can... Barmaid, cook, whatever needs to be done. I have performed every job thou canst imagine here at the inn. Everything from painting the ceiling to keeping Mosh from stealing our fish.\"");
		UcSay;
		UI_add_answer_0C("Mosh");
		if(!var0004) goto labelFunc041C_06C8;
		UcMessage("\"Can I bring thee something?\"");
		UcSay;
	labelFunc041C_06C8:
		cmps("Mosh");
		UI_remove_answer_0D("Mosh");
		UcMessage("\"They call her the Rat Woman, which is not a very kind description, but is a reasonably true one, I am sorry to say. There are others in town who can tell thee about her. She doth like fish, I will say that one thing for her.\"");
		UcSay;
	labelFunc041C_06DB:
		cmps("acid");
		UI_remove_answer_0D("acid");
		UcMessage("\"Yes, I know what acid is, ");
		UcMessage(var0000);
		UcMessage(". It is a corrosive liquid that is very detrimental to human flesh and most metals... Except mine.\"");
		UcSay;
		UcMessage("\"Dost thou desire mine help, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041C_077E;
		if(!gflags[0227]) goto labelFunc041C_076D;
		UcMessage("\"Let me see if I understand thee correctly. Thou wishest me to accompany thee to an ancient temple.\"");
		UcSay;
		UcMessage("\"Once there, I will take thy form, and thou wilt take mine, for a brief period of time. Hmmm...\"");
		UcSay;
		UcMessage("\"It sounds intriguing. I shall discover, if only for an instant, what it is to truly be human.\"");
		UcSay;
		if(!gflags[0270]) goto labelFunc041C_0734;
		if(!(Func0994() == 0x000E)) goto labelFunc041C_072D;
		UcMessage("\"No, I must decline thine offer. Though I have enjoyed thy companionship, I must return to my duties. I shall keep the Blue Boar open, despite any calamity -- in Rocco's memory.\"");
		UcSay;
		goto labelFunc041C_0731;
	labelFunc041C_072D:
		UcMessage("\"No, I must decline thine offer. Though I have enjoyed thy companionship, I must return to Moonshade. I must bury my beloved Rocco.\"");
		UcSay;
	labelFunc041C_0731:
		goto labelFunc041C_076A;
	labelFunc041C_0734:
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc041C_075C;
		UI_add_answer_0C("leave");
		gflags[0015] = true;
		UcMessage("\"If thou dost wish it, then I shall accompany thee. Perhaps the danger shall cause me to forget my grief.\"");
		UcSay;
		UI_add_to_party_26(0xFFE4);
		goto labelFunc041C_076A;
	labelFunc041C_075C:
		UcMessage("\"Thou art not serious, ");
		UcMessage(var0002);
		UcMessage("! With so many companions, thou hast no need of me.\"");
		UcSay;
		UcMessage("\"I think thou art merely trying to cheer me. For this, I thank thee, but nothing can fill an empty heart.\"");
		UcSay;
	labelFunc041C_076A:
		goto labelFunc041C_077B;
	labelFunc041C_076D:
		UcMessage("\"But I am not very brave, ");
		UcMessage(var0000);
		UcMessage("! I could not face the hazards of such a place, even with thy company!\"");
		UcSay;
		UcMessage("\"If only there were a way to put thy courage into my metal body...\"");
		UcSay;
	labelFunc041C_077B:
		goto labelFunc041C_0788;
	labelFunc041C_077E:
		UcMessage("\"Oh, I am so glad! I am not very brave, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041C_0788:
		cmps("switch bodies");
		UI_remove_answer_0D("switch bodies");
		var000D = UI_find_nearest_15(var000C, 0x033D, 0x0008);
		if(!(!var000D)) goto labelFunc041C_07B5;
		UcMessage("\"Once we find the Body Transferance Chamber, I will oblige thee.\"");
		UcSay;
		goto labelFunc041C_084B;
	labelFunc041C_07B5:
		UcMessage("\"If thou canst promise my safety, I will agree to aid thee.\"");
		UcSay;
		UcMessage("\"Dost thou give me thy promise?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041C_0847;
		UcMessage("\"These temples are awful old. I hope thou knowest what thou art doing.\"");
		UcSay;
		var000E = UI_get_object_position_20(var000D);
		var000F = UI_create_new_object_2C(0x025F);
		if(!var000F) goto labelFunc041C_0843;
		UI_set_item_frame_1B(var000F, 0x0007);
		var0003 = UI_update_last_created_2F([(var000E[0x0001] - 0x0001), (var000E[0x0002] - 0x0001), (var000E[0x0003] + 0x0001)]);
		if(!var0003) goto labelFunc041C_0843;
		UI_set_schedule_type_25(0xFFE4, 0x000F);
		Func090E(0xFFE4, var000F, 0x0000, 0x0000, Dupre, 0x041C, UI_get_npc_object_23(0xFFE4), 0x000A, false);
	labelFunc041C_0843:
		exit2();
		goto labelFunc041C_084B;
	labelFunc041C_0847:
		UcMessage("\"Then I am sorry, but I will not take any unnecessary risks.\"");
		UcSay;
	labelFunc041C_084B:
		cmps("bye");
		UI_remove_npc_face0_07();
		if(!(UI_get_item_flag_A3(0xFFE4, 0x0006) || (!(Func0994() == 0x000E)))) goto labelFunc041C_0888;
		Func097F(0xFE9C, "@Thanks.@", 0x0000);
		Func097F(0xFFE4, "@Glad to be of help.@", 0x0002);
		goto labelFunc041C_08B5;
	labelFunc041C_0888:
		Func097F(0xFE9C, "@So long!@", 0x0000);
		if(!gflags[0004]) goto labelFunc041C_08A9;
		Func097F(0xFFE4, "@Farewell...@", 0x0002);
		goto labelFunc041C_08B5;
	labelFunc041C_08A9:
		Func097F(0xFFE4, "@Please come again!@", 0x0002);
	labelFunc041C_08B5:
		Func08FF();
		goto labelFunc041C_08BE;
	labelFunc041C_08BB:
		goto labelFunc041C_038F;
	labelFunc041C_08BE:
		end_conv();
	labelFunc041C_08BF:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0956 0x956 (var var0000);
extern Func0858 0x858 ();
extern Func0859 0x859 ();
extern Func085A 0x85A ();
extern Func0857 0x857 ();
extern Func08FF 0x8FF ();

Func041D 0x41D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = "his";
	if(!var0001) goto labelFunc041D_001F;
	var0002 = "her";
	labelFunc041D_001F:
		var0003 = Func0953();
		if(!(event == 0x0001)) goto labelFunc041D_005B;
		UI_item_say_4D(0xFE9C, "@Excuse me...@");
		0xFFE3;
		calle();
		Func097F(0xFFE3, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFE3, 0x0003);
	labelFunc041D_005B:
		if(!(event == 0x0000)) goto labelFunc041D_0101;
		var0004 = UI_get_random_00(0x0006);
		if(!(var0004 == 0x0001)) goto labelFunc041D_0081;
		UI_item_say_4D(0xFFE3, "@Wares for sale!@");
	labelFunc041D_0081:
		if(!(var0004 == 0x0002)) goto labelFunc041D_0095;
		UI_item_say_4D(0xFFE3, "@Reagents!@");
	labelFunc041D_0095:
		if(!(var0004 == 0x0003)) goto labelFunc041D_00A9;
		UI_item_say_4D(0xFFE3, "@Potions! Scrolls!@");
	labelFunc041D_00A9:
		if(!(var0004 == 0x0004)) goto labelFunc041D_00BD;
		UI_item_say_4D(0xFFE3, "@Do not touch that!@");
	labelFunc041D_00BD:
		if(!(var0004 == 0x0005)) goto labelFunc041D_00D1;
		UI_item_say_4D(0xFFE3, "@Please come in.@");
	labelFunc041D_00D1:
		if(!(var0004 == 0x0006)) goto labelFunc041D_0101;
		if(!(!gflags[00DD])) goto labelFunc041D_00EF;
		UI_item_say_4D(0xFFE3, "@What shall I do?@");
		goto labelFunc041D_0101;
	labelFunc041D_00EF:
		UI_item_say_4D(0xFFE3, (("@Hello, " + var0003) + "!@"));
	labelFunc041D_0101:
		if(!(event == 0x0009)) goto labelFunc041D_0AD6;
		UI_run_schedule_B7(0xFFE3);
		UI_clear_item_say_4E(0xFFE3);
		UI_show_npc_face0_05(0xFFE3, 0x0000);
		if(!(!UI_get_item_flag_A3(0xFFE3, 0x001C))) goto labelFunc041D_016D;
		UcMessage("\"Yes, I remember thee from the banquet -- Rotoluncia wanted to kill thee!\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE3, 0x001C);
		if(!(UI_get_schedule_type_24(0xFFE3) == 0x001D)) goto labelFunc041D_0152;
		UcMessage("\"Welcome to the Apothecary Shop. I am Pothos, the proprietor.\"");
		UcSay;
		goto labelFunc041D_015A;
	labelFunc041D_0152:
		UcMessage("\"I am Pothos, the Apothecary in this city.\"");
		UcSay;
		UcMessage("\"If thou desirest potions, reagents, or other ingredients such as are customary in the practice of magic, come to my shop.\"");
		UcSay;
	labelFunc041D_015A:
		UI_add_answer_0C(["banquet", "Rotoluncia", "Apothecary Shop"]);
		goto labelFunc041D_0210;
	labelFunc041D_016D:
		if(!(gflags[00E8] && (!gflags[00DD]))) goto labelFunc041D_01F1;
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x0001)) goto labelFunc041D_01E4;
		UcMessage("\"Thou dost have the Blood Moss! Wonderful!\"");
		UcSay;
		UcMessage("\"In exchange for thy service, I will trust thee with the information that wilt allow thee to speak with Erstam.");
		UcSay;
		var0005 = UI_count_objects_31(0xFE9B, 0x034A, 0xFE99, 0x0001);
		var0004 = UI_remove_party_items_34(var0005, 0x034A, 0xFE99, 0x0001, 0x0000);
		gflags[00DD] = true;
		var0004 = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0001), [0x23, 0x27, 0x0082, 0x55, 0x041F]);
		goto labelFunc041D_01EE;
	labelFunc041D_01E4:
		UcMessage("\"I am waiting for the Blood Moss, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041D_01EE:
		goto labelFunc041D_0210;
	labelFunc041D_01F1:
		if(!(UI_get_schedule_type_24(0xFFE3) == 0x001D)) goto labelFunc041D_020C;
		UcMessage("\"Shopping for something, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		goto labelFunc041D_0210;
	labelFunc041D_020C:
		UcMessage("\"What can I do for thee?\"");
		UcSay;
	labelFunc041D_0210:
		if(!(gflags[00DD] && (!gflags[01B7]))) goto labelFunc041D_0222;
		UI_add_answer_0C("tell me about Erstam");
	labelFunc041D_0222:
		if(!(UI_get_schedule_type_24(0xFFE3) == 0x001D)) goto labelFunc041D_0237;
		UI_add_answer_0C("buy");
	labelFunc041D_0237:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc041D_0249;
		UI_add_answer_0C("strange wine");
	labelFunc041D_0249:
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc041D_025B;
		UI_add_answer_0C("slippers");
	labelFunc041D_025B:
		if(!(gflags[0111] && (!gflags[028F]))) goto labelFunc041D_026D;
		UI_add_answer_0C("apparatus");
	labelFunc041D_026D:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc041D_027F;
		UI_add_answer_0C("bloody hand");
	labelFunc041D_027F:
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F)) goto labelFunc041D_029B;
		UI_add_answer_0C("Stoneheart");
	labelFunc041D_029B:
		if(!(gflags[00DC] && (!gflags[00E8]))) goto labelFunc041D_02AD;
		UI_add_answer_0C("secret");
	labelFunc041D_02AD:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc041D_02C6;
		UI_add_answer_0C("kidnap");
	labelFunc041D_02C6:
		if(!(!UI_get_item_flag_A3(0xFFE1, 0x0004))) goto labelFunc041D_02DB;
		UI_add_answer_0C("Rotoluncia");
	labelFunc041D_02DB:
		UI_add_answer_0C(["bye"]);
	labelFunc041D_02E5:
		UcAsk;
		cmps("tell me about Erstam");
		UI_remove_answer_0D("tell me about Erstam");
		UcMessage("\"It would not be wise for me to tell thee much. I shall merely acquaint thee with how to reach the docks, how to call thy transport, and the required password.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["reach the docks", "call transport", "password", "change subject"]);
	labelFunc041D_0312:
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"Thy friend was taken by magical means? 'Tis incredible. Thou art new to this town...\"");
		UcSay;
		UcMessage("\"Julia of the Rangers might be of aid to thee, but I doubt it. This matter concerns magic, and she is merely Mundane.\"");
		UcSay;
		UcMessage("\"I advise thee to speak to Fedabiblio -- he can counsel thee well. And he doth have connections in high places.\"");
		UcSay;
	labelFunc041D_032D:
		cmps("banquet");
		UI_remove_answer_0D("banquet");
		UcMessage("\"I apologize for disrupting the party, ");
		UcMessage(var0000);
		UcMessage(". Normally, I wouldn't have been there. But I had been on a special errand for the MageLord.\"");
		UcSay;
		UI_add_answer_0C(["Wouldn't have been there?", "errand"]);
	labelFunc041D_0353:
		cmps("Wouldn't have been there?");
		UI_remove_answer_0D("Wouldn't have been there?");
		UcMessage("\"While it is true that I am a Mage, I am not an Adept. And Filbercio invites only Adepts to his banquets, as a rule.\"");
		UcSay;
		UI_add_answer_0C(["Filbercio", "Adept"]);
	labelFunc041D_0373:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"Filbercio is the MageLord! And thou wouldst do well not to forget that while thou art in Moonshade.\"");
		UcSay;
		UcMessage("\"Filbercio is a man of great passions. The Mountains of Freedom are a powerful argument against crossing him in any way.\"");
		UcSay;
		if(!(gflags[012E] == false)) goto labelFunc041D_0399;
		UI_add_answer_0C("Freedom");
	labelFunc041D_0399:
		cmps("Freedom");
		UI_remove_answer_0D("Freedom");
		UcMessage("\"The name was meant in jest, I'm certain. For the Mountains of Freedom are a prison, ");
		UcMessage(var0000);
		UcMessage(". A prison meant to hold Mage and Mundane alike.\"");
		UcSay;
		UcMessage("\"It is said that if thou art sentenced to that terrible stone pit, and thou canst win thy way back to the outside world, then thou art free. No one will hunt thee for the crimes thou didst commit before thine incarceration...\"");
		UcSay;
		UcMessage("\"The only problem is that none have ever won free. And Filbercio reigns unchallenged.\"");
		UcSay;
		gflags[012E] = true;
		UI_add_answer_0C(["stone pit", "unchallenged"]);
	labelFunc041D_03CB:
		cmps("stone pit");
		UI_remove_answer_0D("stone pit");
		UcMessage("\"The Mountains of Freedom are a mine that was shut down long ago when the quality of ore became profitless to dredge from the mountain's heart.\"");
		UcSay;
		UcMessage("\"Filbercio devised a new use for it, and turned it into a prison. Now its value lies not in what is gotten out of the mine, but in what is put into it.\"");
		UcSay;
	labelFunc041D_03E2:
		cmps("unchallenged");
		UI_remove_answer_0D("unchallenged");
		UcMessage("\"There is little true crime here, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Most of the offenders that find themselves within the confines of Freedom are there because they angered Filbercio in some way.\"");
		UcSay;
		UcMessage("\"The very existence of Freedom silences most of the MageLord's detractors.\"");
		UcSay;
	labelFunc041D_0403:
		cmps("Adept");
		UI_remove_answer_0D("Adept");
		UcMessage("\"There are different levels of competence with magic, ");
		UcMessage(var0000);
		UcMessage(". It is all based on what level of spells thou canst cast.\"");
		UcSay;
		UcMessage("\"I myself can only master the third level of spells. An Adept can master the ninth level of spells.\"");
		UcSay;
		UcMessage("\"Only an Adept can become MageLord, or sit on the Council of Mages. So I make my living selling reagents to Adepts.\"");
		UcSay;
	labelFunc041D_0424:
		cmps("errand");
		UI_remove_answer_0D("errand");
		UcMessage("\"With these storms, I have had little trade with the mainland, so I'm nearly out of most reagents. Filbercio wished me to gather some Blood Moss for him.\"");
		UcSay;
		UcMessage("\"I tried. But these storms have brought fierce monsters into that area... And I'm no Adept to deal with them.\"");
		UcSay;
		UcMessage("\"Filbercio threatened to throw me into the Mountains of Freedom if I do not obtain the Blood Moss! I'd trade my dearest secret to be able to find some Blood Moss!\"");
		UcSay;
		if(!(gflags[00DC] && (!gflags[00E8]))) goto labelFunc041D_0451;
		UI_add_answer_0C("secret");
	labelFunc041D_0451:
		if(!(gflags[012E] == false)) goto labelFunc041D_0460;
		UI_add_answer_0C("Freedom");
	labelFunc041D_0460:
		cmps("secret");
		UI_remove_answer_0D("secret");
		if(!(gflags[011F] == true)) goto labelFunc041D_04AE;
		UcMessage("\"Hast thou reconsidered mine offer?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041D_0492;
		UcMessage("\"Thou art my savior! I shall await thy return eagerly.\"");
		UcSay;
		gflags[011F] = false;
		gflags[00E8] = true;
		goto labelFunc041D_04AB;
	labelFunc041D_0492:
		UcMessage("\"My fate is certain!\"");
		UcSay;
		gflags[011F] = true;
		UI_remove_npc_face0_07();
		Func097F(0xFFE3, "@I am lost!@", 0x0000);
		abrt();
	labelFunc041D_04AB:
		goto labelFunc041D_04E6;
	labelFunc041D_04AE:
		UcMessage("\"Thou knowest?!\"");
		UcSay;
		UcMessage("\"It is true. I am Erstam's son... Which is why I still continue to trade with him, even though it is forbidden. If the Council knew, I'd surely be exiled.\"");
		UcSay;
		UcMessage("\"Since thou knowest, I will offer thee a deal. If thou wilt go to the swamps south of here and bring back some Blood Moss for me, I will tell thee how to contact my father.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041D_04CD;
		UcMessage("\"Thou art my savior! I shall await thy return eagerly.\"");
		UcSay;
		gflags[00E8] = true;
		goto labelFunc041D_04E6;
	labelFunc041D_04CD:
		UcMessage("\"Then I have nothing to bargain with. I shall certainly end my life in the Mountains of Freedom now!\"");
		UcSay;
		gflags[011F] = true;
		UI_remove_npc_face0_07();
		Func097F(0xFFE3, "@I am lost!@", 0x0000);
		abrt();
	labelFunc041D_04E6:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"Like Filbercio, Rotoluncia doth have a will of steel and a fiery temper.\"");
		UcSay;
		UcMessage("\"She is convinced that some outside force is responsible for these abominable storms.\"");
		UcSay;
		if(!gflags[00EA]) goto labelFunc041D_050E;
		UcMessage("\"I wonder... perhaps Rotoluncia could have had something to do with thy companion's demise?\"");
		UcSay;
		UcMessage("\"If thou dost wish to visit her, she lives in a manor in the northeast corner of the city.\"");
		UcSay;
		goto labelFunc041D_0518;
	labelFunc041D_050E:
		UcMessage("\"She hates thee because she thinks that thou art keeping knowledge from her. It isn't anything personal, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc041D_0518:
		UI_push_answers_0E();
		UI_add_answer_0C(["force", "storms", "change subject"]);
	labelFunc041D_052C:
		cmps("change subject");
		UcMessage("\"Why, certainly, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc041D_0542:
		cmps("force");
		UI_remove_answer_0D("force");
		UcMessage("\"Well, to be precise, I should say that she suspects a recent visitor -- a Mage named Batlin.\"");
		UcSay;
		UcMessage("\"I'll grant that he came through asking all sorts of questions, and badgering people to sell their Serpent Teeth. But I fail to see how she thinks he doth have anything to do with the storms.\"");
		UcSay;
		UcMessage("\"And I'm afraid that she thinks all strangers are in league with Batlin. Of course, it did not help that he had that Daemon, either...\"");
		UcSay;
		UI_add_answer_0C(["Batlin", "questions", "Serpent Teeth", "Daemon"]);
	labelFunc041D_0570:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"Little, fat man... Small beard and mustache... Angry scowl. I'm sure thou wilt remember him if thou hast met him.\"");
		UcSay;
		UcMessage("\"Not a particularly nice person, that I recall. Seemed like any other Adept -- used to getting his way, and angry if thwarted. I dealt as little with him as possible.\"");
		UcSay;
	labelFunc041D_0587:
		cmps("questions");
		UI_remove_answer_0D("questions");
		UcMessage("\"Batlin seemed very interested in learning more of the history of the ancient people of this land -- the ones we call the Ophidians.\"");
		UcSay;
		UcMessage("\"As I am far from my days as a novice, I do not remember all that the Magister taught us. I wasn't much interested then, or now. I sent him to Fedabiblio.\"");
		UcSay;
		UI_add_answer_0C(["Ophidians", "Fedabiblio"]);
	labelFunc041D_05AB:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"As I told thee, I don't recall very much history. All I do know is that the ancients seem to have worshipped serpents. If thou wishest to know more, ask Fedabiblio. He's very learned on the subject.\"");
		UcSay;
	labelFunc041D_05BE:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio keeps the library here in Moonshade. All information, whether historical or magical in nature, finds its way to his hands.\"");
		UcSay;
		UcMessage("\"He is also the teacher of the novices, so I'm certain that he will be able to help thee with any questions thou mightest have.\"");
		UcSay;
	labelFunc041D_05D5:
		cmps("Serpent Teeth");
		UI_remove_answer_0D("Serpent Teeth");
		if(!(gflags[00E8] || gflags[011F])) goto labelFunc041D_0603;
		UcMessage("\"'Tis a tradition, ");
		UcMessage(var0000);
		UcMessage(", to steal some small item from my father to prove that thou art a worthy Mage. 'Tis never anything of value, so I have said nothing so far.\"");
		UcSay;
		UcMessage("\"A particular favorite item to purloin is a Serpent Tooth from my father's collection. As far as I know, they are useless. But Batlin certainly wanted to purchase them.\"");
		UcSay;
		UcMessage("\"No one would sell... Who knows, perhaps he hoped to make some sort of deal with my father for them.\"");
		UcSay;
		goto labelFunc041D_0615;
	labelFunc041D_0603:
		UcMessage("\"'Tis a tradition, ");
		UcMessage(var0000);
		UcMessage(", to steal some small item from the Mad Mage to prove that thou art a worthy Mage.\"");
		UcSay;
		UcMessage("\"A particular favorite item to purloin is a Serpent Tooth from the Mad Mage's collection. As far as I know, they are useless. But Batlin certainly wanted to purchase them.\"");
		UcSay;
		UcMessage("\"No one would sell... Who knows, perhaps he hoped to make some sort of deal with the Mad Mage for them.\"");
		UcSay;
	labelFunc041D_0615:
		cmps("Daemon");
		UI_remove_answer_0D("Daemon");
		UcMessage("\"Yes! Batlin had a Daemon wandering about at his heels, as tame as thou couldst please. Did his bidding without a word... Big, big, ugly red creature.\"");
		UcSay;
		UcMessage("\"'Tis just the thing to catch Rotoluncia's eye... She's very interested in learning to tame a Daemon for her personal servant. She was quite put out that Batlin wouldn't tell her how he had done it.\"");
		UcSay;
		UcMessage("\"But I'm sure Filbercio heaved a sigh of relief when Batlin refused to tell her. Everyone knows that Rotoluncia would love to feed Filbercio to a Daemon, in small pieces.\"");
		UcSay;
	labelFunc041D_0630:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Definitely magic-born, no doubt about it. Anyone caught outside during one risks being teleported into oblivion.\"");
		UcSay;
		UcMessage("\"Gustacio hath been working on finding a way to stop the storms. But so far, he hath not had any luck. Mayhaps now that Mortegro is helping him, they'll find the answer...\"");
		UcSay;
		UcMessage("\"I certainly hope so. Moonshade is isolated until they do.\"");
		UcSay;
		UI_add_answer_0C(["Gustacio", "Mortegro"]);
	labelFunc041D_0658:
		cmps("Gustacio");
		UI_remove_answer_0D("Gustacio");
		UcMessage("\"Gustacio is an Adept that specializes in working with the weather... the power of nature, and all that.\"");
		UcSay;
		UcMessage("\"Gustacio said something about needing to learn as much about the storms as possible. Even babbled something about learning to see the colors... At least it sounded like babble to me.\"");
		UcSay;
	labelFunc041D_066F:
		cmps("Mortegro");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"Mortegro is an Adept that specializes in speaking with the dead. He doth not bind them to service or anything, simply talks to them.\"");
		UcSay;
		UcMessage("\"Why Gustacio wants Mortegro's help, I'll never know. Unless the dead are responsible for the storms, or something.\"");
		UcSay;
	labelFunc041D_0686:
		cmps("Apothecary Shop");
		UI_remove_answer_0D("Apothecary Shop");
		UcMessage("\"I sell everything that thou wouldst need to cast spells or do magic...\"");
		UcSay;
		UcMessage("\"Unfortunately, I have a very limited supply of most things right now.\"");
		UcSay;
	labelFunc041D_069D:
		cmps("password");
		UI_remove_answer_0D("password");
		if(!gflags[0145]) goto labelFunc041D_06B9;
		UcMessage("\"Oh -- didst thou forget? How embarrassing...\"");
		UcSay;
		goto labelFunc041D_06BD;
	labelFunc041D_06B9:
		UcMessage("\"Isn't it interesting that Blood Moss is so potent, since it is connected with the fluid of life? Blood... But I'm babbling...\"");
		UcSay;
	labelFunc041D_06BD:
		gflags[0145] = true;
		UcMessage("\"Erstam shall not speak a word to thee unless thou dost speak the password which I do give thee. This will be the sign that I have sent thee.\"");
		UcSay;
		UcMessage("\"The password is @Iskatradeeth@.\"");
		UcSay;
	labelFunc041D_06C9:
		cmps("reach the docks");
		UI_remove_answer_0D("reach the docks");
		UcMessage("\"Thou must go to the docks north of the Mountains of Freedom. My father hath trained a sea creature to come on command. It will take thee to Erstam -- do not fear. But remember to not leave any of thy possessions upon it, for once it leaves thou shalt not be able to recall it.\"");
		UcSay;
	labelFunc041D_06DC:
		cmps("call transport");
		UI_remove_answer_0D("call transport");
		UcMessage("\"To call the creature, go to the docks. There, thou shalt find a ship's bell.\"");
		UcSay;
		UcMessage("\"Once thou hast rung the bell and chanted the mantra, thy transport will arrive. It can only take thee to my father's island... nowhere else.\"");
		UcSay;
		UI_add_answer_0C("mantra");
	labelFunc041D_06FA:
		cmps("mantra");
		if(!gflags[0145]) goto labelFunc041D_0768;
		UI_remove_answer_0D("mantra");
		UcMessage("\"My, thou art impatient! I was just about to tell thee...\"");
		UcSay;
		UcMessage("\"I Re-Ten Bentas Juxark I! Praetimde Mir-Wis Re-Por I.\"");
		UcSay;
		UcMessage("\"To learn its meaning, translate it from the language of Magic.\"");
		UcSay;
		UcMessage("\"Alas -- as is often the case, 'tis not required to understand power to use it.\"");
		UcSay;
		var0006 = Func0992(Iolo, (((("@" + var0003) + " learned ") + var0002) + " lessons well in the days of the False Prophet.@"), "@I was taught well in the days of the False Prophet...@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Whom?\"");
		UcSay;
		var0006 = Func0992(0x0001, "@Never mind...@", "@Never mind...@", false);
		UI_set_conversation_slot_09(0x0000);
		gflags[013D] = true;
		goto labelFunc041D_076C;
	labelFunc041D_0768:
		UcMessage("\"No, no, no -- thou shouldst learn of the password first! Thou dost need it most of all, for Erstam shall not speak with thee without it!\"");
		UcSay;
	labelFunc041D_076C:
		cmps("buy");
		UcMessage("\"What dost thou need?\"");
		UcSay;
		var0004 = Func0956(["Potions", "Reagents", "Magic Items"]);
		if(!(var0004 == "Potions")) goto labelFunc041D_079B;
		UcMessage("\"What potion dost thou wish to purchase?\"");
		UcSay;
		Func0858();
	labelFunc041D_079B:
		if(!(var0004 == "Reagents")) goto labelFunc041D_07AC;
		UcMessage("\"What reagents dost thou desire to buy?\"");
		UcSay;
		Func0859();
	labelFunc041D_07AC:
		if(!(var0004 == "Magic Items")) goto labelFunc041D_07BD;
		UcMessage("\"What magic items wouldst thou care to buy?\"");
		UcSay;
		Func085A();
	labelFunc041D_07BD:
		cmps("strange wine");
		UI_remove_answer_0D("strange wine");
		UcMessage("\"That can only be Moonshade wine, ");
		UcMessage(var0000);
		UcMessage(". The Rangers make it right here in the city, with a magic wine press -- naturally.\"");
		UcSay;
		UI_add_answer_0C(["Rangers", "magic wine press"]);
	labelFunc041D_07E3:
		cmps("Rangers");
		UI_remove_answer_0D("Rangers");
		UcMessage("\"The Rangers are nominally the city guards. They deal with any physical threats that aren't worthy of bothering a Mage about. Their commander is a woman named Julia.\"");
		UcSay;
		UI_add_answer_0C("Julia");
	labelFunc041D_07FD:
		cmps("Julia");
		UI_remove_answer_0D("Julia");
		UcMessage("\"Julia is a rather forbidding woman. Always seems to be looking for thy secret desire to cause trouble, if thou knowest what I mean.\"");
		UcSay;
		UcMessage("\"She's quite competent, but not overly warm. I've actually seen her rebuff the MageLord's advances... A formidable woman, indeed.\"");
		UcSay;
	labelFunc041D_0814:
		cmps("magic wine press");
		UI_remove_answer_0D("magic wine press");
		if(!(gflags[00E8] || gflags[011F])) goto labelFunc041D_083A;
		UcMessage("\"The magic wine press is another piece of my father's legacy, ");
		UcMessage(var0000);
		UcMessage(". He hath always liked fine wine, but hated the work required to make it. So he made the wine press.\"");
		UcSay;
		goto labelFunc041D_084B;
	labelFunc041D_083A:
		UcMessage("\"The magic wine press is another piece of Erstam's legacy, ");
		UcMessage(var0000);
		UcMessage(". He always liked fine wine, but hated the work required to make it. So he made the wine press.\"");
		UcSay;
		UI_add_answer_0C("Erstam");
	labelFunc041D_084B:
		cmps("Erstam");
		UI_remove_answer_0D("Erstam");
		UcMessage("\"Erstam was the mentor of most of the Adepts. He was a hard master, so they say.\"");
		UcSay;
		UcMessage("\"The popular story is that Erstam would never admit that any of his students were ready to be called Adepts in their own right. Apparently, he wanted the free labor for as long as he could have it.\"");
		UcSay;
		UcMessage("\"Each one rebelled against him, until he became angry and withdrew to his own little island -- forswearing any company but that of his assistants.\"");
		UcSay;
	labelFunc041D_0866:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"Hmmm. I don't think that they belong to a Mage, ");
		UcMessage(var0000);
		UcMessage(". Most Mages prefer something a bit more... impressive.\"");
		UcSay;
		UcMessage("\"These look more like something a Mundane would wear. Thou mightest check with Bucia over at the Capessii Canton.\"");
		UcSay;
		gflags[0115] = true;
		UI_add_answer_0C(["Bucia", "Capessii Canton"]);
	labelFunc041D_0894:
		cmps("Bucia");
		UI_remove_answer_0D("Bucia");
		UcMessage("\"If any one person could be considered the heart of Moonshade, I'd be hard-pressed to say whether it was Bucia or Rocco.\"");
		UcSay;
		UcMessage("\"Bucia doth do business with both Mage and Mundane, so she usually has a full share of the most recent gossip in the city -- which she collects like a ship collects barnacles.\"");
		UcSay;
		UI_add_answer_0C("Rocco");
	labelFunc041D_08B2:
		cmps("Rocco");
		UI_remove_answer_0D("Rocco");
		UcMessage("\"Rocco is the proprietor of the Blue Boar Inn. Most of the people in the city -- Mage and Mundane alike -- eat there.\"");
		UcSay;
		UcMessage("\"Rocco collects gossip from those too far in their cups to care what is said to whom. So, between Bucia and Rocco, they hear everything going on in Moonshade.\"");
		UcSay;
	labelFunc041D_08C9:
		cmps("Capessi Canton");
		UI_remove_answer_0D("Capessi Canton");
		UcMessage("\"Strange name, isn't it? 'Tis actually Flindo's shop, but he's away so much that Bucia runs it.\"");
		UcSay;
		UI_add_answer_0C("Flindo");
	labelFunc041D_08E3:
		cmps("Flindo");
		UI_remove_answer_0D("Flindo");
		UcMessage("\"Flindo travels to and from the mainland quite often to purchase merchandise for the shop -- which is another reason Bucia is a good source for information. She hears what Flindo learns in his trips.\"");
		UcSay;
	labelFunc041D_08F6:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		UcMessage("\"'Tis a Mage's equipment. But I don't recognize the style.\"");
		UcSay;
		UcMessage("\"Every Mage prefers something different from the others. This isn't one I'm familiar with, but I'm not that well-connected.\"");
		UcSay;
		UcMessage("\"Thou shouldst ask Master Ducio. Or, better yet, Topo -- if thou dost wish an answer.\"");
		UcSay;
		UI_add_answer_0C(["Ducio", "Topo"]);
	labelFunc041D_091E:
		cmps("Ducio");
		UI_remove_answer_0D("Ducio");
		UcMessage("\"Ducio is a Master Artisan. His work is incredibly good -- when he does any work at all.\"");
		UcSay;
		UcMessage("\"Most of the time he leaves the work to his apprentice. But I know for a fact that he makes all the lab apparatus for the Adepts. He should be able to tell thee who this piece belongs to... if he's awake, that is!\"");
		UcSay;
	labelFunc041D_0935:
		cmps("Topo");
		UI_remove_answer_0D("Topo");
		UcMessage("\"Topo is the unfortunate boy that Master Ducio took for an apprentice. He's the one that does all the work at the shop.\"");
		UcSay;
		UcMessage("\"Despite Ducio's sloth, Topo seems to have quite a bit of talent and promise. In fact, everyone in Moonshade hath learned to go to Topo if they need anything...\"");
		UcSay;
		UcMessage("\"The service is quicker and much friendlier.\"");
		UcSay;
	labelFunc041D_0950:
		cmps("bloody hand");
		UI_remove_answer_0D("bloody hand");
		if(!(gflags[00E8] || gflags[011F])) goto labelFunc041D_0978;
		UcMessage("\"Eyeh! Please, put it away!\"");
		UcSay;
		UcMessage("\"I do not need to look at it any more to be able to tell thee that it is the damnable product of my father's experiments! Is it any wonder that they call him the Mad Mage?!\"");
		UcSay;
		gflags[029B] = true;
		goto labelFunc041D_0984;
	labelFunc041D_0978:
		UcMessage("\"Eyeh! Please, put it away!\"");
		UcSay;
		UcMessage("\"I do not need to look at it any more to be able to tell thee that it is the damnable product of Erstam's experiments! Is it any wonder that they call him the Mad Mage?!\"");
		UcSay;
		gflags[029B] = true;
	labelFunc041D_0984:
		UI_add_answer_0C(["experiments", "Mad Mage"]);
	labelFunc041D_0991:
		cmps("experiments");
		UI_remove_answer_0D("experiments");
		if(!(gflags[00E8] || gflags[011F])) goto labelFunc041D_09B5;
		UcMessage("\"My father seeks to find the secret to creating life. I surmise that it's his attempt at immortality -- Even spells fall to the ravages of time in the end.\"");
		UcSay;
		UcMessage("\"Unfortunately, Erstam's quest for knowledge hath been at the sacrifice of his assistants. Vasel hath sidestepped the inevitable much longer than I would have expected...\"");
		UcSay;
		goto labelFunc041D_09BD;
	labelFunc041D_09B5:
		UcMessage("\"Erstam seeks to find the secret to creating life. I surmise that it's his attempt at immortality -- Even spells fall to the ravages of time in the end.\"");
		UcSay;
		UcMessage("\"Unfortunately, Erstam's quest for knowledge hath been at the sacrifice of his assistants. Vasel hath sidestepped the inevitable much longer than I would have expected...\"");
		UcSay;
	labelFunc041D_09BD:
		UI_add_answer_0C("Vasel");
	labelFunc041D_09C4:
		cmps("Vasel");
		UI_remove_answer_0D("Vasel");
		if(!(gflags[00E8] || gflags[011F])) goto labelFunc041D_09E4;
		UcMessage("\"Vasel is my father's latest assistant. He is a grinning hunchback that I had not given credit for much intelligence. But he seems to be more cunning than even my father anticipated.\"");
		UcSay;
		goto labelFunc041D_09E8;
	labelFunc041D_09E4:
		UcMessage("\"Vasel is Erstam's latest assistant. He is a grinning hunchback that I had not given credit for much intelligence. But he seems to be more cunning than even Erstam anticipated.\"");
		UcSay;
	labelFunc041D_09E8:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"What else wouldst thou call a man who hacks his assistants to pieces for his experiments?!\"");
		UcSay;
		UcMessage("\"That is another reason that he lives apart from the other Mages. He will never bow to their Strictures... And I doubt that any of the Adepts in Moonshade could hope to enforce them anyway!\"");
		UcSay;
	labelFunc041D_09FF:
		cmps("Stoneheart");
		UI_remove_answer_0D("Stoneheart");
		UcMessage("\"How didst thou come by that?!\"");
		UcSay;
		UcMessage("\"No! I did not ask that! I do not want to know!\"");
		UcSay;
		UcMessage("\"Dost thou know that possession of that stone is forbidden? Dost thou know how much certain Adepts would pay for the reagent that that stone produces?\"");
		UcSay;
		UI_add_answer_0C(["forbidden", "reagent"]);
	labelFunc041D_0A27:
		cmps("forbidden");
		UI_remove_answer_0D("forbidden");
		UcMessage("\"Prolonged exposure to Stoneheart causes insanity, ");
		UcMessage(var0000);
		UcMessage(". And to have the type of power that the reagent makes in the hands of a madman is unthinkable!\"");
		UcSay;
		UcMessage("\"Of course, as an apothecary, I could buy it from thee... And find a buyer or two with clearance to possess it.\"");
		UcSay;
		UcMessage("\"I could make thee a good offer... Say, 120 guilders. Wilt thou sell it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc041D_0A5A;
		UcMessage("\"Wonderful! This will be far less trouble for thee...\"");
		UcSay;
		Func0857();
		goto labelFunc041D_0A64;
	labelFunc041D_0A5A:
		UcMessage("\"I shall not tell anyone that thou hast the Stoneheart, ");
		UcMessage(var0000);
		UcMessage(". But thou shouldst be likewise discreet.\"");
		UcSay;
	labelFunc041D_0A64:
		cmps("reagent");
		UI_remove_answer_0D("reagent");
		UcMessage("\"It produces Bloodspawn when mixed with a quantity of blood... Well, I am getting ahead of myself.\"");
		UcSay;
		UcMessage("\"If thou hast a ritual blood-letting device -- which is technically forbidden as well -- thou must fill a small container with blood.\"");
		UcSay;
		UcMessage("\"Then thou must use the blood on the Stoneheart. This produces the Bloodspawn that thou wilt need for death spells. Thou must be very careful. It is very powerful.\"");
		UcSay;
	labelFunc041D_0A7F:
		cmps("bye");
		UI_remove_npc_face0_07();
		if(!(UI_get_schedule_type_24(0xFFE3) == 0x001D)) goto labelFunc041D_0AB4;
		Func097F(0xFE9C, "@Nice shop.@", 0x0000);
		Func097F(0xFFE3, "@Come again!@", 0x0002);
		goto labelFunc041D_0ACC;
	labelFunc041D_0AB4:
		Func097F(0xFE9C, "@Until later...@", 0x0000);
		Func097F(0xFFE3, "@Take care!@", 0x0002);
	labelFunc041D_0ACC:
		Func08FF();
		goto labelFunc041D_0AD5;
	labelFunc041D_0AD2:
		goto labelFunc041D_02E5;
	labelFunc041D_0AD5:
		end_conv();
	labelFunc041D_0AD6:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0942 0x942 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern Func085E 0x85E ();
extern Func085F 0x85F ();
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08FF 0x8FF ();

Func041E 0x41E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = false;
	var0004 = "him";
	if(!var0001) goto labelFunc041E_0029;
	var0005 = "her";
	labelFunc041E_0029:
		if(!(event == 0x0000)) goto labelFunc041E_00BF;
		var0006 = UI_get_random_00(0x0006);
		if(!(var0006 == 0x0001)) goto labelFunc041E_005B;
		UI_item_say_4D(0xFFE2, "@Petra, bring wine!@");
		Func097F(0xFFE4, "@In a minute...@", 0x0002);
	labelFunc041E_005B:
		if(!(var0006 == 0x0002)) goto labelFunc041E_006F;
		UI_item_say_4D(0xFFE2, "@These are hard times...@");
	labelFunc041E_006F:
		if(!(var0006 == 0x0003)) goto labelFunc041E_0083;
		UI_item_say_4D(0xFFE2, "@Rooms for rent!@");
	labelFunc041E_0083:
		if(!(var0006 == 0x0004)) goto labelFunc041E_0097;
		UI_item_say_4D(0xFFE2, "@Care for a drink?@");
	labelFunc041E_0097:
		if(!(var0006 == 0x0005)) goto labelFunc041E_00AB;
		UI_item_say_4D(0xFFE2, "@Hungry?@");
	labelFunc041E_00AB:
		if(!(var0006 == 0x0006)) goto labelFunc041E_00BF;
		UI_item_say_4D(0xFFE2, "@Have a seat...@");
	labelFunc041E_00BF:
		if(!(event == 0x0001)) goto labelFunc041E_00F5;
		UI_item_say_4D(0xFE9C, "@Might I speak with thee?@");
		0xFFE2;
		calle();
		Func097F(0xFFE2, (("@Certainly, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFE2, 0x0003);
	labelFunc041E_00F5:
		if(!(event == 0x0009)) goto labelFunc041E_0839;
		UI_run_schedule_B7(0xFFE2);
		UI_clear_item_say_4E(0xFFE2);
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		var0007 = UI_get_item_flag_A3(0xFFE2, 0x001C);
		if(!(var0007 == false)) goto labelFunc041E_0154;
		if(!(UI_get_schedule_type_24(0xFFE2) == 0x0007)) goto labelFunc041E_013F;
		UcMessage("\"Welcome to the Blue Boar Inn. I am the innkeeper. My name is Rocco.\"");
		UcSay;
		goto labelFunc041E_0143;
	labelFunc041E_013F:
		UcMessage("\"I do not believe we've met. I'm Rocco, the innkeeper at the Blue Boar.\"");
		UcSay;
	labelFunc041E_0143:
		UcMessage("\"'Tis good to have more visitors again. We had despaired, what with the storms and all.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE2, 0x001C);
		goto labelFunc041E_015E;
	labelFunc041E_0154:
		UcMessage("\"So good to see thee again, ");
		UcMessage(var0000);
		UcMessage(". Always good to have visitors.\"");
		UcSay;
	labelFunc041E_015E:
		UI_add_answer_0C(["Blue Boar", "visitors"]);
		UI_add_answer_0C(["food", "drink", "room"]);
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc041E_0194;
		UI_add_answer_0C("brown bottle");
	labelFunc041E_0194:
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc041E_01A6;
		UI_add_answer_0C("slippers");
	labelFunc041E_01A6:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc041E_01BF;
		UI_add_answer_0C("kidnap");
	labelFunc041E_01BF:
		UI_add_answer_0C("bye");
	labelFunc041E_01C6:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"I cannot say that I'm surprised, ");
		UcMessage(var0002);
		UcMessage(". Thy coming hath mightily disturbed the Mages.\"");
		UcSay;
		UcMessage("\"Now there are many suspects -- Torrissio is certainly a sly one, and Mortegro doth have odd interests -- but we both know whom thy enemy must be...\"");
		UcSay;
		gflags[0142] = true;
		gflags[013F] = true;
		UcMessage("\"'Tis that she-witch, Rotoluncia! Everyone knows that she doth work against thee.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFE4)) goto labelFunc041E_022F;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"Perhaps ");
		UcMessage(var0002);
		UcMessage(" should go to Julia, dear. The Rangers must investigate this crime.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Nah -- she'll only try to extort money from ");
		UcMessage(var0004);
		UcMessage(". Julia is a thief...\"");
		UcSay;
		UcMessage("\"If I wert thou, ");
		UcMessage(var0002);
		UcMessage(", I'd think about leaving town. Rotoluncia is not an enemy that a Mundane can handle!\"");
		UcSay;
	labelFunc041E_022F:
		cmps("Blue Boar");
		UI_remove_answer_0D("Blue Boar");
		UcMessage("\"Interesting name, is it not?\"");
		UcSay;
		var0008 = Func0992(0x0001, "@That sounds just like the one in Britannia!@", "@I have heard of that name before.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Anything is possible, I suppose. I inherited this inn from my parents, and they from theirs. 'Tis an old name... perhaps from the time of the crossing.\"");
		UcSay;
		UI_add_answer_0C("crossing");
	labelFunc041E_0264:
		cmps("crossing");
		UI_remove_answer_0D("crossing");
		UcMessage("\"It hath been a long time since I heard the tale in full. Let me see if I remember it at all... For the most part it had something to do with an usurper king and the Mages. But for my folk, it was simply for money, I think.\"");
		UcSay;
		UI_add_answer_0C(["usurper king", "Mages", "money"]);
	labelFunc041E_0287:
		cmps("usurper king");
		UI_remove_answer_0D("usurper king");
		UcMessage("\"Back in the old lands, a domineering man named... Brattish, or Brutish, or somesuch, usurped the throne. His rule was hard and unjust, so many people fled across the seas to this land.\"");
		UcSay;
		var0008 = Func0992(0x0001, "@It sounds like he is talking about Lord British!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C(["old lands", "this land"]);
	labelFunc041E_02BE:
		cmps("old lands");
		UI_remove_answer_0D("old lands");
		UcMessage("\"Let me think a moment. I am terrible with names like this... Aha! I have it! The old lands were known as Sosaria.\"");
		UcSay;
	labelFunc041E_02D1:
		cmps("this land");
		UI_remove_answer_0D("this land");
		UcMessage("\"Well, when the people arrived here, they thought to name the land after their old home... ah, one moment... New Sosaria. But then they found the ruins scattered here and there, with all those snakes pictured on them, so most folks call this The Serpent Isle. Though some still refer to it by its proper name, New Sosaria.\"");
		UcSay;
		UI_add_answer_0C(["ruins", "snakes"]);
	labelFunc041E_02F1:
		cmps("ruins");
		UI_remove_answer_0D("ruins");
		UcMessage("\"Well, the ruins are on the mainland anyway. I saw the ones around Monitor when I was just a lad. There is nothing special about them, merely piles of old stone from settlers way before the New Sosarians.\"");
		UcSay;
	labelFunc041E_0304:
		cmps("snakes");
		UI_remove_answer_0D("snakes");
		UcMessage("\"Either this place had far more snakes when those people lived here, or they worshipped them, or something. There are snakes carved all over those ruins. I don't even think that the Mages know what they mean.\"");
		UcSay;
	labelFunc041E_0317:
		cmps("Mages");
		UI_remove_answer_0D("Mages");
		UcMessage("\"As well as I can remember, most of the people that fled from the usurper were Mages. I don't think that any of them are still alive, but thou canst never tell. Perhaps the Mad Mage is that old, who knows? Certainly not the current MageLord.\"");
		UcSay;
		UI_add_answer_0C(["Mad Mage", "MageLord"]);
	labelFunc041E_0337:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"The Mad Mage is a crazy old man that lives on an island not far from here. Thinks he can create life... From what I hear, he once lived here in Moonshade -- was a teacher or something, 'til he went mad.\"");
		UcSay;
	labelFunc041E_034A:
		cmps("MageLord");
		UI_remove_answer_0D("MageLord");
		UcMessage("\"Filbercio is the most recent MageLord, ");
		UcMessage(var0000);
		UcMessage(". He is a man of curious passions. Not what thou wouldst expect from most Mages.\"");
		UcSay;
		UI_add_answer_0C("passions");
	labelFunc041E_036A:
		cmps("passions");
		UI_remove_answer_0D("passions");
		UcMessage("\"I'll simply say that I am mighty glad that my Petra is metal. That alone may keep her safe from his wandering eye.\"");
		UcSay;
	labelFunc041E_037D:
		cmps("money");
		UI_remove_answer_0D("money");
		UcMessage("\"Aye, plain money. The folks that came over were lesser sons and daughters who could never hope to inherit anything. They came hoping to start their own businesses, like the Blue Boar. 'Twas named in honor of my great-great grandsire's inn.\"");
		UcSay;
	labelFunc041E_0390:
		cmps("visitors");
		UI_remove_answer_0D("visitors");
		UcMessage("\"Of course, there's not much business now due to the terrible storms. But in better times our rooms are always full. Wert thou interested in anyone in particular?\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["the sage Batlin", "the scholar Gwenno", "nothing more"]);
	labelFunc041E_03B7:
		cmps("the sage Batlin");
		UI_remove_answer_0D("the sage Batlin");
		UcMessage("\"Such a one did come through here, perhaps two	months ago.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_03EA;
		Func094E(0xFFE4, "@'Twas three months ago, Rocco.@");
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Yes, she's right... it was three months ago.\"");
		UcSay;
	labelFunc041E_03EA:
		UcMessage("\"There was some sort of a scandal, as I recall. It was said that this Batlin stole an ancient artifact of some kind. He fled by ship -- perhaps Captain Hawk could tell thee more.\"");
		UcSay;
		var0009 = true;
	labelFunc041E_03F2:
		cmps("the scholar Gwenno");
		UI_remove_answer_0D("the scholar Gwenno");
		UcMessage("\"Thou dost know her! She and I are the closest of friends. She stayed here for many weeks.\"");
		UcSay;
		var0008 = Func0992(Iolo, "@Just how well dost thou know Gwenno?@", "@Gwenno is my friend's missing wife.@", false);
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"I swear I am innocent! We were only friends, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Where did she go?", "Why was she here?", "How long ago?", "change subject"]);
	labelFunc041E_0440:
		cmps("Where did she go?");
		UI_remove_answer_0D("Where did she go?");
		UcMessage("\"When she had studied all of the materials which were available here, she determined to go to	the Isle of Monks to read the scrolls kept there.\"");
		UcSay;
		UI_add_answer_0C("Isle of Monks");
	labelFunc041E_045A:
		cmps("Isle of Monks");
		UI_remove_answer_0D("Isle of Monks");
		UcMessage("\"The Xenkan Monks live north of here on a forested island. They tend to keep to themselves, studying the prophecies of long-dead mystics. But thou canst not go there, for there is no sailor crazy enough to make the journey. The magical	storms have destroyed every boat on this coast, save Hawk's -- and he won't sail.\"");
		UcSay;
	labelFunc041E_046D:
		cmps("Why was she here?");
		UI_remove_answer_0D("Why was she here?");
		UcMessage("\"The good lady said that it was her task to study all of the cultures and beliefs there were in the Serpent Isles. She was planning to write a report, and she said that her discoveries would startle her countrymen.\"");
		UcSay;
	labelFunc041E_0480:
		cmps("How long ago?");
		UI_remove_answer_0D("How long ago?");
		UcMessage("\"It hath been a long time since we last saw Gwenno. Many months.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_04AF;
		Func094E(0xFFE4, "@Eight months, dear Rocco.@");
		UI_show_npc_face0_05(0xFFE2, 0x0000);
	labelFunc041E_04AF:
		cmps("nothing more", "change subject");
		UcMessage("\"I am sorry I was not more helpful...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc041E_04C2:
		cmps("food");
		if(!((UI_get_schedule_type_24(0xFFE2) == 0x0007) || (UI_get_schedule_type_24(0xFFE2) == 0x0017))) goto labelFunc041E_050A;
		UcMessage("\"We serve nothing pretentious, but it fills the belly and warms the soul.\"");
		UcSay;
		if(!(!var0003)) goto labelFunc041E_0504;
		UcMessage("\"Petra is a surprisingly good cook, considering that she is an automaton.\"");
		UcSay;
		var0003 = true;
		UI_add_answer_0C(["automaton", "Petra"]);
	labelFunc041E_0504:
		Func085E();
		goto labelFunc041E_0515;
	labelFunc041E_050A:
		UcMessage("\"Return when we be open!\"");
		UcSay;
		UI_remove_answer_0D("food");
	labelFunc041E_0515:
		cmps("automaton");
		UI_remove_answer_0D("automaton");
		UcMessage("\"We have a lot of them around here -- magical creations, scavenged from the Serpent ruins and restored to service by our Mages. But Petra is unique, being an experiment by Torrissio the Sly. While all the others are mere machines, my Petra is a warm, caring person.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_0551;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"Do not mention that name again, Rocco! Why summon more trouble than we already have?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"She doth not care much for Torrissio -- considering that he created her for vile and exploitive reasons. But Petra escaped, and now I care for her.\"");
		UcSay;
	labelFunc041E_0551:
		UI_add_answer_0C("Torrissio");
	labelFunc041E_0558:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Torrissio is called the Sly for good reason. He doth meet with other people's wives on the sly. And he takes great delight in hurting people, but never enough to catch the Council's attention... Torrissio is not a nice man.\"");
		UcSay;
	labelFunc041E_056B:
		cmps("Petra");
		UI_remove_answer_0D("Petra");
		UcMessage("\"She's my serving wench, as well as being a damn fine cook -- which, considering she can neither eat nor taste, is rather incredible.\"");
		UcSay;
	labelFunc041E_057E:
		cmps("drink");
		if(!((UI_get_schedule_type_24(0xFFE2) == 0x0007) || (UI_get_schedule_type_24(0xFFE2) == 0x0017))) goto labelFunc041E_05AA;
		UcMessage("\"We serve only the finest of beverages.\"");
		UcSay;
		Func085F();
		goto labelFunc041E_05B5;
	labelFunc041E_05AA:
		UcMessage("\"Come talk to me when we be open for business!\"");
		UcSay;
		UI_remove_answer_0D("drink");
	labelFunc041E_05B5:
		cmps("room");
		UI_remove_answer_0D("room");
		if(!(gflags[00D8] == false)) goto labelFunc041E_05D8;
		UcMessage("\"We've nothing fancy -- simply clean rooms, and we keep the ruffians out.\"");
		UcSay;
		UcMessage("\"But thou lookest to be a respectable person.\"");
		UcSay;
		gflags[00D8] = true;
	labelFunc041E_05D8:
		UcMessage("\"The cost is 12 guilders per person. Wouldst thou like a room for the night?\"");
		UcSay;
		if(!Func0955()) goto labelFunc041E_067A;
		var000A = (UI_get_array_size_73(UI_get_party_list_2B()) * 0x000C);
		var000B = UI_count_objects_31(0xFE9B, 0x03B8, 0xFE99, 0xFE99);
		if(!(var000B >= var000A)) goto labelFunc041E_0648;
		UcMessage("\"Here is thy key.\"");
		UcSay;
		var000C = Func099B(0xFE9C, 0x0001, 0x0281, 0x00B8, 0x000B, 0x0000, true);
		var000D = UI_remove_party_items_34(var000A, 0x03B8, 0xFE99, 0xFE99, 0x0000);
		UcMessage("\"'Tis the northwest corner room.\"");
		UcSay;
		goto labelFunc041E_0677;
	labelFunc041E_0648:
		var0008 = Func0992(0x0001, "@But Avatar, we do not have the guilders!@", 0x0000, false);
		if(!(var0008 != 0xFE9C)) goto labelFunc041E_0673;
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Then thou canst not stay at the inn. In these hard times, I cannot afford to keep thee and thy companions for free.\"");
		UcSay;
		goto labelFunc041E_0677;
	labelFunc041E_0673:
		UcMessage("\"Thou hast not enough guilders for my rooms.\"");
		UcSay;
	labelFunc041E_0677:
		goto labelFunc041E_067E;
	labelFunc041E_067A:
		UcMessage("\"Some other time, perhaps.\"");
		UcSay;
	labelFunc041E_067E:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"I do indeed recognize the description. Such bottles are used to contain that foul brew which the sailor-folk of Fawn prefer. I cannot tolerate the swill myself, nor can any of my customers. That's why I do not stock it.\"");
		UcSay;
		var0008 = Func0992(0x0001, "@Perhaps we should investigate this place called Fawn.@", 0x0000, false);
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		if(!(var0008 != 0xFE9C)) goto labelFunc041E_06B9;
		UcMessage("\"Good luck to thee! With no ships sailing, there is no way to go to Fawn from here.\"");
		UcSay;
	labelFunc041E_06B9:
		UI_add_answer_0C("Fawn");
	labelFunc041E_06C0:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"'Tis somewhere on the western portion of the mainland. I never went there. Though I heard tell that it is a city built on great piers out in the water.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_06F9;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"Sounds dangerous to me...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"That is because thou canst not swim, Petra.\"");
		UcSay;
	labelFunc041E_06F9:
		cmps("Stefano");
		UI_remove_answer_0D("Stefano");
		UcMessage("\"He looked as pale as a corpse, ");
		UcMessage(var0000);
		UcMessage(". He babbled something about a Death Knight and ran out as though his pants were on fire. Sounds like he's in trouble again.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_0734;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"Again?! When is Stefano not in trouble?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc041E_0734:
		UI_add_answer_0C("Death Knight");
	labelFunc041E_073B:
		cmps("Death Knight");
		UI_remove_answer_0D("Death Knight");
		UcMessage("\"I would thank thee not to repeat that in here. As Petra says, no use borrowing trouble...\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_0774;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"I knew thou wert learning, Rocco.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh, go on with thee!\"");
		UcSay;
	labelFunc041E_0774:
		UcMessage("\"Some say that it is a Daemon summoned to hunt the unfortunate person. Others say that it is an automaton designed to kill. I do not know, nor do I wish to ask!\"");
		UcSay;
	labelFunc041E_0778:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"They are not anything that I would wear, and Petra's metal feet are never cold... least not as she would notice.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_07C7;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"I would know that it was cold, dear Rocco, but it would not trouble me.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"See there?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"But thou mightest ask Bucia. She may sell something like that.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Good idea, Petra!\"");
		UcSay;
	labelFunc041E_07C7:
		UI_add_answer_0C("Bucia");
	labelFunc041E_07CE:
		cmps("Bucia");
		UI_remove_answer_0D("Bucia");
		UcMessage("\"Bucia is the proprietor of the Capessi Canton in the bazaar. She is Moonshade's only provisioner.\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc041E_0807;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"And its greatest gossip, as well!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Petra, honestly!\"");
		UcSay;
	labelFunc041E_0807:
		UcMessage("\"Bucia may be able to tell thee if she sells anything like them. And who purchased them.\"");
		UcSay;
	labelFunc041E_080B:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Fare well@", 0x0000);
		Func097F(0xFFE2, "@Come again!@", 0x0002);
		Func08FF();
		goto labelFunc041E_0838;
	labelFunc041E_0835:
		goto labelFunc041E_01C6;
	labelFunc041E_0838:
		end_conv();
	labelFunc041E_0839:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AD 0x9AD (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func0900 0x900 (var var0000);
extern var Func095B 0x95B (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0988 0x988 (var var0000, var var0001);

Func041F 0x41F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFE1, 0x001D))) goto labelFunc041F_0088;
	UI_show_npc_face0_05(0xFFE1, 0x0000);
	UI_clear_item_flag_A5(0xFFE1, 0x001D);
	UI_reduce_health_87(0xFFE1, 0x0032, 0x0000);
	var0003 = Func0992(0x0001, 0x0000, 0x0000, true);
	Func097F(var0003, "@The witch is dead!@", 0x0005);
	UcMessage("\"With my dying breath, I place the Curse of the Red Witch upon thee!\"");
	UcSay;
	UcMessage("\"Arrgh...\"");
	UcSay;
	var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x016B], 0x0005);
	labelFunc041F_0088:
		if(!(event == 0x0001)) goto labelFunc041F_00BD;
		UI_item_say_4D(0xFE9C, "@Listen, witch!@");
		Func097F(0xFFE1, "@Cretin!@", 0x0005);
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0005, 0x55, 0x041F]);
	labelFunc041F_00BD:
		if(!(event == 0x0009)) goto labelFunc041F_01E4;
		UI_show_npc_face0_05(0xFFE1, 0x0000);
		if(!(!gflags[0133])) goto labelFunc041F_014A;
		UcMessage("\"So, thou hast come to rescue thy friend? Well, thou must kill me first -- I have the only key to his cell!\"");
		UcSay;
		UcMessage("\"Or wilt thou tell me the secret which I desire, the key to controlling Daemons!!!\"");
		UcSay;
		var0003 = Func0992(0x0001, "@But we know nothing about gargoyles... er, Daemons.@", "@But I know nothing of Daemons...@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then thou shalt die, liar.\"");
		UcSay;
		Func09AD(0xFFE1);
		UI_clear_item_say_4E(0xFFE1);
		Func097F(0xFFE1, "@Kill the Avatar!@", 0x0000);
		Func09AC(0xFFE1, Dupre, 0x0000, 0x0000);
		var0004 = UI_find_nearby_41(item, 0x016B, 0x001E, 0x0000);
		enum();
	labelFunc041F_0133:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc041F_0147);
		Func09AD(var0007);
		goto labelFunc041F_0133;
	labelFunc041F_0147:
		goto labelFunc041F_01E0;
	labelFunc041F_014A:
		UcMessage("\"I am tired of playing games with thee, ");
		UcMessage(var0002);
		UcMessage(". Thou must either give me thy secrets, or kill me -- I have the only key to this chamber!\"");
		UcSay;
		UcMessage("\"This is thy last chance -- wilt thou tell me the secret which I desire, the key to controlling Daemons!!!\"");
		UcSay;
		if(!Func0955()) goto labelFunc041F_01BA;
		UcMessage("\"Thou shalt not live to regret this. Open thy mind to me!\"");
		UcSay;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFFE1, 0x000A);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		gflags[0007] = true;
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x52, "@Ugh...@", 0x6C, 0x61, 0x59, 0x0000, 0x6C, 0x6D, 0x6E, 0x52, "@Mine head!@", 0x27, 0x0006, 0x55, 0x041F]);
		abrt();
		goto labelFunc041F_01E0;
	labelFunc041F_01BA:
		UcMessage("\"Then thou shalt die with thy secret, Avatar...\"");
		UcSay;
		Func09AD(0xFFE1);
		Func097F(0xFFE1, "@Die, fool!@", 0x0000);
		Func09AC(0xFFE1, Dupre, 0x0000, 0x0000);
		abrt();
	labelFunc041F_01E0:
		gflags[0148] = true;
	labelFunc041F_01E4:
		if(!(event == 0x0002)) goto labelFunc041F_09AA;
		if(!gflags[000A]) goto labelFunc041F_020D;
		gflags[000A] = false;
		UI_set_schedule_type_25(0xFFE1, 0x0003);
		Func097F(0xFFE1, "@Surprised, Avatar?@", 0x0003);
		abrt();
	labelFunc041F_020D:
		if(!gflags[0009]) goto labelFunc041F_027A;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0862, 0x0835, 0x0000]);
		UI_move_object_4B(0xFFE1, [0x086F, 0x0822, 0x0000]);
		gflags[0009] = false;
		gflags[000A] = true;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636, 0x27, 0x0008, 0x55, 0x041F], 0x0005);
		abrt();
	labelFunc041F_027A:
		if(!gflags[0008]) goto labelFunc041F_02C7;
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6E, 0x01, 0x78, 0x0064, 0x0002, 0x6E, 0x6E]);
		gflags[0008] = false;
		Func09AC(0xFFE1, Dupre, 0x0000, 0x0000);
		abrt();
	labelFunc041F_02C7:
		if(!gflags[0007]) goto labelFunc041F_0352;
		var0008 = UI_get_object_position_20(0xFE9C);
		var0008[0x0001] = (var0008[0x0001] - (var0008[0x0003] / 0x0002));
		var0008[0x0002] = (var0008[0x0002] - (var0008[0x0003] / 0x0002));
		UI_sprite_effect_68(0x001B, (var0008[0x0001] - 0x0001), (var0008[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		gflags[0007] = false;
		gflags[0008] = true;
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x6E, 0x01, 0x55, 0x041F, 0x6E], 0x0008);
		abrt();
	labelFunc041F_0352:
		if(!(gflags[0134] && (!gflags[00EA]))) goto labelFunc041F_03AF;
		UI_show_npc_face0_05(0xFED2, 0x0000);
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc041F_037C;
		UcMessage("\"I am speaking to thee from beyond the grave. I shall have vengeance!\"");
		UcSay;
		abrt();
		goto labelFunc041F_03AF;
	labelFunc041F_037C:
		UcMessage("\"Greetings, Stranger from Another Land. Once again, I am speaking to thee by means of a magic scroll.\"");
		UcSay;
		var0009 = UI_get_npc_name_30((0x0000 - UI_get_npc_id_BC(0xFFE1)));
		UcMessage("\"If thou art looking for thy companion, ");
		UcMessage(var0009);
		UcMessage(", look no further -- I have kidnapped him.\"");
		UcSay;
		UcMessage("\"Since thou wilt not give me thy secrets, I shall obtain them from him!\"");
		UcSay;
		UcMessage("\"Farewell, ");
		UcMessage(var0002);
		UcMessage("...\"");
		UcSay;
		gflags[00EA] = true;
		abrt();
	labelFunc041F_03AF:
		if(!((gflags[00D7] == true) && (!gflags[00E9]))) goto labelFunc041F_0663;
		gflags[00E9] = true;
		var000A = false;
		var000B = false;
		var000C = false;
		var000D = UI_get_array_size_73(UI_get_party_list_2B());
		UI_show_npc_face0_05(0xFED2, 0x0000);
		UcMessage("\"Greetings, Stranger from Another Land. I am speaking to thee by means of this magic scroll -- there is no need to be afraid.\"");
		UcSay;
		var000E = Func0900(0x0002);
		if(!(var000E != false)) goto labelFunc041F_0448;
		UI_show_npc_face1_06(var000E[0x0001], 0x0000);
		UcMessage("\"Afraid? Why, the Avatar is not afraid of magic.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"But all barbarians fear sorcery.\"");
		UcSay;
		UI_show_npc_face1_06(var000E[0x0002], 0x0000);
		var0003 = Func095B(var000E[0x0001]);
		UcMessage("\"Be quiet, ");
		UcMessage(var0003);
		UcMessage(". That witch can hear thee through that scroll!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Who said that! Death draws near for those who taunt Rotoluncia the Red Witch.\"");
		UcSay;
	labelFunc041F_0448:
		UI_add_answer_0C(["magic", "Council", "not afraid", "bye"]);
	labelFunc041F_045B:
		UcAsk;
		cmps("magic");
		UI_remove_answer_0D("magic");
		UcMessage("\"I am the most powerful wizard in this city, and I could teach thee many things -- if thou wert not a mere Mundane.\"");
		UcSay;
		var000E = Func0900(0x0002);
		if(!(var000E != false)) goto labelFunc041F_04D0;
		UI_show_npc_face1_06(var000E[0x0001], 0x0000);
		UcMessage("\"But the Avatar is not a Mundane...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What is this that they say?\"");
		UcSay;
		UI_show_npc_face1_06(var000E[0x0002], 0x0000);
		var0003 = Func095B(var000E[0x0001]);
		UcMessage("\"Thou dost speak overly much, ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc041F_04D0:
		UcMessage("\"Thou art not a mage, or I would have detected thy powers by now.\"");
		UcSay;
		UcMessage("\"Or... perhaps thou dost shield thine abilities from my senses? Most interesting...\"");
		UcSay;
		var000A = true;
	labelFunc041F_04DC:
		cmps("Council");
		UI_remove_answer_0D("Council");
		UcMessage("\"So my servant told thee that I sit on the Council of Mages? Perhaps I shall dismantle him to adjust a loose tongue...\"");
		UcSay;
		UcMessage("\"Indeed, I am one of the Three who rule this city, along with Gustacio the Decrepit, and that weak-willed profligate, Filbercio.\"");
		UcSay;
		var000B = true;
	labelFunc041F_04F7:
		cmps("not afraid");
		UI_remove_answer_0D("not afraid");
		UcMessage("\"Thou dost surprise me. Most Mundanes are frightened by the very idea of sorcery.\"");
		UcSay;
		UI_add_answer_0C("Mundanes");
	labelFunc041F_0511:
		cmps("Mundanes");
		UI_remove_answer_0D("Mundanes");
		UcMessage("\"Indeed, thou art from a distant land if thou dost not know such a common term.\"");
		UcSay;
		UcMessage("\"The world is divided into two sorts of Men -- those who can handle magics, and mere ordinary folk.\"");
		UcSay;
		var000F = [];
		if(!(var000D > 0x0001)) goto labelFunc041F_055C;
		var000F = "and thy companion";
		if(!(var000D > 0x0002)) goto labelFunc041F_0552;
		var000F = (var000F + "s");
	labelFunc041F_0552:
		var000F = (var000F + " ");
	labelFunc041F_055C:
		UcMessage("\"Common folk such as thee ");
		UcMessage(var000F);
		UcMessage("are known as the Mundane.\"");
		UcSay;
		var000C = true;
	labelFunc041F_056A:
		cmps("bye");
		UcMessage("\"Not so fast! Thou shouldst know that I met with thine ally, the fat and loathsome sage called Batlin...\"");
		UcSay;
		UcMessage("\"He travelled with a Daemon named Palos. Where did Batlin obtain such power? If I had this power, I could rule Serpent Isle!\"");
		UcSay;
		UcMessage("\"Reveal to me the secret of controlling Daemonfolk, and I shall reward thee with power beyond thy comprehension.\"");
		UcSay;
		if(!Func0955()) goto labelFunc041F_065A;
		UcMessage("\"Then open thy mind to me, and let me withdraw the knowledge which I lust after!\"");
		UcSay;
		var0010 = Func0992(0x0001, "@No, my friend. Thou must not...!@", 0x0000, false);
		if(!(var0010 != 0xFE9C)) goto labelFunc041F_060C;
		UI_set_npc_id_BD(0xFFE1, (0x0000 - var0010));
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thy friends must learn not to interfere in the interests of mages. Let them learn now!!!\"");
		UcSay;
		var0008 = UI_get_object_position_20(var0010);
		UI_obj_sprite_effect_91(UI_get_npc_object_23(var0010), 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0011 = UI_create_new_object_2C(0x037F);
		if(!var0011) goto labelFunc041F_0609;
		UI_set_item_flag_A4(var0011, 0x0012);
		var0004 = UI_update_last_created_2F(var0008);
	labelFunc041F_0609:
		goto labelFunc041F_0657;
	labelFunc041F_060C:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		gflags[0007] = true;
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x52, "@Ugh...@", 0x6C, 0x61, 0x59, 0x0000, 0x6C, 0x6D, 0x6E, 0x52, "@Mine head!@", 0x27, 0x0006, 0x55, 0x041F]);
		abrt();
	labelFunc041F_0657:
		goto labelFunc041F_065E;
	labelFunc041F_065A:
		UcMessage("\"I shall contact thee again, when perhaps thou shalt be more receptive to mine offers. Adieu.\"");
		UcSay;
	labelFunc041F_065E:
		abrt();
	labelFunc041F_065F:
		goto labelFunc041F_045B;
	labelFunc041F_0662:
		end_conv();
	labelFunc041F_0663:
		if(!(gflags[00DD] && (!gflags[00EA]))) goto labelFunc041F_09AA;
		UI_move_object_4B(0xFFE7, [0x09B9, 0x0715, 0x0000]);
		UI_set_schedule_type_25(0xFFE7, 0x000F);
		UI_set_item_flag_A4(0xFFE7, 0x001D);
		var0010 = (0x0000 - UI_get_npc_id_BC(0xFFE1));
		if(!((var0010 == 0x0000) || UI_get_item_flag_A3(var0010, 0x0004))) goto labelFunc041F_072E;
		var0004 = [];
		if(!(!UI_get_item_flag_A3(Shamino, 0x0004))) goto labelFunc041F_06D6;
		var0004 = (var0004 & Shamino);
	labelFunc041F_06D6:
		if(!(gflags[0078] && (!UI_get_item_flag_A3(Iolo, 0x0004)))) goto labelFunc041F_06F2;
		var0004 = (var0004 & Iolo);
	labelFunc041F_06F2:
		if(!(gflags[00B7] && (!UI_get_item_flag_A3(Dupre, 0x0004)))) goto labelFunc041F_070E;
		var0004 = (var0004 & Dupre);
	labelFunc041F_070E:
		if(!var0004) goto labelFunc041F_0728;
		var0010 = var0004[UI_get_random_00(UI_get_array_size_73(var0004))];
		goto labelFunc041F_072E;
	labelFunc041F_0728:
		var0010 = 0xFE9C;
	labelFunc041F_072E:
		gflags[00EA] = true;
		if(!(var0010 != 0xFE9C)) goto labelFunc041F_0924;
		UI_set_npc_id_BD(0xFFE1, (0x0000 - var0010));
		if(!UI_npc_nearby_3A(var0010)) goto labelFunc041F_07E9;
		UI_show_npc_face0_05(var0010, 0x0000);
		UcMessage("\"What! What's happening...\"");
		UcSay;
		var0008 = UI_get_object_position_20(var0010);
		var0008[0x0001] = (var0008[0x0001] - (var0008[0x0003] / 0x0002));
		var0008[0x0002] = (var0008[0x0002] - (var0008[0x0003] / 0x0002));
		UI_sprite_effect_68(0x001A, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = Func095B(var0010);
		var0003 = Func0992(0x0001, (("@" + var0009) + "!"), 0x0000, true);
		Func097F(0xFE9C, "@Where did he go!@", 0x0002);
		goto labelFunc041F_08DC;
	labelFunc041F_07E9:
		gflags[0134] = true;
		gflags[00EA] = false;
		var0012 = UI_create_new_object_2C(0x02C3);
		if(!var0012) goto labelFunc041F_0861;
		UI_set_item_frame_1B(var0012, 0x0006);
		var0004 = UI_set_item_quality_1D(var0012, 0x001F);
		var0008 = UI_get_object_position_20(0xFE9C);
		var0004 = UI_update_last_created_2F(var0008);
		UI_obj_sprite_effect_91(0xFE9C, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		if(!var0004) goto labelFunc041F_085E;
		var0003 = Func0992(0x0001, "@Look! A scroll!@", "@A scroll...@", true);
	labelFunc041F_085E:
		goto labelFunc041F_08DC;
	labelFunc041F_0861:
		var0004 = Func099B(0xFE9C, 0x0001, 0x02C3, 0x001F, 0x0006, 0x0012, false);
		if(!((var0004[0x0001] == 0x0000) && (var0004[0x0002] == 0x0000))) goto labelFunc041F_08A5;
		var0003 = Func0992(0x0001, "@Thou hast a scroll!@", "@A scroll!@", true);
		goto labelFunc041F_08DC;
	labelFunc041F_08A5:
		if(!(var0004[0x0001] == 0x0000)) goto labelFunc041F_08C5;
		var0003 = Func0992(0x0001, "@Look! A scroll!@", "@A scroll...@", true);
		goto labelFunc041F_08DC;
	labelFunc041F_08C5:
		var0003 = Func0992(UI_get_npc_number_47(var0004[0x0001]), "@Look what I have!@", "@Thou hast a scroll!@", true);
	labelFunc041F_08DC:
		if(!UI_get_item_flag_A3(var0010, 0x0006)) goto labelFunc041F_08F0;
		UI_remove_from_party_27(var0010);
	labelFunc041F_08F0:
		UI_set_new_schedules_B6(var0010, 0x0000, 0x0007, [0x0858, 0x0837]);
		UI_run_schedule_B7(var0010);
		UI_move_object_4B(var0010, [0x0858, 0x0837, 0x0000]);
		abrt();
		goto labelFunc041F_09AA;
	labelFunc041F_0924:
		gflags[0133] = true;
		var0004 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc041F_093A:
		for (var0012 in var0004 with var0013 to var0014 atend labelFunc041F_095E);
		UI_remove_from_party_27(var0012);
		Func09AC(var0012, Dupre, 0x0000, 0x000C);
		goto labelFunc041F_093A;
	labelFunc041F_095E:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x001A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x041F], 0x000D);
		gflags[0009] = true;
		abrt();
	labelFunc041F_09AA:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func086F 0x86F ();
extern Func086E 0x86E ();
extern Func08FF 0x8FF ();

Func0420 0x420 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = UI_part_of_day_48();
	var0002 = UI_is_pc_female_6F();
	var0003 = Func0953();
	var0004 = UI_part_of_day_48();
	if(!((var0004 > 0x0001) || (var0004 < 0x0006))) goto labelFunc0420_003C;
	var0004 = "day";
	goto labelFunc0420_0042;
	labelFunc0420_003C:
		var0004 = "evening";
	labelFunc0420_0042:
		if(!(event == 0x0001)) goto labelFunc0420_0078;
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		0xFFE0;
		calle();
		Func097F(0xFFE0, (("@Yes " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFE0, 0x0003);
	labelFunc0420_0078:
		if(!(event == 0x0009)) goto labelFunc0420_07AB;
		UI_run_schedule_B7(0xFFE0);
		UI_clear_item_say_4E(0xFFE0);
		UI_show_npc_face0_05(0xFFE0, 0x0000);
		var0005 = UI_get_item_flag_A3(0xFFE0, 0x001C);
		if(!(var0005 == false)) goto labelFunc0420_00F3;
		UcMessage("\"Allow me to introduce myself. I'm Topo the Artisan, apprenticed to Master Ducio.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFE0, 0x001C);
		if(!Func0942(0xFFF1)) goto labelFunc0420_00DB;
		UcMessage("\"I'm a lucky man, to serve such a talented craftsman.\"");
		UcSay;
		Func094E(0xFFF1, "@He's a good boy.@");
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc0420_00E3;
	labelFunc0420_00DB:
		UcMessage("\"Someday I hope to be as rich and lazy as my master!\"");
		UcSay;
		UcMessage("\"He spends all his time asleep or at the inn, except when he comes here to make me crazy with his nagging.\"");
		UcSay;
	labelFunc0420_00E3:
		UI_add_answer_0C(["Artisan", "Ducio"]);
		goto labelFunc0420_0126;
	labelFunc0420_00F3:
		if(!Func0942(0xFFF1)) goto labelFunc0420_011B;
		UcMessage("\"Again, welcome! Might I be able to help thee today?\"");
		UcSay;
		Func094E(0xFFF1, "@Do not be so wordy.@");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
		goto labelFunc0420_0126;
	labelFunc0420_011B:
		UcMessage("\"Again, welcome! As thou canst see, Master Ducio is not here at present. Perhaps I can help thee.\"");
		UcSay;
		UI_add_answer_0C("Ducio's whereabouts");
	labelFunc0420_0126:
		if(!(gflags[010F] && (!gflags[028E]))) goto labelFunc0420_0138;
		UI_add_answer_0C("urn");
	labelFunc0420_0138:
		if(!(gflags[0111] && (!gflags[028F]))) goto labelFunc0420_014A;
		UI_add_answer_0C("apparatus");
	labelFunc0420_014A:
		if(!(gflags[0115] && (!gflags[0293]))) goto labelFunc0420_015C;
		UI_add_answer_0C("slippers");
	labelFunc0420_015C:
		if(!(gflags[0116] && (!gflags[0296]))) goto labelFunc0420_016E;
		UI_add_answer_0C("strange brush");
	labelFunc0420_016E:
		if(!(UI_get_schedule_type_24(0xFFE0) == 0x000C)) goto labelFunc0420_0183;
		UI_add_answer_0C("buy");
	labelFunc0420_0183:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0420_019C;
		UI_add_answer_0C("kidnap");
	labelFunc0420_019C:
		if(!Func097D(0xFE9B, 0x0001, 0x02F8, 0xFE99, 0xFE99)) goto labelFunc0420_01B8;
		UI_add_answer_0C("sell gems");
	labelFunc0420_01B8:
		UI_add_answer_0C(["buy", "bye"]);
	labelFunc0420_01C5:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		UcMessage("\"I am terribly sorry for thee at this sensitive time. Grief is a natural emotion...\"");
		UcSay;
		var0006 = Func0992(0x0001, "@Our friend is missing -- not DEAD!@", "@Canst thou be of aid?@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou shouldst bring this matter to the attention of the Rangers. Julia would not let such an injustice stand, I am sure of it.\"");
		UcSay;
		gflags[0140] = true;
	labelFunc0420_01FA:
		cmps("Artisan");
		UI_remove_answer_0D("Artisan");
		UcMessage("\"I have worked with Master Ducio for several years now. Soon I'll be able to open a shop of mine own... Topo's Treasures, I'll call it.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_0233;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Thou art an apprentice, boy! Thou dost not work with me. Thou dost work for me! Understand?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_0233:
		UcMessage("\"I work with the pottery. The automatons have trouble handling the slip... They generally crush a piece before 'tis fully formed and ready to fire. After firing, they are fine, but before -- that is where I work.\"");
		UcSay;
		UI_add_answer_0C(["automatons", "slip", "firing"]);
	labelFunc0420_0247:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"My Master is one of the wealthiest Mundanes in Moonshade. There is no comparison to the Mages, of course. We have three automatons -- one for sewing, one for blacksmith work, and one for baking.\"");
		UcSay;
		if(!(!Func0942(0xFFF1))) goto labelFunc0420_0268;
		UcMessage("\"That is what my Master actually specializes in... making everyone else do his work!\"");
		UcSay;
	labelFunc0420_0268:
		UI_add_answer_0C(["Mages", "Mundanes"]);
	labelFunc0420_0275:
		cmps("Mages");
		UI_remove_answer_0D("Mages");
		UcMessage("\"That is where the true money lies in Moonshade, ");
		UcMessage(var0000);
		UcMessage(". But if thou dost not possess magic, thou must work for a living...\"");
		UcSay;
		if(!(!Func0942(0xFFF1))) goto labelFunc0420_029C;
		UcMessage("\"Unless thou art my Master, that is!\"");
		UcSay;
	labelFunc0420_029C:
		UcMessage("\"The only thing a lowly Mundane can hope for is to be able to afford an automaton from Torrissio, to help with the work load.\"");
		UcSay;
		UI_add_answer_0C("Torrissio");
	labelFunc0420_02A7:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Torrissio is the Adept that makes the automatons. No one knows how he does it...\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_02F6;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Art thou a Mage, Topo?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"No, master... I am a Mundane apprentice.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Then thou dost not know what a Mage may or may not know!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_02F6:
		UcMessage("\"Though most of the automatons Torrissio makes are strictly utilitarian, he is capable of making far more sophisticated models... Thou hast only to look at Petra.\"");
		UcSay;
		UI_add_answer_0C("Adept");
	labelFunc0420_0301:
		cmps("Adept");
		UI_remove_answer_0D("Adept");
		UcMessage("\"Those who are blessed with magical ability are not all equal, ");
		UcMessage(var0000);
		UcMessage(". Some, like Andrio, are novices who still have yet to learn their craft. And some, like Stefano, have little power to command even after they learn.\"");
		UcSay;
		UI_add_answer_0C(["Andrio", "Stefano"]);
	labelFunc0420_0327:
		cmps("Andrio");
		UI_remove_answer_0D("Andrio");
		UcMessage("\"Andrio is my friend... which is surprising since he is also a novice Mage. Perhaps the outrageous arrogance hath not developed in him yet.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_0360;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Enough talk! Back to work!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_0360:
		cmps("Stefano");
		UI_remove_answer_0D("Stefano");
		UcMessage("\"Thou wouldst like Stefano, I'm certain! Although he can cast a spell or two, he is not very good at it. So he makes his living by stealing things from one Mage for another.\"");
		UcSay;
		UcMessage("\"'Tis actually very amusing. He shuns his magic and those who would look down on him must deal with him to acquire things they want... Perhaps there is some justice in the world, after all.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_03B6;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"How many times have I told thee to stay away from that thief, boy?! Dost thou think stealing is funny?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Nooo, master...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I should hope not! Or I'd break thine head for thee!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
		goto labelFunc0420_03BA;
	labelFunc0420_03B6:
		UcMessage("\"Now, if only someone would turn Ducio into a workbench, it would be the most useful he's ever been!\"");
		UcSay;
	labelFunc0420_03BA:
		cmps("Mundanes");
		UI_remove_answer_0D("Mundanes");
		UcMessage("\"That is the title that Mages give those who cannot cast spells, ");
		UcMessage(var0000);
		UcMessage(". They assume that there is little to note of a person's life if it is not spent in pursuit of magic and pomposity.\"");
		UcSay;
		UcMessage("\"Yet they will never know the thrill of having a fine pot shape itself under their hand from a formless piece of mud...\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_03FD;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Mud?! Mud! Back to work! Thou must lack for things to do...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master... I mean, no, Master...\"");
		UcSay;
	labelFunc0420_03FD:
		cmps("slip");
		UI_remove_answer_0D("slip");
		UcMessage("\"Slip is the wet clay that is formed into cups, or plates, or jugs... Almost anything! If thou hast a patient enough hand, thou canst create a world of goods from mere clay.\"");
		UcSay;
		if(!(!Func0942(0xFFF1))) goto labelFunc0420_041E;
		UcMessage("\"And heavens know that I'm patient enough... dealing with my slug of a Master!\"");
		UcSay;
	labelFunc0420_041E:
		cmps("firing");
		UI_remove_answer_0D("firing");
		UcMessage("\"Firing is where a piece of shaped clay is turned into the ceramic utensils thou art familiar with. By heating the clay to a great temperature, the water dries from the piece and it becomes tough and resilient.\"");
		UcSay;
		UcMessage("\"But if the piece is heated or cooled too quickly, it becomes brittle and fragile. 'Tis a very exacting task.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_045B;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Who made thee a teacher, apprentice?! Back to work!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_045B:
		cmps("Ducio");
		UI_remove_answer_0D("Ducio");
		if(!Func0942(0xFFF1)) goto labelFunc0420_048F;
		UcMessage("\"Ducio is my Master. He produces the finest goods in all the city! His pottery is famed throughout the other islands as well...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Enough bragging. Humility. Thou must learn humility.@\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc0420_049E;
	labelFunc0420_048F:
		UcMessage("\"If ever I believed in shape changing, I believe it with Ducio! That man is too lazy to be human... a slug, maybe. But a human, no.\"");
		UcSay;
		UcMessage("\"If it weren't for me and the automatons, he'd have to join old Mosh out begging!\"");
		UcSay;
		UI_add_answer_0C("Mosh");
	labelFunc0420_049E:
		cmps("Mosh");
		UI_remove_answer_0D("Mosh");
		UcMessage("\"Mosh is the town beggar. She's very ugly... and crazy, too.\"");
		UcSay;
		UcMessage("\"She claims to be Columna's twin sister!\"");
		UcSay;
	labelFunc0420_04B5:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"She is also known as the Green Enchantress. She's quite pretty, in her own way. For a Mage...\"");
		UcSay;
	labelFunc0420_04C8:
		cmps("Ducio's whereabouts");
		UI_remove_answer_0D("Ducio's whereabouts");
		if(!(var0001 > 0x0005)) goto labelFunc0420_04F9;
		UcMessage("\"The Master doth dine at the inn at this hour. Thou canst find him there.\"");
		UcSay;
		UcMessage("\"Canst thou imagine? He doth leave his	apprentice here, with nothing but a loaf of dry bread, while he doth gorge himself on Petra's baked fish!\"");
		UcSay;
		UI_add_answer_0C(["inn", "Petra"]);
		goto labelFunc0420_0516;
	labelFunc0420_04F9:
		if(!(var0001 < 0x0003)) goto labelFunc0420_0512;
		UcMessage("\"No doubt the Master is yet at home, getting his rest after a long day.\"");
		UcSay;
		UcMessage("\"Yet I, who work far harder and longer than he, must be here promptly at dawn.\"");
		UcSay;
		UcMessage("\"'Tis a dirty business, this apprenticeship thing. I despise it.\"");
		UcSay;
		goto labelFunc0420_0516;
	labelFunc0420_0512:
		UcMessage("\"I haven't a clue, except that I'm here doing all of the work, and he's not.\"");
		UcSay;
	labelFunc0420_0516:
		cmps("inn");
		UI_remove_answer_0D("inn");
		UcMessage("\"The Blue Boar inn. 'Tis in the northern part of the city, just west of the Palace. Many of the Mages eat there as well.\"");
		UcSay;
		UcMessage("\"Thou canst bargain Rocco down on his prices, if thou dost try hard enough.\"");
		UcSay;
		UI_add_answer_0C("Rocco");
	labelFunc0420_0534:
		cmps("Rocco");
		UI_remove_answer_0D("Rocco");
		UcMessage("\"Rocco is the innkeeper at the Blue Boar. He's a gruff man, whose sole pleasure in life seems to be haggling. Well, besides Petra, that is.\"");
		UcSay;
	labelFunc0420_0547:
		cmps("Petra");
		UI_remove_answer_0D("Petra");
		UcMessage("\"Petra is an automaton. She is Torrissio's master work... She looks exactly like a real woman, but of metal. She's quite remarkable.\"");
		UcSay;
		UcMessage("\"Petra looks after Rocco, and cooks for the inn. In fact, she serves the finest baked fish around. Thou shouldst try it some time.\"");
		UcSay;
	labelFunc0420_055E:
		cmps("urn");
		UI_remove_answer_0D("urn");
		UcMessage("\"As thou hast probably deduced, I am an expert	craftsman -- particularly with pots and urns.\"");
		UcSay;
		UcMessage("\"Show me thine urn, and I shall unlock its secrets for thee.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_0592;
		Func094E(0xFFF1, "@Don't be so boastful. Thou art making a
						fool of thyself!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master.\"");
		UcSay;
	labelFunc0420_0592:
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000)) goto labelFunc0420_05D1;
		UcMessage("\"Indeed. Note the simple scrollwork, the plain	glazing, the orange hue of the clay...\"");
		UcSay;
		UcMessage("\"Now look within. Dost thou see the ashes which fill this urn?\"");
		UcSay;
		UcMessage("\"Thou dost carry the funeral remains of one of	the good citizens of Monitor, the warrior city.\"");
		UcSay;
		gflags[028E] = true;
		Func094E(0xFFF1, "@They'll want it back. Monitorians revere
						their dead.@");
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C("Monitor");
		goto labelFunc0420_05EC;
	labelFunc0420_05D1:
		var0006 = Func0992(Iolo, "@But we don't have it with
								us...@", "@I've not brought it with me.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Bring it by, and I shall give thee thine answer.\"");
		UcSay;
	labelFunc0420_05EC:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"I have never left Moonshade, ");
		UcMessage(var0000);
		UcMessage(", so I don't know much about it. I'm told that all the citizens of Monitor are mighty warriors. Though that sounds a bit odd, to me.\"");
		UcSay;
		UcMessage("\"Couldst thou imagine what would happen if thou wert to disagree with a shopkeeper over the prices of his wares? Why, thou couldst find thyself very dead! Or badly hurt at the least...\"");
		UcSay;
		UcMessage("\"Thou couldst see if Hawk is at the Blue Boar. He's a sailor and might know more than a man who's never left this island.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_0633;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Since when art thou a guide? Back to work!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_0633:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		UcMessage("\"Zounds, I don't know... 'Tis like nothing I've seen before.\"");
		UcSay;
	labelFunc0420_0646:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"Definitely do not look like anything that a Mage would have lost. They have much more expensive tastes...\"");
		UcSay;
		UcMessage("\"Thou couldst try asking Bucia, though. If anyone might know where these slippers came from, it would be her.\"");
		UcSay;
		UI_add_answer_0C("Bucia");
	labelFunc0420_0664:
		cmps("Bucia");
		UI_remove_answer_0D("Bucia");
		UcMessage("\"Bucia runs the Capessi Canton for Flindo. She is the provisioner here in Moonshade. She will be able to tell thee who buys what, I'm sure. Bucia adores gossip...\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_069D;
		UI_show_npc_face1_06(0xFFF1, 0x0000);
		UcMessage("\"Thou art a fine one to talk! Work! Or I shall rip out thy tongue!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master...\"");
		UcSay;
	labelFunc0420_069D:
		cmps("strange brush");
		UI_remove_answer_0D("strange brush");
		UcMessage("\"As an expert craftsman, I can tell thee what most materials are, if I can examine the item.\"");
		UcSay;
		if(!Func0942(0xFFF1)) goto labelFunc0420_06CD;
		Func094E(0xFFF1, "@Thou art a braggart. Thou art trying my
						patience!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, master.\"");
		UcSay;
	labelFunc0420_06CD:
		if(!Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0005)) goto labelFunc0420_06FE;
		UcMessage("\"Odd brush... Certainly doth not seem like anything a lady would want.\"");
		UcSay;
		UcMessage("\"Look. See how porous the handle is... This definitely isn't wood. And I don't think it would last with strenuous use.\"");
		UcSay;
		UcMessage("\"From the looks of it, ");
		UcMessage(var0000);
		UcMessage(", I'd say that it was made of bone. Thou couldst ask Mortegro, to be sure though.\"");
		UcSay;
		UI_add_answer_0C("Mortegro");
		goto labelFunc0420_0719;
	labelFunc0420_06FE:
		var0006 = Func0992(Iolo, "@But it's not here...@", "@I've not brought it with me.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Bring it with thee some time and I shall tell thee what it is made of.\"");
		UcSay;
	labelFunc0420_0719:
		cmps("Mortegro");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"Mortegro is an Adept that specializes in the realm of the dead. He's a bit eerie, but if that truly is bone, he would be able to tell thee for sure.\"");
		UcSay;
		UcMessage("\"Last time I heard, Mortegro was helping Gustacio on some sort of weather experiment. Thou mightest look for him there, or at the Blue Boar.\"");
		UcSay;
	labelFunc0420_0730:
		cmps("buy");
		if(!(UI_get_schedule_type_24(0xFFE0) == 0x000C)) goto labelFunc0420_074C;
		Func086F();
		goto labelFunc0420_0750;
	labelFunc0420_074C:
		UcMessage("\"If thou wouldst talk to me when I am at work, I would gladly sell thee something.\"");
		UcSay;
	labelFunc0420_0750:
		cmps("sell gems");
		if(!(UI_get_schedule_type_24(0xFFE0) == 0x000C)) goto labelFunc0420_076C;
		Func086E();
		goto labelFunc0420_0776;
	labelFunc0420_076C:
		UcMessage("\"I can buy thy gems when I am at work, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0420_0776:
		UI_remove_answer_0D("sell gems");
	labelFunc0420_077D:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(0xFFE0, "@Come again!@", 0x0002);
		Func08FF();
		goto labelFunc0420_07AA;
	labelFunc0420_07A7:
		goto labelFunc0420_01C5;
	labelFunc0420_07AA:
		end_conv();
	labelFunc0420_07AB:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0871 0x871 ();
extern var Func0955 0x955 ();
extern Func0986 0x986 (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08FF 0x8FF ();

Func0421 0x421 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = false;
	var0004 = UI_part_of_day_48();
	if(!((var0004 > 0x0001) || (var0004 < 0x0006))) goto labelFunc0421_0039;
	var0004 = "day";
	goto labelFunc0421_003F;
	labelFunc0421_0039:
		var0004 = "evening";
	labelFunc0421_003F:
		var0005 = false;
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0421_0066;
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0329]);
	labelFunc0421_0066:
		if(!(event == 0x0001)) goto labelFunc0421_0094;
		UI_item_say_4D(0xFE9C, "@Might we speak?@");
		0xFFDF;
		calle();
		Func097F(0xFFDF, "@Make it brief...@", 0x0002);
		UI_set_schedule_type_25(0xFFDF, 0x0003);
	labelFunc0421_0094:
		if(!(event == 0x0009)) goto labelFunc0421_08DA;
		UI_run_schedule_B7(0xFFDF);
		UI_clear_item_say_4E(0xFFDF);
		UI_show_npc_face0_05(0xFFDF, 0x0000);
		var0007 = UI_get_item_flag_A3(0xFFDF, 0x001C);
		if(!(var0007 == false)) goto labelFunc0421_00D7;
		UI_set_item_flag_A4(0xFFDF, 0x001C);
		UcMessage("\"I am Torrissio, a Mage of Moonshade.\"");
		UcSay;
	labelFunc0421_00D7:
		UcMessage("\"I am not a sociable man, so this will be brief. What dost thou desire of me, and at what price?\"");
		UcSay;
		if(!(gflags[023D] && (!gflags[0136]))) goto labelFunc0421_00ED;
		UI_add_answer_0C("magic wand");
	labelFunc0421_00ED:
		if(!gflags[0147]) goto labelFunc0421_00FA;
		UI_add_answer_0C("magic wand");
	labelFunc0421_00FA:
		if(!(gflags[012D] && (!gflags[00FF]))) goto labelFunc0421_010C;
		UI_add_answer_0C("soul trapping");
	labelFunc0421_010C:
		if(!(gflags[0110] && (!gflags[028F]))) goto labelFunc0421_011E;
		UI_add_answer_0C("apparatus");
	labelFunc0421_011E:
		if(!(gflags[0114] && (!gflags[0293]))) goto labelFunc0421_0130;
		UI_add_answer_0C("slippers");
	labelFunc0421_0130:
		if(!gflags[00FF]) goto labelFunc0421_013D;
		UI_add_answer_0C("Worm Gems");
	labelFunc0421_013D:
		if(!(gflags[00EA] && (!UI_get_item_flag_A3(0xFFE1, 0x0004)))) goto labelFunc0421_0156;
		UI_add_answer_0C("kidnap");
	labelFunc0421_0156:
		if(!(gflags[00E2] && (!UI_get_item_flag_A3(0xFF58, 0x0004)))) goto labelFunc0421_016F;
		UI_add_answer_0C("Stefano");
	labelFunc0421_016F:
		if(!(Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000) && (!gflags[013B]))) goto labelFunc0421_0190;
		UI_add_answer_0C("stockings");
	labelFunc0421_0190:
		if(!gflags[00F5]) goto labelFunc0421_019D;
		UI_add_answer_0C("help Fedabiblio");
	labelFunc0421_019D:
		UI_add_answer_0C(["Torrissio"]);
		UI_add_answer_0C("bye");
	labelFunc0421_01AE:
		UcAsk;
		cmps("kidnap");
		UI_remove_answer_0D("kidnap");
		if(!gflags[0142]) goto labelFunc0421_0203;
		UcMessage("\"So thou dost suspect me of taking thy companion, ");
		UcMessage(var0002);
		UcMessage("? And thou dost dare to confront me -- a Mage!\"");
		UcSay;
		UcMessage("\"I am flattered by the suspicions, but alas... I am innocent in this case.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFF9)) goto labelFunc0421_01E5;
		UcMessage("\"As thou canst surely see, thy companion is not being held prisoner in my manor. Look around at thy pleasure.\"");
		UcSay;
		goto labelFunc0421_01E9;
	labelFunc0421_01E5:
		UcMessage("\"Search my manor! I have no prisoners there...\"");
		UcSay;
	labelFunc0421_01E9:
		Func097F(0xFFDF, "@Now leave me alone...@", 0x0000);
		UI_set_schedule_type_25(0xFFDF, 0x000C);
		abrt();
		goto labelFunc0421_0221;
	labelFunc0421_0203:
		UcMessage("\"Such poor luck, ");
		UcMessage(var0002);
		UcMessage("... to have angered one of the Mages of Moonshade...\"");
		UcSay;
		UcMessage("\"Could it be Mortegro, he for whom the cold sensations of death are more vivid than life?\"");
		UcSay;
		gflags[013F] = true;
		UcMessage("\"And what of Rotoluncia? She dislikes thee -- everyone knows it.\"");
		UcSay;
		UcMessage("\"If I were thee, I would speak to MageLord Filbercio about this matter. Mages are involved, so thy duty is clear.\"");
		UcSay;
		gflags[0141] = true;
	labelFunc0421_0221:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"I am Torrisso of Moonshade, Adept Mage and master of life spells.\"");
		UcSay;
		UI_add_answer_0C(["Moonshade", "Adept Mage", "life spells"]);
	labelFunc0421_0244:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"Moonshade is in many ways a perfect city, a perfect example of civilization with that highest form of government -- a Magocracy.\"");
		UcSay;
		UI_add_answer_0C("Magocracy");
	labelFunc0421_025E:
		cmps("Adept Mage");
		UI_remove_answer_0D("Adept Mage");
		UcMessage("\"I come from one of the longest family lines of mages in all of the Serpent Isle. That is how one tells a good mage, thou must know -- by his family line. Good mages are a result of good breeding. My father always said that.\"");
		UcSay;
		UI_add_answer_0C("family line");
	labelFunc0421_0278:
		cmps("family line");
		UI_remove_answer_0D("family line");
		UcMessage("\"A thousand years ago, our ancestors performed tricks to amuse peasants. Hundreds of years ago they were the most trusted advisors to Kings and rulers of the land. When it comes to magic the only bloodline more pure than mine is that of the ruling family. Of course, my family was decimated in the old war. If not for that, I might be ruler today.\"");
		UcSay;
		UI_add_answer_0C(["ruling family", "old war"]);
	labelFunc0421_0298:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		var0008 = Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001);
		if(!var0008) goto labelFunc0421_02CD;
		UcMessage("\"That looks like the sort of equipment used by Erstam, the Mad Mage! He lives at the place called Mad Mage Island.\"");
		UcSay;
		gflags[028F] = true;
		goto labelFunc0421_02D1;
	labelFunc0421_02CD:
		UcMessage("\"If thou had the item I am certain I could tell thee more about it.\"");
		UcSay;
	labelFunc0421_02D1:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"I would ask about them at the Inn of Sleeping Bull if I were thee.\"");
		UcSay;
	labelFunc0421_02E4:
		cmps("ruling family");
		UI_remove_answer_0D("ruling family");
		UcMessage("\"That would be the bloodline of the MageLord of Moonshade, Filbercio.\"");
		UcSay;
	labelFunc0421_02F7:
		cmps("old war");
		UI_remove_answer_0D("old war");
		UcMessage("\"According to family records, most of my family members were killed fighting the Daemons. This is the war which brought an end to the Age of the Two Kings.\"");
		UcSay;
	labelFunc0421_030A:
		cmps("life spells");
		UI_remove_answer_0D("life spells");
		UcMessage("\"My personal specialty is spells involving healing and the sustenance of life energies.\"");
		UcSay;
		UI_add_answer_0C("buy spells");
	labelFunc0421_0324:
		cmps("Magocracy");
		UI_remove_answer_0D("Magocracy");
		UcMessage("\"A government totally controlled by Mages is the only sensible form of government. Mages have a holistic understanding of the world that makes them far more suited to the responsibilities of government than any mundane could ever be. With Filbercio at the head of the Council of Mages, things are accomplished quickly with a minimum of politics.\"");
		UcSay;
		UI_add_answer_0C(["Council of Mages", "Filbercio", "politics"]);
	labelFunc0421_0347:
		cmps("buy spells");
		if(!gflags[0127]) goto labelFunc0421_0364;
		UI_remove_answer_0D("buy spells");
		UcMessage("\"Thou hast betrayed me and betrayed my lover by giving her stolen property to Filbercio for a mere pittance of profit! Now thou dost expect me to help thee?! Begone from my sight!\"");
		UcSay;
		abrt();
		goto labelFunc0421_0384;
	labelFunc0421_0364:
		if(!(var0003 == false)) goto labelFunc0421_0374;
		UcMessage("\"Of course I can sell thee a spell! I have recently sold a spell to another person passing through Moonshade. It is just such a business upon which the city of Moonshade was built. With all of the experiments and developments we produce here in the magical arts, we are practically the center of the world.\"");
		UcSay;
		var0003 = true;
	labelFunc0421_0374:
		Func0871();
		UI_add_answer_0C(["Sold to whom?", "experiments"]);
	labelFunc0421_0384:
		cmps("Sold to whom?");
		UI_remove_answer_0D("Sold to whom?");
		UcMessage("\"Why, that fat sage that passed through town a while ago. Batlin. I remember not the specifics of the transaction.\"");
		UcSay;
	labelFunc0421_0397:
		cmps("experiments");
		UI_remove_answer_0D("experiments");
		UcMessage("\"I do not wish to violate the privacy of a fellow mage, but there is at least one mage in town working on solving the mystery of these distressing teleport storms.\"");
		UcSay;
	labelFunc0421_03AA:
		cmps("Council of Mages");
		UI_remove_answer_0D("Council of Mages");
		UcMessage("\"Do not even raise this topic -- I have no stomach for the political games which one must play in order to win a seat on the Council.\"");
		UcSay;
	labelFunc0421_03BD:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"He is a shrewd and stern ruler. A highly skilled mage. He is not someone thou wouldst want to cross.\"");
		UcSay;
	labelFunc0421_03D0:
		cmps("politics");
		UI_remove_answer_0D("politics");
		UcMessage("\"Of course, nothing ever gets done without a little politics.");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFE1, 0x0004)) goto labelFunc0421_03F7;
		UcMessage("\"I was allied with Rotoluncia, but her death makes our partnership void.\"");
		UcSay;
		goto labelFunc0421_0408;
	labelFunc0421_03F7:
		UcMessage("\"One's enemies and allies are constantly shifting. That is why Rotoluncia and I have formed a sort of coalition, wherein we both work to protect each other's best interests.\"");
		UcSay;
		UI_add_answer_0C(["Rotoluncia", "allies and enemies"]);
	labelFunc0421_0408:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"Of course, our working together hath led to a few rumors -- such is the way of politics. But even partners disagree. For instance, she is convinced that there is some sort of connection between thee and this other stranger who visited us -- Batlin.\"");
		UcSay;
		UI_add_answer_0C(["partners", "Batlin"]);
	labelFunc0421_0428:
		cmps("allies and enemies");
		UI_remove_answer_0D("allies and enemies");
		UcMessage("\"Of course, in the realm of politics as well as the realm of magic what is one today may very well be the other tomorrow!\"");
		UcSay;
	labelFunc0421_043B:
		cmps("partners");
		UI_remove_answer_0D("partners");
		UcMessage("\"Partners with Rotoluncia in politics. But partners with Columna in love.\"");
		UcSay;
		UI_add_answer_0C("Columna");
	labelFunc0421_0455:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"Rotoluncia was quite repulsed yet fascinated with Batlin and his secrets. To think of it makes me wish to offer thee a word of advice.\"");
		UcSay;
		UI_add_answer_0C(["secrets", "advice"]);
	labelFunc0421_0475:
		cmps("secrets");
		UI_remove_answer_0D("secrets");
		UcMessage("\"While Batlin was here, he exhibited some sort of power or talent or knowledge. Rotoluncia is now obsessed with it although she will not speak much about this with me.\"");
		UcSay;
	labelFunc0421_0488:
		cmps("advice");
		UI_remove_answer_0D("advice");
		UcMessage("\"Rotoluncia is not the sort of woman that thou dost want angry at thee. Mine advice to thee is that whatever she wants, thou shouldst give it to her.\"");
		UcSay;
	labelFunc0421_049B:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"Our love must remain a secret. This saddens her, and myself as well. There are those who would come between us, who plan against us. Her heart was touched by a song sung by the lady Gwenno.\"");
		UcSay;
		UI_add_answer_0C(["plan against thee", "Gwenno"]);
	labelFunc0421_04BB:
		cmps("plan against thee");
		UI_remove_answer_0D("plan against thee");
		UcMessage("\"I do not wish to burden thee with my personal problems. The less said of these things, the better.\"");
		UcSay;
	labelFunc0421_04CE:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"She came passing through our city several weeks ago. From what I hear, she is a most unusual and interesting woman.\"");
		UcSay;
	labelFunc0421_04E1:
		cmps("Stefano");
		UI_remove_answer_0D("Stefano");
		UcMessage("\"Columna and I have received information that it was Stefano who attempted to destroy our love by stealing her stockings from my manor house.\"");
		UcSay;
		if(!gflags[0239]) goto labelFunc0421_0501;
		UcMessage("\"Now that he hath dared to show his face again, it shall be him who is destroyed. Columna and I have already seen to that!\"");
		UcSay;
		goto labelFunc0421_0509;
	labelFunc0421_0501:
		UcMessage("\"When Filbercio sentenced him to death in the Mountains of Freedom, I laughed until blood ran from mine eyes!\"");
		UcSay;
		UcMessage("\"It will serve that cretin good, to be entombed with the rats and maggots in that prison.\"");
		UcSay;
	labelFunc0421_0509:
		cmps("stockings");
		UI_remove_answer_0D("stockings");
		if(!var0001) goto labelFunc0421_061E;
		if(!(!gflags[013C])) goto labelFunc0421_0614;
		UcMessage("\"I beseech thee to turn over to me that which is the instrument of humiliation against a woman who hath done thee no harm. They belong to my lover Columna and they were stolen by the bandit Stefano. Columna's stockings can be used as evidence of our affair. I neither know nor care how thou hast come into possession of them. But know this: I shall have them!\"");
		UcSay;
		UcMessage("\"Those stockings are of no use to thee. I know thou wilt do the proper thing. Within thy chest beats a human heart. Thou art a woman of feelings.\"");
		UcSay;
		UcMessage("\"So too am I a man stirred by strong emotions. Give unto me this thing, and together we shall share a night of passion the likes of which have never before been told in story or song.\"");
		UcSay;
		UcMessage("\"Surrender those stockings to me.\"");
		UcSay;
	labelFunc0421_0535:
		var0009 = Func0955();
		if(!var0009) goto labelFunc0421_05F6;
		var000A = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, 0x0000);
		UcMessage("\"Excellent! First let us enjoy some wine! Wilt thou accept this glass of fine wine?\"");
		UcSay;
		if(!var000A) goto labelFunc0421_0565;
		gflags[013B] = true;
	labelFunc0421_0565:
		if(!Func0955()) goto labelFunc0421_05EF;
		UI_set_item_flag_A4(0xFE9C, 0x0001);
		var000B = (0x0006 + UI_die_roll_17(0x0000, 0x0009));
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFFDF, [0x0610, 0x078F, 0x0000]);
		var000C = (var000B * 0x05DC);
		Func0986(var000B, item);
		var0006 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x0021);
		var0006 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@Oh, my head...@"], 0x0023);
		abrt();
		goto labelFunc0421_05F3;
	labelFunc0421_05EF:
		UcMessage("\"Thou dost not trust me, eh? So be it...\" *\"Ha! The stockings are now mine!\"");
		UcSay;
	labelFunc0421_05F3:
		goto labelFunc0421_0611;
	labelFunc0421_05F6:
		if(!(!gflags[013C])) goto labelFunc0421_060C;
		UcMessage("\"Thou dost not trust me? Then be on thy way! All I wanted were the stockings...\"");
		UcSay;
		UcMessage("\"After all, Columna is more of a woman than thou canst ever hope to be.\"");
		UcSay;
		gflags[013C] = true;
		goto labelFunc0421_0611;
	labelFunc0421_060C:
		UcMessage("\"Bah! Thou art only trying to taunt me! Leave me at once!\"");
		UcSay;
		abrt();
	labelFunc0421_0611:
		goto labelFunc0421_061B;
	labelFunc0421_0614:
		UcMessage("\"I ask thee again -- surrender those stockings to me!\"");
		UcSay;
		goto labelFunc0421_0535;
	labelFunc0421_061B:
		goto labelFunc0421_06B3;
	labelFunc0421_061E:
		if(!(!gflags[013C])) goto labelFunc0421_06AC;
		UcMessage("\"I shall be frank with thee. I want the stockings to protect the honor of the woman I love. The stockings rightfully belong to my lover Columna, but they were stolen by the bandit Stefano. I neither know nor care how thou hast come into possession of them, but I must have them from thee.\"");
		UcSay;
		UcMessage("\"As thou dost have something I want, then I am obliged to provide something to thee that thou couldst want.\"");
		UcSay;
		UcMessage("\"I offer thee one of my spells in exchange for the stockings. If thou dost accept, then give them to me.\"");
		UcSay;
	labelFunc0421_0631:
		var000D = Func0955();
		if(!var000D) goto labelFunc0421_067B;
		var000E = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, 0x0000);
		UcMessage("\"Ha! Now I have what I want and I did not have to give thee a thing! Thou art not dealing with a child here!\"");
		UcSay;
		Func097F(0xFFDF, "@I have them!@", 0x0000);
		UI_set_schedule_type_25(0xFFDF, 0x0014);
		if(!var000E) goto labelFunc0421_0677;
		gflags[013B] = true;
	labelFunc0421_0677:
		abrt();
		goto labelFunc0421_06A9;
	labelFunc0421_067B:
		if(!(!gflags[013C])) goto labelFunc0421_068E;
		UcMessage("\"Thou art as cold-hearted as any man I have ever met! I can no longer tolerate thy company.\"");
		UcSay;
		gflags[013C] = true;
		abrt();
		goto labelFunc0421_0693;
	labelFunc0421_068E:
		UcMessage("\"Bah! Thou art only trying to taunt me! Leave me at once!\"");
		UcSay;
		abrt();
	labelFunc0421_0693:
		Func097F(0xFFDF, "@Begone, foul knave.@", 0x0000);
		UI_set_schedule_type_25(0xFFDF, 0x000C);
	labelFunc0421_06A9:
		goto labelFunc0421_06B3;
	labelFunc0421_06AC:
		UcMessage("\"I ask thee again -- surrender those stockings to me!\"");
		UcSay;
		goto labelFunc0421_0631;
	labelFunc0421_06B3:
		cmps("help Fedabiblio");
		UI_remove_answer_0D("help Fedabiblio");
		UcMessage("\"If thou dost think I will help thee, then the madness that hath seemingly infected the entire world hath also infected thy brain. I suggest thou dost have it removed.\"");
		UcSay;
		Func097F(0xFFEF, "@Be gone!@", 0x0000);
		abrt();
	labelFunc0421_06D3:
		cmps("soul trapping");
		UI_remove_answer_0D("soul trapping");
		UcMessage("\"So thou dost seek to learn the ancient art of imprisoning souls within gems? I can give this to thee, for a price -- but I warn thee, the outcome may not be what thou dost expect.\"");
		UcSay;
		UI_add_answer_0C(["ancient art", "price", "outcome"]);
	labelFunc0421_06F6:
		cmps("ancient art", "ask");
		UI_remove_answer_0D(["ancient art", "ask"]);
		if(!gflags[0136]) goto labelFunc0421_0747;
		UcMessage("\"Knowledge shall be thine, Avatar. The secret is that souls can be imprisoned within gems. Only Worm Gems will do, and even these must first be enchanted with the spell which I give thee now.\"");
		UcSay;
		gflags[0268] = true;
		UcMessage("\"On this scroll, thou shalt find the spell for creating Soul Prisms. Transcribe this to thy spellbook at the first opportunity, for I shall not give thee another!\"");
		UcSay;
		gflags[00FF] = true;
		var000F = Func099B(0xFE9C, 0x0001, 0x02CB, 0x001B, 0x0000, 0x0000, true);
		UI_add_answer_0C("Worm Gems");
		goto labelFunc0421_074F;
	labelFunc0421_0747:
		UcMessage("\"Pay the price, the Philanderer's Friend, and I shall reward thee!\"");
		UcSay;
		UcMessage("\"For now, I shall merely say that this spell was used by the ancient inhabitants of this land. They would remove their souls from their bodies, and place them within inanimate objects.\"");
		UcSay;
	labelFunc0421_074F:
		cmps("price");
		UI_remove_answer_0D("price");
		if(!gflags[023D]) goto labelFunc0421_079B;
		if(!gflags[0136]) goto labelFunc0421_0790;
		if(!gflags[00FF]) goto labelFunc0421_0777;
		UcMessage("\"Why, I already gave thee my prize! What more dost thou expect?\"");
		UcSay;
		goto labelFunc0421_078D;
	labelFunc0421_0777:
		UcMessage("\"Then again, thou didst restore the wand to me -- and the Philanderer's Friend is a great prize...\"");
		UcSay;
		UcMessage("\"Thou hast paid the price, I shall grant thee thy desires. Thou hast but to ask.\"");
		UcSay;
		UI_remove_answer_0D("ancient art");
		UI_add_answer_0C("ask");
	labelFunc0421_078D:
		goto labelFunc0421_0798;
	labelFunc0421_0790:
		UcMessage("\"Thou hast something which I want very much, Avatar! I detect that thou hast come into contact with a magical artifact which was taken from me -- the Philanderer's Friend, a wand of mysterious powers.\"");
		UcSay;
		UcMessage("\"Deliver the wand to me, and thou shalt have thy desires!\"");
		UcSay;
	labelFunc0421_0798:
		goto labelFunc0421_07AB;
	labelFunc0421_079B:
		UcMessage("\"Sadly, thou hast nothing that I desire. I have no need for gold, and thou dost not know any spells which I crave...\"");
		UcSay;
		UcMessage("\"Ah, but thou art a strong warrior! I have an idea.\"");
		UcSay;
		UcMessage("\"An item was stolen from me, a wand which is great in the magic which it controls. Bring it to me, and I shall aid thee.\"");
		UcSay;
		UcMessage("\"The wand is known as the Philanderer's Friend. I know not where it lies. Good luck, adventurer!\"");
		UcSay;
	labelFunc0421_07AB:
		cmps("outcome");
		UI_remove_answer_0D("outcome");
		UcMessage("\"Thou art not the first to seek this secret from me, adventurer! That fat fool Batlin purchased it from me, too.\"");
		UcSay;
		UcMessage("\"And I gave him this warning: The gems are not powerful enough to contain any soul of great power. Should they fail, the soul released shall be very angry...\"");
		UcSay;
	labelFunc0421_07C2:
		cmps("Worm Gems");
		UI_remove_answer_0D("Worm Gems");
		UcMessage("\"Such gems are made, not found in nature. Seek out Ducio the Artisan, if he yet lives -- he fashions the gems for me, when I have need of them.\"");
		UcSay;
		var0010 = Func097D(0xFE9B, 0x0001, 0x0326, 0xFE99, 0x0000);
		if(!((!gflags[00CE]) && var0010)) goto labelFunc0421_07F9;
		UcMessage("\"It is a pity that the gem upon thy sword is broken. It looks remarkably like the Worm Gems that Ducio fashions. Perhaps he can repair it for thee...\"");
		UcSay;
	labelFunc0421_07F9:
		cmps("magic wand");
		UI_remove_answer_0D("magic wand");
		var0011 = UI_get_schedule_type_24(0xFFEF);
		if(!(!gflags[023D])) goto labelFunc0421_082A;
		if(!(var0011 == 0x000F)) goto labelFunc0421_0827;
		UcMessage("\"I no longer have the Philanderer's Friend, else I would certainly aid thee in helping the good Fedabiblio. It was stolen from me. I do not know for sure, but I suspect mine old enemy Vasculio of the crime.\"");
		UcSay;
	labelFunc0421_0827:
		goto labelFunc0421_08AC;
	labelFunc0421_082A:
		if(!(!gflags[0136])) goto labelFunc0421_08AC;
		UcMessage("\"I perceive that thou hast the device stolen from me years ago. It is called the Philanderer's Friend -- I'm not sure why, but someday I shall understand its secrets.\"");
		UcSay;
		if(!UI_remove_party_items_34(0x0001, 0x03A1, 0xFE99, 0xFE99, false)) goto labelFunc0421_08A8;
		UcMessage("\"Good! Thou hast brought it with thee -- and now I shall take it!\"");
		UcSay;
		var0012 = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0013 = UI_add_cont_items_36(0xFFDF, 0x0001, 0x03A1, 0xFE99, 0xFE99, false);
		UI_set_schedule_type_25(0xFFDF, 0x0014);
		Func097F(0xFFDF, "@I have it!@", 0x0000);
		gflags[0136] = true;
		abrt();
		goto labelFunc0421_08AC;
	labelFunc0421_08A8:
		UcMessage("\"It is my rightful property and I shall have it back!\"");
		UcSay;
	labelFunc0421_08AC:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(0xFFDF, "@Don't steal anything...@", 0x0002);
		Func08FF();
		goto labelFunc0421_08D9;
	labelFunc0421_08D6:
		goto labelFunc0421_01AE;
	labelFunc0421_08D9:
		end_conv();
	labelFunc0421_08DA:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func080A 0x80A ();
extern var Func0955 0x955 ();
extern Func09B4 0x9B4 (var var0000);

Func0422 0x422 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_get_item_flag_A3(Shamino, 0x0006);
	var0003 = UI_get_item_flag_A3(Iolo, 0x0006);
	var0004 = UI_get_item_flag_A3(Dupre, 0x0006);
	var0005 = UI_get_item_flag_A3(0xFFDE, 0x0006);
	var0006 = UI_get_item_flag_A3(0xFFDE, 0x001C);
	var0007 = UI_get_item_flag_A3(0xFFDE, 0x0004);
	if(!((event == 0x0007) && gflags[0083])) goto labelFunc0422_009C;
	var0008 = UI_get_oppressor_5C(0xFFDE);
	var0008 = (0x0000 - var0008);
	if(!(!gflags[0007])) goto labelFunc0422_0097;
	gflags[0007] = true;
	Func0936(UI_get_npc_object_23(var0008), UI_get_npc_object_23(0xFFDE));
	exit2();
	labelFunc0422_0097:
		Func092E(item);
		exit2();
	labelFunc0422_009C:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFDE, 0x001D))) goto labelFunc0422_0337;
		UI_clear_item_flag_A5(0xFFDE, 0x001D);
		var0009 = UI_get_object_position_20(0xFFDE);
		UI_play_sound_effect_16(0x002A);
		var0009[0x0001] = (var0009[0x0001] - (var0009[0x0003] / 0x0002));
		var0009[0x0002] = (var0009[0x0002] - (var0009[0x0003] / 0x0002));
		UI_sprite_effect_68(0x001E, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_get_object_position_20(0xFFDE);
		UI_kill_npc_57(0xFFDE);
		var000A = UI_create_new_object_2C(0x031F);
		if(!var000A) goto labelFunc0422_0160;
		UI_set_item_frame_1B(var000A, 0x0012);
		var000B = UI_update_last_created_2F(var0009);
		var000B = UI_execute_usecode_array_01(var000A, [0x23, 0x52, "@My beautiful body!!@"]);
	labelFunc0422_0160:
		var000C = 0x0001;
		var000D = [0x0006, 0x000C, 0x0012, 0x0018];
		var000E = [0x0004, 0xFFFB, Iolo, 0x0005, 0x0000, Shamino, 0x0001, 0x0005, 0x0005, 0x0005, 0xFFFB, 0x0004, 0x0003, 0x0002, 0x0001, 0x0005, 0x0001, 0x0000, 0x0000, 0x0002, 0x0002, 0x0002, 0x0001, Iolo, 0x0000, 0x0003, 0x0002, 0x0003, Dupre, 0x0004, 0x0004, 0x0004];
		var000F = [0x0001, Shamino, 0x0001, 0xFFFB, 0x0001, 0xFFFC, 0x0004, 0xFFFC, Iolo, 0x0002, 0x0001, 0xFFFB, 0x0005, 0x0005, 0x0005, 0x0000, 0x0005, 0x0001, 0x0002, 0x0000, 0x0002, 0x0001, 0x0002, 0x0000, 0x0003, 0x0002, Iolo, 0x0001, 0x0003, 0x0004, 0x0003, 0x0002];
	labelFunc0422_0244:
		if(!(var000C < 0x0005)) goto labelFunc0422_0337;
		var0010 = 0x0000;
		var000A = UI_create_new_object_2C(0x031A);
		if(!var000A) goto labelFunc0422_0334;
		UI_set_item_frame_1B(var000A, var000D[var000C]);
	labelFunc0422_0271:
		if(!(var0010 < 0x001A)) goto labelFunc0422_0334;
		var0011 = [(var0009[0x0001] + var000E[var0010]), (var0009[0x0002] + var000F[var0010]), var0009[0x0003]];
		if(!UI_is_not_blocked_A0(var0011, 0x031F, 0x0000)) goto labelFunc0422_0327;
		var000C = (var000C + 0x0001);
		var0010 = 0x001B;
		var000B = UI_update_last_created_2F(var0011);
		var000A = UI_create_new_object_2C(0x0390);
		if(!var000A) goto labelFunc0422_0324;
		UI_set_item_frame_1B(var000A, UI_die_roll_17(0x0000, 0x0003));
		var0011 = [((var0009[0x0001] + var000E[var0010]) + 0x0001), ((var0009[0x0002] + var000F[var0010]) + 0x0001), var0009[0x0003]];
		var000B = UI_update_last_created_2F(var0011);
	labelFunc0422_0324:
		goto labelFunc0422_0331;
	labelFunc0422_0327:
		var0010 = (var0010 + 0x0001);
	labelFunc0422_0331:
		goto labelFunc0422_0271;
	labelFunc0422_0334:
		goto labelFunc0422_0244;
	labelFunc0422_0337:
		if(!(event == 0x0001)) goto labelFunc0422_0365;
		UI_item_say_4D(0xFE9C, "@Ahem...@");
		0xFFDE;
		calle();
		Func097F(0xFFDE, "@Thou didst speak?@", 0x0002);
		UI_set_schedule_type_25(0xFFDE, 0x0003);
	labelFunc0422_0365:
		if(!(event == 0x0002)) goto labelFunc0422_0371;
		event = 0x0009;
	labelFunc0422_0371:
		if(!(event == 0x0009)) goto labelFunc0422_07F2;
		if(!(item == UI_get_npc_object_23(0xFFDE))) goto labelFunc0422_0430;
		if(!UI_get_item_flag_A3(0xFFDE, 0x0006)) goto labelFunc0422_03A6;
		UI_set_schedule_type_25(0xFFDE, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0422_03BA;
	labelFunc0422_03A6:
		UI_run_schedule_B7(0xFFDE);
		if(!gflags[01BA]) goto labelFunc0422_03BA;
		UI_add_answer_0C("join");
	labelFunc0422_03BA:
		UI_show_npc_face0_05(0xFFDE, 0x0000);
		if(!(UI_get_npc_id_BC(0xFFDE) == 0x001E)) goto labelFunc0422_0411;
		UcMessage("\"Master, I am grateful that thou dost still live! I have grown fond of thee, almost as a son looks upon a parent...\"");
		UcSay;
		if(!(!gflags[0135])) goto labelFunc0422_03E8;
		UcMessage("\"It might please thee to know that there is good news!\"");
		UcSay;
		UI_add_answer_0C("good news");
	labelFunc0422_03E8:
		UI_set_npc_id_BD(0xFFDE, 0x0000);
		UI_add_to_party_26(0xFFDE);
		gflags[0013] = true;
		UI_remove_answer_0D("join");
		UI_add_answer_0C(["leave"]);
		goto labelFunc0422_042D;
	labelFunc0422_0411:
		if(!(!var0006)) goto labelFunc0422_0429;
		UcMessage("\"I have a body! I have a body!\"");
		UcSay;
		UI_set_item_flag_A4(0xFFDE, 0x001C);
		goto labelFunc0422_042D;
	labelFunc0422_0429:
		UcMessage("\"Hello, there!\"");
		UcSay;
	labelFunc0422_042D:
		goto labelFunc0422_046E;
	labelFunc0422_0430:
		UI_show_npc_face0_05(0xFED3, 0x0000);
		UcMessage("\"Now I see thee. Greetings! I am Boydon, the Living Head.\"");
		UcSay;
		if(!(!gflags[01C0])) goto labelFunc0422_046E;
		var0012 = Func0992(Iolo, "The severed head speaks!", 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_046A;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, I do. Strange, is it not?\"");
		UcSay;
	labelFunc0422_046A:
		gflags[01C0] = true;
	labelFunc0422_046E:
		if(!(gflags[0013] && ((!UI_get_item_flag_A3(0xFFDE, 0x0006)) && UI_get_cont_items_33(0xFFDE, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc0422_0498;
		UI_add_answer_0C("return my belongings");
	labelFunc0422_0498:
		UI_add_answer_0C(["name", "duties", "bye"]);
	labelFunc0422_04A8:
		UcAsk;
		cmps("return my belongings");
		UI_remove_answer_0D("return my belongings");
		Func080A();
	labelFunc0422_04BD:
		cmps("good news");
		UI_remove_answer_0D("good news");
		UcMessage("\"Master, I have taken the time to speak with the Mages of this place. I do believe that the one known as Gustacio is of	a mind to aid thee.\"");
		UcSay;
		UcMessage("\"He said that anyone who can survive Freedom is worthy of his time!\"");
		UcSay;
		gflags[0135] = true;
	labelFunc0422_04D8:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"My name is Boydon.\"");
		UcSay;
	labelFunc0422_04EB:
		cmps("duties");
		UI_remove_answer_0D("duties");
		if(!(!gflags[01BB])) goto labelFunc0422_0515;
		UcMessage("\"I am hardly capable of performing my duties now, I'm sorry to say. I was the assistant to Erstam, the one they call the Mad Mage -- dost thou know him? Wonderful fellow. Well, one night he woke me to help him with one of his experiments.\"");
		UcSay;
		UI_add_answer_0C(["Erstam", "experiments"]);
		goto labelFunc0422_0571;
	labelFunc0422_0515:
		if(!var0007) goto labelFunc0422_0522;
		UcMessage("\"It seems I am no longer able to perform any duties save being an observer of thine adventures. But thank goodness Erstam chose me as the subject of his experiment! The man hath now saved my life twice over! As his one-time assistant, however, I can assure thee my body hath been destroyed beyond repair, and mine head will reject any new body that it might be attatched to. Oh, well! I am sorry that I can be of no further use to thee. If I squinch up my face I am fairly certain that I shall hardly take up any room in thy backpack.\"");
		UcSay;
		goto labelFunc0422_0571;
	labelFunc0422_0522:
		UcMessage("\"Actually, I do believe my job now is to be observed by a careful eye in order to judge the success of Erstam's experiment. Although now I am most certainly capable of many jobs.\"");
		UcSay;
		if(!(!var0005)) goto labelFunc0422_055A;
		var0012 = Func0992(Dupre, ((("@My first job would be to " + "take a long hot bath. I swear some of those ") + "body parts must have been lying about ") + "Erstam's Manor for some time!@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_055A;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_055A:
		if(!var0005) goto labelFunc0422_0564;
		UcMessage("\"I do hope I shall be of some assistance to thee as I travel with thee during thine adventures! I am having quite a bit of fun, actually.\"");
		UcSay;
	labelFunc0422_0564:
		UI_add_answer_0C(["observed", "many jobs"]);
	labelFunc0422_0571:
		cmps("Erstam");
		UcMessage("\"I found working for Erstam extremely interesting and most educational. Why, for example, my knowledge of anatomy hath improved so much. He is not exactly a friendly fellow, the Master, but there is never a dull moment.\"");
		UcSay;
		UI_remove_answer_0D("Erstam");
	labelFunc0422_0584:
		cmps("experiments");
		UcMessage("\"Of course Erstam, having mastered the art of teleportation, hath turned his sights to the creation of life. On this particular night that I am remembering we went down to his lab. He pulled an abundance of levers and things... my memory begins to fade a bit after that. The next thing I remember is awakening in this condition.\"");
		UcSay;
		UI_remove_answer_0D("experiments");
		UI_add_answer_0C(["teleportation", "creation of life", "condition"]);
	labelFunc0422_05A7:
		cmps("teleportation");
		UcMessage("\"Oh, I am afraid I cannot tell thee anything about that. After all, I was merely the Mad Mage's assistant.\"");
		UcSay;
		UI_remove_answer_0D("teleportation");
	labelFunc0422_05BA:
		cmps("creation of life");
		UcMessage("\"Is that not amazing? It doth go far beyond my comprehension of life and death. The mind fairly boggles at the ramifications of it.\"");
		UcSay;
		UI_remove_answer_0D("creation of life");
	labelFunc0422_05CD:
		cmps("condition");
		UcMessage("\"It is not so bad. I am never hungry because I do not have a stomach. I do not need to breathe because I do not have any lungs. I do sleep occasionally. Sometimes my nose itches. Nothing bothers me. Most people tend to find a talking severed head a bit unsettling. Right now I am enjoying talking to someone.\"");
		UcSay;
		UI_remove_answer_0D("condition");
	labelFunc0422_05E0:
		cmps("observed");
		UI_remove_answer_0D("observed");
		UcMessage("\"Certainly someone should keep an eye on me. To make sure my new body will not start to fall apart. Not to worry, I feel strange, but very well indeed.\"");
		UcSay;
		if(!(!var0005)) goto labelFunc0422_0623;
		var0012 = Func0992(Iolo, (("@Thou dost not need to observe. " + "Not when the smell reaches one ") + "first! Phew!@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_0623;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_0623:
		UI_add_answer_0C("strange feelings");
	labelFunc0422_062A:
		cmps("strange feelings");
		UI_remove_answer_0D("strange feelings");
		UcMessage("\"Well, for one thing I have decided something about my new self. I have been thinking about it for a while and I have come to the realization that I simply do not like fire. I simply do not. I cannot exactly say why. I simply do not.\"");
		UcSay;
	labelFunc0422_063D:
		cmps("many jobs");
		UcMessage("\"I feel I am capable of doing most anything in my present condition.\"");
		UcSay;
		if(!(!gflags[01B9])) goto labelFunc0422_06D7;
		UcMessage("\"In fact, I was wondering if thou couldst use someone like me to accompany thee in thy travels and adventures.\"");
		UcSay;
		UcMessage("\"Wouldst thou like me to join thee?\"");
		UcSay;
		var0013 = Func0955();
		if(!var0013) goto labelFunc0422_06A0;
		UcMessage("\"I am delighted to hear thee say that. But first thou shouldst ask Erstam if I may go. After all, I am his creation. He is the one who made me what I am today.\"");
		UcSay;
		gflags[01B9] = true;
		var0012 = Func0992(Shamino, (((("@Art thou certain about this, " + var0001) + "? Boydon seems game enough, but he is also ") + "extremely gamey. I am surprised thou hast ") + "not noticed this for thyself.@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_069D;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_069D:
		goto labelFunc0422_06D7;
	labelFunc0422_06A0:
		UcMessage("\"If thou wouldst ever change thy mind, or find thyself in need of a companion, I would be most honored if thou wouldst consider me.\"");
		UcSay;
		var0012 = Func0992(Iolo, 0x0000, 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_06D7;
		UI_show_npc_face1_06(var0012, 0x0000);
		UcMessage("\"That was a near escape. I could not believe thou wouldst consider having that fellow join us. Just the smell of him is near enough to kill a dragon! He is otherwise a most pleasant fellow, I will concede.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_06D7:
		UI_remove_answer_0D("many jobs");
	labelFunc0422_06DE:
		cmps("join");
		UI_remove_answer_0D("join");
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0422_073E;
		UI_add_answer_0C("leave");
		UcMessage("\"That is wonderful news! Lead on!\"");
		UcSay;
		var0012 = Func0992(Shamino, (("@Far be it from me to question thy judgment, Avatar. " + "But are thy senses so dulled that thou dost not notice ") + "the potent aroma emanating from this fellow?@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_0730;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_0730:
		UI_add_to_party_26(0xFFDE);
		gflags[0013] = true;
		goto labelFunc0422_074C;
	labelFunc0422_073E:
		UcMessage("\"But there are so many in thy travelling party! I am not accustomed to crowds.\"");
		UcSay;
		UcMessage("\"I think that I must remain where I am. Apologies, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0422_074C:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UcMessage("\"If that is what thou dost truly want, I will leave. But if thou dost ever change thy mind, do ask me to join again and I will.\"");
		UcSay;
		UI_remove_from_party_27(0xFFDE);
		Func080A();
		Func09B4(0xFFDE);
		var0012 = Func0992(Dupre, ((("@I am also sad to see him go." * "But in truth, ") + "mine eyes were watering more while he was with us than ") + "when he left!@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0422_079C;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0422_079C:
		UI_add_answer_0C("join");
	labelFunc0422_07A3:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Good luck!@", 0x0000);
		if(!(item == UI_get_npc_object_23(0xFFDE))) goto labelFunc0422_07D6;
		Func097F(0xFFDE, "@And to thee!@", 0x0002);
		goto labelFunc0422_07EB;
	labelFunc0422_07D6:
		var000B = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "@And to thee!@"], 0x0005);
	labelFunc0422_07EB:
		goto labelFunc0422_07F1;
	labelFunc0422_07EE:
		goto labelFunc0422_04A8;
	labelFunc0422_07F1:
		end_conv();
	labelFunc0422_07F2:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);

Func0423 0x423 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = Func0942(0xFFDC);
	var0003 = Func0942(0xFFDE);
	var0004 = UI_get_item_flag_A3(0xFFDD, 0x001C);
	var0005 = Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010);
	var0006 = Func097D(0xFE9B, 0x0001, 0x0252, 0xFE99, 0xFE99);
	var0007 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0001);
	var0008 = Func097D(0xFE9B, 0x0001, 0x022B, 0xFE99, 0xFE99);
	var0009 = Func097D(0xFE9B, 0x0001, 0x022F, 0xFE99, 0x0005);
	var000A = Func097D(0xFE9B, 0x0001, 0x022F, 0xFE99, 0x000B);
	var000B = Func097D(0xFE9B, 0x0001, 0x022F, 0xFE99, 0x000C);
	var000C = Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001);
	var000D = Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003);
	var000E = Func097D(0xFE9B, 0x0001, 0x0281, 0x00CA, 0x000C);
	if(!((event == 0x0002) || (event == 0x000E))) goto labelFunc0423_01CA;
	if(!gflags[0007]) goto labelFunc0423_018D;
	gflags[0007] = false;
	UI_show_npc_face0_05(0xFFDD, 0x0000);
	UcMessage("\"At last, the labor of a lifetime hath come to consummation! I think Boydon hath been created rather well. Thou hast done an excellent job in assisting me in his creation.\"");
	UcSay;
	UcMessage("\"For thine excellent work I shall reward thee. Here is the key to my storeroom. There thou wilt find the secret of teleportation. It is an old serpent jawbone.\"");
	UcSay;
	gflags[01C9] = true;
	UcMessage("\"Also, please take this serpent tooth as a token of mine appreciation.\"");
	UcSay;
	var000F = Func099B(0xFE9C, 0x0001, 0x0281, 0x00CA, 0x000C, 0x0000, true);
	var000F = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x000B, false, true);
	gflags[01C3] = true;
	UI_show_npc_face0_05(0xFFDD, 0x0000);
	UcMessage("\"Once thou hast found the jawbone, return to me -- for I have something else to give thee as well.\"");
	UcSay;
	Func097F(0xFFDD, "@See thee soon...@", 0x0000);
	Func097F(0xFE9C, "@I shall return!@", 0x0008);
	abrt();
	goto labelFunc0423_01CA;
	labelFunc0423_018D:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		var000F = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x0636], 0x0001);
		UI_move_object_4B(0xFE9B, [0x07F6, 0x04C5, 0x0000]);
	labelFunc0423_01CA:
		if(!(event == 0x0001)) goto labelFunc0423_01F8;
		UI_item_say_4D(0xFE9C, "@Might we speak?@");
		0xFFDD;
		calle();
		Func097F(0xFFDD, "@No!@", 0x0002);
		UI_set_schedule_type_25(0xFFDD, 0x0003);
	labelFunc0423_01F8:
		if(!(event == 0x0009)) goto labelFunc0423_0B25;
		UI_run_schedule_B7(0xFFDD);
		UI_clear_item_say_4E(0xFFDD);
		UI_show_npc_face0_05(0xFFDD, 0x0000);
		if(!(!gflags[01BF])) goto labelFunc0423_0265;
		UcMessage("\"Begone from my sight! Thy meddling in my business is unwelcome, stranger!\"");
		UcSay;
		UcMessage("\"Thou dost have the distinct bearing of a Britannian about thee! No doubt thou art some fiend in league with that evil Beast British!\"");
		UcSay;
		UcMessage("\"Why, I ought to cast a spell on thee! I could tear thee limb from limb but still leave thee alive! In fact I may do it yet! Now, out with it! Why hast thou come to disturb me here?! Bah! In truth I care not! Begone!\"");
		UcSay;
		var0010 = Func0992(Iolo, "@The password! Avatar, tell him the password!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What is this I hear?\"");
		UcSay;
		Func094E(0xFE9C, "@A mutual friend told me to mention Iskatradeeth to thee.@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Iskatradeeth! The password? Then I shall not feed thee to the whales...\"");
		UcSay;
		UcMessage("\"I shall speak with thee... for the moment.\"");
		UcSay;
		gflags[01BF] = true;
		goto labelFunc0423_0269;
	labelFunc0423_0265:
		UcMessage("\"Why hast thou returned? Why dost thou disturb mine experiments in the secrets of immortality? What could possibly be more important than the answers to the riddle of life and death?!\"");
		UcSay;
	labelFunc0423_0269:
		if(!(!gflags[01C5])) goto labelFunc0423_0277;
		UI_add_answer_0C("experiments");
	labelFunc0423_0277:
		if(!(!gflags[01C6])) goto labelFunc0423_0285;
		UI_add_answer_0C("immortality");
	labelFunc0423_0285:
		if(!(!gflags[01C7])) goto labelFunc0423_0293;
		UI_add_answer_0C("riddle of life and death");
	labelFunc0423_0293:
		if(!(gflags[01BB] && (!gflags[01BD]))) goto labelFunc0423_02A5;
		UI_add_answer_0C("Boydon");
	labelFunc0423_02A5:
		if(!(!var0004)) goto labelFunc0423_02B3;
		UI_add_answer_0C("Introduce thyself");
	labelFunc0423_02B3:
		if(!(!gflags[01C8])) goto labelFunc0423_02C1;
		UI_add_answer_0C("Disturb?");
	labelFunc0423_02C1:
		if(!gflags[01C1]) goto labelFunc0423_02CE;
		UI_add_answer_0C("jawbone");
	labelFunc0423_02CE:
		if(!(gflags[01B7] && (!gflags[01B8]))) goto labelFunc0423_02ED;
		if(!gflags[01BC]) goto labelFunc0423_02E6;
		UI_add_answer_0C("phoenix egg");
	labelFunc0423_02E6:
		UI_add_answer_0C("instructions");
	labelFunc0423_02ED:
		if(!(gflags[01B8] && (!gflags[01BB]))) goto labelFunc0423_02FF;
		UI_add_answer_0C("ready to create life");
	labelFunc0423_02FF:
		if(!gflags[01BD]) goto labelFunc0423_030C;
		UI_add_answer_0C("I have the jawbone.");
	labelFunc0423_030C:
		if(!(gflags[01B9] && (!gflags[01BA]))) goto labelFunc0423_031E;
		UI_add_answer_0C("May Boydon join?");
	labelFunc0423_031E:
		if(!gflags[0283]) goto labelFunc0423_032B;
		UI_add_answer_0C("blue egg");
	labelFunc0423_032B:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc0423_033D;
		UI_add_answer_0C("severed hand");
	labelFunc0423_033D:
		if(!(gflags[027D] && (!gflags[028F]))) goto labelFunc0423_034F;
		UI_add_answer_0C("lab apparatus");
	labelFunc0423_034F:
		UI_add_answer_0C("bye");
	labelFunc0423_0356:
		UcAsk;
		cmps("Introduce thyself");
		UI_remove_answer_0D("Introduce thyself");
		UcMessage("\"I do not care to know thy name! As for myself, my fame hath grown with each passing century. I am Erstam, he whom some dare call the Mad Mage!\"");
		UcSay;
		UI_set_item_flag_A4(0xFFDD, 0x001C);
		UI_add_answer_0C("Mad Mage");
	labelFunc0423_037D:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"I said that some call me the Mad Mage! I did not give permission for thee to call me that! That is a name by which I have been called since the days when I took the dissenters of the reign of Beast British away to live here at this place.\"");
		UcSay;
	labelFunc0423_0390:
		cmps("Disturb?");
		UI_remove_answer_0D("Disturb?");
		UcMessage("\"I am a master sorcerer, and as such I am dedicated to my life's work -- mine experiments! I am searching for the secret of immortality and to find it I must be able to answer the riddle of life and death.\"");
		UcSay;
		gflags[01C8] = true;
	labelFunc0423_03A7:
		cmps("experiments");
		UI_remove_answer_0D("experiments");
		if(!(!gflags[01B8])) goto labelFunc0423_03FA;
		if(!gflags[01BB]) goto labelFunc0423_03DB;
		UcMessage("\"Now that mine initial experiment of Boydon hath been completed, my true work hath only begun. I shall now rest until I have learned all of the secrets of the universe. What? Thou art still here! I have no time to speak with thee! I have work to do!\"");
		UcSay;
		Func097F(0xFFDD, "@Away with thee!@", 0x0003);
		gflags[01C5] = true;
		abrt();
		goto labelFunc0423_03F7;
	labelFunc0423_03DB:
		UcMessage("\"These experiments are most dangerous! If thou art faint of heart I would advise thee to stay away! As thou canst see if thou dost look around thee, these experiments are a threat to both life... and limb!\"");
		UcSay;
		if(!(!(gflags[01B7] || gflags[01BB]))) goto labelFunc0423_03F7;
		UI_add_answer_0C(["life", "limb"]);
	labelFunc0423_03F7:
		goto labelFunc0423_03FE;
	labelFunc0423_03FA:
		UcMessage("\"Thanks to thee mine experiments in the creation of life have been successful! But there is still much for me to do! Much research! Now that I have created mine own wholly unique solution to the riddle of life and death, I must begin work on solving the rest of the problems of the universe.\"");
		UcSay;
	labelFunc0423_03FE:
		cmps("life");
		UI_remove_answer_0D("life");
		UcMessage("\"The terrible science that I pursue hath taken its toll in the lives of countless assistants. But if it leads me to the secret of eternal life, the price shall be well worth it.\"");
		UcSay;
	labelFunc0423_0411:
		cmps("limb");
		UI_remove_answer_0D("limb");
		UcMessage("\"Aye, thou wilt see many of them strewn about as thou dost look around the manor.\"");
		UcSay;
	labelFunc0423_0424:
		cmps("immortality");
		UI_remove_answer_0D("immortality");
		UI_push_answers_0E();
		UI_add_answer_0C("change subject");
		if(!gflags[01B8]) goto labelFunc0423_045C;
		if(!gflags[01BB]) goto labelFunc0423_0455;
		UcMessage("\"With the successful creation of Boydon we have taken the first small but vitally important step in achieving that great dream of all men -- immortality!\"");
		UcSay;
		gflags[01C6] = true;
		goto labelFunc0423_0459;
	labelFunc0423_0455:
		UcMessage("\"Quickly! Thou must finish the experiment! On mine oath, I will be dead of old age before I can discover the secret of immortality with an assistant such as thee!\"");
		UcSay;
	labelFunc0423_0459:
		goto labelFunc0423_0460;
	labelFunc0423_045C:
		UcMessage("\"Immortality represents the ultimate defeat of death. 'Tis essential that I obtain this as soon as possible... No doubt thou hast heard of or perhaps even witnessed the teleportation storms.\"");
		UcSay;
	labelFunc0423_0460:
		if(!(!var0006)) goto labelFunc0423_046E;
		UcMessage("\"It seems that I recall a strange dagger appearing in the Manor about the same time as a teleportation storm. Perhaps that dagger is still around somewhere...\"");
		UcSay;
		goto labelFunc0423_0472;
	labelFunc0423_046E:
		UcMessage("\"I see thou hast discovered the strange dagger that appeared in my Manor. Damn teleport storms! Thou hast laid claim to it as thine own, eh? Very well then, if it truly belongs to thee, thou mayest take it...\"");
		UcSay;
	labelFunc0423_0472:
		UI_add_answer_0C(["death", "teleportation storms"]);
	labelFunc0423_047F:
		cmps("death");
		UcMessage("\"Unchained for all time from death and the fear of death, there would be nothing that mankind would not be capable of accomplishing! HA, ha, ha, ha, ha!\"");
		UcSay;
		UI_remove_answer_0D("death");
	labelFunc0423_0492:
		cmps("teleportation storms");
		UI_remove_answer_0D("teleportation storms");
		UcMessage("\"The power of teleportation is most certainly an awesome one. These storms have been wreaking havoc on us for some time. I fear that their increasing frequency and intensity most certainly signals an end of the world.\"");
		UcSay;
		UI_add_answer_0C("end of the world");
		if(!(!gflags[01BE])) goto labelFunc0423_04BA;
		UI_add_answer_0C("teleportation");
	labelFunc0423_04BA:
		cmps("teleportation");
		UcMessage("\"Hrmpph... I know nothing of this foolish, dangerous power they call teleportation, dost thou hear me? Nothing! Do not ask me of this again! And do not harry my servant about it either, I warn thee!\"");
		UcSay;
		gflags[01BE] = true;
		if(!var0002) goto labelFunc0423_04FF;
		UI_show_npc_face1_06(0xFFDC, 0x0000);
		UcMessage("\"But Master, thou dost know something of teleportation! What about the...?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Silence thine imbecilic rantings, Vasel! Not another word from thee! Pay my silly servant no mind. He is daft in the head. I know nothing about this teleportation business. I have no secrets to share with thee!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"So I have given away thy secret? Do not beat me! Please Master! Do not beat me!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0423_04FF:
		UI_remove_answer_0D("teleportation");
	labelFunc0423_0506:
		cmps("end of the world");
		UI_remove_answer_0D("end of the world");
		UcMessage("\"Someone must survive the end of the world. That person may as well be me.\"");
		UcSay;
	labelFunc0423_0519:
		cmps("riddle of life and death");
		UI_remove_answer_0D("riddle of life and death");
		UcMessage("\"In order to obtain the secret of achieving immortality, I must first uncover the answer to the secret of life and death. In the past when people have searched for the answer, they have only brooded over the nature of death itself. What a foolish thing to do! If there is an answer to the riddle of life and death, it can only be in the creation of life!\"");
		UcSay;
		if(!gflags[01BB]) goto labelFunc0423_053D;
		UcMessage("\"Finally, the secrets of the universe are nearly within my grasp!\"");
		UcSay;
		gflags[01C7] = true;
		goto labelFunc0423_055B;
	labelFunc0423_053D:
		UcMessage("\"That is what I am seeking to do!\"");
		UcSay;
		if(!gflags[01B8]) goto labelFunc0423_054E;
		UcMessage("\"So, hurry!\"");
		UcSay;
		goto labelFunc0423_055B;
	labelFunc0423_054E:
		UI_add_answer_0C(["create life", "secret of immortality"]);
	labelFunc0423_055B:
		cmps("create life");
		UI_remove_answer_0D("create life");
		UcMessage("\"Lately mine experiments have been halted for there is one necessary ingredient that I lack. Bah! Thou canst tell me nothing about the creation of life that would help me advance mine experiments! There is no point in speaking to thee of the subject!\"");
		UcSay;
	labelFunc0423_056E:
		cmps("secret of immortality");
		UcMessage("\"Mine experiments in immortality have led to the demise of all of mine assistants save for Vasel. Oh, they are not dead! Why one may encounter them virtually anywhere throughout the manor. Or, at least, pieces of them.\"");
		UcSay;
		UI_remove_answer_0D("secret of immortality");
	labelFunc0423_0581:
		cmps("jawbone");
		UI_remove_answer_0D("jawbone");
		UI_push_answers_0E();
		UI_add_answer_0C("change subject");
		if(!gflags[01BD]) goto labelFunc0423_05A8;
		UcMessage("\"Thou art welcome to it.\"");
		UcSay;
		goto labelFunc0423_05E1;
	labelFunc0423_05A8:
		if(!(!gflags[01B7])) goto labelFunc0423_05C3;
		UcMessage("\"So! That little knave Vasel hath been telling thee of my magical serpent jawbone! Thou wilt not obtain it under pain of death, torture or for any price. All that concerns me is mine efforts in creating life. And there is nothing that thou canst do to aid me in that endeavor. Hmmm, or perhaps there is...\"");
		UcSay;
		UI_add_answer_0C(["Vasel", "What can I do?"]);
		goto labelFunc0423_05E1;
	labelFunc0423_05C3:
		if(!gflags[01BB]) goto labelFunc0423_05D0;
		UcMessage("\"Did I not give thee the key to my storeroom? If thou canst not find it, thou art not as intelligent as I thought thou to be!\"");
		UcSay;
		goto labelFunc0423_05E1;
	labelFunc0423_05D0:
		if(!gflags[01BC]) goto labelFunc0423_05DD;
		UcMessage("\"Come now! Thou dost not take me for a fool, I hope! How am I to know that it is a real phoenix egg thou hast brought me unless I can first use it in mine experiments? There shall be plenty of time for this jawbone affair after mine experiment to create life hath been successfully performed. I will hear nothing more on the matter.\"");
		UcSay;
		goto labelFunc0423_05E1;
	labelFunc0423_05DD:
		UcMessage("\"We shall speak of this after thou hast helped me with mine experiment.\"");
		UcSay;
	labelFunc0423_05E1:
		cmps("Vasel");
		UcMessage("\"Concern thyself not with him. I shall deal with him later!\"");
		UcSay;
		UI_remove_answer_0D("Vasel");
	labelFunc0423_05F4:
		cmps("What can I do?");
		UI_remove_answer_0D("What can I do?");
		UcMessage("\"There is something thou canst do for me! On the northern island there is a phoenix. Retrieve for me its egg, which is the missing ingredient that I need. I would go myself, but I am getting much too old for that sort of thing. There are terrible beasts along the way. And I do detest beasts, especially terrible ones.\"");
		UcSay;
		UI_add_answer_0C(["northern island", "phoenix"]);
	labelFunc0423_0614:
		cmps("northern island");
		UI_remove_answer_0D("northern island");
		UcMessage("\"Thou wilt have to discover the way back by thyself. Thou canst not expect me to tell thee everything!\"");
		UcSay;
	labelFunc0423_0627:
		cmps("phoenix");
		UcMessage("\"Thou must surely be familiar with the legend of the phoenix! It dies in flames, only to rise again in rebirth from the flame. There, I thought I saw a look of recognition in thine eyes! Then it is settled. Bring to me the egg of the phoenix and in return I shall give thee the serpent jawbone. Dost thou agree to help me?\"");
		UcSay;
		var0011 = Func0955();
		if(!var0011) goto labelFunc0423_06B9;
		UcMessage("\"Excellent! Then go and bring to me my phoenix egg. I shall send thee there immediately.\"");
		UcSay;
		gflags[01B7] = true;
		var0012 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x000C, (var0012[0x0001] - 0x0002), (var0012[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x000C, var0012[0x0001], var0012[0x0002], 0x0000, 0x0000, 0x000A, Iolo);
		UI_play_sound_effect_16(0x0077);
		var000F = UI_delayed_execute_usecode_array_02(0xFFDD, [0x23, 0x55, 0x0423], 0x0007);
		abrt();
		goto labelFunc0423_06BD;
	labelFunc0423_06B9:
		UcMessage("\"Thou canst put from thy mind that serpent jawbone then!\"");
		UcSay;
	labelFunc0423_06BD:
		UI_remove_answer_0D("phoenix");
	labelFunc0423_06C4:
		cmps("instructions");
		UI_remove_answer_0D("instructions");
		if(!(gflags[01B7] && (!gflags[01B8]))) goto labelFunc0423_0801;
		UcMessage("\"Thou hast returned without my phoenix egg! Is this some kind of great meaningless joke to thee?\"");
		UcSay;
		if(!gflags[01BC]) goto labelFunc0423_078B;
		var000F = Func0956(["I have the egg", "I do not have the egg"]);
		if(!(var000F == "I have the egg")) goto labelFunc0423_0715;
		UcMessage("\"Then bring it to me!\"");
		UcSay;
		Func097F(0xFFDD, "@Fool!@", 0x0000);
		abrt();
		goto labelFunc0423_0788;
	labelFunc0423_0715:
		UcMessage("\"Then thou must go back to the Isle of the Phoenix!\"");
		UcSay;
		var0012 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x000C, (var0012[0x0001] - 0x0002), (var0012[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x000C, var0012[0x0001], var0012[0x0002], 0x0000, 0x0000, 0x000A, Iolo);
		UI_play_sound_effect_16(0x0077);
		var000F = UI_delayed_execute_usecode_array_02(0xFFDD, [0x23, 0x55, 0x0423], 0x0007);
		abrt();
	labelFunc0423_0788:
		goto labelFunc0423_07FE;
	labelFunc0423_078B:
		UcMessage("\"If so I do not find it funny! Thou art not playing a game, fool! Go, and do not return until thou hast completed thy promised task!\"");
		UcSay;
		var0012 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x000C, (var0012[0x0001] - 0x0002), (var0012[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x000C, var0012[0x0001], var0012[0x0002], 0x0000, 0x0000, 0x000A, Iolo);
		UI_play_sound_effect_16(0x0077);
		var000F = UI_delayed_execute_usecode_array_02(0xFFDD, [0x23, 0x55, 0x0423], 0x0007);
		abrt();
	labelFunc0423_07FE:
		goto labelFunc0423_0812;
	labelFunc0423_0801:
		UcMessage("\"Thou canst begin by gathering all the various body parts scattered throughout the Manor. That includes a torso, arms, legs, and oh, yes, make extra certain that thou dost not forget the head. Place them one by one on top of the assimilation machine. Once thou hast put all the parts and phoenix egg into the machine, Boydon shall at last become complete.");
		UcSay;
		Func097F(0xFFDD, "@Don't forget the torso!@", 0x0000);
		abrt();
	labelFunc0423_0812:
		cmps("phoenix egg");
		UI_remove_answer_0D("phoenix egg");
		UcMessage("\"Dost thou have my phoenix egg?\"");
		UcSay;
		var0013 = Func0955();
		if(!var0013) goto labelFunc0423_0873;
		var0014 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0001);
		if(!var0014) goto labelFunc0423_086C;
		UcMessage("\"Now I have what I need to create life! Thou canst help me complete mine experiments! We shall begin immediately!");
		UcSay;
		UcMessage("\"Thou canst begin by gathering all the various body parts scattered throughout the Manor. That includes a torso, arms, legs, and oh, yes, make extra certain that thou dost not forget the head. Place them within the hopper, on top of the life creation machine in the center of my laboratory. Once thou hast finished that, we shall speak again.");
		UcSay;
		UcMessage("\"Quickly, put the egg into the machine!\"");
		UcSay;
		gflags[01B8] = true;
		Func097F(0xFFDD, "@Into the machine!@", 0x0000);
		abrt();
		goto labelFunc0423_0870;
	labelFunc0423_086C:
		UcMessage("\"If thou dost have my phoenix egg, why dost thou not give it to me?\"");
		UcSay;
	labelFunc0423_0870:
		goto labelFunc0423_0878;
	labelFunc0423_0873:
		UcMessage("\"Then we have nothing further to discuss until thou dost go and bring it to me.\"");
		UcSay;
		abrt();
	labelFunc0423_0878:
		cmps("ready to create life");
		UI_remove_answer_0D("ready to create life");
		UcMessage("\"Very good! So thou dost have all of the body parts in the vat! Two arms, two legs, and a torso?\"");
		UcSay;
		var0015 = Func0955();
		if(!var0015) goto labelFunc0423_08B6;
		UcMessage("\"Doth that include the head?\"");
		UcSay;
		var0016 = Func0955();
		if(!var0016) goto labelFunc0423_08AE;
		UcMessage("\"Excellent! Then wait until the life-creating reaction begins! But I warn thee, it may be dangerous. I am staying here.\"");
		UcSay;
		goto labelFunc0423_08B3;
	labelFunc0423_08AE:
		UcMessage("\"Then thou must find the head and put it in the hopper before the experiment can begin.\"");
		UcSay;
		abrt();
	labelFunc0423_08B3:
		goto labelFunc0423_08C7;
	labelFunc0423_08B6:
		UcMessage("\"Thou art a leadpate even worse than Vasel! Go and finish thy task and return to me!\"");
		UcSay;
		Func097F(0xFFDD, "@Leadpate!@", 0x0000);
		abrt();
	labelFunc0423_08C7:
		cmps("Boydon");
		UI_remove_answer_0D("Boydon");
		UcMessage("\"I think Boydon hath been created rather well! Thou hast done an excellent job in assisting me in his creation.\"");
		UcSay;
		if(!(!gflags[01C9])) goto labelFunc0423_0900;
		var0017 = Func099B(0xFE9C, 0x0001, 0x0281, 0x00CA, 0xFE99, false, true);
		UcMessage("\"Here is the key to my storeroom. There thou wilt find the secret of teleportation. It is an old serpent jawbone.\"");
		UcSay;
		gflags[01C9] = true;
	labelFunc0423_0900:
		if(!(!gflags[01C3])) goto labelFunc0423_0926;
		var0018 = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x000B, false, true);
		UcMessage("\"Also, please take this serpent tooth as a token of my appreciation. Once you have found the jawbone, please return, as I have other items for you.\"");
		UcSay;
		gflags[01C3] = true;
	labelFunc0423_0926:
		cmps("I have the jawbone.");
		UI_remove_answer_0D("I have the jawbone.");
		if(!(gflags[01C2] && (gflags[01C3] && gflags[01C4]))) goto labelFunc0423_0954;
		UcMessage("\"Yes. Very nice. I have already given thee my serpent teeth. I have no more of them. Good luck to thee.\"");
		UcSay;
		Func097F(0xFFDD, "@Good fortune!@", 0x0000);
		abrt();
	labelFunc0423_0954:
		if(!(!gflags[01C2])) goto labelFunc0423_0982;
		UcMessage("\"Yes, I see that thou hast found thy way into my storeroom and back.\"");
		UcSay;
		UcMessage("\"Here is a serpent's tooth. This will allow thee to travel back from whence thou didst come.\"");
		UcSay;
		UcMessage("\"As to the method of how it works -- Thou hast proven thyself intelligent. Discern it for thyself.\"");
		UcSay;
		var0019 = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x000C, false, true);
		gflags[01C2] = true;
	labelFunc0423_0982:
		if(!(!gflags[01C3])) goto labelFunc0423_09A8;
		UcMessage("\"Here is another tooth. It will allow thee to travel back to this island. Although, I trust that it shall not be necessary to do so.\"");
		UcSay;
		var001A = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x000B, false, true);
		gflags[01C3] = true;
	labelFunc0423_09A8:
		if(!(!gflags[01C4])) goto labelFunc0423_09CE;
		UcMessage("\"Here is a tooth that will enable thee to travel to another place.\"");
		UcSay;
		gflags[01C4] = true;
		var001B = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x0005, false, true);
	labelFunc0423_09CE:
		cmps("May Boydon join?");
		UI_remove_answer_0D("May Boydon join?");
		UcMessage("\"Certainly he may. It will serve my creation well to see the world. Good journey to thee. But take care. My creation may be very durable and powerful, but if his new body should be destroyed there is no force in the universe that can remake him.\"");
		UcSay;
		gflags[01BA] = true;
	labelFunc0423_09E5:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!var000D) goto labelFunc0423_0A05;
		UcMessage("\"If thou dost wish to know the mystery of that object, the answer is simple.\"");
		UcSay;
		UcMessage("\"Glance into my telescope, and its magical view shall penetrate the universe for thee!\"");
		UcSay;
		goto labelFunc0423_0A09;
	labelFunc0423_0A05:
		UcMessage("\"Bring the item to me, and I shall discern its origin. Or perhaps I won't. We shall see.\"");
		UcSay;
	labelFunc0423_0A09:
		cmps("lab apparatus");
		UI_remove_answer_0D("lab apparatus");
		if(!var000C) goto labelFunc0423_0A52;
		UcMessage("\"I recognize that! I have not seen it in some time, in fact.\"");
		UcSay;
		gflags[028F] = true;
		var001C = UI_remove_party_items_34(0x0001, 0x02ED, 0xFE99, 0x0001, false);
		if(!var001C) goto labelFunc0423_0A4B;
		UcMessage("\"That rightfully belongs to me, and I find it most suspicious that thou didst come into possession of it!\"");
		UcSay;
		UcMessage("\"But, of course! It must have been a teleportation storm!\"");
		UcSay;
		goto labelFunc0423_0A4F;
	labelFunc0423_0A4B:
		UcMessage("\"I want that back! It belongs to me!\"");
		UcSay;
	labelFunc0423_0A4F:
		goto labelFunc0423_0A56;
	labelFunc0423_0A52:
		UcMessage("\"That item resembles one of my laboratory apparati -- but I don't recall that anything is missing...\"");
		UcSay;
	labelFunc0423_0A56:
		cmps("severed hand");
		UI_remove_answer_0D("severed hand");
		if(!(Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0000) || (Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0001) || (Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0002) || (Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0003) || (Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0004) || Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0005))))))) goto labelFunc0423_0AE8;
		UcMessage("\"That is a remnant from one of mine experiments, something for Vasel to clean after. What art thou doing carrying that thing around?\"");
		UcSay;
		UcMessage("\"I do not know about thee... Thou art a strange one!\"");
		UcSay;
		gflags[029B] = true;
		goto labelFunc0423_0AEC;
	labelFunc0423_0AE8:
		UcMessage("\"Bring it to me, and I shall inspect it! It might be from one of my experiments...\"");
		UcSay;
	labelFunc0423_0AEC:
		cmps("change subject");
		UcMessage("\"Certainly...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0423_0AFC:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Most interesting...@", 0x0000);
		Func097F(0xFFDD, "@On thy way!@", 0x0002);
		abrt();
	labelFunc0423_0B21:
		goto labelFunc0423_0356;
	labelFunc0423_0B24:
		end_conv();
	labelFunc0423_0B25:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0424 0x424 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = Func0942(0xFFDD);
	var0003 = UI_get_item_flag_A3(Iolo, 0x0006);
	var0004 = UI_get_item_flag_A3(0xFFDC, 0x001C);
	if(!(event == 0x0001)) goto labelFunc0424_0064;
	UI_item_say_4D(0xFE9C, "@A moment, good fellow.@");
	0xFFDC;
	calle();
	var0005 = ("@Do not hit me...@" & "@I beg thee!@");
	Func094F(0xFFDC, var0005);
	UI_set_schedule_type_25(0xFFDC, 0x0003);
	labelFunc0424_0064:
		if(!(event == 0x0009)) goto labelFunc0424_04B8;
		UI_run_schedule_B7(0xFFDC);
		UI_clear_item_say_4E(0xFFDC);
		UI_show_npc_face0_05(0xFFDC, 0x0000);
		if(!(!var0004)) goto labelFunc0424_0092;
		UcMessage("\"What dost thou want, if thou dost not want to beat me?\"");
		UcSay;
		goto labelFunc0424_0096;
	labelFunc0424_0092:
		UcMessage("\"Thou hast come to beat me again, I know it!\"");
		UcSay;
	labelFunc0424_0096:
		UI_add_answer_0C(["name", "duties"]);
		if(!gflags[01BE]) goto labelFunc0424_00B0;
		UI_add_answer_0C("teleportation");
	labelFunc0424_00B0:
		UI_add_answer_0C("bye");
	labelFunc0424_00B7:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am an orphan. I have no name. My parents were so poor they could not afford to give me one!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["orphan", "What art thou called?", "change subject"]);
	labelFunc0424_00E1:
		cmps("change subject");
		UcMessage("\"Yes, master... er, I mean, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0424_00F7:
		cmps("orphan");
		UI_remove_answer_0D("orphan");
		UcMessage("\"My parents served an evil sorceress who stole me away and had them banished. She raised me as her own dog -- er, I mean son. But she was eventually caught and hanged for all her heinous crimes. I still miss my stepmother, terribly.\"");
		UcSay;
	labelFunc0424_010A:
		cmps("What art thou called?");
		UI_remove_answer_0D("What art thou called?");
		UcMessage("\"As a child, I was called a freak because I collected bugs! But when I went to dispose of my collection, I was called grotesque! I was so upset I could barely finish eating! But now I am called by an honorable gentleman's name, given to me by the Master.\"");
		UcSay;
		var0006 = Func0992(Iolo, "@Avatar, talking to this little fellow doth turn my stomach.@", 0x0000, false);
		if(!(var0006 != 0xFE9C)) goto labelFunc0424_013E;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_013E:
		UI_add_answer_0C(["freak", "grotesque", "master"]);
	labelFunc0424_014E:
		cmps("freak");
		UI_remove_answer_0D("freak");
		UcMessage("\"Merely because I had a brief career with one sideshow, everyone hath marked me for life! Still, it taught me things that have helped me in my work here. It gave me a strong stomach.\"");
		UcSay;
	labelFunc0424_0161:
		cmps("grotesque");
		UI_remove_answer_0D("grotesque");
		UcMessage("\"They called me that when I was young. But looking back on it, I think they meant it in a complimentary way.\"");
		UcSay;
	labelFunc0424_0174:
		cmps("master");
		UI_remove_answer_0D("master");
		UcMessage("\"'Tis my master who calls me Vasel. Thou mayest address me by that name as well.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFDC, 0x001C);
		if(!var0002) goto labelFunc0424_01B0;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"They shall be carving that name on thy tombstone if thou dost not return to work!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_01B0:
		UI_add_answer_0C("Who is thy master?");
	labelFunc0424_01B7:
		cmps("Who is thy master?");
		UI_remove_answer_0D("Who is thy master?");
		UcMessage("\"I serve Erstam. He is the master of this Manor.\"");
		UcSay;
		UI_add_answer_0C(["Why serve him?", "Erstam"]);
	labelFunc0424_01D7:
		cmps("Why serve him?");
		UI_remove_answer_0D("Why serve him?");
		UcMessage("\"There is something about him that reminds me of my stepmother! Call it crazy if thou wilt!\"");
		UcSay;
	labelFunc0424_01EA:
		cmps("Erstam");
		UI_remove_answer_0D("Erstam");
		UcMessage("\"He is the one who is called the Mad Mage!\"");
		UcSay;
		if(!var0002) goto labelFunc0424_0220;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Thou dost dare to speak that name in my presence, thou cretin?! I said I do not want to hear that name come from thy lips ever again!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Never again! Never again! I promise! Do not beat me, Master!\"");
		UcSay;
	labelFunc0424_0220:
		UI_add_answer_0C("mad mage");
	labelFunc0424_0227:
		cmps("mad mage");
		UI_remove_answer_0D("mad mage");
		UcMessage("\"The Master hath not been himself since he lost his one true love, the enchantress Drogeni. Many years ago she left on what she said was a secret errand for a wealthy patron, and she hath never returned.\"");
		UcSay;
	labelFunc0424_023A:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the custodian of the Manor. I assist the Master in his experiments. I am also called upon to do the housekeeping.\"");
		UcSay;
		UI_add_answer_0C(["Manor", "experiments", "housekeeping"]);
	labelFunc0424_025D:
		cmps("Manor");
		UI_remove_answer_0D("Manor");
		UcMessage("\"The Master's house is very old, and constantly in need of repair.\"");
		UcSay;
		if(!var0002) goto labelFunc0424_028F;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"That is correct, Vasel! Thou shouldst be returning to thine appointed chores!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
	labelFunc0424_028F:
		cmps("experiments");
		UI_remove_answer_0D("experiments");
		UcMessage("\"The Master's experiments are of an extremely secret nature. They are also quite dangerous.\"");
		UcSay;
		UI_add_answer_0C(["secret", "dangerous"]);
	labelFunc0424_02AF:
		cmps("secret");
		UI_remove_answer_0D("secret");
		UcMessage("\"Like any mage, the Master's work involves rare artifacts and arcane spells. Thou canst look as much as thou dost want for them. But thou shalt never be able to find them! Ha! Ha!\"");
		UcSay;
		if(!var0002) goto labelFunc0424_02E5;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Vasel, thou art a fool! I will not tolerate thee giving away my precious secrets! Stop it at once!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, Master... I am sorry... Please do not beat me...!\"");
		UcSay;
	labelFunc0424_02E5:
		cmps("dangerous");
		UI_remove_answer_0D("dangerous");
		UcMessage("\"I am not the first to have worked as the Master's assistant. Nor, I fear, shall I be the last. There have been many of us.\"");
		UcSay;
		UI_add_answer_0C(["first assistant", "last assistant", "other assistants"]);
	labelFunc0424_0308:
		cmps("first assistant");
		UI_remove_answer_0D("first assistant");
		UcMessage("\"I do not know the name of the Master's first assistant. His partial remains are around here somewhere. I do not know where. They are not where I last left them.\"");
		UcSay;
		if(!var0002) goto labelFunc0424_033A;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Hmph!  A lazy lout he was, as well. We shall not miss him!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_033A:
		cmps("last assistant");
		UI_remove_answer_0D("last assistant");
		UcMessage("\"The last assistant to the Master -- before myself, that is -- was named Boydon. In fact, thou canst say he is still the head assistant. Heh-heh-heh-heh...\"");
		UcSay;
		if(!var0002) goto labelFunc0424_0389;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"He was another one who was dead from the neck up!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Dost thou not actually mean dead from the neck down?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Yes, very well, Vasel. I shall concede that point.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_0389:
		cmps("other assistants");
		UI_remove_answer_0D("other assistants");
		UcMessage("\"Oh, little by little and bit by bit, they pop up now and again. I was never very good with names or faces... or arms or legs, or any of those other parts.\"");
		UcSay;
		if(!var0002) goto labelFunc0424_03BB;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Enough with this maudlin waste of time! Back to work with thee, Vasel!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_03BB:
		cmps("housekeeping");
		UI_remove_answer_0D("housekeeping");
		UcMessage("\"This place becomes quite... unkempt, and requires constant cleaning. 'Tis a dreadful thing to do! I hate the cleanings! I hate them!\"");
		UcSay;
		if(!var0002) goto labelFunc0424_03ED;
		UI_show_npc_face1_06(0xFFDD, 0x0000);
		UcMessage("\"Stop thy whining, Vasel! Back to work with thee!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0424_03ED:
		UI_add_answer_0C(["Why so much cleaning?", "Why hate cleaning?"]);
	labelFunc0424_03FA:
		cmps("Why so much cleaning?");
		UI_remove_answer_0D("Why so much cleaning?");
		UcMessage("\"The experiments are, to say the least, quite messy...\"");
		UcSay;
	labelFunc0424_040D:
		cmps("Why hate cleaning?");
		UI_remove_answer_0D("Why hate cleaning?");
		UcMessage("\"Because I have to... to touch... all those things! I have to pick them up, with all their little squeaky noises... and squirming!\"");
		UcSay;
		var0006 = Func0992(Shamino, "@Things?! Squirming things?! What sort of squirming things?! Not snakes!@", 0x0000, false);
		UI_remove_npc_face1_08();
		if(!(var0006 != 0xFE9C)) goto labelFunc0424_0449;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Snakes would be pleasant compared to what thou canst find here...\"");
		UcSay;
	labelFunc0424_0449:
		cmps("teleportation");
		UI_remove_answer_0D("teleportation");
		UcMessage("\"There is a way to travel quickly from one place to another, and its magic is very powerful. The Jawbone of the Serpent enables one to walk through the great Void. But it belongs to the Master.\"");
		UcSay;
		gflags[01C1] = true;
		var0006 = Func0992(Shamino, "@Thou dost mean one must actually touch such a hideous thing?! I simply cannot abide snakes!@", 0x0000, false);
		UI_remove_npc_face1_08();
		if(!(var0006 != 0xFE9C)) goto labelFunc0424_0489;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"'Tis not so hideous. Sometimes I amuse myself, taking the Teeth out and putting them back into the Jawbone...\"");
		UcSay;
	labelFunc0424_0489:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Good day to thee.@", 0x0000);
		Func097F(0xFFDC, "@Please do not hit me!@", 0x0003);
		goto labelFunc0424_04B7;
	labelFunc0424_04B4:
		goto labelFunc0424_00B7;
	labelFunc0424_04B7:
		end_conv();
	labelFunc0424_04B8:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0425 0x425 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_schedule_type_24(0xFFDB);
	if(!(event == 0x0002)) goto labelFunc0425_0083;
	UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	UI_set_weather_53(0x0000);
	UI_set_camera_AE(0xFE9C);
	var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x001E);
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	UI_init_conversation_85();
	UI_set_npc_id_BD(0xFFF0, 0x0000);
	UI_set_new_schedules_B6(0xFFDB, 0x0000, 0x000C, [0x09A7, 0x07F7]);
	UI_run_schedule_B7(0xFFDB);
	gflags[002A] = false;
	labelFunc0425_0083:
		if(!(event == 0x0000)) goto labelFunc0425_00F9;
		if(!(var0000 == 0x001D)) goto labelFunc0425_00F9;
		var0002 = UI_find_nearby_41(0xFFDB, 0x025F, 0x0002, 0x0010);
		var0003 = UI_get_item_quality_1C(var0002);
		if(!(var0003 == 0x000F)) goto labelFunc0425_00F9;
		UI_set_schedule_type_25(0xFFDB, 0x000F);
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x34, 0x36, 0x34, 0x34]);
		var0004 = UI_get_npc_id_BC(0xFFD8);
		var0004 = (var0004 + 0x0001);
		UI_set_npc_id_BD(0xFFD8, var0004);
	labelFunc0425_00F9:
		if(!((event == 0x0001) || ((event == 0x0000) && (UI_get_schedule_type_24(item) == 0x0009)))) goto labelFunc0425_01AF;
		var0005 = UI_get_random_00(0x0006);
		if(!(var0005 == 0x0001)) goto labelFunc0425_012F;
		UI_item_say_4D(0xFFDB, "@Awk!@");
	labelFunc0425_012F:
		if(!(var0005 == 0x0002)) goto labelFunc0425_0143;
		UI_item_say_4D(0xFFDB, "@See nor hear. See nor hear. Squawk!@");
	labelFunc0425_0143:
		if(!(var0005 == 0x0003)) goto labelFunc0425_0157;
		UI_item_say_4D(0xFFDB, "@Cracker!@");
	labelFunc0425_0157:
		if(!(var0005 == 0x0004)) goto labelFunc0425_016B;
		UI_item_say_4D(0xFFDB, "@Walla Walla!@");
	labelFunc0425_016B:
		if(!(var0005 == 0x0005)) goto labelFunc0425_019B;
		if(!Func0942(0xFFD5)) goto labelFunc0425_018B;
		UI_item_say_4D(0xFFD5, "@Leave the bird alone!@");
		goto labelFunc0425_019B;
	labelFunc0425_018B:
		var0006 = Func0992(0x0001, "@Cute bird.@", 0x0000, true);
	labelFunc0425_019B:
		if(!(var0005 == 0x0006)) goto labelFunc0425_01AF;
		UI_item_say_4D(0xFFDB, "@Squawk!@");
	labelFunc0425_01AF:
		if(!(event == 0x0007)) goto labelFunc0425_01D7;
		Func097F(0xFFDB, "@Skreee!@", 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFFDB);
		UI_set_attack_mode_59(0xFFDB, 0x0007);
	labelFunc0425_01D7:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);
extern Func0805 0x805 ();
extern Func0806 0x806 ();
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0426 0x426 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0942(0xFFD7);
	var0004 = false;
	var0005 = false;
	if(!(event == 0x0001)) goto labelFunc0426_005A;
	UI_item_say_4D(0xFE9C, "@Hello!@");
	0xFFDA;
	calle();
	Func097F(0xFFDA, (("@Yes, " + var0000) + "?@"), 0x0002);
	UI_set_schedule_type_25(0xFFDA, 0x0003);
	labelFunc0426_005A:
		if(!(event == 0x0000)) goto labelFunc0426_00FA;
		var0006 = UI_get_random_00(0x0006);
		if(!(var0006 == 0x0001)) goto labelFunc0426_0080;
		UI_item_say_4D(0xFFDA, "@Dost thou want a drink?@");
	labelFunc0426_0080:
		if(!(var0006 == 0x0002)) goto labelFunc0426_0094;
		UI_item_say_4D(0xFFDA, "@Art thou hungry?@");
	labelFunc0426_0094:
		if(!(var0006 == 0x0003)) goto labelFunc0426_00BE;
		if(!Func0942(0xFFD9)) goto labelFunc0426_00B4;
		UI_item_say_4D(0xFFDA, "@Sing us a song, Byrin!@");
		goto labelFunc0426_00BE;
	labelFunc0426_00B4:
		UI_item_say_4D(0xFFDA, "@Have some ale.@");
	labelFunc0426_00BE:
		if(!(var0006 == 0x0004)) goto labelFunc0426_00D2;
		UI_item_say_4D(0xFFDA, "@Dost thou want a room?@");
	labelFunc0426_00D2:
		if(!(var0006 == 0x0005)) goto labelFunc0426_00E6;
		UI_item_say_4D(0xFFDA, "@No brawls!@");
	labelFunc0426_00E6:
		if(!(var0006 == 0x0006)) goto labelFunc0426_00FA;
		UI_item_say_4D(0xFFDA, "@Do not break the chairs!@");
	labelFunc0426_00FA:
		if(!(event == 0x0009)) goto labelFunc0426_06FA;
		UI_run_schedule_B7(0xFFDA);
		UI_clear_item_say_4E(0xFFDA);
		UI_show_npc_face0_05(0xFFDA, 0x0000);
		var0007 = UI_get_item_flag_A3(0xFFDA, 0x001C);
		if(!(var0007 == false)) goto labelFunc0426_014F;
		if(!(gflags[003E] == true)) goto labelFunc0426_013E;
		UcMessage("\"Greetings, fellow Pikeman!\" ~\"Come in outta them strange storms and rest a bit...\" *\"This be the Inn of the Sleeping Bull.\" *\"And I be Argus, the innkeeper.\"");
		UcSay;
		goto labelFunc0426_0142;
	labelFunc0426_013E:
		UcMessage("\"Greetings, stranger.\" *\"Come in outta them strange storms and rest a bit...\" *\"This be the Inn of the Sleeping Bull.\" *\"And I be Argus, the innkeeper.\"");
		UcSay;
	labelFunc0426_0142:
		UI_set_item_flag_A4(0xFFDA, 0x001C);
		goto labelFunc0426_0159;
	labelFunc0426_014F:
		UcMessage("\"Welcome back, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0426_0159:
		UI_add_answer_0C(["storms", "Sleeping Bull", "food", "drink", "room", "bye"]);
		if(!(gflags[01D9] == true)) goto labelFunc0426_0187;
		UI_add_answer_0C(["duel", "bribes"]);
	labelFunc0426_0187:
		UcAsk;
		cmps("storms");
		UcMessage("\"These ain't natural storms... Or I was never a Wolf Captain.\" *\"If thou wert to ask me, living all these years across from Moonshade, I'd say they were magic born. And I'm afeard they'll drive us out of business if they last too long.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["Wolf Captain", "Moonshade", "out of business"]);
	labelFunc0426_01AD:
		cmps("Wolf Captain");
		if(!(gflags[003E] == true)) goto labelFunc0426_01C4;
		UcMessage("\"I see that thou'rt also of the Wolf Command, though I must confess I can't recall having seen thee.\" *\"Until my father disappeared six months ago, I was a Captain in the Monitor Wolf Command.\" *\"Now, however, I am the innkeeper and I'll not stand by the formalities of rank. Thou'rt welcome here.\"");
		UcSay;
		goto labelFunc0426_01F7;
	labelFunc0426_01C4:
		UcMessage("\"I am sorry, ");
		UcMessage(var0000);
		UcMessage(". I did not realize that thou wert not from hereabouts.\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0426_01F3;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"Ha! Thou wert fishin' for a way to tell thy tales!\" *\"I thought I broke thee of lying when thou wert a lad...\" *\"Mind thee... Captain... I can still warm thy backside if I've a mind to.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And I do not doubt that she could... and would!\"");
		UcSay;
	labelFunc0426_01F3:
		UcMessage("\"Until my father disappeared six months ago, I was a Captain in the Monitor Wolf Command.\"");
		UcSay;
	labelFunc0426_01F7:
		UI_remove_answer_0D("Wolf Captain");
		UI_add_answer_0C(["father disappeared", "Monitor", "Wolf Command"]);
	labelFunc0426_020E:
		cmps("father disappeared");
		UcMessage("\"Aye, Angus disappeared... And not during one of those storms neither. We could have understood that.\" *\"And mother... er, Devra... Said that one of our guests disappeared the very same evening.\"");
		UcSay;
		UI_remove_answer_0D("father disappeared");
		UI_add_answer_0C("one of our guests");
	labelFunc0426_0228:
		cmps("one of our guests");
		UcMessage("\"Thou must needs ask mother what she remembers of that night. I weren't here.\" *\"Mother was understandably aggrieved by the time she called me home.\" *\"She had hoped that Lord Wilfred would come to run the inn as father had hoped, but I came instead...\" *\"And I don't recall if she mentioned the guest's name, to be honest.\"");
		UcSay;
		UI_remove_answer_0D("one of our guests");
		UI_add_answer_0C("Lord Wilfred");
	labelFunc0426_0242:
		cmps("Lord Wilfred");
		UcMessage("\"Blast! Did I call him that? Old habits die hard...\" *\"I'd thank thee not to repeat that in Devra's hearing for she'd have mine ears for sure.\" *\"Wilfred is my younger brother. And, like most brothers, we have our share of spats.\"");
		UcSay;
		UI_remove_answer_0D("Lord Wilfred");
		UI_add_answer_0C("spats");
	labelFunc0426_025C:
		cmps("spats");
		UcMessage("\"I grew up here in the inn, scrubbing pots and whatever else were needed.\" *\"But I dreamed of seeing more of the world. I went wandering when I was a young lad...\" *\"And Angus, our father, raised Wilfred using me as the bad example. But instead of making Wilfred hold to his wishes, Angus drove Wilfred into my footsteps, determined to best anything I did.\"");
		UcSay;
		UI_remove_answer_0D("spats");
		UI_add_answer_0C(["bad example", "best"]);
	labelFunc0426_027C:
		cmps("bad example");
		UcMessage("\"Father said I were too much like my great-grandfather, Silverpate.	He never thought I'd amount to much, even after I'd made Captain.\"");
		UcSay;
		UcMessage("\"It like to broke his heart when Wilfred ran away to Monitor. That's where the @Lord@ Wilfred hies from...\"");
		UcSay;
		UcMessage("\"He acts like a swaggering noble, with all his self-important ambition.\"");
		UcSay;
		UI_remove_answer_0D("bad example");
		UI_add_answer_0C("Silverpate");
	labelFunc0426_029E:
		cmps("Silverpate");
		UcMessage("\"Silverpate were a pirate, I'll make no bones about it. He built this inn when he retired from the sea.\" *\"His son, Donal -- my father's father -- took over when Silverpate disappeared. Some think he might have gone back to the sea. Others say that his evil past caught up to him... No one ever saw him again. But there've been plenty wantin' to hunt for his treasure.\"");
		UcSay;
		UI_remove_answer_0D("Silverpate");
		UI_add_answer_0C("treasure");
	labelFunc0426_02B8:
		cmps("treasure");
		UcMessage("\"Family legend doth say that Silverpate used part of his treasure to build the inn. Everyone seems to think that he hid whatever was left somewhere around here before he disappeared.\" *\"But I'll tell thee, there ain't no treasure. And I should know...\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0426_02E9;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"Aye, indeed! Thou and thy friends didst pry into everything and dug holes from here to Monitor when thou wert young! I never stopped thee... I thought thy father had done the same when he was young.\" *\"But I whaled thee good when I caught thee digging in me garden!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Aye... I stood up to dinner that night. I remember.\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0426_02E9:
		UI_remove_answer_0D("treasure");
	labelFunc0426_02F0:
		cmps("best");
		UcMessage("\"I became a Captain in Monitor, but that was not good enough for Wilfred. He had to be a knight... and a Bear at that.\" *\"'Tis sad to see the likes of him and his friends making a mockery of Monitor's ideals.\"");
		UcSay;
		UI_remove_answer_0D("best");
		UI_add_answer_0C("ideals");
	labelFunc0426_030A:
		cmps("ideals");
		if(!(gflags[003E] == true)) goto labelFunc0426_0321;
		UcMessage("\"Thou hast seen the changes, I'm sure...\"");
		UcSay;
		goto labelFunc0426_032B;
	labelFunc0426_0321:
		UcMessage("\"'Tis sad to say, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc0426_032B:
		UcMessage("\"Courage and Valor have become so debased that Knights like Wilfred are little more than braggarts and mercenaries! Where once the pinnacle of honor was a Monitorian knight, now people see them as vain bullies.\" *\"It sickens me... I had nearly decided to renounce my commission when mother sent word of father's disappearance.\"");
		UcSay;
		UI_remove_answer_0D("ideals");
	labelFunc0426_0336:
		cmps("Monitor");
		if(!(gflags[003E] == true)) goto labelFunc0426_034D;
		UcMessage("\"What can I tell thee that thou dost not already know?\"");
		UcSay;
		goto labelFunc0426_0351;
	labelFunc0426_034D:
		UcMessage("\"Where to start?\"");
		UcSay;
	labelFunc0426_0351:
		UcMessage("\"Monitor is a city to the south of here. 'Tis dedicated to Courage and Valor. Monitorian soldiers are called the Pikemen and wear a tattoo on their faces.\"");
		UcSay;
		UcMessage("\"There are three Pikemen Commands -- the wolves, the leopards, and the bears. I am a Captain in the Wolf Command. Each Command runs the city for a portion of the year.\"");
		UcSay;
		UI_remove_answer_0D("Monitor");
		UI_add_answer_0C("runs the city");
	labelFunc0426_0367:
		cmps("runs the city");
		UcMessage("\"The senior officer of the Command becomes Lord of Monitor for that Command's portion of the year. This ensures the continuing balance of Commands.\"");
		UcSay;
		UcMessage("\"'Twas meant to keep the battling for supremacy between the Commands at a minimum.\" *\"If each Command knows that it will have a chance to control the city during the year, more attention is given to the military functions of the Command rather than the political.\"");
		UcSay;
		UI_remove_answer_0D("runs the city");
	labelFunc0426_037E:
		cmps("Wolf Command");
		if(!(gflags[003E] == true)) goto labelFunc0426_0395;
		UcMessage("\"A hardy bunch, are we not? Not as hot-headed as those Bears, and much more tightly knit than those Leopards.\"");
		UcSay;
		goto labelFunc0426_039F;
	labelFunc0426_0395:
		UcMessage("\"We are a hardy bunch, ");
		UcMessage(var0000);
		UcMessage(". Not as hot-headed as those Bears, and much more tightly knit than those Leopards.\"");
		UcSay;
	labelFunc0426_039F:
		UI_remove_answer_0D("Wolf Command");
	labelFunc0426_03A6:
		cmps("Moonshade");
		UcMessage("\"I've ne'er been there myself, not being overly fond of wizards and their feuds. But if thou desirest spells or items of enchantment, that is the place to go.\" *\"If thou art looking to go to the City of Mages, thou wilt need a boat.\"");
		UcSay;
		UI_remove_answer_0D("Moonshade");
		UI_add_answer_0C(["wizard feuds", "boat"]);
	labelFunc0426_03C6:
		cmps("wizard feuds");
		UcMessage("\"There isn't a sorcerer alive what doesn't scheme to become MageLord of that city! The whole place is split into rival factions that bicker constantly with each other.\"");
		UcSay;
		UI_remove_answer_0D("wizard feuds");
	labelFunc0426_03D9:
		cmps("boat");
		UcMessage("\"The Magic Storms have wrecked every boat on this coast except one. That vessel belongs to Captain Hawk.\"");
		UcSay;
		UI_remove_answer_0D("boat");
		UI_add_answer_0C("Captain Hawk");
	labelFunc0426_03F3:
		cmps("Captain Hawk");
		UcMessage("\"'Tis no use to think of hiring him. He was in a fracas here, broke things up a bit.\" *\"The Pikemen dragged Hawk away when he took a swing at their commander. He's being held at Bull Tower until he pays their fine.\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0426_0420;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"Fine! More like ransom, I'd call it! Thou knowest as well as I, Argus, that Hawk can't pay...\" *\"Not if he doesn't put out from here. And he swore he wouldn't until these storms stop.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0426_0420:
		gflags[01CD] = true;
		UI_remove_answer_0D("Captain Hawk");
		UI_add_answer_0C("Pikemen");
	labelFunc0426_0432:
		cmps("Pikemen");
		UcMessage("\"I didn't call them, ");
		UcMessage(var0000);
		UcMessage(". I've known Hawk since I was a boy and, being a Pikeman myself, I have little to worry about with him.\"");
		UcSay;
		UcMessage("\"To be sure, he can put up a mighty fight and break things... But he always pays for the damages when he wakes. Someone else must have pulled them in after him.\"");
		UcSay;
		UI_remove_answer_0D("Pikemen");
		UI_add_answer_0C("someone else");
	labelFunc0426_0456:
		cmps("someone else");
		UcMessage("\"I'd wager my sword that it was that merchant, Flindo. He was mightily put out when Hawk refused to sail to Moonshade until the storms eased up.\"");
		UcSay;
		UI_remove_answer_0D("someone else");
	labelFunc0426_0469:
		cmps("out of business");
		UcMessage("\"Aye, few people care to stray too far from shelter these days.\" *\"Even Hawk put in here and refused to budge because of the storms... Though his passengers are less than thrilled with his decision.\" *\"And all our help ran off to the cities, hoping that it would be safer around all those buildings.\"");
		UcSay;
		UI_remove_answer_0D("out of business");
		UI_add_answer_0C("passengers");
	labelFunc0426_0483:
		cmps("passengers");
		UcMessage("\"Hawk hath two passengers staying here until he puts out again -- if he ever pays the Pikemen, that is. One of them is the fellow with the parrot. Kane, I think his name is. The other is an arrogant fellow named Flindo. He's a merchant.\" *\"I was glad to have them, being as we only have four other guests.\"");
		UcSay;
		UI_remove_answer_0D("passengers");
		UI_add_answer_0C("guests");
	labelFunc0426_049D:
		cmps("guests");
		UcMessage("\"Yes... There be Ensorcio. He's an exiled mage from Moonshade.\" *\"There be Selina, who hath not been here very long. She is very afraid of these storms...\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0426_04CE;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"Bah! She's no more afraid of those storms than thou art! She follows thee about right well enough, storm or no!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Mother!\"");
		UcSay;
	labelFunc0426_04CE:
		UcMessage("\"Byrin's here, which is a blessing. 'Tis good to have a gleeman to pass the weary hours between storms. And then there be that new fellow, Miggim. I don't know too much about him... He hath only been here a few days and is rarely out of his room.\"");
		UcSay;
		UI_remove_answer_0D("guests");
	labelFunc0426_04D9:
		cmps("Sleeping Bull");
		UcMessage("\"'Tis an uncommon name, to be sure. It doth have something to do with the village that once was here. According to family tales, this land once belonged to a mage who hated all people. This mage created a huge stone bull to kill trespassers on his land.\"");
		UcSay;
		UcMessage("\"'Twas the bull's defeat that gave the village its name... And, in turn, became the name of the inn itself.\"");
		UcSay;
		UI_remove_answer_0D("Sleeping Bull");
		UI_add_answer_0C("bull's defeat");
	labelFunc0426_04F7:
		cmps("bull's defeat");
		UcMessage("\"One day the mage heard a local noble's son claim that he could defeat the bull. The mage told the boy he was welcome to try, but death would be the reward of failure.\"");
		UcSay;
		UcMessage("\"When the boy asked what would reward his success, the mage wagered his land. That night the boy stole the ring from the bull's nose, turning it back to inanimate stone.\"");
		UcSay;
		UcMessage("\"The village was named after the huge stone bull that once stood in the center of the market square. I do not know what happened to the bull, if ever there was one, for I searched for it as a lad and never found it.\"");
		UcSay;
		UI_remove_answer_0D("bull's defeat");
	labelFunc0426_0512:
		cmps("duel");
		UcMessage("\"I will not lie to thee... I did, indeed, kill a man in a duel of honor. As I called the duel, it was he who named the conditions.\" *\"He were equally trained and armed as myself, else I would have demanded to cross swords with his seconds. And I would have asked him to yield, but my blow glanced off his hilt and took him square in the throat.\"");
		UcSay;
		UI_remove_answer_0D("duel");
		UI_add_answer_0C("called the duel");
	labelFunc0426_052C:
		cmps("called the duel");
		UcMessage("\"He likened me to my forefather, Silverpate -- loudly, and in public. I asked for his apology, and when he further heaped filth upon my name... I called him to duel before witnesses.\"");
		UcSay;
		UI_remove_answer_0D("called the duel");
	labelFunc0426_053F:
		cmps("bribes");
		UI_push_answers_0E();
		UcMessage("\"By the stone bull's horns! I'd like to know who insists on telling these false tales! I was cleared of all allegations by my commander and I'll have thine apology for spreading such a lie!\"");
		UcSay;
		UcMessage("\"Wilt thou apologize? Or shall I take my recompense from thine hide?\"");
		UcSay;
		UI_add_answer_0C(["apologize", "don't apologize"]);
	labelFunc0426_0560:
		cmps("apologize");
		UcMessage("\"I accept thine apology...\" *\"Thou art wise, for I had no wish to do thee harm. But I shall not stand by while my name is abused. Forgive me, but I must withdraw until I am more sure of my temper.\"");
		UcSay;
		abrt();
	labelFunc0426_056D:
		cmps("don't apologize");
		UcMessage("\"So be it then!\" ~\"Prepare thyself to be thrashed!\"");
		UcSay;
		Func09AD(0xFFDA);
		abrt();
	labelFunc0426_0580:
		cmps("food");
		if(!((UI_get_schedule_type_24(0xFFDA) == 0x0007) || (UI_get_schedule_type_24(0xFFDA) == 0x0017))) goto labelFunc0426_05DC;
		if(!(!var0005)) goto labelFunc0426_05D6;
		UcMessage("\"Mother doth do all the cooking here... and she is very good.\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0426_05D2;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"What a nice son! He compliments me so!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"It IS true.\"");
		UcSay;
	labelFunc0426_05D2:
		var0005 = true;
	labelFunc0426_05D6:
		Func0805();
		goto labelFunc0426_05E7;
	labelFunc0426_05DC:
		UcMessage("\"Return when we be open, and I will sell thee a meal!\"");
		UcSay;
		UI_remove_answer_0D("food");
	labelFunc0426_05E7:
		cmps("drink");
		if(!((UI_get_schedule_type_24(0xFFDA) == 0x0007) || (UI_get_schedule_type_24(0xFFDA) == 0x0017))) goto labelFunc0426_0619;
		UcMessage("\"I am certain our selection will please thee, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		Func0806();
		goto labelFunc0426_0624;
	labelFunc0426_0619:
		UcMessage("\"If thou wilt return when we are open, I will sell thee a drink!\"");
		UcSay;
		UI_remove_answer_0D("drink");
	labelFunc0426_0624:
		cmps("room");
		UcMessage("\"The cost is 8 gold coins per person. Wouldst thou like a room for the night?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0426_06C4;
		var0008 = UI_get_party_list_2B();
		var0009 = 0x0000;
		enum();
	labelFunc0426_0644:
		for (var000C in var0008 with var000A to var000B atend labelFunc0426_065C);
		var0009 = (var0009 + 0x0001);
		goto labelFunc0426_0644;
	labelFunc0426_065C:
		var000D = (var0009 * 0x0008);
		var000E = UI_count_objects_31(0xFE9B, 0x0284, 0xFE99, 0xFE99);
		if(!(var000E >= var000D)) goto labelFunc0426_06BD;
		UcMessage("\"Here is the key to room number 3.\"");
		UcSay;
		var000F = UI_remove_party_items_34(var000D, 0x0284, 0xFE99, 0xFE99, 0x0000);
		var0010 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0003, 0x0009, 0x0000, true);
		UcMessage("\"The rooms are upstairs.\"");
		UcSay;
		goto labelFunc0426_06C1;
	labelFunc0426_06BD:
		UcMessage("\"I do believe thou dost not have enough gold coins for a room.\"");
		UcSay;
	labelFunc0426_06C1:
		goto labelFunc0426_06C8;
	labelFunc0426_06C4:
		UcMessage("\"Some other time, then.\"");
		UcSay;
	labelFunc0426_06C8:
		UI_remove_answer_0D("room");
	labelFunc0426_06CF:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		Func097F(0xFFDA, "@Come again!@", 0x0002);
		goto labelFunc0426_06F9;
	labelFunc0426_06F6:
		goto labelFunc0426_0187;
	labelFunc0426_06F9:
		end_conv();
	labelFunc0426_06FA:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0957 0x957 (var var0000);
extern Func09B0 0x9B0 (var var0000);
extern var Func0955 0x955 ();

Func0427 0x427 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_item_flag_A3(0xFFD9, 0x001C);
	var0004 = Func0994();
	var0005 = Func0942(Iolo);
	var0006 = Func0942(Dupre);
	var0007 = Func0942(Shamino);
	if(!(event == 0x0001)) goto labelFunc0427_0077;
	UI_item_say_4D(0xFE9C, "@Hail, minstrel!@");
	0xFFD9;
	calle();
	Func097F(0xFFD9, (("@Greetings, " + var0000) + "!@"), 0x0005);
	UI_set_schedule_type_25(0xFFD9, 0x0003);
	labelFunc0427_0077:
		if(!(event == 0x0009)) goto labelFunc0427_06A0;
		UI_run_schedule_B7(0xFFD9);
		UI_clear_item_say_4E(0xFFD9);
		UI_show_npc_face0_05(0xFFD9, 0x0000);
		if(!(var0004 == 0x001F)) goto labelFunc0427_00D1;
		if(!(var0003 == true)) goto labelFunc0427_00B0;
		UcMessage("\"I had wondered when I would encounter thee here, Avatar. Thou wouldst like some answers, no doubt.\" *\"Or perhaps I could sing thee a song to ease thy way.\"");
		UcSay;
		goto labelFunc0427_00BE;
	labelFunc0427_00B0:
		UcMessage("\"Welcome, fellow dreamer! I am Byrin, a gleeman by trade.\" *\"Thou dost look perplexed. I'll warrant that thou wouldst like some answers. Or perhaps I could sing thee a song to ease thy way.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFD9, 0x001C);
	labelFunc0427_00BE:
		UI_add_answer_0C(["answers", "song", "bye"]);
		goto labelFunc0427_0122;
	labelFunc0427_00D1:
		if(!(var0003 == false)) goto labelFunc0427_0108;
		if(!(gflags[003E] == true)) goto labelFunc0427_00F7;
		if(!(var0001 == true)) goto labelFunc0427_00F0;
		UcMessage("\"Ah, welcome to the Sleeping Bull, noble lady! I am Byrin, a gleeman... or minstrel, if thou wilt. I know several tales or tunes that might stir thy brave heart.\"");
		UcSay;
		goto labelFunc0427_00F4;
	labelFunc0427_00F0:
		UcMessage("\"Welcome to the Sleeping Bull, brave pikeman! I am Byrin, a gleeman... or minstrel, if thou wilt. I know many tales and tunes of valor and adventure.\"");
		UcSay;
	labelFunc0427_00F4:
		goto labelFunc0427_00FB;
	labelFunc0427_00F7:
		UcMessage("\"Thou art welcome to the Sleeping Bull, fellow traveller! I am Byrin, a wandering gleeman... or minstrel, if thou wilt. I know many tales and tunes to help pass the evenings.\"");
		UcSay;
	labelFunc0427_00FB:
		UI_set_item_flag_A4(0xFFD9, 0x001C);
		goto labelFunc0427_0112;
	labelFunc0427_0108:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("! What a pleasure to see thee here... I knew that thou couldst not stay long away from my tales and tunes!\"");
		UcSay;
	labelFunc0427_0112:
		UI_add_answer_0C(["tales", "tunes", "bye"]);
	labelFunc0427_0122:
		UcAsk;
		cmps("answers");
		UcMessage("\"Thou mayest find that the answers only give rise to more questions. But I shall do my best to help thee.\" *\"First thou must know that thou dost walk in the land of dreamers. There are only two ways to enter or exit here.\"");
		UcSay;
		UI_remove_answer_0D("answers");
		UI_add_answer_0C("two ways");
	labelFunc0427_013F:
		cmps("two ways");
		UcMessage("\"The first way to enter this realm is from the safety of thy bed... In thy nightly slumber.\" *\"The second way to enter here is far more perilous... By falling prey to the enchantments in Gorlab Swamp.\"");
		UcSay;
		UI_remove_answer_0D("two ways");
		UI_add_answer_0C("Gorlab Swamp");
	labelFunc0427_0159:
		cmps("Gorlab Swamp");
		UcMessage("\"Long ago -- even before the serpent people made this land their home -- a sorcerer named Rabindrinath swore to destroy the peaceful town of Gorlab. But the town healer, Siranush, opposed him and the evil spell went awry.\" *\"The inhabitants of the town were not destroyed, but trapped within the realm of dreams... Along with the mad sorceror... And any who dare enter the environs of Gorlab.\"");
		UcSay;
		UI_remove_answer_0D("Gorlab Swamp");
		UI_add_answer_0C(["Rabindrinath", "Siranush"]);
	labelFunc0427_0179:
		cmps("Rabindrinath");
		UcMessage("\"Rabindrinath hath struggled mightily against Siranush across the span of time. Each of his attacks have been repelled... Much to his displeasure.\"");
		UcSay;
		UI_remove_answer_0D("Rabindrinath");
		UI_add_answer_0C("displeasure");
	labelFunc0427_0193:
		cmps("displeasure");
		UcMessage("\"Rabindrinath vents his anger by troubling the dreams of those who venture here.\"");
		UcSay;
		UI_remove_answer_0D("displeasure");
	labelFunc0427_01A6:
		cmps("Siranush");
		UcMessage("\"Siranush is a strong-willed woman who hath repelled all of Rabindrinath's attacks on her people. She is no sorcerer, and I fear that her strength will one day fail her.\" *\"If Siranush is vanquished, I am sure that Rabindrinath will turn his evil intent on the wandering dreamers. Without Siranush's guidance, those who enter here might never leave.\"");
		UcSay;
		UI_remove_answer_0D("Siranush");
		UI_add_answer_0C("leave");
	labelFunc0427_01C0:
		cmps("leave");
		UcMessage("\"As I said before, there are two ways to enter the land of dreamers. If thou didst come here from the comfort of thy bed, thou canst simply awaken and thou wilt return to the land of waking men.\" *\"But, if thou didst come here through the enchantments in the Swamp, thou must die here to return to thy body.\"");
		UcSay;
		UI_remove_answer_0D("leave");
		UI_add_answer_0C("die");
	labelFunc0427_01DA:
		cmps("die");
		UcMessage("\"By die, I do not mean that thou must cease living. I mean that thy perceived life here must end...\" *\"Thy death here returns thee to thy body. So long as Siranush prevails and thy body lives, thou canst return to the world of waking men.\" *\"But if Siranush should fall, or thy body die... Thou shalt remain trapped here for all time.\"");
		UcSay;
		UI_remove_answer_0D("die");
	labelFunc0427_01ED:
		cmps("song");
		UcMessage("\"I know many songs...\" ~\"Dost thou wish to hear one I have already sung?\" ~\"Or dost thou wish to hear a new song?\"");
		UcSay;
		var0008 = [];
		if(!(Func0957(["old song", "new song"]) == 0x0001)) goto labelFunc0427_0281;
		if(!(gflags[01D3] == true)) goto labelFunc0427_0224;
		var0008 = (var0008 & 0x0001);
	labelFunc0427_0224:
		if(!(gflags[01D4] == true)) goto labelFunc0427_0236;
		var0008 = (var0008 & 0x0002);
	labelFunc0427_0236:
		if(!(gflags[01D5] == true)) goto labelFunc0427_0248;
		var0008 = (var0008 & 0x0003);
	labelFunc0427_0248:
		if(!(gflags[01D6] == true)) goto labelFunc0427_025A;
		var0008 = (var0008 & 0x0004);
	labelFunc0427_025A:
		if(!(gflags[01D7] == true)) goto labelFunc0427_026C;
		var0008 = (var0008 & 0x0005);
	labelFunc0427_026C:
		if(!(gflags[01D8] == true)) goto labelFunc0427_027E;
		var0008 = (var0008 & 0x0006);
	labelFunc0427_027E:
		goto labelFunc0427_02ED;
	labelFunc0427_0281:
		if(!(gflags[01D3] == false)) goto labelFunc0427_0293;
		var0008 = (var0008 & 0x0001);
	labelFunc0427_0293:
		if(!(gflags[01D4] == false)) goto labelFunc0427_02A5;
		var0008 = (var0008 & 0x0002);
	labelFunc0427_02A5:
		if(!(gflags[01D5] == false)) goto labelFunc0427_02B7;
		var0008 = (var0008 & 0x0003);
	labelFunc0427_02B7:
		if(!(gflags[01D6] == false)) goto labelFunc0427_02C9;
		var0008 = (var0008 & 0x0004);
	labelFunc0427_02C9:
		if(!(gflags[01D7] == false)) goto labelFunc0427_02DB;
		var0008 = (var0008 & 0x0005);
	labelFunc0427_02DB:
		if(!(gflags[01D8] == false)) goto labelFunc0427_02ED;
		var0008 = (var0008 & 0x0006);
	labelFunc0427_02ED:
		if(!(var0008 == [])) goto labelFunc0427_02FE;
		UcMessage("\"I'm sorry... Thou hast heard all of my songs.\"");
		UcSay;
		goto labelFunc0427_031B;
	labelFunc0427_02FE:
		var0009 = UI_get_random_00(UI_get_array_size_73(var0008));
		var000A = var0008[var0009];
		Func09B0(var000A);
	labelFunc0427_031B:
		cmps("tales");
		UcMessage("\"For those with an adventurous spirit, I can tell thee of the northern savages.\"");
		UcSay;
		UcMessage("\"For those who wish to hear of a lost civilization, I can tell thee of the people who left the ruins on this continent.\"");
		UcSay;
		UcMessage("\"For those who would hear a tale of bitter bravery, I can tell thee of the lost king.\"");
		UcSay;
		UI_remove_answer_0D("tales");
		UI_add_answer_0C(["northern savages", "lost culture", "lost king"]);
	labelFunc0427_0346:
		cmps("northern savages");
		UcMessage("\"Once thou dost leave the warm lands of Man, thou dost come into the realm of the northern savages. These creatures have faces that strongly resemble that of a normal man, but they are covered head to foot in a shaggy fur pelt.\"");
		UcSay;
		UcMessage("\"Some say that these creatures are some lost tribe of Man that hath adapted to the cold.\" ~\"Still others claim that the savages are a mage-created race that guards some great, mystical secret.\"");
		UcSay;
		UcMessage("\"None can say if they are intelligent.\" ~\"They build no structures and speak no recognizable language.\"");
		UcSay;
		if(!(gflags[01D5] == false)) goto labelFunc0427_037F;
		UcMessage("\"There is also a song about the northern savages.\" ~\"Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_037B;
		UcMessage("\"All right, then...\"");
		UcSay;
		Func09B0(0x0003);
		goto labelFunc0427_037F;
	labelFunc0427_037B:
		UcMessage("\"Perhaps some other time, then.\"");
		UcSay;
	labelFunc0427_037F:
		UI_remove_answer_0D("northern savages");
	labelFunc0427_0386:
		cmps("lost culture");
		UcMessage("\"Long ago, before any of the cities thou knowest today were built, there was a race of Man who worshipped three great elemental serpents. Some followed one of fire. Others followed one of ice. And still others followed one of earth.\"");
		UcSay;
		UcMessage("\"As only the serpent of earth could withstand both the fire and the ice of the other serpents, it possessed the most power. The fire and ice serpents were violently opposed to each other, but were held in check by the serpent of earth.\"");
		UcSay;
		UcMessage("\"Then the serpent of earth lost power. The fire and ice serpents warred for supremacy. When the battle ended, it mattered not which serpent had won... for the land was destroyed and all the worshippers lay dead.\"");
		UcSay;
		UI_remove_answer_0D("lost culture");
	labelFunc0427_03A1:
		cmps("lost king");
		UcMessage("\"To the north of here stand two castles, seemingly left empty by the ravages of time. But neither is truly empty, for they both hold the ghosts of trust betrayed.\"");
		UcSay;
		UcMessage("\"In one majestic castle a lady waits for her faithless lover who pledged his love and never returned. In the other, a father and ruler, driven mad for the loss of daughter and erstwhile friend, took his people beyond the cares of time.\"");
		UcSay;
		UcMessage("\"All the trapped souls await the return of the one whose desertion forever changed the land he had sworn to protect. All wait for the return of the lost king... and revenge!\"");
		UcSay;
		if(!(var0007 == true)) goto labelFunc0427_03DA;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Wait! What art thou talking about? It seems... But no! It could not be!\" *\"Hast thou any more to tell of this @lost king@? Dost thou know his name?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Few in truth have ventured within that castle, lord. They fear the wrath of she who dwells there...\" *\"And none have ever returned from the other castle. But the name that is given for the lost king is... Lord Shamino.\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0427_03DA:
		if(!(var0006 == true)) goto labelFunc0427_03FB;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"It can't be!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0427_03FB:
		if(!(var0005 == true)) goto labelFunc0427_041C;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"There must be some mistake!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0427_041C:
		if(!(gflags[01D3] == false)) goto labelFunc0427_0441;
		UcMessage("\"There is a song about the lady.\" ~\"Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_043D;
		UcMessage("\"It is a sad ballad indeed...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc0427_0441;
	labelFunc0427_043D:
		UcMessage("\"Another time, then.\"");
		UcSay;
	labelFunc0427_0441:
		if(!(gflags[01D8] == false)) goto labelFunc0427_0466;
		UcMessage("\"There is a song about the other castle, as well.\" ~\"Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_0462;
		UcMessage("\"Prepare thyselves...\"");
		UcSay;
		Func09B0(0x0006);
		goto labelFunc0427_0466;
	labelFunc0427_0462:
		UcMessage("\"Another time, then.\"");
		UcSay;
	labelFunc0427_0466:
		UI_remove_answer_0D("lost king");
	labelFunc0427_046D:
		cmps("tunes");
		if(!(gflags[003E] == true)) goto labelFunc0427_04AD;
		if(!(var0001 == true)) goto labelFunc0427_0499;
		UcMessage("\"For thee, brave lady, I would sing of dreams, or perhaps of tragedy. Of course, although I sing to entertain others, I hope for some small token of appreciation... if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["dreams", "tragedy"]);
		goto labelFunc0427_04AA;
	labelFunc0427_0499:
		UcMessage("\"For thee, noble sir, I would sing a heart-rending ballad, or perhaps long-lost lore. Of course, although I sing to entertain others, I hope for some small token of appreciation... if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["ballad", "lore"]);
	labelFunc0427_04AA:
		goto labelFunc0427_04BE;
	labelFunc0427_04AD:
		UcMessage("\"I sense that thou dost like adventure. For thee I would sing of strange beings and strange places. Of course, although I sing to entertain others, I hope for some small token of appreciation... if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["strange beings", "strange places"]);
	labelFunc0427_04BE:
		UI_remove_answer_0D("tunes");
	labelFunc0427_04C5:
		cmps("dreams");
		if(!(gflags[01D7] == true)) goto labelFunc0427_04FC;
		UcMessage("\"I believe that thou hast already heard that one.\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_04EE;
		UcMessage("\"My pleasure...\"");
		UcSay;
		Func09B0(0x0005);
		goto labelFunc0427_04F9;
	labelFunc0427_04EE:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_04F9:
		goto labelFunc0427_0506;
	labelFunc0427_04FC:
		UcMessage("\"I hope thou dost enjoy it...\"");
		UcSay;
		Func09B0(0x0005);
	labelFunc0427_0506:
		UI_remove_answer_0D("dreams");
	labelFunc0427_050D:
		cmps("tragedy");
		if(!(gflags[01D8] == true)) goto labelFunc0427_0544;
		UcMessage("\"I seem to remember singing this for thee before...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_0536;
		UcMessage("\"One more time then...\"");
		UcSay;
		Func09B0(0x0006);
		goto labelFunc0427_0541;
	labelFunc0427_0536:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_0541:
		goto labelFunc0427_054E;
	labelFunc0427_0544:
		UcMessage("\"Relax and be at ease...\"");
		UcSay;
		Func09B0(0x0006);
	labelFunc0427_054E:
		UI_remove_answer_0D("tragedy");
	labelFunc0427_0555:
		cmps("ballad");
		if(!(gflags[01D3] == true)) goto labelFunc0427_058C;
		UcMessage("\"I am sure that thou hast already...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_057E;
		UcMessage("\"As thou wishest...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc0427_0589;
	labelFunc0427_057E:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_0589:
		goto labelFunc0427_0596;
	labelFunc0427_058C:
		UcMessage("\"I believe I remember it...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc0427_0596:
		UI_remove_answer_0D("ballad");
	labelFunc0427_059D:
		cmps("lore");
		if(!(gflags[01D4] == true)) goto labelFunc0427_05D4;
		UcMessage("\"I fear that thou dost already know this one...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_05C6;
		UcMessage("\"Thou canst sing along if thou wishest...\"");
		UcSay;
		Func09B0(0x0002);
		goto labelFunc0427_05D1;
	labelFunc0427_05C6:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_05D1:
		goto labelFunc0427_05DE;
	labelFunc0427_05D4:
		UcMessage("\"I think this be the right key...\"");
		UcSay;
		Func09B0(0x0002);
	labelFunc0427_05DE:
		UI_remove_answer_0D("lore");
	labelFunc0427_05E5:
		cmps("strange beings");
		if(!(gflags[01D5] == true)) goto labelFunc0427_061C;
		UcMessage("\"I have done this one for thee before...\" \"~Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_060E;
		UcMessage("\"Very well...\"");
		UcSay;
		Func09B0(0x0003);
		goto labelFunc0427_0619;
	labelFunc0427_060E:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_0619:
		goto labelFunc0427_0626;
	labelFunc0427_061C:
		UcMessage("\"Thou wilt like the tempo on this one...\"");
		UcSay;
		Func09B0(0x0003);
	labelFunc0427_0626:
		UI_remove_answer_0D("strange beings");
	labelFunc0427_062D:
		cmps("strange places");
		if(!(gflags[01D6] == true)) goto labelFunc0427_0664;
		UcMessage("\"Thou knowest this one...\" \"~Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0427_0656;
		UcMessage("\"I am cheered that thou dost like it...\"");
		UcSay;
		Func09B0(0x0004);
		goto labelFunc0427_0661;
	labelFunc0427_0656:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc0427_0661:
		goto labelFunc0427_066E;
	labelFunc0427_0664:
		UcMessage("\"Listen carefully...\"");
		UcSay;
		Func09B0(0x0004);
	labelFunc0427_066E:
		UI_remove_answer_0D("strange places");
	labelFunc0427_0675:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell, gleeman!@", 0x0000);
		Func097F(0xFFD9, "@May thy path be smooth!@", 0x0005);
		goto labelFunc0427_069F;
	labelFunc0427_069C:
		goto labelFunc0427_0122;
	labelFunc0427_069F:
		end_conv();
	labelFunc0427_06A0:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func0942 0x942 (var var0000);
extern var Func0839 0x839 ();
extern Func0917 0x917 (var var0000, var var0001);
extern var Func0910 0x910 (var var0000);
extern Func083A 0x83A (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0428 0x428 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	var0000 = UI_get_npc_id_BC(0xFFD8);
	var0001 = UI_get_schedule_type_24(0xFFD8);
	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = Func0953();
	var0005 = "lad";
	var0006 = Func0994();
	var0007 = Func0942(0xFFD6);
	var0008 = Func0942(0xFFDA);
	var0009 = Func0942(0xFFAF);
	if(!(var0003 == true)) goto labelFunc0428_005C;
	var0005 = "lass";
	labelFunc0428_005C:
		if(!(Func0839() && (var0000 == 0x0000))) goto labelFunc0428_007A;
		UI_set_npc_id_BD(0xFFD8, 0x0001);
		var0000 = 0x0001;
	labelFunc0428_007A:
		if(!(event == 0x0002)) goto labelFunc0428_010A;
		var000A = UI_find_nearby_41(0xFFD8, 0x025F, 0x0028, 0x0010);
		enum();
	labelFunc0428_0096:
		for (var000D in var000A with var000B to var000C atend labelFunc0428_00BF);
		var000E = UI_get_item_flag_A3(var000D, 0x0012);
		if(!(!var000E)) goto labelFunc0428_00BC;
		UI_remove_item_84(var000D);
	labelFunc0428_00BC:
		goto labelFunc0428_0096;
	labelFunc0428_00BF:
		var000F = UI_find_nearby_41(item, 0x00FB, 0x0019, 0x0000);
		Func0917(var000F, 0x0001);
		var0010 = UI_find_nearby_41(item, 0x0096, 0x0019, 0x0000);
		var0011 = Func0910(var0010);
		var0012 = UI_find_nearby_41(item, 0x03C1, 0x0064, 0x0010);
		Func083A(var0012);
	labelFunc0428_010A:
		if(!(event == 0x0000)) goto labelFunc0428_01BF;
		if(!(var0001 == 0x001D)) goto labelFunc0428_01BF;
		if(!(var0000 == 0x0000)) goto labelFunc0428_0184;
		var000D = UI_find_nearby_41(0xFFD8, 0x025F, 0x0002, 0x0010);
		var0013 = UI_get_item_quality_1C(var000D);
		if(!(var0013 == 0x000F)) goto labelFunc0428_0184;
		UI_remove_item_84(var000D);
		UI_move_object_4B(0xFFD8, [0x0503, 0x08C7, 0x0000]);
		UI_set_new_schedules_B6(0xFFD8, 0x0000, 0x001A, [0x0503, 0x08C7]);
		UI_run_schedule_B7(0xFFD8);
	labelFunc0428_0184:
		if(!(var0000 > 0x0002)) goto labelFunc0428_01BF;
		UI_set_schedule_type_25(0xFFD8, 0x000F);
		var0011 = UI_execute_usecode_array_01(0xFFD8, [0x23, 0x30, 0x32]);
		var0000 = (var0000 + 0x0001);
		UI_set_npc_id_BD(0xFFD8, var0000);
	labelFunc0428_01BF:
		if(!(event == 0x0001)) goto labelFunc0428_0211;
		UI_item_say_4D(0xFE9C, "@Captain?@");
		0xFFD8;
		calle();
		Func097F(0xFFD8, "@Aye, matey?@", 0x0002);
		if(!gflags[01D1]) goto labelFunc0428_01F6;
		UI_set_schedule_type_25(0xFFD8, 0x0003);
		goto labelFunc0428_0211;
	labelFunc0428_01F6:
		UI_show_npc_face0_05(0xFFD8, 0x0000);
		UcMessage("\"Could ye unlock this door and let me go?\"");
		UcSay;
		Func097F(0xFFD8, "@I am cold...@", 0x0000);
		abrt();
	labelFunc0428_0211:
		if(!(event == 0x0009)) goto labelFunc0428_07C4;
		UI_run_schedule_B7(0xFFD8);
		UI_show_npc_face0_05(0xFFD8, 0x0000);
		if(!gflags[0004]) goto labelFunc0428_025C;
		UcMessage("\"I had hoped ta see ye again, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"Mine health is failin' me, an' I wanted ta be sure the Arabella went ta someone I can trust to care for her.\" *\"I have no living kin no more...\" ~\"So I want ye ta take her.\"");
		UcSay;
		UcMessage("\"Thou art a brave ");
		UcMessage(var0005);
		UcMessage(".\" ~\"An' thou wert willin' ta spend a bit o' thy time listening ta an old man's tales.\" *\"Thou... art...\" ~\"Worthy...\"");
		UcSay;
		var0014 = Func0992(0x0001, "@He is dead!@", "@He is dead.@", false);
		UI_kill_npc_57(0xFFD8);
		abrt();
	labelFunc0428_025C:
		var0015 = UI_get_item_flag_A3(0xFFD8, 0x001C);
		if(!(var0015 == false)) goto labelFunc0428_02AF;
		UcMessage("\"How pleasant to make thine acquaintance, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"I be Hawk, captain of the good ship Arabella.\"");
		UcSay;
		UI_set_npc_id_BD(0xFFD8, 0x0000);
		UI_set_new_schedules_B6(0xFFD8, 0x0000, 0x001A, [0x0503, 0x08C7]);
		UI_run_schedule_B7(0xFFD8);
		UI_set_item_flag_A4(0xFFD8, 0x001C);
		goto labelFunc0428_02B9;
	labelFunc0428_02AF:
		UcMessage("\"A pleasure ta see ye again, ");
		UcMessage(var0004);
		UcMessage("!\"");
		UcSay;
	labelFunc0428_02B9:
		if(!(var0000 == 0x0000)) goto labelFunc0428_03AB;
		UcMessage("\"I could use a stiff drink, ");
		UcMessage(var0005);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Thou canst talk ta me at the pub!\"");
		UcSay;
		var0016 = UI_get_object_position_20(0xFFD8);
		if(!((var0016[0x0001] >= 0x0AF1) && ((var0016[0x0001] <= 0x0AFE) && ((var0016[0x0002] >= 0x00C1) && (var0016[0x0002] <= 0x00DE))))) goto labelFunc0428_039B;
		var000D = UI_create_new_object_2C(0x025F);
		if(!var000D) goto labelFunc0428_034D;
		var0011 = UI_set_item_quality_1D(var000D, 0x0000);
		UI_set_item_frame_1B(var000D, 0x0000);
		UI_set_item_flag_A4(var000D, 0x0012);
		var0011 = UI_update_last_created_2F([0x0AFC, 0x00CF, 0x0000]);
	labelFunc0428_034D:
		var000D = UI_create_new_object_2C(0x025F);
		if(!var000D) goto labelFunc0428_0391;
		var0011 = UI_set_item_quality_1D(var000D, 0x000F);
		UI_set_item_frame_1B(var000D, 0x0001);
		UI_set_item_flag_A4(var000D, 0x0012);
		var0011 = UI_update_last_created_2F([0x0AF6, 0x00DE, 0x0003]);
	labelFunc0428_0391:
		UI_set_schedule_type_25(0xFFD8, 0x001D);
	labelFunc0428_039B:
		Func097F(0xFFD8, "@I need a drink!@", 0x0000);
		abrt();
		goto labelFunc0428_03B5;
	labelFunc0428_03AB:
		UcMessage("\"So what can I do for ye, ");
		UcMessage(var0005);
		UcMessage("?\"");
		UcSay;
	labelFunc0428_03B5:
		if(!(var0006 == 0x0009)) goto labelFunc0428_03D0;
		UcMessage("\"I thank ye for releasing me from that cell!\" ~\"I never expected ta end up in jail over not wantin' ta sail in these blasted storms!\" *\"If there's anything that I can do for ye, thou shouldst tell me.\" ~\"Cap'n Hawk is a man of his word!\"");
		UcSay;
		UI_add_answer_0C(["jail", "storms"]);
	labelFunc0428_03D0:
		if(!((!gflags[01CC]) && (!gflags[01CB]))) goto labelFunc0428_03E3;
		UI_add_answer_0C("journey");
	labelFunc0428_03E3:
		if(!(gflags[01CC] && (!UI_get_item_flag_A3(0x01E0, 0x001C)))) goto labelFunc0428_03FC;
		UI_add_answer_0C("leave island");
	labelFunc0428_03FC:
		if(!(gflags[0108] && (!gflags[028C]))) goto labelFunc0428_040E;
		UI_add_answer_0C("pinecone");
	labelFunc0428_040E:
		if(!(gflags[010A] && (!gflags[0295]))) goto labelFunc0428_0420;
		UI_add_answer_0C("blue egg");
	labelFunc0428_0420:
		UI_add_answer_0C(["bye"]);
	labelFunc0428_042A:
		UcAsk;
		cmps("jail");
		UcMessage("\"Now if that ain't gratitude for ye!\" ~\"Here I refused ta risk the Arabella and them passengers ta the terrible fierce weather.\" *\"And one of them goes and calls the Pikemen on me!\"");
		UcSay;
		UI_remove_answer_0D("jail");
		UI_add_answer_0C(["Arabella", "passengers", "Pikemen"]);
	labelFunc0428_0450:
		cmps("Arabella");
		UcMessage("\"The Arabella is my ship, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"She's named after me dear, departed wife...\" ~\"And dearer ta me than a good, stiff drink!\"");
		UcSay;
		UI_remove_answer_0D("Arabella");
	labelFunc0428_0469:
		cmps("passengers");
		UcMessage("\"I had three passengers for the trip over to Moonshade.\" ~\"There's a fellow named Kane, a scurvy merchant named Flindo, and a pretty lass named Selina.\"");
		UcSay;
		UI_remove_answer_0D("passengers");
		UI_add_answer_0C(["Kane", "Flindo", "Selina"]);
	labelFunc0428_048C:
		cmps("Kane");
		UcMessage("\"Seems I heard tell he was a sheepherder or something.\" ~\"Kane wants ta go talk ta some of those fancy wizards over in Moonshade...\" *\"See if they kin help him find what happened ta his older brother who disappeared a few months ago.\" ~\"Ye can't miss him... He always has a bird with him.\"");
		UcSay;
		UI_remove_answer_0D("Kane");
		UI_add_answer_0C("bird");
	labelFunc0428_04A6:
		cmps("bird");
		UcMessage("\"Bird must have been a sailor, ");
		UcMessage(var0005);
		UcMessage("!\" ~\"Never seen anything like it! The bird has a real fondness for a stout drink.\" *\"It doth talk purty well, too.\"");
		UcSay;
		UI_remove_answer_0D("bird");
	labelFunc0428_04BF:
		cmps("Flindo");
		UcMessage("\"That worm!\" ~\"He'd spit in yer last cup of grog he would, if he thought he could make money off it!\"");
		UcSay;
		if(!(var0007 == true)) goto labelFunc0428_0541;
		UI_show_npc_face1_06(0xFFD6, 0x0000);
		UcMessage("\"Thou art a fine one to talk, thou bilge-water rat!\" ~\"Thou wouldst hold an honest merchant hostage to thy drinking sprees!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Why, thou overgrown dung beetle!\" ~\"I told ye when I landed that those seas were no safe place ta be with these forsaken storms!\" *\"And thou shouldst suck salt spray for days on end, ye 'honest' merchant!\" ~\"Then thou'd know the difference between a drunk and a man with a thirst!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Thou art the braggart that said he could sail through the fires of hell and back!\" ~\"And the only thirst thou hast is for more money, thou thief!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thief, is it!? When I turned down every offer thou didst make ta make me sail out ta sea again?\" ~\"And I fear nothing the sea can throw at me, thou barnacle!\" *\"But I'll not deal with things born of magics, for I'm no fool and no mage!\" ~\"And I warned ye about saying false ta my name before...\"");
		UcSay;
		if(!(var0008 == true)) goto labelFunc0428_0520;
		UI_show_npc_face1_06(0xFFDA, 0x0000);
		UcMessage("\"Now stop that, both of you!\" ~\"This is precisely what happened before!\" *\"If thou dost break any more of my furniture, I will break thine head for thee!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0428_0520:
		if(!(var0009 == true)) goto labelFunc0428_053A;
		UI_show_npc_face1_06(0xFFAF, 0x0000);
		UcMessage("\"Will you two be quiet!\" ~\"You are loud enough to wake the dead...\" ~\"And I am beginning to lose patience with both of you!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0428_053A:
		UI_set_conversation_slot_09(0x0000);
	labelFunc0428_0541:
		UcMessage("\"Flindo was the one that bribed the Pikemen into pulling me away from the fight he started!\"");
		UcSay;
		UI_remove_answer_0D("Flindo");
		UI_add_answer_0C("bribed");
	labelFunc0428_0553:
		cmps("bribed");
		UcMessage("\"Aye, bribed!\" ~\"I heard some of those scum...\"");
		UcSay;
		if(!(var0008 == true)) goto labelFunc0428_056B;
		UcMessage("\"...Er, Pikemen. Sorry, Argus.\"");
		UcSay;
	labelFunc0428_056B:
		UcMessage("\"Talking just after I woke up.\" ~\"Seems like Flindo payed them ta rough me up so that I'd decide not ta stay and go back ta Moonshade.\" *\"But, moneybags Flindo didn't count on those swine getting greedy!\"");
		UcSay;
		UI_remove_answer_0D("bribed");
		UI_remove_answer_0D("greedy");
	labelFunc0428_057D:
		cmps("greedy");
		UcMessage("\"They thought they could make me pay for my release, but I have no money ta speak of...\" ~\"Then they thought they could convince Flindo ta pay my way out, but either he'd spent all his money bribing them ta rough me up or he wouldn't pay it out of spite!\"");
		UcSay;
		UI_remove_answer_0D("greedy");
	labelFunc0428_0590:
		cmps("Selina");
		UcMessage("\"Pretty little thing, ");
		UcMessage(var0005);
		UcMessage("... Brought her over from Moonshade a while back. Might have been the return trip from takin' that fat sage Batlin across.\"");
		UcSay;
		UcMessage("\"An' a sullen, bossy sort of fellow he was, too. Did not even have the decency ta lift a mug wit' me during the crossing! Bah! But what was I talkin' about... Ah yes, that lovely slip of a lass, Selina.\"");
		UcSay;
		UcMessage("\"She must have been someone's servant. Said she wanted ta go home for a visit. Said she might be here for me ta take her back.\"");
		UcSay;
		UI_remove_answer_0D("Selina");
		UI_add_answer_0C(["servant", "home"]);
	labelFunc0428_05BE:
		cmps("servant");
		UcMessage("\"Selina certainly isn't one of those over-dressed mages, for sure!\" ~\"She's too timid ta be anything but a servant.\"");
		UcSay;
		UI_remove_answer_0D("servant");
	labelFunc0428_05D1:
		cmps("home");
		UcMessage("\"I don't think she said, but I did perceive it was somewhere like Monitor.\"");
		UcSay;
		UI_remove_answer_0D("home");
	labelFunc0428_05E4:
		cmps("Pikemen");
		UcMessage("\"Well, to honor the fine keeper of this establishment...\"");
		UcSay;
		if(!gflags[003E]) goto labelFunc0428_0600;
		UcMessage("\"'An thee, o' course, ");
		UcMessage(var0005);
		UcMessage("...\"");
		UcSay;
	labelFunc0428_0600:
		UcMessage("\"I'll try ta be kind.\" ~\"So I'll merely say that Monitor's finest are no longer cut from the same sailcloth as Argus...\" *\"If what I've seen and heard is any judge, I'd say that the Pikemen are more interested in money than in valor... and me treasure.\"");
		UcSay;
		UI_remove_answer_0D("Pikemen");
		UI_add_answer_0C("treasure");
	labelFunc0428_0612:
		cmps("treasure");
		UcMessage("\"Aye, treasure... from me wilder, younger days.\"");
		UcSay;
		UcMessage("\"Those Pikemen scoundrels tried ta convince me ta tell 'em where I keep me map. 'Tis lucky fer me that Argus would never let 'em search me room. I never keep it on me... Hide it in me room most times.\"");
		UcSay;
		UI_remove_answer_0D("treasure");
	labelFunc0428_0629:
		cmps("storms");
		UcMessage("\"I've sailed the seas almost all the days of my life, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"And I'll tell ye that there's nothing on the water that I can't sail a ship through.\" *\"But how can a man fight something that plucks a ship out o' the water, or turns a ship's sails into slabs of stone?\" ~\"And I'll not think me a coward ta tell ye that these storms have me plenty mindful of how deep them seas are!\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc0428_0642:
		cmps("journey");
		UI_remove_answer_0D("journey");
		if(!(var0000 == 0x0001)) goto labelFunc0428_068B;
		UcMessage("\"I can take ye to Moonshade, ");
		UcMessage(var0005);
		UcMessage(".\" ~\"Wait for me out on the Arabella, and we'll try to outrace these blasted storms!\"");
		UcSay;
		Func097F(0xFFD8, "The Arabella sails in two minutes!", 0x000A);
		var0017 = UI_get_npc_object_23(0xFFD8);
		UI_set_npc_id_BD(0xFFD8, 0x0002);
		var0000 = 0x0002;
	labelFunc0428_068B:
		abrt();
	labelFunc0428_068C:
		cmps("leave island");
		if(!gflags[01BD]) goto labelFunc0428_06A9;
		UcMessage("\"So ye're still trying ta leave this island?\"");
		UcSay;
		UcMessage("\"Well, I didn't want ta mention it before, but	there are caves in the southern mountains.\" ~\"Legend says they lead ta the mainland, if thou canst find the right path...\" ~\"But none who ventured there have ever returned!\" ~\"I wager that Julia doth have possession of a key that would let thee in down there, but I would think twice if I were thee before I made such a journey!\"");
		UcSay;
		gflags[00ED] = true;
		goto labelFunc0428_06AD;
	labelFunc0428_06A9:
		UcMessage("\"Not on my ship, thou won't!\" ~\"'Tis too dangerous ta sail these waters in these storms!\" *\"If thou dost want ta travel elsewhere, why not speak ta the mages?\" ~\"They know how ta magic themselves for short distances...\" *\"And I've heard it said that Old Erstam the Mad Mage can travel anywhere he pleases!\"");
		UcSay;
	labelFunc0428_06AD:
		UI_remove_answer_0D("leave island");
	labelFunc0428_06B4:
		cmps("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc0428_0707;
		UcMessage("\"A rotten egg!\" ~\"Why art thou shoving such a thing at me?\"");
		UcSay;
		if(!Func0942(0xFFE2)) goto labelFunc0428_0704;
		UI_show_npc_face1_06(0xFFE2, 0x0000);
		UcMessage("\"Take that thing out of here!\" ~\"My patrons are trying to eat!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		Func097F(0xFFE4, "@Phew!@", 0x0005);
		abrt();
	labelFunc0428_0704:
		goto labelFunc0428_0736;
	labelFunc0428_0707:
		UcMessage("\"A blue aig?\" ~\"");
		UcMessage(var0005);
		UcMessage(", I have never seen or heard of any such thing in all my	travels.\" *\"Might be that thou shouldst ask a scholar, like Fedabiblio the Magister, though.\"");
		UcSay;
		var0014 = Func0992(0x0001, "@But he sent us to thee!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		if(!(var0014 != 0xFE9C)) goto labelFunc0428_0736;
		UcMessage("\"Then ye be out of luck, matey.\"");
		UcSay;
	labelFunc0428_0736:
		UI_remove_answer_0D("blue egg");
	labelFunc0428_073D:
		cmps("pinecone");
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc0428_0786;
		UcMessage("\"Anyone can see 'tis a pinecone...\" ~\"What's thy question?\"");
		UcSay;
		var0014 = Func0992(0x0001, "@But where doth it come from?@", "@Where can I find pinecones?@", false);
		UI_show_npc_face0_05(0xFFD8, 0x0000);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"In the northern woods, of course.\" ~\"But thou canst not travel there no more -- no ship will sail there, and the Swamp of	Gorlab will let no man pass!\"");
		UcSay;
		goto labelFunc0428_078E;
	labelFunc0428_0786:
		UcMessage("\"Pinecones come from the northern woods.\" ~\"Purty things, ain't they? I collect 'em and give 'em to sweet gals like Bucia at the Canton.\"");
		UcSay;
		UcMessage("\"Can't git 'em now.\" ~\"Ain't gonna sail my ship no more, and a ship is the only way past Gorlab Swamp.\"");
		UcSay;
	labelFunc0428_078E:
		gflags[028C] = true;
		UI_remove_answer_0D("pinecone");
	labelFunc0428_0799:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Fair weather, Captain!@", 0x0000);
		Func097F(0xFFD8, "@Smooth sailin'!@", 0x0002);
		goto labelFunc0428_07C3;
	labelFunc0428_07C0:
		goto labelFunc0428_042A;
	labelFunc0428_07C3:
		end_conv();
	labelFunc0428_07C4:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func081E 0x81E ();
extern Func081F 0x81F ();
extern Func081D 0x81D ();

Func0429 0x429 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0942(0xFFDA);
	var0004 = false;
	var0005 = false;
	var0006 = UI_part_of_day_48();
	if(!((var0006 > 0x0001) || (var0006 < 0x0006))) goto labelFunc0429_0046;
	var0006 = "day";
	goto labelFunc0429_004C;
	labelFunc0429_0046:
		var0006 = "evening";
	labelFunc0429_004C:
		if(!(event == 0x0001)) goto labelFunc0429_008A;
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		0xFFD7;
		calle();
		Func097F(0xFFD7, (((("Good " + var0006) + ", ") + var0000) + "."), 0x0002);
		UI_set_schedule_type_25(0xFFD7, 0x0003);
	labelFunc0429_008A:
		if(!(event == 0x0000)) goto labelFunc0429_0136;
		var0007 = UI_get_random_00(0x0006);
		if(!(var0007 == 0x0001)) goto labelFunc0429_00B0;
		UI_item_say_4D(0xFFD7, "@Wouldst thou like another?@");
	labelFunc0429_00B0:
		if(!(var0007 == 0x0002)) goto labelFunc0429_00C4;
		UI_item_say_4D(0xFFD7, "@Refill?@");
	labelFunc0429_00C4:
		if(!(var0007 == 0x0003)) goto labelFunc0429_00D8;
		UI_item_say_4D(0xFFD7, "@Lodgings available!@");
	labelFunc0429_00D8:
		if(!(var0007 == 0x0004)) goto labelFunc0429_00EC;
		UI_item_say_4D(0xFFD7, "@Good, clean rooms!@");
	labelFunc0429_00EC:
		if(!(var0007 == 0x0005)) goto labelFunc0429_0122;
		if(!Func0942(0xFFDA)) goto labelFunc0429_0118;
		UI_item_say_4D(0xFFD7, "@We need more clean mugs, son!@");
		Func097F(0xFFDA, "@Aye, mother!@", 0x0002);
		goto labelFunc0429_0122;
	labelFunc0429_0118:
		UI_item_say_4D(0xFFD7, "@Mine aching back!@");
	labelFunc0429_0122:
		if(!(var0007 == 0x0006)) goto labelFunc0429_0136;
		UI_item_say_4D(0xFFD7, "@Sigh...@");
	labelFunc0429_0136:
		if(!(event == 0x0009)) goto labelFunc0429_0671;
		UI_run_schedule_B7(0xFFD7);
		UI_clear_item_say_4E(0xFFD7);
		UI_show_npc_face0_05(0xFFD7, 0x0000);
		var0008 = UI_get_item_flag_A3(0xFFD7, 0x001C);
		if(!(var0008 == false)) goto labelFunc0429_0192;
		UcMessage("\"Welcome to the Sleeping Bull, ");
		UcMessage(var0000);
		UcMessage("! Enter before we suffer another storm.\" *\"I am Devra... My son, Argus, and I are running the inn since Angus disappeared.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFD7, 0x001C);
		UI_add_answer_0C(["storm", "Argus", "disappeared"]);
		goto labelFunc0429_01AC;
	labelFunc0429_0192:
		UcMessage("\"Welcome back, ");
		UcMessage(var0002);
		UcMessage(". 'Tis so good to see thee again, after all these storms. Argus will be glad to see thee.\"");
		UcSay;
		UI_add_answer_0C(["storm", "Argus", "disappeared"]);
	labelFunc0429_01AC:
		UI_add_answer_0C(["food", "drink", "room", "exchange money", "bye"]);
	labelFunc0429_01C2:
		UcAsk;
		cmps("storm");
		UcMessage("\"I have lived here since before I was married, and I've never seen anything like these mage-born storms. Why, one caught old man Jothum in his field and changed his plow horse into a goat, in front of his eyes.\" *\"But Jothum was lucky, 'twas only his horse. We never did find what happened to Theron.\"");
		UcSay;
		UI_remove_answer_0D("storm");
		UI_add_answer_0C(["mage-born", "Theron"]);
	labelFunc0429_01E5:
		cmps("mage-born");
		UcMessage("\"If thou shouldst be hit with lightning -- normal lightning, mind thee -- thou art dead. Plain and simple. They bury thy charred body the next day.\" *\"But storms that change things, or make them disappear, or exchange them for something else, well now, it seems to me that 'tis magic, right enough. I don't have to be from Moonshade to conjure that answer!\"");
		UcSay;
		UI_remove_answer_0D("mage-born");
		UI_add_answer_0C("Moonshade");
	labelFunc0429_01FF:
		cmps("Moonshade");
		UcMessage("\"Fine city, though 'tis plagued by wizards and mages. The place reeks of sorcery.\" *\"Hast thou heard anything more of what might be causing these storms? I wonder if anyone has done anything to stop them.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0429_022D;
		UcMessage("\"Is it the work of magic? Do they know who is responsible?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0429_0226;
		UcMessage("\"Wonderful! I hope that this means that the storms will end soon...\"");
		UcSay;
		goto labelFunc0429_022A;
	labelFunc0429_0226:
		UcMessage("\"I had hoped that the storms would end soon, before they cause us to close...\"");
		UcSay;
	labelFunc0429_022A:
		goto labelFunc0429_026F;
	labelFunc0429_022D:
		UcMessage("\"Well, I still think 'tis the work of them mages! No good comes of controlling that type of power, I'll tell thee...\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0429_026F;
		UI_show_npc_face1_06(0xFFDA, 0x0000);
		UcMessage("\"Aye, mother. And thou wilt tell all who will listen! Do not harass what few customers we do have...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Hast thou ever heard a boy so rude as to talk to his mother that way?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFDA, 0x0000);
		UcMessage("\"I am no boy, mother. For now, I'm the innkeeper here and I'll thank thee to remember that we have a mage staying here now.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0429_026F:
		UI_remove_answer_0D("Moonshade");
	labelFunc0429_0276:
		cmps("Theron");
		UcMessage("\"Theron was a simple man, not quite right in the head, if thou knowest what I mean. He worked for Angus and me for nigh on three years as a wood chopper... Until one of those storms.\"");
		UcSay;
		UcMessage("\"Angus pulled Theron inside when the storm hit, but Theron ran back out to bring in his favorite axe... Next thing there was a blinding flash, and Theron was gone!\"");
		UcSay;
		UI_remove_answer_0D("Theron");
	labelFunc0429_028D:
		cmps("Argus");
		UcMessage("\"Argus is mine oldest boy. He's a captain in the Pikemen... Or he was until he came home to take over his father's place.\" *\"Mine husband always thought that Wilfred, our youngest, would be the one to take the inn. But he hath become too high and mighty to be an honest innkeeper!\"");
		UcSay;
		UI_remove_answer_0D("Argus");
		UI_add_answer_0C("Wilfred");
	labelFunc0429_02A7:
		cmps("Wilfred");
		UcMessage("\"Wilfred is a Monitorian knight, ");
		UcMessage(var0000);
		UcMessage(". He always was headstrong... And I think his father harried him overmuch.\" *\"He ran away to be like his brother... Only better, he said.\"");
		UcSay;
		UI_remove_answer_0D("Wilfred");
	labelFunc0429_02C0:
		cmps("disappeared");
		UcMessage("\"Thou dost seem like an honest, hard-working person. Perhaps thou canst help me discover what happened to Angus.\" *\"'Tis a right mystery. He disappeared and then my slippers disappeared...\"");
		UcSay;
		if(!(!gflags[01E9])) goto labelFunc0429_02DA;
		UcMessage("\"Now I've got no husband and a pair of old, smelly boots.\"");
		UcSay;
		goto labelFunc0429_02DE;
	labelFunc0429_02DA:
		UcMessage("\"Now I've got no husband, but I do have my slippers...\"");
		UcSay;
	labelFunc0429_02DE:
		UI_remove_answer_0D("disappeared");
		UI_add_answer_0C(["mystery", "slippers"]);
	labelFunc0429_02F2:
		cmps("slippers");
		if(!(!gflags[01E9])) goto labelFunc0429_0384;
		UcMessage("\"They were hanging on the line to dry when one of those storms hit. When I went out to gather the wash later, there were these huge boots hanging where my slippers had been.\" *\"I'd gladly give these things away, if only I had my slippers back!\"");
		UcSay;
		var0009 = Func0992(0x0001, "@Avatar, those look like thy swamp boots!@", "@Those look like my swamp boots!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"If thou hast my slippers, ");
		UcMessage(var0000);
		UcMessage(", I would gladly trade thee these boots for them. I have no great fondness for them other than to keep my feet dry.\"");
		UcSay;
		var000A = Func097D(0xFE9B, 0x0001, 0x024B, 0xFE99, 0x0005);
		if(!(var000A == true)) goto labelFunc0429_0379;
		UcMessage("\"Here are thy boots then... And I thank thee for my slippers.\"");
		UcSay;
		var000B = Func099B(0xFE9C, 0x0001, 0x024B, 0xFE99, 0x0006, false, true);
		var000C = UI_remove_party_items_34(0x0001, 0x024B, 0xFE99, 0x0005, false);
		gflags[01E9] = true;
		goto labelFunc0429_037D;
	labelFunc0429_0379:
		UcMessage("\"Then I hope that thou dost not mind if I keep these... I have no way to buy new slippers, what with the storms and all.\" *\"If thou shouldst find my slippers again, I will give these back.\"");
		UcSay;
	labelFunc0429_037D:
		gflags[0293] = true;
		goto labelFunc0429_038E;
	labelFunc0429_0384:
		UcMessage("\"Thank thee again, ");
		UcMessage(var0002);
		UcMessage(", for returning my favorite slippers.\"");
		UcSay;
	labelFunc0429_038E:
		UI_remove_answer_0D("slippers");
	labelFunc0429_0395:
		cmps("mystery");
		UcMessage("\"On the night Angus disappeared, I'd gone to bed and Angus had remained to sweep. If thou dost ask me though, he stayed up to keep an eye on that strange mage that was staying here.\" *\"I was stirred from a sound sleep by the sound of voices downstairs in the cellar. After I heard a crash, I went down to look, but I did not see anyone. I thought the mage's companion might have tried to slip down to have another drink for free, and thought no more of it until the morning.\"");
		UcSay;
		gflags[01E4] = true;
		UI_remove_answer_0D("mystery");
		UI_add_answer_0C(["strange mage", "cellar", "mage's companion"]);
	labelFunc0429_03BC:
		cmps("strange mage");
		UcMessage("\"He was a rather portly man, if I remember rightly. He had been here once before...\"");
		UcSay;
		UcMessage("\"I cannot seem to recall what his name was. He was not the talkative sort, least not to me.\"");
		UcSay;
		UcMessage("\"Thou couldst ask Ensorcio, they talked quite a bit. Or... I know... Thou canst look in the registry! 'Tis on the bar.\"");
		UcSay;
		UI_remove_answer_0D("strange mage");
		UI_add_answer_0C("Ensorcio");
	labelFunc0429_03DE:
		cmps("Ensorcio");
		UcMessage("\"Thou hast not met the great Ensorcio yet? Count thy blessings!\"");
		UcSay;
		UcMessage("\"Ensorcio is the smoldering black cloud that sits here day after day, drinking himself into a fit. All he does is glower about how those fools in Moonshade threw him out, and how he'll avenge himself.\"");
		UcSay;
		UI_remove_answer_0D("Ensorcio");
		UI_add_answer_0C("fools in Moonshade");
	labelFunc0429_03FC:
		cmps("fools in Moonshade");
		UcMessage("\"Ensorcio is an exiled mage. Who doth know what he did? I am too afraid to ask...\"");
		UcSay;
		UcMessage("\"If he was thrown out by that lot, thou canst wager that it could not have been good. Although Angus did not trust mages, he allowed Ensorcio to stay... Angus said that a mage had to have a clear head to cast spells, and we should worry if Ensorcio ever sobered.\"");
		UcSay;
		UI_remove_answer_0D("fools in Moonshade");
	labelFunc0429_0413:
		cmps("cellar");
		UcMessage("\"Aye, the cellar. We've had a lout or two think that they could slip down and take a bottle or two on the sly.\" *\"But Angus always seemed to know when they tried it... Threw them out with a few bruises for their trouble.\"");
		UcSay;
		UcMessage("\"'Tis why I didn't worry 'til morn... When I found everything in disarray and Angus gone.\"");
		UcSay;
		UI_remove_answer_0D("cellar");
		UI_add_answer_0C("disarray");
	labelFunc0429_0431:
		cmps("disarray");
		UcMessage("\"The casks and barrels were scattered all over the floor down there. It looked like there may have been a fight, but I did not see any blood.\" *\"It took the rest of the day to put all back in order down there. And make sure that nothing was missing.\"");
		UcSay;
		UcMessage("\"I waited a week or so before I sent word to Wilfred and Argus about their father not returning.\"");
		UcSay;
		UI_remove_answer_0D("disarray");
	labelFunc0429_0448:
		cmps("mage's companion");
		UcMessage("\"I do not know his name either... He never spoke to anyone other than the mage that I know of.\" *\"He always walked about with his hood raised, as if he were cold or something. He always gave me the shivers.\"");
		UcSay;
		UI_remove_answer_0D("mage's companion");
		UI_add_answer_0C("shivers");
	labelFunc0429_0462:
		cmps("shivers");
		UcMessage("\"Hast thou ever been in a sickroom, ");
		UcMessage(var0000);
		UcMessage("? A sickroom where someone is about to die?\" *\"There is a tension in the air, a stillness... And that always seemed to hover about the mage's large companion.\" *\"He was probably the one that stole whatever it was from Ensorcio that night, too.\"");
		UcSay;
		UI_remove_answer_0D("shivers");
		UI_add_answer_0C("stole");
	labelFunc0429_0482:
		cmps("stole");
		UcMessage("\"I remember that Ensorcio came storming in that morning, much earlier than usual, ranting about something being missing. I'll admit that I was a bit short with him, ");
		UcMessage(var0000);
		UcMessage(".\" *\"After all, I had to put all those barrels back myself, what with Angus gone and all. And that high and mighty mage never offered to lift a finger for anything more than another mug of ale!\"");
		UcSay;
		var000D = true;
		UI_remove_answer_0D("stole");
	labelFunc0429_049F:
		cmps("food");
		if(!((UI_get_schedule_type_24(0xFFD7) == 0x0007) || (UI_get_schedule_type_24(0xFFD7) == 0x0017))) goto labelFunc0429_04E7;
		UcMessage("\"Thou wilt not find our cooking fancy as in Moonshade. But 'tis hardy fare and thou wilt find the portions ample.\"");
		UcSay;
		if(!(!var0004)) goto labelFunc0429_04E1;
		UcMessage("\"I've done all the cooking here since Donal hired me, before I married Angus. I've had my share of compliments, if I do say so myself.\"");
		UcSay;
		var0004 = true;
		UI_add_answer_0C(["Donal", "Angus"]);
	labelFunc0429_04E1:
		Func081E();
		goto labelFunc0429_04F2;
	labelFunc0429_04E7:
		UcMessage("\"I will sell thee some food when we are open!\"");
		UcSay;
		UI_remove_answer_0D("food");
	labelFunc0429_04F2:
		cmps("Donal");
		UcMessage("\"Donal was Angus' father, the son of Silverpate the pirate. Donal hired me as cook when I was merely a strip of a lass... 'Tis when I caught Angus' eye.\" *\"Donal never showed any tendency to leave of a sudden, like his no-account father. That's why I told Angus I'd wed him... I thought that maybe that adventuring blood died with the old pirate.\"");
		UcSay;
		UI_remove_answer_0D("Donal");
		UI_add_answer_0C("Silverpate");
	labelFunc0429_050C:
		cmps("Silverpate");
		UcMessage("\"Thou hast not yet heard of Silverpate? I was beginnin' to think the walls shouted it, as fast as the guests hear about it around here!\" *\"According to stories... and 'twere only stories, mind thee... Silverpate was a pirate who took his treasure and started this here inn. He was supposed to have hid his treasure somewhere around here before he disappeared.\"");
		UcSay;
		UI_remove_answer_0D("Silverpate");
		UI_add_answer_0C("treasure");
	labelFunc0429_0526:
		cmps("treasure");
		UcMessage("\"What a lot of nonsense! Why we've had two whole generations of kin and neighbors lookin' everywhere imaginable for it.\" *\"I even looked a bit... at first. But if it hasn't been found after all this time, ");
		UcMessage(var0000);
		UcMessage(", with all those looking for it... I'd tell thee not to waste thy time looking!\"");
		UcSay;
		UI_remove_answer_0D("treasure");
	labelFunc0429_053F:
		cmps("Angus");
		UcMessage("\"Angus is mine husband. He was the innkeeper here after Donal died.\" *\"We raised two fine sons and he hoped to pass the inn to one of them when he were too old to run things. Only he disappeared... same as old Silverpate.\"");
		UcSay;
		UI_remove_answer_0D("Angus");
	labelFunc0429_0552:
		cmps("drink");
		if(!((UI_get_schedule_type_24(0xFFD7) == 0x0007) || (UI_get_schedule_type_24(0xFFD7) == 0x0017))) goto labelFunc0429_057E;
		UcMessage("\"Thou wilt like our selection, I'm certain.\"");
		UcSay;
		Func081F();
		goto labelFunc0429_0589;
	labelFunc0429_057E:
		UcMessage("\"Please return when we are open!\"");
		UcSay;
		UI_remove_answer_0D("drink");
	labelFunc0429_0589:
		cmps("room");
		UcMessage("\"The cost is 8 gold coins per person. Wouldst thou like a room for the night?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0429_0637;
		var000E = (UI_get_array_size_73(UI_get_party_list_2B()) * 0x0008);
		var000F = UI_count_objects_31(0xFE9B, 0x0284, 0xFE99, 0xFE99);
		if(!(var000F >= var000E)) goto labelFunc0429_0601;
		UcMessage("\"Room number 3 is available. I am sure thou wilt like it. Here is the key.\"");
		UcSay;
		var0010 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0003, 0x0009, 0x0000, true);
		var0011 = UI_remove_party_items_34(var000E, 0x0284, 0xFE99, 0xFE99, 0x0000);
		UcMessage("\"The rooms are upstairs. If thou dost need anything, thou shouldst call.\"");
		UcSay;
		goto labelFunc0429_0634;
	labelFunc0429_0601:
		var0009 = Func0992(0x0001, "@But we do not have enough money...@", 0x0000, false);
		if(!(var0009 != 0xFE9C)) goto labelFunc0429_062C;
		UI_show_npc_face0_05(0xFFD7, 0x0000);
		UcMessage("\"I have no heart to turn any of thee out in these storms. With all of our help run away, I'm in sore need of help.\" *\"But I cannot allow thee to stay for free. Thou wilt have to take thy chances outside.\"");
		UcSay;
		goto labelFunc0429_0634;
	labelFunc0429_062C:
		UcMessage("\"I'm afraid that thou cannot afford my rooms.\" *\"With the help all run away, I'd allow thee to stay for free, but I'd soon be out of business.\"");
		UcSay;
		UcMessage("\"Thou wilt have to take thy chances outside.\"");
		UcSay;
	labelFunc0429_0634:
		goto labelFunc0429_063B;
	labelFunc0429_0637:
		UcMessage("\"Some other time, then.\"");
		UcSay;
	labelFunc0429_063B:
		cmps("exchange money");
		Func081D();
	labelFunc0429_0646:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Be seeing thee!@", 0x0000);
		Func097F(0xFFD7, "@Come again soon!@", 0x0002);
		goto labelFunc0429_0670;
	labelFunc0429_066D:
		goto labelFunc0429_01C2;
	labelFunc0429_0670:
		end_conv();
	labelFunc0429_0671:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08FF 0x8FF ();

Func042A 0x42A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_schedule_type_24(0xFFD6);
	var0004 = Func0994();
	if(!(event == 0x0000)) goto labelFunc042A_0097;
	if(!(var0003 == 0x001D)) goto labelFunc042A_0097;
	var0005 = UI_find_nearby_41(0xFFD6, 0x025F, 0x0002, 0x0010);
	var0006 = UI_get_item_quality_1C(var0005);
	if(!(var0006 == 0x000F)) goto labelFunc042A_0097;
	UI_set_schedule_type_25(0xFFD6, 0x000F);
	var0007 = UI_execute_usecode_array_01(item, [0x23, 0x34, 0x34, 0x34]);
	var0008 = UI_get_npc_id_BC(0xFFD8);
	var0008 = (var0008 + 0x0001);
	UI_set_npc_id_BD(0xFFD8, var0008);
	labelFunc042A_0097:
		if(!(event == 0x0001)) goto labelFunc042A_00C5;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFFD6;
		calle();
		Func097F(0xFFD6, "@I have little time!@", 0x0002);
		UI_set_schedule_type_25(0xFFD6, 0x0003);
	labelFunc042A_00C5:
		if(!(event == 0x0009)) goto labelFunc042A_09F3;
		UI_run_schedule_B7(0xFFD6);
		UI_clear_item_say_4E(0xFFD6);
		UI_show_npc_face0_05(0xFFD6, 0x0000);
		var0009 = UI_get_item_flag_A3(0xFFD6, 0x001C);
		if(!(gflags[0004] == true)) goto labelFunc042A_0119;
		UcMessage("\"So, thou art still alive!\" ~\"I had wondered when thy companion arrived in such a strange state.\"");
		UcSay;
		UcMessage("\"I never thought I would live to see mighty Moonshade humbled, but Shamino hath certainly managed it quite handily.\"");
		UcSay;
		UcMessage("\"I would be careful in the streets here now, ");
		UcMessage(var0000);
		UcMessage(". 'Tis somewhat... unsafe.  Oh, and the... fallen Filbercio is searching for thee.\"");
		UcSay;
		UI_add_answer_0C(["strange state", "fallen Filbercio"]);
	labelFunc042A_0119:
		if(!(var0009 == false)) goto labelFunc042A_013F;
		if(!gflags[01CC]) goto labelFunc042A_012E;
		UcMessage("\"The name is Flindo. I own a provisioning shop here in Moonshade and have many important connections here.\"");
		UcSay;
		goto labelFunc042A_0132;
	labelFunc042A_012E:
		UcMessage("\"The name is Flindo. I own a provisioning shop in Moonshade and have many important connections there.\"");
		UcSay;
	labelFunc042A_0132:
		UI_set_item_flag_A4(0xFFD6, 0x001C);
		goto labelFunc042A_0143;
	labelFunc042A_013F:
		UcMessage("\"Returned again?\"");
		UcSay;
	labelFunc042A_0143:
		if(!(var0004 == 0x0009)) goto labelFunc042A_0167;
		UcMessage("\"So, art thou another stranded victim of Hawk and his childish fear of storms? Or art thou here to investigate the curious disappearance of Mistress Devra's good husband?\"");
		UcSay;
		UI_add_answer_0C(["Hawk", "storms", "curious disappearance", "connections"]);
		goto labelFunc042A_0186;
	labelFunc042A_0167:
		UcMessage("\"I understand now why Hawk did not wish to sail the open seas. I do not know how thou wilt leave this island... Unless the tales are true.\"");
		UcSay;
		UcMessage("\"I hope that thou dost like our fine city of Moonshade.\"");
		UcSay;
		UcMessage("\"If thou wouldst like to know about any place within the city, come to me.\"");
		UcSay;
		UI_add_answer_0C(["tales", "Moonshade", "any place", "connections"]);
	labelFunc042A_0186:
		if(!(gflags[012F] && (!gflags[00D9]))) goto labelFunc042A_0198;
		UI_add_answer_0C("thy promise");
	labelFunc042A_0198:
		UI_add_answer_0C(["bye"]);
	labelFunc042A_01A2:
		UcAsk;
		cmps("strange state");
		UI_remove_answer_0D("strange state");
		UcMessage("\"He now calls himself Shamino the Anarch.\"");
		UcSay;
		UcMessage("\"By his command up may become down, and in may become out. And woe to anyone who disagrees. He hath totally unravelled the strictures... 'Tis a magical madhouse out there!\"");
		UcSay;
	labelFunc042A_01BC:
		cmps("fallen Filbercio");
		UI_remove_answer_0D("fallen Filbercio");
		UcMessage("\"When Shamino the Anarch took over, he cast Filbercio out of the Palace and made him a beggar.\"");
		UcSay;
		UcMessage("\"Needless to say, this did not sit well with the MageLord. Filbercio would speak with thee... Perhaps thou canst, having been Shamino's companion, find a way to overcome his powers.\"");
		UcSay;
		UcMessage("\"Look for Filbercio in the streets, ");
		UcMessage(var0000);
		UcMessage(". Shamino the Anarch hath decreed that none may take Filbercio in or aid him in any way.\"");
		UcSay;
	labelFunc042A_01DD:
		cmps("Hawk");
		UI_remove_answer_0D("Hawk");
		UcMessage("\"That bag of wind! Calls himself a sailor... Ha!\"");
		UcSay;
		UcMessage("\"Now, I am asking thee... What manner of Captain would strand me and poor, dumb Kane -- paying passengers, mind thee -- here in this little backwater inn because of some... storm?\"");
		UcSay;
		UcMessage("\"So I went to the Pikemen...\"");
		UcSay;
		UI_add_answer_0C(["Kane", "Pikemen"]);
	labelFunc042A_0205:
		cmps("Kane");
		UI_remove_answer_0D("Kane");
		UcMessage("\"Look for a young lad talking to a parrot. That will be him.\"");
		UcSay;
		UcMessage("\"Witless lad doth not have enough sense to steer clear of Ensorcio. Comes asking if Ensorcio was a mage, and would Ensorcio help him and Ale find his lost brother!\"");
		UcSay;
		UcMessage("\"Kane doth not have the sense of a cat!\"");
		UcSay;
		UI_add_answer_0C(["Ensorcio", "Ale"]);
	labelFunc042A_022D:
		cmps("Ensorcio");
		UI_remove_answer_0D("Ensorcio");
		UcMessage("\"Now there is one to avoid, if ever there was one!\"");
		UcSay;
		UcMessage("\"The mages wondered when Vasculio took Ensorcio as an apprentice. Temper like that, 'tis not good in a mage. And when thou considerest Vasculio's interests... Well, 'tis enough to make a body worry.\"");
		UcSay;
		UcMessage("\"And then with what happened about that Adept's daughter... No one was surprised when the Council of Mages stepped in and exiled Ensorcio -- except maybe Ensorcio himself!\"");
		UcSay;
		UI_add_answer_0C(["Vasculio", "Adept's daughter"]);
	labelFunc042A_0255:
		cmps("Vasculio");
		UI_remove_answer_0D("Vasculio");
		UcMessage("\"Do not tell me that thou hast not heard that legend!\"");
		UcSay;
		UcMessage("\"I was not around for any of this, mind thee. I wasn't even born yet... Ensorcio isn't as young as he appears, being a mage and all. But my father talked about it enough -- it happened when he was a mere boy.\"");
		UcSay;
		UI_add_answer_0C("legend");
	labelFunc042A_0273:
		cmps("legend");
		UI_remove_answer_0D("legend");
		UcMessage("\"Well, years ago, there was experimenting aplenty amongst the mages. There were not nearly as many restrictions as there are now.\"");
		UcSay;
		UcMessage("\"Vasculio specialized in death magic. Not like Mortegro, mind thee. No, Vasculio did not want to speak with the dead... He wanted to cause death.\"");
		UcSay;
		UcMessage("\"And he was none too particular if it was a quick death or not. Anyway, soon his 'research' even upset the Council of Mages.\"");
		UcSay;
		UcMessage("\"When the Council went to deliver Vasculio an ultimatum, they found him in deeds so horrible that it was determined that he was no longer human.\"");
		UcSay;
		UcMessage("\"They put him to death... but his tomb was broken open and empty before a week had passed. And they say that, somehow, he still lives to practice his dark arts.\"");
		UcSay;
		UI_add_answer_0C(["restrictions", "Mortegro"]);
	labelFunc042A_02A3:
		cmps("restrictions");
		UI_remove_answer_0D("restrictions");
		UcMessage("\"Well, now, there are quite a number of them. And I only know a few... not being a mage.\"");
		UcSay;
		UcMessage("\"Let's see... certain creatures cannot be summoned within the confines of the city. This would come to light after some damn fool mage summons a dragon that burns half the city!\"");
		UcSay;
		UcMessage("\"Only mages approved of by the Council of Mages may sell death spells. And the Council must be notified of all research and experiments.\"");
		UcSay;
		UcMessage("\"There. 'Tis all I can remember. If thou desirest to know more, thou shouldst speak to a mage.\"");
		UcSay;
	labelFunc042A_02C2:
		cmps("Mortegro");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"Mortegro is fine. A bit flighty at times, but all mages are if thou dost ask me.\"");
		UcSay;
		UcMessage("\"Mortegro's true specialty is speaking with the dead.\"");
		UcSay;
	labelFunc042A_02D9:
		cmps("Adept's daughter");
		UI_remove_answer_0D("Adept's daughter");
		UcMessage("\"Oh, thou wouldst do well not to ask too closely about who she is, ");
		UcMessage(var0000);
		UcMessage("! Mages are very protective of their privacy AND their pride.\"");
		UcSay;
		UcMessage("\"Suffice it to say that Ensorcio took a fancy to the girl and, when she would not give him the time of day, used his magic to... persuade... her to see him.\"");
		UcSay;
		UcMessage("\"I was surprised the Council punished him with simple exile. I would have thought he would have gone to the Mountains of Freedom for his crime!\"");
		UcSay;
		UI_add_answer_0C("Mountains of Freedom");
	labelFunc042A_0301:
		cmps("Mountains of Freedom");
		UI_remove_answer_0D("Mountains of Freedom");
		UcMessage("\"Speak that name quietly, ");
		UcMessage(var0000);
		UcMessage(". And hope that thou never hast reason to learn too much about it.\"");
		UcSay;
		UcMessage("\"Long ago, those mountains were full of ore and many spent their lives mining it. But most of the veins were empty when they uncovered the Stoneheart...\"");
		UcSay;
		UI_add_answer_0C("Stoneheart");
	labelFunc042A_0325:
		cmps("Stoneheart");
		UI_remove_answer_0D("Stoneheart");
		UcMessage("\"Hsst! Never repeat that word in public, ");
		UcMessage(var0000);
		UcMessage("! Or thou wilt find a personal view of the Mountains of Freedom!\"");
		UcSay;
		UcMessage("\"Stoneheart can be used to create another mineral, a strange reagent that magnifies magical power, especially death spells. And it is very dangerous.\"");
		UcSay;
		UcMessage("\"Anyway, after that was found there, the mines were sealed. Until Filbercio became MageLord, that is.\"");
		UcSay;
		UI_add_answer_0C(["Filbercio", "MageLord"]);
	labelFunc042A_0353:
		cmps("Filbercio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"Filbercio is an ambitious man, ");
		UcMessage(var0000);
		UcMessage(". He is also a man of many... passions, shall we say.\"");
		UcSay;
		UcMessage("\"Not all in Moonshade were happy when he became MageLord. And Filbercio would have it that he is a popular ruler. And he would enjoy the powers of his office without fearing rivals.\"");
		UcSay;
		UcMessage("\"So Filbercio filled the mines with all manner of magical traps, and made it a prison for his enemies. 'Tis said that if thou canst escape from the depths of stone, thou art free and vindicated of any charges against thee.\"");
		UcSay;
		UcMessage("\"But, as of yet, none have proven themselves innocent... If thou takest my meaning.\"");
		UcSay;
	labelFunc042A_0378:
		cmps("MageLord");
		UI_remove_answer_0D("MageLord");
		UcMessage("\"The MageLord must be an Adept, and rules all Moonshade.\"");
		UcSay;
		UcMessage("\"Although the MageLord's power is great, it is held in check by the other members of the Council of Mages.\"");
		UcSay;
		UcMessage("\"Being that mages are, by nature, egotistical, the Council of Mages is only open to other Adepts. The peers of the MageLord. Their presence on the Council is meant to keep the MageLord from becoming too tyrannical.\"");
		UcSay;
	labelFunc042A_0393:
		cmps("Ale");
		UI_remove_answer_0D("Ale");
		UcMessage("\"Ale is what Kane calls that parrot of his...\"");
		UcSay;
		UcMessage("\"And it certainly shows a great enthusiasm for the brew, to be sure. Not usual for a bird, mind thee, but a trick most likely taught to it by some sailor before the lad found it.\"");
		UcSay;
	labelFunc042A_03AA:
		cmps("Pikemen");
		UI_remove_answer_0D("Pikemen");
		if(!(gflags[003E] == true)) goto labelFunc042A_03DA;
		UcMessage("\"Everyone knows that the Pikemen guard the roads and towns, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"They are noted for their honesty. I thought perhaps they could 'persuade' Hawk to abandon his ploy for more money and sail for Moonshade as he should.\"");
		UcSay;
		UcMessage("\"I made an appropriately large 'donation' to their coffers. But I did not expect them to waylay Hawk to rot in some jail cell!\"");
		UcSay;
		UcMessage("\"I suppose that is what comes of not knowing the difference between Leopards, Bears and Wolves...\"");
		UcSay;
		goto labelFunc042A_03E6;
	labelFunc042A_03DA:
		UcMessage("\"I thought perhaps the Pikemen could... disturb Hawk enough to abandon his ploy for more money. I thought that if they made his life difficult enough here, Hawk would sail for Moonshade -- as he should have in the first place!\"");
		UcSay;
		UcMessage("\"I paid them well enough! But I did not expect them to waylay Hawk to rot in some jail cell!\"");
		UcSay;
		UcMessage("\"I suppose that is what comes of not knowing the difference between Leopards, Bears and Wolves...\"");
		UcSay;
	labelFunc042A_03E6:
		gflags[01CD] = true;
		UI_add_answer_0C(["Leopards", "Bears", "Wolves"]);
	labelFunc042A_03FA:
		cmps("Leopards");
		UI_remove_answer_0D("Leopards");
		if(!(gflags[003E] == true)) goto labelFunc042A_0422;
		UcMessage("\"I know what any non-Monitorian knows, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"The Leopards are one of the three Commands of Monitor. They control the tower nearest Monitor itself. I know that they share the rule of Monitor.\"");
		UcSay;
		goto labelFunc042A_042E;
	labelFunc042A_0422:
		UcMessage("\"I know what any non-Monitorian knows...\"");
		UcSay;
		UcMessage("\"The Leopards are one of the three Commands of Monitor. They control the tower nearest Monitor itself.\"");
		UcSay;
		UcMessage("\"I have also heard that, like all cats, they are a sneaky, conniving lot.\"");
		UcSay;
	labelFunc042A_042E:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		if(!(gflags[003E] == true)) goto labelFunc042A_0456;
		UcMessage("\"I know little about them, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"The Bears are one of the three Commands of Monitor. They control the tower near Fawn, where their natural aggressiveness can be put to use against the goblins.\"");
		UcSay;
		goto labelFunc042A_0462;
	labelFunc042A_0456:
		UcMessage("\"I know little about them...\"");
		UcSay;
		UcMessage("\"The Bears are one of the three Commands of Monitor. They control the tower near Fawn, where their natural aggressiveness can be put to use against the goblins.\"");
		UcSay;
		UcMessage("\"I have also heard, from a Fawn merchant, that many Fawn citizens would rather face the goblins than the Bears.\"");
		UcSay;
	labelFunc042A_0462:
		cmps("Wolves");
		UI_remove_answer_0D("Wolves");
		if(!(gflags[003E] == true)) goto labelFunc042A_048A;
		UcMessage("\"Not being from Monitor, I am afraid I am woefully uninformed, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"The Wolves are one of the three Commands of Monitor. They control the tower near here, er... Sleeping Bull. Wolves are regarded as the friendliest of all the Commands...\"");
		UcSay;
		goto labelFunc042A_0492;
	labelFunc042A_048A:
		UcMessage("\"Not being from Monitor, I am afraid I am woefully uninformed...\"");
		UcSay;
		UcMessage("\"The Wolves are one of the three Commands of Monitor. They control the tower near here, er... Sleeping Bull. Wolves are said to be little more than trained dogs...\"");
		UcSay;
	labelFunc042A_0492:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"I find it hard to believe that a man such as Hawk, with a ship such as the Arabella, would fear any storm -- magical or otherwise.\"");
		UcSay;
		UcMessage("\"I have heard of too many odd events connected to these storms to discount their unusual nature. But all such tales speak of danger on land...\"");
		UcSay;
		UcMessage("\"I think Hawk's reluctance to sail lies more at the bottom of an empty mug and an empty coffer...\"");
		UcSay;
		UI_add_answer_0C("Arabella");
	labelFunc042A_04B4:
		cmps("Arabella");
		UI_remove_answer_0D("Arabella");
		UcMessage("\"The Arabella is a fine ship... Good lines and fast-running before a stiff breeze.\"");
		UcSay;
		UcMessage("\"And I have heard that Hawk had some sort of enchantment laid on her so that she can not be sailed without him on board. But that could merely be more of his idle boasts.\"");
		UcSay;
	labelFunc042A_04CB:
		cmps("curious disappearance");
		UI_remove_answer_0D("curious disappearance");
		UcMessage("\"It occurred immediately after I arrived here...\"");
		UcSay;
		UcMessage("\"I recall that one morning Mistress Devra was beside herself with worry because Angus was nowhere to be found.\"");
		UcSay;
		UcMessage("\"I told her not to worry herself too much, as sometimes a man will feel too constricted at home and need to wander for a bit. But she would not be dissuaded and sent for Argus.\"");
		UcSay;
		UI_add_answer_0C(["Devra", "Angus", "Argus"]);
	labelFunc042A_04F6:
		cmps("Devra");
		UI_remove_answer_0D("Devra");
		UcMessage("\"Mistress Devra is a sweet-natured lady. Too good-hearted to be an innkeeper sometimes.\"");
		UcSay;
		UcMessage("\"I had recently begun making the trips with my father when Donal hired her to do the cooking. That was before she married Angus.\"");
		UcSay;
		UcMessage("\"Poor woman, first Theron and then her husband...\"");
		UcSay;
		UI_add_answer_0C(["Donal", "Theron"]);
	labelFunc042A_051E:
		cmps("Donal");
		UI_remove_answer_0D("Donal");
		UcMessage("\"Donal was Angus' father. He was a good, hard-working man.\"");
		UcSay;
		UcMessage("\"'Twas a good thing Donal was not anything like his father, Silverpate, or I doubt that Mistress Devra would ever have given Angus a second look.\"");
		UcSay;
		UcMessage("\"'Tis hard to think that Angus disappeared exactly like his grandfather did...\"");
		UcSay;
		UI_add_answer_0C("Silverpate");
	labelFunc042A_0540:
		cmps("Silverpate");
		UI_remove_answer_0D("Silverpate");
		UcMessage("\"Why, Silverpate is the one who built this inn!\"");
		UcSay;
		UcMessage("\"Everyone said Silverpate was a pirate who grew too old for the sea and went searching for a way to become respectable. He used part of his treasure to construct this place...\"");
		UcSay;
		UcMessage("\"There are rumors in Moonshade that he hired a mage for some reason, but I have never been able to confirm it. They say that he was a very suspicious man...\"");
		UcSay;
		UcMessage("\"Anyhow, Silverpate disappeared when Donal was still a young man. Everyone thinks the treasure is still hidden here somewhere.\"");
		UcSay;
		UI_add_answer_0C(["treasure", "disappeared"]);
	labelFunc042A_056C:
		cmps("treasure");
		UI_remove_answer_0D("treasure");
		UcMessage("\"Do not ask me! Silverpate was a pirate... Who knows what such a man would have hidden?\"");
		UcSay;
		UcMessage("\"Personally, I think that if there were any treasure, it hath long since been found. And if none hath been found, then there never was any hidden treasure!\"");
		UcSay;
	labelFunc042A_0583:
		cmps("disappeared");
		UI_remove_answer_0D("disappeared");
		UcMessage("\"Thou shouldst ask Mistress Devra about that. All I know is that one day no one could find Silverpate, and he was never found.\"");
		UcSay;
		UcMessage("\"Donal took over the inn and nothing more untoward happened until Theron disappeared.\"");
		UcSay;
	labelFunc042A_059A:
		cmps("Theron");
		UI_remove_answer_0D("Theron");
		UcMessage("\"Theron was a worker here. Mistress Devra took him in and gave him work and a place to stay. He was not very bright...\"");
		UcSay;
		UcMessage("\"Like I said, sometimes Mistress Devra is too kind for her own good. Anyway, Theron was caught in one of those storms and no one hath been able to find him since.\"");
		UcSay;
	labelFunc042A_05B1:
		cmps("Angus");
		UI_remove_answer_0D("Angus");
		UcMessage("\"Angus was a big man. I cannot see how any harm could befall him without alerting the whole inn.\"");
		UcSay;
		UcMessage("\"I think perhaps he took a notion to leave and go adventuring. He had a strange sense of humor and a powerful temper...\"");
		UcSay;
		UcMessage("\"Who knows? Mayhaps he became angry at Mistress Devra and walked away.\"");
		UcSay;
	labelFunc042A_05CC:
		cmps("Argus");
		UI_remove_answer_0D("Argus");
		UcMessage("\"Argus is Mistress Devra's oldest son, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"He inherited more than a little bit of his father's temper, and always dreamed of being a fighter. 'Twas no surprise when he travelled to Monitor to become a Pikeman.\"");
		UcSay;
		UcMessage("\"Not all good came of it, however. He found himself some trouble down there, so I have heard. And there hath been bad blood between him and Wilfred ever since he left here.\"");
		UcSay;
		UI_add_answer_0C(["trouble", "Wilfred"]);
	labelFunc042A_05FA:
		cmps("trouble");
		UI_remove_answer_0D("trouble");
		UcMessage("\"If thou dost not want to answer to Argus' steel, ");
		UcMessage(var0000);
		UcMessage(", thou shouldst not mention this to him.\"");
		UcSay;
		UcMessage("\"Seems that Argus' temper found him a duel with a boy from another Command. Argus killed the boy, apparently without giving him any quarter. Sad business for a fighter.\"");
		UcSay;
	labelFunc042A_0617:
		cmps("Wilfred");
		UI_remove_answer_0D("Wilfred");
		UcMessage("\"Wilfred is Argus' younger brother...\"");
		UcSay;
		UcMessage("\"After Argus left, Angus raised Wilfred very strictly. So Wilfred holds Argus in no great esteem.\"");
		UcSay;
		UcMessage("\"Wilfred was always a willful, snobbish sort of child. In mine own opinion, he needed to have his head knocked a time or two to deflate that ego of his. Angus was stricken when Wilfred left to become a knight.\"");
		UcSay;
	labelFunc042A_0632:
		cmps("connections");
		UI_remove_answer_0D("connections");
		UcMessage("\"Although I am not a mage, I am an influential man in Moonshade because my shop provides the staples of life to that secluded island! Why, I even know the MageLord's mistress.\"");
		UcSay;
		if(!gflags[012F]) goto labelFunc042A_065F;
		if(!gflags[00D9]) goto labelFunc042A_0658;
		UcMessage("\"As thou dost well know, seeing that I did obtain thee an audience with the MageLord. Who else could have done such a thing?\"");
		UcSay;
		goto labelFunc042A_065C;
	labelFunc042A_0658:
		UcMessage("\"And I shall obtain for thee an audience with the MageLord, have no fear! I am as good as my promise.\"");
		UcSay;
	labelFunc042A_065C:
		goto labelFunc042A_0684;
	labelFunc042A_065F:
		if(!gflags[01CC]) goto labelFunc042A_067A;
		UcMessage("\"In fact, this is what I shall do for thee! Since thou didst make it possible for Hawk to sail us here, I shall repay thee --\"");
		UcSay;
		UcMessage("\"I shall arrange for thee to meet with the MageLord himself. This is quite an honor, ");
		UcMessage(var0002);
		UcMessage(". This will take time, but I can arrange this.\"");
		UcSay;
		gflags[012F] = true;
		goto labelFunc042A_0684;
	labelFunc042A_067A:
		UcMessage("\"If we ever leave this forsaken inn, ");
		UcMessage(var0000);
		UcMessage(", perhaps I can obtain thee an audience with the MageLord himself. He trusts me implicitly. Ask me again when we arrive.\"");
		UcSay;
	labelFunc042A_0684:
		UcMessage("\"And thou mayest find that some of the mages are very reclusive and will not speak to thee without proper introduction.\"");
		UcSay;
		UI_add_answer_0C("mistress");
	labelFunc042A_068F:
		cmps("mistress");
		UI_remove_answer_0D("mistress");
		UcMessage("\"Oh, yes! Filbercio is quite a lady's man. And what woman would not jump at the opportunity to win the MageLord's favor?\"");
		UcSay;
		UcMessage("\"For now, Frigidazzi holds the MageLord's eye. And, from what I have seen, Filbercio seems to have found a way to thaw the charms of that cold mage...\"");
		UcSay;
		if(!gflags[01CC]) goto labelFunc042A_06C3;
		UcMessage("\"Though I have heard that Frigidazzi is not always so cool. And I have been told that Filbercio hath not been... faithful... shall we say.\"");
		UcSay;
		UI_add_answer_0C(["Frigidazzi", "heard", "faithful"]);
		goto labelFunc042A_06C7;
	labelFunc042A_06C3:
		UcMessage("\"Ask me about it again, if we ever sail to Moonshade. I shall relish telling thee more then. But for now, it only makes me angrier with Hawk for stranding me here!\"");
		UcSay;
	labelFunc042A_06C7:
		cmps("Frigidazzi");
		UI_remove_answer_0D("Frigidazzi");
		UcMessage("\"Frigidazzi specializes in cold-related spells. She is a great beauty, but she is rather cold to everyone.\"");
		UcSay;
		UcMessage("\"Perhaps I should not say this, but I think Frigidazzi is using Filbercio to gain status within the ranks of the Adepts.\"");
		UcSay;
		var000A = true;
	labelFunc042A_06E2:
		cmps("heard");
		UI_remove_answer_0D("heard");
		UcMessage("\"I have heard that Frigidazzi can be quite... warm, to those who catch her fancy. And I am told that she can be very persistent about getting what she wants.\"");
		UcSay;
		UcMessage("\"Although I think it would be foolish to catch her eye as long as Filbercio doth have an interest in her... If thou knowest what I mean.\"");
		UcSay;
	labelFunc042A_06F9:
		cmps("faithful");
		UI_remove_answer_0D("faithful");
		UcMessage("\"Filbercio hath been trying to coerce Columna into a dalliance for some time. But she will have nothing to do with him.\"");
		UcSay;
		UcMessage("\"As Filbercio doth not take being rebuffed lightly, he hired Stefano to steal something of Columna's from Torrissio, to use as blackmail. So the MageLord may prevail in this intended infidelity -- if Frigidazzi doth not discover him.\"");
		UcSay;
		UcMessage("\"Of course, this is not the MageLord's only indiscretion... As I have this story from Julia, who found out from Filbercio, during a night of... ahem... stolen passion.\"");
		UcSay;
		UI_add_answer_0C(["Columna", "Stefano", "Torrissio", "Julia"]);
	labelFunc042A_0727:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"There is not too much to say about Columna. She is one of Moonshade's most reclusive mages. I think that is what makes her so attractive to Filbercio. She seems unattainable.\"");
		UcSay;
		UcMessage("\"Why she insists on dallying with that scum Torrissio, I will never know. She would do better with the MageLord... any way thou dost look at it.\"");
		UcSay;
	labelFunc042A_073E:
		cmps("Stefano");
		UI_remove_answer_0D("Stefano");
		UcMessage("\"Stefano is a thief of some skill, with a bit of magical ability. He tends to live from one disaster to another, though he would like to see himself as a great lord somewhere, someday.\"");
		UcSay;
		UcMessage("\"Stefano would do better practicing his magic... But he would rather be a skilled thief than a novice mage.\"");
		UcSay;
	labelFunc042A_0755:
		cmps("Torrissio");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"I hate even to utter his name... It leaves a bitter taste in the mouth!\"");
		UcSay;
		UcMessage("\"Torrissio specializes in creating the magical automatons that most mages prefer as their servants. I will grant that he is skilled enough, but he doth have the ethics of a snake!\"");
		UcSay;
		UcMessage("\"'Tis a good thing Petra escaped from his sickening clutches and has Rocco to protect her.\"");
		UcSay;
		UI_add_answer_0C(["Petra", "Rocco"]);
	labelFunc042A_077D:
		cmps("Petra");
		UI_remove_answer_0D("Petra");
		UcMessage("\"Petra is the automaton at the Blue Boar. Torrissio created her.\"");
		UcSay;
		UcMessage("\"I have only heard a bit of the tale, so thou shouldst go speak to Petra directly to hear the right of it. In short, Torrissio had vile intent for Petra. But she escaped and Rocco took her in and watches over her.\"");
		UcSay;
	labelFunc042A_0794:
		cmps("Rocco");
		UI_remove_answer_0D("Rocco");
		UcMessage("\"Rocco is the innkeeper at the Blue Boar.\"");
		UcSay;
		UcMessage("\"Although Rocco can be quite gruff, he is devoted to Petra... If thou askest me, I would say 'tis a perfect match -- Rocco and Petra. He can complain as much as he wants and she still takes care of him.\"");
		UcSay;
	labelFunc042A_07AB:
		cmps("Julia");
		UI_remove_answer_0D("Julia");
		UcMessage("\"Julia is a Ranger at the Winery. She is a rather handsome woman. Very no-nonsense sort.\"");
		UcSay;
	labelFunc042A_07BE:
		cmps("tales");
		UI_remove_answer_0D("tales");
		UcMessage("\"As thou mayest imagine, Moonshade hath its share of tall tales and stories. In fact, many of them are started by the mages in question, to enhance their reputations!\"");
		UcSay;
		UcMessage("\"But, if thou dost listen to the tales, there are ancient passages that connect to the other islands. Or, for that matter, some say that the Mad Mage can teleport anywhere he likes.\"");
		UcSay;
		UI_add_answer_0C(["passages", "Mad Mage"]);
	labelFunc042A_07E2:
		cmps("passages");
		UI_remove_answer_0D("passages");
		UcMessage("\"I know nothing other than the fact that they are said to exist, and that they are supposedly fraught with peril.\"");
		UcSay;
		UcMessage("\"Perhaps if thou dost ask Fedabiblio, he could confirm it... Or even tell thee where they are.\"");
		UcSay;
		UI_add_answer_0C("Fedabiblio");
	labelFunc042A_0800:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio is the Magister of Moonshade. It is his duty to test the children throughout the land and bring them to Moonshade for training. Thou mayest find him at the Seminarium.\"");
		UcSay;
		UcMessage("\"It makes my very skin crawl, ");
		UcMessage(var0000);
		UcMessage(", to think of the damage an untutored mage could do...\"");
		UcSay;
		UI_add_answer_0C("Seminarium");
	labelFunc042A_0824:
		cmps("Seminarium");
		UI_remove_answer_0D("Seminarium");
		UcMessage("\"That is where all the novice mages are taught. Look for the youngsters in the street and thou wilt find it.\"");
		UcSay;
	labelFunc042A_0837:
		cmps("Mad Mage");
		UI_remove_answer_0D("Mad Mage");
		UcMessage("\"His name is actually Erstam. But everyone here refers to him as the Mad Mage.\"");
		UcSay;
		UcMessage("\"'Tis a very complex situation, ");
		UcMessage(var0000);
		UcMessage(". Erstam trained all of the Adepts in Moonshade. And, as their master, he is a threat to them because he is still more powerful than they are.\"");
		UcSay;
		UcMessage("\"As I said before, mages are nothing if not prideful. So it is now forbidden for any to visit Erstam... Which, from what I am told is fine with him!\"");
		UcSay;
		UcMessage("\"If thou wishest to try and contact the Mad Mage, thou canst try speaking with Pothos. I believe that they still maintain a contact of sorts.\"");
		UcSay;
		UI_add_answer_0C("Pothos");
	labelFunc042A_0863:
		cmps("Pothos");
		UI_remove_answer_0D("Pothos");
		UcMessage("\"Pothos is the apothecary. He hath some small magical ability, but not enough to enter the ranks of the Adepts. So he makes his living selling them reagents and potions...\"");
		UcSay;
		if(!gflags[00D9]) goto labelFunc042A_0891;
		if(!gflags[00DD]) goto labelFunc042A_0889;
		UcMessage("\"He hath been very cheerful as of late...\"");
		UcSay;
		goto labelFunc042A_0891;
	labelFunc042A_0889:
		UcMessage("\"There are those who believe that Erstam is Pothos' father. But Pothos will never talk about it, so I do not know.\"");
		UcSay;
		gflags[00DC] = true;
	labelFunc042A_0891:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"Moonshade, the city of mages! A place where anything thou mayest desire can be thine... If thou dost have enough guilders, and thou canst find a mage with enough skill.\"");
		UcSay;
		UI_add_answer_0C("guilders");
	labelFunc042A_08AB:
		cmps("guilders");
		UI_remove_answer_0D("guilders");
		UcMessage("\"Guilders are the coins of Moonshade, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"None of the artisans or shopkeepers will deal with thee if thou dost not have guilders. Thou canst exchange thine other coins with Bucia, at my shop.\"");
		UcSay;
	labelFunc042A_08C8:
		cmps("any place");
		UI_remove_answer_0D("any place");
		UcMessage("\"There are many places that thou wilt want to visit while thou art here.\"");
		UcSay;
		UcMessage("\"Thou mayest find lodgings at the Blue Boar. Thou shouldst see the Winery. And there's the artist's bazaar...\"");
		UcSay;
		UI_add_answer_0C(["Blue Boar", "Winery", "bazaar"]);
	labelFunc042A_08EF:
		cmps("Blue Boar");
		UI_remove_answer_0D("Blue Boar");
		UcMessage("\"The Blue Boar is a tavern here. It provides food and lodging at a reasonable rate... for Moonshade.\"");
		UcSay;
		UcMessage("\"Thou wilt sometimes find some of the less reclusive mages there. Be careful not to offend any of them for they may call thee out to a magical duel!\"");
		UcSay;
	labelFunc042A_0906:
		cmps("Winery");
		UI_remove_answer_0D("Winery");
		UcMessage("\"The Rangers have a magic winepress. It works without need of human assistance. I am sure that thou wilt find it interesting.\"");
		UcSay;
	labelFunc042A_0919:
		cmps("bazaar");
		UI_remove_answer_0D("bazaar");
		UcMessage("\"'Tis where many of the artisans can be found... My shop, the Capessi Canton, is located near the Blue Boar Inn. Be sure to stop and say hello to Bucia, who runs the shop for me.\"");
		UcSay;
		UI_add_answer_0C("Bucia");
	labelFunc042A_0933:
		cmps("Bucia");
		UI_remove_answer_0D("Bucia");
		UcMessage("\"Sometimes I cannot understand why I keep her. Each time I enter the shop, there she is -- babbling with someone. Makes me wonder if she doth do any work at all...\"");
		UcSay;
		UcMessage("\"And sometimes I wonder at her sanity, too. She hath developed some far-fetched notions, certis. Why she would have it that poor young Pothos is connected in some way to the Mad Mage! Canst thou imagine?!\"");
		UcSay;
	labelFunc042A_094A:
		cmps("thy promise");
		UI_remove_answer_0D("thy promise");
		if(!gflags[00E9]) goto labelFunc042A_09BD;
		if(!gflags[0130]) goto labelFunc042A_0970;
		UcMessage("\"What? Dost thou not trust my word?\"");
		UcSay;
		UcMessage("\"Go about thy business, and the MageLord shall certainly summon thee when he is ready.\"");
		UcSay;
		goto labelFunc042A_09BA;
	labelFunc042A_0970:
		gflags[0130] = true;
		UcMessage("\"I have good news for thee, my friend! As promised, I have arranged for thee to meet with MageLord Filbercio.\"");
		UcSay;
		UcMessage("\"In fact, he plans to hold a banquet in thine honor. I am certain thou wilt find his means of summoning thee... very unusual...\"");
		UcSay;
		UcMessage("\"Go about thy business, and at the appropriate moment, the MageLord shall summon thee.\"");
		UcSay;
		gflags[00DA] = true;
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0004), [0x55, 0x07DC], 0x014A);
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0003), [0x55, 0x07DC], 0x013B);
	labelFunc042A_09BA:
		goto labelFunc042A_09C5;
	labelFunc042A_09BD:
		UcMessage("\"I am working on securing that appointment for thee to meet with the MageLord, but these things take time...\"");
		UcSay;
		UcMessage("\"Ask me again tomorrow. I promise thee that I can accomplish this thing, but not instantly, not immediately.\"");
		UcSay;
	labelFunc042A_09C5:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thanks for thine help.@", 0x0000);
		Func097F(0xFFD6, "@Whatever...@", 0x0005);
		Func08FF();
		goto labelFunc042A_09F2;
	labelFunc042A_09EF:
		goto labelFunc042A_01A2;
	labelFunc042A_09F2:
		end_conv();
	labelFunc042A_09F3:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func042B 0x42B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0994();
	var0004 = UI_get_schedule_type_24(0xFFD5);
	if(!(event == 0x0000)) goto labelFunc042B_0093;
	if(!(var0004 == 0x001D)) goto labelFunc042B_0093;
	var0005 = UI_find_nearby_41(0xFFD5, 0x025F, 0x0002, 0x0010);
	var0006 = UI_get_item_quality_1C(var0005);
	if(!(var0006 == 0x000F)) goto labelFunc042B_0093;
	UI_set_schedule_type_25(0xFFD5, 0x000F);
	var0007 = UI_execute_usecode_array_01(item, [0x23, 0x34]);
	var0008 = UI_get_npc_id_BC(0xFFD8);
	var0008 = (var0008 + 0x0001);
	UI_set_npc_id_BD(0xFFD8, var0008);
	labelFunc042B_0093:
		if(!(event == 0x0001)) goto labelFunc042B_00C1;
		UI_item_say_4D(0xFE9C, "@A moment, young sir!@");
		0xFFD5;
		calle();
		Func097F(0xFFD5, "@Who, me?@", 0x0002);
		UI_set_schedule_type_25(0xFFD5, 0x0003);
	labelFunc042B_00C1:
		if(!(event == 0x0009)) goto labelFunc042B_0430;
		UI_run_schedule_B7(0xFFD5);
		UI_clear_item_say_4E(0xFFD5);
		var0009 = UI_get_item_flag_A3(0xFFD5, 0x001C);
		UI_show_npc_face0_05(0xFFD5, 0x0000);
		if(!(var0009 == false)) goto labelFunc042B_018A;
		if(!(gflags[003E] == true)) goto labelFunc042B_0141;
		UcMessage("\"I am not in trouble, am I?\" ~\"I did not do anything!\"");
		UcSay;
		UcMessage("\"M'name's Kane. I be a sheepherder...\"");
		UcSay;
		if(!gflags[01CC]) goto labelFunc042B_0133;
		if(!(gflags[00E6] == true)) goto labelFunc042B_0125;
		UcMessage("\"Edrin is returned, ");
		UcMessage(var0000);
		UcMessage("!\" ~\"Edrin was Ale!\" *\"I mean, the storm trans... er, changed, Edrin into that parrot I found!\" ~\"All that time I was searchin' for him, and I had him right there wit me!\"");
		UcSay;
		UcMessage("\"I knew one of them Mages could help me!\" *\"We be goin' home soon...\" ~\"After Edrin finds a ship to return on.\"");
		UcSay;
		goto labelFunc042B_0129;
	labelFunc042B_0125:
		UcMessage("\"I be searchin' for a Mage to help me find my brother what was lost in the storms, if thou pleasest.\"");
		UcSay;
	labelFunc042B_0129:
		UI_add_answer_0C("storms");
		goto labelFunc042B_013E;
	labelFunc042B_0133:
		UcMessage("\"I am waitin' for passage to Moonshade, if thou pleasest.\"");
		UcSay;
		UI_add_answer_0C("passage");
	labelFunc042B_013E:
		goto labelFunc042B_017D;
	labelFunc042B_0141:
		UcMessage("\"How may I serve thee, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		if(!gflags[01CC]) goto labelFunc042B_0172;
		if(!(gflags[00E6] == true)) goto labelFunc042B_0164;
		UcMessage("\"Edrin is returned! Edrin was Ale!\" *\"I mean, the storm trans... er, changed, Edrin into that parrot I found!\" ~\"All that time I was searchin' for him, and I had him right there wit me!\"");
		UcSay;
		UcMessage("\"I knew one of them Mages could help me!\" *\"We be goin' home soon...\" ~\"After Edrin finds a ship to return on.\"");
		UcSay;
		goto labelFunc042B_0168;
	labelFunc042B_0164:
		UcMessage("\"M'name's Kane. I be searchin' for a Mage to help me find my brother what was lost in the storms, if thou pleasest.\"");
		UcSay;
	labelFunc042B_0168:
		UI_add_answer_0C("storms");
		goto labelFunc042B_017D;
	labelFunc042B_0172:
		UcMessage("\"M'name's Kane. I be a sheepherder...\" ~\"I be waitin' for passage to Moonshade, if thou pleasest.\"");
		UcSay;
		UI_add_answer_0C("passage");
	labelFunc042B_017D:
		UI_set_item_flag_A4(0xFFD5, 0x001C);
		goto labelFunc042B_01CF;
	labelFunc042B_018A:
		UcMessage("\"Welcome back, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		if(!gflags[01CC]) goto labelFunc042B_01CF;
		if(!(gflags[00E6] == true)) goto labelFunc042B_01BA;
		UcMessage("\"Edrin is returned, ");
		UcMessage(var0000);
		UcMessage("!\" ~\"Edrin was Ale!\" *\"I mean, the storm trans... er, changed, Edrin into that parrot I found!\" ~\"All that time I was searchin' for him, and I had him right there wit me!\"");
		UcSay;
		UcMessage("\"Did I not tell thee that one of them Mages could help me?\" ~\"I knew it!\" *\"We be goin' home soon...\" ~\"After Edrin finds a ship to return on.\"");
		UcSay;
		UI_add_answer_0C("storms");
		goto labelFunc042B_01CF;
	labelFunc042B_01BA:
		UcMessage("\"Is not this place marvelous, ");
		UcMessage(var0000);
		UcMessage("? There be so much to see... Everything is so fancy! I wish Edrin was here wit me. I be certain he could show me around.\"");
		UcSay;
		UcMessage("\"I hope some of these powerful Mages will help me find him.\"");
		UcSay;
		UI_add_answer_0C("passage");
	labelFunc042B_01CF:
		UI_add_answer_0C("bye");
	labelFunc042B_01D6:
		UcAsk;
		cmps("passage");
		if(!gflags[01CC]) goto labelFunc042B_01EE;
		UcMessage("\"Now that we are here in Moonshade it seems that thou canst not find passage to go elsewhere. Not even Captain Hawk will brave those Teleport Storms again.\"");
		UcSay;
		goto labelFunc042B_01FF;
	labelFunc042B_01EE:
		UcMessage("\"I was told by Mistress Devra that I could buy passage with Captain Hawk to Moonshade.\" ~\"But when the Cap'n came to the dock, he swore that he'd not go out in these storms again.\" *\"I do not blame him, to tell thee the honest truth, ");
		UcMessage(var0000);
		UcMessage(".\" ~\"But I do wish there was some way for me to talk to the mages there.\"");
		UcSay;
		UI_add_answer_0C("Devra");
	labelFunc042B_01FF:
		UI_remove_answer_0D("passage");
		UI_add_answer_0C(["Hawk", "storms"]);
	labelFunc042B_0213:
		cmps("Devra");
		if(!gflags[01CC]) goto labelFunc042B_0228;
		UcMessage("\"I wish Edrin and I were back with Mistress Devra. She was nice to me, and said that I could return to Sleeping Bull and be her helper. I'd like that.\"");
		UcSay;
		goto labelFunc042B_0236;
	labelFunc042B_0228:
		UcMessage("\"Oh, she be a nice lady, ");
		UcMessage(var0000);
		UcMessage("!\" ~\"Mistress Devra helped me to count my money when I came.\"");
		UcSay;
		UcMessage("\"She put part of it in a little sack and told me that I was to give it to Captain Hawk to buy passage.\" ~\"And when she counted the rest I could not afford to stay here until the Captain decided it was safe to sail.\" *\"But she said if I helped by choppin' wood and such I could stay as a servant, like.\" ~\"That was terrible kind of her.\"");
		UcSay;
	labelFunc042B_0236:
		UI_remove_answer_0D("Devra");
	labelFunc042B_023D:
		cmps("Hawk");
		if(!gflags[01CC]) goto labelFunc042B_0252;
		UcMessage("\"After that terrible crossing, Hawk swore he'd drink all of Moonshade dry. I doubt that thou wilt find him far from a mug of strong spirits.\"");
		UcSay;
		goto labelFunc042B_0276;
	labelFunc042B_0252:
		UcMessage("\"Cap'n Hawk sails the Arabella, that's the ship at the dock out there a ways.\" ~\"He was staying here until he got in a fight and the Pikemen took him away...\"");
		UcSay;
		if(!(gflags[003E] == true)) goto labelFunc042B_0265;
		UcMessage("\"Thou art not here to take me too, art thou?\" ~\"I didn't fight, honest. I hid under the table when Cap'n Hawk and Master Flindo started shoutin' at one another.\"");
		UcSay;
		goto labelFunc042B_0269;
	labelFunc042B_0265:
		UcMessage("\"I didn't fight, honest. I hid under the table when Cap'n Hawk and Master Flindo started shoutin' at one another.\" ~\"I hope they don't think I did anything...\"");
		UcSay;
	labelFunc042B_0269:
		UI_add_answer_0C(["Pikemen", "Flindo"]);
	labelFunc042B_0276:
		UI_remove_answer_0D("Hawk");
	labelFunc042B_027D:
		cmps("Pikemen");
		if(!(gflags[003E] == true)) goto labelFunc042B_02A2;
		UcMessage("\"Beggin' thy pardon, ");
		UcMessage(var0000);
		UcMessage(".\" ~\"I don't mean any disrespect...\"");
		UcSay;
		UcMessage("\"Master Flindo came in with several Pikemen and said something to Cap'n Hawk that I didn't hear.\" ~\"Then the two of them began yellin', and well, then someone began swinging...\" ~\"I did not see who, bein' under the table and all.\"");
		UcSay;
		UcMessage("\"Someone clouted Captain Hawk pretty hard and then the Pikemen were draggin' him away.\" ~\"Master Argus shouted at them to leave him be, but, thy pardon, they told him to mind his own innkeepin' and nothin' else.\" *\"Master Argus was mighty angry, and was for goin' after them. But Mistress Devra stopped him.\" ~\"He said words I ain't never heard before...\"");
		UcSay;
		goto labelFunc042B_02AA;
	labelFunc042B_02A2:
		UcMessage("\"Master Flindo came in with several Pikemen and said something to Captain Hawk that I didn't hear.\" ~\"Then the two of them began shoutin', and well, then someone began swinging...\" ~\"I didn't see who, bein' under the table and all.\"");
		UcSay;
		UcMessage("\"Someone clouted Cap'n Hawk pretty hard and then the Pikemen were draggin' him away.\" ~\"Master Argus yelled at them to leave him be, but they told him to mind his innkeepin' and nothin' else.\" *\"Master Argus was mighty angry, and was for goin' after them. But Mistress Devra stopped him.\" ~\"He said words I ain't never heard before...\"");
		UcSay;
	labelFunc042B_02AA:
		gflags[01CD] = true;
		UI_remove_answer_0D("Pikemen");
		UI_add_answer_0C("Argus");
	labelFunc042B_02BC:
		cmps("Argus");
		UcMessage("\"Ain't he big and strong, though? I'll wager he could lift even more than my brother.\" ~\"And Edrin can lift two full-grown ewes all by himself!\"");
		UcSay;
		UcMessage("\"I can tell that Master Argus is... or was... a Pikeman.\" ~\"He doth have those marks on his face.\" *\"But I do not understand why those other fellows treated him like they did.\" ~\"Mayhaps they were angry at him for talkin' like that in front of his mother...\"");
		UcSay;
		UI_remove_answer_0D("Argus");
	labelFunc042B_02D3:
		cmps("Flindo");
		if(!gflags[01CC]) goto labelFunc042B_02E8;
		UcMessage("\"First this Flindo was unhappy that we would not sail to Moonshade, now he is unhappy that we will not sail back! I have had enough of him and his lust for commerce. Let us change the subject.\"");
		UcSay;
		goto labelFunc042B_02F4;
	labelFunc042B_02E8:
		UcMessage("\"Master Flindo is a merchant of some sort, I think.\" ~\"He is not very nice.\"");
		UcSay;
		UcMessage("\"All he doth do is complain about Cap'n Hawk not wantin' to sail to Moonshade.\" ~\"He says that Cap'n Hawk only wants more money... But the Cap'n refused all his offers of more money.\"");
		UcSay;
		UcMessage("\"I think the Cap'n doth not want to put any of us in danger, is all.\" ~\"And Master Flindo was not very happy when the Pikemen took Cap'n Hawk away.\"");
		UcSay;
	labelFunc042B_02F4:
		UI_remove_answer_0D("Flindo");
	labelFunc042B_02FB:
		cmps("storms");
		if(!gflags[01CC]) goto labelFunc042B_032D;
		if(!(gflags[00E6] == true)) goto labelFunc042B_0322;
		UcMessage("\"'Tis strange what them storms can do, ");
		UcMessage(var0000);
		UcMessage(". To think that they could change mine own brother into a bird -- wondrous strange!\"");
		UcSay;
		UcMessage("\"I am most glad to have Edrin back.\"");
		UcSay;
		goto labelFunc042B_032A;
	labelFunc042B_0322:
		UcMessage("\"I was frightened during that storm when Edrin disappeared. But it weren't nothing compared to that sea crossing in Hawk's ship.\"");
		UcSay;
		UcMessage("\"I am not looking forward to sailing again, I can tell thee.\"");
		UcSay;
	labelFunc042B_032A:
		goto labelFunc042B_0337;
	labelFunc042B_032D:
		UcMessage("\"Enough to make a man's blood turn to ice, ");
		UcMessage(var0000);
		UcMessage("!\" ~\"Why one moment Edrin was not more than five paces from me, and then he weren't nowhere to be found.\" *\"'Course it took a minute or two for mine eyes to clear and mine ears to cease ringing, after that lightnin' strike.\" ~\"But I went searchin' right away, and I couldn't find hide nor hair of him.\"");
		UcSay;
	labelFunc042B_0337:
		UI_remove_answer_0D("storms");
		UI_add_answer_0C("Edrin");
	labelFunc042B_0345:
		cmps("Edrin");
		if(!gflags[01CC]) goto labelFunc042B_0371;
		if(!(gflags[00E6] == true)) goto labelFunc042B_0366;
		UcMessage("\"He is doing fine now that he's not a parrot any more. Though he says that he hath been having bad dreams of late. I do not blame him.\"");
		UcSay;
		UcMessage("\"I'll wager being a bird would give anyone nightmares...\"");
		UcSay;
		goto labelFunc042B_036E;
	labelFunc042B_0366:
		UcMessage("\"I have not yet spoken with any of them Mages. I'll admit that they frighten me...\"");
		UcSay;
		UcMessage("\"But I know that I have to do it sometime. They are mine only hope of finding Edrin again.\"");
		UcSay;
	labelFunc042B_036E:
		goto labelFunc042B_0388;
	labelFunc042B_0371:
		UcMessage("\"Edrin is mine older brother, ");
		UcMessage(var0000);
		UcMessage(".\" ~\"We were herdin' the sheep into the pen one night when one of these strange storms hit outta a clear sky.\" *\"I looked and looked and looked, but ain't no one seen him.\" ~\"All I found was this here parrot, which I brought along for the company to Moonshade.\"");
		UcSay;
		UI_add_answer_0C(["parrot", "Moonshade"]);
	labelFunc042B_0388:
		UI_remove_answer_0D("Edrin");
	labelFunc042B_038F:
		cmps("parrot");
		UcMessage("\"I'd been searchin' for Edrin a little over a day, I suppose, when I found this here parrot sittin' under a tree, all pitiful like.\" ~\"Well, now I was awful lonesome, so I asked the bird what it was doin' out in the forest instead of home in a cage.\" *\"Like to leapt out of my skin when the thing croaked 'Ale!'.\" ~\"But Cap'n Hawk said that's the way of such birds.\"");
		UcSay;
		UcMessage("\"Still and all, I think Ale -- 'tis his name now -- is smarter than some of the folks I know.\" ~\"And he doth have a powerful fondness for ale.\" *\"I hope Edrin will allow me to keep Ale...\" ~\"After all, he doth have his crystal and I do not have nothin'.\"");
		UcSay;
		UI_remove_answer_0D("parrot");
		UI_add_answer_0C("crystal");
	labelFunc042B_03AD:
		cmps("crystal");
		UcMessage("\"When I was not very old, Da took Edrin to Moonshade with him.\" ~\"I remember I cried and cried, but Mother said I was too young to go. She promised I'd be allowed to go the next time.\"");
		UcSay;
		UcMessage("\"Only there wasn't a next time because Da died that fall, and Edrin and I have been too busy with the sheep to go since then.\" ~\"But sometimes, when I was scared at night, Edrin would let me hold the crystal until I fell asleep...\" *\"And I never had any dreams then.\" ~\"Who would've thought I'd travel all alone to Moonshade like this one day?\"");
		UcSay;
		UI_remove_answer_0D("crystal");
	labelFunc042B_03C4:
		cmps("Moonshade");
		UcMessage("\"Well, ");
		UcMessage(var0000);
		UcMessage(", as near as I can surmise, if these storms ain't natural then that means they must be magic-like.\" ~\"And ever'one knows that if thou dost want anything magic-like, thou shouldst go to Moonshade.\" *\"If these storms took Edrin away and they're magic-like, then one of them mages must be able to tell me how to find him.\" ~\"All I have to do is go there and ask...\"");
		UcSay;
		UcMessage("\"Mistress Devra told me I might ask Master Ensorcio if he could help me.\" ~\"She said he was one of them mages.\" *\"I wondered a little about that... because ever'one doth know that all mages live in Moonshade.\" ~\"But I asked anyhow...\"");
		UcSay;
		UI_remove_answer_0D("Moonshade");
		UI_add_answer_0C("Ensorcio");
	labelFunc042B_03E8:
		cmps("Ensorcio");
		UcMessage("\"I do not like to speak ill of anyone, ");
		UcMessage(var0000);
		UcMessage(".\" ~\"But Master Ensorcio doth have the worst temper I've ever seen!\" *\"All I did was ask if he was a mage and could he help me...\" ~\"And he threatened to change me to a frog!\"");
		UcSay;
		UcMessage("\"All he would have had to do was tell me to go away and leave him alone.\" ~\"And I would've not bothered him no more.\" ~\"Now I know why Da used to say if we were bad the mages would come and take us away...\" ~\"Mayhap Master Ensorcio never had a Da to teach him manners.\"");
		UcSay;
		UI_remove_answer_0D("Ensorcio");
	labelFunc042B_0405:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Good luck, Kane!@", 0x0000);
		Func097F(0xFFD5, "@Luck to thee, too!@", 0x0002);
		goto labelFunc042B_042F;
	labelFunc042B_042C:
		goto labelFunc042B_01D6;
	labelFunc042B_042F:
		end_conv();
	labelFunc042B_0430:
		if(!(event == 0x0007)) goto labelFunc042B_0458;
		Func097F(0xFFD5, "@Yowie!@", 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFFD5);
		UI_set_attack_mode_59(0xFFD5, 0x0007);
	labelFunc042B_0458:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0994 0x994 ();
extern Func0861 0x861 ();
extern var Func0955 0x955 ();
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0971 0x971 (var var0000);
extern var Func0977 0x977 (var var0000);

Func042C 0x42C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = [0x04F4, 0x08B8];
	var0003 = [0x04F4, 0x08B8];
	var0004 = [0x04F4, 0x08B8];
	if(!(event == 0x0001)) goto labelFunc042C_007A;
	if(!UI_is_pc_female_6F()) goto labelFunc042C_004C;
	UI_item_say_4D(0xFE9C, "@Hello.@");
	goto labelFunc042C_0056;
	labelFunc042C_004C:
		UI_item_say_4D(0xFE9C, "@Excuse me, miss...@");
	labelFunc042C_0056:
		0xFFD4;
		calle();
		Func097F(0xFFD4, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFD4, 0x0003);
	labelFunc042C_007A:
		if(!(event == 0x0009)) goto labelFunc042C_0B01;
		UI_show_npc_face0_05(0xFFD4, 0x0000);
		UI_clear_item_say_4E(0xFFD4);
		if(!(Func0994() == 0x0018)) goto labelFunc042C_00A2;
		UcMessage("\"I want to be alone.\"");
		UcSay;
		abrt();
	labelFunc042C_00A2:
		if(!UI_get_item_flag_A3(0xFFD4, 0x0006)) goto labelFunc042C_00C3;
		UI_set_schedule_type_25(0xFFD4, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc042C_00E6;
	labelFunc042C_00C3:
		UI_run_schedule_B7(0xFFD4);
		if(!(UI_get_schedule_type_24(0xFFD4) == 0x0003)) goto labelFunc042C_00E6;
		UI_revert_schedule_B4(0xFFD4);
		UI_run_schedule_B7(0xFFD4);
	labelFunc042C_00E6:
		if(!((!UI_get_item_flag_A3(0xFFD4, 0x0006)) && gflags[01CE])) goto labelFunc042C_014A;
		if(!gflags[01E5]) goto labelFunc042C_010F;
		UcMessage("\"If thou hast the stomach to face great danger, then perhaps we can resume the quest for the lost gold.\"");
		UcSay;
		UI_add_answer_0C(["resume quest"]);
		goto labelFunc042C_0147;
	labelFunc042C_010F:
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x001C))) goto labelFunc042C_0132;
		UcMessage("\"Allow me to introduce myself. My name is Selina. And I have heard that thou art in need of... finances, shall we say.\"");
		UcSay;
		UcMessage("\"I believe that I can be of help...\"");
		UcSay;
		UI_set_item_flag_A4(0xFFD4, 0x001C);
		goto labelFunc042C_013A;
	labelFunc042C_0132:
		UcMessage("\"I have heard that thou art in need of... finances, shall we say.\"");
		UcSay;
		UcMessage("\"I believe that I can be of help...\"");
		UcSay;
	labelFunc042C_013A:
		UI_add_answer_0C(["finances", "help"]);
	labelFunc042C_0147:
		goto labelFunc042C_01F2;
	labelFunc042C_014A:
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x001C))) goto labelFunc042C_01A1;
		if(!UI_is_pc_female_6F()) goto labelFunc042C_017B;
		UcMessage("\"'Tis a pleasure to meet thee, ");
		UcMessage(var0000);
		UcMessage(". I am Selina.\"");
		UcSay;
		UcMessage("\"It is so wonderful that a woman such as thyself hath come to our land!\"");
		UcSay;
		UcMessage("\"There is so much that thou canst teach us.\"");
		UcSay;
		UI_add_answer_0C("teach");
		goto labelFunc042C_0194;
	labelFunc042C_017B:
		UcMessage("\"Pardon me, ");
		UcMessage(var0000);
		UcMessage("...	My name is Selina.\"");
		UcSay;
		UcMessage("\"Thou dost look to be brave and trustworthy.\"");
		UcSay;
		UcMessage("\"I need thy protection.\"");
		UcSay;
		UI_add_answer_0C("protection");
	labelFunc042C_0194:
		UI_set_item_flag_A4(0xFFD4, 0x001C);
		goto labelFunc042C_01F2;
	labelFunc042C_01A1:
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x0006))) goto labelFunc042C_01E8;
		UcMessage("\"So, we meet again, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"It seems we are fated to be together...\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc042C_01D6;
		UcMessage("\"I'm glad thou art returned.\"");
		UcSay;
		UcMessage("\"Thou still hast much to teach us.\"");
		UcSay;
		UI_add_answer_0C("teach");
		goto labelFunc042C_01E5;
	labelFunc042C_01D6:
		UcMessage("\"I'm glad thou art returned.\"");
		UcSay;
		UcMessage("\"I would still be grateful for thy protection.\"");
		UcSay;
		UI_add_answer_0C("protection");
	labelFunc042C_01E5:
		goto labelFunc042C_01F2;
	labelFunc042C_01E8:
		UcMessage("\"What dost thou wish to speak about, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
	labelFunc042C_01F2:
		if(!(gflags[007A] == true)) goto labelFunc042C_0201;
		UI_add_answer_0C("fishnet stockings");
	labelFunc042C_0201:
		if(!(gflags[027B] && (!gflags[028D]))) goto labelFunc042C_0213;
		UI_add_answer_0C("Moonsilk stockings");
	labelFunc042C_0213:
		if(!(gflags[027F] && (!gflags[0291]))) goto labelFunc042C_0225;
		UI_add_answer_0C("lost ring");
	labelFunc042C_0225:
		if(!(gflags[0280] && (!gflags[0292]))) goto labelFunc042C_0237;
		UI_add_answer_0C("fur cap");
	labelFunc042C_0237:
		if(!(gflags[028B] && (!gflags[029D]))) goto labelFunc042C_0249;
		UI_add_answer_0C("Stoneheart");
	labelFunc042C_0249:
		if(!(gflags[0011] && ((!UI_get_item_flag_A3(0xFFD4, 0x0006)) && UI_get_cont_items_33(0xFFD4, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc042C_0273;
		UI_add_answer_0C("belongings");
	labelFunc042C_0273:
		if(!(UI_get_item_flag_A3(0xFFD4, 0x0006) && (!gflags[01E6]))) goto labelFunc042C_028C;
		UI_add_answer_0C("Are we there yet?");
	labelFunc042C_028C:
		UI_add_answer_0C("bye");
	labelFunc042C_0293:
		UcAsk;
		cmps("Are we there yet?");
		UI_remove_answer_0D("Are we there yet?");
		var0005 = [0x06D0, 0x0766, 0x0000];
		var0006 = UI_get_object_position_20(0xFFD4);
		var0007 = (var0005[0x0002] - var0006[0x0002]);
		var0008 = (var0005[0x0001] - var0006[0x0001]);
		var0009 = var0007;
		if(!(var0007 < 0x0000)) goto labelFunc042C_02F8;
		var0009 = (var0009 * Dupre);
	labelFunc042C_02F8:
		var000A = var0008;
		if(!(var0008 < 0x0000)) goto labelFunc042C_0312;
		var000A = (var000A * Dupre);
	labelFunc042C_0312:
		var000B = (var000A + var0009);
		if(!(var000A > var0009)) goto labelFunc042C_034E;
		if(!(var0008 > 0x0000)) goto labelFunc042C_033F;
		var000C = 0x0002;
		var000D = "east";
		goto labelFunc042C_034B;
	labelFunc042C_033F:
		var000C = 0x0006;
		var000D = "west";
	labelFunc042C_034B:
		goto labelFunc042C_0373;
	labelFunc042C_034E:
		if(!(var0007 > 0x0000)) goto labelFunc042C_0367;
		var000C = 0x0004;
		var000D = "south";
		goto labelFunc042C_0373;
	labelFunc042C_0367:
		var000C = 0x0000;
		var000D = "north";
	labelFunc042C_0373:
		if(!(var000B > 0x01F4)) goto labelFunc042C_0384;
		UcMessage("\"We still have a long way to travel.\"");
		UcSay;
		goto labelFunc042C_03A6;
	labelFunc042C_0384:
		if(!(var000B < 0x0032)) goto labelFunc042C_03A2;
		UcMessage("\"This is the place!\"");
		UcSay;
		Func097F(0xFFD4, "@We should find the gold!@", 0x0000);
		abrt();
		goto labelFunc042C_03A6;
	labelFunc042C_03A2:
		UcMessage("\"We are very close!\"");
		UcSay;
	labelFunc042C_03A6:
		if(!((var0006[0x0001] < 0x0593) && (var0006[0x0002] > 0x0743))) goto labelFunc042C_03CB;
		var000C = 0x0000;
		UcMessage("\"We must follow the coast north, and then turn east.\"");
		UcSay;
		goto labelFunc042C_03DB;
	labelFunc042C_03CB:
		UcMessage("\"We must go further ");
		UcMessage(var000D);
		UcMessage(". Is not this adventure exciting, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
	labelFunc042C_03DB:
		var000E = UI_execute_usecode_array_01(item, [0x23, 0x59, var000C, 0x6A, 0x52, "@This way!@"]);
		abrt();
	labelFunc042C_03F5:
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		Func0861();
	labelFunc042C_0407:
		cmps("finances");
		UI_remove_answer_0D("finances");
		UcMessage("\"I will simply say that a little birdie told me that thou dost need desperately to sail to Moonshade.\"");
		UcSay;
		UcMessage("\"Now, with Captain Hawk a prisoner of the Tower guards, thou must certainly be trying to scrape together a ransom sufficient to sate those greedy ruffians.\"");
		UcSay;
		UcMessage("\"It is all so obvious, if one thinks about it just so...\"");
		UcSay;
	labelFunc042C_0422:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UcMessage("\"But we agreed to be partners. From now on, thou and I are inseparable!\"");
		UcSay;
	labelFunc042C_0435:
		cmps("help");
		UI_remove_answer_0D("help");
		UcMessage("\"Not long ago, one of those strange storms took the lighthouse that was up the coast, north and east of here.\"");
		UcSay;
		UcMessage("\"In its place is a strange building, locked tight and reportedly filled with hideous monsters and great treasure!\"");
		UcSay;
		UcMessage("\"One I thought of as my beloved found a key on a creature outside of the building. He gave this key to me for certain... favors... and promised to meet me here so we could seek the treasure together.\"");
		UcSay;
		UI_add_answer_0C(["beloved", "key"]);
	labelFunc042C_045D:
		cmps("beloved");
		UI_remove_answer_0D("beloved");
		UcMessage("\"He is not here, and shows no signs of keeping his word. Men!\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc042C_047E;
		UcMessage("\"Frankly, we would do best if we were to rid ourselves of Men entirely! What a sisterhood we should make...\"");
		UcSay;
		goto labelFunc042C_0482;
	labelFunc042C_047E:
		UcMessage("\"I feel terrible, for this time I had given away mine heart, and now 'tis broken...\"");
		UcSay;
	labelFunc042C_0482:
		cmps("key", "resume quest");
		UI_remove_answer_0D(["key", "resume quest"]);
		gflags[01CF] = true;
		if(!gflags[01E5]) goto labelFunc042C_04AB;
		UcMessage("\"Dost thou pledge to go directly to the site of the gold this time?\"");
		UcSay;
		goto labelFunc042C_04B3;
	labelFunc042C_04AB:
		UcMessage("\"If thou art willing to allow me to join thee, I can lead thee to treasure enough for both of us.\"");
		UcSay;
		UcMessage("\"I have the key and the instructions, but I am no match for what may lie ahead. Wilt thou join me in seeking the treasure?\"");
		UcSay;
	labelFunc042C_04B3:
		if(!(Func0955() == true)) goto labelFunc042C_067A;
		if(!gflags[01E5]) goto labelFunc042C_04C8;
		UcMessage("\"I shall hold thee to thy word!\"");
		UcSay;
		goto labelFunc042C_04CC;
	labelFunc042C_04C8:
		UcMessage("\"I knew that thou wouldst be interested!\"");
		UcSay;
	labelFunc042C_04CC:
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) > 0x0001)) goto labelFunc042C_0563;
		UcMessage("\"Judging from what I've been told, it would be best if only two went. The danger to any more than two is great. Wilt thou leave thy companions here for their safety?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042C_0559;
		UcMessage("\"Thou art a true friend to them, ");
		UcMessage(var0001);
		UcMessage("! Thou canst salve their wounded pride with some of the treasure that we bring back.\"");
		UcSay;
		var000E = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc042C_0503:
		for (var0011 in var000E with var000F to var0010 atend labelFunc042C_054A);
		UI_remove_from_party_27(var0011);
		UI_set_new_schedules_B6(var0011, [0x0000, 0x0002, 0x0003], [0x000E, 0x001A, 0x0007], [var0002, var0003, var0004]);
		UI_run_schedule_B7(var0011);
		goto labelFunc042C_0503;
	labelFunc042C_054A:
		Func097F(var0011, "@I need a drink!@", 0x0002);
		goto labelFunc042C_0563;
	labelFunc042C_0559:
		UcMessage("\"I hope that thou dost not live to regret thy decision, ");
		UcMessage(var0001);
		UcMessage(". They are thy friends and will not thank thee if thou dost lead them to their deaths...\"");
		UcSay;
	labelFunc042C_0563:
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) > 0x0004)) goto labelFunc042C_05ED;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		UI_show_npc_face1_06(var000E, 0x0000);
		UcMessage("\"This group is getting a little large for my tastes. I think I'll stay at the Inn for a while...\"");
		UcSay;
		UI_remove_from_party_27(var000E);
		UI_set_new_schedules_B6(var000E, [0x0000, 0x0002, 0x0003], [0x000E, 0x001A, 0x0007], [var0002, var0003, var0004]);
		UI_set_schedule_type_25(var000E, 0x000C);
		Func097F(var000E, "@So long...@", 0x0000);
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"We'll be fine without that troublemaker, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc042C_05ED:
		UI_add_to_party_26(0xFFD4);
		gflags[0011] = true;
		var000E = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x042C], 0x0019);
		Func097F(0xFFD4, "@Onward!@", 0x0000);
		if(!(!gflags[01E5])) goto labelFunc042C_0645;
		UcMessage("\"Here is the key I promised.\"");
		UcSay;
		var000E = Func099B(0xFE9C, 0x0001, 0x0281, 0x0075, 0x0003, 0x0000, true);
	labelFunc042C_0645:
		gflags[01E5] = true;
		var000E = UI_find_object_32(0xFFD4, 0x0128, 0xFE99, 0x0002);
		if(!var000E) goto labelFunc042C_0676;
		var000E = UI_set_last_created_2E(var000E);
		var000E = UI_give_last_created_42(0xFFD4);
	labelFunc042C_0676:
		abrt();
		goto labelFunc042C_06A8;
	labelFunc042C_067A:
		if(!gflags[01E5]) goto labelFunc042C_069E;
		UcMessage("\"But how shall I gain the gold, if thou dost not aid me?\"");
		UcSay;
		Func097F(0xFFD4, "@Oh!@", 0x0000);
		UI_set_schedule_type_25(0xFFD4, 0x0014);
		abrt();
		goto labelFunc042C_06A8;
	labelFunc042C_069E:
		UcMessage("\"I had thought thou wouldst be interested! Oh, well, 'tis his loss for buying my... favors so cheaply! And thy loss for not joining me!\" *\"But, I will not hold it against thee, ");
		UcMessage(var0001);
		UcMessage(". If thou art still here and in need of money when I return... Perhaps I will lend thee some!\"");
		UcSay;
	labelFunc042C_06A8:
		cmps("teach");
		UcMessage("\"In Monitor, women may be warriors... But at the cost of their femininity.\"");
		UcSay;
		UcMessage("\"In Fawn, women are valued for their beauty... At the cost of their independence and intelligence.\"");
		UcSay;
		UcMessage("\"And in Moonshade, women may be mages... But the true power lies in the hands of men.\"");
		UcSay;
		UcMessage("\"So, thou seest... Thou art brave, intelligent and beautiful. Thou art not one nor the other... Thou art all these things at once.\"");
		UcSay;
		UI_remove_answer_0D("teach");
		UI_add_answer_0C(["Monitor", "Fawn", "Moonshade"]);
	labelFunc042C_06D7:
		cmps("Monitor");
		UcMessage("\"Monitor is just south of here... It is controlled by Pikemen who place fighting prowess above all else.\" *\"Few there value beauty and even fewer possess intelligence. They would do well with a dose of humility.\"");
		UcSay;
		UI_remove_answer_0D("Monitor");
		UI_add_answer_0C("Pikemen");
	labelFunc042C_06F1:
		cmps("Pikemen");
		if(!(gflags[003E] == true)) goto labelFunc042C_070E;
		UcMessage("\"If the only Pikemen I had ever had the pleasure of encountering were thou and Argus, I would say differently. But many of the Pikemen I have seen are vain braggarts who delight in bullying anyone weaker than they are.\" *\"And their idea of honor is bought cheaply in ransom and @tolls@ on the travellers they are sworn to protect! I'm sorry, ");
		UcMessage(var0001);
		UcMessage(", but I think the Pikemen are, on the whole, contemptible!\"");
		UcSay;
		goto labelFunc042C_0712;
	labelFunc042C_070E:
		UcMessage("\"If the only Pikeman I had ever had the pleasure of encountering was Argus, I would say differently. But many of the Pikemen I have seen are vain braggarts who delight in bullying anyone weaker than they are.\" *\"And their idea of honor is bought cheaply in ransom and @tolls@ on the travellers they are sworn to protect! The Pikemen are, Argus excepted, contemptible!\"");
		UcSay;
	labelFunc042C_0712:
		UI_remove_answer_0D("Pikemen");
	labelFunc042C_0719:
		cmps("Fawn");
		UcMessage("\"Fawn is northwest of here... They have a woman for a ruler, but she rules in name alone.\" *\"The Great Captains and money control the city in truth, and give lip service to Beauty only when it's convenient. It would serve them right if the women revolted and went to Monitor to learn how to fight.\"");
		UcSay;
		UI_remove_answer_0D("Fawn");
		UI_add_answer_0C("Great Captains");
	labelFunc042C_0733:
		cmps("Great Captains");
		UcMessage("\"I have never been to Fawn, ");
		UcMessage(var0001);
		UcMessage(", so I can only repeat what I have heard or have been told. The Great Captains keep the Lady of Fawn in ignorance, preferring a pretty figurehead to an intelligent ruler!\"");
		UcSay;
		UI_remove_answer_0D("Great Captains");
	labelFunc042C_074C:
		cmps("Moonshade");
		UcMessage("\"Moonshade is east of here, on another island... They are ruled by Adepts, but shun normal people as below their notice.\" *\"Each mage doth have his or her own version of reality to such an extent that thou shouldst sift everything they say for a kernel of truth. I sometimes wish the mages could find themselves on the decks of Fawn's fishing fleet and work for an honest living for just a few days... Maybe then they'd learn who the important people truly are.\"");
		UcSay;
		UI_remove_answer_0D("Moonshade");
		UI_add_answer_0C("Adepts");
	labelFunc042C_0766:
		cmps("Adepts");
		UcMessage("\"From what I've heard, being an Adept is as much a result of an accident of birth, rather than any great training. Each Adept specializes in some skill or another...\" *\"So a mage that could kill everyone in his mansion with a single spell, might well be unable to fetch his slippers from in front of the fire with even a series of spells! The Adepts are entirely too full of themselves, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_remove_answer_0D("Adepts");
	labelFunc042C_077F:
		cmps("protection");
		UI_remove_answer_0D("protection");
		UcMessage("\"Yes, protection... People are disappearing around here.\" *\"I do not know if it's those mysterious storms, or if there's something more sinister at work. All I know is that I'm afraid.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["people disappearing", "mysterious storms", "change subject"]);
	labelFunc042C_07A6:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"We can discuss whatever thou dost wish to discuss, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
	labelFunc042C_07BC:
		cmps("people disappearing");
		UcMessage("\"First there was someone they call Silverpate... And now Angus is gone.\" *\"One built the inn and the other was the innkeeper here... And those others disappearing doth cause me to wonder if this place is cursed or something!\"");
		UcSay;
		UI_remove_answer_0D("people disappearing");
		UI_add_answer_0C("others");
	labelFunc042C_07D6:
		cmps("others");
		UcMessage("\"Well, Ensorcio told me that Theron, one of the servants, disappeared not long ago. And then, on the night that Angus disappeared, two guests disappeared as well.\"");
		UcSay;
		UI_remove_answer_0D("others");
		UI_add_answer_0C(["Ensorcio", "two guests"]);
	labelFunc042C_07F6:
		cmps("Ensorcio");
		UcMessage("\"He is the mage who's staying here... He doth seem sinister, but he's nice to me. Not as nice as Argus... But nice, for a mage.\" *\"He seems to drink a lot. And he doth have a bad temper, too.\"");
		UcSay;
		UI_remove_answer_0D("Ensorcio");
		UI_add_answer_0C("Argus");
	labelFunc042C_0810:
		cmps("Argus");
		UcMessage("\"Argus is very nice to me. He compliments me on my dress or mine hair, even though I know I look a mess.\" *\"He's much nicer when Devra isn't around... I do not think she likes me.\"");
		UcSay;
		UI_remove_answer_0D("Argus");
		UI_add_answer_0C("Devra");
	labelFunc042C_082A:
		cmps("Devra");
		UcMessage("\"She's always watching me... It doth make me nervous. Mayhap I shall be the next one to disappear.\" *\"If she were not so old, I might think that she had something to do with those people disappearing. Or maybe she knows more than she doth admit...\"");
		UcSay;
		UI_remove_answer_0D("Devra");
	labelFunc042C_083D:
		cmps("two guests");
		UcMessage("\"I did not meet them, but Ensorcio told me about them. He said something about one of them being a mage, and the other being a very large man.\" *\"So now thou dost understand why I am so worried... If something could happen to a mage, or a big, strong man, what chance do I have?\"");
		UcSay;
		UI_remove_answer_0D("two guests");
	labelFunc042C_0850:
		cmps("mysterious storms");
		UcMessage("\"Everyone knows that these are not natural storms, ");
		UcMessage(var0001);
		UcMessage("! Why even the mages of Moonshade are worried...\" *\"Old Gustacio is practically pulling out what little hair he doth have trying to discover what's causing them. And if the mages are worried, ");
		UcMessage(var0001);
		UcMessage(", people such as we should be very wary indeed.\"");
		UcSay;
		UI_remove_answer_0D("mysterious storms");
		UI_add_answer_0C("Gustacio");
	labelFunc042C_0876:
		cmps("Gustacio");
		UcMessage("\"Gustacio specializes in weather magic, ");
		UcMessage(var0001);
		UcMessage(". 'Tis all very confusing, if thou dost ask me...\" *\"I know that the Council of Mages questioned him closely after these storms began. But they seemed to think that he had no hand in them and set him the task of trying to stop them.\"");
		UcSay;
		UI_remove_answer_0D("Gustacio");
		UI_add_answer_0C("Council of Mages");
	labelFunc042C_0896:
		cmps("Council of Mages");
		UcMessage("\"The Council of Mages oversees all of the mages in Moonshade. I don't know much more about them than that.\" *\"Thou shouldst ask Ensorcio if thou dost wish to know more.\"");
		UcSay;
		UI_remove_answer_0D("Council of Mages");
	labelFunc042C_08A9:
		cmps("fishnet stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0001)) goto labelFunc042C_08CD;
		UcMessage("\"Oh, look! How quaint... Fishnet stockings! I've heard that some people find them attractive, but they're much too rough for my taste. I would never wear anything like that.\"");
		UcSay;
		goto labelFunc042C_08D7;
	labelFunc042C_08CD:
		UcMessage("\"They sound quaint, ");
		UcMessage(var0001);
		UcMessage(". Perhaps thou couldst show them to me some time.\"");
		UcSay;
	labelFunc042C_08D7:
		UI_remove_answer_0D("fishnet stockings");
	labelFunc042C_08DE:
		cmps("Moonsilk stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc042C_097E;
		if(!UI_is_pc_female_6F()) goto labelFunc042C_0940;
		UcMessage("\"Moonsilk stockings! Oh, how I have longed for a pair of my very own!\"");
		UcSay;
		UcMessage("\"Thou dost not need to enhance thy beauty, ");
		UcMessage(var0001);
		UcMessage("... Wouldst thou give them to me?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042C_0933;
		UcMessage("\"Marvelous! I knew that another woman would understand!\"");
		UcSay;
		var000E = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, true);
		goto labelFunc042C_093D;
	labelFunc042C_0933:
		UcMessage("\"Sigh... Thou canst not blame a girl for dreaming, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc042C_093D:
		goto labelFunc042C_097B;
	labelFunc042C_0940:
		UcMessage("\"Moonsilk stockings! Oh, how I have longed for a pair of my very own!\"");
		UcSay;
		UcMessage("\"Wouldst thou give them to me, ");
		UcMessage(var0001);
		UcMessage("? I would cherish them forever...\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042C_0971;
		UcMessage("\"Thou art wonderful! I will think of thee every time I wear them!\"");
		UcSay;
		var000E = UI_remove_party_items_34(0x0001, 0x02A5, 0xFE99, 0x0000, true);
		goto labelFunc042C_097B;
	labelFunc042C_0971:
		UcMessage("\"Sigh... Thou canst not blame a girl for dreaming, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc042C_097B:
		goto labelFunc042C_0988;
	labelFunc042C_097E:
		UcMessage("\"The stockings sound wonderful, ");
		UcMessage(var0001);
		UcMessage(". If thou dost find any more like them, remember me.\"");
		UcSay;
	labelFunc042C_0988:
		UI_remove_answer_0D("Moonsilk stockings");
	labelFunc042C_098F:
		cmps("lost ring");
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc042C_0A43;
		if(!UI_is_pc_female_6F()) goto labelFunc042C_09FB;
		UcMessage("\"An engagement ring!\"");
		UcSay;
		UcMessage("\"Congratulations, ");
		UcMessage(var0001);
		UcMessage("! Who is the lucky man?\"");
		UcSay;
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x0006))) goto labelFunc042C_09E6;
		var0012 = Func0992(0x0001, "@Indeed, young lady!@", "@It isn't mine...@", false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc042C_09E6:
		UcMessage("\"Forgive me, ");
		UcMessage(var0001);
		UcMessage("... I made an assumption before examining the ring.\"");
		UcSay;
		UcMessage("\"I should have realized that it was not thine.	See how crude the tracery is, and how ill the stones fit?\"");
		UcSay;
		UcMessage("\"It is clearly an unacceptable piece of inferior quality. It looks like it may have come from one of the lesser artisans in Moonshade.\"");
		UcSay;
		goto labelFunc042C_0A40;
	labelFunc042C_09FB:
		UcMessage("\"An engagement ring!\"");
		UcSay;
		UcMessage("\"I suppose it would be too much to hope that it was for me...\"");
		UcSay;
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x0006))) goto labelFunc042C_0A28;
		var0012 = Func0992(0x0001, "@Honestly, young lady!@", "@It isn't mine...@", false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc042C_0A28:
		UcMessage("\"Forgive me, ");
		UcMessage(var0001);
		UcMessage(".	I was merely jesting...	I should have realized that it was not thine, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"See how crude the tracery is, and how ill the stones fit? It is clearly an unacceptable piece of inferior quality.\"");
		UcSay;
		UcMessage("\"It looks like it may have come from one of the lesser artisans in Moonshade.\"");
		UcSay;
	labelFunc042C_0A40:
		goto labelFunc042C_0A4D;
	labelFunc042C_0A43:
		UcMessage("\"If thou dost find it again, ");
		UcMessage(var0001);
		UcMessage(", I would love to see it.\"");
		UcSay;
	labelFunc042C_0A4D:
		UI_remove_answer_0D("lost ring");
	labelFunc042C_0A54:
		cmps("fur cap");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004)) goto labelFunc042C_0A78;
		UcMessage("\"How cute! But dost thou not think it is a bit warm here for a fur cap?\" \"And... I don't know... But it seems a bit small for thee...\"");
		UcSay;
		goto labelFunc042C_0A7C;
	labelFunc042C_0A78:
		UcMessage("\"Perhaps thou wouldst show it to me later.\"");
		UcSay;
	labelFunc042C_0A7C:
		UI_remove_answer_0D("fur cap");
	labelFunc042C_0A83:
		cmps("Stoneheart");
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F)) goto labelFunc042C_0AAD;
		UcMessage("\"I... um... I don't know about... uh... rocks, ");
		UcMessage(var0001);
		UcMessage(". Put it away... please.\"* \"Thou shouldst find someone else to ask.\"");
		UcSay;
		goto labelFunc042C_0AB7;
	labelFunc042C_0AAD:
		UcMessage("\"I know nothing about rocks, ");
		UcMessage(var0001);
		UcMessage(". Thou shouldst find someone else to ask.\"");
		UcSay;
	labelFunc042C_0AB7:
		UI_remove_answer_0D("Stoneheart");
		UI_add_answer_0C("someone else");
	labelFunc042C_0AC5:
		cmps("someone else");
		UcMessage("\"Thou couldst ask a scholar or some such... Perhaps even a mage might be able to help. I don't know.\"");
		UcSay;
		UI_remove_answer_0D("someone else");
	labelFunc042C_0AD8:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell, Selina!@", 0x0000);
		Func097F(0xFFD4, "@Until we meet again...@", 0x0002);
		abrt();
	labelFunc042C_0AFD:
		goto labelFunc042C_0293;
	labelFunc042C_0B00:
		end_conv();
	labelFunc042C_0B01:
		if(!(event == 0x0002)) goto labelFunc042C_0D6D;
		var0013 = UI_get_npc_id_BC(0xFFD4);
		if(!(var0013 == 0x0000)) goto labelFunc042C_0C29;
		if(!(!UI_get_item_flag_A3(0xFFD4, 0x0006))) goto labelFunc042C_0B2C;
		abrt();
	labelFunc042C_0B2C:
		var0005 = UI_get_object_position_20(0xFFD4);
		if(!((var0005[0x0001] < 0x0479) || (var0005[0x0002] > 0x08D9))) goto labelFunc042C_0C08;
		UI_show_npc_face0_05(0xFFD4, 0x0000);
		if(!(!gflags[01E7])) goto labelFunc042C_0BD8;
		UcMessage("\"Now look here, ");
		UcMessage(var0001);
		UcMessage(". Thou didst pledge to take me to the treasure, but this is the wrong direction!\"");
		UcSay;
		UcMessage("\"Wilt thou take me to the treasure, or no?\"");
		UcSay;
		if(!Func0955()) goto labelFunc042C_0BA8;
		UcMessage("\"Much better.\"");
		UcSay;
		Func097F(0xFFD4, "@To the gold!@", 0x0000);
		gflags[01E7] = true;
		var000E = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x042C], 0x0032);
		abrt();
		goto labelFunc042C_0BD5;
	labelFunc042C_0BA8:
		UcMessage("\"Then I'm leaving!\"");
		UcSay;
		UI_remove_from_party_27(0xFFD4);
		Func097F(0xFFD4, "@Fool!@", 0x0000);
		Func0861();
		UI_revert_schedule_B4(0xFFD4);
		UI_run_schedule_B7(0xFFD4);
		gflags[01E7] = false;
		abrt();
	labelFunc042C_0BD5:
		goto labelFunc042C_0C05;
	labelFunc042C_0BD8:
		UcMessage("\"Thou still goest the wrong way. I'm leaving!\"");
		UcSay;
		UI_remove_from_party_27(0xFFD4);
		Func097F(0xFFD4, "@Fool!@", 0x0000);
		Func0861();
		UI_revert_schedule_B4(0xFFD4);
		UI_run_schedule_B7(0xFFD4);
		gflags[01E7] = false;
		abrt();
	labelFunc042C_0C05:
		goto labelFunc042C_0C29;
	labelFunc042C_0C08:
		var000E = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x042C], 0x0032);
		gflags[01E7] = false;
	labelFunc042C_0C29:
		if(!(var0013 == 0x0001)) goto labelFunc042C_0C9F;
		var000E = UI_get_npc_object_23(0xFEF0);
		if(!var000E) goto labelFunc042C_0C57;
		UI_set_polymorph_B3(var000E, 0x01F5);
		UI_set_npc_id_BD(var000E, 0x0000);
	labelFunc042C_0C57:
		var000E = UI_get_npc_object_23(0xFF80);
		if(!var000E) goto labelFunc042C_0C7B;
		UI_set_polymorph_B3(var000E, 0x01F5);
		UI_set_npc_id_BD(var000E, 0x0000);
	labelFunc042C_0C7B:
		var000E = UI_get_npc_object_23(0xFF81);
		if(!var000E) goto labelFunc042C_0C9F;
		UI_set_polymorph_B3(var000E, 0x01F5);
		UI_set_npc_id_BD(var000E, 0x0000);
	labelFunc042C_0C9F:
		if(!(var0013 == 0x0002)) goto labelFunc042C_0D6D;
		UI_set_polymorph_B3(0xFEF0, 0x0373);
		UI_set_polymorph_B3(0xFF80, 0x01CA);
		UI_set_polymorph_B3(0xFF81, 0x0325);
		UI_show_npc_face0_05(0xFFD4, 0x0000);
		UcMessage("\"Gloat if thou wilt! Even if thou slayest me here thou hast not truly defeated me!\"");
		UcSay;
		UcMessage("\"Even as we speak, Batlin is opening the Wall of Lights in the next room! With the Guardian's help he and I shall meet in the Eternal Void to conquer new realms together!\"");
		UcSay;
		UcMessage("\"Batlin! Guardian! I await thee in the Void!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0014 = UI_find_nearby_41(item, 0x0300, 0x003C, 0x0000);
		enum();
	labelFunc042C_0CF3:
		for (var0017 in var0014 with var0015 to var0016 atend labelFunc042C_0D11);
		var0005 = UI_get_object_position_20(var0017);
		Func0971(var0017);
		goto labelFunc042C_0CF3;
	labelFunc042C_0D11:
		var000E = 0x0000;
		var0018 = UI_create_new_object_2C(0x02CB);
		if(!var0018) goto labelFunc042C_0D50;
		UI_set_item_frame_1B(var0018, 0x0000);
		var000E = UI_set_item_quality_1D(var0018, 0x0021);
		UI_clear_item_flag_A5(var0018, 0x0012);
		var000E = UI_give_last_created_42(item);
	labelFunc042C_0D50:
		if(!var000E) goto labelFunc042C_0D6D;
		UI_clear_item_flag_A5(0xFFD4, 0x001D);
		UI_reduce_health_87(0xFFD4, 0x0032, 0x0000);
	labelFunc042C_0D6D:
		if(!(event == 0x0007)) goto labelFunc042C_0F80;
		if(!gflags[024E]) goto labelFunc042C_0E39;
		var0019 = UI_get_item_flag_A3(0xFEF0, 0x0004);
		var001A = UI_get_item_flag_A3(0xFF80, 0x0004);
		var001B = UI_get_item_flag_A3(0xFF81, 0x0004);
		if(!(var0019 && (var001A && var001B))) goto labelFunc042C_0DEC;
		if(!(UI_get_npc_id_BC(0xFFD4) == 0x0001)) goto labelFunc042C_0DE9;
		UI_set_npc_id_BD(0xFFD4, 0x0002);
		var001C = UI_get_npc_object_23(0xFFD4);
		var000E = UI_delayed_execute_usecode_array_02(var001C, [0x23, 0x55, 0x042C], 0x0019);
	labelFunc042C_0DE9:
		goto labelFunc042C_0E36;
	labelFunc042C_0DEC:
		var001D = UI_get_party_list_2B();
		var001E = UI_die_roll_17(0x0001, Func0977(var001D));
		var001F = var001D[var001E];
		var000E = UI_projectile_effect_4F(item, var001F, 0x0276);
		UI_obj_sprite_effect_91(var001F, 0x0021, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc042C_0E36:
		goto labelFunc042C_0F80;
	labelFunc042C_0E39:
		if(!gflags[01E8]) goto labelFunc042C_0E40;
		abrt();
	labelFunc042C_0E40:
		var0020 = Func097D(0xFFD4, 0x0001, 0x0128, 0xFE99, 0x0002);
		var0021 = Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0x0002);
		var0022 = Func097D(0xFE9B, 0x0001, 0x0281, 0x0075, 0x0003);
		if(!var0020) goto labelFunc042C_0F80;
		var0023 = UI_get_oppressor_5C(0xFFD4);
		if(!UI_get_item_flag_A3(var0023, 0x0006)) goto labelFunc042C_0EB1;
		UI_show_npc_face0_05(0xFFD4, 0x0000);
		UcMessage("\"Thou shalt not find me such easy prey, mighty Avatar!\"");
		UcSay;
		UcMessage("\"When thou dost least expect it, thou shalt find me a worthy opponent!\"");
		UcSay;
		goto labelFunc042C_0EBF;
	labelFunc042C_0EB1:
		UI_show_npc_face0_05(0xFFD4, 0x0000);
		UcMessage("\"I must retreat to the safety of the Sleeping Bull. Do not worry -- we shall meet again, Avatar!\"");
		UcSay;
	labelFunc042C_0EBF:
		UI_remove_npc_face0_07();
		Func097F(0xFFD4, "@We shall meet again!@", 0x0000);
		var0005 = UI_get_object_position_20(0xFFD4);
	labelFunc042C_0ED9:
		if(!(var0005[0x0003] > 0x0000)) goto labelFunc042C_0F19;
		var0005[0x0001] = (var0005[0x0001] - 0x0001);
		var0005[0x0002] = (var0005[0x0002] - 0x0001);
		var0005[0x0003] = (var0005[0x0003] - 0x0002);
		goto labelFunc042C_0ED9;
	labelFunc042C_0F19:
		UI_sprite_effect_68(0x0021, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!UI_get_item_flag_A3(0xFFD4, 0x0006)) goto labelFunc042C_0F6B;
		UI_remove_from_party_27(0xFFD4);
	labelFunc042C_0F6B:
		UI_remove_npc_4C(0xFFD4);
		UI_revert_schedule_B4(0xFFD4);
		UI_run_schedule_B7(0xFFD4);
	labelFunc042C_0F80:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func0942 0x942 (var var0000);
extern Func0874 0x874 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0875 0x875 ();

Func042D 0x42D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0994();
	var0004 = Func0942(Iolo);
	var0005 = Func0942(Dupre);
	var0006 = Func0942(Shamino);
	if(!(event == 0x0000)) goto labelFunc042D_00D4;
	var0007 = UI_get_random_00(0x0006);
	if(!(var0007 == 0x0001)) goto labelFunc042D_005A;
	UI_item_say_4D(0xFFD3, "@Care to fight?@");
	labelFunc042D_005A:
		if(!(var0007 == 0x0002)) goto labelFunc042D_006E;
		UI_item_say_4D(0xFFD3, "@Move aside!@");
	labelFunc042D_006E:
		if(!(var0007 == 0x0003)) goto labelFunc042D_0082;
		UI_item_say_4D(0xFFD3, "@I need a drink!@");
	labelFunc042D_0082:
		if(!(var0007 == 0x0004)) goto labelFunc042D_0096;
		UI_item_say_4D(0xFFD3, "@Where are the women?@");
	labelFunc042D_0096:
		if(!(var0007 == 0x0005)) goto labelFunc042D_00C0;
		if(!Func0942(0xFFDA)) goto labelFunc042D_00B6;
		UI_item_say_4D(0xFFD3, "@Argus, thou art a coward!@");
		goto labelFunc042D_00C0;
	labelFunc042D_00B6:
		UI_item_say_4D(0xFFD3, "@I'm bored!@");
	labelFunc042D_00C0:
		if(!(var0007 == 0x0006)) goto labelFunc042D_00D4;
		UI_item_say_4D(0xFFD3, "@My sword wants blood!@");
	labelFunc042D_00D4:
		if(!((event == 0x0002) && (!UI_get_item_flag_A3(0xFFD3, 0x0004)))) goto labelFunc042D_0148;
		var0008 = UI_set_npc_prop_29(0xFFD3, 0x0003, 0x000A);
		UI_show_npc_face0_05(0xFFD3, 0x0000);
		UcMessage("\"I was a fool to join with thee, Avatar! Now I am to lose my life in this foolish quest.\"");
		UcSay;
		UI_remove_from_party_27(0xFFD3);
		gflags[01E2] = true;
		Func0874();
		UcMessage("\"I am leaving -- do not try to stop me!\"");
		UcSay;
		Func097F(0xFFD3, "@Farewell!@", 0x0000);
		UI_set_attack_mode_59(0xFFD3, 0x0007);
		UI_set_schedule_type_25(0xFFD3, 0x0014);
		Func09AC(0xFFD3, Dupre, 0x0000, 0x000C);
		abrt();
	labelFunc042D_0148:
		if(!(event == 0x0007)) goto labelFunc042D_01A4;
		if(!UI_get_item_flag_A3(0xFFD3, 0x001D)) goto labelFunc042D_01A4;
		UI_clear_item_flag_A5(0xFFD3, 0x001D);
		var0008 = UI_set_npc_prop_29(0xFFD3, 0x0003, 0x000A);
		UI_set_attack_mode_59(0xFFD3, 0x0007);
		Func097F(0xFFD3, "@I am dying!@", 0x0000);
		var0008 = UI_delayed_execute_usecode_array_02(0xFFD3, [0x23, 0x55, 0x042D], 0x0007);
	labelFunc042D_01A4:
		if(!(event == 0x0001)) goto labelFunc042D_01D2;
		UI_item_say_4D(0xFE9C, "@Well met, Knight!@");
		0xFFD3;
		calle();
		Func097F(0xFFD3, "@Greetings!@", 0x0005);
		UI_set_schedule_type_25(0xFFD3, 0x0003);
	labelFunc042D_01D2:
		if(!(event == 0x0009)) goto labelFunc042D_0762;
		UI_run_schedule_B7(0xFFD3);
		UI_clear_item_say_4E(0xFFD3);
		UI_show_npc_face0_05(0xFFD3, 0x0000);
		if(!UI_get_item_flag_A3(0xFFD3, 0x0006)) goto labelFunc042D_0213;
		UI_set_schedule_type_25(0xFFD3, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc042D_021A;
	labelFunc042D_0213:
		UI_run_schedule_B7(0xFFD3);
	labelFunc042D_021A:
		var0009 = UI_get_item_flag_A3(0xFFD3, 0x001C);
		if(!(!UI_get_item_flag_A3(0xFFD3, 0x0006))) goto labelFunc042D_023F;
		UI_run_schedule_B7(0xFFD3);
		goto labelFunc042D_0250;
	labelFunc042D_023F:
		UI_set_schedule_type_25(0xFFD3, 0x001F);
		UI_add_answer_0C("leave");
	labelFunc042D_0250:
		if(!((gflags[01E2] || gflags[01E3]) && (gflags[0016] && UI_get_cont_items_33(0xFFD3, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc042D_0276;
		UI_add_answer_0C("return my belongings");
	labelFunc042D_0276:
		if(!(gflags[0004] == true)) goto labelFunc042D_033F;
		if(!gflags[01E1]) goto labelFunc042D_02A6;
		if(!UI_get_item_flag_A3(0xFFD3, 0x0006)) goto labelFunc042D_0298;
		UcMessage("\"I am ready to aid thee. Thou couldst have chosen no better companion than myself!\"");
		UcSay;
		goto labelFunc042D_02A3;
	labelFunc042D_0298:
		UcMessage("\"Why dost thou trouble me now? Canst thou not see that I am very busy...\"");
		UcSay;
		UI_add_answer_0C("join");
	labelFunc042D_02A3:
		goto labelFunc042D_033C;
	labelFunc042D_02A6:
		UcMessage("\"Well met, Avatar!\"");
		UcSay;
		UcMessage("\"Hath vengeance been exacted upon Batlin for his evil deeds?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042D_02D0;
		UcMessage("\"Marvelous! The world will be a better place!\"");
		UcSay;
		if(!(gflags[003E] == true)) goto labelFunc042D_02C9;
		UcMessage("\"Thou art truly worthy of thy Knighthood!\"");
		UcSay;
		goto labelFunc042D_02CD;
	labelFunc042D_02C9:
		UcMessage("\"Thou art worthy of Knighthood!\"");
		UcSay;
	labelFunc042D_02CD:
		goto labelFunc042D_02EB;
	labelFunc042D_02D0:
		UcMessage("\"Then I must continue to seek him.\"");
		UcSay;
		Func097F(0xFFD3, "@Batlin must die!@", 0x0000);
		UI_set_schedule_type_25(0xFFD3, 0x0014);
		abrt();
	labelFunc042D_02EB:
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) < 0x0005)) goto labelFunc042D_0334;
		UcMessage("\"I am now without a cause to champion. I see that thou art without thy companions. If thou wishest, I will join thee.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042D_032D;
		UcMessage("\"Together, none can stand in our way!\"");
		UcSay;
		UI_add_to_party_26(0xFFD3);
		gflags[0016] = true;
		UI_set_item_flag_A4(0xFFD3, 0x001D);
		UI_add_answer_0C("leave");
		gflags[01E1] = true;
		goto labelFunc042D_0331;
	labelFunc042D_032D:
		UcMessage("\"Very well. Perhaps I shall journey to Monitor and see what hath transpired there.\"");
		UcSay;
	labelFunc042D_0331:
		goto labelFunc042D_033C;
	labelFunc042D_0334:
		UcMessage("\"Thou hast more than enough companions to protect thee!\"");
		UcSay;
		UcMessage("\"Look for me in Monitor when thou dost truly need mine excellent skills. Perhaps I will aid thee then.");
		UcSay;
	labelFunc042D_033C:
		goto labelFunc042D_0369;
	labelFunc042D_033F:
		if(!(var0009 == false)) goto labelFunc042D_0365;
		if(!(gflags[003E] == true)) goto labelFunc042D_035A;
		UcMessage("\"Ah, I see that thou art a Knight of Monitor!\"");
		UcSay;
		UcMessage("\"Although I do not know thee, I am certain that thou knowest me!\"");
		UcSay;
		goto labelFunc042D_0362;
	labelFunc042D_035A:
		UcMessage("\"I do not recall having met thee before...\"");
		UcSay;
		UcMessage("\"But I am certain that thou hast heard of me!\"");
		UcSay;
	labelFunc042D_0362:
		goto labelFunc042D_0369;
	labelFunc042D_0365:
		UcMessage("\"Art thou not honored? We meet again...\"");
		UcSay;
	labelFunc042D_0369:
		UI_add_answer_0C(["name", "duties", "bye"]);
		if(!(gflags[0004] == true)) goto labelFunc042D_0388;
		UI_add_answer_0C("train");
	labelFunc042D_0388:
		UcAsk;
		cmps("return my belongings");
		UI_remove_answer_0D("return my belongings");
		UcMessage("\"Art thou jesting? They belong to me now! I gave thee thy chance when I left. If thou still wantest them, thou wilt have to take them from me!!\"");
		UcSay;
		UI_set_alignment_4A(0xFFD3, 0x0003);
		UI_clear_item_say_4E(0xFFD3);
		Func097F(0xFFD3, "@They are mine!@", 0x0000);
		abrt();
	labelFunc042D_03BC:
		cmps("join");
		UI_remove_answer_0D("join");
		if(!gflags[01E2]) goto labelFunc042D_03E2;
		UcMessage("\"Join thee? Why, thou art incompetent as a battle leader -- I was nearly killed the last time I journeyed with thee!\"");
		UcSay;
		UcMessage("\"Thou couldst not give me enough coins to join with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		goto labelFunc042D_0429;
	labelFunc042D_03E2:
		if(!gflags[01E3]) goto labelFunc042D_03F3;
		UcMessage("\"Join thee now? When I was not good enough to continue with thee before? I think not!\"");
		UcSay;
		UcMessage("\"One must have his pride, or be merely a worm...\"");
		UcSay;
		goto labelFunc042D_0429;
	labelFunc042D_03F3:
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0005)) goto labelFunc042D_0409;
		UcMessage("\"But thou hast all of these other companions! Knight Wilfred is not one to join a crowd...\"");
		UcSay;
		goto labelFunc042D_0429;
	labelFunc042D_0409:
		UcMessage("\"I can see that thou dost need a strong arm like myself. Since it is thy wish, I shall come with thee.\"");
		UcSay;
		UI_add_to_party_26(0xFFD3);
		gflags[0016] = true;
		UI_set_item_flag_A4(0xFFD3, 0x001D);
		UI_add_answer_0C("leave");
	labelFunc042D_0429:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UcMessage("\"What! Dost thou think me some strumpet, to be cast off at the first excuse? I do not agree to leave.\"");
		UcSay;
		var000A = Func0956(["insist", "give in"]);
		if(!(var000A == "insist")) goto labelFunc042D_04D7;
		UcMessage("\"Damn thee, Avatar!\"");
		UcSay;
		UI_remove_from_party_27(0xFFD3);
		Func0874();
		gflags[01E3] = true;
		UI_clear_item_flag_A5(0xFFD3, 0x001D);
		Func097F(0xFFD3, "@Damn thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFD3, 0x0014);
		UI_set_new_schedules_B6(0xFFD3, [0x0000, 0x0003, 0x0004, 0x0005, 0x0007], [0x000E, 0x0005, 0x0003, 0x000B, 0x0005], [0x0516, 0x08F7, 0x04F7, 0x08CC, 0x050D, 0x08B6, 0x0516, 0x08A2, 0x04F7, 0x08CC]);
		abrt();
		goto labelFunc042D_04DB;
	labelFunc042D_04D7:
		UcMessage("\"Thou couldst not succeed without me!\"");
		UcSay;
	labelFunc042D_04DB:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"What! Thou hast not heard of me?\"");
		UcSay;
		UcMessage("\"Where hast thou been all thy life, the frozen north?\"");
		UcSay;
		UcMessage("\"I am Wilfred, Knight of the Bear Command -- formerly of Sleeping Bull Inn.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFD3, 0x001C);
		UI_add_answer_0C("Sleeping Bull");
	labelFunc042D_0507:
		cmps("Sleeping Bull");
		UI_remove_answer_0D("Sleeping Bull");
		UcMessage("\"Well, if thou art so rude to ask...\"");
		UcSay;
		var000B = Func0992(0x0001, "@Thou art the rude one!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Devra and Angus, proprietors of the inn, are my parents. I was born here.\"");
		UcSay;
	labelFunc042D_0535:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"As thou canst see... I am a Knight of Monitor.\"");
		UcSay;
		UcMessage("\"I am currently seeking the murderer of my father.\"");
		UcSay;
		UI_add_answer_0C("murderer");
	labelFunc042D_0553:
		cmps("murderer");
		UI_remove_answer_0D("murderer");
		UcMessage("\"He disappeared some time ago, and is presumed dead. I have been seeking clues since I was notified...\"");
		UcSay;
		UcMessage("\"Unlike my brother, Argus, who came running home to take over the inn.\"");
		UcSay;
		UI_add_answer_0C(["clues", "Argus"]);
	labelFunc042D_0577:
		cmps("clues");
		UI_remove_answer_0D("clues");
		UcMessage("\"Why should I tell thee what I have learned? Thou mayest well be the murderer...\"");
		UcSay;
		if(!(var0005 == true)) goto labelFunc042D_05AB;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Retract thy words, or eat them! Thou art speaking about the Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc042D_05AB:
		if(!(var0004 == true)) goto labelFunc042D_05CC;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Take the wind out of this egotistical dog's sails, Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc042D_05CC:
		if(!(var0006 == true)) goto labelFunc042D_05ED;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Thou dost tread on dangerous ground with such accusations...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc042D_05ED:
		UcMessage("\"Perhaps I was too hasty, ");
		UcMessage(var0000);
		UcMessage(". But I would see my father avenged.\"");
		UcSay;
		UcMessage("\"If thou art truly searching for my father's killer, then I will tell thee what I have learned.\"");
		UcSay;
		UI_add_answer_0C("learned");
	labelFunc042D_0602:
		cmps("learned");
		UI_remove_answer_0D("learned");
		UcMessage("\"Mother mentioned that a guest -- a mage by the name of Batlin -- also disappeared the same night father did. I know for a fact that Angus hated mages and would never have gone anywhere with one willingly... or alive!\"");
		UcSay;
		UcMessage("\"The name Batlin stirred something in my brain, so I asked around Monitor before I left. And I discovered some very interesting things indeed.\"");
		UcSay;
		UI_add_answer_0C("interesting");
	labelFunc042D_0620:
		cmps("interesting");
		UI_remove_answer_0D("interesting");
		UcMessage("\"Batlin came to Monitor some time ago. He was accompanied by several unsavory companions -- one was a huge hooded man, like the one that mother mentioned in her letter.\"");
		UcSay;
		UcMessage("\"This odd party came asking about the Serpent ruins. The mage was unusually interested in anything to do with the Serpent people.\"");
		UcSay;
		UcMessage("\"And... After Batlin and his henchmen left Monitor, it was discovered that a valuable Serpent relic was stolen from Andral, the sculptor.\"");
		UcSay;
		UI_add_answer_0C(["henchmen", "relic"]);
	labelFunc042D_0648:
		cmps("henchmen");
		UI_remove_answer_0D("henchmen");
		UcMessage("\"There were three with him, so I was told.\"");
		UcSay;
		UcMessage("\"One was a pirate, by his looks, with an unearthly white eye.\"");
		UcSay;
		UcMessage("\"One was a dark-skinned fighter, very strong but seemingly lacking in wit.\"");
		UcSay;
		UcMessage("\"And the other, as I have said, was a tall hooded man -- No one recalls hearing him speak at all. So perhaps he is mute.\"");
		UcSay;
	labelFunc042D_0667:
		cmps("relic");
		UI_remove_answer_0D("relic");
		UcMessage("\"Though Andral is a Pikeman, I still cannot understand the interest he places in pieces of stone...\"");
		UcSay;
		UcMessage("\"He was the one that told me a carved blackrock serpent was missing soon after the mage left. Apparently it was a family heirloom or something.\"");
		UcSay;
	labelFunc042D_067E:
		cmps("Argus");
		UI_remove_answer_0D("Argus");
		UcMessage("\"Thou shouldst say cowardly cur, instead!\"");
		UcSay;
		UcMessage("\"He was so glad of an excuse to flee his accusers in Monitor that he ran all the way to the inn when mother notified us of father's disappearance!\"");
		UcSay;
		UI_add_answer_0C("accusers");
	labelFunc042D_069C:
		cmps("accusers");
		UI_remove_answer_0D("accusers");
		UcMessage("\"There are many who say that Argus took bribes to look aside while illegal activities took place.\"");
		UcSay;
		UcMessage("\"When Argus heard Flessar repeating these things, Argus called him into a selfish duel and killed him!\"");
		UcSay;
		UcMessage("\"Of course, like the pack of dogs that they are, the Wolves declared it an accident. And their investigation of the bribes was more for show than anything.\"");
		UcSay;
		gflags[01D9] = true;
		UI_add_answer_0C(["Flessar", "Wolves"]);
	labelFunc042D_06C8:
		cmps("Flessar");
		UI_remove_answer_0D("Flessar");
		UcMessage("\"Flessar was a Knight of the Leopard Command. He was Templar's friend.\"");
		UcSay;
		UcMessage("\"He was also not nearly as skilled as my... brother, being many years Argus' junior.\"");
		UcSay;
		UI_add_answer_0C("Templar");
	labelFunc042D_06E6:
		cmps("Templar");
		UI_remove_answer_0D("Templar");
		UcMessage("\"Templar is a Knight of the Bear Command, and my friend.\"");
		UcSay;
		UcMessage("\"Although his friendship with Flessar was unusual, in that they were from different Commands, it was inevitable that young Flessar would look to one of Monitor's best swordsmen for guidance.\"");
		UcSay;
		UcMessage("\"Alas, Templar's skill could not help young Flessar on the dueling field.\"");
		UcSay;
	labelFunc042D_0701:
		cmps("Wolves");
		UI_remove_answer_0D("Wolves");
		UcMessage("\"Argus is... or was... a member of the Wolf Command.\"");
		UcSay;
		UcMessage("\"It doth not take much more than a glance at their commander to see what a worthless Command they are.\"");
		UcSay;
		UcMessage("\"Brendann's womanizing speaks well enough for the character of the rank and file of his troops.\"");
		UcSay;
		UcMessage("\"And that includes Argus.\"");
		UcSay;
	labelFunc042D_0720:
		cmps("train");
		Func0875();
	labelFunc042D_072B:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		Func097F(0xFFD3, "@Indeed.@", 0x0005);
		Func097F(Iolo, "@What a butthead!@", 0x0007);
		goto labelFunc042D_0761;
	labelFunc042D_075E:
		goto labelFunc042D_0388;
	labelFunc042D_0761:
		end_conv();
	labelFunc042D_0762:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0801 0x801 ();
extern var Func08AC 0x8AC (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func0803 0x803 ();
extern var Func0955 0x955 ();
extern Func0802 0x802 ();
extern var Func0956 0x956 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func042E 0x42E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = false;
	if(!(UI_get_schedule_type_24(0xFFD2) == 0x0013)) goto labelFunc042E_0016;
	var0000 = true;
	labelFunc042E_0016:
		var0001 = Func0954();
		var0002 = UI_is_pc_female_6F();
		var0003 = Func0953();
		var0004 = Func0942(Iolo);
		var0005 = Func0942(Shamino);
		var0006 = Func0942(Dupre);
		var0007 = Func0942(0xFFD1);
		var0008 = false;
		var0009 = false;
		var000A = "";
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc042E_0073;
		UI_set_schedule_type_25(0xFFD2, 0x000C);
	labelFunc042E_0073:
		if(!(event == 0x0002)) goto labelFunc042E_00D6;
		if(!(gflags[01A8] || (!gflags[0171]))) goto labelFunc042E_0087;
		abrt();
	labelFunc042E_0087:
		var000B = UI_approach_avatar_BF(0xFFD2, 0x0078, 0x0028);
		UI_set_schedule_type_25(0xFFD2, 0x0003);
		var000B = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0002), [0x23, 0x55, 0x042E], 0x0032);
		var000B = ("" & ("@Psst!@" & "@Avatar...@"));
		Func094F(0xFFD2, var000B);
		abrt();
	labelFunc042E_00D6:
		if(!(event == 0x0007)) goto labelFunc042E_00F0;
		var000B = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc042E_00F0:
		if(!(event == 0x0001)) goto labelFunc042E_0126;
		UI_item_say_4D(0xFE9C, "@Might I speak with thee?@");
		0xFFD2;
		calle();
		Func097F(0xFFD2, (("@Certainly, " + var0001) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFD2, 0x0003);
	labelFunc042E_0126:
		if(!(event == 0x0009)) goto labelFunc042E_0C68;
		UI_run_schedule_B7(0xFFD2);
		var0000 = false;
		if(!(UI_get_schedule_type_24(0xFFD2) == 0x0013)) goto labelFunc042E_014B;
		var0000 = true;
	labelFunc042E_014B:
		if(!(UI_get_schedule_type_24(0xFFD2) == 0x0003)) goto labelFunc042E_0163;
		UI_set_schedule_type_25(0xFFD2, 0x0014);
	labelFunc042E_0163:
		UI_clear_item_say_4E(0xFFD2);
		UI_show_npc_face0_05(0xFFD2, 0x0000);
		var000C = UI_get_item_flag_A3(0xFFD2, 0x001C);
		if(!(gflags[0171] && (gflags[01B3] && (!gflags[01A8])))) goto labelFunc042E_0217;
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		Func0801();
		var000D = Func08AC(false);
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", I have discovered where thy companion ");
		UcMessage(var000D);
		UcMessage(" is being held. He is directly beneath the Temple, in a locked cell.\"");
		UcSay;
		UcMessage("\"One of the Temple guards is sympathetic to our Cause. He hath given me this key, which will lead thee into the hidden parts of the Temple.\"");
		UcSay;
		UcMessage("\"If thou dost explore the Temple tonight, I can arrange for the guards to be absent. Now, I must go, before Zulith doth see me speaking with thee!\"");
		UcSay;
		var000B = Func099B(0xFE9C, 0x0001, 0x0281, 0x00B4, 0x0001, 0x0000, true);
		gflags[01A8] = true;
		Func097F(0xFFD2, "@Good fortune!@", 0x0000);
		if(!UI_npc_nearby_3A(0xFFC3)) goto labelFunc042E_020C;
		var000B = ("" & ("@Alyssand!@" & "@What art thou doing?@"));
		Func094F(0xFFC3, var000B);
	labelFunc042E_020C:
		UI_set_schedule_type_25(0xFFD2, 0x0014);
		abrt();
	labelFunc042E_0217:
		if(!(var000C == false)) goto labelFunc042E_023F;
		if(!(gflags[003E] == true)) goto labelFunc042E_022E;
		UcMessage("\"'Tis always an honor to serve the Pikemen.\" *\"I am Alyssand, daughter of Delin. I am a weaver by trade.\"");
		UcSay;
		goto labelFunc042E_0232;
	labelFunc042E_022E:
		UcMessage("\"I am Alyssand, daughter of Delin. I am a weaver by trade.\" *\"How might I be of assistance?\"");
		UcSay;
	labelFunc042E_0232:
		UI_set_item_flag_A4(0xFFD2, 0x001C);
		goto labelFunc042E_027F;
	labelFunc042E_023F:
		if(!(gflags[01B2] && (!gflags[01B3]))) goto labelFunc042E_0275;
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		Func0801();
		UcMessage("\"Again we meet, ");
		UcMessage(var0003);
		UcMessage(". Perhaps by now, thine experiences have given thee reason to change thine answer...\"");
		UcSay;
		UcMessage("\"We need thee. The Cause needs thee!\"");
		UcSay;
		UI_add_answer_0C("answer");
		goto labelFunc042E_027F;
	labelFunc042E_0275:
		UcMessage("\"'Tis a pleasure to see thee again, ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
	labelFunc042E_027F:
		if(!(gflags[019E] && (!gflags[007C]))) goto labelFunc042E_0291;
		UI_add_answer_0C("fishnet stockings");
	labelFunc042E_0291:
		if(!(gflags[018F] && (!(gflags[0170] || gflags[0172])))) goto labelFunc042E_02A7;
		UI_add_answer_0C("Zulith");
	labelFunc042E_02A7:
		if(!(gflags[0192] && (!gflags[028D]))) goto labelFunc042E_02B9;
		UI_add_answer_0C("Moonsilk stockings");
	labelFunc042E_02B9:
		if(!(gflags[014C] && (!gflags[01B2]))) goto labelFunc042E_02CB;
		UI_add_answer_0C("engagement ring");
	labelFunc042E_02CB:
		if(!gflags[01B3]) goto labelFunc042E_02D8;
		UI_add_answer_0C("the Cause");
	labelFunc042E_02D8:
		if(!(gflags[01B2] && (!gflags[01A4]))) goto labelFunc042E_02EA;
		UI_add_answer_0C("gauntlets");
	labelFunc042E_02EA:
		if(!(var0000 == true)) goto labelFunc042E_02F9;
		UI_add_answer_0C("provisions");
	labelFunc042E_02F9:
		UI_add_answer_0C(["storms", "Goblins", "bye"]);
	labelFunc042E_0309:
		UcAsk;
		cmps("provisions");
		if(!(UI_get_schedule_type_24(0xFFD2) == 0x0013)) goto labelFunc042E_032C;
		UcMessage("\"I help father with the shop when he is... indisposed. What dost thou wish to purchase?\"");
		UcSay;
		Func0803();
		goto labelFunc042E_0330;
	labelFunc042E_032C:
		UcMessage("\"I will gladly sell to thee if thou wilt come to my father's shop when we are open for business.\"");
		UcSay;
	labelFunc042E_0330:
		UI_remove_answer_0D("provisions");
	labelFunc042E_0337:
		cmps("storms");
		UcMessage("\"The storms have not been kind to us, ");
		UcMessage(var0001);
		UcMessage(". Without our fleet, Fawn cannot hope to survive for long.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["Fawn", "fleet"]);
	labelFunc042E_035D:
		cmps("Fawn");
		UcMessage("\"Fawn, the city of Beauty. Fawn, the city that lost Love in vanity and the pursuit of power.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc042E_037F;
		UcMessage("\"But there is fresh hope in Fawn, for Lady Yelinda doth rule for herself now. It is a new dawning for Beauty and Love.\"");
		UcSay;
		goto labelFunc042E_0389;
	labelFunc042E_037F:
		UcMessage("\"Beauty nourisheth the senses, ");
		UcMessage(var0001);
		UcMessage(". But Love nourisheth the soul. The soul of Fawn withered long ago...\"");
		UcSay;
	labelFunc042E_0389:
		UI_remove_answer_0D("Fawn");
		UI_add_answer_0C(["Beauty", "Love"]);
	labelFunc042E_039D:
		cmps("Beauty");
		UI_remove_answer_0D("Beauty");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc042E_03C2;
		UcMessage("\"The consequences of the trial of thy friend hath been far-reaching. I think that the people of Fawn doth again see Beauty for the light divine that she can be.\"");
		UcSay;
		goto labelFunc042E_03C6;
	labelFunc042E_03C2:
		UcMessage("\"The people of Fawn are content to let the world end... As long as it doth not mar their Beautiful view of the dying embers!\"");
		UcSay;
	labelFunc042E_03C6:
		cmps("Love");
		UcMessage("\"Love and Beauty were once regarded as aspects of the same entity. Whoever loved was beautiful. Whoever nurtured the beauty of truth was loved.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc042E_03E8;
		UcMessage("\"With the aid of Lady Yelinda, those ways shall be restored to Fawn. These are such glorious times...\"");
		UcSay;
		goto labelFunc042E_03EC;
	labelFunc042E_03E8:
		UcMessage("\"Now the two are sundered, and Fawn cares for no one but herself.\"");
		UcSay;
	labelFunc042E_03EC:
		UI_remove_answer_0D("Love");
	labelFunc042E_03F3:
		cmps("fleet");
		UcMessage("\"The storms stripped us of our ships, one by one.\"");
		UcSay;
		UcMessage("\"Some were plucked away, even as we watched. Others left harbor and never returned. And Beauty is cold comfort to those who have lost their loved ones.\"");
		UcSay;
		UcMessage("\"Thou hast not seen the storms hit, and watched as something vanished before thy very eyes?\"");
		UcSay;
		UcMessage("\"Then count thy blessings, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_remove_answer_0D("fleet");
	labelFunc042E_0418:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"The Goblins have grown bold of late. They have often come to hurl themselves upon our gate. Thankfully, we have held fast so far.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc042E_0441;
		UcMessage("\"Thankfully, Leon and his followers have been allowed to enter the city once again. I shall not fear for their safety now.\"");
		UcSay;
		goto labelFunc042E_045C;
	labelFunc042E_0441:
		UcMessage("\"Their attacks bring fear in me for Leon and his companions. Lady Yelinda hath forbidden them entrance into the city, even if 'twere certain death to remain outside.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Leon", "companions", "Lady Yelinda", "change subject"]);
	labelFunc042E_045C:
		cmps("change subject");
		UI_pop_answers_0F();
		if(!(var000A == "")) goto labelFunc042E_0476;
		UcMessage("\"What shall we speak of, then?\"");
		UcSay;
	labelFunc042E_0476:
		if(!(var000A == "Cause")) goto labelFunc042E_0538;
		var000A = "";
		if(!(!gflags[01B3])) goto labelFunc042E_04A9;
		UcMessage("\"Now that I have explained it, thy duty must be evident. Wilt thou join us in this Cause?\"");
		UcSay;
		if(!Func0955()) goto labelFunc042E_04A1;
		UcMessage("\"Thy courage doth delight the soul of a weary rebel like myself.\"");
		UcSay;
		Func0802();
		goto labelFunc042E_04A9;
	labelFunc042E_04A1:
		UcMessage("\"I regret that thou wilt not aid the Cause. Nevertheless, we will not be turned from our quest to save this society.\"");
		UcSay;
		UcMessage("\"If events should change thy mind, contact me.\"");
		UcSay;
	labelFunc042E_04A9:
		if(!gflags[01B3]) goto labelFunc042E_0538;
		if(!gflags[0171]) goto labelFunc042E_052C;
		var000D = Func08AC(false);
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", I have discovered where thy companion ");
		UcMessage(var000D);
		UcMessage(" is being held. He is directly beneath the Temple, in a locked cell.\"");
		UcSay;
		UcMessage("\"One of the Temple guards is sympathetic to our Cause. He hath given me this key, which will lead thee into the hidden parts of the Temple.\"");
		UcSay;
		UcMessage("\"If thou dost explore the Temple tonight, I can arrange for the guards to be absent. Now, I must go, before Zulith doth see me speaking with thee!\"");
		UcSay;
		var000B = Func099B(0xFE9C, 0x0001, 0x0281, 0x00B4, 0x0001, 0x0000, true);
		gflags[01A8] = true;
		Func097F(0xFFD2, "@Good fortune!@", 0x0000);
		if(!UI_npc_nearby_3A(0xFFC3)) goto labelFunc042E_051E;
		var000B = ("" & ("@Alyssand!@" & "@What art thou doing?@"));
		Func094F(0xFFC3, var000B);
	labelFunc042E_051E:
		UI_set_schedule_type_25(0xFFD2, 0x0014);
		abrt();
		goto labelFunc042E_0538;
	labelFunc042E_052C:
		UcMessage("\"Be ready at any time, for one doth not know when the time to act shall arrive.\"");
		UcSay;
		UcMessage("\"We once tried to enter the Temple during the night, while Kylista was with one of her lovers... but the guards foiled our attempt.\"");
		UcSay;
		UcMessage("\"Nevertheless -- look everywhere, talk to everyone, see if thou canst find the clue that hath eluded us!\"");
		UcSay;
	labelFunc042E_0538:
		if(!(var000A == "Ring")) goto labelFunc042E_05C6;
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		var000A = "";
		UcMessage("\"One more moment of thy time, if thou wilt, ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		Func0801();
		UcMessage("\"A person like thyself, brave and adventurous, could be useful in times like these...\"");
		UcSay;
		UcMessage("\"Wouldst thou be willing to aid us in liberating this city from false traditions and evil schemes?\"");
		UcSay;
		var000B = Func0956(["yes", "no", "perhaps"]);
		if(!(var000B == "no")) goto labelFunc042E_0594;
		UcMessage("\"I regret that thou wilt not aid the Cause. Nevertheless, we will not be turned from our quest to save this society.\"");
		UcSay;
		UcMessage("\"If events should change thy mind, contact me.\"");
		UcSay;
		goto labelFunc042E_05C6;
	labelFunc042E_0594:
		if(!(var000B == "yes")) goto labelFunc042E_05A8;
		UcMessage("\"Thy thinking is more advanced than I had hoped! But surely, thou hast questions...?\"");
		UcSay;
		Func0802();
		goto labelFunc042E_05AC;
	labelFunc042E_05A8:
		UcMessage("\"If thou wilt only let me explain the concepts, I am certain that thou wilt join our Cause.\"");
		UcSay;
	labelFunc042E_05AC:
		UI_push_answers_0E();
		var000A = "Cause";
		UI_add_answer_0C(["false traditions", "evil schemes", "change subject"]);
	labelFunc042E_05C6:
		cmps("answer");
		UI_remove_answer_0D("answer");
		UcMessage("\"Do not toy with mine expectations -- hast thou reconsidered?\"");
		UcSay;
		UcMessage("\"Wouldst thou aid us in liberating this city from false traditions and evil schemes?\"");
		UcSay;
		var000B = Func0956(["yes", "no", "perhaps"]);
		if(!(var000B == "no")) goto labelFunc042E_0600;
		UcMessage("\"If events should change thy mind, contact me.\"");
		UcSay;
		goto labelFunc042E_0632;
	labelFunc042E_0600:
		if(!(var000B == "yes")) goto labelFunc042E_0614;
		UcMessage("\"I knew that thou wouldst perceive the ethicality of this Cause, given time. If thou hast questions, I shall be glad to answer them.\"");
		UcSay;
		Func0802();
		goto labelFunc042E_0618;
	labelFunc042E_0614:
		UcMessage("\"I beg thee, let me explain the concepts which propel the Cause. When thou dost understand, thou wilt surely join us...\"");
		UcSay;
	labelFunc042E_0618:
		UI_push_answers_0E();
		var000A = "Cause";
		UI_add_answer_0C(["false traditions", "evil schemes", "change subject"]);
	labelFunc042E_0632:
		cmps("the Cause");
		UI_remove_answer_0D("the Cause");
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		Func0801();
		if(!(!(gflags[0170] || gflags[0172]))) goto labelFunc042E_0675;
		UcMessage("\"Persevere, ");
		UcMessage(var0003);
		UcMessage(", for one cannot tell when the time to act shall arrive.\"");
		UcSay;
		UcMessage("\"Continue to pry secrets from the townsfolk -- sometimes, a stranger can learn more than an old friend.\"");
		UcSay;
		UcMessage("\"Go places thou art not wanted, and look for the hidden things. Surely, thou wilt find a clue.\"");
		UcSay;
		UcMessage("\"Thou must find the evidence that hath eluded us, so that Fawn can be freed!\"");
		UcSay;
	labelFunc042E_0675:
		if(!(gflags[0170] && ((!gflags[0171]) && (!gflags[0172])))) goto labelFunc042E_0691;
		UcMessage("\"I have heard that thy friend hath been taken prisoner, to be placed on trial before the Oracle.\"");
		UcSay;
		UcMessage("\"I have no faith in the truth of the Oracle, but perhaps an opportunity shall present itself to advance the Cause.\"");
		UcSay;
		UcMessage("\"Thou shouldst submit thyself to the trial, for the time being. That is mine advice.\"");
		UcSay;
	labelFunc042E_0691:
		if(!gflags[0171]) goto labelFunc042E_06ED;
		if(!(!gflags[01A6])) goto labelFunc042E_06A6;
		UcMessage("\"Why dost thou delay? Take the key that I gave thee, and enter the hidden places within the Temple.\"");
		UcSay;
		UcMessage("\"Perhaps thou canst free thy companion -- or unearth the secret of the Oracle!\"");
		UcSay;
	labelFunc042E_06A6:
		if(!(gflags[01A6] && (!(gflags[016E] || gflags[016F])))) goto labelFunc042E_06B9;
		UcMessage("\"Return to the Temple! The secret room which thou hast seen must have some influence over the Oracle.\"");
		UcSay;
	labelFunc042E_06B9:
		if(!gflags[016F]) goto labelFunc042E_06D9;
		UcMessage("\"Now let the trial resume! Kylista and her knaves shall regret the day they were born...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc042E_06D9;
		gflags[01B4] = true;
		UcMessage("\"I think I could love a man like thee, ");
		UcMessage(var0003);
		UcMessage("...\"");
		UcSay;
	labelFunc042E_06D9:
		if(!gflags[016E]) goto labelFunc042E_06ED;
		UcMessage("\"Hast thou forgotten thine allies, ");
		UcMessage(var0003);
		UcMessage("? 'Tis not enough to coerce the Oracle into freeing thy friend...\"");
		UcSay;
		UcMessage("\"Thou must find a way to make the thing denounce Kylista and the Great Captains, and overthrow this evil system!\"");
		UcSay;
	labelFunc042E_06ED:
		if(!(gflags[0170] && gflags[0172])) goto labelFunc042E_072D;
		if(!gflags[016E]) goto labelFunc042E_0712;
		UcMessage("\"The Cause is doomed, ");
		UcMessage(var0003);
		UcMessage(". I am pleased that thy friend hath been freed from jail...\"");
		UcSay;
		UcMessage("\"Yet I believe that we somehow missed the last chance to expose Kylista and her minions for the hypocrites they truly are!\"");
		UcSay;
		UcMessage("\"Thy part is done. Go thy way, continue thy quest -- we of the Cause shall struggle on without thee.\"");
		UcSay;
		goto labelFunc042E_072D;
	labelFunc042E_0712:
		UcMessage("\"The Cause is triumphant, ");
		UcMessage(var0003);
		UcMessage("! Lady Yelinda hath ended the exile of The Fellowship. The Great Captains are in disgrace, and Lady Yelinda doth rule for herself now.\"");
		UcSay;
		UcMessage("\"If there is anything I can ever do for thee, return to Fawn, and I shall aid thee.\"");
		UcSay;
		if(!gflags[01B4]) goto labelFunc042E_072D;
		UI_add_answer_0C("Kiss me.");
	labelFunc042E_072D:
		cmps("Kiss me.");
		UI_remove_answer_0D("Kiss me.");
		UcMessage("\"Um, ");
		UcMessage(var0003);
		UcMessage("... when I said that I loved thee, 'twas a moment of weakness...\"");
		UcSay;
		UcMessage("\"Surely, thou wouldst not take advantage of a girl for a few hasty words?\"");
		UcSay;
		UcMessage("\"Besides, there is so much to be done for the Cause and Lady Yelinda. I'm hopeful of becoming an advisor to the Lady! There is not time for love, not now...\"");
		UcSay;
	labelFunc042E_074E:
		cmps("false traditions");
		UI_remove_answer_0D("false traditions");
		UcMessage("\"According to legend, the Oracle was brought by our ancestors from Sosaria, our homeland. It now stands in the Temple of Beauty.\"");
		UcSay;
		UcMessage("\"Our traditions teach us that the statue is an infallible guide to Truth and Beauty.\"");
		UcSay;
		UcMessage("\"But we suspect that the legends are false.\"");
		UcSay;
		UI_add_answer_0C(["guide to Truth"]);
		if(!(!var0008)) goto labelFunc042E_0781;
		UI_add_answer_0C("We?");
	labelFunc042E_0781:
		cmps("We?");
		var0008 = true;
		UI_remove_answer_0D("We?");
		UcMessage("\"Most of the young people of the town belong to the Cause -- but they are not willing to say so publicly, for fear of exile.\"");
		UcSay;
		UcMessage("\"I am also pleased to say that Leon supports us, as do the other Fellowship members.\"");
		UcSay;
	labelFunc042E_079C:
		cmps("guide to Truth");
		UI_remove_answer_0D("guide to Truth");
		UcMessage("\"The Oracle actually speaks -- all of us have heard it. It speaks in reply to the Priestess of Beauty.\"");
		UcSay;
		UcMessage("\"The Statue of Beauty only speaks at certain times, such as during the spring festivals or when the city needs special guidance.\"");
		UcSay;
		UcMessage("\"According to tradition, it will also reply to the ruler of Fawn. However, I have never seen Lady Yelinda speak to the statue. She leaves such duties to Kylista.\"");
		UcSay;
	labelFunc042E_07B7:
		cmps("evil schemes");
		UI_remove_answer_0D("evil schemes");
		UcMessage("\"The Oracle is supposed to speak only the Truth, yet it too often parrots the words of the Priestess and the Great Captains.\"");
		UcSay;
		UcMessage("\"We do not believe that truth only serves those in power... we think that someone hath corrupted the Oracle!\"");
		UcSay;
		UI_add_answer_0C(["Priestess", "Great Captains"]);
		if(!(!var0008)) goto labelFunc042E_07E9;
		UI_add_answer_0C("We?");
	labelFunc042E_07E9:
		cmps("Priestess");
		UI_remove_answer_0D("Priestess");
		UcMessage("\"Kylista is the worst example of this pernicious doctrine of Beauty...\"");
		UcSay;
		UcMessage("\"She believes that her attractiveness marks her as superior to all others, and that her sensuality is a divine gift by which to influence men's minds.\"");
		UcSay;
		UcMessage("\"Kylista is lustful and greedy, but she is also cunning. She is very dangerous to us.\"");
		UcSay;
	labelFunc042E_0804:
		cmps("Great Captains");
		UcMessage("\"According to all of our traditions, only women are capable of ruling in Fawn -- for only women are capable of True Beauty.\"");
		UcSay;
		UcMessage("\"The highest station which a male can hope for is to serve as one of the Great Captains. These men serve as Lady Yelinda's advisors.\"");
		UcSay;
		UcMessage("\"Yet they do much more than merely advise. There are three of them -- Garth, Joth and Voldin.\"");
		UcSay;
		var0009 = true;
		UI_remove_answer_0D("Great Captains");
		UI_add_answer_0C(["Garth", "Joth", "Voldin", "Lady Yelinda"]);
	labelFunc042E_0836:
		cmps("Garth");
		UcMessage("\"Because he is the youngest of the Captains, we had hoped to find a way to persuade Garth to support our Cause.\"");
		UcSay;
		UcMessage("\"When one of us spoke with him, he claimed to be sympathetic to the Cause. Yet Garth says he is afraid to confront Voldin with our suspicions.\"");
		UcSay;
		UcMessage("\"I do not trust him...\"");
		UcSay;
		UI_remove_answer_0D("Garth");
	labelFunc042E_0851:
		cmps("Joth");
		UI_remove_answer_0D("Joth");
		UcMessage("\"The sailors trust and respect Joth. In mine heart, I cannot believe he is part of any conspiracy to control the Oracle.\"");
		UcSay;
		UcMessage("\"We thought of asking Joth to aid us, but he hath not been the same since the storms.\"");
		UcSay;
		UcMessage("\"He doth live in his memories and stare out to sea. I think he cannot stop yearning to return to sea long enough to be of much help.\"");
		UcSay;
	labelFunc042E_086C:
		cmps("Voldin");
		UcMessage("\"Voldin is the one who truly controls the Great Captains. I think he would make himself ruler of Fawn, if he could find a way.\"");
		UcSay;
		UcMessage("\"Voldin is a cruel man who secretly despises women. If there is an evil scheme, then Voldin must be the mastermind.\"");
		UcSay;
		UI_remove_answer_0D("Voldin");
	labelFunc042E_0883:
		cmps("Zulith");
		UI_remove_answer_0D("Zulith");
		UcMessage("\"That worm hath been following thee? Then he doth suspect that thou art allied with the Cause...\"");
		UcSay;
		UcMessage("\"Watch thy step, lest thou be exiled like the Fellowship folks. Without thee to help us, our Cause would be lost.\"");
		UcSay;
	labelFunc042E_089A:
		cmps("Leon");
		UcMessage("\"Thou hast not heard Leon speak? Oh, thou shouldst!\"");
		UcSay;
		UcMessage("\"He doth tell of something wonderful, wherein all people are equal and capable of independent thought. Something called The Fellowship.\"");
		UcSay;
		UcMessage("\"Thou canst find him at the camp outside the city gates.\"");
		UcSay;
		var000E = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var000E == Iolo) || ((var000E == Dupre) || (var000E == Shamino)))) goto labelFunc042E_08F9;
		var000B = ("@I had thought we had rid ourselves of that blight." & "@But it seems that it is following in Batlin's footsteps.@");
		var000E = Func0992(var000E, var000B, 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc042E_08F9:
		UI_remove_answer_0D("Leon");
		UI_add_answer_0C("Fellowship");
	labelFunc042E_0907:
		cmps("Fellowship");
		UcMessage("\"Imagine, ");
		UcMessage(var0001);
		UcMessage("! Imagine what the world would be like if only we trusted one another, worked together, and sought to earn that which we strived for!\"");
		UcSay;
		UcMessage("\"Imagine if women were not coddled or thought of as inferior! What would the world be like if we all listened to our Inner Voice?\"");
		UcSay;
		var000E = Func0992(Iolo, ("@The world would be full of frustrated fools, " + "I am sure.@"), 0x0000, false);
		if(!(var000E != 0xFE9C)) goto labelFunc042E_0988;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc042E_0981;
		var000F = var000E;
	labelFunc042E_0950:
		if(!(var000F == var000E)) goto labelFunc042E_096D;
		var000F = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc042E_0950;
	labelFunc042E_096D:
		var000F = Func0992(var000F, ("@Another one who hath fallen prey to the empty promises " + "of The Fellowship, Avatar.@"), 0x0000, false);
	labelFunc042E_0981:
		UI_set_conversation_slot_09(0x0000);
	labelFunc042E_0988:
		UI_remove_answer_0D("Fellowship");
	labelFunc042E_098F:
		cmps("companions");
		UcMessage("\"Leon's companions are the sailors that brought him here. Their names are Scots, Ruggs and Kalen.\"");
		UcSay;
		UI_remove_answer_0D("companions");
		UI_push_answers_0E();
		UI_add_answer_0C(["Scots", "Ruggs", "Kalen", "change subject"]);
	labelFunc042E_09B9:
		cmps("Scots");
		UcMessage("\"Scots is not precisely a sailor, I suppose. He is actually a cartographer.\"");
		UcSay;
		UcMessage("\"He is most often with his pens and ink, drawing intricate little lines...\"");
		UcSay;
		UI_remove_answer_0D("Scots");
		UI_add_answer_0C("lines");
	labelFunc042E_09D7:
		cmps("lines");
		UcMessage("\"I surmise all those lines make a map, I do not know. But I do not know how he could be making a map, either. He cannot go anywhere because of the storms.\"");
		UcSay;
		UI_remove_answer_0D("lines");
	labelFunc042E_09EA:
		cmps("Ruggs");
		UcMessage("\"Ruggs is a sailor, for sure. Although he seems to take well to gardening now that he's on shore.\"");
		UcSay;
		UcMessage("\"Thou canst not mistake which of the three is Ruggs. His face is hideous to behold, though he speaks fair enough.\"");
		UcSay;
		UI_remove_answer_0D("Ruggs");
	labelFunc042E_0A01:
		cmps("Kalen");
		UcMessage("\"Of the three of Leon's companions, I know the least about Kalen, and I have no desire to learn more.\"");
		UcSay;
		UcMessage("\"He always seems to be hovering about, staring at me. He never seems to be doing anything around the camp.\"");
		UcSay;
		UI_remove_answer_0D("Kalen");
	labelFunc042E_0A18:
		cmps("Lady Yelinda");
		UI_remove_answer_0D("Lady Yelinda");
		if(!var0009) goto labelFunc042E_0A3C;
		UcMessage("\"She, too, is a prisoner of Beauty! Yelinda must not strain herself, lest she mar her perfect appearance with any sign of weariness.\"");
		UcSay;
		UcMessage("\"The Great Captains therefore have usurped many of her duties, on the pretext of sparing Yelinda from tedium.\"");
		UcSay;
		UcMessage("\"I do not think the Lady to be the mindless, spineless creature which some others do. I think she is a victim of this system.\"");
		UcSay;
		goto labelFunc042E_0A44;
	labelFunc042E_0A3C:
		UcMessage("\"Lady Yelinda is the ruler of Fawn. Her word is law... Usually delivered by her little shadow, Zulith.\"");
		UcSay;
		UcMessage("\"Zulith's official title is Chancellor. But he is little more than a glorified messenger.\"");
		UcSay;
	labelFunc042E_0A44:
		cmps("fishnet stockings");
		UcMessage("\"I had not expected a stranger to know of my tiny industry. I weave the nets and sew in my father's shop.\"");
		UcSay;
		UcMessage("\"It assists me in mine attempts to keep a watchful eye on my father... He hath not been right since my mother, Elissia, died.\"");
		UcSay;
		UcMessage("\"I have few customers, but perhaps people are beginning to take an interest.\"");
		UcSay;
		UI_remove_answer_0D("fishnet stockings");
		UI_add_answer_0C("customers");
	labelFunc042E_0A66:
		cmps("customers");
		UcMessage("\"Well, to be truthful, I have only one returning customer. Flindo, a merchant from Moonshade, hath only just left here after ordering several more pair.\"");
		UcSay;
		UcMessage("\"Apparently one of the mages hath taken a liking to them. They are the only ones who could afford such luxuries now.\"");
		UcSay;
		UI_remove_answer_0D("customers");
	labelFunc042E_0A7D:
		cmps("Moonsilk stockings");
		UI_remove_answer_0D("Moonsilk stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc042E_0AC5;
		if(!var0002) goto labelFunc042E_0AB6;
		UcMessage("\"Thou art a lucky woman to possess such a fine pair of stockings!\"");
		UcSay;
		UcMessage("\"I knew that such fine work was possible. But I had never actually seen the stockings they sell in Moonshade.\"");
		UcSay;
		UcMessage("\"It doth cause me to wonder why anyone in the city of Mages would buy the rough stockings I make, when they could purchase ones so soft.\"");
		UcSay;
		goto labelFunc042E_0AC2;
	labelFunc042E_0AB6:
		UcMessage("\"Thou wilt make some woman happy with so fine a pair of stockings!\"");
		UcSay;
		UcMessage("\"I knew that such fine work was possible. But I had never actually seen the stockings they sell in Moonshade.\"");
		UcSay;
		UcMessage("\"It doth cause me to wonder why anyone in the city of Mages would buy the rough stockings I make when they could purchase ones so soft.\"");
		UcSay;
	labelFunc042E_0AC2:
		goto labelFunc042E_0ACD;
	labelFunc042E_0AC5:
		UcMessage("\"I have heard of the stockings they sell in Moonshade. So I know that such fine work is possible.\"");
		UcSay;
		UcMessage("\"Without seeing them, I cannot be sure that the stockings thou hast are from Moonshade. They could be merely homespun, like unto the ones I make...\"");
		UcSay;
	labelFunc042E_0ACD:
		cmps("engagement ring");
		var000A = "Ring";
		UI_remove_answer_0D("engagement ring");
		UcMessage("\"I had heard that thou hadst been asking after me. That thou didst have an interest in my missing engagement ring... Or perhaps in the gauntlets that replaced it.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc042E_0B02;
		UcMessage("\"That is it, indeed. I thank thee for telling me... But thou mayest keep it if thou wishest.\"");
		UcSay;
		goto labelFunc042E_0B06;
	labelFunc042E_0B02:
		UcMessage("\"I thank thee for telling me that thou hast seen it... But if thou dost have it, thou mayest keep it.\"");
		UcSay;
	labelFunc042E_0B06:
		gflags[01B2] = true;
		UI_set_new_schedules_B6(0xFFC3, [0x0000, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x0009, 0x0009, 0x0009, 0x0009, 0x0009, 0x0009, 0x0009], [0x0408, 0x0778, 0x03A8, 0x0728, 0x03A8, 0x06C8, 0x0448, 0x06C4, 0x0408, 0x0788, 0x03A8, 0x0728, 0x0448, 0x06C4]);
		var000B = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043D], 0x0064);
		gflags[0291] = true;
		UI_push_answers_0E();
		UI_add_answer_0C(["gauntlets", "Keep it?", "change subject"]);
	labelFunc042E_0BA3:
		cmps("Keep it?");
		UI_remove_answer_0D("Keep it?");
		UcMessage("\"If thou wouldst wish the honest truth, I do not think that my beloved Keth will ever come back from wherever that storm took him.\"");
		UcSay;
		UcMessage("\"Therefore, this ring hath only melancholy memories for me. This jewelry hath become bitter to me.\"");
		UcSay;
		UI_add_answer_0C("Keth");
	labelFunc042E_0BC1:
		cmps("gauntlets");
		UI_remove_answer_0D("gauntlets");
		if(!(!gflags[01A4])) goto labelFunc042E_0C14;
		UcMessage("\"I assume that the gauntlets are thine... They are clearly meant for someone more adventurous than a mere weaver.\"");
		UcSay;
		UcMessage("\"Wouldst thou like to have them back?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042E_0C09;
		UcMessage("\"Then thou shalt have them. Here!\"");
		UcSay;
		var000B = Func099B(0xFE9C, 0x0001, 0x0343, 0xFE99, 0x0000, false, true);
		gflags[01A4] = true;
		goto labelFunc042E_0C11;
	labelFunc042E_0C09:
		UcMessage("\"If thou dost change thy mind, let me know. I have no use for them, and know of no one else who would.\"");
		UcSay;
		var0010 = true;
	labelFunc042E_0C11:
		goto labelFunc042E_0C18;
	labelFunc042E_0C14:
		UcMessage("\"I am glad that I was able to give thee thy gauntlets. I had no use for them, and I am sure that thou didst miss their protection.\"");
		UcSay;
	labelFunc042E_0C18:
		cmps("Keth");
		UcMessage("\"Keth and I were to marry, but it was not fated to be.\"");
		UcSay;
		UcMessage("\"He was first mate on one of the largest merchant ships. On one of his voyages, he purchased the engagement ring -- from an artisan in Moonshade, as I recall.\"");
		UcSay;
		UcMessage("\"But then the storms came, and ships began disappearing. And eventually it was Keth's ship that never came back.\"");
		UcSay;
		UI_remove_answer_0D("Keth");
	labelFunc042E_0C33:
		cmps("bye");
		gflags[0008] = false;
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFFD2, "@Farewell!@", 0x0002);
		Func08AA();
		goto labelFunc042E_0C67;
	labelFunc042E_0C64:
		goto labelFunc042E_0309;
	labelFunc042E_0C67:
		end_conv();
	labelFunc042E_0C68:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0818 0x818 ();
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08A9 0x8A9 ();
extern var Func0955 0x955 ();
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func042F 0x42F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func0954();
	var0001 = false;
	var0002 = false;
	if(!(event == 0x0007)) goto labelFunc042F_0028;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc042F_0028:
		if(!(event == 0x0001)) goto labelFunc042F_0056;
		UI_item_say_4D(0xFE9C, "@Excuse me, sir.@");
		0xFFD1;
		calle();
		Func097F(0xFFD1, "@Do I know thee?@", 0x0005);
		UI_set_schedule_type_25(0xFFD1, 0x0003);
	labelFunc042F_0056:
		if(!(event == 0x0009)) goto labelFunc042F_0A0E;
		UI_run_schedule_B7(0xFFD1);
		UI_clear_item_say_4E(0xFFD1);
		UI_show_npc_face0_05(0xFFD1, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFD1, 0x001C);
		if(!(gflags[014D] == true)) goto labelFunc042F_00A5;
		UcMessage("\"Unless thou bearest word from my son, I will not bother with thee! Go back to Fedabiblio and tell him I have no business with the affairs of Mages!\"");
		UcSay;
		if(!(gflags[00E7] == true)) goto labelFunc042F_00A1;
		UI_add_answer_0C("letter");
		goto labelFunc042F_00A2;
	labelFunc042F_00A1:
		abrt();
	labelFunc042F_00A2:
		goto labelFunc042F_0174;
	labelFunc042F_00A5:
		if(!(gflags[003E] == true)) goto labelFunc042F_00D2;
		if(!UI_is_pc_female_6F()) goto labelFunc042F_00C3;
		UcMessage("\"I cannot understand why Monitorians prefer their women scarred.\"");
		UcSay;
		UcMessage("\"Forgive me... I am forgetting myself. I am... ah...\"");
		UcSay;
		UcMessage("\"I am Delin, Fawn's provisioner. How may I serve thee, lady Pikeman?\"");
		UcSay;
		goto labelFunc042F_00CF;
	labelFunc042F_00C3:
		UcMessage("\"I do not recall seeing thy face among the Fawn Tower garrison. Have I met thee? I regret I cannot remember...\"");
		UcSay;
		UcMessage("\"I am Delin, Fawn's provisioner. Forgive me if thou dost already know me...\"");
		UcSay;
		UcMessage("\"How may I serve thee, noble Pikeman?\"");
		UcSay;
	labelFunc042F_00CF:
		goto labelFunc042F_00F2;
	labelFunc042F_00D2:
		if(!UI_is_pc_female_6F()) goto labelFunc042F_00E4;
		UcMessage("\"Ah... art thou one of my daughter's friends? I cannot seem to recall thee...\"");
		UcSay;
		UcMessage("\"I am Delin, Fawn's provisioner. Is there something I can do for thee?\"");
		UcSay;
		goto labelFunc042F_00F2;
	labelFunc042F_00E4:
		UcMessage("\"Hast thou need of my services, ");
		UcMessage(var0000);
		UcMessage("? Or art thou here to court my daughter? I fear I cannot recall...\"");
		UcSay;
		UcMessage("\"I am Delin, provisioner of Fawn. In case we have not been introduced.\"");
		UcSay;
	labelFunc042F_00F2:
		UI_set_item_flag_A4(0xFFD1, 0x001C);
		if(!(gflags[0195] && (!gflags[0292]))) goto labelFunc042F_010E;
		UI_add_answer_0C("fur cap");
	labelFunc042F_010E:
		if(!(gflags[0196] && (!gflags[0293]))) goto labelFunc042F_0120;
		UI_add_answer_0C("slippers");
	labelFunc042F_0120:
		if(!(UI_get_schedule_type_24(0xFFD1) == 0x0007)) goto labelFunc042F_0135;
		UI_add_answer_0C("provisions");
	labelFunc042F_0135:
		if(!(gflags[0157] == true)) goto labelFunc042F_0144;
		UI_add_answer_0C("Moonshade");
	labelFunc042F_0144:
		if(!gflags[0156]) goto labelFunc042F_0151;
		UI_add_answer_0C("Batlin");
	labelFunc042F_0151:
		if(!(gflags[00E7] == true)) goto labelFunc042F_0160;
		UI_add_answer_0C("letter");
	labelFunc042F_0160:
		UI_add_answer_0C(["storms", "Goblins"]);
		UI_add_answer_0C("bye");
	labelFunc042F_0174:
		UcAsk;
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004)) goto labelFunc042F_01AC;
		UcMessage("\"'Tis a nice fur cap, ");
		UcMessage(var0000);
		UcMessage(". If thou dost wish more, I fear thou wilt have to venture to Monitor thyself. Though I have forgotten the maker's name at this time...\"");
		UcSay;
		UcMessage("\"I have not had a supply wagon bring arms or furs in a score of days. 'Tis the storms!\"");
		UcSay;
		goto labelFunc042F_01BA;
	labelFunc042F_01AC:
		UcMessage("\"I fear I have no more fur caps in stock, ");
		UcMessage(var0000);
		UcMessage(". I fear thou wilt have to venture to Monitor thyself, if thou dost wish one.	Though I have forgotten the maker's name at this time...\"");
		UcSay;
		UcMessage("\"I have not had a supply wagon bring arms or furs in a score of days. 'Tis the storms!\"");
		UcSay;
	labelFunc042F_01BA:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		if(!Func097D(0xFE9B, 0x0001, 0x024B, 0xFE99, 0x0005)) goto labelFunc042F_01EF;
		UcMessage("\"Fine slippers, though well-worn. Not something that thou wouldst find here, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Such frail things would be quickly ruined by the cold and wet here in Fawn... Just like my poor Elissia...\"");
		UcSay;
		goto labelFunc042F_01FD;
	labelFunc042F_01EF:
		UcMessage("\"I have never carried slippers, ");
		UcMessage(var0000);
		UcMessage(", though my poor Elissia yearned for them so.\"");
		UcSay;
		UcMessage("\"Such frail things would be quickly ruined by the cold and wet here in Fawn... Just like my poor Elissia...\"");
		UcSay;
	labelFunc042F_01FD:
		if(!(!var0001)) goto labelFunc042F_020B;
		UI_add_answer_0C("Elissia");
	labelFunc042F_020B:
		cmps("provisions");
		UcMessage("\"I provide Fawn with adventuring supplies... Though I regret that my stock is not great at the moment. These storms have made the supply wagons from the other cities rare indeed.\" *\"What dost thou wish to purchase?\"");
		UcSay;
		Func0818();
		UI_remove_answer_0D("provisions");
	labelFunc042F_0221:
		cmps("storms");
		UcMessage("\"The storms... oh, yes. They're very interesting to watch. Though my daughter will not allow me to go outside where I can see better.\" *\"So many pretty colors, and such unusual results...\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc042F_0253;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Father, thou WILT stay indoors when those storms come through town!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah... I suppose I must if thou sayest so, my dear.\"");
		UcSay;
	labelFunc042F_0253:
		UI_remove_answer_0D("storms");
		UI_push_answers_0E();
		UI_add_answer_0C(["daughter", "colors", "results", "change subject"]);
	labelFunc042F_0271:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"Of course. Um, what was it we were discussing...?\"");
		UcSay;
	labelFunc042F_0281:
		cmps("daughter");
		UcMessage("\"Thou hast met my daughter? I had forgotten, I'm sorry. Alyssand is very pretty, but she worries too much about me.\" *\"She doth not believe that I'd be all right without her.\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc042F_02BD;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Thou dost need me, father. Thy business is much too complex for thee to run by thyself!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, er... I can do fine without thee, my dear.\"");
		UcSay;
		UcMessage("\"Hmmm... what were we discussing, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc042F_02BD:
		UI_remove_answer_0D("daughter");
		UI_add_answer_0C("Alyssand");
	labelFunc042F_02CB:
		cmps("Alyssand");
		UcMessage("\"Alyssand is around somewhere... Or at least she was. She never leaves me alone for long.\" *\"She hovers over me quite a bit since Keth disappeared... Alyssand's my daughter. Didst thou know?\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc042F_0300;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Father, that is my business!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Er... I am sorry, daughter.\"");
		UcSay;
		goto labelFunc042F_0307;
	labelFunc042F_0300:
		UI_add_answer_0C("Keth");
	labelFunc042F_0307:
		UI_remove_answer_0D("Alyssand");
	labelFunc042F_030E:
		cmps("Keth");
		UcMessage("\"Hast thou seen Keth? If so, thou shouldst tell him that Alyssand still doth have the engagement ring... Or did have it... I think she said something about losing it.\" *\"'Tis not right to say that thou wilt marry someone and then not return...\"");
		UcSay;
		UI_remove_answer_0D("Keth");
		UI_push_answers_0E();
		UI_add_answer_0C(["engagement ring", "not return", "change subject"]);
	labelFunc042F_0335:
		cmps("engagement ring");
		UcMessage("\"Keth was passing proud of that ring. He ordered it specially from someone in Moonshade...\" \"Mine Elissia was from Moonshade. Oh, my poor Elissia... She's gone. Gone.\"");
		UcSay;
		var0003 = Func0992(Shamino, "@Art thou daft, old man!@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_03B2;
		UI_set_conversation_slot_09(0x0000);
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc042F_03B2;
		var0005 = var0003;
	labelFunc042F_0377:
		if(!(var0005 == var0003)) goto labelFunc042F_0394;
		var0005 = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc042F_0377;
	labelFunc042F_0394:
		if(!(var0005 != 0xFE9C)) goto labelFunc042F_03B2;
		UcMessage("\"Elissia... Dear, sweet Elissia...\"");
		UcSay;
		var0005 = Func0992(var0005, "@Be gentle with him. I fear he's a bit confused.@", 0x0000, false);
	labelFunc042F_03B2:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I'm sorry... very sorry, ");
		UcMessage(var0000);
		UcMessage(". I still mourn the loss of my wife.\"");
		UcSay;
		UcMessage("\"Now, thou didst ask about Alyssand's ring... I would call her and ask her to show it to thee, but Alyssand lost her ring not long ago.\"");
		UcSay;
		UI_remove_answer_0D("engagement ring");
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc042F_03ED;
		UI_add_answer_0C("ring");
		goto labelFunc042F_03F1;
	labelFunc042F_03ED:
		UcMessage("\"I cannot know if the ring thou didst find is my daughter's unless I see it. Perhaps if thou dost bring it to me I can ascertain whether thou shouldst speak with Alyssand.\"");
		UcSay;
	labelFunc042F_03F1:
		if(!(!var0001)) goto labelFunc042F_03FF;
		UI_add_answer_0C("Elissia");
	labelFunc042F_03FF:
		if(!(!var0002)) goto labelFunc042F_040D;
		UI_add_answer_0C("Moonshade");
	labelFunc042F_040D:
		cmps("ring");
		UcMessage("\"Why, it certainly doth look like it... Alyssand will be so happy!\"");
		UcSay;
		UcMessage("\"I would reward thee for returning it to her, ");
		UcMessage(var0000);
		UcMessage(", but a storm stripped my cash box of all my funds the other day.\"");
		UcSay;
		UcMessage("\"I went to open my shop the next morning and there was a bundle of food in place of the Filari Alyssand had put there the night before.\"");
		UcSay;
		var0003 = Func0992(0x0001, "@That is what happened to our food!@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_0448;
		UI_set_conversation_slot_09(0x0000);
	labelFunc042F_0448:
		Func08A9();
		UI_remove_answer_0D("ring");
		UI_add_answer_0C("Filari");
	labelFunc042F_0459:
		cmps("Filari");
		if(!(gflags[003E] == true)) goto labelFunc042F_0476;
		UcMessage("\"I had forgotten that thou wert from Monitor, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc042F_047A;
	labelFunc042F_0476:
		UcMessage("\"Thou must be a stranger...\"");
		UcSay;
	labelFunc042F_047A:
		UcMessage("\"Filari are Fawn's currency... A small silver disk with a colored gem in the center.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc042F_04D4;
		UcMessage("\"Yes... yes. Those are Filari.\"");
		UcSay;
		UcMessage("\"That is as much as the storm took from me...\"");
		UcSay;
		var0003 = Func0992(0x0001, "@These must be his coins then, Avatar!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		if(!(UI_get_schedule_type_24(0xFFD1) == 0x0007)) goto labelFunc042F_04CA;
		UcMessage("\"I would accept thy money if thou dost wish to purchase something.\"");
		UcSay;
		Func0818();
		goto labelFunc042F_04D4;
	labelFunc042F_04CA:
		UcMessage("\"If thou wouldst come to my shop when I am open I wouldst gladly sell thee something, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc042F_04D4:
		gflags[0299] = true;
		UI_remove_answer_0D("Filari");
	labelFunc042F_04DF:
		cmps("not return");
		UcMessage("\"Of course Keth hath not returned! He would have come to see Alyssand the moment he set foot on shore.\" *\"No one hath seen him or his crewmates since one of those storms.\"");
		UcSay;
		UI_remove_answer_0D("not return");
	labelFunc042F_04F2:
		cmps("colors");
		UcMessage("\"Oh, yes! Thou shouldst watch one of these storms some time. The lightning is all different colors...\" *\"Of course, if thou strayest too far out to watch, thou mayest not enjoy it too much.\"");
		UcSay;
		UI_remove_answer_0D("colors");
	labelFunc042F_0505:
		cmps("results");
		UcMessage("\"Results? Results of what? What were we talking about...\" *\"Now I remember! The storms! There are two reasons these storms are fun to watch.\"");
		UcSay;
		UI_remove_answer_0D("results");
		UI_add_answer_0C("two reasons");
	labelFunc042F_051F:
		cmps("two reasons");
		UcMessage("\"Sometimes 'tis FLASH!, and something thou wert standing across from is gone.\"");
		UcSay;
		UcMessage("\"But sometimes 'tis FLASH!, and something thou wert watching is a big, orange pumpkin.\"");
		UcSay;
		UcMessage("\"I like the last one best... 'Tis fun to guess what will be there after the flash.\"");
		UcSay;
		var0003 = Func0992(Dupre, 0x0000, 0x0000, false);
		if(!((var0003 != Iolo) && UI_npc_nearby_3A(Iolo))) goto labelFunc042F_056F;
		var0003 = Func0992(var0003, "@Sounds like he doth have a sense of humor like thine, Iolo!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc042F_0590;
	labelFunc042F_056F:
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_0590;
		var0003 = Func0992(var0003, "@This man is quite jovial!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc042F_0590:
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_05F8;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc042F_05F1;
		var0005 = var0003;
	labelFunc042F_05AF:
		if(!(var0005 == var0003)) goto labelFunc042F_05CC;
		var0005 = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc042F_05AF;
	labelFunc042F_05CC:
		if(!(var0005 != 0xFE9C)) goto labelFunc042F_05F1;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"'Tis such an incredible sight. Ho ho hee!\"");
		UcSay;
		var0005 = Func0992(var0005, "@'Tis not very funny if what was hit was a person!@", 0x0000, false);
	labelFunc042F_05F1:
		UI_set_conversation_slot_09(0x0000);
	labelFunc042F_05F8:
		UI_remove_answer_0D("two reasons");
	labelFunc042F_05FF:
		cmps("Goblins");
		UcMessage("\"Why wouldst thou want to talk about them? The storms are much more fun...\"");
		UcSay;
		var0003 = Func0992(Shamino, "@We do not have time for this!@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_0630;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh, all right! Don't be testy!\"");
		UcSay;
	labelFunc042F_0630:
		UcMessage("\"Thou dost not need to scowl so. Everyone is so serious these days! 'Tis not healthy, thou knowest.\" *\"The Goblins are large, mean and hateful. They prefer to eat humans and they make it unsafe to travel. But I never travel since they took away my son, Freli...\"");
		UcSay;
		UI_remove_answer_0D("Goblins");
		UI_push_answers_0E();
		UI_add_answer_0C(["unsafe", "Freli", "change subject"]);
	labelFunc042F_064F:
		cmps("unsafe");
		UcMessage("\"Nothing is safe... Not even life. I lost my dear Elissia after childbirth...\"");
		UcSay;
		var0003 = "friends are";
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) < 0x0003)) goto labelFunc042F_0676;
		var0003 = "friend is";
	labelFunc042F_0676:
		var0003 = Func0992(Iolo, ("@If thou couldst return to the subject at hand, " + ("Delin, we would be most grateful.@" & "@I fear that my <Check> becoming a bit impatient.@")), 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc042F_069F;
		UI_set_conversation_slot_09(0x0000);
	labelFunc042F_069F:
		UcMessage("\"I wandered off again, didn't I? What was I saying...?\" *\"The Goblins have killed our healer, and now we have to make do with a horticulturist. Imagine that! And, of course, the Goblins have attacked the Fawn Tower.\"");
		UcSay;
		UI_remove_answer_0D("unsafe");
		UI_add_answer_0C("Fawn Tower");
		UI_push_answers_0E();
		UI_add_answer_0C(["healer", "horticulturist", "change subject"]);
		if(!(!var0001)) goto labelFunc042F_06D3;
		UI_add_answer_0C("Elissia");
	labelFunc042F_06D3:
		cmps("Elissia");
		var0001 = true;
		UcMessage("\"Oh, she was a true beauty, I tell thee! Soft golden hair and the brightest eyes that thou hast seen.\" *\"Though she came from Moonshade, no one had cause to fear her. She had not a drop of magic...\"");
		UcSay;
		UcMessage("\"Other than her smile.\"");
		UcSay;
		if(!(UI_npc_nearby_3A(Iolo) && (UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002))) goto labelFunc042F_0763;
		var0003 = Iolo;
	labelFunc042F_0704:
		if(!(var0003 == Iolo)) goto labelFunc042F_0721;
		var0003 = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc042F_0704;
	labelFunc042F_0721:
		UI_show_npc_face1_06(var0003, 0x0000);
		UcMessage("\"Our friend Iolo shares thy grief, milord. His wife is lost somewhere in these lands.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"For thy sake, I hope that she doth live, stranger Iolo.\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"If Gwenno were lost from me forever, perhaps I too would be a little confused.\"");
		UcSay;
		UcMessage("\"Condolences to thee, Delin, and apologies if we have been unfeeling.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"They say that I shall feel better soon...\"");
		UcSay;
		UcMessage("\"But I don't believe it.\"");
		UcSay;
	labelFunc042F_0763:
		if(!(!var0002)) goto labelFunc042F_0771;
		UI_add_answer_0C("Moonshade");
	labelFunc042F_0771:
		UI_remove_answer_0D("Elissia");
	labelFunc042F_0778:
		cmps("healer");
		UcMessage("\"His name was, ah... Seth, I believe. Good healer, but he had a nasty temper.\" *\"I am certain that the Goblins found him a bitter meal. Ha!\"");
		UcSay;
		UI_remove_answer_0D("healer");
		UI_add_answer_0C("Seth");
	labelFunc042F_0792:
		cmps("Seth");
		UcMessage("\"Seth? Oh, the healer! Didst thou know him, too?\" *\"Always insisted on going herb gathering alone... 'Tis what finally killed him. Wouldn't take any guards along with him, even after the Goblin attacks increased.\"");
		UcSay;
		UI_remove_answer_0D("Seth");
	labelFunc042F_07A5:
		cmps("horticulturist");
		UcMessage("\"Did I say something about a horticulturist? I thought we were talking about healers...\" *\"When Seth was killed, Delphynia took his place. We could not obtain a replacement from anywhere because of the storms.\"");
		UcSay;
		UI_remove_answer_0D("horticulturist");
		UI_add_answer_0C("Delphynia");
	labelFunc042F_07BF:
		cmps("Delphynia");
		UcMessage("\"Delphynia is a fine horticulturist, to be sure. But she hath had little or no training as a healer.\"");
		UcSay;
		UcMessage("\"And it doth not seem right having a woman as a healer. Women should concern themselves with the delights of life, not the sorrows.\"");
		UcSay;
		UI_remove_answer_0D("Delphynia");
	labelFunc042F_07D6:
		cmps("Fawn Tower");
		if(!(gflags[003E] == true)) goto labelFunc042F_0800;
		UcMessage("\"But then thou knowest all about Goblin treachery, being a Pikeman and all.\"");
		UcSay;
		if(!(gflags[014E] == true)) goto labelFunc042F_07F9;
		UcMessage("\"Everyone is so relieved that thy fine Pikemen companions have retaken the Tower from Pomdirgun. But they do not understand that it is only a matter of time before we die... Admittedly though, I will grant that most any death would be better than becoming a Goblin's supper.\"");
		UcSay;
		goto labelFunc042F_07FD;
	labelFunc042F_07F9:
		UcMessage("\"Everyone is so worried, now that Pomdirgun hath taken the Tower from thy Pikemen companions. But they do not understand that it is only a matter of time before we die... But I intend to try my luck with the storms, rather than becoming a Goblin's supper.\"");
		UcSay;
	labelFunc042F_07FD:
		goto labelFunc042F_0813;
	labelFunc042F_0800:
		if(!(gflags[014E] == true)) goto labelFunc042F_080F;
		UcMessage("\"Everyone is so relieved that the Tower hath been retaken from Pomdirgun. But they do not understand that it is only a matter of time before we die... Admittedly though, I will grant that most any death would be better than becoming a Goblin's supper.\"");
		UcSay;
		goto labelFunc042F_0813;
	labelFunc042F_080F:
		UcMessage("\"Everyone is so worried, now that Pomdirgun holds the Tower.\" ~\"But they do not understand that it is only a matter of time before we die... But I intend to try my luck with the storms, rather than becoming a Goblin's supper.\"");
		UcSay;
	labelFunc042F_0813:
		UI_remove_answer_0D("Fawn Tower");
		UI_add_answer_0C("Pomdirgun");
	labelFunc042F_0821:
		cmps("Pomdirgun");
		UcMessage("\"I am certain that Pomdirgun would be very disappointed to learn that thou dost not know of him. He hath gone to great lengths to be sure that we in Fawn know the name of the Goblin leader that will bring us to our knees...\"");
		UcSay;
		UcMessage("\"...Or his stewpot.\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
	labelFunc042F_0838:
		cmps("Freli");
		UcMessage("\"Freli... Didst thou say Freli? Hast thou seen him? I have not seen him since the Magister took him away.\" *\"I would give anything to be able to see him again, or to have some word from him. Elissia died bringing him into this world... He is all that I have to remember her by, except for Alyssand of course. But Freli favors his mother more.\"");
		UcSay;
		gflags[018D] = true;
		UI_remove_answer_0D("Freli");
		UI_add_answer_0C("Magister");
		if(!(!var0001)) goto labelFunc042F_0864;
		UI_add_answer_0C("Elissia");
	labelFunc042F_0864:
		cmps("Magister");
		UI_remove_answer_0D("Magister");
		UcMessage("\"The Magister comes like a thief in the night, to test the children of the land for magic talent. If a Mage Child is discovered, the Magister steals the child.\"");
		UcSay;
		UcMessage("\"Just as he stole my little Freli...\"");
		UcSay;
		UcMessage("\"Thou dost not work for the Magister, dost thou?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc042F_089F;
		UcMessage("\"Thou hast no cause to spy on me! I have not seen or heard from my son since he left here! I am not responsible for anything he may have done!\" *\"Tell thine employer that he took Freli, let him be responsible!\"");
		UcSay;
		gflags[014D] = true;
		Func097F(0xFFD1, "@Spy not on me!@", 0x0000);
		abrt();
		goto labelFunc042F_08A7;
	labelFunc042F_089F:
		UcMessage("\"Good! Because the Magister hath no call to spy on me.\"");
		UcSay;
		UcMessage("\"I have had no contact with Freli since he was taken away. No mortal can win in a struggle against wizards...\"");
		UcSay;
	labelFunc042F_08A7:
		cmps("Moonshade");
		var0002 = true;
		UcMessage("\"Moonshade is where my wife was from... She was the most patient of women.\" *\"Moonshade is ruled by Mages. To them, if thou art not a Mage, thou art nothing. The Mages shed no tears when mine Elissia left the town. She was nothing in their eyes... But everything in mine.\"");
		UcSay;
		UI_remove_answer_0D("Moonshade");
		if(!(!var0001)) goto labelFunc042F_08CC;
		UI_add_answer_0C("Elissia");
	labelFunc042F_08CC:
		cmps("Batlin");
		UcMessage("\"Bats? What bats?\"");
		UcSay;
		var0003 = Func0992(0x0001, "@Not bats! B-A-T-L-I-N!@", "@Not bats! B-A-T-L-I-N!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"No need to shout. I'm not deaf.\"");
		UcSay;
		UcMessage("\"Batlin... ah, I remember he came here asking about some sort of rock sculpture or something. Black rock...\"");
		UcSay;
		UcMessage("\"I told him I am a simple merchant. I do not carry such luxuries. I directed him to Monitor. There is a sculptor there.\"");
		UcSay;
		UI_remove_answer_0D("Batlin");
		UI_push_answers_0E();
		UI_add_answer_0C(["Monitor", "change subject"]);
	labelFunc042F_0913:
		cmps("Monitor");
		if(!(gflags[003E] == true)) goto labelFunc042F_0927;
		UcMessage("\"And people accuse me of being forgetful! Thou art a Knight, and doth ask me about Monitor?\"");
		UcSay;
	labelFunc042F_0927:
		UcMessage("\"Monitor is south of us, ");
		UcMessage(var0000);
		UcMessage(", on the coast. Their soldiers, the Pikemen, act as guards for the roads, and as highwaymen for Monitor's coffers...\"");
		UcSay;
		UI_remove_answer_0D("Monitor");
		UI_add_answer_0C("highwaymen");
	labelFunc042F_093F:
		cmps("highwaymen");
		UcMessage("\"Yes, highwaymen! They charge each traveller and merchant who would make use of the road they guard!\" *\"An exorbitant amount doth go to Monitor every year, I'm certain. And then we must feed them in their Tower, and offer them our goods at a discount!\"");
		UcSay;
		UI_remove_answer_0D("highwaymen");
	labelFunc042F_0952:
		cmps("letter");
		UI_remove_answer_0D("letter");
		UcMessage("\"A letter from Freli! Oh, what joy!\"");
		UcSay;
		if(!UI_remove_party_items_34(0x0001, 0x031D, 0x0046, 0x0000, 0x0000)) goto labelFunc042F_09C2;
		UcMessage("\"Let me have it! Alyssand must hear of this.\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc042F_09A5;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"I am here, father! Tell me how Freli fares. Hath he become a Mage?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"A moment, a moment... It will take me a moment. His writing is terrible!\"");
		UcSay;
	labelFunc042F_09A5:
		UcMessage("\"Oh, for this piece of good work, ");
		UcMessage(var0000);
		UcMessage(", thou must be rewarded!\"");
		UcSay;
		UcMessage("\"Let me see... ah, yes! How wouldst thou like a discount on anything within the store? Yes, yes... half my normal price -- but just this once!\"");
		UcSay;
		gflags[00E7] = false;
		gflags[01A1] = true;
		gflags[014D] = false;
		goto labelFunc042F_09DD;
	labelFunc042F_09C2:
		UcMessage("\"Thou art having fun with me, stranger! I see no letter.\"");
		UcSay;
		Func097F(0xFFD1, "@Out with ye!@", 0x0000);
		UI_set_schedule_type_25(0xFFD1, 0x0014);
		abrt();
	labelFunc042F_09DD:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thanks for thine help!@", 0x0000);
		Func097F(0xFFD1, "@Come back any time!@", 0x0005);
		Func08AA();
		goto labelFunc042F_0A0D;
	labelFunc042F_0A0A:
		goto labelFunc042F_0174;
	labelFunc042F_0A0D:
		end_conv();
	labelFunc042F_0A0E:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func081A 0x81A ();
extern Func081B 0x81B ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func08A9 0x8A9 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0430 0x430 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0954();
	if(!(event == 0x0007)) goto labelFunc0430_0020;
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0430_0020:
		if(!(event == 0x0001)) goto labelFunc0430_0056;
		UI_item_say_4D(0xFE9C, "@A moment, if thou wilt.@");
		0xFFD0;
		calle();
		Func097F(0xFFD0, (("@At thy service, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFD0, 0x0003);
	labelFunc0430_0056:
		if(!(event == 0x0009)) goto labelFunc0430_0642;
		UI_run_schedule_B7(0xFFD0);
		UI_clear_item_say_4E(0xFFD0);
		UI_show_npc_face0_05(0xFFD0, 0x0000);
		var0002 = UI_get_item_flag_A3(0xFFD0, 0x001C);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0430_00A7;
		UcMessage("\"Leave! I have no wish to be seen with thee! Thou dost consort with criminals and blasphemers.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFD0, "@Leave me alone!@", 0x0000);
		abrt();
	labelFunc0430_00A7:
		if(!(var0002 == false)) goto labelFunc0430_00E3;
		if(!(gflags[003E] == true)) goto labelFunc0430_00CC;
		if(!UI_is_pc_female_6F()) goto labelFunc0430_00C5;
		UcMessage("\"I am Delphynia, horticulturist and healer. State thy business or be on thy way. I do not traffic with oafs and knaves.\"");
		UcSay;
		goto labelFunc0430_00C9;
	labelFunc0430_00C5:
		UcMessage("\"I am Delphynia, horticulturist and healer. Welcome, noble Pikeman. Thy presence honors me.\"");
		UcSay;
	labelFunc0430_00C9:
		goto labelFunc0430_00D6;
	labelFunc0430_00CC:
		UcMessage("\"I am Delphynia, horticulturist and healer. How may I be of service, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0430_00D6:
		UI_set_item_flag_A4(0xFFD0, 0x001C);
		goto labelFunc0430_00E7;
	labelFunc0430_00E3:
		UcMessage("\"'Tis always a pleasure to see thee, Avatar. How may I be of service to thee?\"");
		UcSay;
	labelFunc0430_00E7:
		UI_add_answer_0C(["Goblins", "healer", "storms", "buy", "bye"]);
		if(!(gflags[0193] && (!gflags[028F]))) goto labelFunc0430_010F;
		UI_add_answer_0C("apparatus");
	labelFunc0430_010F:
		if(!(gflags[0194] && (!gflags[0290]))) goto labelFunc0430_0121;
		UI_add_answer_0C("pumice");
	labelFunc0430_0121:
		if(!(gflags[0197] && (!gflags[0295]))) goto labelFunc0430_0133;
		UI_add_answer_0C("blue egg");
	labelFunc0430_0133:
		if(!(gflags[019D] && (!gflags[029D]))) goto labelFunc0430_0145;
		UI_add_answer_0C("glowing rock");
	labelFunc0430_0145:
		if(!((gflags[0152] == true) && (!gflags[01A3]))) goto labelFunc0430_0159;
		UI_add_answer_0C("letter");
	labelFunc0430_0159:
		if(!((gflags[0076] == true) && ((gflags[005A] == false) && (gflags[01A5] == false)))) goto labelFunc0430_0174;
		UI_add_answer_0C("Varo Leaves");
	labelFunc0430_0174:
		if(!(gflags[0004] == true)) goto labelFunc0430_0183;
		UI_add_answer_0C("Iolo the Mad");
	labelFunc0430_0183:
		UcAsk;
		cmps("Goblins");
		UcMessage("\"Would that I never hear of those horrible creatures again! They are why I am now Fawn's healer, though I am not properly trained.\" *\"Pomdirgun's shadow hath cast a blight on all the land!\"");
		UcSay;
		UI_remove_answer_0D("Goblins");
		UI_add_answer_0C("Pomdirgun");
	labelFunc0430_01A0:
		cmps("healer");
		UcMessage("\"I am a horticulturist by trade. What little I know of herbs hath given me a responsibility I did not want. I curse the day that Seth refused a guard escort to do his herb gathering!\"");
		UcSay;
		UcMessage("\"Dost thou wish healing?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0430_01BC;
		Func081A();
		goto labelFunc0430_01C0;
	labelFunc0430_01BC:
		UcMessage("\"I hate to say this, but I am relieved to hear that!\"");
		UcSay;
	labelFunc0430_01C0:
		UI_remove_answer_0D("healer");
		UI_add_answer_0C("Seth");
	labelFunc0430_01CE:
		cmps("Seth");
		UcMessage("\"Seth was two years older than the heavens, and set in his ways, to be sure. But he was a fine healer. He refused a guard escort to gather his herbs. He told Jorvin it was because the guards stepped on the plants he wanted to gather.\"");
		UcSay;
		UcMessage("\"But I think he simply wanted to be able to escape alone for a while. Thou hast no idea how little time one has when thou must be at the beck and call of everyone with some imagined ill!\"");
		UcSay;
		UI_remove_answer_0D("Seth");
		UI_add_answer_0C("Jorvin");
	labelFunc0430_01EC:
		cmps("Jorvin");
		UcMessage("\"Jorvin is the Captain of the Guards. 'Twas he that went looking for Seth near twilight when the old man had not returned to the city.\" *\"Jorvin found signs that the Goblins had taken Seth, and led pursuit. But it was too late. By the time the guards caught the foul monsters, Seth was already the makings for their next meal!\"");
		UcSay;
		UI_remove_answer_0D("Jorvin");
	labelFunc0430_01FF:
		cmps("Pomdirgun");
		UcMessage("\"Iiieeee! That very name sends ice down my spine! Pomdirgun hath welded all the Goblins into his weapon. He will never stop until he hath driven us all from the land... Or feasted on us to the last child.\" *\"He is a fiend drawn to destroy our Beauty!\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
	labelFunc0430_0212:
		cmps("storms");
		UI_remove_answer_0D("storms");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0430_023B;
		UcMessage("\"My sole hope is now that the conspiracy of Kylista and Voldin hath been exposed the curse which lies upon this land might be raised.\"");
		UcSay;
		UcMessage("\"Can a City built upon the concept of Pure Beauty remain cursed? I hope not...\"");
		UcSay;
		goto labelFunc0430_024C;
	labelFunc0430_023B:
		UcMessage("\"What foulness is about in the land! That I received one of the harbingers of Fawn's doom stains my Beauty! Even the heavens lash out to burn away the vile truth that I harbor within mine heart!\"");
		UcSay;
		UI_add_answer_0C(["harbingers", "vile truth"]);
	labelFunc0430_024C:
		cmps("harbingers");
		UcMessage("\"When those sailors -- those false prophets -- first landed on our shores, two of their number came to seek me. One was a mage of some sort who came seeking what reagents I grow.\"");
		UcSay;
		if(!gflags[01A3]) goto labelFunc0430_0272;
		UcMessage("\"The other... as thou knowest, was Ruggs.\"");
		UcSay;
		UI_add_answer_0C(["false prophets", "mage"]);
		goto labelFunc0430_0286;
	labelFunc0430_0272:
		UcMessage("\"The other... He was a thief who wore a face none could love. He stole mine heart away!\"");
		UcSay;
		UI_add_answer_0C(["false prophets", "mage", "thief"]);
	labelFunc0430_0286:
		UI_remove_answer_0D("harbingers");
	labelFunc0430_028D:
		cmps("false prophets");
		UI_remove_answer_0D("false prophets");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0430_02B6;
		UcMessage("\"But now I am so confused... 'Twas Kylista who told us that The Fellowship was false, but now she doth stand accused of heresy...\"");
		UcSay;
		UcMessage("\"And The Fellowship is again openly admitted within the city! I know not what to think.\"");
		UcSay;
		goto labelFunc0430_02C5;
	labelFunc0430_02B6:
		UcMessage("\"That is what the Priestess of Beauty calls them. They speak of something called The Fellowship, and claim that it will make our lives complete.\"");
		UcSay;
		UcMessage("\"Everyone knows that the true way lies along Beauty's path. By seeking Beauty, we draw all good things to us.\" *\"I rue the day I ever saw him!\"");
		UcSay;
		UI_add_answer_0C("Fellowship");
	labelFunc0430_02C5:
		cmps("Fellowship");
		UcMessage("\"I can tell thee nothing. Nothing! I would not listen to such blasphemy. 'Tis enough that one of them hath bewitched me and stolen mine heart...\"");
		UcSay;
		UI_remove_answer_0D("Fellowship");
	labelFunc0430_02D8:
		cmps("mage");
		UcMessage("\"I think his companion called him by the name Batlin.\" *\"He was disappointed in what little I had to offer in the way of reagents. I told him to seek out Pothos in Moonshade for a better selection.\"");
		UcSay;
		UcMessage("\"He also inquired about blackrock carvings or sculpture, I do not remember exactly. I told him to ask Delin, who doth know artisans in Monitor and Moonshade.\"");
		UcSay;
		UI_remove_answer_0D("mage");
		UI_add_answer_0C("Delin");
	labelFunc0430_02F6:
		cmps("buy");
		if(!(UI_get_schedule_type_24(0xFFD0) == 0x0007)) goto labelFunc0430_0316;
		UcMessage("\"What dost thou wish to purchase?\"");
		UcSay;
		Func081B();
		goto labelFunc0430_0327;
	labelFunc0430_0316:
		UcMessage("\"I will gladly sell thee vegetables or reagents when I am open, ");
		UcMessage(var0000);
		UcMessage(". Come to Healers Hall or the greenhouse during the daytime.\"");
		UcSay;
		UI_remove_answer_0D("buy");
	labelFunc0430_0327:
		cmps("Delin");
		UcMessage("\"Delin is Fawn's dry goods dealer, poor man. I wished Batlin luck in discussing anything with him.\"");
		UcSay;
		UcMessage("\"Delin hath not been right since his wife died in childbirth. His daughter, Alyssand, hath always looked after him, though she hath problems of her own now.\"");
		UcSay;
		UI_remove_answer_0D("Delin");
		UI_add_answer_0C("Alyssand");
	labelFunc0430_0345:
		cmps("Alyssand");
		UI_remove_answer_0D("Alyssand");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0430_036E;
		UcMessage("\"Hast thou not heard? Lady Yelinda doth look to the young woman as her chief advisor!\"");
		UcSay;
		UcMessage("\"Alyssand hath never been so busy, nor so burdened with cares. She doth work to exhaustion, yet I think she is happy.\"");
		UcSay;
		goto labelFunc0430_0383;
	labelFunc0430_036E:
		UcMessage("\"Alyssand hath always been a headstrong girl. Thou wouldst expect it of someone with her responsibilities. We all thought Keth would take care of her, keep her under control. But then Keth was lost in one of those terrible storms.\"");
		UcSay;
		UcMessage("\"Alyssand swore that as long as she had his ring there was still hope that he would return. When that disappeared not long ago, she seemed to go mad! She seems to have fallen in with those blasphemers and claims that the Oracle is a sham.\"");
		UcSay;
		UI_add_answer_0C(["ring", "Oracle"]);
	labelFunc0430_0383:
		cmps("ring");
		UcMessage("\"I cannot tell thee very much about it. I fear that I only glanced at it... I would know it if I saw it again, though.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc0430_03A8;
		UcMessage("\"I could not swear before the Oracle that this is truly Alyssand's ring. But it certainly doth look like it...\" *\"Thou shouldst find Alyssand and ask her, to be sure.\"");
		UcSay;
	labelFunc0430_03A8:
		Func08A9();
		UI_remove_answer_0D("ring");
	labelFunc0430_03B2:
		cmps("Oracle");
		UcMessage("\"Thou dost not know of the Oracle of Fawn? The Oracle is the instrument of Beauty here on Serpent Isle. It receives messages from the heavens, which Kylista makes plain for everyone to understand.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
		UI_add_answer_0C("Kylista");
	labelFunc0430_03CC:
		cmps("Kylista");
		UcMessage("\"Kylista is the Priestess of Beauty, all honor to her. 'Tis she that instructs us all in Beauty's truth, which she receives in revelations from the Oracle.\" *\"Even Lady Yelinda honors Kylista's wisdom.\"");
		UcSay;
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C("Lady Yelinda");
	labelFunc0430_03E6:
		cmps("Lady Yelinda");
		UcMessage("\"Lady Yelinda, honor to her, is the ruler of Fawn. She is the most beautiful woman in the city, the very embodiment of Beauty.\"");
		UcSay;
		UI_remove_answer_0D("Lady Yelinda");
	labelFunc0430_03F9:
		cmps("thief");
		UcMessage("\"Thief, yes, that's what he is! His name is Ruggs, and he hath bewitched me. Perhaps he is some sort of mage, like his companion.\" *\"He hath stolen mine heart and I do not know what to do.\"");
		UcSay;
		UI_remove_answer_0D("thief");
	labelFunc0430_040C:
		cmps("vile truth");
		UcMessage("\"I must confess, I am the cause of these storms. I know I am. I must live with the vile truth that I hold in mine heart of hearts.\" *\"I am in love with one of those who brought this ruin upon my city! Although I did not embrace his beliefs, mine heart embraced him.\" *\"I am as guilty as Alyssand! I cannot see how she bears such shame...\"");
		UcSay;
		UI_remove_answer_0D("vile truth");
	labelFunc0430_041F:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc0430_0458;
		UcMessage("\"That is a piece of Mage's equipment, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Thou sayest it is not thine? Hmmm... Then thou wilt have to enquire in Moonshade to find who it belongs to.\"");
		UcSay;
		UcMessage("\"Each Mage's equipment is different from every other Mage's... As much for pride as anything else. I am sorry I cannot be of any more help to thee.\"");
		UcSay;
		goto labelFunc0430_0466;
	labelFunc0430_0458:
		UcMessage("\"It sounds like a piece of Mage's equipment, ");
		UcMessage(var0000);
		UcMessage(". But I could not be certain without seeing it. It could be a simple piece of brewing equipment for all I know.\"");
		UcSay;
		UcMessage("\"Thou couldst enquire in Moonshade, to see if any of the Mages are missing any equipment. I am sorry I cannot be of any more help to thee.\"");
		UcSay;
	labelFunc0430_0466:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		gflags[0290] = true;
		if(!Func097D(0xFE9B, 0x0001, 0x010B, 0xFE99, 0xFE99)) goto labelFunc0430_049F;
		UcMessage("\"Why, that is pumice, ");
		UcMessage(var0000);
		UcMessage(". 'Tis very unusual to see any here in Fawn... There is no volcanic activity anywhere near.\"");
		UcSay;
		UcMessage("\"The only place that such a rock could have come from, that I know of, is somewhere beyond Moonshade.\"");
		UcSay;
		goto labelFunc0430_04A7;
	labelFunc0430_049F:
		UcMessage("\"A grayish rock? Light in weight for its mass?\"");
		UcSay;
		UcMessage("\"This sounds like pumice, to me. The only place that such a rock could have come from, that I know of, is somewhere beyond Moonshade... Where there is volcanic activity.\"");
		UcSay;
	labelFunc0430_04A7:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc0430_04E7;
		UcMessage("\"What a putrid smell!\"");
		UcSay;
		UcMessage("\"Remove that immediately!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFD0, "@Take it away!@", 0x0000);
		abrt();
		goto labelFunc0430_04EF;
	labelFunc0430_04E7:
		UcMessage("\"A blue egg? I have never heard of a blue egg.\"");
		UcSay;
		UcMessage("\"Perhaps thou couldst try asking someone in Moonshade. I am told that the Mages have a great library on their island, full of unusual things.\"");
		UcSay;
	labelFunc0430_04EF:
		cmps("glowing rock");
		UI_remove_answer_0D("glowing rock");
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F)) goto labelFunc0430_0528;
		UcMessage("\"That is no reagent that I know of, ");
		UcMessage(var0000);
		UcMessage(". But it is fascinating...\"");
		UcSay;
		UcMessage("\"I am sure that it is magical, but I do not know how. And for some reason I feel I should ask thee to take it away from here and forget that I saw it...\"");
		UcSay;
		UcMessage("\"I am sorry I cannot be of more help.\"");
		UcSay;
		goto labelFunc0430_053A;
	labelFunc0430_0528:
		UcMessage("\"It is no reagent that I know of, ");
		UcMessage(var0000);
		UcMessage(". But it sounds fascinating...\"");
		UcSay;
		UcMessage("\"I am sure that it is magical, if it glows and is cool enough to hold. But I have never heard of it before.\"");
		UcSay;
		UcMessage("\"I am sorry I cannot be of more help.\"");
		UcSay;
	labelFunc0430_053A:
		cmps("letter");
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x0004, 0xFE99)) goto labelFunc0430_05B2;
		UcMessage("\"A letter from Ruggs? Oh, I must see it!\"");
		UcSay;
		var0001 = UI_remove_party_items_34(0x0001, 0x031D, 0x0004, 0x0005, false);
		gflags[01A3] = true;
		UcMessage("\"I am adrift! I am torn to my very soul and I know not what to do. Thou must help me.\"");
		UcSay;
		UcMessage("\"Ruggs hath told me often of his love for me. In truth 'twould be a lie if I were to say that I did not care for him. But he is so... deformed... so ugly, that I know not what to think.\"");
		UcSay;
		UcMessage("\"All I have been taught tells me that Ruggs' features are the outward sign of the evil within. Yet I can find no trace of it... If that is wrong, what else might also be false?\" *\"I am shaken to my very core, but I cannot deny mine heart.\"");
		UcSay;
		UcMessage("\"Wilt thou carry a letter back to Ruggs for me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0430_05AB;
		UcMessage("\"There is no one else that I can trust such a secret to.\" *\"If there be a way, some day I will go to him.\"");
		UcSay;
		var0001 = Func099B(0xFE9C, 0x0001, 0x031D, 0x001B, 0x0000, false, true);
		gflags[0150] = true;
		goto labelFunc0430_05AF;
	labelFunc0430_05AB:
		UcMessage("\"Perhaps it is best this way... I know not how to look upon his face and not wonder if there is some evil lurking there.\"");
		UcSay;
	labelFunc0430_05AF:
		goto labelFunc0430_05CD;
	labelFunc0430_05B2:
		UcMessage("\"Thou dost lie! I see no letter!\"");
		UcSay;
		Func097F(0xFFD0, "@Liar!@", 0x0000);
		UI_set_schedule_type_25(0xFFD0, 0x0014);
		abrt();
	labelFunc0430_05CD:
		UI_remove_answer_0D("letter");
	labelFunc0430_05D4:
		cmps("Varo Leaves");
		UI_remove_answer_0D("Varo Leaves");
		if(!(gflags[0076] == true)) goto labelFunc0430_05F2;
		UcMessage("\"Harnna would not have sent thee if thou didst not have great need of the Varo leaves. I would help thee if I could. But my skills as a healer are limited. Take these leaves back to Harnna quickly, before thou dost worsen.\"");
		UcSay;
		goto labelFunc0430_05F6;
	labelFunc0430_05F2:
		UcMessage("\"Thou canst only be permanently cured of thine infection by a special ointment made from Varo leaves. I do not know how to make the ointment myself, however. Take these leaves back to Harnna in Monitor quickly, before thou dost worsen. She is a true healer and will be able to help thee.\"");
		UcSay;
	labelFunc0430_05F6:
		gflags[01A5] = true;
		var0001 = Func099B(0xFE9C, 0x0005, 0x01D3, 0xFE99, 0x0003, false, true);
	labelFunc0430_0611:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks.@", 0x0000);
		Func097F(0xFFD0, "@Walk in Beauty.@", 0x0005);
		Func08AA();
		goto labelFunc0430_0641;
	labelFunc0430_063E:
		goto labelFunc0430_0183;
	labelFunc0430_0641:
		end_conv();
	labelFunc0430_0642:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0431 0x431 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_is_pc_female_6F();
	if(!(event == 0x0007)) goto labelFunc0431_002D;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0431_002D:
		if(!(event == 0x0001)) goto labelFunc0431_005B;
		UI_item_say_4D(0xFE9C, "@A moment, sir.@");
		0xFFCF;
		calle();
		Func097F(0xFFCF, "@At thy service.@", 0x0005);
		UI_set_schedule_type_25(0xFFCF, 0x0003);
	labelFunc0431_005B:
		if(!(event == 0x0009)) goto labelFunc0431_047A;
		UI_run_schedule_B7(0xFFCF);
		UI_clear_item_say_4E(0xFFCF);
		UI_show_npc_face0_05(0xFFCF, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFCF, 0x001C);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0431_00B6;
		UcMessage("\"Why, thou art the confidant of the accused blasphemer! I cannot be seen speaking with thee...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFCF, "@Off with thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFCF, 0x000C);
		abrt();
	labelFunc0431_00B6:
		if(!(var0004 == false)) goto labelFunc0431_0116;
		if(!(gflags[003E] == true)) goto labelFunc0431_00E6;
		if(!(var0002 == true)) goto labelFunc0431_00DF;
		UcMessage("\"Ah, a sweet savior! No fairer face hath a warrior worn.\"");
		UcSay;
		UcMessage("\"Welcome to Fawn, dear ");
		UcMessage(var0000);
		UcMessage(". I am Great Captain Garth, but thou canst call me Garth.\"");
		UcSay;
		goto labelFunc0431_00E3;
	labelFunc0431_00DF:
		UcMessage("\"Welcome to Fawn, noble Pikeman. We are honored by thy presence.\" *\"I am Great Captain Garth. Call me Garth.\"");
		UcSay;
	labelFunc0431_00E3:
		goto labelFunc0431_0109;
	labelFunc0431_00E6:
		if(!(var0002 == true)) goto labelFunc0431_00FF;
		UcMessage("\"Welcome to Fawn, most fair ");
		UcMessage(var0000);
		UcMessage("! Now that thou art here, we can truly say that this is the city of Beauty.\"");
		UcSay;
		UcMessage("\"I am Great Captain Garth, but thou canst call me Garth.\"");
		UcSay;
		goto labelFunc0431_0109;
	labelFunc0431_00FF:
		UcMessage("\"Thou art a welcome sight, noble ");
		UcMessage(var0000);
		UcMessage(".\" ~\"We are sorely in need of more able-bodied fighters in Fawn's darkest hour.\" *\"I am Great Captain Garth. Call me Garth.\"");
		UcSay;
	labelFunc0431_0109:
		UI_set_item_flag_A4(0xFFCF, 0x001C);
		goto labelFunc0431_0135;
	labelFunc0431_0116:
		if(!(var0002 == true)) goto labelFunc0431_012B;
		UcMessage("\"Now may I rest my weary eyes on thy lovely face. Thou art always a welcome sight, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0431_0135;
	labelFunc0431_012B:
		UcMessage("\"'Tis good to see thee, ");
		UcMessage(var0001);
		UcMessage(". I trust that thou art feeling well.\"");
		UcSay;
	labelFunc0431_0135:
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc0431_0145:
		UcAsk;
		cmps("storms");
		UcMessage("\"Without question, these storms are unnatural. If they do not cease soon, Fawn will perish!\" ~\"Already our livelihood hath been taken from us.\" ~\"And women weep at the loss of those who once sailed in our fleet. We have no idea what became of them.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["livelihood", "fleet"]);
	labelFunc0431_0168:
		cmps("livelihood");
		UI_remove_answer_0D("livelihood");
		UcMessage("\"As thou canst see, Fawn is built upon the water. We are... or were... fishermen by trade.\"");
		UcSay;
		UcMessage("\"That is how we fed our people, and how we traded with the other towns.\"");
		UcSay;
		if(!(var0002 == true)) goto labelFunc0431_01AF;
		UcMessage("\"But we are a hardy lot.\" ~\"We will weather these foul storms and rebuild what hath been destroyed.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0431_01A1;
		UcMessage("\"Perhaps I shall speak with Lady Yelinda again. Surely, she doth need mine advice if this town is to be saved...\"");
		UcSay;
		goto labelFunc0431_01AC;
	labelFunc0431_01A1:
		UcMessage("\"Lady Yelinda hath charged me with the task of finding a way to sustain the people until the storms pass.\"");
		UcSay;
		UI_add_answer_0C("Lady Yelinda");
	labelFunc0431_01AC:
		goto labelFunc0431_01D4;
	labelFunc0431_01AF:
		UcMessage("\"We have lost most of our men to the sea and storms.\" ~\"We do not know if they were drowned or transformed.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0431_01C9;
		UcMessage("\"May Beauty lay their souls to rest...\"");
		UcSay;
		goto labelFunc0431_01D4;
	labelFunc0431_01C9:
		UcMessage("\"Now Lady Yelinda hath charged me with the task of finding a way to sustain our people until we can rebuild our ships.\" ~\"To be truthful, I am not hopeful...\"");
		UcSay;
		UI_add_answer_0C("Lady Yelinda");
	labelFunc0431_01D4:
		cmps("Lady Yelinda");
		if(!(var0002 == true)) goto labelFunc0431_01EF;
		UcMessage("\"Lady Yelinda rules Fawn, assisted by Joth, Voldin and myself.\" ~\"Many say she is the most beautiful woman in the city.\" ~\"Others, like Zulith, say Kylista is more beautiful.\"");
		UcSay;
		UcMessage("\"Now that I have seen thee, I think they are all wrong.\" ~\"Thou art the most wondrous beauty I have seen.\"");
		UcSay;
		goto labelFunc0431_01F3;
	labelFunc0431_01EF:
		UcMessage("\"Lady Yelinda is a ruler of Fawn, at least in name.\" ~\"Zulith fetches and carries for her, and makes her feel important.\" *\"But the truth of the matter is that Fawn's real power lies in the hands of Joth, Voldin and Kylista.\"");
		UcSay;
	labelFunc0431_01F3:
		UI_remove_answer_0D("Lady Yelinda");
		UI_add_answer_0C(["Zulith", "Joth", "Voldin", "Kylista"]);
	labelFunc0431_020D:
		cmps("Zulith");
		UcMessage("\"He is the messenger between the Great Captains and Lady Yelinda.\" ~\"He takes orders well enough, if thou dost stroke his ego enough.\" *\"But, if thou shouldst belittle him, beware!\" ~\"He hath the ears of both Yelinda and Kylista.\"");
		UcSay;
		UI_remove_answer_0D("Zulith");
	labelFunc0431_0220:
		cmps("Joth");
		UcMessage("\"Joth was a fine seaman, before his injury. But he hath little use for the politics of those on the land.\" *\"He doth do his best to represent the interests of the fleet. But it is plain that his heart is still at sea.\"");
		UcSay;
		if(!(var0002 == false)) goto labelFunc0431_0238;
		UcMessage("\"Without his support on the Council, I am locked against Voldin and must defer to his seniority.\" ~\"If Joth would waken to life as it is, Fawn would be in far better shape.\"");
		UcSay;
	labelFunc0431_0238:
		UI_remove_answer_0D("Joth");
		UI_add_answer_0C("injury");
	labelFunc0431_0246:
		cmps("injury");
		UcMessage("\"Before one of those freak storms hit, a fine lighthouse stood near the town to guide the fleet home at night.\" ~\"During one very bad storm, its light went out and the sailors could not see to make their way back to the docks.\"");
		UcSay;
		UcMessage("\"Joth ordered his ship to stand near the shoals and set fire to her sails so that the remainder of the fleet could find their way in.\" ~\"All of the ships docked safely that night, except for his.\"");
		UcSay;
		UcMessage("\"A freak change of wind cast his ship aground and he was trapped in the rigging.\"");
		UcSay;
		UcMessage("\"The healers say his back will never be the same again. He can never go back to sea.\"");
		UcSay;
		UI_remove_answer_0D("injury");
		UI_add_answer_0C("lighthouse");
	labelFunc0431_026C:
		cmps("lighthouse");
		UcMessage("\"The heart seemed to go out of the sailors when the storms exchanged our lighthouse for a haunted building.\" ~\"They believed that it was a bad omen...\" *\"They were right.\"");
		UcSay;
		UI_remove_answer_0D("lighthouse");
		UI_add_answer_0C("haunted building");
	labelFunc0431_0286:
		cmps("haunted building");
		UcMessage("\"Joth led a party of sailors and guardsmen to check what happened to the lighthouse.\" ~\"We suspected goblin mayhem, to lure us out of the city.\"");
		UcSay;
		UcMessage("\"The party returned pale and shaken. All they could tell us was that the lighthouse was gone.\" ~\"In its place was a strange haunted building!\"");
		UcSay;
		UcMessage("\"I know no more than that. I must concern myself with trying to provide Fawn with food.\"");
		UcSay;
		UI_remove_answer_0D("haunted building");
	labelFunc0431_02A1:
		cmps("Voldin");
		UcMessage("\"Voldin is the senior member of the Great Captains.\" ~\"He is a very ambitious man with strong opinions and no great love for our fishing captains.\"");
		UcSay;
		UI_remove_answer_0D("Voldin");
		UI_add_answer_0C(["opinions", "fishing captains"]);
	labelFunc0431_02C1:
		cmps("opinions");
		if(!(var0002 == true)) goto labelFunc0431_02DE;
		UcMessage("\"I shall merely say that Voldin's views are very old fashioned, ");
		UcMessage(var0000);
		UcMessage(".\" ~\"He firmly believes in the sanctity of Beauty and the protection of all things beautiful.\"");
		UcSay;
		goto labelFunc0431_02E2;
	labelFunc0431_02DE:
		UcMessage("\"Voldin doth have a very limited opinion of a woman's intelligence.\" ~\"He doth not believe that they are capable of making decisions more challenging than what to wear in the morning.\" *\"I fear that Lady Yelinda is too easily led by Voldin's wishes.\"");
		UcSay;
	labelFunc0431_02E2:
		UI_remove_answer_0D("opinions");
	labelFunc0431_02E9:
		cmps("fishing captains");
		UcMessage("\"Voldin hath long been a bully -- from his days as a guardsman, to his days as a sea captain.\" ~\"Few sailors were willing to serve under him for long.\"");
		UcSay;
		UcMessage("\"When the Council seat opened, they begged Lady Yelinda to appoint Voldin to the post. They told her it was to honor his years of service.\" ~\"But Voldin knows, as doth every other sailor, that it was to bring him in off the sea.\" *\"This was a vaster mistake than anyone could foretell.\"");
		UcSay;
		UI_remove_answer_0D("fishing captains");
	labelFunc0431_0300:
		cmps("Kylista");
		if(!(var0002 == true)) goto labelFunc0431_0317;
		UcMessage("\"Kylista is the Priestess of Beauty.\" ~\"She presides over the Oracle and insures that Fawn adheres to the tenets of Beauty.\" *\"It is her duty to advise Lady Yelinda on spiritual matters.\"");
		UcSay;
		goto labelFunc0431_031F;
	labelFunc0431_0317:
		UcMessage("\"Kylista is the Priestess of Beauty.\" ~\"She is a very ambitious woman who is not above using her feminine wiles or the words of the Oracle to obtain what she wants.\"");
		UcSay;
		UcMessage("\"Kylista holds Zulith in her thrall, I know.\" ~\"I think she seeks to use Voldin to gain power of her own. But Voldin thinks to use her as his own pawn.\" ~\"'Tis a monumental game, and I fear Fawn is the prize.\"");
		UcSay;
	labelFunc0431_031F:
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C("Oracle");
	labelFunc0431_032D:
		cmps("Oracle");
		UcMessage("\"The Oracle is a strange magical device built long ago as an instrument of truth.\" *\"But of late its revelations have become echoes of Kylista and Voldin.\" ~\"I do not know how they accomplish this, but I am certain that their plots are anything but divine.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
		UI_add_answer_0C("revelations");
	labelFunc0431_0347:
		cmps("revelations");
		UcMessage("\"When I was a lad, the Oracle was called on to settle disputes and reveal the truth.\" ~\"Now it pronounces marriages based more on wealth and power than on love.\" ~\"The Oracle hath become a political tool, and I have no idea how.\"");
		UcSay;
		UI_remove_answer_0D("revelations");
	labelFunc0431_035A:
		cmps("fleet");
		UcMessage("\"After the lighthouse was lost, the fleet sailed only in the daylight hours. There was no other choice.\" ~\"But the storms seemed drawn to the water. They took the ships as well, one by one.\"");
		UcSay;
		UI_remove_answer_0D("fleet");
		UI_add_answer_0C("ships");
	labelFunc0431_0374:
		cmps("ships");
		UcMessage("\"A few we know were lost at sea... transformed into blazes knows what.\" ~\"The others could have been transported to the frozen mountains, for all we know. None have been seen again.\"");
		UcSay;
		UI_remove_answer_0D("ships");
	labelFunc0431_0387:
		cmps("goblins");
		UcMessage("\"We have battled goblins since the time of Fawn's founding.\" ~\"We drove the savage creatures from this area when we settled here.\" *\"Because of their innate cowardice, we have always been able to drive them away with ease. Until Pomdirgun gathered them under his leadership.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
		UI_add_answer_0C("Pomdirgun");
	labelFunc0431_03A1:
		cmps("Pomdirgun");
		UcMessage("\"Pomdirgun is far more cunning than normal goblins. He hath attacked Fawn without respite for nearly a year now.\"");
		UcSay;
		UcMessage("\"His attacks have grown more daring of late.\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
		UI_add_answer_0C("attacks");
	labelFunc0431_03BF:
		cmps("attacks");
		UcMessage("\"Without Pomdirgun leading them, the goblins would never have had the nerve to take the Pikeman tower.\"");
		UcSay;
		UcMessage("\"And he was responsible for the death of Seth, Fawn's healer.\"");
		UcSay;
		UcMessage("\"Delphynia is all we have now.\"");
		UcSay;
		UI_remove_answer_0D("attacks");
		UI_add_answer_0C("Delphynia");
	labelFunc0431_03E1:
		cmps("Delphynia");
		UI_remove_answer_0D("Delphynia");
		UcMessage("\"Delphynia is a horticulturist.\" ~\"Her knowledge of herbs made her the only logical choice as healer when Seth was killed.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0431_040E;
		UcMessage("\"She doth seem happier of late, since the Lady did allow the Fellowship scum to return to the city.\"");
		UcSay;
		UcMessage("\"How can she abide that fellow Ruggs? He is so confounded ugly...\"");
		UcSay;
		goto labelFunc0431_041F;
	labelFunc0431_040E:
		UcMessage("\"Delphynia hath been a sad lady since Kylista arranged to exile the Fellowship sailors from the city.\" ~\"She cannot decide whether she is glad that Ruggs is gone, or not. Poor lady.\"");
		UcSay;
		UI_add_answer_0C(["Fellowship sailors", "Ruggs"]);
	labelFunc0431_041F:
		cmps("Fellowship sailors");
		UcMessage("\"They sailed in quite a while ago. We had never seen the like of their ship before.\" ~\"Then one of them proved to be a charismatic leader who spoke eloquently of some new belief called The Fellowship.\" ~\"It appealed to many people, especially the women.\"");
		UcSay;
		UcMessage("\"Kylista was mightily put out, I will tell thee.\" ~\"So she blamed the storms on the strangers and had them banned from the city. She still has everyone atoning for their transgressions against Beauty.\" ~\"She says the storms will not stop until the heavens are appeased. I do not think she knows when -- or if -- they will stop.\"");
		UcSay;
		UI_remove_answer_0D("Fellowship sailors");
	labelFunc0431_0436:
		cmps("Ruggs");
		UcMessage("\"Ruggs is one of the Fellowship sailors.\" ~\"He is a good man who thinks that Delphynia put the stars in the sky.\" ~\"The only problem is that he is hideously ugly.\" *\"Ruggs could curdle milk with that face! But he is a gentle man.\"");
		UcSay;
		UI_remove_answer_0D("Ruggs");
	labelFunc0431_0449:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thou hast been most kind.@", 0x0000);
		Func097F(0xFFCE, "@A pleasure.@", 0x0005);
		Func08AA();
		goto labelFunc0431_0479;
	labelFunc0431_0476:
		goto labelFunc0431_0145;
	labelFunc0431_0479:
		end_conv();
	labelFunc0431_047A:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0432 0x432 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_is_pc_female_6F();
	if(!(event == 0x0007)) goto labelFunc0432_002D;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0432_002D:
		if(!(event == 0x0001)) goto labelFunc0432_0063;
		UI_item_say_4D(0xFE9C, "@Greetings, good sir.@");
		0xFFCE;
		calle();
		Func097F(0xFFCE, (("@Greetings, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFCE, 0x0003);
	labelFunc0432_0063:
		if(!(event == 0x0009)) goto labelFunc0432_0337;
		UI_run_schedule_B7(0xFFCE);
		UI_clear_item_say_4E(0xFFCE);
		UI_show_npc_face0_05(0xFFCE, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFCE, 0x001C);
		if(!(var0004 == false)) goto labelFunc0432_00BE;
		if(!(gflags[003E] == true)) goto labelFunc0432_00A7;
		UcMessage("\"Welcome ta Fawn. I am Great Captain Joth. Thou canst call me Joth.\" *\"'Tis always a pleasure ta meet a Pikeman.\"");
		UcSay;
		goto labelFunc0432_00B1;
	labelFunc0432_00A7:
		UcMessage("\"I cannot remember seeing thee here... I am Great Captain Joth. Thou canst call me Joth.\" *\"Welcome ta Fawn, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0432_00B1:
		UI_set_item_flag_A4(0xFFCE, 0x001C);
		goto labelFunc0432_00C2;
	labelFunc0432_00BE:
		UcMessage("\"Good ta see thee again.\"");
		UcSay;
	labelFunc0432_00C2:
		UI_add_answer_0C(["storms", "goblins", "bye"]);
	labelFunc0432_00D2:
		UcAsk;
		cmps("storms");
		UcMessage("\"'Twas a storm what ran me ship aground and took me from the sea! 'Tis fitting that these daemon storms will be the end of us all.\" *\"They have taken all me old friends -- plucked 'em right off the water or drowned 'em deep. Never thought I'd live ta see the day when Fawn's fleet was brought low.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["aground", "friends", "fleet"]);
	labelFunc0432_00F8:
		cmps("aground");
		UI_remove_answer_0D("aground");
		UcMessage("\"'Twere a handful o' years ago, and me body remembers it like 'twere yesterday. I was fouled in a mass of rigging when me ship was thrown inta the shoals.\"");
		UcSay;
		UcMessage("\"Seth, the healer, patched me up right enough, but that were the end of me sea-goin' days.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0432_0125;
		UcMessage("\"Life's not been the same for me since. I do miss the sea!\"");
		UcSay;
		goto labelFunc0432_0133;
	labelFunc0432_0125:
		UcMessage("\"Never dreamed a crusty old salt like meself would end my days on the Great Captain's Council.\"");
		UcSay;
		UI_add_answer_0C(["Great Captain's Council"]);
	labelFunc0432_0133:
		UI_add_answer_0C(["Seth"]);
	labelFunc0432_013D:
		cmps("Seth");
		UcMessage("\"Seth's gone too. Only the goblins got 'im. Put 'im in their big ol' stewpots, they did.\" *\"What's the world comin' ta, I ask thee? If it isn't vile monsters, 'tis Nature herself what has turned against us.\"");
		UcSay;
		UI_remove_answer_0D("Seth");
		UI_add_answer_0C("Nature herself");
	labelFunc0432_0157:
		cmps("Nature herself");
		UcMessage("\"'Tis plain that thou art not a seaman... The rain's the tears o' Nature. An' the wind, that be the breath o' Nature. Whene'er there be a bad storm, 'tis Nature's anger.\" *\"I'll wager that she be fearsome upset about now.\"");
		UcSay;
		UI_remove_answer_0D("Nature herself");
	labelFunc0432_016A:
		cmps("Great Captain's Council");
		UcMessage("\"Aye. 'Tis the Great Captains what advise Lady Yelinda in the workings of trade and the fleet. Things what some feel that women have no interest in.\" *\"The Great Captains be meself, Garth and Voldin.\"");
		UcSay;
		UI_remove_answer_0D("Great Captain's Council");
		UI_add_answer_0C(["Lady Yelinda", "Garth", "Voldin"]);
	labelFunc0432_018D:
		cmps("Lady Yelinda");
		UcMessage("\"She be the ruler of Fawn. 'Tis Lady Yelinda what doth do the meetin' an' greetin' of all what wish ta trade with Fawn. An' Lady Yelinda be the one what makes the official decrees an' laws an' such. After she counsels with us, of course. Ha.\"");
		UcSay;
		UI_remove_answer_0D("Lady Yelinda");
	labelFunc0432_01A0:
		cmps("Garth");
		UcMessage("\"Garth be no more than a green lad with a passion for the ladies. Never been ta sea that I know of. Some Great Captain that is.\" *\"But 'is family's had money an' lots o' trade smarts. Could do worse for a council member, I reckon. Could put poor ol' drunken Olon in the seat. Ha.\"");
		UcSay;
		UI_remove_answer_0D("Garth");
		UI_add_answer_0C("Olon");
	labelFunc0432_01BA:
		cmps("Olon");
		UcMessage("\"Olon was one of the best fishermen we had, 'til the day he watched his ship go down.\" *\"'Twere durin' one of these weird storms, an' Olon had missed castoff. He was fixin' ta row out ta the ship when it were hit by that freak lightning. All of a sudden, it weren't no ship. It were a grain wagon. All hands drowned, and Olon thinks he's a doomed man.\"");
		UcSay;
		UcMessage("\"If thou wert ta ask me, I'd tell thee that we all be doomed, so why not bury our troubles in the bottom of an ale glass? But no one hath asked ol' Joth nothin', so I go about me business.\"");
		UcSay;
		UI_remove_answer_0D("Olon");
	labelFunc0432_01D1:
		cmps("Voldin");
		UcMessage("\"Now Voldin were a captain, all right. An' a guardsman ta boot. He likes ta run things... be in charge.\" *\"Suppose 'twere only natural that he end on the Council. Now he doth have Garth and me ta bully, and Zulith and Kylista at his beck an' call.\"");
		UcSay;
		UI_remove_answer_0D("Voldin");
		UI_add_answer_0C(["Zulith", "Kylista"]);
	labelFunc0432_01F1:
		cmps("Zulith");
		UcMessage("\"Look for a bright green flare... that'd be Zulith in his flashy Chancellor's robes.\" *\"Puffs like he's important, runnin' messages from the palace ta the Great Captains. But ever'one laughs real quiet behind their sleeves. Zulith is a vengeful little man, and thou had best be wary around him.\"");
		UcSay;
		UI_remove_answer_0D("Zulith");
	labelFunc0432_0204:
		cmps("Kylista");
		if(!(var0002 == true)) goto labelFunc0432_021B;
		UcMessage("\"Now thou art talkin' o' the other end o' Zulith's tether. Kylista is the Priestess of Beauty, but -- between thee an' me -- I think she would rather be called Lady Kylista, if it pleases thee.\" *\"She doth perform a pretty show at the Oracle, no doubt, callin' for those revelations.\"");
		UcSay;
		goto labelFunc0432_0223;
	labelFunc0432_021B:
		UcMessage("\"A wondrous fling between the covers, she is! Kylista certainly knows the secrets of usin' Beauty ta obtain what she wants. If not before the Oracle callin' revelations, then in a man's bedchamber.\"");
		UcSay;
		UcMessage("\"Kylista is the Priestess of Beauty, but -- between thee an' me -- I think she would rather be called Lady Kylista, if it pleases thee. She hath a firm hold on Zulith's tether, 'tis certain.\"");
		UcSay;
	labelFunc0432_0223:
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C(["Oracle", "revelations"]);
	labelFunc0432_0237:
		cmps("Oracle");
		UcMessage("\"'Tis a wonder ta behold, make no mistake. A true magical type of thing. Used ta draw quite a crowd, before the storms went so bad.\" *\"Pretty ta look at, for sure.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
	labelFunc0432_024A:
		cmps("revelations");
		UcMessage("\"Straight from the heavens, ta hear Kylista speak of it. Never found much use in 'em meself. A fisherman don't see much beauty out haulin' in nets all day long.\"");
		UcSay;
		UI_remove_answer_0D("revelations");
	labelFunc0432_025D:
		cmps("friends");
		UcMessage("\"Good seamen all. Fishermen an' captains alike. These cursed storms have taken every good man from Fawn's shores an' left me alone with these land crawlers.\" *\"'Tis enough ta make a man think about walkin' inta the sea at high tide...\"");
		UcSay;
		UI_remove_answer_0D("friends");
	labelFunc0432_0270:
		cmps("fleet");
		UI_remove_answer_0D("fleet");
		UcMessage("\"Fawn used ta be able ta bring in enough fish for us an' the other cities besides. Now there's nothing but a few old rowboats left.");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0432_0299;
		UcMessage("\"An' there be nobody brave enough to even sail the rowboats! Not in these storms...\"");
		UcSay;
		goto labelFunc0432_02A4;
	labelFunc0432_0299:
		UcMessage("\"An' what's worse, Lady Yelinda tells me that I'm ta be in charge of the restorations!\"");
		UcSay;
		UI_add_answer_0C("restorations");
	labelFunc0432_02A4:
		cmps("restorations");
		UcMessage("\"Restorations she calls it! Like there was something ta restore! But drawn the reports and plans, I have. As ordered.\"");
		UcSay;
		UcMessage("\"But tell me, if thou canst, how Fawn is ta build ships when most of the shipwrights are drowned? Or tell me how we're ta acquire the wood ta build with if these storms have us runnin' like rabbits ta a hole?\"");
		UcSay;
		UcMessage("\"An' Voldin sits holdin' the money tellin' me 'tis unsafe ta begin buildin'. As if I had ballast for brains! But he doth not have ta report to Lady Yelinda. I do!\"");
		UcSay;
		UI_remove_answer_0D("restorations");
	labelFunc0432_02BF:
		cmps("goblins");
		UcMessage("\"The goblins have always been like fleas infestin' this part o' the land. We'd stomp on 'em good an' hard, an' they'd go crawl back ta whate'er hole they crawled out of.\" *\"But since this Pomdirgun brute came along, there's been no drivin' 'em back.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
		UI_add_answer_0C("Pomdirgun");
	labelFunc0432_02D9:
		cmps("Pomdirgun");
		UcMessage("\"Pomdirgun's larger than most goblins. Certainly meaner or he would never have gotten the brutes all under his command. I'm almost willin' ta believe that he's half daemon, like some folk say.\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
		UI_add_answer_0C("daemon");
	labelFunc0432_02F3:
		cmps("daemon");
		UcMessage("\"There are daemon ruins all around this land. Thou canst not miss them -- they are all covered with evil lookin' serpents.\" *\"Some say that the daemons are still here. They say that civilized man drove them underground when we settled here.\" ~\"Haven't ever seen one. Wouldn't want to neither.\"");
		UcSay;
		UI_remove_answer_0D("daemon");
	labelFunc0432_0306:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFFCE, "@Keep a weather eye!@", 0x0002);
		Func08AA();
		goto labelFunc0432_0336;
	labelFunc0432_0333:
		goto labelFunc0432_00D2;
	labelFunc0432_0336:
		end_conv();
	labelFunc0432_0337:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0955 0x955 ();
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0433 0x433 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0007)) goto labelFunc0433_002D;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0433_002D:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(0xFFCD) == 0x0007))) goto labelFunc0433_0094;
		var0004 = ["@Garth will save me...@", (("@Damn " + var0002) + "!@"), "@I need more food!@", "@Jailer!@", "@Be patient.@", "@Curse that weaver!@"];
		if(!UI_npc_nearby_3A(Kylista)) goto labelFunc0433_007D;
		var0004 = (var0004 & ("@Be silent, Priestess!@" & ("@Pleasure me, Kylista!@" & "@Our time shall come...@")));
	labelFunc0433_007D:
		Func097F(0xFFCD, var0004[UI_get_random_00(UI_get_array_size_73(var0004))], 0x0000);
	labelFunc0433_0094:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFCD) != 0x000F))) goto labelFunc0433_0125;
		0xFFCD;
		calle();
		if(!((gflags[0170] && gflags[0172]) && (!gflags[016E]))) goto labelFunc0433_00FD;
		UI_item_say_4D(0xFE9C, "@Hail, criminal!@");
		UI_set_schedule_type_25(0xFFCD, 0x000F);
		Func097F(0xFFCD, "@Not thee!@", 0x0002);
		0xFFCD;
		calle();
		var0003 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x23, 0x55, 0x0433], 0x0007);
		goto labelFunc0433_0125;
	labelFunc0433_00FD:
		UI_item_say_4D(0xFE9C, "@A moment of thy time, sir.@");
		Func097F(0xFFCD, (("@At thy service, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFCD, 0x0003);
	labelFunc0433_0125:
		if(!(event == 0x0002)) goto labelFunc0433_0162;
		UI_run_schedule_B7(0xFFCD);
		UI_clear_item_say_4E(0xFFCD);
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"So thou hast come to pity me, eh, ");
		UcMessage(var0002);
		UcMessage("? Well, I'm not done yet!\"");
		UcSay;
		UI_add_answer_0C(["false Oracle", "Kylista", "not done yet"]);
		goto labelFunc0433_0220;
	labelFunc0433_0162:
		if(!(event == 0x0009)) goto labelFunc0433_05E8;
		UI_run_schedule_B7(0xFFCD);
		UI_clear_item_say_4E(0xFFCD);
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		var0005 = UI_get_item_flag_A3(0xFFCD, 0x001C);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0433_01BD;
		UcMessage("\"Thou dost dare to confront me? Thou, that didst bring the blasphemer to Lady Yelinda!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFCD, "@Spare me thy presence!@", 0x0000);
		UI_set_schedule_type_25(0xFFCD, 0x0014);
		abrt();
	labelFunc0433_01BD:
		if(!(var0005 == false)) goto labelFunc0433_0209;
		if(!(gflags[003E] == true)) goto labelFunc0433_01E3;
		if(!(var0001 == true)) goto labelFunc0433_01DC;
		UcMessage("\"Another of Monitor's female Pikemen, I see. Odd that they encourage women to disfigure themselves.\" *\"I am Great Captain Voldin.\"");
		UcSay;
		goto labelFunc0433_01E0;
	labelFunc0433_01DC:
		UcMessage("\"Welcome, good Pikeman. Thy presence honors us.\" *\"I am Great Captain Voldin.\"");
		UcSay;
	labelFunc0433_01E0:
		goto labelFunc0433_01FC;
	labelFunc0433_01E3:
		if(!(var0001 == true)) goto labelFunc0433_01F8;
		UcMessage("\"Thy Beauty enriches us. Welcome to Fawn, ");
		UcMessage(var0000);
		UcMessage(".\" *\"I am Great Captain Voldin.\"");
		UcSay;
		goto labelFunc0433_01FC;
	labelFunc0433_01F8:
		UcMessage("\"It is a pleasure to meet thee. I am Great Captain Voldin.\" *\"Fawn is in sore need of more men to help hold the Goblins at bay.\"");
		UcSay;
	labelFunc0433_01FC:
		UI_set_item_flag_A4(0xFFCD, 0x001C);
		goto labelFunc0433_0213;
	labelFunc0433_0209:
		UcMessage("\"How might I be of service this time, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0433_0213:
		UI_add_answer_0C(["storms", "Goblins"]);
	labelFunc0433_0220:
		UI_add_answer_0C("bye");
	labelFunc0433_0227:
		UcAsk;
		cmps("false Oracle");
		UI_remove_answer_0D("false Oracle");
		UcMessage("\"The Oracle hath always been a fraud! Dost thou not comprehend?\"");
		UcSay;
		UcMessage("\"Even in our ancient homeland, the Statue of Beauty was controlled by the Great Captains. It said what we told it to.\"");
		UcSay;
		UI_add_answer_0C(["fraud", "Why?"]);
	labelFunc0433_024E:
		cmps("fraud");
		UI_remove_answer_0D("fraud");
		UcMessage("\"For centuries, the women of our culture have believed themselves to be divine. Yet the men governed secretly, through the revelations issued by the Oracle.\"");
		UcSay;
		UcMessage("\"Thou hast destroyed a great tradition, foreigner! It was glorious, while it lasted...\"");
		UcSay;
	labelFunc0433_0265:
		cmps("Why?");
		UI_remove_answer_0D("Why?");
		if(!UI_is_pc_female_6F()) goto labelFunc0433_0282;
		UcMessage("\"Thou wouldst not understand...\"");
		UcSay;
		goto labelFunc0433_0290;
	labelFunc0433_0282:
		UcMessage("\"Learn from our experience, ");
		UcMessage(var0002);
		UcMessage("! Women are easily controlled by their vanity. Tell them that they are superior -- and then manipulate them. That's the key!\"");
		UcSay;
		UcMessage("\"The females of our race are exceedingly willful, yet they lack common sense. Without men to dominate them, they would ruin everything.\"");
		UcSay;
	labelFunc0433_0290:
		cmps("Kylista");
		UI_remove_answer_0D("Kylista");
		UcMessage("\"She was merely our pawn -- a pretty thing, clever in a limited way, but always our tool.\"");
		UcSay;
		if(!UI_npc_nearby_3A(Kylista)) goto labelFunc0433_02D6;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"Close thy trap, Voldin, or I'll scratch thine eyes out!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Such a clever threat, girl! Dost thou not realize that thou dost live at my pleasure?\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0433_02D6;
		UcMessage("\"Fear not -- so long as the nights remain cold, I shall have a use for thee...\"");
		UcSay;
	labelFunc0433_02D6:
		cmps("not done yet");
		UI_remove_answer_0D("not done yet");
		UcMessage("\"Surely, thou dost not think that Leon the Preacher and Alyssand the Weaver have won? They don't have the strength to govern.\"");
		UcSay;
		UcMessage("\"Give it time. Perhaps three moons. And then the people will clamor for the old ways, and remember Voldin in his jail cell.\"");
		UcSay;
		UcMessage("\"Then I shall rule as I always deserved, as King of Fawn!\"");
		UcSay;
	labelFunc0433_02F1:
		cmps("storms");
		UcMessage("\"The storms are a regrettable consequence of incurring the heavens' displeasure. I'm certain that our punishment will end soon if we adhere to Beauty's truth.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C(["the heavens' displeasure", "Beauty's truth"]);
	labelFunc0433_0311:
		cmps("the heavens' displeasure");
		UcMessage("\"Out of misguided kindness, we allowed infidels to enter our city. They spread their contagion, corrupting many of our people to their misguided ways. This displeased the heavens. The storms were clearly sent to punish us.\"");
		UcSay;
		UI_remove_answer_0D("the heavens' displeasure");
		UI_add_answer_0C(["infidels", "misguided ways"]);
	labelFunc0433_0331:
		cmps("infidels");
		UcMessage("\"The sailors camped outside of the city are infidels. They do not follow the path of Beauty.\" *\"They came to our city claiming to be from Britannia, which -- as any sailor knows -- is pure fiction. The Priestess was right to remove their ugly dishonesty from our midst.\"");
		UcSay;
		UI_remove_answer_0D("infidels");
		UI_add_answer_0C("Priestess");
	labelFunc0433_034B:
		cmps("Priestess");
		UcMessage("\"Kylista is the Priestess of Beauty. She receives the wisdom of the Oracle and interprets it for those of us who cannot understand the words of the heavens.\" *\"Kylista tried to dissuade us from allowing that false prophet into our city. Now we are paying for our folly.\"");
		UcSay;
		UI_remove_answer_0D("Priestess");
		UI_add_answer_0C("Oracle");
	labelFunc0433_0365:
		cmps("Oracle");
		UcMessage("\"The Oracle is an instrument of the heavens. Its words are divine revelations to those who follow Beauty's truth.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
		UI_add_answer_0C("revelations");
	labelFunc0433_037F:
		cmps("revelations");
		UcMessage("\"Thou hast not heard a revelation from the Oracle yet?\"");
		UcSay;
		var0006 = Func0955();
		if(!var0006) goto labelFunc0433_039E;
		UcMessage("\"Then thou knowest that these are words meant to enlighten and guide our lives to Beauty.\"");
		UcSay;
		goto labelFunc0433_03A2;
	labelFunc0433_039E:
		UcMessage("\"Thou shouldst go to the Temple. Judging by the time, there will be another revelation soon.\" *\"I'm certain that thou wilt find it an enlightening experience.\"");
		UcSay;
	labelFunc0433_03A2:
		UI_remove_answer_0D("revelations");
	labelFunc0433_03A9:
		cmps("misguided ways");
		UcMessage("\"There is one among them, Leon, who preaches of something they call The Fellowship. While I'll grant that he is a powerful speaker, he is clearly a misguided fool.\" *\"Who in their right mind would believe that the world could be changed by such simplistic views?\"");
		UcSay;
		UI_remove_answer_0D("misguided ways");
		UI_add_answer_0C("simplistic views");
	labelFunc0433_03C3:
		cmps("simplistic views");
		if(!(var0001 == true)) goto labelFunc0433_03E0;
		UcMessage("\"Forgive me, ");
		UcMessage(var0000);
		UcMessage(". I did not intend to enter a philosophical discussion. Thy Beauty distracted me, I must confess.\"");
		UcSay;
		goto labelFunc0433_03FB;
	labelFunc0433_03E0:
		UcMessage("\"What man could honestly expect that the neighbor who covets thy land would not do everything possible to acquire it?\" *\"Wouldst thou, like a trusting woman, trust such a neighbor to act in Unity with thee, and work to become Worthy of owning thy land?\"");
		UcSay;
		var0007 = Func0955();
		if(!var0007) goto labelFunc0433_03F7;
		UcMessage("\"Then thou art destined for a dismal life, my friend. For the world is what thou makest of it. Thou canst acquire only what thou takest.\"");
		UcSay;
		goto labelFunc0433_03FB;
	labelFunc0433_03F7:
		UcMessage("\"Of course not! Thou art a man of the world. Thou knowest that thou canst acquire only what thou takest.\"");
		UcSay;
	labelFunc0433_03FB:
		UI_remove_answer_0D("simplistic views");
	labelFunc0433_0402:
		cmps("Beauty's truth");
		UcMessage("\"Everyone is drawn to that which is beautiful. Therefore, if we strive to honor and protect all things beautiful, our lives will be fulfilled.\" *\"All good and honest people are Beautiful.\"");
		UcSay;
		UI_remove_answer_0D("Beauty's truth");
	labelFunc0433_0415:
		cmps("Goblins");
		if(!(gflags[003E] == true)) goto labelFunc0433_045F;
		if(!(gflags[014E] == true)) goto labelFunc0433_0443;
		if(!(var0001 == true)) goto labelFunc0433_043C;
		UcMessage("\"Please convey Fawn's thanks to thy fellow Pikemen who retook the tower from Pomdirgun and the Goblins. 'Twas most nobly done and Monitor doth have Lady Yelinda's gratitude.\"");
		UcSay;
		goto labelFunc0433_0440;
	labelFunc0433_043C:
		UcMessage("\"Thou hast Fawn's thanks, noble Pikeman. Lady Yelinda was quite distraught until thou didst retake the tower from Pomdirgun and the Goblins.\"");
		UcSay;
	labelFunc0433_0440:
		goto labelFunc0433_045C;
	labelFunc0433_0443:
		if(!(var0001 == true)) goto labelFunc0433_0458;
		UcMessage("\"Not to belittle thy prowess, ");
		UcMessage(var0000);
		UcMessage(", but thou shouldst remain here in safety with Lady Yelinda. Leave the retaking of the tower to thy larger male companions.\" *\"The battle will likely be more fierce than thou canst imagine with Pomdirgun goading them on.\"");
		UcSay;
		goto labelFunc0433_045C;
	labelFunc0433_0458:
		UcMessage("\"I will feel more secure in the knowledge that thou wilt be among the fighters seeking to reclaim our tower. With Pomdirgun goading them on, the battle will most likely be quite fierce.\" *\"I wish it were not my duty to protect Lady Yelinda. I would join thee in the fray if I could.\"");
		UcSay;
	labelFunc0433_045C:
		goto labelFunc0433_047E;
	labelFunc0433_045F:
		if(!(var0001 == true)) goto labelFunc0433_0474;
		UcMessage("\"Thou shouldst have remained in the safety of the city, noble ");
		UcMessage(var0000);
		UcMessage(". The Pikemen have been driven from the tower by Pomdirgun and his Goblin hordes.\" *\"I have advised Lady Yelinda to order that the gates remain closed at night until the tower is retaken.\"");
		UcSay;
		goto labelFunc0433_047E;
	labelFunc0433_0474:
		UcMessage("\"Thou art just in time for a fine fight, brave ");
		UcMessage(var0000);
		UcMessage("! Pomdirgun and his Goblin hordes must be driven from the Pikeman tower.\" *\"Lady Yelinda will be most grateful to all who join in the fray.\"");
		UcSay;
	labelFunc0433_047E:
		UI_remove_answer_0D("Goblins");
		UI_add_answer_0C(["Lady Yelinda", "Pomdirgun"]);
	labelFunc0433_0492:
		cmps("Lady Yelinda");
		UcMessage("\"Lady Yelinda is the most beautiful woman in the city. She rules Fawn with the aid of the Chancellor and the Great Captain's Council.\"");
		UcSay;
		UI_remove_answer_0D("Lady Yelinda");
		UI_add_answer_0C(["Chancellor", "Great Captain's Council"]);
	labelFunc0433_04B2:
		cmps("Chancellor");
		UcMessage("\"The Chancellor is Lady Yelinda's chief assistant. He conveys messages to and from the Council to her Ladyship and makes public proclamations of Lady Yelinda's judgments.\" *\"If thou wishest a matter brought before her Ladyship, thou must first speak with Zulith. Look for a small man wearing bright green robes. That will be the Chancellor.\"");
		UcSay;
		UI_remove_answer_0D("Chancellor");
	labelFunc0433_04C5:
		cmps("Great Captain's Council");
		UcMessage("\"The Great Captains take much of the weight of mundane affairs from Lady Yelinda's schedule. Garth, Joth and I oversee trade and the disposition of the fleets.\"");
		UcSay;
		UI_remove_answer_0D("Great Captain's Council");
		UI_add_answer_0C(["Garth", "Joth", "fleet"]);
	labelFunc0433_04E8:
		cmps("Garth");
		UcMessage("\"Garth is merely a lad. He could never have gotten a Council seat without his family's money.\" *\"He spends his days chasing skirts. Which is just as well, as it keeps him out from under foot.\"");
		UcSay;
		UI_remove_answer_0D("Garth");
	labelFunc0433_04FB:
		cmps("Joth");
		UcMessage("\"Joth is an old fishing captain who had to be forcibly removed from the fleet, I'm afraid. I don't think that he quite realizes that he isn't on the deck of a ship anymore, poor man.\" *\"He thinks we can rebuild the fleet with little or no money. We humor him as best we can.\"");
		UcSay;
		UI_remove_answer_0D("Joth");
	labelFunc0433_050E:
		cmps("fleet");
		UcMessage("\"These severe storms have caused the total loss of all our fishing ships. Fawn once supplied fish to the other cities. But that is a thing of the past, I'm afraid.\" *\"Even if we were able to rebuild the ships, we have almost no able-bodied men to crew them. This may be the death knell of Fawn without the proper guidance.\"");
		UcSay;
		UI_remove_answer_0D("fleet");
	labelFunc0433_0521:
		cmps("Pomdirgun");
		UcMessage("\"I do not know what evil spawned such a fearful creature. Pomdirgun is easily larger than the other Goblins, and twice as fierce. All the other Goblins fear him.\" *\"His first foray against Fawn cost us our healer, Seth. And now he hath led the Goblins to overtake the Pikeman tower. I'd give much to see his head on a pike!\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
		UI_add_answer_0C("Seth");
	labelFunc0433_053B:
		cmps("Seth");
		UcMessage("\"Seth was a stubborn man. But a good healer. He refused to take a guard contingent along with him to hunt herbs. He said that the guards did nothing but trample what he was looking for.\" *\"Unfortunately, such stubbornness cost him his life.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc0433_0556;
		UcMessage("\"The details are best left unmentioned. 'Tis not a tale for a beautiful lady.\" *\"The result is that Delphynia is all Fawn doth have in the way of a healer.\"");
		UcSay;
		goto labelFunc0433_055A;
	labelFunc0433_0556:
		UcMessage("\"By the time the guards caught up with the foul creatures, they had eaten all but his head!\" *\"But perhaps the worst part of the tale is that Fawn is left with only Delphynia as a healer!\"");
		UcSay;
	labelFunc0433_055A:
		UI_remove_answer_0D("Seth");
		UI_add_answer_0C("Delphynia");
	labelFunc0433_0568:
		cmps("Delphynia");
		UcMessage("\"Delphynia is a nice enough woman. But she is no healer. She's a horticulturist. Not even an herbalist. But she's all we have until these cursed storms lighten.\"");
		UcSay;
		UcMessage("\"I fear, however, that she hath fallen under the spell of one of those infidels! Ruggs, I think his name is.\"");
		UcSay;
		UI_remove_answer_0D("Delphynia");
		UI_add_answer_0C("Ruggs");
	labelFunc0433_0586:
		cmps("Ruggs");
		UcMessage("\"Ruggs is so ugly that his sins are written plain for all to see. But Delphynia seems to find him compelling. I'm told he speaks sweetly, as doth his companion Leon.\" *\"But I expect all evil things are compelling in some manner. Else how would any good person be tempted by them?\"");
		UcSay;
		UI_remove_answer_0D("Ruggs");
	labelFunc0433_0599:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		if(!((gflags[0170] && gflags[0172]) && (!gflags[016E]))) goto labelFunc0433_05D2;
		Func097F(0xFFCD, "@Thou shalt see!@", 0x0002);
		goto labelFunc0433_05DE;
	labelFunc0433_05D2:
		Func097F(0xFFCD, "@Walk in Beauty.@", 0x0002);
	labelFunc0433_05DE:
		Func08AA();
		goto labelFunc0433_05E7;
	labelFunc0433_05E4:
		goto labelFunc0433_0227;
	labelFunc0433_05E7:
		end_conv();
	labelFunc0433_05E8:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func09AE 0x9AE (var var0000);
extern Func083D 0x83D ();
extern Func083E 0x83E ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func08A9 0x8A9 ();
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0434 0x434 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = UI_game_hour_45();
	var0001 = Func0954();
	if(!(var0000 < 0x000C)) goto labelFunc0434_0020;
	var0002 = "morning";
	goto labelFunc0434_0039;
	labelFunc0434_0020:
		if(!(var0000 > 0x0011)) goto labelFunc0434_0033;
		var0002 = "evening";
		goto labelFunc0434_0039;
	labelFunc0434_0033:
		var0002 = "afternoon";
	labelFunc0434_0039:
		if(!(event == 0x0007)) goto labelFunc0434_0053;
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0434_0053:
		if(!(event == 0x0001)) goto labelFunc0434_0099;
		UI_item_say_4D(0xFE9C, (("@Good " + var0002) + ", barkeep.@"));
		Jendon;
		calle();
		Func097F(Jendon, (((("@Good " + var0002) + ", ") + var0001) + ".@"), 0x0002);
		UI_set_schedule_type_25(Jendon, 0x0003);
	labelFunc0434_0099:
		if(!(event == 0x0009)) goto labelFunc0434_14D0;
		UI_run_schedule_B7(Jendon);
		UI_clear_item_say_4E(Jendon);
		UI_show_npc_face0_05(Jendon, 0x0000);
		var0003 = 0x0005;
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0434_00E7;
		UcMessage("\"I should have known that thou wert trouble! Askin' all those questions...\"");
		UcSay;
		UcMessage("\"I shall not speak to thee until the Oracle hath ruled!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Jendon, "@Be gone!@", 0x0000);
		abrt();
	labelFunc0434_00E7:
		if(!(!UI_get_item_flag_A3(Jendon, 0x001C))) goto labelFunc0434_0146;
		if(!UI_is_pc_female_6F()) goto labelFunc0434_0122;
		UcMessage("\"I am Jendon, ");
		UcMessage(var0001);
		UcMessage(", proprietor of the Broken Oar. Hast thou need of something here?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0434_011B;
		UcMessage("\"How may I help thee this ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		goto labelFunc0434_011F;
	labelFunc0434_011B:
		UcMessage("\"Then thou shouldst be on thy way. 'Tis not a fit place for such a beautiful lady as thyself.\"");
		UcSay;
	labelFunc0434_011F:
		goto labelFunc0434_0132;
	labelFunc0434_0122:
		UcMessage("\"The name's Jendon, ");
		UcMessage(var0001);
		UcMessage(", proprietor of the Broken Oar. What can I do for thee this ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0434_0132:
		UI_set_item_flag_A4(Jendon, 0x001C);
		UI_add_answer_0C("proprietor");
		goto labelFunc0434_0151;
	labelFunc0434_0146:
		UcMessage("\"Returned so soon? How may I help thee now?\"");
		UcSay;
		UI_add_answer_0C("duties");
	labelFunc0434_0151:
		if(!Func0942(0xFFC6)) goto labelFunc0434_0160;
		var0003 = 0x0003;
	labelFunc0434_0160:
		if(!(UI_get_schedule_type_24(Jendon) == 0x0010)) goto labelFunc0434_0174;
		var0003 = 0x0001;
	labelFunc0434_0174:
		UI_add_answer_0C(["information"]);
		if(!(UI_get_schedule_type_24(Jendon) == 0x0017)) goto labelFunc0434_0193;
		UI_add_answer_0C("buy");
	labelFunc0434_0193:
		UI_add_answer_0C("bye");
		var0004 = 0x0000;
	labelFunc0434_01A0:
		UcAsk;
		cmps("buy");
		UcMessage("\"Dost thou desire a stiff drink, a warm meal, or a room where thou canst rest?\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["food", "drink", "room", "nothing"]);
	labelFunc0434_01C6:
		cmps("proprietor", "duties");
		UI_remove_answer_0D(["proprietor", "duties"]);
		UcMessage("\"I used ta serve the sailors that spent their days drinkin' sea spray and their nights drinkin' ale. Not a pretty bunch, but they spent enough ta keep a roof over mine head.\"");
		UcSay;
		UcMessage("\"But since those cursed storms destroyed the fleet, there hath been precious little business.\"");
		UcSay;
		UcMessage("\"Used ta have a lad that served the drinks for me. His mother cooked and did the washin' up. But Danysia became ill and died -- the healers could do nothing -- and young Rindor went ta sea... never returned.\"");
		UcSay;
		UI_add_answer_0C(["storms"]);
	labelFunc0434_01F4:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Products of evil, I tell ya! We be folks as live off the bounty of the sea. But these storms do not like nothin' on the water!\"");
		UcSay;
		UcMessage("\"All the fishin' ships have either been destroyed or transformed inta somethin' that was never meant ta touch water. That was what happened ta Rindor -- his ship suddenly became a grain wagon. Wagons don't float too good...\"");
		UcSay;
	labelFunc0434_020B:
		cmps("room");
		UcMessage("\"Used ta rent my sleepin' rooms regularly ta strangers that came through. But we've had only a few visitors since the storms began.\"");
		UcSay;
		UcMessage("\"The cost for a room is 12 filari per person. Dost thou want one?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0434_02AF;
		var0005 = UI_get_party_list_2B();
		var0006 = 0x0000;
		enum();
	labelFunc0434_022F:
		for (var0009 in var0005 with var0007 to var0008 atend labelFunc0434_0247);
		var0006 = (var0006 + 0x0001);
		goto labelFunc0434_022F;
	labelFunc0434_0247:
		var000A = (var0006 * 0x000C);
		var000B = UI_count_objects_31(0xFE9B, 0x03B4, 0xFE99, 0xFE99);
		if(!(var000B >= var000A)) goto labelFunc0434_02A8;
		UcMessage("\"Here is thy key.\"");
		UcSay;
		var0000 = Func099B(0xFE9C, 0x0001, 0x0281, 0x000B, 0x0004, 0x0000, true);
		var000C = UI_remove_party_items_34(var000A, 0x0284, 0xFE99, 0xFE99, 0x0000);
		UcMessage("\"Thy room be upstairs.\"");
		UcSay;
		goto labelFunc0434_02AC;
	labelFunc0434_02A8:
		UcMessage("\"Thou dost not have enough filari! If thou canst not pay, then I do not rent ye a room!\"");
		UcSay;
	labelFunc0434_02AC:
		goto labelFunc0434_02B3;
	labelFunc0434_02AF:
		UcMessage("\"Some other time, then.\"");
		UcSay;
	labelFunc0434_02B3:
		cmps("information");
		if(!((!gflags[01A0]) || (UI_get_timer_7A(0x0002) > 0x0004))) goto labelFunc0434_02F2;
		UcMessage("\"What be thou interested in?\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0001;
		UI_add_answer_0C(["people", "places", "strange objects", "nothing more"]);
		goto labelFunc0434_02FC;
	labelFunc0434_02F2:
		UcMessage("\"Return later, ");
		UcMessage(var0001);
		UcMessage(". This be a bad time now.\"");
		UcSay;
	labelFunc0434_02FC:
		cmps("people");
		UcMessage("\"Who dost thou wish ta know about -- townsfolk or strangers?\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0002;
		UI_add_answer_0C(["townsfolk", "strangers", "nothing more"]);
	labelFunc0434_0322:
		cmps("townsfolk");
		UI_remove_answer_0D("townsfolk");
		UcMessage("\"Whom dost thou wish ta know about?\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0003;
		UI_add_answer_0C(["the sailors", "the shopkeepers", "the healers", "the Priestess", "town leaders", "nothing more"]);
	labelFunc0434_0358:
		cmps("the sailors");
		UI_remove_answer_0D("the sailors");
		UcMessage("\"These cursed wizard-storms have destroyed all of our ships. Olon is the only sailor left alive in the city.\"");
		UcSay;
		UcMessage("\"Used to be a mate on one of the fishin' ships...\"");
		UcSay;
		UcMessage("\"'til it sank.\"");
		UcSay;
		UcMessage("\"Could say he's lucky... though he doth not think so. He doth spend most of his time here drinking... I fear that he is a lost soul. He even refuses ta go ta the Temple!\"");
		UcSay;
		var0003 = Func09AE(var0003);
	labelFunc0434_0380:
		cmps("the shopkeepers");
		UI_remove_answer_0D("the shopkeepers");
		UcMessage("\"Aside from me, there be only old Delin the Provisioner, and he be half-crazy.\"");
		UcSay;
		UcMessage("\"Delin hath not been quite right since his wife died, and the Magister came to take away his infant child.\"");
		UcSay;
		UcMessage("\"His daughter, Alyssand, looks after him these days. She doth make certain that he doth not wander away.\"");
		UcSay;
		UI_add_answer_0C("Magister");
		var0003 = Func09AE(var0003);
	labelFunc0434_03AB:
		cmps("Magister");
		UI_remove_answer_0D("Magister");
		UcMessage("\"Thou dost not know of the Magister? The Mage who comes in the night and steals our children away?\"");
		UcSay;
		UcMessage("\"The Mages of Moonshade claim that it would be dangerous for magically-gifted children to grow up without proper training.\"");
		UcSay;
		UcMessage("\"I do not like it, but there is not much mortals can do against a City of Mages...\"");
		UcSay;
		var0003 = Func09AE(var0003);
	labelFunc0434_03CF:
		cmps("the healers");
		UI_remove_answer_0D("the healers");
		UcMessage("\"Last one we had was killed by the Goblins a few months ago. Closest thing we have now is the herbalist, Delphynia.\"");
		UcSay;
		UcMessage("\"Little slip of a woman. She's usually at her greenhouse or at the healer's hall.\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0434_03F4;
		UcMessage("\"Some of the townsfolk are a bit shy of having a female healer -- it doth go against tradition, if thou dost see? But it doth not bother me!\"");
		UcSay;
		goto labelFunc0434_03F8;
	labelFunc0434_03F4:
		UcMessage("\"But I say that 'tis no duty for a woman. I know thou wouldst agree with me, mate.\"");
		UcSay;
	labelFunc0434_03F8:
		cmps("the Priestess");
		UI_remove_answer_0D("the Priestess");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0434_0427;
		UcMessage("\"Kylista hath been imprisoned since the trial, ");
		UcMessage(var0001);
		UcMessage(". I think the experience hath been a boon to her.\"");
		UcSay;
		UcMessage("\"She is a changed woman, I think. Hast thou visited her in her cell?\"");
		UcSay;
		goto labelFunc0434_042F;
	labelFunc0434_0427:
		UcMessage("\"Kylista is the Priestess of Beauty. Ta her falls the duty of keeping Fawn on the path of Beauty through these dark days.\"");
		UcSay;
		UcMessage("\"An' that be a large job for such slender shoulders, make no mistake!\"");
		UcSay;
	labelFunc0434_042F:
		var0003 = Func09AE(var0003);
	labelFunc0434_0438:
		cmps("town leaders");
		UI_remove_answer_0D("town leaders");
		UcMessage("\"Well now, there be plenty of those here. Who dost thou wish ta know about?\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0004;
		UI_add_answer_0C(["Lady Yelinda", "Chancellor Zulith", "Commander Jorvin", "the Great Captains", "nothing more"]);
	labelFunc0434_046B:
		cmps("Lady Yelinda");
		UI_remove_answer_0D("Lady Yelinda");
		UcMessage("\"Lady Yelinda be the ruler here in Fawn. She be Fawn's living symbol of Beauty.\"");
		UcSay;
		UcMessage("\"She be a wise lady. Always concerned with what the people think -- Always listens ta any advice offered.\"");
		UcSay;
		var0003 = Func09AE(var0003);
	labelFunc0434_048B:
		cmps("Chancellor Zulith");
		UI_remove_answer_0D("Chancellor Zulith");
		UcMessage("\"I hate to speak ill of anyone, but for Zulith I shall make an exception.\"");
		UcSay;
		UcMessage("\"He is called the Chancellor, but Zulith is little more than a messenger with an over-full ego. Thou wouldst be wise ta steer clear of him, for he takes offense at petty things.\"");
		UcSay;
		var0003 = Func09AE(var0003);
	labelFunc0434_04AB:
		cmps("Commander Jorvin");
		UI_remove_answer_0D("Commander Jorvin");
		UcMessage("\"Jorvin be the Commander of the Fawn Guards. He is a fine, strong lad. And I think that he is sweet on the Lady.\"");
		UcSay;
		if(!Func0942(0xFFC6)) goto labelFunc0434_04E4;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Aye! An' the Lady be sweet on him, too!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou shouldst not speak of the Lady so!\"");
		UcSay;
	labelFunc0434_04E4:
		var0003 = Func09AE(var0003);
	labelFunc0434_04ED:
		cmps("the Great Captains");
		UI_remove_answer_0D("the Great Captains");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0434_052A;
		UcMessage("\"Why, they have been in disrepute ever since the trial. Joth hath taken to drinking, and as for Garth -- well, no woman will give him the time of day!");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc0434_0523;
		UcMessage("\"As for old Voldin, I think he is not greatly missed.\"");
		UcSay;
		goto labelFunc0434_0527;
	labelFunc0434_0523:
		UcMessage("\"Voldin doth scheme endlessly in his cell, but what can come of it?\"");
		UcSay;
	labelFunc0434_0527:
		goto labelFunc0434_053A;
	labelFunc0434_052A:
		UcMessage("\"To ease the burdens which Lady Yelinda must carry, the Great Captains assist her in ruling the city.\"");
		UcSay;
		UcMessage("\"Voldin be the eldest of the three Great Captains. They say he's a wise man, but I do not much care for him.\"");
		UcSay;
		UcMessage("\"Then there's Joth, an old sea-farin' man and a good customer of mine. But since he was hurt in the storms, he hath been a bit gruff.\"");
		UcSay;
		UcMessage("\"Captain Garth is the youngest of Lady Yelinda's advisors. He is always trailing some lady's skirts, that puppy!\"");
		UcSay;
	labelFunc0434_053A:
		var0003 = Func09AE(var0003);
	labelFunc0434_0543:
		cmps("strangers");
		UI_remove_answer_0D("strangers");
		UcMessage("\"The only visitors we have had of late are connected with the strange voyagers from a distant land. First came the sailors and scholars, and lastly, their leader.\"");
		UcSay;
		UcMessage("\"Who wouldst thou care to hear about?\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0003;
		UI_add_answer_0C(["sailors", "scholars", "leader", "nothing more"]);
	labelFunc0434_0577:
		cmps("sailors");
		UI_remove_answer_0D("sailors");
		UcMessage("\"They were the crew of that ship that sailed from the other side of the world -- said something about Serpent Pillars in the ocean.\"");
		UcSay;
		UcMessage("\"Brunt, Ruggs, Deadeye, Kalen... I found them congenial enough. Excepting Kalen... he enjoyed arguing with my customers.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0434_05A4;
		UcMessage("\"The Lady hath admitted them back into the city, thou dost know... They have not made trouble yet, but I'm keeping an eye on them.\"");
		UcSay;
		goto labelFunc0434_05A8;
	labelFunc0434_05A4:
		UcMessage("\"But when the sailors began spouting that Fellowship nonsense, Kylista did right, orderin' their contagion outside the city walls.\"");
		UcSay;
	labelFunc0434_05A8:
		var0003 = Func09AE(var0003);
		UI_add_answer_0C("Fellowship");
	labelFunc0434_05B8:
		cmps("Fellowship");
		UI_remove_answer_0D("Fellowship");
		UcMessage("\"Mere foolishness. Everyone knows that Beauty is what is important.\"");
		UcSay;
		UcMessage("\"After all these centuries, we have no intention of changing our sacred beliefs now...\"");
		UcSay;
	labelFunc0434_05CF:
		cmps("leader");
		UI_remove_answer_0D("leader");
		UcMessage("\"He arrived in the most unnatural way! The sailors had erected a great pillar made outa some blackish rock...\"");
		UcSay;
		UcMessage("\"Then in the night -- BLAM! Lightning, explosions! The pillar is disintegrated. And this mage is standing there.\"");
		UcSay;
		UcMessage("\"Said his name was Batlin. Came to town askin' about the Daemon artifacts hereabouts. Bothering poor Delin...\"");
		UcSay;
		UcMessage("\"Told him ta go talk ta others of his ilk, not badger the honest folk.\"");
		UcSay;
		var0003 = Func09AE(var0003);
		UI_add_answer_0C("Daemon artifacts");
	labelFunc0434_05FE:
		cmps("Daemon artifacts");
		UI_remove_answer_0D("Daemon artifacts");
		UcMessage("\"Stay away from 'em myself. But thou canst not miss 'em...\"");
		UcSay;
		UcMessage("\"Have snakes carved all over 'em. Left behind by the ancient inhabitants of this land. Horrible Daemonic folk.\"");
		UcSay;
		UcMessage("\"Legend claims that the Lady keeps a Daemon shrine locked away in a secret room of her palace. Hard to believe, eh?\"");
		UcSay;
		gflags[0158] = true;
	labelFunc0434_061D:
		cmps("scholars");
		UI_remove_answer_0D("scholars");
		UcMessage("\"Came on the ship. Said The Fellowship had sent them here to study our way of life -- make maps, collect histories, and so forth.\"");
		UcSay;
		UcMessage("\"Scots is the geographer. Spends all his time working on his new map of the continent.\"");
		UcSay;
		UcMessage("\"Then there was the culturist -- her name was, uh...\"");
		UcSay;
		UcMessage("\"Gwenno...\"");
		UcSay;
		UcMessage("\"Askin' about folk tales. Bought the boys a round or two ta loosen their tongues. Her favorites were the tales of the Gwani.\"");
		UcSay;
		gflags[0155] = true;
		var0003 = Func09AE(var0003);
		UI_add_answer_0C("Gwani");
	labelFunc0434_0654:
		cmps("Gwani");
		UI_remove_answer_0D("Gwani");
		UcMessage("\"Never seen 'em. Never wanted to.\"");
		UcSay;
		UcMessage("\"Covered in fur, like an animal. Hear they're worse than Goblins... even eat their own kind!\"");
		UcSay;
		UcMessage("\"Olon might be able to tell ya more.\"");
		UcSay;
		gflags[01A9] = true;
	labelFunc0434_0673:
		cmps("places");
		UcMessage("\"I know little about the wilderness areas hereabouts. I be a town man, meself.\"");
		UcSay;
		UcMessage("\"But I can tell thee about the other towns, if thou wouldst like.\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0002;
		UI_add_answer_0C(["wilderness areas", "other towns", "nothing more"]);
	labelFunc0434_069D:
		cmps("wilderness areas");
		UI_remove_answer_0D("wilderness areas");
		UcMessage("\"Oh, I wandered about a bit as a lad, but I never went too far. Never wanted ta lose myself...\"");
		UcSay;
		UcMessage("\"Went as far west of here as that forest the Monitorian warriors use for their training. Did not enter. I got stopped by some of those fancy knights who told me ta turn back.\"");
		UcSay;
		if(!(!gflags[002C])) goto labelFunc0434_06BF;
		UcMessage("\"Hear the woods are overrun by Goblins, these days.\"");
		UcSay;
	labelFunc0434_06BF:
		var0003 = Func09AE(var0003);
	labelFunc0434_06C8:
		cmps("other towns");
		UI_remove_answer_0D("other towns");
		UcMessage("\"Well now, like I said before, I have never visited the other towns. But I have heard tell of them.\"");
		UcSay;
		UI_push_answers_0E();
		var0004 = 0x0003;
		UI_add_answer_0C(["Moonshade", "Monitor", "Sleeping Bull", "nothing more"]);
	labelFunc0434_06F8:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"'Tis the town of wizards on an island east of here...\"");
		UcSay;
		UcMessage("\"Which is just as well by my line of thinking. Who would want ta live where ya can't trust anything? Mark my words, don't thou trust no wizards. They'll lead ye wrong.\"");
		UcSay;
		gflags[0157] = true;
		var0003 = Func09AE(var0003);
	labelFunc0434_071C:
		cmps("Sleeping Bull");
		UI_remove_answer_0D("Sleeping Bull");
		UcMessage("\"Sleeping Bull is not exactly a town, but it doth lie on the road ta Monitor and is where thou mayest hire passage to Moonshade.\"");
		UcSay;
		UcMessage("\"The inn is run by a man called Angus, and his wife, Devra. Honest folk... though I have heard tell that the inn was originally a pirate fort, a very long time ago.\"");
		UcSay;
		var0003 = Func09AE(var0003);
	labelFunc0434_073C:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		if(!(gflags[003E] == true)) goto labelFunc0434_0772;
		UcMessage("\"Why ask me, ");
		UcMessage(var0001);
		UcMessage("? 'Tis plain thou hast already been there.\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0434_076B;
		UcMessage("\"It looks most comely on thee. Thou must be the adventurous sort...\"");
		UcSay;
		goto labelFunc0434_076F;
	labelFunc0434_076B:
		UcMessage("\"Thou dost look a bit like a bold pirate with that jaunty mark.\"");
		UcSay;
	labelFunc0434_076F:
		goto labelFunc0434_0785;
	labelFunc0434_0772:
		UcMessage("\"Arrogant people down there. Always wantin' ta beat thee. They have a big walled city south of here. Monitor is where the Pikemen are from.\"");
		UcSay;
		UcMessage("\"Larcenous bunch of armoured scum! They'll protect the roads for thee... if thou dost give them all thy money!\"");
		UcSay;
		UcMessage("\"The lot hereabouts weren't much good. The Goblins killed 'em.\"");
		UcSay;
		UI_add_answer_0C("Goblins");
	labelFunc0434_0785:
		gflags[019F] = true;
		var0003 = Func09AE(var0003);
	labelFunc0434_0792:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"Vile creatures, ");
		UcMessage(var0001);
		UcMessage("! They steal our children if we don't keep close watch. Like human flesh, they do.\"");
		UcSay;
		UcMessage("\"They've become bolder here of late. That's why Fawn closes her gates at night now.\"");
		UcSay;
	labelFunc0434_07AF:
		cmps("food");
		UcMessage("\"Aye, we have something here that'll fill thy belly.\"");
		UcSay;
		Func083D();
	labelFunc0434_07BE:
		cmps("drink");
		UcMessage("\"If thou dost want ta wet thy whistle, I can sell thee a fine drink -- Fawnish Ale. 'Tis a strong refreshment, though...\"");
		UcSay;
		Func083E();
	labelFunc0434_07CD:
		cmps("strange objects");
		gflags[01AA] = true;
		UI_remove_answer_0D("strange objects");
		var0004 = (var0004 + 0x0001);
		var000D = [];
		if(!(gflags[027A] && (!gflags[028C]))) goto labelFunc0434_0805;
		var000D = (var000D & "pinecone");
	labelFunc0434_0805:
		if(!(gflags[027B] && (!gflags[028D]))) goto labelFunc0434_081A;
		var000D = (var000D & "moonsilk stockings");
	labelFunc0434_081A:
		if(!(gflags[027C] && (!gflags[028E]))) goto labelFunc0434_082F;
		var000D = (var000D & "urn");
	labelFunc0434_082F:
		if(!(gflags[027D] && (!gflags[028F]))) goto labelFunc0434_0844;
		var000D = (var000D & "apparatus");
	labelFunc0434_0844:
		if(!(gflags[027E] && (!gflags[0290]))) goto labelFunc0434_0859;
		var000D = (var000D & "pumice");
	labelFunc0434_0859:
		if(!(gflags[027F] && (!gflags[0291]))) goto labelFunc0434_086E;
		var000D = (var000D & "lost ring");
	labelFunc0434_086E:
		if(!(gflags[0280] && (!gflags[0292]))) goto labelFunc0434_0883;
		var000D = (var000D & "fur cap");
	labelFunc0434_0883:
		if(!(gflags[0281] && (!gflags[0293]))) goto labelFunc0434_0898;
		var000D = (var000D & "slippers");
	labelFunc0434_0898:
		if(!(gflags[0282] && (!gflags[0294]))) goto labelFunc0434_08AD;
		var000D = (var000D & "breastplate");
	labelFunc0434_08AD:
		if(!(gflags[0283] && (!gflags[0295]))) goto labelFunc0434_08C2;
		var000D = (var000D & "blue egg");
	labelFunc0434_08C2:
		if(!(gflags[0284] && (!gflags[0296]))) goto labelFunc0434_08D7;
		var000D = (var000D & "strange hairbrush");
	labelFunc0434_08D7:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc0434_08EC;
		var000D = (var000D & "bottle of wine");
	labelFunc0434_08EC:
		if(!(gflags[0287] && (!gflags[0299]))) goto labelFunc0434_0901;
		var000D = (var000D & "strange coins");
	labelFunc0434_0901:
		if(!(gflags[0288] && (!gflags[029A]))) goto labelFunc0434_0916;
		var000D = (var000D & "skull");
	labelFunc0434_0916:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc0434_092B;
		var000D = (var000D & "bloody hand");
	labelFunc0434_092B:
		if(!(gflags[028A] && (!gflags[029C]))) goto labelFunc0434_0940;
		var000D = (var000D & "plain shield");
	labelFunc0434_0940:
		if(!(gflags[028B] && (!gflags[029D]))) goto labelFunc0434_0955;
		var000D = (var000D & "glowing rock");
	labelFunc0434_0955:
		if(!(gflags[007B] && (!gflags[007C]))) goto labelFunc0434_096A;
		var000D = (var000D & "fish-net stockings");
	labelFunc0434_096A:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0434_0986;
		var000D = (var000D & "brown bottle");
	labelFunc0434_0986:
		if(!(var000D == [])) goto labelFunc0434_09B6;
		var000E = Func0992(0x0001, (("@But we have no strange objects to ask about, " + var0001) + ".@"), 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"If thou dost think of anything, let me know!\"");
		UcSay;
		goto labelFunc0434_0A1A;
	labelFunc0434_09B6:
		UcMessage("\"What sort of items art thou inquiring about?\"");
		UcSay;
		UI_push_answers_0E();
		var000F = 0x0005;
	labelFunc0434_09C4:
		if(!(var000F > 0x0000)) goto labelFunc0434_0A13;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_09FF;
		var000F = 0x0000;
		var0011 = true;
	labelFunc0434_09FF:
		UI_add_answer_0C(var0010);
		var000F = (var000F - 0x0001);
		goto labelFunc0434_09C4;
	labelFunc0434_0A13:
		UI_add_answer_0C("nothing more");
	labelFunc0434_0A1A:
		cmps("pinecone");
		UI_remove_answer_0D("pinecone");
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc0434_0A45;
		UcMessage("\"That looks like a pinecone to me!\"");
		UcSay;
		goto labelFunc0434_0A49;
	labelFunc0434_0A45:
		UcMessage("\"Sounds like a pinecone to me!\"");
		UcSay;
	labelFunc0434_0A49:
		UcMessage("\"They come from big trees, but not like those hereabouts. Thou couldst ask Olon about it, he hath travelled quite a bit.\"");
		UcSay;
		gflags[0191] = true;
		if(!(!var0011)) goto labelFunc0434_0A8A;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0A83;
		var0011 = true;
	labelFunc0434_0A83:
		UI_add_answer_0C(var0010);
	labelFunc0434_0A8A:
		cmps("moonsilk stockings");
		UI_remove_answer_0D("moonsilk stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc0434_0AE8;
		if(!UI_is_pc_female_6F()) goto labelFunc0434_0ADD;
		UcMessage("\"Hast thou no modesty, ");
		UcMessage(var0001);
		UcMessage("? Showing thy stockings about like that...\"");
		UcSay;
		var000E = Func0992(0x0001, "@They are not hers!@", "@They are not mine!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh... They are fine things, not what thou wouldst find among the women of fisher-folk.\"");
		UcSay;
		goto labelFunc0434_0AE1;
	labelFunc0434_0ADD:
		UcMessage("\"These are fine things, not what thou wouldst find among the women of fisher-folk.\"");
		UcSay;
	labelFunc0434_0AE1:
		UcMessage("\"Perhaps Alyssand could help thee. She is a good hand at weaving the stockings that are found hereabouts.\"");
		UcSay;
		goto labelFunc0434_0B30;
	labelFunc0434_0AE8:
		if(!UI_is_pc_female_6F()) goto labelFunc0434_0B22;
		UcMessage("\"I know nothing of women's stockings, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		if(!Func0942(0xFFC6)) goto labelFunc0434_0B1B;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Aye! That be the truth! No woman would have him!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0434_0B1B:
		UcMessage("\"Seek thou Alyssand. She makes stockings. She might be able to help thee.\"");
		UcSay;
		goto labelFunc0434_0B30;
	labelFunc0434_0B22:
		UcMessage("\"A mighty fancy pair of stockings, ");
		UcMessage(var0001);
		UcMessage("! Thou wilt make some woman happy...\"");
		UcSay;
		UcMessage("\"We have none so fancy here -- Only the ones that Alyssand makes.\"");
		UcSay;
	labelFunc0434_0B30:
		gflags[0192] = true;
		if(!(!var0011)) goto labelFunc0434_0B6D;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0B66;
		var0011 = true;
	labelFunc0434_0B66:
		UI_add_answer_0C(var0010);
	labelFunc0434_0B6D:
		cmps("urn");
		UI_remove_answer_0D("urn");
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000)) goto labelFunc0434_0BBD;
		UcMessage("\"Why art thou carrying a dead person with thee? Was it someone kin to thee?\"");
		UcSay;
		var000E = Func0992(0x0001, "@What?!@", "@What?!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou didst not know? That urn holds the ashes of one of Monitor's dead warriors.\"");
		UcSay;
		UcMessage("\"I am sure they would appreciate its return, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0434_0BCB;
	labelFunc0434_0BBD:
		UcMessage("\"I cannot be sure without seeing it, ");
		UcMessage(var0001);
		UcMessage(". But it sounds like one of the urns that hold the ashes of one of Monitor's dead warriors.\"");
		UcSay;
		UcMessage("\"I am sure they would appreciate its return...\"");
		UcSay;
	labelFunc0434_0BCB:
		if(!(!var0011)) goto labelFunc0434_0C04;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0BFD;
		var0011 = true;
	labelFunc0434_0BFD:
		UI_add_answer_0C(var0010);
	labelFunc0434_0C04:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc0434_0C2F;
		UcMessage("\"Doth not look like anything I ever heard of.\"");
		UcSay;
		goto labelFunc0434_0C33;
	labelFunc0434_0C2F:
		UcMessage("\"Doth not sound like anything I ever heard of.\"");
		UcSay;
	labelFunc0434_0C33:
		UcMessage("\"But perhaps Delphynia could help thee. She uses all manner of fancy equipment to prepare her herbs for healing and such.\"");
		UcSay;
		gflags[0193] = true;
		if(!(!var0011)) goto labelFunc0434_0C74;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0C6D;
		var0011 = true;
	labelFunc0434_0C6D:
		UI_add_answer_0C(var0010);
	labelFunc0434_0C74:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		if(!Func097D(0xFE9B, 0x0001, 0x010B, 0xFE99, 0xFE99)) goto labelFunc0434_0CA7;
		UcMessage("\"What a strange rock... Not from around here. Wouldn't be much good for building or for ballast.\"");
		UcSay;
		UcMessage("\"Go thou and ask Delphynia, though. She collects odd things that she calls reagents. Perhaps she might know what that is.\"");
		UcSay;
		gflags[0194] = true;
		goto labelFunc0434_0CAB;
	labelFunc0434_0CA7:
		UcMessage("\"I have never heard of such a rock. Who doth care about rocks?\"");
		UcSay;
	labelFunc0434_0CAB:
		if(!(!var0011)) goto labelFunc0434_0CE4;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0CDD;
		var0011 = true;
	labelFunc0434_0CDD:
		UI_add_answer_0C(var0010);
	labelFunc0434_0CE4:
		cmps("lost ring");
		UI_remove_answer_0D("lost ring");
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc0434_0D42;
		UcMessage("\"Why, that looks exactly like the engagement ring that Keth gave Alyssand!\"");
		UcSay;
		if(!Func0942(0xFFC6)) goto labelFunc0434_0D32;
		UcMessage("\"What dost thou think, Olon?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Aye, sure as ships sail. That be Alyssand's ring all right. Keth showed it to me enough times, I should know.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0434_0D32:
		UcMessage("\"Thou shouldst find Alyssand and give to her the ring, ");
		UcMessage(var0001);
		UcMessage(". She hath been a bit crazy since she lost it\"");
		UcSay;
		Func08A9();
		goto labelFunc0434_0D4A;
	labelFunc0434_0D42:
		UcMessage("\"Can't say without seeing it, but it might be the ring that one of our young ladies did lose.\"");
		UcSay;
		UcMessage("\"Bring it here, and I can tell thee for certain.\"");
		UcSay;
	labelFunc0434_0D4A:
		if(!(!var0011)) goto labelFunc0434_0D83;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0D7C;
		var0011 = true;
	labelFunc0434_0D7C:
		UI_add_answer_0C(var0010);
	labelFunc0434_0D83:
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004)) goto labelFunc0434_0DB2;
		UcMessage("\"Nice cap. A bit small, though. Not something a fisherman would wear... It would blow off the ship.\"");
		UcSay;
		UcMessage("\"Ask thou Delin if he hath seen a cap like this. He is the provisioner. He should know.\"");
		UcSay;
		goto labelFunc0434_0DBA;
	labelFunc0434_0DB2:
		UcMessage("\"Doth not sound like something a fisherman would wear...\"");
		UcSay;
		UcMessage("\"Ask thou Delin if he hath heard of such a cap. He is the provisioner. He should know.\"");
		UcSay;
	labelFunc0434_0DBA:
		gflags[0195] = true;
		if(!(!var0011)) goto labelFunc0434_0DF7;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0DF0;
		var0011 = true;
	labelFunc0434_0DF0:
		UI_add_answer_0C(var0010);
	labelFunc0434_0DF7:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		if(!Func097D(0xFE9B, 0x0001, 0x024B, 0xFE99, 0x0005)) goto labelFunc0434_0E2A;
		UcMessage("\"I cannot recall having seen any of the women in town with slippers like these.\"");
		UcSay;
		UcMessage("\"Thou mightest check with Delin to see if he remembers who purchased these.\"");
		UcSay;
		gflags[0196] = true;
		goto labelFunc0434_0E2E;
	labelFunc0434_0E2A:
		UcMessage("\"I cannot recall any of the women wearing slippers like thou hast described.\"");
		UcSay;
	labelFunc0434_0E2E:
		if(!(!var0011)) goto labelFunc0434_0E67;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0E60;
		var0011 = true;
	labelFunc0434_0E60:
		UI_add_answer_0C(var0010);
	labelFunc0434_0E67:
		cmps("breastplate");
		UI_remove_answer_0D("breastplate");
		gflags[0294] = true;
		if(!Func097D(0xFE9B, 0x0001, 0x01A3, 0xFE99, 0x0000)) goto labelFunc0434_0EB4;
		UcMessage("\"Perhaps Fawn's luck shall change after all!\"");
		UcSay;
		UcMessage("\"That is the Priestess Kylista's ceremonial breastplate!");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0434_0EAD;
		UcMessage("\"Thou shouldst leave it in the Temple, for it belongs within the Place of Beauty.\"");
		UcSay;
		goto labelFunc0434_0EB1;
	labelFunc0434_0EAD:
		UcMessage("\"Thou shouldst take it to her quickly!\"");
		UcSay;
	labelFunc0434_0EB1:
		goto labelFunc0434_0ED6;
	labelFunc0434_0EB4:
		UcMessage("\"Too bad thou dost not have it with thee. But that is Fawn's luck nowadays!\"");
		UcSay;
		UcMessage("\"It sounds like Priestess Kylista's ceremonial breastplate.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0434_0ED2;
		UcMessage("\"If it is, then it belongs in the Temple. Perhaps thou shouldst leave it before the Oracle.\"");
		UcSay;
		goto labelFunc0434_0ED6;
	labelFunc0434_0ED2:
		UcMessage("\"Thou shouldst as least tell her that thou hast seen it -- it will cheer her.\"");
		UcSay;
	labelFunc0434_0ED6:
		if(!(!var0011)) goto labelFunc0434_0F0F;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0F08;
		var0011 = true;
	labelFunc0434_0F08:
		UI_add_answer_0C(var0010);
	labelFunc0434_0F0F:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc0434_0F51;
		UcMessage("\"A rotten egg! How it smells! Leave here with that!\"");
		UcSay;
		Func097F(Jendon, "@Whew!@", 0x0000);
		UI_set_schedule_type_25(Jendon, 0x0014);
		abrt();
		goto labelFunc0434_0F5D;
	labelFunc0434_0F51:
		UcMessage("\"I have never heard of a blue egg.\"");
		UcSay;
		UcMessage("\"Ask Delphynia. She doth know all manner of strange things.\"");
		UcSay;
		gflags[0197] = true;
	labelFunc0434_0F5D:
		if(!(!var0011)) goto labelFunc0434_0F96;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0F8F;
		var0011 = true;
	labelFunc0434_0F8F:
		UI_add_answer_0C(var0010);
	labelFunc0434_0F96:
		cmps("strange hairbrush");
		UI_remove_answer_0D("strange hairbrush");
		if(!Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0006)) goto labelFunc0434_0FC9;
		UcMessage("\"Strange lookin' brush...\"");
		UcSay;
		UcMessage("\"Come ta think of it, it looks like something that Jorvin was talking about, when our healer was killed. Thou shouldst show it to him.\"");
		UcSay;
		gflags[0198] = true;
		goto labelFunc0434_0FCD;
	labelFunc0434_0FC9:
		UcMessage("\"Hmmm... sounds malformed. No one in the City of Beauty would use such a brush.\"");
		UcSay;
	labelFunc0434_0FCD:
		if(!(!var0011)) goto labelFunc0434_1006;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_0FFF;
		var0011 = true;
	labelFunc0434_0FFF:
		UI_add_answer_0C(var0010);
	labelFunc0434_1006:
		cmps("bottle of wine");
		UI_remove_answer_0D("bottle of wine");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0010)) goto labelFunc0434_1035;
		UcMessage("\"I know that bottle! That there is Moonshade wine.\"");
		UcSay;
		UcMessage("\"I do not have much demand for it around here, though. The sailors don't care much for such a weak vintage -- Fawn folk prefer Fawn ale!\"");
		UcSay;
		goto labelFunc0434_1039;
	labelFunc0434_1035:
		UcMessage("\"Doth not sound like Fawn ale... Maybe that weak vintage from Moonshade. I do not sell it here -- Fawn folk prefer Fawn ale!\"");
		UcSay;
	labelFunc0434_1039:
		if(!(!var0011)) goto labelFunc0434_1072;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_106B;
		var0011 = true;
	labelFunc0434_106B:
		UI_add_answer_0C(var0010);
	labelFunc0434_1072:
		cmps("strange coins");
		UI_remove_answer_0D("strange coins");
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc0434_10A1;
		UcMessage("\"Why, those are Filari! Those are the coins of Fawn...\"");
		UcSay;
		UcMessage("\"They simply appeared, thou sayest? Strange storms, these. I seem to recall Delin complaining that he had lost some coins -- but I thought that was his forgetfulness!\"");
		UcSay;
		goto labelFunc0434_10AF;
	labelFunc0434_10A1:
		UcMessage("\"Without seeing the coins, ");
		UcMessage(var0001);
		UcMessage(", I cannot tell thee what coins thou didst have.\"");
		UcSay;
		UcMessage("\"Perhaps thou shouldst ask Delin. He is the Provisioner here in town.\"");
		UcSay;
	labelFunc0434_10AF:
		gflags[019A] = true;
		if(!(!var0011)) goto labelFunc0434_10EC;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_10E5;
		var0011 = true;
	labelFunc0434_10E5:
		UI_add_answer_0C(var0010);
	labelFunc0434_10EC:
		cmps("skull");
		UI_remove_answer_0D("skull");
		if(!Func097D(0xFE9B, 0x0001, 0x00F4, 0xFE99, 0xFE99)) goto labelFunc0434_111F;
		UcMessage("\"'Tis the skull of some beast, obviously. Perhaps it is a Goblin skull -- I would be glad of that.\"");
		UcSay;
		UcMessage("\"Ask Jorvin if it is a Goblin skull. If it is, I might buy it from thee to hang above the door!\"");
		UcSay;
		gflags[019B] = true;
		goto labelFunc0434_1129;
	labelFunc0434_111F:
		UcMessage("\"I am no expert on the bones of creatures, ");
		UcMessage(var0001);
		UcMessage(". Especially bones that I cannot see.\"");
		UcSay;
	labelFunc0434_1129:
		if(!(!var0011)) goto labelFunc0434_1162;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_115B;
		var0011 = true;
	labelFunc0434_115B:
		UI_add_answer_0C(var0010);
	labelFunc0434_1162:
		cmps("bloody hand");
		UI_remove_answer_0D("bloody hand");
		if(!Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0000)) goto labelFunc0434_119E;
		UcMessage("\"What manner of beast art thou, to carry such things with thee?!\"");
		UcSay;
		UcMessage("\"Thou art as bad as those horrible wizards from Moonshade! No respect for life!\"");
		UcSay;
		Func097F(Jendon, "@Take it away!@", 0x0000);
		abrt();
		goto labelFunc0434_11A2;
	labelFunc0434_119E:
		UcMessage("\"Sounds like the work of those horrible wizards from Moonshade! No respect for life!\"");
		UcSay;
	labelFunc0434_11A2:
		if(!(!var0011)) goto labelFunc0434_11DB;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_11D4;
		var0011 = true;
	labelFunc0434_11D4:
		UI_add_answer_0C(var0010);
	labelFunc0434_11DB:
		cmps("plain shield");
		UI_remove_answer_0D("plain shield");
		if(!Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0xFE99)) goto labelFunc0434_1210;
		UcMessage("\"Do I look like a warrior, ");
		UcMessage(var0001);
		UcMessage("? What would a poor innkeeper know about arms and such like?\"");
		UcSay;
		UcMessage("\"Talk with Jorvin. He of any here in Fawn would know where such armour hails from.\"");
		UcSay;
		goto labelFunc0434_121E;
	labelFunc0434_1210:
		UcMessage("\"I have no knowledge of arms, ");
		UcMessage(var0001);
		UcMessage(". I am a poor innkeeper, not a guard.\"");
		UcSay;
		UcMessage("\"Seek Jorvin's aid. He is well trained with the devices of battle. I shall content myself with a mug and broom...\"");
		UcSay;
	labelFunc0434_121E:
		gflags[019C] = true;
		if(!(!var0011)) goto labelFunc0434_125B;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_1254;
		var0011 = true;
	labelFunc0434_1254:
		UI_add_answer_0C(var0010);
	labelFunc0434_125B:
		cmps("glowing rock");
		UI_remove_answer_0D("glowing rock");
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F)) goto labelFunc0434_1290;
		UcMessage("\"Now that is strange, indeed! It fairly reeks of wizardry, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I shall thank thee to take it out of here. I want nothing to do with such evil things... Take it to Delphynia, if thou must parade it about.\"");
		UcSay;
		goto labelFunc0434_1294;
	labelFunc0434_1290:
		UcMessage("\"I suppose that Delphynia would be the best to answer thy question. This stone sounds magical -- since she deals with spell reagents, perhaps she'll know of it.\"");
		UcSay;
	labelFunc0434_1294:
		gflags[019D] = true;
		if(!(!var0011)) goto labelFunc0434_12D1;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_12CA;
		var0011 = true;
	labelFunc0434_12CA:
		UI_add_answer_0C(var0010);
	labelFunc0434_12D1:
		cmps("fish-net stockings");
		UI_remove_answer_0D("fish-net stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0001)) goto labelFunc0434_132B;
		if(!UI_is_pc_female_6F()) goto labelFunc0434_1324;
		UcMessage("\"'Tis not proper, ");
		UcMessage(var0001);
		UcMessage(", flaunting personal garments about like that!\"");
		UcSay;
		var000E = Func0992(0x0001, "@They are not hers!@", "@They are not mine!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Well... uh... these are made right here, by young Alyssand.\"");
		UcSay;
		goto labelFunc0434_1328;
	labelFunc0434_1324:
		UcMessage("\"These are stockings thou mayest find our fisher women wearing. They are made right here, by young Alyssand.\"");
		UcSay;
	labelFunc0434_1328:
		goto labelFunc0434_136D;
	labelFunc0434_132B:
		if(!UI_is_pc_female_6F()) goto labelFunc0434_1365;
		UcMessage("\"What dost thou take me for!\"");
		UcSay;
		if(!Func0942(0xFFC6)) goto labelFunc0434_135E;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Trust me, ");
		UcMessage(var0001);
		UcMessage(", Jendon knows nothing of the fairer sex!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0434_135E:
		UcMessage("\"Seek another woman to help thee... Alyssand, perhaps. She makes stockings.\"");
		UcSay;
		goto labelFunc0434_136D;
	labelFunc0434_1365:
		UcMessage("\"If it is stockings thou seekest...\"");
		UcSay;
		UcMessage("\"Alyssand weaves them right here in Fawn.\"");
		UcSay;
	labelFunc0434_136D:
		gflags[019E] = true;
		if(!(!var0011)) goto labelFunc0434_13AA;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_13A3;
		var0011 = true;
	labelFunc0434_13A3:
		UI_add_answer_0C(var0010);
	labelFunc0434_13AA:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"Why, thou hast better taste than I didst give thee credit for, ");
		UcMessage(var0001);
		UcMessage(". I would not have chosen thee for a Fawn ale drinker!\"");
		UcSay;
		UcMessage("\"No one outside of our town cares for it at all.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFC6)) goto labelFunc0434_13EE;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Thou dost speak in error, friend. Remember, thou hast a customer in Monitor...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Aye. The innkeeper in Monitor doth order Fawnish ale from time to time, but I know not for whom.\"");
		UcSay;
	labelFunc0434_13EE:
		UcMessage("\"Wouldst thou like more Fawnish ale?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0434_1400;
		Func083E();
		goto labelFunc0434_1404;
	labelFunc0434_1400:
		UcMessage("\"Another time, then...\"");
		UcSay;
	labelFunc0434_1404:
		if(!(!var0011)) goto labelFunc0434_143D;
		var0010 = var000D[UI_get_random_00(UI_get_array_size_73(var000D))];
		var000D = Func0988(var0010, var000D);
		if(!(var000D == [])) goto labelFunc0434_1436;
		var0011 = true;
	labelFunc0434_1436:
		UI_add_answer_0C(var0010);
	labelFunc0434_143D:
		cmps("nothing more");
		if(!(var0004 == 0x0001)) goto labelFunc0434_145A;
		UI_pop_answers_0F();
		UcMessage("\"I wish I could have been of more help to thee...\"");
		UcSay;
		goto labelFunc0434_147F;
	labelFunc0434_145A:
		if(!(var0004 > 0x0001)) goto labelFunc0434_1475;
		UI_pop_answers_0F();
		var0004 = (var0004 - 0x0001);
		goto labelFunc0434_145A;
	labelFunc0434_1475:
		UcMessage("\"Glad ta be of service ta thee, ");
		UcMessage(var0001);
		UcMessage(". Return if thou hast more questions.\"");
		UcSay;
	labelFunc0434_147F:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"Why, we've drifted completely off the subject! What were we talking about...?\"");
		UcSay;
	labelFunc0434_148F:
		cmps("nothing");
		UcMessage("\"I understand -- everyone is short of coins these days...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0434_149F:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		Func097F(Jendon, "@Walk in Beauty!@", 0x0002);
		Func08AA();
		goto labelFunc0434_14CF;
	labelFunc0434_14CC:
		goto labelFunc0434_01A0;
	labelFunc0434_14CF:
		end_conv();
	labelFunc0434_14D0:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern Func08A9 0x8A9 ();
extern Func08AB 0x8AB ();

Func0435 0x435 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000);
	var0004 = Func0994();
	if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc0435_0046;
	UI_set_schedule_type_25(0xFFCB, 0x000A);
	labelFunc0435_0046:
		if(!(event == 0x0002)) goto labelFunc0435_00CA;
		if(!gflags[015C]) goto labelFunc0435_0055;
		abrt();
	labelFunc0435_0055:
		if(!(Func0994() == 0x0003)) goto labelFunc0435_00AD;
		var0005 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0435], 0x004B);
		var0005 = UI_approach_avatar_BF(0xFFCB, 0x0078, 0x0028);
		UI_set_schedule_type_25(0xFFCB, 0x0003);
		Func097F(0xFFCB, (("@Hail, " + var0002) + "!@"), 0x0002);
		goto labelFunc0435_00CA;
	labelFunc0435_00AD:
		var0005 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0435], 0x0096);
	labelFunc0435_00CA:
		if(!(event == 0x0007)) goto labelFunc0435_00E4;
		var0005 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0435_00E4:
		if(!(event == 0x0001)) goto labelFunc0435_011A;
		UI_item_say_4D(0xFE9C, "@Hail, guardsman!@");
		0xFFCB;
		calle();
		Func097F(0xFFCB, (("@Hail, " + var0000) + "!@"), 0x0005);
		UI_set_schedule_type_25(0xFFCB, 0x0003);
	labelFunc0435_011A:
		if(!(event == 0x0009)) goto labelFunc0435_0710;
		UI_run_schedule_B7(0xFFCB);
		UI_clear_item_say_4E(0xFFCB);
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		var0006 = UI_get_item_flag_A3(0xFFCB, 0x001C);
		if(!(gflags[01B6] && (!gflags[015C]))) goto labelFunc0435_017D;
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		UcMessage("\"Greetings, visitors! Thanks to the beautiful songs of the bard Iolo, thou hast found favor in our good city.\"");
		UcSay;
		UcMessage("\"The Lady would welcome thee formally to Fawn. Thou mayest attend her within her throne room at the palace, after noon.\"");
		UcSay;
		UcMessage("\"Be certain to bring that fellow Iolo with thee -- the Lady doth wish to confer an honor upon him.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFCB, "@Such an honor...@", 0x0002);
		gflags[015C] = true;
		abrt();
	labelFunc0435_017D:
		if(!(var0006 == false)) goto labelFunc0435_01C1;
		if(!(gflags[003E] == true)) goto labelFunc0435_01AA;
		if(!(gflags[014E] == true)) goto labelFunc0435_019C;
		UcMessage("\"Finely done, brave Monitorian! We had despaired when those vile goblins seized the tower.\" *\"I am Jorvin, Captain of the guard. How may I be of service?\"");
		UcSay;
		goto labelFunc0435_01A0;
	labelFunc0435_019C:
		UcMessage("\"A Monitorian! I hope this means that Monitor plans to retake the Fawn tower from those vile goblins.\" *\"I am Jorvin, Captain of the guard. How may I be of service?\"");
		UcSay;
	labelFunc0435_01A0:
		UI_add_answer_0C("tower");
		goto labelFunc0435_01B4;
	labelFunc0435_01AA:
		UcMessage("\"Thou art new here, ");
		UcMessage(var0000);
		UcMessage(". I am Jorvin, Captain of the guard. How may I be of service?\"");
		UcSay;
	labelFunc0435_01B4:
		UI_set_item_flag_A4(0xFFCB, 0x001C);
		goto labelFunc0435_01CB;
	labelFunc0435_01C1:
		UcMessage("\"Well met, ");
		UcMessage(var0002);
		UcMessage("! 'Tis good to see thee again.\"");
		UcSay;
	labelFunc0435_01CB:
		UI_add_answer_0C(["goblins", "storms", "Fellowship troublemakers", "Wand of Detainment"]);
		if(!(gflags[015D] == true)) goto labelFunc0435_01ED;
		UI_add_answer_0C("Assassin");
	labelFunc0435_01ED:
		if(!(gflags[0198] && (!gflags[0296]))) goto labelFunc0435_01FF;
		UI_add_answer_0C("strange hairbrush");
	labelFunc0435_01FF:
		if(!(gflags[019B] && (!gflags[029A]))) goto labelFunc0435_0211;
		UI_add_answer_0C("skull");
	labelFunc0435_0211:
		if(!(gflags[019C] && (!gflags[029C]))) goto labelFunc0435_0223;
		UI_add_answer_0C("plain shield");
	labelFunc0435_0223:
		UI_add_answer_0C("bye");
	labelFunc0435_022A:
		UcAsk;
		cmps("tower");
		if(!(gflags[003E] == true)) goto labelFunc0435_029A;
		if(!(gflags[014E] == true)) goto labelFunc0435_0293;
		UcMessage("\"When the goblins took the tower, we feared that Fawn would be crushed without the Pikemen. 'Twas a horrible thought -- trapped between the storms and the goblins with no escape.\" *\"'Twas certainly the bravest of Monitorians that led the assault to retake the tower.\" ~\"Wert thou there?\"");
		UcSay;
		var0007 = Func0955();
		if(!var0007) goto labelFunc0435_0271;
		if(!(var0001 == true)) goto labelFunc0435_0264;
		UcMessage("\"How remarkable! Thou art surely as beautiful as Lady Yelinda, and as brave as any Pikeman.\" *\"Pray, forgive mine astonishment. In Fawn, all females -- especially the beautiful ones -- are forbidden to endanger themselves. We could not bear to see Beauty such as thine marred in any way.\"");
		UcSay;
		goto labelFunc0435_026E;
	labelFunc0435_0264:
		UcMessage("\"Oh, how I wish I could have been at thy side! My duty to Lady Yelinda is such that -- even had we enough able-bodied men to attempt it -- I could not leave her unprotected to undertake the task.\" *\"I envy thee, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0435_026E:
		goto labelFunc0435_0290;
	labelFunc0435_0271:
		if(!(var0001 == true)) goto labelFunc0435_0286;
		UcMessage("\"Perhaps 'twas for the best. Do not mistake me, ");
		UcMessage(var0000);
		UcMessage(". I do not mean to imply that thou wouldst not have fought valiantly.\" *\"In Fawn, all females -- especially the beautiful ones -- are forbidden to endanger themselves. Beauty that rivals even that of Lady Yelinda should not be marred in any way.\"");
		UcSay;
		goto labelFunc0435_0290;
	labelFunc0435_0286:
		UcMessage("\"No doubt there will be another day for thee, ");
		UcMessage(var0000);
		UcMessage(".\" *\"Mine own duty to Lady Yelinda kept me from joining in the fray. I could not leave her unprotected in a city so besieged.\"");
		UcSay;
	labelFunc0435_0290:
		goto labelFunc0435_0297;
	labelFunc0435_0293:
		UcMessage("\"I fear that Fawn will be crushed without the aid of thee and thy Pikemen comrades. 'Tis a horrible thought -- trapped between the storms and the goblins with no escape.\" *\"'Twill certainly take the bravest of Monitorians to lead the assault to retake the tower. I fear that my duty to Lady Yelinda doth not allow me to undertake the attempt myself.\"");
		UcSay;
	labelFunc0435_0297:
		goto labelFunc0435_02AD;
	labelFunc0435_029A:
		if(!(gflags[014E] == true)) goto labelFunc0435_02A9;
		UcMessage("\"The Monitorians have guard towers along the central roads between cities. The Pikemen are often the only thing that stands between the goblins and the travellers.\" *\"Lady Yelinda is much relieved now that the Pikemen have wrested control of the Fawn tower from those vile goblins. 'Twas a frightening notion to be caught between the goblins and the storms... with no hope of escape.\"");
		UcSay;
		goto labelFunc0435_02AD;
	labelFunc0435_02A9:
		UcMessage("\"The Monitorians had guard towers along the central roads between cities. The Pikemen were often the only thing that stood between the goblins and the travellers.\" *\"Lady Yelinda is very concerned now that those vile goblins have wrested control of the Fawn tower from the Pikemen. 'Tis a frightening notion, being caught between the goblins and the storms... with no hope of escape.\"");
		UcSay;
	labelFunc0435_02AD:
		UI_remove_answer_0D("tower");
		UI_add_answer_0C(["Monitorians", "Pikemen", "Lady Yelinda"]);
	labelFunc0435_02C4:
		cmps("Monitorians");
		if(!(gflags[003E] == true)) goto labelFunc0435_030B;
		if(!(gflags[015B] == false)) goto labelFunc0435_0300;
		UcMessage("\"By the mark that thou dost wear on thy face, I judged thee as a Monitorian. Perhaps I am mistaken. Art thou from Monitor, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		var0008 = Func0955();
		if(!var0008) goto labelFunc0435_02F9;
		UcMessage("\"I am honored to meet thee. I have always valued the brave Pikemen that guard our roads.\"");
		UcSay;
		goto labelFunc0435_02FD;
	labelFunc0435_02F9:
		UcMessage("\"Then thou must be brave indeed! Monitor hath never before welcomed outsiders into the ranks of the Pikemen.\" *\"I am honored to meet thee.\"");
		UcSay;
	labelFunc0435_02FD:
		goto labelFunc0435_0304;
	labelFunc0435_0300:
		UcMessage("\"I am certain that Lady Yelinda will wish to receive thee formally once she knows that thou art in the city. I will see that thou art properly escorted when she doth wish to see thee.\"");
		UcSay;
	labelFunc0435_0304:
		gflags[015B] = true;
		goto labelFunc0435_030F;
	labelFunc0435_030B:
		UcMessage("\"The Monitorians come from a city dedicated to bravery. Their soldiers are called the Pikemen. Thou mayest know them by the tattoos on their faces.\"");
		UcSay;
	labelFunc0435_030F:
		UI_remove_answer_0D("Monitorians");
	labelFunc0435_0316:
		cmps("Pikemen");
		if(!(gflags[003E] == true)) goto labelFunc0435_035D;
		if(!(gflags[015B] == false)) goto labelFunc0435_0352;
		UcMessage("\"By the mark that thou dost wear on thy face, I judged thee as a Pikeman. Perhaps I am mistaken. Art thou from Monitor, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		var0008 = Func0955();
		if(!var0008) goto labelFunc0435_034B;
		UcMessage("\"I am honored to meet thee. I have always valued the brave Pikemen that guard our roads.\"");
		UcSay;
		goto labelFunc0435_034F;
	labelFunc0435_034B:
		UcMessage("\"Then thou must be brave indeed! Monitor hath never before welcomed outsiders into the ranks of the Pikemen.\" *\"I am honored to meet thee.\"");
		UcSay;
	labelFunc0435_034F:
		goto labelFunc0435_0356;
	labelFunc0435_0352:
		UcMessage("\"I am certain that Lady Yelinda will wish to receive thee formally once she knows that thou art in the city. I will see that thou art properly escorted when she doth wish to see thee.\"");
		UcSay;
	labelFunc0435_0356:
		gflags[015B] = true;
		goto labelFunc0435_0377;
	labelFunc0435_035D:
		if(!(gflags[014E] == true)) goto labelFunc0435_036C;
		UcMessage("\"They are the finest warriors in the land. Though some may grumble at the tribute they ask, I think it is a small price to pay. Their bravery hath been the only thing that hath kept the goblins at bay all these years.\"");
		UcSay;
		goto labelFunc0435_0370;
	labelFunc0435_036C:
		UcMessage("\"They are the finest warriors in the land. Though some feel that the tribute they asked was too much, now that they have failed to hold the tower.\"");
		UcSay;
	labelFunc0435_0370:
		UI_add_answer_0C("tribute");
	labelFunc0435_0377:
		UI_remove_answer_0D("Pikemen");
	labelFunc0435_037E:
		cmps("tribute");
		if(!(gflags[014E] == true)) goto labelFunc0435_0395;
		UcMessage("\"The Fawn tower Pikemen levy a toll for every person that travels along this length of road.\" *\"The Pikemen must not only protect the travellers, but also insure the upkeep of the tower and this portion of the road. I do not feel that the charge is unwarranted.\"");
		UcSay;
		goto labelFunc0435_0399;
	labelFunc0435_0395:
		UcMessage("\"The Fawn tower Pikemen levied a toll for every person that travelled along this length of road.\" *\"The Pikemen not only protected the travellers, but also insured the upkeep of the tower and this portion of the road. I did not feel that the charge was unwarranted, although there are those in the city that disagree with me now that the tower hath fallen to the goblins.\"");
		UcSay;
	labelFunc0435_0399:
		UI_remove_answer_0D("tribute");
	labelFunc0435_03A0:
		cmps("Lady Yelinda");
		UcMessage("\"Lady Yelinda is the ruler of Fawn, and is the most beautiful of all women within the city. If thou seekest an audience with her, thou must speak with the Chancellor.\"");
		UcSay;
		UI_remove_answer_0D("Lady Yelinda");
		UI_add_answer_0C("Chancellor");
	labelFunc0435_03BA:
		cmps("Chancellor");
		UI_remove_answer_0D("Chancellor");
		UcMessage("\"His name is Zulith. Thou mayest know him by his green robes of state. Thou canst not miss them.");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0435_03E3;
		UcMessage("\"Thou canst most often find Zulith in the palace, acting as Lady Yelinda's secretary.\"");
		UcSay;
		goto labelFunc0435_03F4;
	labelFunc0435_03E3:
		UcMessage("\"Thou canst most often find Zulith either in the palace, acting as Lady Yelinda's envoy to the Great Captains, or in the Temple. He seems to be a fervent follower of Beauty.\"");
		UcSay;
		UI_add_answer_0C(["Great Captains", "Temple"]);
	labelFunc0435_03F4:
		cmps("Great Captains");
		UcMessage("\"The Great Captains serve as counselors to Lady Yelinda. They deal with most trade matters, and oversee the disposition of the fleets. Thou canst find them near the docks most times.\"");
		UcSay;
		UI_remove_answer_0D("Great Captains");
		UI_add_answer_0C("fleets");
	labelFunc0435_040E:
		cmps("fleets");
		UcMessage("\"Until the storms began, Fawn's means of livelihood was fishing. Now our economy is all but ruined. The storms have destroyed all of our ships.\" *\"Our fishermen must fish from the docks. We have only enough fish to feed the city. We have none to trade to the other cities. Only Alyssand still finds a way to bring money into the city.\"");
		UcSay;
		UI_remove_answer_0D("fleets");
		UI_add_answer_0C("Alyssand");
	labelFunc0435_0428:
		cmps("Alyssand");
		UcMessage("\"Alyssand is the daughter of Delin the shopkeeper. She makes fishnet stockings that she exports to wealthy customers in Moonshade.\" *\"Ever since her betrothed disappeared, Alyssand hath taken to listening to the babble of The Fellowship followers. I hope she doth not go astray.\"");
		UcSay;
		UI_remove_answer_0D("Alyssand");
		UI_add_answer_0C("betrothed");
	labelFunc0435_0442:
		cmps("betrothed");
		UcMessage("\"Alyssand's betrothed was a fisherman named Keth. He was without shelter during one of these freak storms. No one hath seen him since.\" *\"Alyssand took it well enough -- until a storm took away the engagement ring he had specially made for her in Moonshade. I suspect that she always hoped that he would come back. Now that the ring is gone, Alyssand hath had to face the truth that Keth might well be a tree now, for all we know.\"");
		UcSay;
		UI_remove_answer_0D("betrothed");
		if(!(var0003 == true)) goto labelFunc0435_0464;
		UI_add_answer_0C("engagement ring");
	labelFunc0435_0464:
		cmps("engagement ring");
		UcMessage("\"'Tis the one, in truth! I would recognize it anywhere. Keth showed it to me when he did bring it back from Moonshade.\" *\"Alyssand will be thrilled, no doubt. Perhaps this will turn her mind from the false path she now follows.\" *\"Thou mayest ask for her at Delin's shop. He should know where she is.\"");
		UcSay;
		Func08A9();
		UI_remove_answer_0D("engagement ring");
	labelFunc0435_047A:
		cmps("Temple");
		UcMessage("\"The Temple is located beyond the palace, on the waterfront. 'Tis dedicated to Beauty, as is all of Fawn.\"");
		UcSay;
		UI_remove_answer_0D("Temple");
	labelFunc0435_048D:
		cmps("goblins");
		if(!(gflags[014E] == false)) goto labelFunc0435_04C7;
		if(!(gflags[003E] == true)) goto labelFunc0435_04B3;
		UcMessage("\"We did defeat them handily with the help of the Monitorians. But now that they have organized under one leader and taken control of the tower, 'tis all we can do to hold them at bay.\"");
		UcSay;
		UI_add_answer_0C("leader");
		goto labelFunc0435_04B7;
	labelFunc0435_04B3:
		UcMessage("\"The Monitorians were our only hope of withstanding the new unity of the goblins. But with the tower taken, 'tis only a matter of time before Fawn is lost. With the fleets destroyed, we dare not hope to escape their cookpots.\"");
		UcSay;
	labelFunc0435_04B7:
		UI_add_answer_0C(["unity", "cookpots"]);
		goto labelFunc0435_04CB;
	labelFunc0435_04C7:
		UcMessage("\"We had despaired of falling to their newfound unity. But we have hope again now that the tower hath been retaken.\"");
		UcSay;
	labelFunc0435_04CB:
		UI_add_answer_0C("unity");
		UI_remove_answer_0D("goblins");
	labelFunc0435_04D9:
		cmps("leader");
		UcMessage("\"A huge brute that calls himself Pomdirgun. Leastways I think that is it... hard to understand anything a goblin says.\" *\"He killed all the other goblin leaders and made himself the head chief. He is very dangerous. 'Tis almost as though he doth have a brain.\"");
		UcSay;
		UI_remove_answer_0D("leader");
	labelFunc0435_04EC:
		cmps("unity");
		UcMessage("\"For these many years the goblins fought more amongst themselves than with us. Raided the towns a time or two, but nothing truly serious.\" *\"Now they are all following one crafty goblin. Always seems to outwit the soldiers sent to kill him.\"");
		UcSay;
		UI_remove_answer_0D("unity");
	labelFunc0435_04FF:
		cmps("cookpots");
		UcMessage("\"Anyone knows that goblins devour people! Why soon before the storms began, they abducted the healer who was gathering herbs.\"");
		UcSay;
		UI_remove_answer_0D("cookpots");
		UI_add_answer_0C("healer");
	labelFunc0435_0519:
		cmps("healer");
		UcMessage("\"We took an armed band after them as quickly as possible, but all we found of him was his head... The rest was doubtless in the cookpot or the grinder. Delphynia doth do her best to take his place.\"");
		UcSay;
		UI_remove_answer_0D("healer");
		UI_add_answer_0C("Delphynia");
	labelFunc0435_0533:
		cmps("Delphynia");
		UcMessage("\"She is the town herbalist, actually. She doth spend her time between her greenhouse and the healer's hall.\" *\"We tried to send word to Moonshade or Monitor for another healer, but no one was willing to come -- what with the storms and all.\"");
		UcSay;
		UI_remove_answer_0D("Delphynia");
	labelFunc0435_0546:
		cmps("storms");
		UcMessage("\"We expect bad weather, being located on the water as we are. But these storms seem... well... evil somehow. Lightning that causes things to disappear. Not burnt to ashes, mind thee, completely gone. Lightning that takes something and leaves something else in its place.\" *\"Thou must find shelter quickly when thou dost think a storm is approaching.\"");
		UcSay;
		UI_remove_answer_0D("storms");
	labelFunc0435_0559:
		cmps("Fellowship troublemakers");
		UI_remove_answer_0D("Fellowship troublemakers");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0435_057E;
		UcMessage("\"Now, do not speak of Leon's followers in such a manner! We of Fawn have learned tolerance, thanks to the Lady's example.\"");
		UcSay;
		goto labelFunc0435_0589;
	labelFunc0435_057E:
		UcMessage("\"I see the guards are still spreading that gossip...\" *\"Before these strange storms started, a ship came into our port bearing no resemblance to any ship we knew. Those aboard her told us that they had voyaged from Old Sosaria. Though our seamen found this hard to believe, we accepted them.\" *\"Leon began preaching about some strange notion called The Fellowship right before the storms started. Kylista took this as a sign that the heavens were angry with us for allowing this foreign belief into the city. After seeking counsel with the Great Captains, Lady Yelinda regretfully banned the sailors and the passengers from the city.\"");
		UcSay;
		UI_add_answer_0C("Kylista");
	labelFunc0435_0589:
		cmps("Kylista");
		UcMessage("\"Kylista is the Priestess of Beauty. 'Tis her duty to see to the spiritual well-being of the people of Fawn. Her task hath not been easy since the fleet was destroyed. Many people are disillusioned.\" *\"Our only comfort lies in the revelations of the Oracle.\"");
		UcSay;
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C(["revelations", "Oracle"]);
	labelFunc0435_05A9:
		cmps("revelations");
		UcMessage("\"The revelations assure us that the heavens have not totally turned their eyes from Fawn.\"");
		UcSay;
		UcMessage("\"If thou dost visit the Temple whilst thou art here, I am sure that thou wilt be able to hear for thyself.\"");
		UcSay;
		UI_remove_answer_0D("revelations");
	labelFunc0435_05C0:
		cmps("Oracle");
		UcMessage("\"'Tis quite a marvel. Before the storms began, people came from all around to hear its revelations.\" *\"'Twas built by some mage from Moonshade for Lady Fawn. If thou wishest to know more, though, thou shouldst ask Kylista.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
	labelFunc0435_05D3:
		cmps("Wand of Detainment");
		UcMessage("\"'Tis the only thing the guards have performed correctly. We make no secret of the fact that I possess the Wand of Detainment. I find that the knowledge that I can stop even the greatest brute, or the fastest thief, doth do much to deter those who would cause mischief in our city.\"");
		UcSay;
		UI_remove_answer_0D("Wand of Detainment");
	labelFunc0435_05E6:
		cmps("Assassin");
		UcMessage("\"I arrived too late to stop the culprit, ");
		UcMessage(var0000);
		UcMessage(". I am sorry. But everyone seems to agree that the person was not dressed as a citizen of Fawn. Some say that it was one of the sailors outside the city, but that may be too hasty a decision. I will look into it further. Thou hast my word.\"");
		UcSay;
		UI_remove_answer_0D("Assassin");
	labelFunc0435_05FF:
		cmps("strange hairbrush");
		UI_remove_answer_0D("strange hairbrush");
		if(!Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0006)) goto labelFunc0435_0638;
		UcMessage("\"I will not ask thee where thou didst come upon this hideous object, ");
		UcMessage(var0000);
		UcMessage(". That is thy business.\"");
		UcSay;
		UcMessage("\"I only ask that thou not show it around overly much... Thou seest, it is a hairbrush used by the goblins, and it is fashioned out of human bone.\"");
		UcSay;
		UcMessage("\"I saw several like this in empty goblin campsites when we tried to route the goblins from this area.\"");
		UcSay;
		goto labelFunc0435_0640;
	labelFunc0435_0638:
		UcMessage("\"It sounds like thou art describing a hairbrush used by the goblins. It is fashioned out of human bone...\"");
		UcSay;
		UcMessage("\"I saw several in empty goblin campsites when we tried to route the goblins from this area.\"");
		UcSay;
	labelFunc0435_0640:
		cmps("skull");
		UI_remove_answer_0D("skull");
		if(!Func097D(0xFE9B, 0x0001, 0x00F4, 0xFE99, 0xFE99)) goto labelFunc0435_066F;
		UcMessage("\"Thou canst tell Jendon that this is no goblin skull. He will have to find something else to hang above his door.\"");
		UcSay;
		UcMessage("\"'Tis a bear's skull. Bears are common in this area and to the south of here as well.\"");
		UcSay;
		goto labelFunc0435_0677;
	labelFunc0435_066F:
		UcMessage("\"No, Jendon would not know what this is. Jendon is a city man and hath never been hunting with the guards.\"");
		UcSay;
		UcMessage("\"'Tis a bear's skull. Bears are common in this area and to the south of here as well.\"");
		UcSay;
	labelFunc0435_0677:
		cmps("plain shield");
		UI_remove_answer_0D("plain shield");
		if(!Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0xFE99)) goto labelFunc0435_06BF;
		UcMessage("\"Jendon was right to send thee to me. I doubt that anyone else in Fawn takes much notice of such things...\"");
		UcSay;
		UcMessage("\"This is a Monitorian shield, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		if(!(gflags[003E] == true)) goto labelFunc0435_06B8;
		UcMessage("\"I am surprised that thou hast not realized by now... One of thy Pikeman companions will be looking for this.\"");
		UcSay;
		goto labelFunc0435_06BC;
	labelFunc0435_06B8:
		UcMessage("\"Some Pikeman will be looking for this.\"");
		UcSay;
	labelFunc0435_06BC:
		goto labelFunc0435_06E2;
	labelFunc0435_06BF:
		UcMessage("\"I believe thou art describing a Monitorian shield, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		if(!(gflags[003E] == true)) goto labelFunc0435_06DE;
		UcMessage("\"Thou dost concentrate on the battle so much that thou dost not notice thine own equipment any longer, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0435_06E2;
	labelFunc0435_06DE:
		UcMessage("\"Look at any Pikeman thou dost meet. Thou wilt most likely see another shield precisely like the one thou hast described.\"");
		UcSay;
	labelFunc0435_06E2:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Until we meet again.@", 0x0000);
		Func097F(0xFFCB, "@Walk in Beauty!@", 0x0002);
		goto labelFunc0435_070F;
	labelFunc0435_070C:
		goto labelFunc0435_022A;
	labelFunc0435_070F:
		end_conv();
	labelFunc0435_0710:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func0436 0x436 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0942(Iolo);
	var0004 = UI_find_nearby_41(item, 0x00F9, 0x0028, 0x0000);
	if(!(event == 0x0007)) goto labelFunc0436_0047;
	var0005 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0436_0047:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(Kylista) == 0x0007))) goto labelFunc0436_00B5;
		if(!((gflags[0170] && gflags[0172]) && (!gflags[016E]))) goto labelFunc0436_00B5;
		var0006 = ["@I do not deserve this!@", "@Save me, please!@", "@Such filth!@", "@I wish I had a pillow...@", "@Damn Alyssand!@", "@Curse The Fellowship!@"];
		if(!UI_npc_nearby_3A(0xFFCD)) goto labelFunc0436_009E;
		var0006 = (var0006 & ("@Be still, Voldin.@" & ("@Get away from me...@" & "@Thy dreams are dust.@")));
	labelFunc0436_009E:
		Func097F(Kylista, var0006[UI_get_random_00(UI_get_array_size_73(var0006))], 0x0000);
	labelFunc0436_00B5:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(Kylista) != 0x000F))) goto labelFunc0436_014C;
		Kylista;
		calle();
		if(!((gflags[0170] && gflags[0172]) && (!gflags[016E]))) goto labelFunc0436_011E;
		UI_item_say_4D(0xFE9C, "@Surprise!@");
		UI_set_schedule_type_25(Kylista, 0x000F);
		Func097F(Kylista, "@Hello, there...!@", 0x0002);
		Kylista;
		calle();
		var0005 = UI_delayed_execute_usecode_array_02(Kylista, [0x23, 0x55, 0x0436], 0x0007);
		goto labelFunc0436_014C;
	labelFunc0436_011E:
		UI_item_say_4D(0xFE9C, "@Greetings, noble lady!@");
		Kylista;
		calle();
		Func097F(Kylista, (("@At thy service, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(Kylista, 0x0003);
	labelFunc0436_014C:
		if(!(event == 0x0002)) goto labelFunc0436_0189;
		UI_run_schedule_B7(Kylista);
		UI_clear_item_say_4E(Kylista);
		UI_show_npc_face0_05(Kylista, 0x0000);
		UcMessage("\"I am so grateful that thou hast come to visit me, ");
		UcMessage(var0002);
		UcMessage("! Everyone else hath forgotten me. I am so lonely here...\"");
		UcSay;
		UI_add_answer_0C(["plot", "Voldin", "lonely"]);
		goto labelFunc0436_02BC;
	labelFunc0436_0189:
		if(!(event == 0x0009)) goto labelFunc0436_0679;
		UI_run_schedule_B7(Kylista);
		UI_clear_item_say_4E(Kylista);
		UI_show_npc_face0_05(Kylista, 0x0000);
		var0007 = UI_get_item_flag_A3(Kylista, 0x001C);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0436_01DE;
		UcMessage("\"Thou dost make my spine shiver, thou who dost associate with the enemies of Beauty!");
		UcSay;
		UcMessage("\"I beg thee to depart...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(Kylista, "@Depart from me!@", 0x0000);
		abrt();
	labelFunc0436_01DE:
		if(!(var0007 == false)) goto labelFunc0436_0262;
		if(!(gflags[003E] == true)) goto labelFunc0436_0223;
		if(!(var0001 == true)) goto labelFunc0436_0218;
		UcMessage("\"One of Monitor's famed Pikemen! I am Kylista, Priestess of Beauty.\"");
		UcSay;
		UcMessage("\"I have always thought it daring of Monitorian women to wear a tattoo. Tell me, do the Monitorian men find this alluring?\"");
		UcSay;
		var0008 = Func0955();
		if(!var0008) goto labelFunc0436_0211;
		UcMessage("\"Most men seem to find me attractive... Except for the Pikemen. I had wondered why. Thank thee for the enlightening information.\"");
		UcSay;
		goto labelFunc0436_0215;
	labelFunc0436_0211:
		UcMessage("\"Perhaps the sight is too common to affect them. I am certain that Fawn males will not be as... unaffected, shall we say.\"");
		UcSay;
	labelFunc0436_0215:
		goto labelFunc0436_0220;
	labelFunc0436_0218:
		UcMessage("\"One of Monitor's famed Pikemen! I am Kylista, Priestess of Beauty.\"");
		UcSay;
		UcMessage("\"What a pleasure to meet one who is brave as well as handsome.\"");
		UcSay;
	labelFunc0436_0220:
		goto labelFunc0436_0255;
	labelFunc0436_0223:
		if(!(var0001 == true)) goto labelFunc0436_0236;
		UcMessage("\"Welcome to Fawn. I am Kylista, Priestess of Beauty.\"");
		UcSay;
		UcMessage("\"Mayest thou walk in Beauty.\"");
		UcSay;
		goto labelFunc0436_0255;
	labelFunc0436_0236:
		UcMessage("\"Welcome to Fawn, the city of Beauty. I am Kylista, Priestess of Beauty.\"");
		UcSay;
		UcMessage("\"Hast thou come for instruction in the path of Beauty?\"");
		UcSay;
		var0009 = Func0955();
		if(!var0009) goto labelFunc0436_0251;
		UcMessage("\"Hmmm... Perhaps we could arrange private instruction...\"");
		UcSay;
		goto labelFunc0436_0255;
	labelFunc0436_0251:
		UcMessage("\"A pity. Private instruction is available.\"");
		UcSay;
	labelFunc0436_0255:
		UI_set_item_flag_A4(Kylista, 0x001C);
		goto labelFunc0436_0290;
	labelFunc0436_0262:
		if(!(gflags[015E] == true)) goto labelFunc0436_0286;
		UI_set_schedule_type_25(Kylista, 0x0000);
		UI_set_attack_mode_59(Kylista, 0x0007);
		UcMessage("\"Thou hast found me out! The Oracle is a fraud!\"");
		UcSay;
		abrt();
		goto labelFunc0436_0290;
	labelFunc0436_0286:
		UcMessage("\"Thou dost honor us with thy presence, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0436_0290:
		UI_add_answer_0C(["goblins", "storms", "Oracle", "revelations", "bye"]);
		if(!((gflags[0282] || gflags[009F]) && (!gflags[0294]))) goto labelFunc0436_02BC;
		UI_add_answer_0C("white breastplate");
	labelFunc0436_02BC:
		UI_add_answer_0C("bye");
	labelFunc0436_02C3:
		UcAsk;
		cmps("plot");
		UI_remove_answer_0D("plot");
		UcMessage("\"I see now that Captain Voldin and his men did take advantage of me, through the deception called the Oracle.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFCD)) goto labelFunc0436_0300;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"Of course we did, Priestess. Men have always had the advantage over the weaker sex...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Be still, Voldin. Thou hast been brought low, even as I have.\"");
		UcSay;
	labelFunc0436_0300:
		UcMessage("\"How could I have been so naive? I was never part of their plans, but only a tool.\"");
		UcSay;
		UcMessage("\"Perhaps Lady Yelinda will spare my life, when she understands my role -- I, too, was a victim!\"");
		UcSay;
	labelFunc0436_0308:
		cmps("lonely");
		UI_remove_answer_0D("lonely");
		if(!UI_npc_nearby_3A(0xFFCD)) goto labelFunc0436_0325;
		UcMessage("\"Voldin doth not count -- he is an animal. What I need is companionship...\"");
		UcSay;
	labelFunc0436_0325:
		if(!UI_is_pc_female_6F()) goto labelFunc0436_033D;
		UcMessage("\"Come and visit me often, ");
		UcMessage(var0002);
		UcMessage(". I am touched that thou didst come down into this dungeon to visit me.\"");
		UcSay;
		UcMessage("\"Perhaps we could become friends.\"");
		UcSay;
		goto labelFunc0436_0359;
	labelFunc0436_033D:
		UcMessage("\"Look at me, ");
		UcMessage(var0002);
		UcMessage(". I am a woman in the full bloom of my youth. Such beauty doth not deserve to dwell in the squalor of a jail cell...\"");
		UcSay;
		UcMessage("\"They say that thou hast been making friends with young Alyssand, the weaver. I think we, too, could be friends.\"");
		UcSay;
		UcMessage("\"And I'm the kind of friend who could keep thee warm on a cold winter's night. Not like that thin-framed weaver wench.\"");
		UcSay;
		UcMessage("\"Think of me, ");
		UcMessage(var0002);
		UcMessage(". I'll be thinking of thee...\"");
		UcSay;
	labelFunc0436_0359:
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		UcMessage("\"The very antithesis of Beauty! Goblins are base savages with no appreciation of Beauty and no grasp of Beauty's truth.\"");
		UcSay;
		UI_add_answer_0C("Beauty's truth");
	labelFunc0436_0373:
		cmps("Beauty's truth");
		UI_remove_answer_0D("Beauty's truth");
		UcMessage("\"All things good possess an innate Beauty that attracts all living things.\"");
		UcSay;
		UcMessage("\"To goblins, who are vile, ugly monsters, Beauty is a lie. To Pomdirgun, Beauty is something to be exterminated, not cherished.\"");
		UcSay;
		UI_add_answer_0C("Pomdirgun");
	labelFunc0436_0391:
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"Pomdirgun is the epitome of all repulsive things. He hath risen to unite the goblins against all things good and Beautiful.\"");
		UcSay;
		UcMessage("\"The heavens have tired of our wandering from Beauty's truth. They have sent Pomdirgun to destroy those that fall short of the mark.\"");
		UcSay;
	labelFunc0436_03A8:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Another sign that the heavens are displeased with our associations with false prophets!\"");
		UcSay;
		UcMessage("\"We allowed corruption to enter our city, to visit the very heart of Beauty. Some even encouraged its growth. Now we must pay for our transgressions.\"");
		UcSay;
		UcMessage("\"Once we have been brought low enough to see only Beauty, the storms will stop and Fawn will once again prosper. But while all traces of untrue beliefs linger, the punishment will remain.\"");
		UcSay;
		UI_add_answer_0C("false prophets");
	labelFunc0436_03CA:
		cmps("false prophets");
		UI_remove_answer_0D("false prophets");
		UcMessage("\"Those who call themselves Britannians -- the sailors that dwell outside the city gates to the northeast -- are false prophets!\"");
		UcSay;
		UcMessage("\"We thought them poor, confused seamen worthy of our embrace. But we were fooled! All they brought were lies!\"");
		UcSay;
		UcMessage("\"The one they call Leon denounced Beauty as a mere shadow of The Fellowship's truth! And then -- then -- did the storms come! To smite those who would utter such blasphemy!\"");
		UcSay;
		UcMessage("\"The storms will not end until the blight of the blasphemers' existence hath been wiped from Beauty's face!\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc0436_040A;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"I would say that she feels rather strongly about this, Avatar.	But what she is proposing to stop the storms seems a bit extreme.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0436_040A:
		UI_add_answer_0C(["Leon", "Fellowship"]);
	labelFunc0436_0417:
		cmps("Leon");
		UI_remove_answer_0D("Leon");
		UcMessage("\"Leon seeks to divert unsuspecting people from Beauty's path. He is the one that hath brought the anger of the heavens down upon us!\"");
		UcSay;
		UcMessage("\"Lady Yelinda should have ordered him executed for the woes that he hath brought upon our city!\"");
		UcSay;
		UI_add_answer_0C("Lady Yelinda");
	labelFunc0436_0435:
		cmps("Lady Yelinda");
		UI_remove_answer_0D("Lady Yelinda");
		UcMessage("\"Lady Yelinda, honor to her, is the ruler of Fawn.\"");
		UcSay;
		UcMessage("\"I recommended that she have these foreign blasphemers killed -- let their blood wash away the evil they have wrought. But Lady Yelinda is a soft-hearted woman who doth not know the harshness of the heavens' anger.\"");
		UcSay;
		UcMessage("\"I fear that the Great Captains urged her to leniency in favor of their common ties with the sea.\"");
		UcSay;
		UI_add_answer_0C("Great Captains");
	labelFunc0436_0457:
		cmps("Great Captains");
		UI_remove_answer_0D("Great Captains");
		UcMessage("\"The Great Captains are advisors to Lady Yelinda. They ensure that Lady Yelinda is not overtaxed with the tedious daily problems of ruling the city.\"");
		UcSay;
		UcMessage("\"Joth and Garth allowed themselves to be swayed by feelings of kinship with these foreign sailors. Only Voldin recognized their true danger.\"");
		UcSay;
		UI_add_answer_0C(["Joth", "Garth", "Voldin"]);
	labelFunc0436_047E:
		cmps("Joth");
		UI_remove_answer_0D("Joth");
		UcMessage("\"Joth is a good man, with a fine sense of what needs to be done to keep the fleets in good order.\"");
		UcSay;
		UcMessage("\"He is not, I fear, a good advisor when it comes to political matters. In fact, Zulith would be better in that respect.\"");
		UcSay;
		UI_add_answer_0C("Zulith");
	labelFunc0436_049C:
		cmps("Zulith");
		UI_remove_answer_0D("Zulith");
		UcMessage("\"Zulith is Lady Yelinda's secretary. He schedules her audiences and acts as a messenger between her Ladyship and the Great Captains.\"");
		UcSay;
		UcMessage("\"His official title is Chancellor, I believe.\"");
		UcSay;
	labelFunc0436_04B3:
		cmps("Garth");
		UI_remove_answer_0D("Garth");
		UcMessage("\"Garth is no more than a boy! He blows with the wind of anything that catches his fancy, most notably young ladies.\"");
		UcSay;
		UcMessage("\"Garth is of little use in all but representing the interests of the merchant captains.\"");
		UcSay;
	labelFunc0436_04CA:
		cmps("Voldin");
		UI_remove_answer_0D("Voldin");
		if(!((gflags[0170] && gflags[0172]) && (!gflags[016E]))) goto labelFunc0436_0534;
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc0436_0500;
		UcMessage("\"He was an evil man, Avatar. Captain Voldin forced me to do his bidding, beating me when I refused!\"");
		UcSay;
		UcMessage("\"I am glad that thou didst kill him -- glad!\"");
		UcSay;
		goto labelFunc0436_0531;
	labelFunc0436_0500:
		UcMessage("\"The whole scheme was his -- not mine! I did only what I was told. He forced me to serve him...\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFCD)) goto labelFunc0436_0531;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"Liar! Thou didst enjoy thy role as Priestess, using thy sensual powers over men.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh, ");
		UcMessage(var0002);
		UcMessage("! Thou must rescue me from the presence of this evil man!\"");
		UcSay;
	labelFunc0436_0531:
		goto labelFunc0436_053C;
	labelFunc0436_0534:
		UcMessage("\"Now Voldin is truly what Fawn needs as an advisor! His record of service on land and sea is impeccable.\"");
		UcSay;
		UcMessage("\"I fear it takes all his expertise to explain most situations to his companions. Fawn would fare much better if Voldin were Lady Yelinda's only advisor.\"");
		UcSay;
	labelFunc0436_053C:
		cmps("Fellowship");
		UI_remove_answer_0D("Fellowship");
		UcMessage("\"Lies! Lies! Simplistic half truths meant to snare the unwitting and twist Beauty's truth!\"");
		UcSay;
		UcMessage("\"How can any person tell heaven's will without benefit of divine guidance? The deluded fools have not heard the voice of the Oracle or felt the heavens' anger.\"");
		UcSay;
	labelFunc0436_0553:
		cmps("Oracle");
		UI_remove_answer_0D("Oracle");
		UcMessage("\"The Oracle was commissioned by Lady Fawn, many years ago, as an instrument to speak the heavens' truths.\"");
		UcSay;
		UcMessage("\"The Mages of Old Sosaria labored for nearly a year before the task was done. The revealed wonder was the Oracle.\"");
		UcSay;
		UcMessage("\"As Priestess of Beauty, I have the power to call forth a revelation from the Oracle. In times past, before the storms began, people came from all around to hear the Oracle's divine words.\"");
		UcSay;
	labelFunc0436_056E:
		cmps("revelations");
		UcMessage("\"The revelations are truths of heaven filtered through a mouth of stone!\"");
		UcSay;
		UcMessage("\"It is a pity that thou wilt not hear a revelation... I have decided to close the rituals to all outsiders. We cannot be too careful, after what happened with the false prophets.\"");
		UcSay;
		UI_remove_answer_0D("revelations");
	labelFunc0436_0585:
		cmps("white breastplate");
		UI_remove_answer_0D("white breastplate");
		gflags[0294] = true;
		if(!Func097D(0xFE9B, 0x0001, 0x01A3, 0xFE99, 0x0000)) goto labelFunc0436_0613;
		UcMessage("\"Thou hast the Armour of Beauty! Oh, what a sign from the heavens!\"");
		UcSay;
		UcMessage("\"Return it to me... Perhaps the heavens shall once again smile upon Fawn.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0436_060C;
		var000A = Func0992(0x0001, "@But what about thine own armour, Avatar?@", "@But what of mine own armour?@", false);
		if(!(var000A != 0xFE9C)) goto labelFunc0436_05DE;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0436_05DE:
		UcMessage("\"Oh, was that strange armour that appeared in my bedchamber thine?\"");
		UcSay;
		UcMessage("\"I cannot recall what I did with it. Perhaps I still have it... Perhaps thou wilt come by some evening and I will look for it.\"");
		UcSay;
		var000B = Func0996(0xFE9B, Kylista, 0x0001, 0x01A3, 0xFE99, 0x0000, false);
		UcMessage("\"I thank thee, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0436_0610;
	labelFunc0436_060C:
		UcMessage("\"Why dost thou not give it to me?\"");
		UcSay;
	labelFunc0436_0610:
		goto labelFunc0436_0640;
	labelFunc0436_0613:
		UcMessage("\"Thou hast seen the Armour of Beauty! Oh, will the heavens never smile upon Fawn again?. I would that thou hadst brought it with thee.\"");
		UcSay;
		var000A = Func0992(0x0001, "@But what about thine own armour, Avatar?@", "@But what of mine own armour?@", false);
		if(!(var000A != 0xFE9C)) goto labelFunc0436_0638;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0436_0638:
		UcMessage("\"Oh, was that strange armour that appeared in my bedchamber thine?\"");
		UcSay;
		UcMessage("\"I cannot recall what I did with it. Perhaps I still have it... Perhaps thou wilt come by some evening and I will look for it.\"");
		UcSay;
	labelFunc0436_0640:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell.@", 0x0000);
		Func097F(Kylista, (("@Walk in Beauty, " + var0002) + ".@"), 0x0002);
		Func08AA();
		goto labelFunc0436_0678;
	labelFunc0436_0675:
		goto labelFunc0436_02C3;
	labelFunc0436_0678:
		end_conv();
	labelFunc0436_0679:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func07D2 0x7D2 (var var0000);
extern Func08AB 0x8AB ();

Func0437 0x437 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	if(!(UI_get_item_flag_A3(0xFFC9, 0x0020) && (event == 0x0009))) goto labelFunc0437_0033;
	var0000 = UI_execute_usecode_array_01(UI_get_npc_object_23(0xFFC9), [0x23, 0x55, 0x0294]);
	UI_run_schedule_B7(0xFFC9);
	abrt();
	labelFunc0437_0033:
		if(!(event == 0x0008)) goto labelFunc0437_0050;
		if(!(gflags[0004] && (!gflags[0212]))) goto labelFunc0437_0050;
		UI_set_polymorph_B3(0xFFC9, 0x0294);
	labelFunc0437_0050:
		var0001 = Func0954();
		var0002 = UI_is_pc_female_6F();
		var0003 = Func0953();
		var0004 = UI_get_npc_id_BC(0xFFC9);
		if(!(event == 0x0007)) goto labelFunc0437_0087;
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0437_0087:
		if(!(event == 0x0002)) goto labelFunc0437_03F0;
		var0005 = UI_get_party_list2_AA();
		enum();
	labelFunc0437_0097:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0437_00C7);
		var0009 = UI_get_schedule_type_24(var0008);
		if(!(UI_get_schedule_type_24(var0008) == 0x000F)) goto labelFunc0437_00C4;
		var0000 = (var0000 + 0x0001);
	labelFunc0437_00C4:
		goto labelFunc0437_0097;
	labelFunc0437_00C7:
		if(!gflags[0007]) goto labelFunc0437_01BF;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		var000A = [0x03A4, 0x06F7, 0x0006];
		var000B = 0x0000;
		if(!gflags[0173]) goto labelFunc0437_00FB;
		var0008 = Dupre;
	labelFunc0437_00FB:
		if(!gflags[0175]) goto labelFunc0437_0107;
		var0008 = Shamino;
	labelFunc0437_0107:
		if(!gflags[0174]) goto labelFunc0437_0113;
		var0008 = Iolo;
	labelFunc0437_0113:
		UI_remove_from_party_27(var0008);
		UI_remove_npc_4C(var0008);
		var0005 = UI_get_party_list2_AA();
		enum();
	labelFunc0437_0129:
		for (var0008 in var0005 with var000C to var000D atend labelFunc0437_017A);
		UI_set_schedule_type_25(var0008, 0x001F);
		UI_move_object_4B(var0008, [0x03A9, (0x06F1 + (var000B * 0x0002)), 0x0006]);
		var0000 = UI_execute_usecode_array_01(var0008, [0x23, 0x59, 0x0006]);
		var000B = (var000B + 0x0002);
		goto labelFunc0437_0129;
	labelFunc0437_017A:
		UI_set_alignment_4A(0xFFCB, 0x0000);
		UI_move_object_4B(0xFE9C, var000A);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0400], 0x000A);
		gflags[0007] = false;
		UI_revert_schedule_B4(0xFFC9);
		UI_revert_schedule_B4(0xFFCB);
		UI_run_schedule_B7(0xFFCB);
		abrt();
	labelFunc0437_01BF:
		var0005 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list2_AA());
		enum();
	labelFunc0437_01D1:
		for (var0008 in var0005 with var000E to var000F atend labelFunc0437_0278);
		if(!UI_get_item_flag_A3(var0008, 0x001E)) goto labelFunc0437_0275;
		UI_clear_item_flag_A5(var0008, 0x001E);
		var0000 = UI_execute_usecode_array_01(var0008, [0x23, 0x52, "@Oh!@", 0x6C, 0x6D, 0x6E]);
		UI_set_schedule_type_25(var0008, 0x000F);
		var0010 = UI_get_object_position_20(var0008);
		var0010[0x0001] = (var0010[0x0001] - (var0010[0x0003] / 0x0002));
		var0010[0x0002] = (var0010[0x0002] - (var0010[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0017, var0010[0x0001], var0010[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
	labelFunc0437_0275:
		goto labelFunc0437_01D1;
	labelFunc0437_0278:
		var0008 = false;
		enum();
	labelFunc0437_027D:
		for (var0013 in var0005 with var0011 to var0012 atend labelFunc0437_02B4);
		if(!(UI_npc_nearby_3A(var0013) && ((!(UI_get_schedule_type_24(var0013) == 0x000F)) && (!UI_get_item_flag_A3(var0013, 0x001E))))) goto labelFunc0437_02B1;
		var0008 = var0013;
	labelFunc0437_02B1:
		goto labelFunc0437_027D;
	labelFunc0437_02B4:
		if(!var0008) goto labelFunc0437_0306;
		UI_set_item_flag_A4(var0008, 0x001E);
		var0000 = UI_projectile_effect_4F(0xFFCB, var0008, 0x0118);
		var0000 = UI_execute_usecode_array_01(0xFFCB, [0x67, 0x58, 0x0035, 0x7A, 0x61]);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0437], 0x0002);
		goto labelFunc0437_03EF;
	labelFunc0437_0306:
		if(!UI_get_item_flag_A3(0xFFCB, 0x001E)) goto labelFunc0437_03A6;
		gflags[0007] = true;
		var0010 = UI_get_object_position_20(0xFE9C);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		var0010[0x0001] = (var0010[0x0001] - (var0010[0x0003] / 0x0002));
		var0010[0x0002] = (var0010[0x0002] - (var0010[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0017, var0010[0x0001], var0010[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6C, 0x6D, 0x6E, 0x55, 0x0437]);
		goto labelFunc0437_03EF;
	labelFunc0437_03A6:
		var0000 = UI_projectile_effect_4F(0xFFCB, 0xFE9C, 0x0118);
		var0000 = UI_execute_usecode_array_01(0xFFCB, [0x67, 0x58, 0x0035, 0x7A, 0x61]);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0437], 0x0002);
		UI_set_item_flag_A4(0xFFCB, 0x001E);
	labelFunc0437_03EF:
		abrt();
	labelFunc0437_03F0:
		if(!(event == 0x0001)) goto labelFunc0437_0485;
		if(!UI_get_item_flag_A3(0xFFC9, 0x0020)) goto labelFunc0437_0428;
		UI_item_say_4D(0xFE9C, "@Lady!@");
		item;
		calle();
		Func097F(item, "@Avert thine eyes!@", 0x0002);
		UI_set_schedule_type_25(item, 0x0003);
		goto labelFunc0437_0485;
	labelFunc0437_0428:
		UI_item_say_4D(0xFE9C, "@Greetings, Lady.@");
		0xFFC9;
		calle();
		Func097F(0xFFC9, (("@Greetings, " + var0001) + ".@"), 0x0002);
		UI_set_schedule_type_25(0xFFC9, 0x0003);
		if(!(gflags[015C] && (!(gflags[0173] || (gflags[0175] || gflags[0174]))))) goto labelFunc0437_0485;
		UI_si_path_run_usecode_C1(0xFFCB, UI_get_object_position_20(0xFFC9), 0x000D, UI_get_npc_object_23(0xFFCB), 0x0435, false);
	labelFunc0437_0485:
		if(!(event == 0x0009)) goto labelFunc0437_0A16;
		UI_run_schedule_B7(0xFFC9);
		UI_clear_item_say_4E(0xFFC9);
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc0437_04CD;
		UcMessage("\"It is not fitting that I be seen with thee until thou hast been judged by the Oracle.\"");
		UcSay;
		UcMessage("\"Please do not approach me again until the Oracle hath ruled!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFC9, "@'Tis unseemly!@", 0x0000);
		abrt();
	labelFunc0437_04CD:
		if(!(gflags[0004] == true)) goto labelFunc0437_04F1;
		if(!(gflags[0212] == true)) goto labelFunc0437_04E4;
		UcMessage("\"Thank thee, Avatar! Thank thee for returning me to my former Beauty.\"");
		UcSay;
		goto labelFunc0437_04EE;
	labelFunc0437_04E4:
		UcMessage("\"I wish I had some way to further reward thee, ");
		UcMessage(var0003);
		UcMessage(". I wish thee luck on thy quest!\"");
		UcSay;
	labelFunc0437_04EE:
		goto labelFunc0437_078B;
	labelFunc0437_04F1:
		var0014 = UI_get_item_flag_A3(0xFFC9, 0x001C);
		if(!(gflags[015C] && (!gflags[01B5]))) goto labelFunc0437_073A;
		if(!(UI_npc_nearby_3A(Iolo) && UI_get_item_flag_A3(Iolo, 0x0006))) goto labelFunc0437_072E;
		gflags[0170] = true;
		gflags[01B5] = true;
		UI_play_music_39(0x001F, Func09A0(0x0005, 0x0001));
		UcMessage("\"I am so glad that thou hast come -- and thou hast brought the Good Bard Iolo!\"");
		UcSay;
		UcMessage("\"Dear Iolo, our subjects have spoken of that fine ballad which thou didst sing, and thy devotion to thy lost wife hath touched our heart.\"");
		UcSay;
		UcMessage("\"I give thee this White Diamond Necklace, which thou mayest give to thy beloved when thou dost at last find her. It is a twin to mine own, except that mine is of a more subtle hue.\"");
		UcSay;
		var0000 = Func099B(Iolo, 0x0001, 0x03BB, 0x0000, 0x0008, 0x0000, true);
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Thou art too kind, Lady! I thank thee, and shall give it to Gwenno upon our reunion!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"This calls for a toast. Hail to Beauty!\"");
		UcSay;
		var0015 = Func0992(0x0001, "@To Beauty!@", "@To Beauty!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And to love! Let us drink to the virtues of romance and bliss!\"");
		UcSay;
		var0015 = Func0992(0x0001, "@To bliss!@", "@To bliss!@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And to good rulers, such as beloved Queen Fawn, who founded our fine society.\"");
		UcSay;
		var0015 = false;
		var0016 = UI_get_party_list_2B();
		if(!in(UI_get_npc_object_23(Dupre), var0016)) goto labelFunc0437_05D4;
		var0015 = Dupre;
		gflags[0173] = true;
		goto labelFunc0437_0607;
	labelFunc0437_05D4:
		if(!in(UI_get_npc_object_23(Shamino), var0016)) goto labelFunc0437_05EF;
		var0015 = Shamino;
		gflags[0175] = true;
		goto labelFunc0437_0607;
	labelFunc0437_05EF:
		if(!in(UI_get_npc_object_23(Iolo), var0016)) goto labelFunc0437_0607;
		var0015 = Iolo;
		gflags[0174] = true;
	labelFunc0437_0607:
		UI_show_npc_face1_06(var0015, 0x0000);
		UcMessage("\"Thou must not forget our distant liege, Lady Yelinda. All hail Lord British and the glory that is Britannia!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_play_music_39(0x001E, Func09A0(0x0005, 0x0001));
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh, my!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCB, 0x0000);
		UcMessage("\"Milady, this one is allied with that foul fiend, Beast British!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"This is blasphemy! Jorvin, lock that criminal away and call for a speedy trial. Let this intruder be executed, even as Beast British slew our forefathers during his conquest of Sosaria!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_schedule_type_25(0xFFCB, 0x000F);
		0xFFCB;
		calle();
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0437], 0x0000);
		Func097F(0xFFCB, "@Take this!@", 0x0000);
		UI_set_new_schedules_B6(0xFFC9, 0x0000, 0x0014, [0x0000, 0x0000]);
		UI_run_schedule_B7(0xFFC9);
		Func097F(0xFFC9, "@Blasphemer!@", 0x0005);
		var0000 = 0x0003;
	labelFunc0437_06B7:
		if(!(var0000 > 0x0000)) goto labelFunc0437_0718;
		var0008 = UI_create_new_object2_2D(0x017D, [0x0000, 0x0000, 0x0000]);
		if(!var0008) goto labelFunc0437_070B;
		var0000 = UI_approach_avatar_BF(var0008, 0x005A, 0x0028);
		if(!var0000) goto labelFunc0437_070B;
		UI_si_path_run_usecode_C1(var0008, UI_get_object_position_20(0xFFCB), 0x000D, var0008, 0x017D, true);
	labelFunc0437_070B:
		var0000 = (var0000 - 0x0001);
		goto labelFunc0437_06B7;
	labelFunc0437_0718:
		if(!var0008) goto labelFunc0437_072A;
		Func097F(var0008, "@Save the Queen!@", 0x0002);
	labelFunc0437_072A:
		abrt();
		goto labelFunc0437_0737;
	labelFunc0437_072E:
		UcMessage("\"\"I am so glad that thou hast come... But where is the Good Bard Iolo?\"");
		UcSay;
		UcMessage("\"I wish to welcome him as well as thee. Return when he is with thee!\"");
		UcSay;
		abrt();
	labelFunc0437_0737:
		goto labelFunc0437_078B;
	labelFunc0437_073A:
		if(!(var0014 == false)) goto labelFunc0437_075E;
		if(!((var0002 == true) && (gflags[003E] == true))) goto labelFunc0437_0757;
		UcMessage("\"What an interesting Beauty mark thou hast... I am Lady Yelinda, ruler of Fawn -- the city of Beauty.\"");
		UcSay;
		goto labelFunc0437_075B;
	labelFunc0437_0757:
		UcMessage("\"Welcome to the city of Beauty. I am Lady Yelinda, ruler of Fawn.\"");
		UcSay;
	labelFunc0437_075B:
		goto labelFunc0437_078B;
	labelFunc0437_075E:
		if(!(gflags[0170] && (!gflags[0172]))) goto labelFunc0437_0781;
		UcMessage("\"Until thy friend's innocence or guilt hath been proven, Avatar, we may not speak together.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFC9, "@I am sorry...@", 0x0000);
		abrt();
		goto labelFunc0437_078B;
	labelFunc0437_0781:
		UcMessage("\"Welcome back, ");
		UcMessage(var0003);
		UcMessage(". Thy presence in Fawn adds greatly	to its Beauty.\"");
		UcSay;
	labelFunc0437_078B:
		UI_set_item_flag_A4(0xFFC9, 0x001C);
		UI_add_answer_0C(["Fawn", "Beauty", "goblins", "storms", "name"]);
		UI_add_answer_0C("bye");
	labelFunc0437_07B2:
		UcAsk;
		cmps("goblins");
		UcMessage("\"Oh, horrible, vile creatures! They have killed all the Pikemen that were guarding the road to our beautiful city.\"");
		UcSay;
		UcMessage("\"Whatever shall we do now?\"");
		UcSay;
		UI_remove_answer_0D("goblins");
		UI_add_answer_0C("Pikemen");
	labelFunc0437_07D3:
		cmps("Pikemen");
		UcMessage("\"Wonderful people. They hail from Monitor. They keep the roads safe.\"");
		UcSay;
		UI_remove_answer_0D("Pikemen");
		UI_add_answer_0C("Monitor");
	labelFunc0437_07ED:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"'Tis south of here. I do not associate with them. They are too warlike.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0437_081D;
		UcMessage("\"Chancellor Zulith deals with them for me.\"");
		UcSay;
		UI_add_answer_0C("Chancellor");
		goto labelFunc0437_0828;
	labelFunc0437_081D:
		UcMessage("\"The Great Captains deal with them for me.\"");
		UcSay;
		UI_add_answer_0C("Great Captains");
	labelFunc0437_0828:
		cmps("Great Captains");
		UcMessage("\"Yes, Joth, Garth, and Voldin. They are my most trusted advisors... Aside from the Chancellor, of course.\"");
		UcSay;
		UcMessage("\"They handle all the horrible little details of running the city. I would be lost without them, 'tis certain.\"");
		UcSay;
		UI_remove_answer_0D("Great Captains");
		UI_add_answer_0C("Chancellor");
	labelFunc0437_0846:
		cmps("Chancellor");
		UcMessage("\"Zulith is a dear little man. He absolutely dotes on me, I fear. He simply would not have a life if he were not looking after me. He keeps all the paperwork for me and schedules mine audiences. Quite a mouse of a man, though.\"");
		UcSay;
		UI_remove_answer_0D("Chancellor");
	labelFunc0437_0859:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Quite a nuisance, actually.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0437_0886;
		UcMessage("\"Alyssand tells me that the storms are the result of a lack of devotion to the pure concept of Beauty.");
		UcSay;
		UcMessage("\"She is quite helpful to me. I think I shall make her my chief advisor...\"");
		UcSay;
		goto labelFunc0437_08A3;
	labelFunc0437_0886:
		UcMessage("\"The Oracle says the storms are a result of permitting the heretics within the city gates.\"");
		UcSay;
		UcMessage("\"Odd that they did not stop after the heretics were banished from the city. I shall have to consult Kylista.\"");
		UcSay;
		UI_add_answer_0C("heretics");
		if(!(!gflags[018A])) goto labelFunc0437_08A3;
		UI_add_answer_0C("Oracle");
	labelFunc0437_08A3:
		cmps("heretics");
		UcMessage("\"Those filthy sailors camped outside the city gates have no regard whatsoever for Beauty. They preach some ridiculous notion about brotherhood... or some such.\"");
		UcSay;
		UI_remove_answer_0D("heretics");
		UI_add_answer_0C("sailors");
	labelFunc0437_08BD:
		cmps("sailors");
		UcMessage("\"They and their passengers arrived shortly before the storms began.\"");
		UcSay;
		UI_remove_answer_0D("sailors");
		UI_add_answer_0C("passengers");
	labelFunc0437_08D7:
		cmps("passengers");
		UcMessage("\"There was a portly mage named Batlin and a lovely lady named Gwenno.\"");
		UcSay;
		UI_remove_answer_0D("passengers");
		UI_add_answer_0C(["Batlin", "Gwenno"]);
	labelFunc0437_08F7:
		cmps("Batlin");
		UcMessage("\"A disagreeable fellow. Travelled with some very rough sorts. He was seeking Daemon artifacts, I believe.\"");
		UcSay;
		UI_remove_answer_0D("Batlin");
		UI_add_answer_0C("Daemon artifacts");
	labelFunc0437_0911:
		cmps("Daemon artifacts");
		UcMessage("\"Thou mayest find them throughout the land. They are of little interest... not Beautiful at all.\"");
		UcSay;
		UI_remove_answer_0D("Daemon artifacts");
	labelFunc0437_0924:
		cmps("Gwenno");
		UcMessage("\"She was interested in folk tales, I believe. I am afraid I could not help her. My last bard was transformed into a fox during a storm and ran away.\"");
		UcSay;
		UI_remove_answer_0D("Gwenno");
	labelFunc0437_0937:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"Our city was named after the beautiful ruler who commissioned the Oracle.\"");
		UcSay;
		gflags[0189] = true;
		if(!(gflags[0171] || (!gflags[0172]))) goto labelFunc0437_0960;
		UI_add_answer_0C("Oracle");
	labelFunc0437_0960:
		cmps("Oracle");
		UcMessage("\"Thou hast never heard of the Oracle of Beauty?\" *\"Thou shouldst speak with Kylista at the temple.\"");
		UcSay;
		gflags[018A] = true;
		UI_remove_answer_0D("Oracle");
		UI_add_answer_0C("Kylista");
	labelFunc0437_097E:
		cmps("Kylista");
		UcMessage("\"She is the most beautiful woman in town...\"");
		UcSay;
		UcMessage("\"aside from myself, of course.\"");
		UcSay;
		UcMessage("\"She is the Priestess of Beauty. Thou canst find her at the temple.\"");
		UcSay;
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C("temple");
	labelFunc0437_09A0:
		cmps("temple");
		UcMessage("\"'Tis the largest building in the city, except for my palace.\"");
		UcSay;
		UI_remove_answer_0D("temple");
	labelFunc0437_09B3:
		cmps("Beauty");
		UcMessage("\"We revere and protect all beautiful things here in Fawn. Everyone is dedicated to the truths of Beauty.\"");
		UcSay;
		UI_remove_answer_0D("Beauty");
		if(!(gflags[0189] == false)) goto labelFunc0437_09D5;
		UI_add_answer_0C("Fawn");
	labelFunc0437_09D5:
		cmps("name");
		UcMessage("\"Forgive me, I thought I had already introduced myself. I am Lady Yelinda.\"");
		UcSay;
		UI_remove_answer_0D("name");
	labelFunc0437_09E8:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell, gracious Lady!@", 0x0000);
		Func097F(0xFFC9, "@Do come again!@", 0x0002);
		goto labelFunc0437_0A15;
	labelFunc0437_0A12:
		goto labelFunc0437_07B2;
	labelFunc0437_0A15:
		end_conv();
	labelFunc0437_0A16:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0965 0x965 ();
extern Func0966 0x966 ();
extern var Func0955 0x955 ();

Func0438 0x438 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0942(0xFFC7);
	if(!(event == 0x0007)) goto labelFunc0438_0036;
	var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc0438_0036:
		if(!(event == 0x0001)) goto labelFunc0438_006C;
		UI_item_say_4D(0xFE9C, "@A moment if thou wilt, sir.@");
		0xFFC8;
		calle();
		Func097F(0xFFC8, (("@At thy service, " + var0000) + ".@"), 0x0002);
		UI_set_schedule_type_25(0xFFC8, 0x0003);
	labelFunc0438_006C:
		if(!(event == 0x0009)) goto labelFunc0438_04BD;
		UI_run_schedule_B7(0xFFC8);
		UI_clear_item_say_4E(0xFFC8);
		UI_show_npc_face0_05(0xFFC8, 0x0000);
		var0005 = UI_get_item_flag_A3(0xFFC8, 0x001C);
		if(!(var0005 == false)) goto labelFunc0438_00D0;
		if(!(gflags[003E] == true)) goto labelFunc0438_00BB;
		UcMessage("\"At last, the values of The Fellowship have reached into the ranks of the Pikemen! I am honored.\"");
		UcSay;
		UcMessage("\"I am Leon, a speaker for The Fellowship and former farmer.\"");
		UcSay;
		UI_add_answer_0C("Fellowship");
		goto labelFunc0438_00C3;
	labelFunc0438_00BB:
		UcMessage("\"I always have time for those who come seeking knowledge. Be welcome.\"");
		UcSay;
		UcMessage("\"I am Leon, a speaker for The Fellowship and former farmer.\"");
		UcSay;
	labelFunc0438_00C3:
		UI_set_item_flag_A4(0xFFC8, 0x001C);
		goto labelFunc0438_00DA;
	labelFunc0438_00D0:
		UcMessage("\"As always, I am honored that thou choosest to visit me, ");
		UcMessage(var0002);
		UcMessage(". How may I help thy quest for Unity?\"");
		UcSay;
	labelFunc0438_00DA:
		UI_add_answer_0C(["goblins", "storms", "bye"]);
	labelFunc0438_00EA:
		UcAsk;
		cmps("Fellowship");
		UcMessage("\"While the Virtues that Lord British expounded are all very well and good, they are nearly impossible for ordinary people to achieve.\"");
		UcSay;
		UcMessage("\"Simple people need a simple philosophy.\"");
		UcSay;
		UcMessage("\"The Triad of Inner Strength is the answer.\"");
		UcSay;
		UI_remove_answer_0D("Fellowship");
		gflags[015F] = true;
		UI_add_answer_0C("Triad of Inner Strength");
		Func0965();
	labelFunc0438_0116:
		cmps("Triad of Inner Strength");
		UI_remove_answer_0D("Triad of Inner Strength");
		UcMessage("\"The Triad of Inner Strength is based on three basic principles that all people can grasp. The first is Unity. The next is Trust, and the last is Worthiness.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Unity", "Trust", "Worthiness"]);
	labelFunc0438_013D:
		cmps("Unity");
		UcMessage("\"Surely thou must know the importance of learning to cooperate and work together.\"");
		UcSay;
		UcMessage("\"If we seek to live in harmony with one another, there is nothing we cannot accomplish. One rock doth not make a wall. But many rocks can -- with a common purpose.\"");
		UcSay;
		UI_remove_answer_0D("Unity");
		gflags[0162] = true;
		if(!((gflags[0162] == true) && ((gflags[0161] == true) && ((gflags[0163] == true) && (gflags[0160] == true))))) goto labelFunc0438_0176;
		UI_pop_answers_0F();
	labelFunc0438_0176:
		cmps("Trust");
		UcMessage("\"The main stumbling block to Unity lies in a lack of Trust.\"");
		UcSay;
		UcMessage("\"If thou dost trust thy brother, thou wouldst not live in fear. Without fear, our lives are happier and Unity may grow and thrive.\"");
		UcSay;
		UI_remove_answer_0D("Trust");
		gflags[0161] = true;
		if(!((gflags[0162] == true) && ((gflags[0161] == true) && ((gflags[0163] == true) && (gflags[0160] == true))))) goto labelFunc0438_01AF;
		UI_pop_answers_0F();
	labelFunc0438_01AF:
		cmps("Worthiness");
		UcMessage("\"How wouldst thou feel, if all that thou hadst strived for were given to a man who had done nothing to deserve it?\"");
		UcSay;
		UcMessage("\"I will wager that thou wouldst feel the injustice.\"");
		UcSay;
		UcMessage("\"If everyone strives to be worthy of that which they seek, such injustices would be few.\"");
		UcSay;
		UcMessage("\"Let every person be rewarded according to their merits and Trust and Unity will follow naturally.\"");
		UcSay;
		UcMessage("\"Following the Triad of Inner Strength allows one to become attuned to the Inner Voice.\"");
		UcSay;
		UI_remove_answer_0D("Worthiness");
		UI_add_answer_0C("Inner Voice");
		gflags[0163] = true;
		if(!((gflags[0162] == true) && ((gflags[0161] == true) && ((gflags[0163] == true) && (gflags[0160] == true))))) goto labelFunc0438_01FB;
		UI_pop_answers_0F();
	labelFunc0438_01FB:
		cmps("Inner Voice");
		UcMessage("\"The Inner Voice is within all living beings. It flows from pure instinct and contains all the wisdom and irreproachable logic that anyone would ever need to live peacefully and happily.\"");
		UcSay;
		UcMessage("\"If everyone learned to listen to their Inner Voice, I could return to Britannia and farm contentedly for the rest of my life.\"");
		UcSay;
		UI_remove_answer_0D("Inner Voice");
		gflags[0160] = true;
		if(!((gflags[0162] == true) && ((gflags[0161] == true) && ((gflags[0163] == true) && (gflags[0160] == true))))) goto labelFunc0438_0234;
		UI_pop_answers_0F();
	labelFunc0438_0234:
		cmps("philosophy");
		UI_remove_answer_0D("philosophy");
		Func0966();
	labelFunc0438_0246:
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc0438_026B;
		UcMessage("\"Now that Lady Yelinda hath admitted my people within the city walls, we shall be safe from the goblins.\"");
		UcSay;
		goto labelFunc0438_02E0;
	labelFunc0438_026B:
		if(!(gflags[003E] == true)) goto labelFunc0438_029D;
		if(!(gflags[014E] == true)) goto labelFunc0438_028E;
		UcMessage("\"Without the fine aid of thee and thy Monitorian comrades, these poor sailors and I would have been lost long ago.\"");
		UcSay;
		UcMessage("\"Kylista refused us the safety of the city walls, even when the tower fell to the barbaric goblins.\"");
		UcSay;
		UcMessage("\"I never thought that I would rue the day that another intelligent being learned the truths of The Fellowship.\"");
		UcSay;
		UcMessage("\"But we would be doing far better if the goblins had not found Unity under the leadership of Pomdirgun.\"");
		UcSay;
		goto labelFunc0438_029A;
	labelFunc0438_028E:
		UcMessage("\"Hast thou come seeking the wisdom of The Fellowship so that thee and thy Monitorian comrades can reclaim the tower?\"");
		UcSay;
		UcMessage("\"Even now, Kylista refuses us refuge within the city walls.\"");
		UcSay;
		UcMessage("\"Obviously, she fears the truths of The Fellowship as much as she fears Pomdirgun.\"");
		UcSay;
	labelFunc0438_029A:
		goto labelFunc0438_02C4;
	labelFunc0438_029D:
		if(!(gflags[014E] == true)) goto labelFunc0438_02B8;
		UcMessage("\"Without the fine aid of the Pikemen, these poor sailors and I would have been lost long ago.\"");
		UcSay;
		UcMessage("\"Kylista refused us the safety of the city walls, even when the tower fell to the barbaric goblins.\"");
		UcSay;
		UcMessage("\"I never thought that I would rue the day that another intelligent being learned the truths of The Fellowship.\"");
		UcSay;
		UcMessage("\"But we would be doing far better if the goblins had not found Unity under the leadership of Pomdirgun.\"");
		UcSay;
		goto labelFunc0438_02C4;
	labelFunc0438_02B8:
		UcMessage("\"Thou art one among many that have come seeking the wisdom of The Fellowship to withstand these difficult times.\"");
		UcSay;
		UcMessage("\"Thou shouldst not stay overlong outside the city walls, even if Kylista refuses refuge to me and my companions.\"");
		UcSay;
		UcMessage("\"Obviously, she fears the truths of The Fellowship as much as she fears Pomdirgun.\"");
		UcSay;
	labelFunc0438_02C4:
		UI_add_answer_0C(["Kylista", "Pomdirgun"]);
		if(!(gflags[015F] == false)) goto labelFunc0438_02E0;
		UI_add_answer_0C("Fellowship");
	labelFunc0438_02E0:
		cmps("Kylista");
		UcMessage("\"She is the Priestess of Beauty -- the cult that controls Fawn.\"");
		UcSay;
		UcMessage("\"Kylista presides over the Oracle, which never varies in supporting her views...\"");
		UcSay;
		UcMessage("\"One might suspect that Kylista uses the Oracle to increase her own personal power. But I have no idea how such a thing would be accomplished.\"");
		UcSay;
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C("Oracle");
	labelFunc0438_0302:
		cmps("Oracle");
		UcMessage("\"It was commissioned by Lady Fawn herself, and built by the Mages of Britannia.\"");
		UcSay;
		UcMessage("\"'Twas to be an instrument of truth... I cannot say that that is still so.\"");
		UcSay;
		UcMessage("\"It gives revelations throughout the day.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
		UI_add_answer_0C("revelations");
	labelFunc0438_0324:
		cmps("revelations");
		UcMessage("\"For the most part, they are simple platitudes that further ingrain their reverence of Beauty.\"");
		UcSay;
		UcMessage("\"They do nothing to help the people improve their lives.\"");
		UcSay;
		UcMessage("\"At other times -- like when the sailors and I were banished from the city -- they reflect the wishes of Kylista and the Great Captains.\"");
		UcSay;
		UI_remove_answer_0D("revelations");
		UI_add_answer_0C("Great Captains");
	labelFunc0438_0346:
		cmps("Great Captains");
		UcMessage("\"They are the counselors of Lady Yelinda, by title. They control the fishing fleets... or did before the storms began.\"");
		UcSay;
		UcMessage("\"In reality, they control all of Fawn. It is painfully obvious that Lady Yelinda is merely a figurehead to be manipulated by Zulith at the behest of Garth, Joth, and Voldin.\"");
		UcSay;
		UI_remove_answer_0D("Great Captains");
		UI_add_answer_0C(["Zulith", "Garth", "Joth", "Voldin"]);
	labelFunc0438_0370:
		cmps("Zulith");
		UcMessage("\"'Tis easy enough to overlook him, unless he wants thy notice. He is a simpering little man who styles himself as the consort of Lady Yelinda.\"");
		UcSay;
		UcMessage("\"Sadly, she pays no more heed of him than her mirror. Her interests, I think, lie more in line with Jorvin, Captain of the Guard.\"");
		UcSay;
		UcMessage("\"Zulith is a puppet for Kylista and the Great Captains. But beware of him, friend, for he can be vicious if slighted.\"");
		UcSay;
		UI_remove_answer_0D("Zulith");
	labelFunc0438_038B:
		cmps("Garth");
		UcMessage("\"Garth is the most junior of the three Great Captains. His interests seem to lie mostly in impressing the ladies of the city.\"");
		UcSay;
		UcMessage("\"I do not think he dares go against the wishes of the other two Captains.\"");
		UcSay;
		UI_remove_answer_0D("Garth");
	labelFunc0438_03A2:
		cmps("Joth");
		UcMessage("\"Joth is the only one of the Great Captains that seems to have any real interest in the fleets. He would certainly be more at home on the deck of a ship than here on land.\"");
		UcSay;
		UI_remove_answer_0D("Joth");
	labelFunc0438_03B5:
		cmps("Voldin");
		UcMessage("\"Voldin is perhaps the person who would most benefit from practicing Worthiness.\"");
		UcSay;
		UcMessage("\"I have heard that he is diverting funds from the fleets for his own gain. But who can say for sure?\"");
		UcSay;
		UcMessage("\"It is his heavy hand that holds the reins of the city. Thou shouldst be careful around him. He is a violent man.\"");
		UcSay;
		UI_remove_answer_0D("Voldin");
	labelFunc0438_03D0:
		cmps("Pomdirgun");
		UcMessage("\"He hath but lately declared himself chief of all goblins.\"");
		UcSay;
		UcMessage("\"Where once they could be discouraged by the mere presence of armed resistance, they now are bold and organized. They no longer flee, but stay and fight.\"");
		UcSay;
		UI_remove_answer_0D("Pomdirgun");
	labelFunc0438_03E7:
		cmps("storms");
		UcMessage("\"The storms at sea cannot compare to these unnatural occurrences. Their very existence says that we are in a land so far from the natural order of things that even the skies lash out at us.\"");
		UcSay;
		UcMessage("\"Batlin was right. We cannot hope to survive if Unity is not brought to this place.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C("Batlin");
	labelFunc0438_0405:
		cmps("Batlin");
		UcMessage("\"Thou knowest Batlin?\"");
		UcSay;
		var0006 = Func0955();
		if(!var0006) goto labelFunc0438_0431;
		UcMessage("\"What canst thou tell us of home? What news of his noble cause?\"");
		UcSay;
		UI_add_answer_0C(["All Is Well.", "It Hath Been Disbanded."]);
		goto labelFunc0438_043D;
	labelFunc0438_0431:
		UcMessage("\"What a wondrous man of insight he is!\"");
		UcSay;
		UcMessage("\"Without him giving voice to the Triad of Inner Strength, we would all be doomed to failure... failure to live up to Lord British's high standards, or realize the full potential of every one of us.\"");
		UcSay;
		UcMessage("\"'Tis a pity that thou didst miss him. He hath gone inland to spread word of The Fellowship.\"");
		UcSay;
	labelFunc0438_043D:
		UI_remove_answer_0D("Batlin");
	labelFunc0438_0444:
		cmps("All Is Well.");
		UcMessage("\"Marvelous! Soon thou shalt see, everyone shall embrace the Triad of Inner Strength. The storms shall end and we shall live in peace and happiness all our days.\"");
		UcSay;
		UI_remove_answer_0D("All Is Well.");
	labelFunc0438_0457:
		cmps("It Hath Been Disbanded.");
		UcMessage("\"This is unthinkable! Surely there hath been some mistake!\"");
		UcSay;
		UcMessage("\"There is nothing evil in our principles! They are meant for all, without regard for station of birth.\"");
		UcSay;
		UcMessage("\"Batlin must be told of this! If he returns to Britannia to explain to Lord British, I am sure that everything will be settled.\"");
		UcSay;
		UcMessage("\"Perhaps our good name was degraded by those wishing to stop our ministering... But that shows a lack of Trust.\"");
		UcSay;
		UcMessage("\"I must meditate on this. Mine Inner Voice will no doubt provide an answer for such horrible news.\"");
		UcSay;
		Func097F(0xFFC8, "@This cannot be!@", 0x0000);
		UI_set_schedule_type_25(0xFFC8, 0x0014);
		abrt();
	labelFunc0438_048A:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks for thine help.@", 0x0000);
		Func097F(0xFFC8, (("@Go in Fellowship, " + var0002) + ".@"), 0x0005);
		goto labelFunc0438_04BC;
	labelFunc0438_04B9:
		goto labelFunc0438_00EA;
	labelFunc0438_04BC:
		end_conv();
	labelFunc0438_04BD:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08AA 0x8AA ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0439 0x439 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0001)) goto labelFunc0439_0041;
	UI_item_say_4D(0xFE9C, "@Greetings.@");
	0xFFC7;
	calle();
	Func097F(0xFFC7, "@What dost thou want?@", 0x0005);
	UI_set_schedule_type_25(0xFFC7, 0x0003);
	labelFunc0439_0041:
		if(!(event == 0x0009)) goto labelFunc0439_01B3;
		UI_run_schedule_B7(0xFFC7);
		UI_clear_item_say_4E(0xFFC7);
		UI_show_npc_face0_05(0xFFC7, 0x0000);
		var0003 = UI_get_item_flag_A3(0xFFC7, 0x001C);
		if(!(var0003 == false)) goto labelFunc0439_00A5;
		if(!(gflags[003E] == true)) goto labelFunc0439_0094;
		if(!(var0001 == true)) goto labelFunc0439_008D;
		UcMessage("\"Bold wench, thou art, to wear a tattoo so openly.\"");
		UcSay;
		goto labelFunc0439_0091;
	labelFunc0439_008D:
		UcMessage("\"Be careful, mate, lest thou be mistaken for an honest seafarin' man.\"");
		UcSay;
	labelFunc0439_0091:
		goto labelFunc0439_0098;
	labelFunc0439_0094:
		UcMessage("\"I have business to attend to. Be quick.\"");
		UcSay;
	labelFunc0439_0098:
		UI_set_item_flag_A4(0xFFC7, 0x001C);
		goto labelFunc0439_00A9;
	labelFunc0439_00A5:
		UcMessage("\"Returned again?\"");
		UcSay;
	labelFunc0439_00A9:
		if(!(gflags[015D] == true)) goto labelFunc0439_00B8;
		UI_add_answer_0C("assassin");
	labelFunc0439_00B8:
		UI_add_answer_0C(["name", "job", "goblins", "storms"]);
		if(!(gflags[0004] == true)) goto labelFunc0439_00DA;
		UI_add_answer_0C("Iolo the Mad");
	labelFunc0439_00DA:
		UI_add_answer_0C("bye");
	labelFunc0439_00E1:
		UcAsk;
		cmps("name");
		UcMessage("\"Second Mate Kalen, to ye.\"");
		UcSay;
		UI_remove_answer_0D("name");
	labelFunc0439_00F7:
		cmps("job");
		UcMessage("\"I'm a seafarer. And I do whate'er the Cap'n wants done.\"");
		UcSay;
		UI_remove_answer_0D("job");
	labelFunc0439_010A:
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		UcMessage("\"Green fellows. Hospitable. Be thou sure to accept their dinner invitation.\"");
		UcSay;
	labelFunc0439_011D:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Afraid of a bit of rain?\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc0439_013F;
		UcMessage("\"I can keep ye safe, darlin'. Thou shouldst come over ta mine hut...\"");
		UcSay;
		goto labelFunc0439_0143;
	labelFunc0439_013F:
		UcMessage("\"Run back to town like a good boy. I am sure the Lady would find ye an interesting pet.\"");
		UcSay;
	labelFunc0439_0143:
		cmps("assassin");
		UcMessage("\"Thou art hard to catch, Avatar. But now thou must die!\"");
		UcSay;
		UI_set_schedule_type_25(0xFFC7, 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFFC7);
		abrt();
	labelFunc0439_0164:
		cmps("Iolo the Mad");
		UcMessage("\"He is Master of Fawn now, Avatar. Thou wouldst be wise to leave while it amuses him to let ye live.\" *\"He might grant to me that fine wench, Alyssand, if I bring him thine head...\"");
		UcSay;
		UI_set_schedule_type_25(0xFFC7, 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFFC7);
		abrt();
	labelFunc0439_0185:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		Func097F(0xFFC7, "@Good riddance.@", 0x0005);
		Func08AA();
		goto labelFunc0439_01B2;
	labelFunc0439_01AF:
		goto labelFunc0439_00E1;
	labelFunc0439_01B2:
		end_conv();
	labelFunc0439_01B3:
		if(!(event == 0x0002)) goto labelFunc0439_01DF;
		if(!UI_get_item_flag_A3(0xFFC7, 0x0004)) goto labelFunc0439_01C9;
		abrt();
	labelFunc0439_01C9:
		Func097F(0xFFC7, "@I shall return!@", 0x0000);
		UI_set_attack_mode_59(0xFFC7, 0x0007);
	labelFunc0439_01DF:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFC7, 0x001D))) goto labelFunc0439_0252;
		gflags[015D] = true;
		UI_show_npc_face0_05(0xFFC7, 0x0000);
		UI_clear_item_flag_A5(0xFFC7, 0x001D);
		UI_reduce_health_87(0xFFC7, 0x0032, 0x0000);
		Func097F(0xFFC7, "@Urgghh...@", 0x0000);
		var0004 = Func0992(0x0001, 0x0000, 0x0000, true);
		Func097F(var0004, "@He is dead...@", 0x0005);
		if(!(gflags[0004] == true)) goto labelFunc0439_024E;
		UcMessage("\"Thou canst defeat me, Avatar. But thou hast no hope against the power of Iolo the Mad...\"");
		UcSay;
		goto labelFunc0439_0252;
	labelFunc0439_024E:
		UcMessage("\"My death only delays the inevitable, Avatar. Batlin will soon have more power than thou canst dream of, and my reward will be sure...\"");
		UcSay;
	labelFunc0439_0252:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0942 0x942 (var var0000);
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern Func08A9 0x8A9 ();
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func043A 0x43A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = Func0954();
	var0001 = Func0942(Jendon);
	var0002 = Func0953();
	var0003 = UI_is_pc_female_6F();
	var0004 = Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000);
	var0005 = UI_get_object_position_20(0xFFC6);
	if(!((var0005[0x0001] > 0x03A0) && ((var0005[0x0001] < 0x06D1) && ((var0005[0x0002] > 0x03BF) && (var0005[0x0002] < 0x06EF))))) goto labelFunc043A_006D;
	var0006 = true;
	labelFunc043A_006D:
		if(!(event == 0x0002)) goto labelFunc043A_00ED;
		if(!(gflags[0190] || gflags[018B])) goto labelFunc043A_0080;
		abrt();
	labelFunc043A_0080:
		if(!(Func0994() == 0x0003)) goto labelFunc043A_00D0;
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043A], 0x0014);
		var0007 = UI_approach_avatar_BF(0xFFC6, 0x0078, 0x0028);
		UI_set_schedule_type_25(0xFFC6, 0x0003);
		Func097F(0xFFC6, "@Hold there, old man!@", 0x0002);
		goto labelFunc043A_00ED;
	labelFunc043A_00D0:
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043A], 0x0032);
	labelFunc043A_00ED:
		if(!(event == 0x0007)) goto labelFunc043A_0107;
		var0007 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc043A_0107:
		if(!(event == 0x0001)) goto labelFunc043A_0135;
		UI_item_say_4D(0xFE9C, "@A word with thee, friend.@");
		0xFFC6;
		calle();
		Func097F(0xFFC6, "@If thou art paying...@", 0x0005);
		UI_set_schedule_type_25(0xFFC6, 0x0003);
	labelFunc043A_0135:
		if(!(event == 0x0009)) goto labelFunc043A_0FDE;
		UI_run_schedule_B7(0xFFC6);
		UI_clear_item_say_4E(0xFFC6);
		UI_show_npc_face0_05(0xFFC6, 0x0000);
		if(!(gflags[018C] && ((!gflags[018B]) && (!gflags[0190])))) goto labelFunc043A_0204;
		UcMessage("\"Say there, thou with the lute! Art thou a bard?\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Yes, I am, though as of late I do not feel the music within me.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I beg of thee, canst thou indulge me for but one song? The sinister thunder doth linger in mine ears.\"");
		UcSay;
		UcMessage("\"A few strums from thy strings may bring comfort to this sorrowful town...\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"I am truly sorry, but I do not think that I can help thee...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		gflags[018B] = true;
		UI_set_schedule_type_25(0xFFC6, 0x000F);
		Func097F(Iolo, "@Hmmmm...@", 0x0000);
		Func097F(0xFFD0, "@Please sing...@", 0x0002);
		Func097F(Kylista, "@Sing of Beauty!@", 0x0004);
		Func097F(0xFFCB, "@Disperse!@", 0x0008);
		Func097F(0xFFC6, "@Now I need me a drink!@", 0x000C);
		var0007 = UI_execute_usecode_array_01(Iolo, [0x23, 0x27, 0x000A, 0x55, 0x01D1]);
		abrt();
	labelFunc043A_0204:
		var0008 = UI_get_item_flag_A3(0xFFC6, 0x001C);
		if(!((UI_get_timer_7A(0x000C) < 0x0003) && gflags[0165])) goto labelFunc043A_0241;
		UcMessage("\"Go away, I'm not drunk enough yet.\"");
		UcSay;
		Func097F(0xFFC6, "@A drink!@", 0x0000);
		UI_set_schedule_type_25(0xFFC6, 0x001A);
		abrt();
		goto labelFunc043A_0245;
	labelFunc043A_0241:
		gflags[0165] = false;
	labelFunc043A_0245:
		if(!(var0008 == false)) goto labelFunc043A_0291;
		if(!(gflags[003E] == true)) goto labelFunc043A_0279;
		if(!(var0003 == true)) goto labelFunc043A_026B;
		UcMessage("\"By my sore eyes! 'Tis a comely wench wit' a tattoo... like any good sailor! Me name's Olon, and I'm a fisherman by trade.\"");
		UcSay;
		UI_add_answer_0C("tattoo");
		goto labelFunc043A_0276;
	labelFunc043A_026B:
		UcMessage("\"I haven't been out of this 'ere tavern all day. Find someone else ta put the blame on, Pikeman! Me name's Olon, and I'm a fisherman by trade.\"");
		UcSay;
		UI_add_answer_0C("Pikeman");
	labelFunc043A_0276:
		goto labelFunc043A_0284;
	labelFunc043A_0279:
		UcMessage("\"If it's a word or three thou art wantin' of me, I do me best talkin' wit' a bottle of Fawn ale! Me name's Olon, and I'm a fisherman by trade.\"");
		UcSay;
		UI_add_answer_0C("Fawn ale");
	labelFunc043A_0284:
		UI_set_item_flag_A4(0xFFC6, 0x001C);
		goto labelFunc043A_02BE;
	labelFunc043A_0291:
		UcMessage("\"Welcome back, ol' friend. These're thirsty times, aye?\"");
		UcSay;
		if(!(gflags[003E] == true)) goto labelFunc043A_02BE;
		if(!(var0003 == true)) goto labelFunc043A_02B3;
		UcMessage("\"Come lift a glass wit' me, lass. I do enjoy the company of a tattooed wench!\"");
		UcSay;
		UI_add_answer_0C("tattoo");
		goto labelFunc043A_02BE;
	labelFunc043A_02B3:
		UcMessage("\"Come lift a glass wit' me, lad. Tell me what a brave Pikeman like ye have been a doin'.\"");
		UcSay;
		UI_add_answer_0C("Pikeman");
	labelFunc043A_02BE:
		UI_add_answer_0C(["goblins", "bye"]);
		if(!(gflags[0164] == false)) goto labelFunc043A_02DA;
		UI_add_answer_0C("storms");
	labelFunc043A_02DA:
		if(!(gflags[0191] && (!gflags[028C]))) goto labelFunc043A_02EC;
		UI_add_answer_0C("pinecone");
	labelFunc043A_02EC:
		if(!(gflags[0199] && (!gflags[0298]))) goto labelFunc043A_02FE;
		UI_add_answer_0C("dead cat");
	labelFunc043A_02FE:
		UcAsk;
		cmps("tattoo");
		UcMessage("\"Now don't go tellin' me that thou beest a Pikeman like those ugly sons out in the tower.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_031C;
		UcMessage("\"Well, mayhaps they be uppin' their standards. Thou certainly art easy on the eyes. Jendon over there's pleasant enough, but ain't what thee'd be wantin' ta spend time with... if thou knowest what I mean.\"");
		UcSay;
		goto labelFunc043A_0320;
	labelFunc043A_031C:
		UcMessage("\"I didn't think so! Thou art more pleasin' ta look at. 'Tisn't often that thou findest a woman what's brave enough ta face the tattoo needle around here.\"");
		UcSay;
	labelFunc043A_0320:
		if(!var0006) goto labelFunc043A_0331;
		UcMessage("\"Join me over a bottle of Fawn's finest ale and we can swap tales. I'd like ta know how a beauty like thee came away with a tattoo.\"");
		UcSay;
		UI_add_answer_0C("tales");
	labelFunc043A_0331:
		UI_remove_answer_0D("tattoo");
	labelFunc043A_0338:
		cmps("tales");
		UcMessage("\"Don't be hasty! There's plenty of time for that. Thou still hast not told me how a comely piece of work like unto thee did find herself with a tattoo.\"");
		UcSay;
		UI_remove_answer_0D("tales");
		UI_add_answer_0C(["I don't remember.", "I was tricked.", "I am Monitor's Champion."]);
	labelFunc043A_035B:
		cmps("I don't remember.");
		UcMessage("\"Ah! I can understand right well, that I can. I've lost a day or two meself. Come ta think of it, that's how I ended up with me first tattoo... That was on that voyage when we found that pecul'ar island of cats.\"");
		UcSay;
		UI_remove_answer_0D(["I don't remember.", "I was tricked.", "I am Monitor's Champion."]);
		UI_add_answer_0C("island of cats");
	labelFunc043A_037E:
		cmps("island of cats");
		UcMessage("\"There's this island... Can't at all remember where it is. No one lives there, though. A barren, uninviting place...\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0404;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Oh, not that ale tale again, Olon! If thou drivest away what customers I have left, thou canst find somewhere else ta drink.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Quit thy complainin', Jendon. I'm the only reason anyone comes in here now, and thou knowest it! They come ta hear me tales...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Be that as may be, Olon. 'Tis not some bar maid that thou art speakin' with. Some of thy tales are not fit for any but a sailor's ears.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What objection hast thou of this tale?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		if(!var0003) goto labelFunc043A_03F1;
		UcMessage("\"None ta this one, though it is a bigger tale than the story about the flying whale. But I know thee! Let thee start on one tale and thou must tell them all. And I'll not have thee frightening the lady.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		if(!gflags[003E]) goto labelFunc043A_03E6;
		UcMessage("\"Frighten a saucy thing that wears a tattoo? Now where was I? Oh, yes...\"");
		UcSay;
		goto labelFunc043A_03EA;
	labelFunc043A_03E6:
		UcMessage("\"Frighten such an adventurous wench? Now where was I? Oh, yes...\"");
		UcSay;
	labelFunc043A_03EA:
		UI_remove_npc_face1_08();
		goto labelFunc043A_0404;
	labelFunc043A_03F1:
		UcMessage("\"None ta this one, though it is a bigger tale than the story about the flying whale. But I know thee! Let thee start on one tale and thou must tell them all. And I'll not have thee makin' a payin' customer sick wit' thy stories.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Turn the stomach of so bold a lad? Now where was I? Oh, yes...\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0404:
		UcMessage("\"The whole island is crawling with glowin' cats. Don't know how they arrived there, nor how they live in such a forsaken spot. But I've heard it said that they live there guarding some fantastical cat treasure.\" ~\"This be little Delphynia's favorite tale...\"");
		UcSay;
		UI_remove_answer_0D("island of cats");
		UI_add_answer_0C("Delphynia");
	labelFunc043A_0416:
		cmps("Delphynia");
		UcMessage("\"Delphynia is an herbalist.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_046A;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"She's a Horticulturist, Olon. Thou shouldst only give facts...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		if(!var0003) goto labelFunc043A_044C;
		UcMessage("\"Thou wouldst have me say such things in front of a lady? Weren't thou the one what was tellin' me ta mind me manners?\"");
		UcSay;
		goto labelFunc043A_0450;
	labelFunc043A_044C:
		UcMessage("\"Thou wouldst have me say such things of a lady? Weren't thou the one what was tellin' me ta mind me manners?\"");
		UcSay;
	labelFunc043A_0450:
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Oh, I surrender!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"An' him worried about what's proper an' what's not...\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_046A:
		UcMessage("\"She's what passes for a healer in these forsaken parts ever since the last healer were et by them goblins.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_04BD;
		UI_show_npc_face1_06(Jendon, 0x0000);
		if(!var0003) goto labelFunc043A_0498;
		UcMessage("\"Don't rant on about the goblins, Olon! 'Tis not a fit subject ta discuss before a lady.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Go back ta washin' the glasses, Jendon! Thou art no judge of what ta say in front of ladies.\"");
		UcSay;
		goto labelFunc043A_04A7;
	labelFunc043A_0498:
		UcMessage("\"Don't rant on about the goblins, Olon! Thou canst turn the stomach of a bilge rat when thou dost have a mind to.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Go back ta washin' the glasses, Jendon! Thou art no judge of what a darin' adventurer like this 'ere lad might like ta hear.\"");
		UcSay;
	labelFunc043A_04A7:
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I'd throw thee out, if thou weren't mine only steady customer. I would.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_04BD:
		UcMessage("\"Wouldst thou care to spend a while longer listenin' to another story?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_04D0;
		UI_add_answer_0C("story");
	labelFunc043A_04D0:
		UI_remove_answer_0D("Delphynia");
	labelFunc043A_04D7:
		cmps("story");
		if(!var0003) goto labelFunc043A_04EC;
		UcMessage("\"Ah, I know just the one for a bold wench as thyself! A tale ta stir the blood, that's for certain... the King of the White Dragon!\"");
		UcSay;
		goto labelFunc043A_04F0;
	labelFunc043A_04EC:
		UcMessage("\"Ah, I know just the one for a bold warrior as thyself! A tale ta stir the blood, that's for certain... the King of the White Dragon!\"");
		UcSay;
	labelFunc043A_04F0:
		UI_remove_answer_0D("story");
		UI_add_answer_0C("King of the White Dragon");
	labelFunc043A_04FE:
		cmps("I was tricked.");
		UcMessage("\"Aye, there are those that would do such things. Sometimes 'tis them that thou trustest most. Just like that ol' King of the White Dragon...\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0564;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Olon, even I don't want ta hear that one... ever again!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou always didst lack a backbone, Jendon! Go ta Temple and soothe thy nerves with the Oracle's empty mouthings!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Now 'tis blasphemy, is it, Olon? I would never have guessed thou hadst been taken in by that lot of fools.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou art a fine one ta be talkin' about being taken in, Jendon. An' I've said so often enough.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"That's all thou ever dost, Olon -- talk.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C(["Temple", "Oracle"]);
		UI_remove_npc_face1_08();
	labelFunc043A_0564:
		UI_remove_answer_0D(["I don't remember.", "I was tricked.", "I am Monitor's Champion."]);
		UI_add_answer_0C("King of the White Dragon");
	labelFunc043A_057B:
		cmps("Temple");
		UcMessage("\"It sits crouching in the shadow of the palace. But 'tis what controls the palace, if'n thou knowest what I mean.\"");
		UcSay;
		UI_remove_answer_0D("Temple");
	labelFunc043A_058E:
		cmps("Oracle");
		UcMessage("\"I hear tell it was built by some important mage, in the days before our ancestors left Sosaria. Supposed ta be an instrument of truth. But, seein' that lot, I wonder whose truth it tells.\"");
		UcSay;
		UI_remove_answer_0D("Oracle");
	labelFunc043A_05A1:
		cmps("King of the White Dragon");
		UcMessage("\"Long ago, when the mountains were young, this land was ruled by two rival kings. One of those kings was called the King of the White Dragon.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0622;
		UI_show_npc_face1_06(Jendon, 0x0000);
		if(!var0003) goto labelFunc043A_05F5;
		UcMessage("\"I'll not stay here and listen ta this again! Lady, I see that thou art armed. If he doth offend thee, run him through. I'll make no complaint.\" *\"If thou hast need of me, I shall be in back.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Perhaps he is right. Perhaps this tale is too rough for thy pretty ears. Dost thou wish me ta tell another tale instead?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_05E3;
		UcMessage("\"Then perhaps thou wouldst prefer ta hear a tale of a timeless love story that crosses the frozen wastes.\"");
		UcSay;
		goto labelFunc043A_05E7;
	labelFunc043A_05E3:
		UcMessage("\"I was right! Thou art a sturdy wench! I'll tell thee a fine love story next. Now where was I?\"");
		UcSay;
	labelFunc043A_05E7:
		UI_add_answer_0C("love story");
		UI_remove_npc_face1_08();
		goto labelFunc043A_0622;
	labelFunc043A_05F5:
		UcMessage("\"I'll not stay here and listen ta this again! Milord, I see that thou art armed. If he doth offend thee, run him through. I'll make no complaint.\" *\"If thou hast need of me, I shall be in back.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Perhaps he is right. Perhaps this tale is too brutal even for thee. Dost thou wish me ta tell another tale instead?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_0613;
		UcMessage("\"Then perhaps thou wouldst prefer ta hear a tale of a timeless love story that crosses the frozen wastes.\"");
		UcSay;
		goto labelFunc043A_0617;
	labelFunc043A_0613:
		UcMessage("\"I was right! Thou art a brave lad! I'll tell thee a fine love story next. Now where was I?\"");
		UcSay;
	labelFunc043A_0617:
		UI_add_answer_0C("love story");
		UI_remove_npc_face1_08();
	labelFunc043A_0622:
		UcMessage("\"The King of the White Dragon drove away his rival king, but he could not enjoy his victory, for the goblins were come. Hordes and hordes of goblins... and there weren't nothin' the old King of the White Dragon could do ta hold 'em back.\"");
		UcSay;
		UcMessage("\"Somethin' snapped in that old man's head when he saw that he could never control the land. So the King planned a way for him ta have control over everything at last. He summoned all his folk for a big party, and locked them inta the castle. Then, one by one, he murdered them all -- down ta the last babe.\"");
		UcSay;
		UcMessage("\"And then, as dawn broke, he stood on the tower all bloody and called ta the goblins that the King of the White Dragon had saved his people from their stewpots.\"");
		UcSay;
		UcMessage("\"They say he lives there still, feeding off any who pass by. One thing's certain, the goblins don't go near that place to this very day.\"");
		UcSay;
		UI_remove_answer_0D("King of the White Dragon");
	labelFunc043A_0639:
		cmps("love story");
		UcMessage("\"This is not thine usual love story, no. This here's about dragons, ice dragons.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_069D;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"A love story about ice dragons! Now I've heard everything, even from thee, Olon.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou wouldst not recognize a love story if it hit thee between the eyes, Jendon.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"So sayest thou, Olon. I think Alyssand's story qualifies well enough.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Shows what thou knowest, Jendon. We bards would call that a tragedy.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Thou wouldst style thyself a bard now? Perhaps I should bow.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Do that, and quiet! Thou hast interrupted all my tales so far. 'Tis rude.\"");
		UcSay;
		UI_add_answer_0C("Alyssand");
		UI_remove_npc_face1_08();
	labelFunc043A_069D:
		UcMessage("\"Back around the time Fawn was founded, many of our folk took it upon themselves ta explore the waterways. More than one ship returned with tales of a glittering ice dragon slowly making its way southward, calling pitiful-like.\"");
		UcSay;
		UcMessage("\"A few years later these same sailors spied TWO ice dragons sitting atop an icy peak, singin' ta one another. Them scholars over in Moonshade say that dragons mate for life. I'd wager that's what our lads came across -- a dragon out hunting for a mate.\"");
		UcSay;
		UcMessage("\"The only other thing I ever heard from those mages that made sense is that a dragon turns very hostile if its mate or young is killed.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_06CA;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Now that's truly touchin', Olon. Thou surely hast brought a tear ta mine eye, thou hast.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_06CA:
		UI_remove_answer_0D("love story");
	labelFunc043A_06D1:
		cmps("Alyssand");
		UcMessage("\"Alyssand's the daughter of Delin, the shopkeeper. Thou mightest think she hath had enough sadness in her short life.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_06FE;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"'Tis hard ta find many who have borne more, I'll wager.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_06FE:
		UcMessage("\"Her mother died after givin' birth ta Delin's only son. Never saw a man take it harder. He near ta lost his mind. Then he did go a little crazy after the Magister took young Freli away during the annual testing.\" *\"Alyssand hath looked after him all alone ever since, helpin' mind the store and doin' her weavin'. Then she met Keth.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0727;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"A sturdy lad, Keth was. 'Twere a pity ta lose him.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I'll thank thee to keep thy comments to thyself, Jendon. Thou art ruining my tale.\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0727:
		UcMessage("\"Keth doted upon Alyssand. Treated her better than the Lady of Fawn, he did. Sent all the way ta Moonshade ta have an engagement ring made for her.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_074C;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Cost him a pretty penny, I'll wager.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_074C:
		UcMessage("\"Then one day Keth didn't run fast enough ta shelter when one of those cursed storms hit. No one hath seen him since.\" *\"Until she lost her engagement ring ta another one of those storms here recently, Alyssand swore that Keth would return. She's a changed woman now.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0787;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Sounds like a love story to me...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"An' I suppose that thou considerest the island of cats a tragedy then?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"No, I'd call it an ale tale.. made from the fumes of mine ale!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0787:
		UI_remove_answer_0D("Alyssand");
		UI_add_answer_0C("island of cats");
		if(!(var0004 == true)) goto labelFunc043A_07A4;
		UI_add_answer_0C("engagement ring");
	labelFunc043A_07A4:
		cmps("engagement ring");
		UcMessage("\"That could be it, right enough. Though thou shouldst ask Alyssand herself. Mine eyes are not what they were.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_07D1;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"'Tis it, sure as the tide comes in! Keth flashed it around enough, I'd recognize it anywhere.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_07D1:
		Func08A9();
		UI_remove_answer_0D("engagement ring");
	labelFunc043A_07DB:
		cmps("I am Monitor's Champion.");
		UcMessage("\"Why not say that thou art the new Lady of Fawn, whilst thou art about it, bold wench? Methinks that thy tales must be taller than mine.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0808;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Now that be truly difficult, too.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0808:
		UcMessage("\"I think that thou wouldst benefit from the wisdom of an honest tradesman. Perhaps it would divert thy mind from a foolish girl's dreams.\"");
		UcSay;
		UI_remove_answer_0D(["I don't remember.", "I was tricked.", "I am Monitor's Champion."]);
		UI_add_answer_0C("wisdom");
	labelFunc043A_0823:
		cmps("wisdom");
		UcMessage("\"That woman who travelled with the Fellowship sailors said that the greatest wisdom comes from those of us what works for our living. Smart lady. She was willin' ta listen ta what I have to say.\"");
		UcSay;
		UI_remove_answer_0D("wisdom");
		UI_add_answer_0C(["woman", "Fellowship sailors"]);
	labelFunc043A_0843:
		cmps("woman");
		UcMessage("\"A red-haired beauty by the name of Gwenno. I told her about the island of cats, the King of the White Dragon. An' I told her a love story. I remember that -- she laughed and bought another round before she left.\"");
		UcSay;
		UI_remove_answer_0D("woman");
		UI_add_answer_0C(["island of cats", "King of the White Dragon", "love story"]);
	labelFunc043A_0866:
		cmps("Fellowship sailors");
		UI_remove_answer_0D("Fellowship sailors");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043A_088B;
		UcMessage("\"Now, if thou dost want to know more about them, thou shouldst ask them. The Lady hath let them back into the city, thou dost know...\"");
		UcSay;
		goto labelFunc043A_08C0;
	labelFunc043A_088B:
		UcMessage("\"They're the poor lads that Jendon prattles about all the time. Ta hear him talk, the Oracle all but shook down the Temple when Kylista asked if they were the cause of the storms.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_08B0;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Thou canst blaspheme all thou likest, Olon, I was there and heard it!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_08B0:
		UI_add_answer_0C(["Temple", "Oracle", "Kylista"]);
	labelFunc043A_08C0:
		cmps("Kylista");
		UcMessage("\"Kylista is the priestess of Beauty. She's wondrous fair of face, but her heart's as cold as the sea is deep. Kylista cares only for those who bow and scrape ta her. She doth have no use for those what can't make her more important.\"");
		UcSay;
		UI_remove_answer_0D("Kylista");
		UI_add_answer_0C("Beauty");
	labelFunc043A_08DA:
		cmps("Beauty");
		UcMessage("\"'Tis what everyone of this town is dedicated to. Everyone but those tryin' ta increase their power or wealth, that is...\" *\"Me sire told me that, once upon a time, Fawn was built in honor of love. We've come a far cry from that, I'd say.\"");
		UcSay;
		UI_remove_answer_0D("Beauty");
	labelFunc043A_08ED:
		cmps("Pikeman");
		UcMessage("\"I'm not so far gone in me cups as ta not be able ta see the mark that thou bearest on thy face. All the world knows thee for a Pikeman.\"");
		UcSay;
		if(!(gflags[014E] == true)) goto labelFunc043A_0908;
		UcMessage("\"But thou must be weary after takin' back the tower from those foul goblins. Pull up a chair an' we'll swap a few yarns over a cup or two.\"");
		UcSay;
		goto labelFunc043A_090C;
	labelFunc043A_0908:
		UcMessage("\"Thou dost not seem a bad sort of fellow. I'd be lookin' for a bit of drink and company, too, if I wert thou.\" *\"I doubt that it will be long before thou and thy companions lay siege ta those vile goblins in the tower.\" *\"Come lift a few with me, and I'll tell a few yarns ta take thy mind off thy troubles.\"");
		UcSay;
	labelFunc043A_090C:
		UI_remove_answer_0D("Pikeman");
		UI_add_answer_0C("yarns");
	labelFunc043A_091A:
		cmps("yarns");
		if(!(gflags[014E] == true)) goto labelFunc043A_0944;
		UcMessage("\"I'm certain that thou hast many yarns ta tell. Wert thou amongst the company that retook the tower?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_093D;
		UcMessage("\"I'd wager that it was as gruesome as the King of the White Dragon's castle.\"");
		UcSay;
		goto labelFunc043A_0941;
	labelFunc043A_093D:
		UcMessage("\"'Twas for the best, I'll warrant. I hear it was as gruesome as the King of the White Dragon's castle. An' everyone knows what happened there.\"");
		UcSay;
	labelFunc043A_0941:
		goto labelFunc043A_0948;
	labelFunc043A_0944:
		UcMessage("\"I'd not be in thy shoes, good Pikeman. Retaking that tower will be as gruesome as the King of the White Dragon's castle.\"");
		UcSay;
	labelFunc043A_0948:
		UI_remove_answer_0D("yarns");
		UI_add_answer_0C("King of the White Dragon");
	labelFunc043A_0956:
		cmps("King of the White Dragon");
		UcMessage("\"Thou hast not heard of the King of the White Dragon? The bards of Monitor have been lax of late then. I'll wager that thou hast not heard of the island of cats neither. Or a proper love story, neither.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0999;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Listen ta him, wilt thou? Art thou sayin' that thou art Fawn's bard now, Olon?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Our 'ficial one went down with the Delyssia. Reckon I'm all there is now.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I'd better start washin' more mugs, then. I may not have enough ta last, when word o' this gets out... If thou art not thrown out of town for thy braggin' first!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0999:
		UcMessage("\"Long ago, when the mountains were young, this land was ruled by two rival kings. One of those kings was called the King of the White Dragon.\"");
		UcSay;
		UcMessage("\"The King of the White Dragon drove away his rival king, but he could not enjoy his victory, for the goblins were come. Hordes and hordes of goblins... and there wasn't nothin' the old King of the White Dragon could do ta hold them back.\"");
		UcSay;
		UcMessage("\"Somethin' snapped in that old man's head when he saw that he could never control the land. So the King planned a way for him ta have control over everything at last. He summoned all his folk for a big party, and locked them inta the castle. Then, one by one, he murdered them all -- down ta the last babe.\"");
		UcSay;
		UcMessage("\"And then, as dawn broke, he stood on the tower all bloody and called ta the goblins that the King of the White Dragon had saved his people from their stewpots.\"");
		UcSay;
		UcMessage("\"They say he lives there still, feeding off any who pass by. One thing's for sure, the goblins don't go near that place ta this very day.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_09D6;
		if(!(gflags[014E] == false)) goto labelFunc043A_09D6;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"I'm sure that thou hast taken his mind off his problems, for sure, Olon. Why worry about goblins when thou canst worry about the King of the White Dragon?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_09D6:
		UI_remove_answer_0D("King of the White Dragon");
		UI_add_answer_0C(["island of cats", "love story"]);
	labelFunc043A_09EA:
		cmps("island of cats");
		UcMessage("\"There's this island... Can't at all remember where it is. No one lives there, though. A barren, uninviting place...\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0A1B;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Oh, not again, Olon! If thou drivest away what customers I have left, thou canst find somewhere else ta drink.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Cease thy complainin', Jendon. I'm the only reason anyone comes in here now, and thou knowest it! They come ta hear me tales...\" Now where was I? Oh, yes...\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0A1B:
		UcMessage("\"The whole island is crawling with cats. Don't know how they arrived there, nor how they live in such a forsaken spot. But I've heard it said that they live there guarding some fantastical cat treasure.\"");
		UcSay;
		UcMessage("\"This be Delphynia's favorite tale.\"");
		UcSay;
		UI_remove_answer_0D("island of cats");
		UI_add_answer_0C("Delphynia");
	labelFunc043A_0A31:
		cmps("Delphynia");
		UcMessage("\"Delphynia is an herbalist.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0A74;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"She's a Hor-ti-culturist, Olon. Thou shouldst only give facts...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou wouldst have me say such things in front of a stranger? 'Tisn't polite ta speak of a lady in such a fashion, Jendon.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Oh, I surrender!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0A74:
		UcMessage("\"She's what passes for a healer in these forsaken parts ever since the last healer was et by them goblins.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0AAF;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Don't rant on about the goblins, Olon! `Tis not a subject this young lord wishes ta hear right now, I'm certain.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Return ta washin' the glasses, Jendon! Thou art no judge of what a warrior wishes ta hear.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"And thou art? I'd throw thee out, if thou weren't mine only steady customer. I would.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0AAF:
		UI_remove_answer_0D("Delphynia");
	labelFunc043A_0AB6:
		cmps("love story");
		UcMessage("\"This is not thine usual love story, no. This here's about dragons, ice dragons.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0B1A;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"A love story about ice dragons! Now I've heard everything, even from thee, Olon.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou wouldst not recognize a love story if it hit thee between the eyes, Jendon.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"So sayest thou, Olon. I think Alyssand's story qualifies well enough.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Shows what thou knowest, Jendon. We bards would call that a tragedy.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Perhaps I should bow.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Do that, and quiet! Thou art rude to interrupt.\"");
		UcSay;
		UI_add_answer_0C("Alyssand");
		UI_remove_npc_face1_08();
	labelFunc043A_0B1A:
		UcMessage("\"Back around the time Fawn was founded, many of our folk took it upon themselves ta explore the waterways. More than one ship returned with tales of a glittering ice dragon slowly making its way southward, calling pitiful-like.\"");
		UcSay;
		UcMessage("\"A few years later these same sailors spied TWO ice dragons sitting atop an icy peak, singing ta one another. Them scholars over in Moonshade say that dragons mate for life. I'd wager that's what our lads came across -- a dragon out hunting for a mate.\"");
		UcSay;
		UcMessage("\"The only other thing I ever heard from those mages that made sense is that a dragon is very hostile if its mate or young is killed.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0B47;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Now that's truly touchin', Olon. Thou surely hast brought a tear ta mine eye, thou hast.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0B47:
		UI_remove_answer_0D("love story");
		UI_add_answer_0C("Alyssand");
	labelFunc043A_0B55:
		cmps("Alyssand");
		UcMessage("\"Alyssand's the daughter of Delin, the shopkeeper. Thou mightest think she hath had enough sadness in her short life.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0B82;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"'Tis hard ta find many who have borne more, I'll wager.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0B82:
		UcMessage("\"Her mother died after givin' birth ta Delin's only son. Never saw a man take it harder. He near ta lost his mind.\"");
		UcSay;
		UcMessage("\"Then he did go a little crazy after the Magister took young Freli away during the annual testing.\" *\"Alyssand hath looked after him all alone ever since, helpin' mind the store and doin' her weavin'. Then she met Keth.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0BAF;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"A sturdy lad, Keth was. 'Twere a pity ta lose him.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I'll thank thee ta keep thy comments ta thyself, Jendon. Thou art ruining my tale.\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0BAF:
		UcMessage("\"Keth doted upon Alyssand. Treated her better than the Lady of Fawn, he did. Sent all the way ta Moonshade ta have an engagement ring made for her.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0BD4;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Cost him a pretty penny, I'll wager.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0BD4:
		UcMessage("\"Then one day Keth didn't run fast enough ta shelter when one of those cursed storms hit. No one hath seen him since.\"");
		UcSay;
		UcMessage("\"Until she lost her engagement ring ta another one of those storms here recently, Alyssand swore that Keth would return. She's a changed woman now.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0C01;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Sounds like a love story ta me...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Goes ta show what thou knowest!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0C01:
		UI_remove_answer_0D("Alyssand");
		if(!(var0004 == true)) goto labelFunc043A_0C17;
		UI_add_answer_0C("engagement ring");
	labelFunc043A_0C17:
		cmps("engagement ring");
		UcMessage("\"That could be it, right enough. Though thou shouldst ask Alyssand herself. Mine eyes are not what they were.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0C44;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"'Tis it, sure as the tide comes in! Keth flashed it around enough, I'd recognize it anywhere.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0C44:
		UI_remove_answer_0D("engagement ring");
	labelFunc043A_0C4B:
		cmps("Fawn ale");
		if(!(var0003 == true)) goto labelFunc043A_0C8E;
		UcMessage("\"'Tis a drink from the heavens. Thou shouldst try it.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0C87;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"I'd advise against it, lady. There aren't many outside Fawn that care for its taste, I've found. I only export a bit ta Monitor now.\"");
		UcSay;
		UI_add_answer_0C("Monitor");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0C87:
		UcMessage("\"If thou wishest Fawn ale, it only comes in brown bottles.\"");
		UcSay;
		goto labelFunc043A_0CBE;
	labelFunc043A_0C8E:
		UcMessage("\"The drink of hard-workin' men! A drink ta put hair on thy chest and make the women throw themselves at thee.\" *\"Thou shouldst try it.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0CBA;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Be careful, Olon. There aren't many outside Fawn that care for its taste. I only export a bit ta Monitor now.\"");
		UcSay;
		UI_add_answer_0C("Monitor");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0CBA:
		UcMessage("\"If thou wishest Fawn ale, it comes only in brown bottles.\"");
		UcSay;
	labelFunc043A_0CBE:
		UcMessage("\"Wilt thou buy me a drink? I would be glad ta share stories with thee if thou dost.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_0D75;
		if(!(var0001 == true)) goto labelFunc043A_0D6E;
		UcMessage("\"Jendon! Bring thy lazy backside over here! Thou hast a payin' customer with a thirst.\"");
		UcSay;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"As sweet-tongued as always, Olon. Dost thou truly wish ta buy this sot a drink, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_0D49;
		UcMessage("\"Seest thou, Jendon, not everyone is as hard-hearted as thee!\"");
		UcSay;
		if(!(UI_count_objects_31(0xFE9B, 0x03B4, 0xFE99, 0xFE99) > 0x0009)) goto labelFunc043A_0D24;
		var0007 = UI_remove_party_items_34(0x000A, 0x03B4, 0xFE99, 0xFE99, true);
		goto labelFunc043A_0D46;
	labelFunc043A_0D24:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Not enough filari, no drink. No drink, no stories. Well, thou knowest where ta find me, if thou dost wish ta hear me stories.\"");
		UcSay;
		Func097F(0xFFC6, "@I'm thirsty...@", 0x0000);
		UI_set_schedule_type_25(0xFFC6, 0x001A);
		abrt();
	labelFunc043A_0D46:
		goto labelFunc043A_0D64;
	labelFunc043A_0D49:
		UcMessage("\"Changed thy mind, aye? No drink, no stories. Well, thou knowest where ta find me, if thou dost wish ta hear me stories.\"");
		UcSay;
		Func097F(0xFFC6, "@I'm thirsty...@", 0x0000);
		UI_set_schedule_type_25(0xFFC6, 0x001A);
		abrt();
	labelFunc043A_0D64:
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc043A_0D72;
	labelFunc043A_0D6E:
		UcMessage("\"Jendon doth not seem ta be around right now. Perhaps thou couldst buy that drink when he comes back. An' then me throat won't be too dry ta tell thee those stories.\"");
		UcSay;
	labelFunc043A_0D72:
		goto labelFunc043A_0D90;
	labelFunc043A_0D75:
		UcMessage("\"No drink, no stories! Thou knowest where ta find me, if thou dost wish ta hear me stories.\"");
		UcSay;
		Func097F(0xFFC6, "@I'm thirsty...@", 0x0000);
		UI_set_schedule_type_25(0xFFC6, 0x001A);
		abrt();
	labelFunc043A_0D90:
		UI_remove_answer_0D("Fawn ale");
		UI_add_answer_0C("stories");
	labelFunc043A_0D9E:
		cmps("Monitor");
		UcMessage("\"If thou shouldst want some while thou art in Monitor, Jendon sends it ta Simon. It doth not disappear very fast, but he orders a new batch every few months.\"");
		UcSay;
		UI_remove_answer_0D("Monitor");
		UI_add_answer_0C("Simon");
	labelFunc043A_0DB8:
		cmps("Simon");
		UcMessage("\"He is the innkeeper in Monitor. If thou hast the opportunity ta stay there, send him regards from Olon in Fawn... a fellow Fawn ale drinker.\"");
		UcSay;
		UI_remove_answer_0D("Simon");
	labelFunc043A_0DCB:
		cmps("stories");
		UcMessage("\"I know some fine ones -- scary, sentimental, or jus' plain odd. I can tell thee about the King of the White Dragon. Or I can tell thee about the island of cats. Or I can thee a love story.\"");
		UcSay;
		UI_remove_answer_0D("stories");
		UI_add_answer_0C(["King of the White Dragon", "island of cats", "love story"]);
	labelFunc043A_0DEE:
		cmps("goblins");
		UcMessage("\"Fierce little monsters, the goblins are. Not long in brains, but hard ta handle in a fight. Pomdirgun sends them at us in waves until we are all so tired that we can hardly stand and fight. But still, I'd rather deal with goblins than Gwani.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
		UI_add_answer_0C(["Pomdirgun", "Gwani"]);
	labelFunc043A_0E0E:
		cmps("Pomdirgun");
		UcMessage("\"He's not like other goblins, no. ~He's smart, and clever. Almost makes me think he might be a Daemon of some sort, leadin' them ta take over the world. Cook us all if they can, they will.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0E3F;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"They'll not cook thee, Olon. Thou art already pickled!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"An' they'll not eat thy tongue, either... 'Tis too tough from overuse!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc043A_0E3F:
		UI_remove_answer_0D("Pomdirgun");
	labelFunc043A_0E46:
		cmps("Gwani");
		UcMessage("\"Thou hast never heard of the Gwani? They're cousins ta the goblins that live north, beyond the frozen mountains.\" *\"Gwani make the goblins look like innocent children.\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0E89;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"How wouldst thou know, Olon? Thou hast never seen one, I'll wager!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Nor would I like ta... Thou art enough ta scare a man half ta death!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"If thou weren't mine only steady customer, Olon, I'd throw thee out on thine ear! I would.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0E89:
		UcMessage("\"'Tis true, upon my sire's grave I swear it! They'll eat their own -- as well as outsiders!\" *\"If thou dost travel inta the northern wastes, thou art risking ending thy life in the cookpot of a fur-covered goblin!\"");
		UcSay;
		UI_remove_answer_0D("Gwani");
	labelFunc043A_0E94:
		cmps("storms");
		UcMessage("\"I would almost believe that the world was at an end. These horrible storms have all but destroyed the town! How's a body ta make a livin' without a ship? How can a fisherman fish from a wagon... it sinks!\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0EC1;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Perhaps 'twould be best if thou didst not ask him about such things right now. He's no use like this.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0EC1:
		UcMessage("\"Can't put a sail on a cart and expect it ta take thee out ta sea and back again! Drowned!\" *\"Good men all... gone ta the bottom o' the sea! An' I should 'ave been with them! They'll come for me. I know they will! Down to the bottom o' the sea!\"");
		UcSay;
		if(!(var0001 == true)) goto labelFunc043A_0EEC;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Come back in a few hours, ");
		UcMessage(var0000);
		UcMessage(". He'll have had a drink or two ta calm him down. Then thou canst have him tell his tales.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043A_0EEC:
		gflags[0164] = true;
		gflags[0165] = true;
		UI_set_timer_7B(0x000C);
		Func097F(0xFFC6, "@Bottom of the sea!@", 0x0000);
		UI_set_schedule_type_25(0xFFC6, 0x000C);
		abrt();
	labelFunc043A_0F12:
		cmps("pinecone");
		UI_remove_answer_0D("pinecone");
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc043A_0F47;
		UcMessage("\"That be a mighty big pinecone thou dost have, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"I haven't seen one that size since the last time we sailed around that big forest north of here. They were all over there.\"");
		UcSay;
		goto labelFunc043A_0F4F;
	labelFunc043A_0F47:
		UcMessage("\"Sounds like a big pinecone!\"");
		UcSay;
		UcMessage("\"I haven't heard tell of one that size since the last time we sailed around that big forest north of here. They were all over there.\"");
		UcSay;
	labelFunc043A_0F4F:
		cmps("dead cat");
		UI_remove_answer_0D("dead cat");
		if(!Func097D(0xFE9B, 0x0001, 0x037C, 0xFE99, 0x001E)) goto labelFunc043A_0F8F;
		UcMessage("\"Poor critter. Thou shouldst give it a decent burial... Before Jendon sees it, if thou dost know what be good for thee.\"");
		UcSay;
		UcMessage("\"He be mighty partic'lar about things like that in his inn.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFC6, "@Quick now!@", 0x0000);
		abrt();
		goto labelFunc043A_0FAD;
	labelFunc043A_0F8F:
		UcMessage("\"I never figured that Jendon would be listenin' ta my tales! It sounds just like them cats on that island...\"");
		UcSay;
		UcMessage("\"Did I tell thee about the islands of cats?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043A_0FA6;
		UcMessage("\"Oh, well... Another time, perhaps.\"");
		UcSay;
		goto labelFunc043A_0FAD;
	labelFunc043A_0FA6:
		UI_add_answer_0C("island of cats");
	labelFunc043A_0FAD:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		Func097F(0xFFC6, "@Take care.@", 0x0002);
		Func08AA();
		goto labelFunc043A_0FDD;
	labelFunc043A_0FDA:
		goto labelFunc043A_02FE;
	labelFunc043A_0FDD:
		end_conv();
	labelFunc043A_0FDE:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094F 0x94F (var var0000, var var0001);

Func043B 0x43B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_is_pc_female_6F();
	var0003 = Func0942(Iolo);
	var0004 = Func0942(Dupre);
	var0005 = Func0942(Shamino);
	var0006 = UI_find_nearby_41(0xFFC5, 0x017D, 0x0014, 0x0000);
	var0007 = [0x040A, 0x07E9, 0x0000];
	if(!(event == 0x0007)) goto labelFunc043B_006A;
	var0008 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc043B_006A:
		if(!((event == 0x0000) || (event == 0x000E))) goto labelFunc043B_008B;
		UI_run_schedule_B7(0xFFC5);
		Func097F(0xFFC5, "@I must work...@", 0x0002);
	labelFunc043B_008B:
		if(!(event == 0x0001)) goto labelFunc043B_00B9;
		UI_item_say_4D(0xFE9C, "@Excuse me, friend.@");
		0xFFC5;
		calle();
		Func097F(0xFFC5, "@How may I be of service?@", 0x0002);
		UI_set_schedule_type_25(0xFFC5, 0x0003);
	labelFunc043B_00B9:
		if(!(event == 0x0009)) goto labelFunc043B_093E;
		UI_clear_item_say_4E(0xFFC5);
		UI_run_schedule_B7(0xFFC5);
		UI_show_npc_face0_05(0xFFC5, 0x0000);
		var0009 = UI_get_item_flag_A3(0xFFC5, 0x001C);
		var000A = UI_get_item_flag_A3(0xFFD0, 0x001C);
		if(!((gflags[0168] == false) && var0006)) goto labelFunc043B_03EF;
		UI_set_item_flag_A4(0xFFC5, 0x001C);
		gflags[0168] = true;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_set_new_schedules_B6(0xFFC5, [0x0002, 0x0005, 0x0006, 0x0007], [0x001A, 0x0006, 0x001A, 0x000E], [0x0479, 0x076B, 0x04BC, 0x0741, 0x0479, 0x076B, 0x049D, 0x0752]);
		UI_run_schedule_B7(0xFFC5);
		UcMessage("\"Oh, please, ");
		UcMessage(var0000);
		UcMessage(", a favor!\"");
		UcSay;
		if(!(var0009 == false)) goto labelFunc043B_0177;
		UcMessage("\"My name is Ruggs. I am a poor sailor whose visage offends the good people of Fawn, and I have been forbidden entry into the city.\"");
		UcSay;
		goto labelFunc043B_017B;
	labelFunc043B_0177:
		UcMessage("\"My visage offends the good people of Fawn, and I have been forbidden entry into the city.\"");
		UcSay;
	labelFunc043B_017B:
		UcMessage("\"I have not heard from the lady I love since mine exile, and I can find no one willing to carry her word of my continuing devotion.\"");
		UcSay;
		UcMessage("\"Please, ");
		UcMessage(var0000);
		UcMessage(", I beg of thee, wouldst thou take this letter to her for me?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043B_020C;
		UcMessage("\"Oh, I knew by the nobility of thy face that thou wouldst take pity on a wretch such as myself!\"");
		UcSay;
		UcMessage("\"Take this to Delphynia, the herbalist. Thou mayest find her at the greenhouse.\"");
		UcSay;
		UcMessage("\"If thou shouldst bring a return message, I will introduce thee to my shipmate, Scots, who makes maps.\"");
		UcSay;
		UcMessage("\"Perhaps his cartography would be of aid to thee.\"");
		UcSay;
		var0008 = Func099B(0xFE9C, 0x0001, 0x031D, 0x0004, 0x0005, false, true);
		gflags[0152] = true;
		var000B = UI_find_nearby_41(0xFE9C, 0x017D, 0x0014, 0x0000);
		enum();
	labelFunc043B_01D0:
		for (var000E in var000B with var000C to var000D atend labelFunc043B_01F6);
		if(!(UI_get_npc_id_BC(var000E) == 0x0001)) goto labelFunc043B_01F3;
		UI_set_schedule_type_25(var000E, 0x0003);
	labelFunc043B_01F3:
		goto labelFunc043B_01D0;
	labelFunc043B_01F6:
		UI_si_path_run_usecode_C1(0xFFC5, var0007, 0x0000, item, 0x043B, false);
		abrt();
		goto labelFunc043B_03D4;
	labelFunc043B_020C:
		UcMessage("\"I have searched all my life for a woman who would overlook my deformity and learn to love me. Somehow I will find a way to tell Delphynia of my love...\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc043B_031C;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"How can thine heart be so hard, Avatar? Thou wouldst search every corner of the land and sea to help me find Gwenno.\"");
		UcSay;
		UcMessage("\"Wilt thou reconsider and aid this poor soul's search for love?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043B_02B4;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"There may be hope after all... Here is the scroll.\"");
		UcSay;
		var0008 = Func099B(0xFE9C, 0x0001, 0x031D, 0x0004, 0x0005, false, true);
		UcMessage("\"Take this to Delphynia, the herbalist. Thou mayest find her at the greenhouse.\"");
		UcSay;
		UcMessage("\"If thou shouldst bring a return message, I will introduce thee to my shipmate, Scots, who makes maps.\"");
		UcSay;
		UcMessage("\"Perhaps his cartography would be of aid to thee.\"");
		UcSay;
		gflags[0152] = true;
		var000B = UI_find_nearby_41(0xFE9C, 0x017D, 0x0014, 0x0000);
		enum();
	labelFunc043B_0278:
		for (var000E in var000B with var000F to var0010 atend labelFunc043B_029E);
		if(!(UI_get_npc_id_BC(var000E) == 0x0001)) goto labelFunc043B_029B;
		UI_set_schedule_type_25(var000E, 0x0003);
	labelFunc043B_029B:
		goto labelFunc043B_0278;
	labelFunc043B_029E:
		UI_si_path_run_usecode_C1(0xFFC5, var0007, 0x0000, item, 0x043B, false);
		abrt();
		goto labelFunc043B_031C;
	labelFunc043B_02B4:
		UcMessage("\"I am sure that thou hast thy reasons, Avatar. But I am sorely disappointed.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The Avatar! Forgive me... unlike these local folk, I know whom thou art!\"");
		UcSay;
		UcMessage("\"I am certain that thy business is far more urgent.\"");
		UcSay;
		gflags[0167] = true;
		var000B = UI_find_nearby_41(0xFE9C, 0x017D, 0x0014, 0x0000);
		enum();
	labelFunc043B_02E3:
		for (var000E in var000B with var0011 to var0012 atend labelFunc043B_0309);
		if(!(UI_get_npc_id_BC(var000E) == 0x0001)) goto labelFunc043B_0306;
		UI_set_schedule_type_25(var000E, 0x0003);
	labelFunc043B_0306:
		goto labelFunc043B_02E3;
	labelFunc043B_0309:
		UI_si_path_run_usecode_C1(0xFFC5, var0007, 0x0000, item, 0x043B, false);
		abrt();
	labelFunc043B_031C:
		if(!(var0004 == true)) goto labelFunc043B_033D;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Have a drink or two... Thou wilt soon forget her.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043B_033D:
		if(!(var0005 == true)) goto labelFunc043B_0383;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Oh, no... Why is it that everyone expects the Avatar to help with their love life?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Why... I...\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc043B_0383;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Thou wouldst not be so hard, Shamino, if thou hadst lost thy love!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc043B_0383:
		gflags[0167] = true;
		UI_si_path_run_usecode_C1(0xFFC5, var0007, 0x0000, item, 0x043B, false);
		var000B = UI_find_nearby_41(0xFE9C, 0x017D, 0x0014, 0x0000);
		enum();
	labelFunc043B_03AD:
		for (var000E in var000B with var0013 to var0014 atend labelFunc043B_03D3);
		if(!(UI_get_npc_id_BC(var000E) == 0x0001)) goto labelFunc043B_03D0;
		UI_set_schedule_type_25(var000E, 0x0003);
	labelFunc043B_03D0:
		goto labelFunc043B_03AD;
	labelFunc043B_03D3:
		abrt();
	labelFunc043B_03D4:
		UI_set_item_flag_A4(0xFFC5, 0x001C);
		gflags[0168] = true;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		goto labelFunc043B_0476;
	labelFunc043B_03EF:
		if(!(var0009 == false)) goto labelFunc043B_041B;
		if(!(gflags[003E] == true)) goto labelFunc043B_040A;
		UcMessage("\"Greetings, good Knight! The sight of thee and thy companions is always heartening, for the Goblins fear such as thee.\"");
		UcSay;
		UcMessage("\"I am Ruggs, a poor sailor from Britannia.	How may I serve thee today?\"");
		UcSay;
		goto labelFunc043B_040E;
	labelFunc043B_040A:
		UcMessage("\"I am Ruggs, a poor sailor exiled from Britannia and from Fawn. How may I serve thee today?\"");
		UcSay;
	labelFunc043B_040E:
		UI_set_item_flag_A4(0xFFC5, 0x001C);
		goto labelFunc043B_042C;
	labelFunc043B_041B:
		if(!gflags[0004]) goto labelFunc043B_0428;
		UcMessage("\"All is lost, Avatar! All is lost!\"");
		UcSay;
		goto labelFunc043B_042C;
	labelFunc043B_0428:
		UcMessage("\"'Tis always a pleasure to see another Britannian at Fawn, Avatar. How may I serve thee today?\"");
		UcSay;
	labelFunc043B_042C:
		if(!(!gflags[0004])) goto labelFunc043B_0443;
		UI_add_answer_0C(["Britannia", "Fawn"]);
		goto labelFunc043B_0450;
	labelFunc043B_0443:
		UI_add_answer_0C(["Where is everyone?", "What happened?"]);
	labelFunc043B_0450:
		if(!((Func097D(0xFE9B, 0x0001, 0x031D, 0x001B, 0x0000) && (!gflags[01A7])) && (!gflags[0004]))) goto labelFunc043B_0476;
		UI_add_answer_0C("letter");
	labelFunc043B_0476:
		UI_add_answer_0C("bye");
	labelFunc043B_047D:
		UcAsk;
		cmps("Where is everyone?");
		UI_remove_answer_0D("Where is everyone?");
		UcMessage("\"All dead! Hast thou not seen their bodies heaped about the desolate buildings?\"");
		UcSay;
		UcMessage("\"I do not remember it clearly, for my sanity was lost when I found Delphynia's body.\"");
		UcSay;
		UcMessage("\"Lady Yelinda was also spared, but she hath gone into the swamps of Gorlab. I should have gone after her, but I did not. I alone remain in Fawn.\"");
		UcSay;
		UI_add_answer_0C(["Delphynia", "Lady Yelinda"]);
	labelFunc043B_04A8:
		cmps("What happened?");
		UI_remove_answer_0D("What happened?");
		UcMessage("\"What fell companion didst thou harbor, ");
		UcMessage(var0000);
		UcMessage("? The Bard Iolo did come here, and he hath turned Fawn into a mockery...\"");
		UcSay;
		UI_add_answer_0C(["Iolo", "mockery"]);
	labelFunc043B_04CE:
		cmps("Iolo");
		UI_remove_answer_0D("Iolo");
		UcMessage("\"Mad Iolo, he doth call himself now! His eyes are all afire, and he doth act like a man possessed.\"");
		UcSay;
		UcMessage("\"Such cruel acts did he commit, that I cannot relate them lest my soul shrivel and die.\"");
		UcSay;
		UcMessage("\"Yet Mad Iolo did laugh the entire time...\"");
		UcSay;
	labelFunc043B_04E9:
		cmps("mockery");
		UI_remove_answer_0D("mockery");
		UcMessage("\"There is nothing thou canst do -- all is done for, all is lost!\"");
		UcSay;
		UcMessage("\"The City of Beauty hath become the City of Blood and Ruin. Only I am left alive.\"");
		UcSay;
		UcMessage("\"Dost thou not see the irony? Only I, the ugliest of all, yet remain to dwell in Fawn!\"");
		UcSay;
	labelFunc043B_0504:
		cmps("Britannia");
		UcMessage("\"Our ship was hired by Batlin to transport scholars to explore a new land and spread word of The Fellowship.\"");
		UcSay;
		UcMessage("\"Now, even if we wanted to return without Batlin, we cannot venture onto the sea for fear of these terrible storms.\"");
		UcSay;
		UI_remove_answer_0D("Britannia");
		UI_add_answer_0C(["Batlin", "storms"]);
	labelFunc043B_0528:
		cmps("Batlin");
		UcMessage("\"Thou hast not heard of Batlin? He was the founder of The Fellowship movement, in Britannia.\"");
		UcSay;
		UcMessage("\"He is a pious and worthy man, for all that he doth have strange companions.\"");
		UcSay;
		var0015 = Func0992(0x0001, "@His description doth not much fit the Batlin we know, doth it, Avatar?@", 0x0000, false);
		if(!(var0015 != 0xFE9C)) goto labelFunc043B_0559;
		UI_set_conversation_slot_09(0x0000);
	labelFunc043B_0559:
		UI_remove_answer_0D("Batlin");
		UI_add_answer_0C("companions");
	labelFunc043B_0567:
		cmps("companions");
		UcMessage("\"Batlin bade Leon stay and preach to the populace of Fawn and left the ship with three companions: Palos, Brunt and Deadeye.\"");
		UcSay;
		UcMessage("\"We have not seen them since. Although they promised to return soon.\"");
		UcSay;
		UI_remove_answer_0D("companions");
		UI_push_answers_0E();
		UI_add_answer_0C(["Leon", "Palos", "Brunt", "Deadeye", "change subject"]);
	labelFunc043B_0598:
		cmps("change subject");
		UcMessage("\"Very well...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc043B_05A8:
		cmps("Leon");
		UcMessage("\"Leon was especially chosen by Batlin to come and bring the hope of The Fellowship to this land.\"");
		UcSay;
		UcMessage("\"He hath been the only thing that hath kept us all sane since we have been stranded here.\"");
		UcSay;
		UcMessage("\"I strive to emulate him, in mine own humble way.\"");
		UcSay;
		UI_remove_answer_0D("Leon");
		UI_add_answer_0C("emulate");
	labelFunc043B_05CA:
		cmps("emulate");
		UcMessage("\"Leon hath shown me that, by speaking well, people may see beyond my deformity and respect me. I cannot change the way I look, but I can change my speech.\"");
		UcSay;
		UcMessage("\"And, as Leon sows the seeds of The Fellowship, I sow seeds in the soil. Gardening distracts my thoughts from being trapped ashore.\"");
		UcSay;
		UI_remove_answer_0D("emulate");
	labelFunc043B_05E1:
		cmps("Palos");
		UI_remove_answer_0D("Palos");
		UcMessage("\"I do not know much about him. Most of the time he remained below or went about heavily cloaked. I do not think that he was of the race of Men...\"");
		UcSay;
		UcMessage("\"We were all very thankful that he was so strong, I tell thee that.\"");
		UcSay;
		UI_add_answer_0C("strong");
	labelFunc043B_05FF:
		cmps("strong");
		UI_remove_answer_0D("strong");
		UcMessage("\"Palos was fearfully strong, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"During a storm, the main mast was struck by lightning and came crashing down,	jamming the winch that operated the sea anchor.\"");
		UcSay;
		UcMessage("\"Without the sea anchor, we would have been quickly lost to the angry waves. But Palos strode across the deck and shoved the mast aside to free the winch... All by himself.\"");
		UcSay;
	labelFunc043B_0620:
		cmps("Brunt");
		UcMessage("\"Brunt is little more than a common mercenary, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I suspect that Batlin hired him to act as a personal guard in this foreign land. He is not fit for much else.\"");
		UcSay;
		UI_remove_answer_0D("Brunt");
		UI_add_answer_0C("not fit");
	labelFunc043B_0644:
		cmps("not fit");
		UcMessage("\"Brunt is no seaman, 'tis true.\"");
		UcSay;
		UcMessage("\"If I had not seen his face the day he boarded, I would have thought him a Daemon. He was so green.\"");
		UcSay;
		UI_remove_answer_0D("not fit");
		UI_add_answer_0C("green");
	labelFunc043B_0662:
		cmps("green");
		UcMessage("\"He was seasick the entire voyage, ");
		UcMessage(var0000);
		UcMessage("! I have never seen anyone worse.\"");
		UcSay;
		UcMessage("\"And what a temper! 'Tis to be hoped he is better mannered on land.\"");
		UcSay;
		UI_remove_answer_0D("green");
	labelFunc043B_067F:
		cmps("Deadeye");
		UcMessage("\"Deadeye is the only one of Batlin's companions that I truly know. I cannot say that I'm happy about the association, either.\"");
		UcSay;
		UI_remove_answer_0D("Deadeye");
		UI_add_answer_0C("association");
	labelFunc043B_0699:
		cmps("association");
		UcMessage("\"I served with Deadeye on another ship, several years back. He used to bully the crew by telling them that white eye of his could curse a man.\"");
		UcSay;
		UcMessage("\"Deadeye liked to provoke a fight and dare the other man to hit him. No one would, for fear of that eye.\"");
		UcSay;
		UcMessage("\"Sailors are a superstitious lot, I fear, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UI_remove_answer_0D("association");
	labelFunc043B_06BA:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"I've been a seafarin' man for more than twenty years, ");
		UcMessage(var0000);
		UcMessage(". And I cannot recall a time that I've seen storms as strange as these.\"");
		UcSay;
		UcMessage("\"I've seen lightning that jumps from cloud to cloud. I've seen lightning that shoots down like a pitchfork from the heavens. And I've seen lightning that dances across the masts of a ship.\"");
		UcSay;
		UcMessage("\"But I've never seen lightning that changes a man into a rock, or makes a ship disappear before thy very eyes.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["changes a man", "ship disappear", "change subject"]);
	labelFunc043B_06EF:
		cmps("changes a man");
		UcMessage("\"I saw it happen, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"I was holding the door open for one of the crew who was running for shelter when one of those storms hit.\"");
		UcSay;
		UcMessage("\"There was this bright flash and a deafening crash... And when mine eyes cleared, Geof was gone and a chicken stood gawking at me in the very spot Geof had been in.\"");
		UcSay;
		UI_remove_answer_0D("changes a man");
	labelFunc043B_0710:
		cmps("ship disappear");
		UcMessage("\"With my very own eyes, I saw it!\"");
		UcSay;
		UcMessage("\"I was on the Fawn docks chatting with a salt named Olon, in the days before I was banned	from the city.\"");
		UcSay;
		UcMessage("\"All of a sudden one of those storms hit and Olon and I dove for cover under a rowboat.\"");
		UcSay;
		UcMessage("\"We saw the ship that had just put out be hit by the lightning and it just... disappeared! Never found a trace of it or her crew.\"");
		UcSay;
		UI_remove_answer_0D("ship disappear");
	labelFunc043B_072F:
		cmps("Lady Yelinda");
		UI_remove_answer_0D("Lady Yelinda");
		gflags[01B1] = true;
		UcMessage("\"The Great Lady did flee Fawn in a terrible hurry, due to the Curse. All she left behind was her Diamond Necklace.\"");
		UcSay;
		UcMessage("\"She hath been made as disfigured as I am. Imagine, to plummet from Beauty to Ugliness!\"");
		UcSay;
		UcMessage("\"It hath driven her insane.\"");
		UcSay;
		UI_add_answer_0C("Diamond Necklace");
	labelFunc043B_0755:
		cmps("Diamond Necklace");
		UI_remove_answer_0D("Diamond Necklace");
		UcMessage("\"I did find the necklace lying in the throne room.\"");
		UcSay;
		UcMessage("\"But I did not take it, for it belongs to the Lady. And the rats shall not disturb it.\"");
		UcSay;
	labelFunc043B_076C:
		cmps("Delphynia");
		UI_remove_answer_0D("Delphynia");
		if(!gflags[0004]) goto labelFunc043B_0790;
		UcMessage("\"I found her pitiful body dumped in the street, with her insides... twisted... torn out...\"");
		UcSay;
		UcMessage("\"She was long dead...\"");
		UcSay;
		UcMessage("\"I brought her body to where it is now. I could not leave my love to lie in the open, for the rats to gnaw.\"");
		UcSay;
		goto labelFunc043B_07D8;
	labelFunc043B_0790:
		if(!(gflags[0168] == false)) goto labelFunc043B_07A9;
		UcMessage("\"Delphynia is the most beautiful of all women! Pray, forgive me, ");
		UcMessage(var0000);
		UcMessage(". I speak with the tongue of a man bound by the chains of love.\"");
		UcSay;
		UcMessage("\"Delphynia is Fawn's horticulturist and healer, of late. I met her when I accompanied Batlin into town for supplies.\"");
		UcSay;
		goto labelFunc043B_07D8;
	labelFunc043B_07A9:
		if(!(gflags[0167] == true)) goto labelFunc043B_07B9;
		UcMessage("\"Delphynia is Fawn's horticulturist and healer, of late. I met her when I accompanied Batlin into town for supplies.\"");
		UcSay;
		UcMessage("\"Thou wilt understand why I love her, if thou shouldst meet her.\"");
		UcSay;
	labelFunc043B_07B9:
		if(!(gflags[0152] && (var000A == false))) goto labelFunc043B_07D0;
		UcMessage("\"Delphynia is Fawn's horticulturist and healer, of late. I met her when I accompanied Batlin into town for supplies.\"");
		UcSay;
		UcMessage("\"To me, she is the most beautiful woman in Fawn. When thou dost meet her, I'm sure that thou wilt agree with me.\"");
		UcSay;
		goto labelFunc043B_07D8;
	labelFunc043B_07D0:
		UcMessage("\"Thou hast met her... Delphynia is the most beautiful woman in all Fawn, to	me.\"");
		UcSay;
		UcMessage("\"She is also a fine horticulturist and healer.	I met her when I accompanied Batlin into town for supplies.\"");
		UcSay;
	labelFunc043B_07D8:
		cmps("Fawn");
		UcMessage("\"'Tis the city over there, ");
		UcMessage(var0000);
		UcMessage(". They claim to honor Beauty, which my face naturally offends.\"");
		UcSay;
		UcMessage("\"They are hard pressed, what with the Goblins and all.\"");
		UcSay;
		UI_remove_answer_0D("Fawn");
		UI_add_answer_0C("Goblins");
	labelFunc043B_07FC:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043B_0821;
		UcMessage("\"It is such a relief to be able to shelter behind the walls of Fawn. I think the goblins cannot reach us here.\"");
		UcSay;
		goto labelFunc043B_0872;
	labelFunc043B_0821:
		if(!(gflags[003E] == true)) goto labelFunc043B_084F;
		if(!(gflags[014E] == false)) goto labelFunc043B_0840;
		UcMessage("\"Now that the Goblins hold thy Pikemen tower, Fawn doth have little hope of withstanding a determined attack.\"");
		UcSay;
		UcMessage("\"I fear that my companions and I will be the next delicacy in the Goblin stewpot without thy protection.\"");
		UcSay;
		UcMessage("\"We do not have city gates to hide behind.\"");
		UcSay;
		goto labelFunc043B_084C;
	labelFunc043B_0840:
		UcMessage("\"'Tis a blessing that thou and thine honored Pikemen companions did wrest the Fawn tower from the Goblins.\"");
		UcSay;
		UcMessage("\"Fawn could not have long resisted a determined attack. And my companions and I would have been the next delicacy in the Goblin stewpot, I fear.\"");
		UcSay;
		UcMessage("\"We have no city gates to hide behind.\"");
		UcSay;
	labelFunc043B_084C:
		goto labelFunc043B_0872;
	labelFunc043B_084F:
		if(!(gflags[014E] == false)) goto labelFunc043B_0866;
		UcMessage("\"Now that the Goblins hold the Pikemen tower, Fawn doth have little hope of withstanding a determined attack.\"");
		UcSay;
		UcMessage("\"I fear that my companions and I will be the next delicacy in the Goblin stewpot.\"");
		UcSay;
		UcMessage("\"We do not have city gates to hide behind.\"");
		UcSay;
		goto labelFunc043B_0872;
	labelFunc043B_0866:
		UcMessage("\"'Tis a blessing that the honored Pikemen ripped the Fawn tower from them Goblins.\"");
		UcSay;
		UcMessage("\"Fawn could not have long resisted a determined attack. And my companions and I would have been the next delicacy in the Goblin stewpot, I fear.\"");
		UcSay;
		UcMessage("\"We have no city gates to hide behind.\"");
		UcSay;
	labelFunc043B_0872:
		cmps("letter");
		var0016 = UI_remove_party_items_34(0x0001, 0x031D, 0x001B, 0x0000, false);
		UcMessage("\"Oh, blessings upon thee, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"Delphynia knows of my love, though she is unsure of her feelings for me.\"");
		UcSay;
		UcMessage("\"As long as she hath not rejected me out of hand, I will be content to wait. Thy good deed hath given me reason to live!\"");
		UcSay;
		UcMessage("\"As promised, I will send thee to my shipmate, Scots.\"");
		UcSay;
		var0017 = true;
		UI_remove_answer_0D("letter");
		UI_add_answer_0C("Scots");
	labelFunc043B_08B6:
		cmps("Scots");
		UcMessage("\"Scots is a fine fellow, though he often seems a bit distracted. He is a cartographer.\"");
		UcSay;
		UcMessage("\"Perhaps his maps will aid thee, though they are not as accurate as he wishes.\"");
		UcSay;
		UcMessage("\"Thou mayest find him somewhere within our camp.\"");
		UcSay;
		UI_remove_answer_0D("Scots");
		UI_add_answer_0C("not as accurate");
	labelFunc043B_08D8:
		cmps("not as accurate");
		UcMessage("\"Since we dare not stray too far from shelter, Scots cannot explore and map.\"");
		UcSay;
		UcMessage("\"He hath worked from existing maps that he received from the Fawn fishermen, so he is only sure of the accuracy of the coastline.\"");
		UcSay;
		UcMessage("\"Scots often complains that we cannot even explore by ship. None of us are happy to be stranded here.\"");
		UcSay;
		UI_remove_answer_0D("not as accurate");
	labelFunc043B_08F3:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye, Ruggs.@", 0x0000);
		if(!gflags[0004]) goto labelFunc043B_092B;
		var0008 = ("" & ("@Woe is me...@" & "@My love is slain!@"));
		Func094F(0xFFC5, var0008);
		goto labelFunc043B_0937;
	labelFunc043B_092B:
		Func097F(0xFFC5, "@Fair weather to thee.@", 0x0005);
	labelFunc043B_0937:
		goto labelFunc043B_093D;
	labelFunc043B_093A:
		goto labelFunc043B_047D;
	labelFunc043B_093D:
		end_conv();
	labelFunc043B_093E:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func043C 0x43C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0007)) goto labelFunc043C_002D;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc043C_002D:
		if(!(event == 0x0001)) goto labelFunc043C_0063;
		UI_item_say_4D(0xFE9C, "@Greetings, sir.@");
		0xFFC4;
		calle();
		Func097F(0xFFC4, (("@Hello, " + var0000) + ".@"), 0x0005);
		UI_set_schedule_type_25(0xFFC4, 0x0003);
	labelFunc043C_0063:
		if(!(event == 0x0009)) goto labelFunc043C_038C;
		UI_run_schedule_B7(0xFFC4);
		UI_clear_item_say_4E(0xFFC4);
		UI_show_npc_face0_05(0xFFC4, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFFC4, 0x001C);
		if(!(var0004 == false)) goto labelFunc043C_00A9;
		UcMessage("\"Good, a new face! I am Scots, a geographer. Perhaps thou wouldst share tales of other places with me, so I might add detail to my maps.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFC4, 0x001C);
		goto labelFunc043C_00B3;
	labelFunc043C_00A9:
		UcMessage("\"Welcome back, ");
		UcMessage(var0002);
		UcMessage("! What tales hast thou for me today?\"");
		UcSay;
	labelFunc043C_00B3:
		UI_add_answer_0C(["goblins", "storms", "tales", "maps", "bye"]);
		if(!(gflags[0004] == true)) goto labelFunc043C_00D8;
		UI_add_answer_0C("Iolo the Mad");
	labelFunc043C_00D8:
		UcAsk;
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043C_0100;
		UcMessage("\"I think that we shall be safe from their raiding parties, now that the Lady hath admitted us within the city walls.\"");
		UcSay;
		goto labelFunc043C_0125;
	labelFunc043C_0100:
		UcMessage("\"The Pikemen track them into the woods around their Knight's Test, west of here. Then they simply seem to disappear.\"");
		UcSay;
		if(!(gflags[014E] == false)) goto labelFunc043C_0113;
		UcMessage("\"We have held against their raiding parties with the help of the Pikemen. But now that the tower hath been taken and we cannot seek refuge in the city, I fear that we are lost.\"");
		UcSay;
		goto labelFunc043C_0117;
	labelFunc043C_0113:
		UcMessage("\"We withstand their attacks only with the help of the Pikemen. We had given up hope when the goblins took the tower. But we may hold a while longer now that it hath been returned to Monitorian keeping.\"");
		UcSay;
	labelFunc043C_0117:
		UI_add_answer_0C("Pikemen");
		UI_add_answer_0C("Knight's Test");
	labelFunc043C_0125:
		cmps("Pikemen");
		if(!(gflags[003E] == true)) goto labelFunc043C_013C;
		UcMessage("\"Thou seekest to jest with me. By the mark on thy face, 'tis plain to see that thou art a Pikeman. Surely Monitor's bravest have better things to do than pull pranks on a poor, landbound sailor.\"");
		UcSay;
		goto labelFunc043C_0147;
	labelFunc043C_013C:
		UcMessage("\"They are warriors that come from Monitor, a city south of here. Very brave. I can usually count on many tales from them.\"");
		UcSay;
		UI_add_answer_0C("Monitor");
	labelFunc043C_0147:
		UI_remove_answer_0D("Pikemen");
	labelFunc043C_014E:
		cmps("Monitor");
		if(!(gflags[003E] == true)) goto labelFunc043C_0165;
		UcMessage("\"Perhaps thou hast been in one fight too many, if thou dost not recall thine own town.\" *\"Travel southward from here. One of thy Pikeman comrades will take thee to the healer in Monitor, I'm certain.\"");
		UcSay;
		goto labelFunc043C_0169;
	labelFunc043C_0165:
		UcMessage("\"'Tis on the very south edge of the continent. There are mountains to either side of the city. Very defensible.\" *\"The city is run by a representative from one of the three Pikemen units -- the wolves, the leopards, and the bears. Each unit takes a turn at having one of their number govern the city.\"");
		UcSay;
	labelFunc043C_0169:
		UI_remove_answer_0D("Monitor");
	labelFunc043C_0170:
		cmps("Knight's Test");
		if(!(gflags[003E] == true)) goto labelFunc043C_0187;
		UcMessage("\"All I know, good knight, is that all Monitorians travel to a peninsula southwest of here for some rite of passage. 'Tis all I can tell thee. Unless thou wishest to further enlighten me...\"");
		UcSay;
		goto labelFunc043C_018B;
	labelFunc043C_0187:
		UcMessage("\"The Pikemen I spoke to were rather closed-mouthed about it. All I could gather is that it's some sort of rite of passage	for all Monitorians.\" *\"'Tis located on a peninsula to the southwest of here.\"");
		UcSay;
	labelFunc043C_018B:
		UI_remove_answer_0D("Knight's Test");
	labelFunc043C_0192:
		cmps("storms");
		UcMessage("\"I've travelled far and wide all my life, and never have I seen the likes before. These storms appear without warning and leave chaos in their wake. Move things around, change things around... Simply not natural. Makes me think Leon might be right.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C("Leon");
	labelFunc043C_01AC:
		cmps("Leon");
		UcMessage("\"Thou hast not met Leon yet? Thou hast only to look for the crowd of people. Thou'lt find him in the center of it all, no doubt.\" *\"Leon is a very charismatic Fellowship follower. He speaks their beliefs fairly, to be sure. Hath drawn many of the folk from the town. I'll wager that's why that Priestess had us banned from entering the city.\"");
		UcSay;
		UI_remove_answer_0D("Leon");
		gflags[016A] = true;
		UI_add_answer_0C("Priestess");
		if(!(gflags[0169] == false)) goto labelFunc043C_01D9;
		UI_add_answer_0C("Fellowship");
	labelFunc043C_01D9:
		cmps("Fellowship");
		UcMessage("\"I can tell thee that it digresses from the Virtues that Lord British set forth. But it makes sense.\" *\"Talk to Leon. He's far more eloquent than I on the subject.\"");
		UcSay;
		UI_remove_answer_0D("Fellowship");
		gflags[0169] = true;
		if(!(gflags[016A] == false)) goto labelFunc043C_01FF;
		UI_add_answer_0C("Leon");
	labelFunc043C_01FF:
		cmps("Priestess");
		UI_remove_answer_0D("Priestess");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043C_0224;
		UcMessage("\"'Tis a shame to see any creature so beautiful placed behind bars, but I think we shall all be safer because of it.\"");
		UcSay;
		goto labelFunc043C_022F;
	labelFunc043C_0224:
		UcMessage("\"Kylista is as beautiful as the day is long, but with the soul of a viper. I wouldn't trust her if I were thee.\" *\"She's plotting something with the Chancellor, I'll wager.\"");
		UcSay;
		UI_add_answer_0C("Chancellor");
	labelFunc043C_022F:
		cmps("Chancellor");
		UcMessage("\"Little worm named Zulith. Lady Yelinda's shadow... leads her around by the hand all the time. If thou seekest an audience with the Lady, thou must first speak to Zulith.\" *\"I saw Kylista speaking to Zulith the day before we sailors were banned from the city. She was afraid that Leon was stealing her followers. And Zulith,	the power-hungry toad that he is, saw to it that her wishes became law.\" *\"'Tis the Great Captains and the Chancellor that run things in Fawn, I'm afraid.\"");
		UcSay;
		UI_remove_answer_0D("Chancellor");
		UI_add_answer_0C("Great Captains");
	labelFunc043C_0249:
		cmps("Great Captains");
		UcMessage("\"There are three of them: Joth, Garth, and Voldin. Make a great show of honoring Beauty, but they honor money and power more. Yelinda consults them and Zulith about everything... even the dinner menu, I'll warrant.\" *\"And with Kylista whispering in Zulith's ear, thou hadst best count her as one of the powers of Fawn as well.\"");
		UcSay;
		UI_remove_answer_0D("Great Captains");
	labelFunc043C_025C:
		cmps("tales");
		UcMessage("\"What good is a geographer if he cannot explore and map the lands he finds? The storms keep me and my shipmates from taking to the sea.\" *\"I ask all those who come to me for tales of distant places. There may be some truth in the telling, and I add what I can to my maps, as Gwenno suggested.\"");
		UcSay;
		UI_remove_answer_0D("tales");
		UI_add_answer_0C("Gwenno");
	labelFunc043C_0276:
		cmps("Gwenno");
		UcMessage("\"She contacted me back in Britannia with an opportunity to explore a new land. Naturally, I accepted. She was to transport some sort of obelisk here for The Fellowship and then she was free to explore and collect all the tales she wished.\"");
		UcSay;
		UI_remove_answer_0D("Gwenno");
		UI_add_answer_0C("obelisk");
		if(!(gflags[0169] == false)) goto labelFunc043C_029F;
		UI_add_answer_0C("Fellowship");
	labelFunc043C_029F:
		cmps("obelisk");
		UcMessage("\"It was abominably heavy! Quite a chore to move it on land. Then one day after we had it safely on the shore and Gwenno had already headed inland, there was a huge explosion. When I could see again, there stood Batlin -- and the obelisk was shattered all over the ground.\"");
		UcSay;
		UI_remove_answer_0D("obelisk");
		UI_add_answer_0C("Batlin");
	labelFunc043C_02B9:
		cmps("Batlin");
		UcMessage("\"He seemed most upset at the time he arrived. Though I suspect that it was merely a result of the disorientation from the teleportation storm that brought him here.\" *\"He took several members of the crew with him and headed inland. He was looking for some blackrock artifact... Mayhap it doth have some connection to the obelisk. I don't know.\"");
		UcSay;
		UI_remove_answer_0D("Batlin");
		UI_add_answer_0C("blackrock artifact");
	labelFunc043C_02D3:
		cmps("blackrock artifact");
		UcMessage("\"I remember that he mentioned that it was fashioned in the likeness of a snake, but that's all. Thou mightest ask Delphynia, the herbalist. I know he talked to her.\"");
		UcSay;
		UI_remove_answer_0D("blackrock artifact");
		UI_add_answer_0C("Delphynia");
	labelFunc043C_02ED:
		cmps("Delphynia");
		UcMessage("\"She's an herbalist in the city that hath been doing the healer's work ever since the goblins killed the last healer.\" *\"Thou shouldst ask Ruggs if thou wishest to know more. They spent quite a bit of time together before we were cast out of the city.\"");
		UcSay;
		UI_remove_answer_0D("Delphynia");
		UI_add_answer_0C("Ruggs");
	labelFunc043C_0307:
		cmps("Ruggs");
		UcMessage("\"Thou wouldst know him if thou hadst seen him. What he lacks in handsomeness, he makes up for in the goodness of his heart. He cares deeply for Delphynia. But Delphynia is a superstitious woman and fears Ruggs' deformities are the result of some curse. 'Tis a sadness. They would make a fine couple.\"");
		UcSay;
		UI_remove_answer_0D("Ruggs");
	labelFunc043C_031A:
		cmps("maps");
		UcMessage("\"Lord British once said that I was the finest map maker in all Britannia. I take great care in my work. Since I have explored very little of this continent, I fear that my map is less than accurate.\" *\"I would be honored if thou wouldst accept a copy of my map. Perhaps it would aid thee in thy quest.\"");
		UcSay;
		var0005 = Func099B(0xFE9C, 0x0001, 0x00B2, 0xFE99, 0x0000, false, true);
		gflags[0151] = true;
		UI_remove_answer_0D("maps");
	labelFunc043C_0348:
		cmps("Iolo the Mad");
		UcMessage("\"What great calamity must have befallen thy trusted companion, ");
		UcMessage(var0002);
		UcMessage(". I fear that his reason hath fled. He terrorizes the city with his fiendish jokes.\" *\"Only yesterday, Iolo announced to the citizens of Fawn that he would prove once and for all whether or not Beauty was skin deep. He then cast a spell on poor Lady Yelinda and removed all of her skin. She ran out of the city toward Gorlab Swamp. Without the true ruler, I fear that Fawn will never be restored... even with thine aid.\"");
		UcSay;
		UI_remove_answer_0D("Iolo the Mad");
	labelFunc043C_0361:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thanks for thine assistance.@", 0x0000);
		Func097F(0xFFC4, "@A pleasure...@", 0x0005);
		goto labelFunc043C_038B;
	labelFunc043C_0388:
		goto labelFunc043C_00D8;
	labelFunc043C_038B:
		end_conv();
	labelFunc043C_038C:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern Func087B 0x87B ();
extern Func08AB 0x8AB ();
extern Func08AA 0x8AA ();

Func043D 0x43D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = false;
	var0004 = false;
	var0005 = false;
	var0006 = false;
	var0007 = Func0994();
	if(!(event == 0x0007)) goto labelFunc043D_0043;
	var0008 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0112]);
	labelFunc043D_0043:
		if(!(event == 0x0002)) goto labelFunc043D_00B3;
		if(!gflags[018F]) goto labelFunc043D_0052;
		abrt();
	labelFunc043D_0052:
		if(!(Func0994() == 0x0003)) goto labelFunc043D_0096;
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043D], 0x0032);
		var0008 = UI_approach_avatar_BF(0xFFC3, 0x0078, 0x0028);
		UI_set_schedule_type_25(0xFFC3, 0x0009);
		goto labelFunc043D_00B3;
	labelFunc043D_0096:
		var0008 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043D], 0x0064);
	labelFunc043D_00B3:
		if(!(event == 0x0001)) goto labelFunc043D_00E1;
		UI_item_say_4D(0xFE9C, "@A moment, if thou wilt.@");
		0xFFC3;
		calle();
		Func097F(0xFFC3, "@At thy service.@", 0x0005);
		UI_set_schedule_type_25(0xFFC3, 0x0003);
	labelFunc043D_00E1:
		if(!((event == 0x0000) && (gflags[01B2] && (!gflags[018F])))) goto labelFunc043D_017A;
		var0009 = UI_get_random_00(0x0006);
		if(!(var0009 == 0x0001)) goto labelFunc043D_010C;
		var000A = "@He is following us!@";
	labelFunc043D_010C:
		if(!(var0009 == 0x0002)) goto labelFunc043D_011C;
		var000A = "@Look!@";
	labelFunc043D_011C:
		if(!(var0009 == 0x0003)) goto labelFunc043D_012C;
		var000A = "@Who is that man?@";
	labelFunc043D_012C:
		if(!(var0009 == 0x0004)) goto labelFunc043D_013C;
		var000A = "@Spy!@";
	labelFunc043D_013C:
		if(!(var0009 == 0x0005)) goto labelFunc043D_014C;
		var000A = "@Careful!@";
	labelFunc043D_014C:
		if(!(var0009 == 0x0006)) goto labelFunc043D_015C;
		var000A = "@Do not look now...@";
	labelFunc043D_015C:
		var000B = Func0992(0x0001, var000A, 0x0000, true);
		UI_set_schedule_type_25(0xFFC3, 0x0009);
		gflags[018E] = true;
	labelFunc043D_017A:
		if(!(event == 0x0009)) goto labelFunc043D_0659;
		UI_run_schedule_B7(0xFFC3);
		UI_clear_item_say_4E(0xFFC3);
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		var000C = UI_get_item_flag_A3(0xFFC3, 0x001C);
		if(!(gflags[0171] || (gflags[0170] && (!gflags[0172])))) goto labelFunc043D_01CB;
		UcMessage("\"I know thee for what thou art, stranger! And I shall testify at the trial.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFFC3, "@Wait and see!@", 0x0000);
		abrt();
	labelFunc043D_01CB:
		if(!(var000C == false)) goto labelFunc043D_021D;
		if(!(gflags[003E] == true)) goto labelFunc043D_01F7;
		if(!(var0001 == true)) goto labelFunc043D_01EA;
		UcMessage("\"Ah, one of Monitor's female Pikemen. I am Zulith, Chancellor of Fawn. It is mine honor and duty to serve thee.\"");
		UcSay;
		goto labelFunc043D_01F4;
	labelFunc043D_01EA:
		UcMessage("\"What a pleasure to meet one of the illustrious Monitorian knights! I am Zulith, Chancellor of Fawn. How might I assist thee, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc043D_01F4:
		goto labelFunc043D_0210;
	labelFunc043D_01F7:
		if(!(var0001 == true)) goto labelFunc043D_0206;
		UcMessage("\"Welcome to Fawn, city of Beauty. My name is Zulith. I am the Chancellor. It is mine honor and duty to serve thee.\"");
		UcSay;
		goto labelFunc043D_0210;
	labelFunc043D_0206:
		UcMessage("\"Welcome to Fawn, honored traveller. I am Zulith, Chancellor of Fawn. How might I assist thee, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc043D_0210:
		UI_set_item_flag_A4(0xFFC3, 0x001C);
		goto labelFunc043D_0227;
	labelFunc043D_021D:
		UcMessage("\"Well met, ");
		UcMessage(var0000);
		UcMessage(". 'Tis a pleasure to see thee again.\"");
		UcSay;
	labelFunc043D_0227:
		if(!(gflags[018E] && (!gflags[018F]))) goto labelFunc043D_0239;
		UI_add_answer_0C("Art thou following me?");
	labelFunc043D_0239:
		UI_add_answer_0C(["storms", "goblins", "Chancellor", "bye"]);
	labelFunc043D_024C:
		UcAsk;
		cmps("Art thou following me?");
		UI_remove_answer_0D("Art thou following me?");
		UcMessage("\"I am a busy man, ");
		UcMessage(var0000);
		UcMessage(". If thy business lies along the route that mine doth, what fault of mine is that?\"");
		UcSay;
		UcMessage("\"Besides, what hast thou done to warrant thy worries that I might be following thee?\"");
		UcSay;
		var000B = Func0992(0x0001, "@Cheeky fellow!@", 0x0000, false);
		Func097F(0xFFC3, "@Arrogant strangers!@", 0x0000);
		gflags[018F] = true;
		UI_revert_schedule_B4(0xFFC3);
		UI_set_schedule_type_25(0xFFC3, 0x0014);
		goto labelFunc043D_0658;
	labelFunc043D_02A0:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Quite disruptive... They have totally depleted our fishing fleet.\"");
		UcSay;
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043D_02C9;
		UcMessage("\"If only these terrible storms would end!\"");
		UcSay;
		goto labelFunc043D_02E8;
	labelFunc043D_02C9:
		UcMessage("\"Great Captain Garth doth have plans laid for rebuilding the ships. But 'twould not be safe until these storms subside.\"");
		UcSay;
		UcMessage("\"Great Captain Joth is in charge of finding the means to sustain the city until this unusual weather clears.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Great Captains", "Great Captain Garth", "Great Captain Joth", "change subject"]);
	labelFunc043D_02E8:
		cmps("change subject");
		UcMessage("\"Of course. What dost thou desire to know?\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc043D_02F8:
		cmps("Great Captains");
		UI_remove_answer_0D("Great Captains");
		UcMessage("\"The Great Captains are the counsellors to Lady Yelinda, ruler of Fawn. There are three of them: Garth, Joth and Voldin.\"");
		UcSay;
		UI_add_answer_0C(["duties", "Voldin"]);
	labelFunc043D_0318:
		cmps("duties");
		UcMessage("\"'Tis their honor to oversee the fleets and all trade matters.\"");
		UcSay;
		UcMessage("\"They are all seamen who have been appointed to their post in recognition of their expertise.\"");
		UcSay;
		UI_remove_answer_0D("duties");
	labelFunc043D_032F:
		cmps("Voldin");
		UI_remove_answer_0D("Voldin");
		UcMessage("\"Voldin doth have a history of service to Fawn. He was unanimously nominated for the council position by his fellow captains.\"");
		UcSay;
		UcMessage("\"Voldin works in conjunction with the Captain of the Guard to assure Fawn's safety. He is senior on the council.\"");
		UcSay;
		UI_add_answer_0C("history");
	labelFunc043D_034D:
		cmps("history");
		UI_remove_answer_0D("history");
		UcMessage("\"Voldin served Fawn as a member of the city guard in his younger days. Before he became a council member, he was a fishing captain.\"");
		UcSay;
	labelFunc043D_0360:
		cmps("Great Captain Garth");
		UI_remove_answer_0D("Great Captain Garth");
		UcMessage("\"Garth comes from a fine family. He is the youngest member of the council, but wisely tempers his views to those of the senior council members.\"");
		UcSay;
		UcMessage("\"Garth is also something of a ladies' man, I fear.\"");
		UcSay;
		UI_add_answer_0C("Garth's family");
	labelFunc043D_037E:
		cmps("Garth's family");
		UcMessage("\"His family doth own a shipping business. They have been merchant seamen for generations.\"");
		UcSay;
		UcMessage("\"As his mother's youngest son, he took the council seat when his cousin resigned. His elder brother is now in charge of the family's shipping business.\"");
		UcSay;
		UI_remove_answer_0D("Garth's family");
	labelFunc043D_0395:
		cmps("Great Captain Joth");
		UI_remove_answer_0D("Great Captain Joth");
		UcMessage("\"Joth was the finest sea captain before he was injured.\"");
		UcSay;
		UcMessage("\"He favors beginning to rebuild the fleet now, but hath deferred to Voldin's opinion that it would not be safe to do so at this time.\"");
		UcSay;
		UI_add_answer_0C(["injured", "not safe"]);
	labelFunc043D_03B9:
		cmps("injured");
		UI_remove_answer_0D("injured");
		UcMessage("\"Joth's ship ran aground during a storm... When his injuries would not allow him to return to sea, Lady Yelinda most graciously offered him a seat on the council.\"");
		UcSay;
	labelFunc043D_03CC:
		cmps("not safe");
		UI_remove_answer_0D("not safe");
		UcMessage("\"Who would cut the wood to build the ships for fear of more goblins? And no sane person would venture into the open with these storms arriving without warning.\"");
		UcSay;
		UcMessage("\"No, we must wait until this weather clears before we can hope to begin rebuilding our fleet.\"");
		UcSay;
		UI_add_answer_0C("Fear of more goblins?");
	labelFunc043D_03EA:
		cmps("Fear of more goblins?");
		UI_remove_answer_0D("Fear of more goblins?");
		if(!gflags[014E]) goto labelFunc043D_0406;
		UcMessage("\"Everyone knows that goblins breed like flies upon carrion! Even though the tower hath been retaken, it will not be long before they are back!\"");
		UcSay;
		goto labelFunc043D_040A;
	labelFunc043D_0406:
		UcMessage("\"Everyone knows that goblins breed like flies upon carrion! It will not be long before they engulf the entire city with their filthy numbers!\"");
		UcSay;
	labelFunc043D_040A:
		cmps("goblins");
		UI_remove_answer_0D("goblins");
		if(!(gflags[003E] == true)) goto labelFunc043D_048B;
		if(!(gflags[014E] == true)) goto labelFunc043D_0463;
		UcMessage("\"Most horrible creatures!\"");
		UcSay;
		UcMessage("\"Dost thou know that, without the possibility of escape by ship because of the storms, I had actually feared that the city might be lost?\"");
		UcSay;
		UcMessage("\"Knowest thou the brave Pikemen that restored our safety? I am sure that Lady Yelinda would like to thank them personally, if possible.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc043D_0458;
		UcMessage("\"Pray tell me their names that I might relay them to her Ladyship at once.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["I do not know their names.", "I and my companions.", "I led the attack."]);
		goto labelFunc043D_0460;
	labelFunc043D_0458:
		UcMessage("\"Thou canst not be faulted for not knowing their names. No doubt there are quite a number of Pikemen.\"");
		UcSay;
		UcMessage("\"Lady Yelinda will have to send her thanks back to Monitor.\"");
		UcSay;
	labelFunc043D_0460:
		goto labelFunc043D_0488;
	labelFunc043D_0463:
		if(!(var0001 == true)) goto labelFunc043D_0480;
		UcMessage("\"The goblins are most likely preparing for an assault on our city.\"");
		UcSay;
		UcMessage("\"Thou shouldst stay here in Fawn, ");
		UcMessage(var0000);
		UcMessage(". There is great danger now that those horrible creatures hold the tower.\"");
		UcSay;
		UcMessage("\"I would be most distraught to know that thou wert going to endanger thyself.\"");
		UcSay;
		goto labelFunc043D_0488;
	labelFunc043D_0480:
		UcMessage("\"The goblins are most likely preparing for an assault on our city.\"");
		UcSay;
		UcMessage("\"Shouldst thou not lend thy bravery to the cause of restoring our city's safety, noble Pikeman?\"");
		UcSay;
	labelFunc043D_0488:
		goto labelFunc043D_04A6;
	labelFunc043D_048B:
		if(!(var0001 == true)) goto labelFunc043D_049E;
		UcMessage("\"Most horrible creatures!\"");
		UcSay;
		UcMessage("\"They have a most unfortunate taste for human flesh. For thy safety, thou shouldst remain within the confines of the city. I fear that they are preparing to assault the city.\"");
		UcSay;
		goto labelFunc043D_04A6;
	labelFunc043D_049E:
		UcMessage("\"Most horrible creatures!\"");
		UcSay;
		UcMessage("\"Thou shouldst speak with the Captain of the Guard. We have need of able-bodied fighters, such as thyself. I fear that they are preparing to assault the city.\"");
		UcSay;
	labelFunc043D_04A6:
		cmps("I do not know their names.");
		UI_remove_answer_0D(["I do not know their names.", "I and my companions.", "I led the attack."]);
		UcMessage("\"Thou canst not be faulted for not knowing their names. No doubt there are quite a number of Pikemen.\"");
		UcSay;
		UcMessage("\"Lady Yelinda will have to send her thanks back to Monitor.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc043D_04CA:
		cmps("I and my companions.");
		UI_remove_answer_0D(["I do not know their names.", "I and my companions.", "I led the attack."]);
		if(!(var0001 == true)) goto labelFunc043D_04F5;
		UcMessage("\"Then thou hast companions beyond compare!\"");
		UcSay;
		UcMessage("\"Lady Yelinda will surely wish to meet thee, a shining example of Beauty!\"");
		UcSay;
		goto labelFunc043D_04FD;
	labelFunc043D_04F5:
		UcMessage("\"Truly thou art the bravest Monitorian alive!\"");
		UcSay;
		UcMessage("\"Lady Yelinda will surely wish to thank thee herself.\"");
		UcSay;
	labelFunc043D_04FD:
		UI_pop_answers_0F();
	labelFunc043D_0501:
		cmps("I led the attack.");
		UI_remove_answer_0D(["I do not know their names.", "I and my companions.", "I led the attack."]);
		if(!(var0001 == true)) goto labelFunc043D_052C;
		UcMessage("\"Surely thou dost jest!\"");
		UcSay;
		UcMessage("\"They could not have allowed someone as beautiful as thyself to be endangered!\"");
		UcSay;
		goto labelFunc043D_0534;
	labelFunc043D_052C:
		UcMessage("\"Truly thou art the bravest Monitorian alive!\"");
		UcSay;
		UcMessage("\"Lady Yelinda will surely wish to thank thee herself.\"");
		UcSay;
	labelFunc043D_0534:
		UI_pop_answers_0F();
	labelFunc043D_0538:
		cmps("Chancellor");
		UI_remove_answer_0D("Chancellor");
		if(!(gflags[0170] && (gflags[0172] && (!gflags[016E])))) goto labelFunc043D_0564;
		UcMessage("\"I serve the Lady, handling those details which she doth choose to delegate to me. I also exchange various forms of money.\"");
		UcSay;
		UI_add_answer_0C("exchange money");
		goto labelFunc043D_057C;
	labelFunc043D_0564:
		UcMessage("\"I serve as an envoy from Lady Yelinda to the Great Captains. I oversee all the minor details that should not worry her Ladyship. I also exchange various forms of money.\"");
		UcSay;
		UcMessage("\"If thou dost wish an audience with her, I can examine her schedule.\"");
		UcSay;
		UI_add_answer_0C(["Lady Yelinda", "exchange money", "audience"]);
	labelFunc043D_057C:
		cmps("Lady Yelinda");
		UI_remove_answer_0D("Lady Yelinda");
		UcMessage("\"She is the ruler of Fawn and all its environs. All who honor Beauty honor Yelinda.\"");
		UcSay;
		UcMessage("\"She is a wise and compassionate leader. Everyone doth love her. Her beauty is only rivaled by that of Kylista.\"");
		UcSay;
		UI_add_answer_0C("Kylista");
	labelFunc043D_059A:
		cmps("Kylista");
		UI_remove_answer_0D("Kylista");
		UcMessage("\"Kylista is the priestess of Beauty.\"");
		UcSay;
		UcMessage("\"Yelinda is the embodiment of all of Fawn itself. Because Kylista presides over the Oracle, she is the personification of Beauty.\"");
		UcSay;
		UI_add_answer_0C("Oracle");
	labelFunc043D_05B8:
		cmps("Oracle");
		UI_remove_answer_0D("Oracle");
		UcMessage("\"Many people believe that the Mages of Old Sosaria created the Oracle. I do not believe such.\"");
		UcSay;
		UcMessage("\"I have stood alone in the temple gazing at it, and I will tell thee that it is a living being trapped there in that statue.\"");
		UcSay;
		UcMessage("\"Those Mages did not create a magical item! They summoned some beautiful spirit and trapped it there!\"");
		UcSay;
		UI_add_answer_0C(["temple"]);
	labelFunc043D_05DD:
		cmps("temple");
		UI_remove_answer_0D("temple");
		UcMessage("\"I often go there when the day hath been difficult. 'Tis directly behind the palace. 'Tis so quiet and peaceful, except before a revelation.\"");
		UcSay;
		UI_add_answer_0C("revelation");
	labelFunc043D_05F7:
		cmps("revelation");
		UI_remove_answer_0D("revelation");
		UcMessage("\"Yes, revelations are quite exciting. A message from the heavens, or at least that poor trapped spirit.\" *\"Often, 'tis the only thing many people have to give them hope in these troubled times.\"");
		UcSay;
	labelFunc043D_060A:
		cmps("audience");
		UI_remove_answer_0D("audience");
		UcMessage("\"Lady Yelinda doth receive visitors and petitions every morning. Let us see... She could receive thee some time next week.\" *\"Perhaps if I intercede for thee, thou mightest be received earlier. I shall see what I can arrange.\"");
		UcSay;
	labelFunc043D_061D:
		cmps("exchange money");
		Func087B();
	labelFunc043D_0628:
		cmps("bye");
		Func08AB();
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		Func097F(0xFFC3, "@Walk in Beauty!@", 0x0005);
		Func08AA();
		goto labelFunc043D_0658;
	labelFunc043D_0655:
		goto labelFunc043D_024C;
	labelFunc043D_0658:
		end_conv();
	labelFunc043D_0659:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func043E 0x43E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = Func0953();
	var0001 = UI_get_item_flag_A3(0xFFC2, 0x001C);
	if(!(event == 0x0001)) goto labelFunc043E_0043;
	Func097F(0xFE9C, "Hello, sir.", 0x0000);
	0xFFC2;
	calle();
	Func097F(0xFFC2, "Greetings.", 0x0002);
	UI_set_schedule_type_25(0xFFC2, 0x0003);
	labelFunc043E_0043:
		if(!(event == 0x0009)) goto labelFunc043E_0395;
		UI_run_schedule_B7(0xFFC2);
		UI_clear_item_say_4E(0xFFC2);
		UI_show_npc_face0_05(0xFFC2, 0x0000);
		if(!(!var0001)) goto labelFunc043E_007B;
		UcMessage("\"Hello, stranger. I am Andral of Monitor. Dost thou need the services of a master artist?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFC2, 0x001C);
		goto labelFunc043E_0085;
	labelFunc043E_007B:
		UcMessage("\"Welcome, ");
		UcMessage(var0000);
		UcMessage(". How may I be of service to thee?\"");
		UcSay;
	labelFunc043E_0085:
		UI_add_answer_0C(["artist", "bye"]);
		if(!(!gflags[0058])) goto labelFunc043E_00A4;
		UcMessage("\"Perhaps I should not speak with thee... I hope thou art not come to rob me!\"");
		UcSay;
		UI_add_answer_0C("rob");
	labelFunc043E_00A4:
		UcAsk;
		cmps("artist");
		UI_remove_answer_0D("artist");
		UcMessage("\"I am a sculptor by trade. There is a brisk business to be done in this city, fashioning busts and statues for the Knights.\"");
		UcSay;
		if(!(!gflags[0048])) goto labelFunc043E_00CF;
		UcMessage("\"But I can make time for thee, if thou dost wish to commission my talents.\"");
		UcSay;
		UI_add_answer_0C("commission");
		goto labelFunc043E_00DF;
	labelFunc043E_00CF:
		UI_add_answer_0C(["sculptor", "Knights", "commission"]);
	labelFunc043E_00DF:
		cmps("commission");
		UI_remove_answer_0D("commission");
		UcMessage("\"For a fee I create works of art to honor Knights when they complete great quests -- or when they simply wish to pay me money for a monument to their vanity.\"");
		UcSay;
		UcMessage("\"Dost thou wish to commission a work from me?\"");
		UcSay;
		var0002 = Func0955();
		if(!var0002) goto labelFunc043E_0109;
		UcMessage("\"I am sorry but I am currently working on a statue of Luther. It may take me some time to complete. I could not begin work on something for thee until then.\"");
		UcSay;
		goto labelFunc043E_010D;
	labelFunc043E_0109:
		UcMessage("\"I am proud of thee! Thy life and thy deeds are all the testament anyone truly needs, provided one hath truly made something of their life.\"");
		UcSay;
	labelFunc043E_010D:
		cmps("sculptor");
		UI_remove_answer_0D("sculptor");
		UcMessage("\"Thou mayest have noticed the various sculptures around the town. I crafted many of them.\"");
		UcSay;
		if(!gflags[0048]) goto labelFunc043E_012A;
		UcMessage("\"'Tis our custom to carve sculptures to commemorate the bravery of our finest warriors. Now that thou art a Knight, thou canst live for the day when I shall sculpt a monument for thee.\"");
		UcSay;
	labelFunc043E_012A:
		cmps("Knights");
		UI_remove_answer_0D("Knights");
		UcMessage("\"As thou knowest by now, this is a city of warriors. I myself passed the Knight's Test when I was fifteen, but my true love hath always been art.\"");
		UcSay;
		UcMessage("\"The other Knights sometimes mock me, for I am seldom seen at the List Field. Canst thou imagine what a blade could do to my gifted fingers!\"");
		UcSay;
		UcMessage("\"But, alas, an artist is always misunderstood.\"");
		UcSay;
		UI_add_answer_0C(["List Field", "misunderstood"]);
	labelFunc043E_0152:
		cmps("List Field");
		UI_remove_answer_0D("List Field");
		UcMessage("\"There is so little time in this life, and 'twould be an utter waste for someone of mine artistic abilities to engage in duels.\"");
		UcSay;
		UcMessage("\"Should I spend that hour in profitless combat, solely to please my fellow Knights? I think not.\"");
		UcSay;
		UcMessage("\"Instead, I could be crafting another masterpiece, so that my name will be known to future generations. This is true glory.\"");
		UcSay;
	labelFunc043E_016D:
		cmps("misunderstood");
		UI_remove_answer_0D("misunderstood");
		UcMessage("\"I have no friends. The Knights tolerate me and value my services, but they do not share mine interests.\"");
		UcSay;
		UcMessage("\"There once was a woman who cared for me, but we quarrelled. She, too, hath art in her soul, but she hides her secret well.\"");
		UcSay;
		UcMessage("\"Lucilla would not pay the price that I have, to be so alone. Do not weep for me, my friend -- I am proud of who I am.\"");
		UcSay;
		gflags[008F] = true;
	labelFunc043E_018C:
		cmps("rob");
		UI_remove_answer_0D("rob");
		UcMessage("\"I am not sure that I care to speak about the incident. 'Twas most unpleasant.\"");
		UcSay;
		UcMessage("\"There was a stranger in Monitor, one who claimed to be from another land. He was very large, a scholar rather than a warrior.\"");
		UcSay;
		UcMessage("\"He travelled with many companions, including a tall, cloaked stranger.\"");
		UcSay;
		UcMessage("\"On the night that Batlin the Sage left town, someone stole an ancient relic from mine home. I suspect that he was the thief!\"");
		UcSay;
		var0003 = Func0992(Dupre, "@Batlin! Why, he is our enemy, too!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		gflags[0058] = true;
		UI_push_answers_0E();
		UI_add_answer_0C(["Batlin", "companions", "artifact", "nothing more"]);
	labelFunc043E_01DD:
		cmps("Batlin");
		UI_remove_answer_0D("Batlin");
		UcMessage("\"He came inquiring about ancient ruins, and was especially interested in the Serpent Stone -- but Renfry can tell thee more of this.\"");
		UcSay;
		UcMessage("\"Simon the Innkeeper heard the sage say that he had come here from Fawn.\"");
		UcSay;
		gflags[008E] = true;
		if(!(!gflags[000B])) goto labelFunc043E_0206;
		UI_add_answer_0C("Fawn");
	labelFunc043E_0206:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"The City of Beauty lies due north of here, on the shores of a great bay. Fawn is a city of fishermen.\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc043E_0227;
		UcMessage("\"Thou mightest like Fawn, for 'tis a place where members of thy sex are highly regarded. The city is ruled by a Queen, and the Priestess of Beauty is also female.\"");
		UcSay;
		goto labelFunc043E_022F;
	labelFunc043E_0227:
		UcMessage("\"The women of Fawn are the most beautiful in the land, but they are overly pampered.\"");
		UcSay;
		UcMessage("\"Monitorian females, on the other hand, are as strong as oxen!\"");
		UcSay;
	labelFunc043E_022F:
		cmps("companions");
		UI_remove_answer_0D("companions");
		UcMessage("\"There is not much to say! The one in the cloak spent most of his time in the inn, and seldom spoke.\"");
		UcSay;
		if(!(!gflags[0044])) goto labelFunc043E_024D;
		UcMessage("\"Perhaps Simon could tell thee more.\"");
		UcSay;
	labelFunc043E_024D:
		UcMessage("\"There was also a warrior named Brunt who travelled with Batlin. He was small in stature, but with incredibly broad shoulders --\"");
		UcSay;
		UcMessage("\"Oh! If only he would have posed in my studio! I could have created such art...\"");
		UcSay;
		UcMessage("\"Standarr fought him in the List Field, and said that he was an opponent unlike any other!\"");
		UcSay;
		gflags[008D] = true;
	labelFunc043E_025D:
		cmps("artifact");
		UI_remove_answer_0D("artifact");
		UcMessage("\"Mine ancestors found the relic when they first founded this city, and it hath been kept in the family all this time.\"");
		UcSay;
		UcMessage("\"To be honest, we were afraid to discard it. It had a demonic appearance, being shaped like a serpent, and composed of a dark rock never before seen.\"");
		UcSay;
		var0003 = Func0992(0x0001, "@Perhaps blackrock, Avatar...@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc043E_0295;
		UI_set_conversation_slot_09(0x0000);
	labelFunc043E_0295:
		UcMessage("\"We hated the object, yet we were afraid to be parted from it. I cannot explain this. But it was so.\"");
		UcSay;
		UI_add_answer_0C(["demonic appearance", "serpent-shaped"]);
	labelFunc043E_02A6:
		cmps("demonic appearance");
		UI_remove_answer_0D("demonic appearance");
		UcMessage("\"Monitorians are not a superstitious people, yet we fear the ancient ruins.\"");
		UcSay;
		UcMessage("\"They were once the homes of Daemons who ruled this land in a distant age. They were horned beings with red skins, and they had the power to command molten rock to flow!\"");
		UcSay;
		UcMessage("\"The Serpent was their sign.\"");
		UcSay;
	labelFunc043E_02C1:
		cmps("serpent-shaped");
		UI_remove_answer_0D("serpent-shaped");
		UcMessage("\"Indeed, 'twas as if a living serpent had been changed into stone -- a perfect replica!\"");
		UcSay;
		UcMessage("\"'Tis not uncommon to see the symbol of the serpent among the ruins, yet I have never seen before or since any such Rock Serpent.\"");
		UcSay;
		var0003 = Func0992(Shamino, "@Couldst thou describe the curvings of the serpent?@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc043E_0314;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Umm... why, the head curved to the right, and the body was most sinuous. Why dost thou ask?\"");
		UcSay;
		var0003 = Func0992(var0003, "@Avatar, this man's stolen relic was a	perfect match for the one thou lost in the Storm, except that it faced the opposite way!", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc043E_0314:
		cmps("nothing more");
		UcMessage("\"But let me say this -- Batlin shall not rest in peace, for a powerful warrior is on his trail!\"");
		UcSay;
		UcMessage("\"Dost thou know of Wilfred the Slayer?\"");
		UcSay;
		if(!Func0955()) goto labelFunc043E_0331;
		UcMessage("\"Then I need say no more. Surely, Wilfred shall slay the evil sage and reap my revenge.\"");
		UcSay;
		goto labelFunc043E_033D;
	labelFunc043E_0331:
		UcMessage("\"Wilfred is a Knight of Monitor, but his home is at the inn of the Sleeping Bull.\"");
		UcSay;
		UcMessage("\"Batlin hath been there as well, and Wilfred's father hath mysteriously disappeared. Wilfred suspects the sage of being involved.\"");
		UcSay;
		UcMessage("\"Surely, brave Wilfred shall track down the sage and kill him, and I shall enjoy sweet revenge!\"");
		UcSay;
	labelFunc043E_033D:
		gflags[0059] = true;
		UI_pop_answers_0F();
		if(!(!gflags[000C])) goto labelFunc043E_0353;
		UI_add_answer_0C("Sleeping Bull");
	labelFunc043E_0353:
		cmps("Sleeping Bull");
		UI_remove_answer_0D("Sleeping Bull");
		UcMessage("\"Thou canst find the inn of the Sleeping Bull by taking the Serpent Highway north from here.\"");
		UcSay;
		UcMessage("\"There is not much there, save for an ancient inn for which the village is named. Wilfred's brother Argus doth operate it.\"");
		UcSay;
		gflags[000C] = true;
	labelFunc043E_036E:
		cmps("bye");
		Func097F(0xFE9C, "@Bye!@", 0x0000);
		Func097F(0xFFC2, "@'Til next we meet...@", 0x0002);
		goto labelFunc043E_0394;
	labelFunc043E_0391:
		goto labelFunc043E_00A4;
	labelFunc043E_0394:
		end_conv();
	labelFunc043E_0395:
		if(!(event == 0x0000)) goto labelFunc043E_04D7;
		UI_clear_item_say_4E(0xFFC2);
		if(!(UI_npc_nearby_3A(0xFFB9) && (UI_get_schedule_type_24(0xFFB9) == 0x0010))) goto labelFunc043E_04A8;
		UI_clear_item_say_4E(0xFFB9);
		var0004 = UI_direction_from_A2(0xFFC2, 0xFFB9);
		var0004 = UI_execute_usecode_array_01(0xFFC2, [0x23, 0x59, var0004]);
		var0005 = UI_get_random_00(0x0006);
		if(!(var0005 == 0x0001)) goto labelFunc043E_040E;
		Func097F(0xFFC2, "@Turn this way...@", 0x0000);
		Func097F(0xFFB9, "@Hurry!@", 0x0003);
	labelFunc043E_040E:
		if(!(var0005 == 0x0002)) goto labelFunc043E_0430;
		Func097F(0xFFC2, "@Don't move!@", 0x0000);
		Func097F(0xFFB9, "@Sorry, Andral.@", 0x0003);
	labelFunc043E_0430:
		if(!(var0005 == 0x0003)) goto labelFunc043E_0452;
		Func097F(0xFFB9, "@Is it done yet?@", 0x0000);
		Func097F(0xFFC2, "@Art doth take time.@", 0x0003);
	labelFunc043E_0452:
		if(!(var0005 > 0x0003)) goto labelFunc043E_04A5;
		Func097F(0xFFC2, "@Aha!@", 0x0000);
		var0006 = UI_find_nearby_41(0xFFC2, 0x037E, 0x000A, 0x0000);
		if(!var0006) goto labelFunc043E_04A5;
		UI_si_path_run_usecode_C1(0xFFC2, UI_get_object_position_20(var0006), 0x000D, item, 0x043E, false);
		UI_set_path_failure_A7([0x043E], item, 0x000E);
	labelFunc043E_04A5:
		goto labelFunc043E_04D7;
	labelFunc043E_04A8:
		var0007 = ["@Piece by piece...@", "@Art is life!@", "@I have a vision...@", "@Take a chance!@", "@Patience!@", "@Art is not easy...@"];
		Func097F(0xFFC2, var0007[UI_get_random_00(UI_get_array_size_73(var0007))], 0x0000);
	labelFunc043E_04D7:
		if(!(event == 0x000E)) goto labelFunc043E_0507;
		var0006 = UI_find_nearby_41(0xFFC2, 0x037E, 0x0004, 0x0000);
		if(!var0006) goto labelFunc043E_04FF;
		event = 0x000D;
		goto labelFunc043E_0507;
	labelFunc043E_04FF:
		UI_run_schedule_B7(0xFFC2);
		abrt();
	labelFunc043E_0507:
		if(!(event == 0x000D)) goto labelFunc043E_057B;
		var0006 = UI_find_nearby_41(0xFFC2, 0x037E, 0x0004, 0x0000);
		if(!var0006) goto labelFunc043E_0573;
		var0008 = UI_direction_from_A2(0xFFC2, var0006);
		UI_set_schedule_type_25(0xFFC2, 0x000F);
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0008, 0x66, 0x67, 0x01, 0x58, 0x000B, 0x64, 0x27, 0x0002, 0x0B, 0xFFF8, 0x0003, 0x55, 0x043E]);
		goto labelFunc043E_057A;
	labelFunc043E_0573:
		UI_run_schedule_B7(0xFFC2);
	labelFunc043E_057A:
		abrt();
	labelFunc043E_057B:
		if(!(event == 0x0002)) goto labelFunc043E_05B9;
		var0007 = ["@Much better!@", "@'Tis taking shape!@", "@Hmmm...@", "@Uh-oh...@", "@Ouch!@", "@A masterpiece!@"];
		Func097F(0xFFC2, var0007[UI_get_random_00(UI_get_array_size_73(var0007))], 0x0000);
		UI_run_schedule_B7(0xFFC2);
	labelFunc043E_05B9:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func08F0 0x8F0 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func043F 0x43F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_get_item_flag_A3(0xFFC1, 0x001C);
	var0003 = UI_get_array_size_73(UI_get_party_list_2B());
	var0004 = false;
	var0005 = false;
	var0006 = false;
	var0007 = false;
	var0008 = false;
	if(!(event == 0x0007)) goto labelFunc043F_010B;
	if(!gflags[0083]) goto labelFunc043F_00F9;
	var0009 = UI_get_oppressor_5C(0xFFC1);
	var0009 = (0x0000 - var0009);
	if(!(!var0009)) goto labelFunc043F_0067;
	var0009 = 0xFE9C;
	labelFunc043F_0067:
		if(!((var0009 != 0xFE9C) && (!in(var0009, Func098D())))) goto labelFunc043F_00D2;
		var0000 = Func098D();
		var0000 = (var0000 & 0xFE9C);
		enum();
	labelFunc043F_008B:
		for (var000C in var0000 with var000A to var000B atend labelFunc043F_00A5);
		if(!Func0932(var000C)) goto labelFunc043F_00A2;
		goto labelFunc043F_00AB;
	labelFunc043F_00A2:
		goto labelFunc043F_008B;
	labelFunc043F_00A5:
		var000C = 0xFE9C;
	labelFunc043F_00AB:
		UI_set_oppressor_5E(0xFFC1, var000C);
		UI_set_oppressor_5E(var0009, var000C);
		Func0976(0xFFC1, 0x0003);
		Func0976(var0009, 0x0003);
		exit2();
	labelFunc043F_00D2:
		if(!(!gflags[0007])) goto labelFunc043F_00EF;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0009), UI_get_npc_object_23(0xFFC1));
		exit2();
	labelFunc043F_00EF:
		Func092E(var0009);
		exit2();
		goto labelFunc043F_010B;
	labelFunc043F_00F9:
		var000D = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc043F_010B:
		if(!(event == 0x0000)) goto labelFunc043F_0170;
		if(!gflags[0083]) goto labelFunc043F_016F;
		var000E = UI_die_roll_17(0x0001, 0x0003);
		UI_clear_item_say_4E(0xFFC1);
		if(!(var000E == 0x0001)) goto labelFunc043F_0143;
		Func097F(0xFFC1, "@What a hit!@", 0x0000);
	labelFunc043F_0143:
		if(!(var000E == 0x0002)) goto labelFunc043F_0159;
		Func097F(0xFFC1, "@Most impressive!@", 0x0000);
	labelFunc043F_0159:
		if(!(var000E == 0x0003)) goto labelFunc043F_016F;
		Func097F(0xFFC1, "@What dost thou call that?@", 0x0000);
	labelFunc043F_016F:
		exit2();
	labelFunc043F_0170:
		if(!(event == 0x0001)) goto labelFunc043F_01C2;
		Func097F(0xFE9C, "@Greetings, Knight.@", 0x0000);
		0xFFC1;
		calle();
		if(!(gflags[0090] && (!gflags[004C]))) goto labelFunc043F_01AC;
		Func097F(0xFFC1, "@Away with thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFC1, 0x0014);
		abrt();
	labelFunc043F_01AC:
		Func097F(0xFFC1, "@Greetings.@", 0x0002);
		UI_set_schedule_type_25(0xFFC1, 0x0003);
	labelFunc043F_01C2:
		if(!(event == 0x0009)) goto labelFunc043F_0D17;
		UI_run_schedule_B7(0xFFC1);
		UI_clear_item_say_4E(0xFFC1);
		UI_show_npc_face0_05(0xFFC1, 0x0000);
		Func08F0();
		if(!(!var0002)) goto labelFunc043F_01F3;
		UcMessage("\"I have not seen thee in Monitor before. Thou art new here. Welcome!\"");
		UcSay;
		goto labelFunc043F_01F7;
	labelFunc043F_01F3:
		UcMessage("\"So 'tis thee again. Well met! How shall I aid thee?\"");
		UcSay;
	labelFunc043F_01F7:
		UI_add_answer_0C(["name", "duties"]);
		if(!(gflags[0093] && (!gflags[0038]))) goto labelFunc043F_0216;
		UI_add_answer_0C("know traitor");
	labelFunc043F_0216:
		if(!(gflags[004A] && (!gflags[0048]))) goto labelFunc043F_0228;
		UI_add_answer_0C("Knighthood");
	labelFunc043F_0228:
		if(!(gflags[0033] && (!gflags[004A]))) goto labelFunc043F_023A;
		UI_add_answer_0C("Test of Knighthood");
	labelFunc043F_023A:
		if(!(gflags[009A] && (!gflags[004C]))) goto labelFunc043F_024C;
		UI_add_answer_0C("missing urn");
	labelFunc043F_024C:
		if(!(gflags[002D] && (!gflags[00A5]))) goto labelFunc043F_025E;
		UI_add_answer_0C("Marsten");
	labelFunc043F_025E:
		if(!(gflags[00BB] || gflags[00BC])) goto labelFunc043F_026F;
		UI_add_answer_0C("trainer");
	labelFunc043F_026F:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc043F_0288;
		UI_add_answer_0C("brown bottle");
	labelFunc043F_0288:
		if(!(gflags[0048] && (!UI_get_item_flag_A3(0xFFB4, 0x0004)))) goto labelFunc043F_02A1;
		UI_add_answer_0C("traitor");
	labelFunc043F_02A1:
		if(!gflags[002C]) goto labelFunc043F_02AE;
		UI_add_answer_0C("Helm of Monitor");
	labelFunc043F_02AE:
		if(!gflags[0044]) goto labelFunc043F_02BB;
		UI_add_answer_0C("Simon");
	labelFunc043F_02BB:
		if(!gflags[00CC]) goto labelFunc043F_02C8;
		UI_add_answer_0C("Pomdirgun");
	labelFunc043F_02C8:
		UI_add_answer_0C("bye");
	labelFunc043F_02CF:
		UcAsk;
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"Thou hast recovered the Helm of Monitor and proven thyself to be our Champion Knight. Thou art the best of us, the standard by which we shall all be measured. Remember, if thou shouldst leave our city, thou dost carry our honor with thee. It is thy duty to not only to serve Monitor, but to help restore the balance of the world. This is the mission of the Champion Knight.\"");
		UcSay;
	labelFunc043F_02E5:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		UcMessage("\"So, Simon was a Goblin in disguise! 'Twas a clever bit of deduction on thy part to uncover his secret.\"");
		UcSay;
	labelFunc043F_02F8:
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"No one in this town will mourn for that vicious Goblin bastard. I only wish I could have been with thee so I could have watched his life end.\"");
		UcSay;
	labelFunc043F_030B:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"Thou didst find evidence in the woods? Good thinking! Thou shouldst have been a Bear, not a Wolf...\"");
		UcSay;
		UcMessage("\"I know naught of bottles, but thou mightest ask Lucilla at the tavern. Or perhaps Krayg the Provisioner.\"");
		UcSay;
		UcMessage("\"Perhaps Luther is right! As provisioner, Krayg could obtain many kinds of bottles...\"");
		UcSay;
	labelFunc043F_0326:
		cmps("Marsten");
		UI_remove_answer_0D("Marsten");
		if(!gflags[0038]) goto labelFunc043F_0342;
		UcMessage("\"The villain Marsten currently resides in our prison, thanks to thee.\"");
		UcSay;
		goto labelFunc043F_0346;
	labelFunc043F_0342:
		UcMessage("\"He is the chieftain of the Leopard Command, and the current Lord of our Town.\"");
		UcSay;
	labelFunc043F_0346:
		cmps("name");
		UI_remove_answer_0D("name");
		if(!(!var0002)) goto labelFunc043F_03A6;
		UI_set_item_flag_A4(0xFFC1, 0x001C);
		UcMessage("\"I am called Caladin, after mine own grandfather. He was a Champion Knight!\"");
		UcSay;
		UI_add_answer_0C("Champion Knight");
		if(!(!gflags[004C])) goto labelFunc043F_03A3;
		UcMessage("\"And if I ever discover who has his urn, I shall wring their neck! Canst thou imagine, someone stealing the Ashes of the Dead?\"");
		UcSay;
		UI_add_answer_0C("Ashes of the Dead");
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000)) goto labelFunc043F_03A3;
		UI_add_answer_0C("I have an urn.");
		var0006 = true;
	labelFunc043F_03A3:
		goto labelFunc043F_03AA;
	labelFunc043F_03A6:
		UcMessage("\"Hast thou forgotten? Why, I am Caladin!\"");
		UcSay;
	labelFunc043F_03AA:
		cmps("Champion Knight");
		UI_remove_answer_0D("Champion Knight");
		UcMessage("\"The Champion Knight of Monitor is the one who hath won the right to wear the Helm of Courage.\"");
		UcSay;
		var000F = Func097D(0xFE9B, 0x0001, 0x017F, 0xFE99, 0x0001);
		if(!(gflags[002C] || var000F)) goto labelFunc043F_03E3;
		UcMessage("\"As thou hast recovered it, that right naturally has fallen to thee.\"");
		UcSay;
		goto labelFunc043F_03E7;
	labelFunc043F_03E3:
		UcMessage("\"Currently, the Helm is in the hands of the Goblins. They took the Helm when they slew Astrid, our last Champion Knight. The Helm must be recovered and Astrid must be avenged...!\"");
		UcSay;
	labelFunc043F_03E7:
		cmps("Ashes of the Dead", "missing urn");
		UI_remove_answer_0D(["Ashes of the Dead", "missing urn"]);
		UI_push_answers_0E();
		UcMessage("\"I am not superstitious, mind thee, but I do believe that a man's ashes are sacred. They represent his soul, his heart, his honor.\"");
		UcSay;
		UcMessage("\"To know that my grandfather's ashes have been taken from the Crypts...\"");
		UcSay;
		UI_add_answer_0C(["honor", "Crypts", "change subject"]);
		if(!(Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000) && ((!var0006) && (!var0007)))) goto labelFunc043F_0445;
		UI_add_answer_0C("I have an urn.");
		var0006 = true;
	labelFunc043F_0445:
		cmps("honor");
		UI_remove_answer_0D("honor");
		UcMessage("\"Nothing is more important than one's honor! I am a valiant man, and I can promise thee three things --\"");
		UcSay;
		UcMessage("\"I shall never surrender my sword to my foe.\"");
		UcSay;
		UcMessage("\"My promised word shall never be broken.\"");
		UcSay;
		UcMessage("\"Fear is beneath me, and I refuse to let the creeping stink of fright soil my mind. I shall always be fearless.\"");
		UcSay;
	labelFunc043F_0464:
		cmps("Crypts");
		UI_remove_answer_0D("Crypts");
		UcMessage("\"The Ashes of the Dead are kept in the mountain caves, where wild beasts cannot defile the urns.\"");
		UcSay;
		UcMessage("\"Renfry is the caretaker there. If thou dost desire to pay thy respects to the dead, thou shalt no doubt encounter him there.\"");
		UcSay;
	labelFunc043F_047B:
		cmps("change subject");
		UcMessage("\"Certainly...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc043F_048B:
		cmps("I have an urn.");
		UI_remove_answer_0D("I have an urn.");
		gflags[028E] = true;
		var0007 = true;
		UcMessage("\"Thou dost? An Urn of the Dead? How didst thou chance upon it? Perhaps thou hast slain the thieves who insulted mine ancestor's soul!\"");
		UcSay;
		var0010 = Func0992(Iolo, "@Why... um... we found it, milord.@", "@I found it.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Might I examine it, please?\"");
		UcSay;
		if(!Func0955()) goto labelFunc043F_0564;
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0x00FF, 0x0000)) goto labelFunc043F_055D;
		UcMessage("\"This is my grandfather! Thou hast reunited the souls of my family!\"");
		UcSay;
		var0011 = UI_remove_party_items_34(0x0001, 0x0392, 0x00FF, 0x0000, true);
		gflags[004C] = true;
		UcMessage("\"Please accept this gift as an expression of my sincerest gratitude.\"");
		UcSay;
		if(!Func0955()) goto labelFunc043F_0556;
		if(!(var0003 < 0x0002)) goto labelFunc043F_0515;
		var0012 = "thee.";
		goto labelFunc043F_052E;
	labelFunc043F_0515:
		if(!(var0003 > 0x0002)) goto labelFunc043F_0528;
		var0012 = "thee and thy fine companions!";
		goto labelFunc043F_052E;
	labelFunc043F_0528:
		var0012 = "thee and thy companion.";
	labelFunc043F_052E:
		UcMessage("\"Here are coins enough to buy room and board at any inn for ");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		var000D = Func099B(0xFE9C, (var0003 * 0x0032), 0x03B7, 0xFE99, 0xFE99, true, true);
		goto labelFunc043F_055A;
	labelFunc043F_0556:
		UcMessage("\"Thou art a fool, to turn thy back on coins freely offered.\"");
		UcSay;
	labelFunc043F_055A:
		goto labelFunc043F_0561;
	labelFunc043F_055D:
		UcMessage("\"Ah, 'tis not the urn I am looking for.\"");
		UcSay;
	labelFunc043F_0561:
		goto labelFunc043F_056C;
	labelFunc043F_0564:
		UcMessage("\"Then perhaps thou art the thief! I shall not speak with thee further!\"");
		UcSay;
		gflags[0090] = true;
	labelFunc043F_056C:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the leader of the Command of the Bear. The Bears are the bravest, most virile warriors in Monitor! Courage is our name.\"");
		UcSay;
		UcMessage("\"Do not smirk! The Command of the Bear is unmovable. The Goblins dare not assault Monitor, for they know that we are here.\"");
		UcSay;
		UcMessage("\"I am also one of the best combat trainers in the land, shouldst thou need such aid.\"");
		UcSay;
		if(!(!gflags[007F])) goto labelFunc043F_0595;
		UI_add_answer_0C("Command");
	labelFunc043F_0595:
		UI_add_answer_0C(["Bears", "Courage", "trainer", "Goblins"]);
	labelFunc043F_05A8:
		cmps("Command");
		UI_remove_answer_0D("Command");
		UcMessage("\"The Knights of Monitor each serve a particular commmand. Each command espouses its own unique military strategy.\"");
		UcSay;
	labelFunc043F_05BB:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		UcMessage("\"The Bear Command follows a strategy of protection. We are concerned with protecting our home and making it impregnable, thereby giving us the perfect base from which to give any sort of military operation a successful launch.\"");
		UcSay;
	labelFunc043F_05CE:
		cmps("Courage");
		UI_remove_answer_0D("Courage");
		UcMessage("\"Our city was founded on the Principle of Courage. Valor is the Virtue we follow. If one cannot show his own prowess in everything undertaken, then one is not worthy to be a Knight of Monitor!\"");
		UcSay;
	labelFunc043F_05E1:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"The wretched beasts! I suppose thou hast heard of the ambush at Fawn Tower. They do not fight fair!\"");
		UcSay;
		UcMessage("\"Poor Astrid... she was an inspiring warrior, as well as a lusty wench. Damn, but she could kill Goblins...\"");
		UcSay;
		UI_add_answer_0C("Fawn Tower");
		if(!(!UI_get_item_flag_A3(0xFEF7, 0x0004))) goto labelFunc043F_0621;
		UcMessage("\"The Wolves and Leopards are useless in a crisis like this, but the Bears shall exact revenge from the Goblins. And if I ever find out who betrayed that patrol...\"");
		UcSay;
		UI_add_answer_0C(["useless", "betrayed"]);
		goto labelFunc043F_0625;
	labelFunc043F_0621:
		UcMessage("\"At least that miserable Pomdirgun hath gone to his grave. Or by the way of the Goblins, probably the cooking pot, more like.\"");
		UcSay;
	labelFunc043F_0625:
		cmps("Fawn Tower");
		UI_remove_answer_0D("Fawn Tower");
		UcMessage("\"The Pikemen of Monitor are the guardians of Serpent Isle. Our three Towers protect the Serpent Highway, and defend against Goblin invasions.\"");
		UcSay;
		UcMessage("\"Besides the Tower here, there is a second at Sleeping Bull. The third Tower was near Fawn, and hath been overrun by Goblins.\"");
		UcSay;
		if(!gflags[014E]) goto labelFunc043F_0649;
		UcMessage("\"Now that we have recaptured the Fawn Tower, our security is again guaranteed.\"");
		UcSay;
		goto labelFunc043F_0653;
	labelFunc043F_0649:
		if(!gflags[002C]) goto labelFunc043F_0653;
		UcMessage("\"But it shall surely be retaken by our Pikemen, now that thou hast defeated the King of the Goblins and recaptured the Helm of Monitor! Excellent work!\"");
		UcSay;
	labelFunc043F_0653:
		cmps("useless");
		UI_remove_answer_0D("useless");
		UcMessage("\"Worse than useless! Why, the Leopards are led by so-called warriors who spend all day sitting on their arses! Marsten is too old, and Spektor... He reads books!\"");
		UcSay;
		UcMessage("\"As for the Wolves, everyone knows that Brendann is weak. If thou dost ask me, he spends too much time playing stud, and not enough with his sword and axe.\"");
		UcSay;
	labelFunc043F_066A:
		cmps("betrayed");
		UI_remove_answer_0D("betrayed");
		UcMessage("\"So maybe I should keep my own counsel, but I'm not the quiet type. The Fawn Tower was betrayed!\"");
		UcSay;
		UcMessage("\"How else did the Goblins surprise the entire patrol? Astrid was no fool. Someone betrayed her.\"");
		UcSay;
		if(!(!var0008)) goto labelFunc043F_068F;
		UI_add_answer_0C("traitor");
	labelFunc043F_068F:
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		var0008 = true;
		UcMessage("\"Whoever betrayed Astrid's patrol must have been a Knight -- no one else could have done it.\"");
		UcSay;
		if(!gflags[00C0]) goto labelFunc043F_06B7;
		UcMessage("\"I don't trust that weakling Krayg, but if he says to look for evidence in the woods, perhaps thou shouldst.\"");
		UcSay;
		UcMessage("\"However, he might be sending thee to another ambush! Hmmm...\"");
		UcSay;
		goto labelFunc043F_06CC;
	labelFunc043F_06B7:
		if(!gflags[0048]) goto labelFunc043F_06C4;
		UcMessage("\"Krayg is the most likely suspect, as thou didst hear Luther proclaim at the banquet.\"");
		UcSay;
		goto labelFunc043F_06C8;
	labelFunc043F_06C4:
		UcMessage("\"The Bears suspect Krayg the Provisioner of being involved, but the Wolves deny it -- of course!\"");
		UcSay;
	labelFunc043F_06C8:
		UcMessage("\"Someone should question that weakling, and see if his guilt can be proven.\"");
		UcSay;
	labelFunc043F_06CC:
		if(!(UI_get_item_flag_A3(0xFFB8, 0x0004) || UI_get_item_flag_A3(Shmed, 0x0004))) goto labelFunc043F_0717;
		UI_push_answers_0E();
		if(!UI_get_item_flag_A3(0xFFB8, 0x0004)) goto labelFunc043F_06FC;
		UI_add_answer_0C("Was Lydia the traitor?");
	labelFunc043F_06FC:
		if(!UI_get_item_flag_A3(Shmed, 0x0004)) goto labelFunc043F_0710;
		UI_add_answer_0C("Was Shmed the traitor?");
	labelFunc043F_0710:
		UI_add_answer_0C("change subject");
	labelFunc043F_0717:
		cmps("Was Lydia the traitor?");
		UI_remove_answer_0D("Was Lydia the traitor?");
		UcMessage("\"Listen, ");
		UcMessage(var0001);
		UcMessage(" -- just because a woman tries to kill thee, is no reason to defame her good name.\"");
		UcSay;
		UcMessage("\"I'll admit Lydia dishonored herself by poisoning thee. 'Twas a shameful act.\"");
		UcSay;
		UcMessage("\"Yet I cannot believe that she'd betray her entire city to the Goblins. Impossible!\"");
		UcSay;
		UcMessage("\"I tell thee, Krayg is the traitor...\"");
		UcSay;
	labelFunc043F_073C:
		cmps("Was Shmed the traitor?");
		UI_remove_answer_0D("Was Shmed the traitor?");
		UcMessage("\"Ha! Shmed was the worst coward in Monitor. We let him hide in Knight's Test to spare ourselves the agony of exiling him.\"");
		UcSay;
		UcMessage("\"He was terrified of Goblins! So how could he have become their spy? This makes no sense.\"");
		UcSay;
		UcMessage("\"Besides, the matter at Knight's Test smacks of wizardry. I think thou hast an unknown enemy from among the Mages of Moonshade!\"");
		UcSay;
	labelFunc043F_0757:
		cmps("trainer");
		UI_remove_answer_0D("trainer");
		if(!(!gflags[00BB])) goto labelFunc043F_0784;
		if(!(!UI_is_pc_female_6F())) goto labelFunc043F_077C;
		UcMessage("\"Yes, I am a trainer. I specialize in making men out of boys. Strength is the key. Once that is gained I then turn to emphasizing the fundamentals of combat. But thou shouldst ask me of this another time.\"");
		UcSay;
		goto labelFunc043F_0784;
	labelFunc043F_077C:
		UcMessage("\"Yes, I am a trainer. The key to winning in combat is to be strong and to achieve a deadly precision in the application of that strength. Those are the things I teach. I teach ways to make weak warriors stronger, and to make strong warriors invincible!\"");
		UcSay;
		UcMessage("\"As thou hast probably guessed, I am especially good with female students... But thou shouldst ask me of this another time.\"");
		UcSay;
	labelFunc043F_0784:
		UcMessage("\"Come to the List Field at noon any day and I shall be happy to train thee. 'Tis at the south end of town, and is where all the Knights go to fight in tournaments and improve their fighting skills.\"");
		UcSay;
		var0013 = true;
	labelFunc043F_078C:
		cmps("Test of Knighthood");
		UI_remove_answer_0D("Test of Knighthood");
		if(!gflags[0048]) goto labelFunc043F_07A8;
		UcMessage("\"But why talk of this? Thou hast already faced the ordeal of that particular location and earned thy Knighthood! Perhaps we should change the subject.\"");
		UcSay;
		goto labelFunc043F_07C2;
	labelFunc043F_07A8:
		if(!UI_is_pc_female_6F()) goto labelFunc043F_07B6;
		UcMessage("\"A woman of Courage! I perceive that thou hast the spirit of a warrior.\"");
		UcSay;
		goto labelFunc043F_07BA;
	labelFunc043F_07B6:
		UcMessage("\"Glad to see that ye have some spirit, my boy! Knighthood is what divides the real men from the weak-willed boys.\"");
		UcSay;
	labelFunc043F_07BA:
		UcMessage("\"To become a Knight of Monitor, thou must first ask permission of the Lord of Monitor. Then thou must journey to the Dungeon called Knight's Test. If thou canst survive that ordeal, then thou canst receive thy Knighthood.\"");
		UcSay;
		gflags[003C] = true;
	labelFunc043F_07C2:
		UI_push_answers_0E();
		UI_add_answer_0C(["ordeal", "location", "Knighthood", "change subject"]);
	labelFunc043F_07D9:
		cmps("ordeal");
		UI_remove_answer_0D("ordeal");
		UcMessage("\"Fiery explosions! Wild animals! Puzzles to queer the mind, and mysteries beyond the understanding of mortals!\"");
		UcSay;
		UcMessage("\"Well, perhaps I exaggerate some. The Test is difficult, and many have died. But if thou dost know the secrets of the dungeon, the Quest is not so hard.\"");
		UcSay;
		UcMessage("\"After all, most Monitorians take the Test when they are fifteen years of age! Young Cantra will take it soon. With training, thou canst succeed.\"");
		UcSay;
		UI_add_answer_0C(["secrets", "Cantra"]);
		UI_add_answer_0C("trainer");
	labelFunc043F_0808:
		cmps("secrets");
		UI_remove_answer_0D("secrets");
		if(!gflags[003B]) goto labelFunc043F_0831;
		UcMessage("\"I do not have time to repeat everything again! Go thou and ask young Cantra -- she hath nothing better to do.\"");
		UcSay;
		Func097F(0xFFC1, "@Ask Cantra!@", 0x0000);
		abrt();
		goto labelFunc043F_0845;
	labelFunc043F_0831:
		UcMessage("\"I'll give thee three clues:\"");
		UcSay;
		UcMessage("\"In the first chamber, speed is the clue. Do not look back, or ye'll be a goner.\"");
		UcSay;
		UcMessage("\"Later on, seek that which cannot be seen. It may be hard to find.\"");
		UcSay;
		UcMessage("\"To overcome, thou must find the Claw, and the Urn of Gurnordir. Use the claw to draw thy blood, then mix the blood with the ashes in the Urn. Then thy fate shall be made known to thee.\"");
		UcSay;
		gflags[003B] = true;
	labelFunc043F_0845:
		cmps("Cantra");
		UI_remove_answer_0D("Cantra");
		UcMessage("\"I am surprised thou dost not know of the girl. She hath a bright curiosity, and is always pestering visitors.\"");
		UcSay;
		UcMessage("\"Cantra is the daughter of the town healer, Harnna. Her father hath been missing for many weeks. She doth favor him -- very proud, very ambitious, and eager for her Knighthood.\"");
		UcSay;
	labelFunc043F_085C:
		cmps("location");
		UI_remove_answer_0D("location");
		UcMessage("\"Knight's Test is located in the mountains just north of the city -- thou canst easily find it by taking the Serpent Highway north, then following the first trail leading west. A sign points the way.\"");
		UcSay;
		if(!(!gflags[002F])) goto labelFunc043F_087A;
		UcMessage("\"But before going, thou must speak with Lord Marsten. Only he can give thee the password. Shmed will not admit thee to the dungeon without it.\"");
		UcSay;
	labelFunc043F_087A:
		UcMessage("\"There have also been many Goblins in the area, so beware!\"");
		UcSay;
		UI_add_answer_0C("Shmed");
	labelFunc043F_0885:
		cmps("Shmed");
		UI_remove_answer_0D("Shmed");
		UcMessage("\"He is the Keeper of Knight's Test. Shmed is a Wolf, and if thou dost ask me, he hath gone soft. Hardly ever see him on the List Field.\"");
		UcSay;
		UcMessage("\"I have no use for him. But he doth do a fair job of administering the Test.\"");
		UcSay;
	labelFunc043F_089C:
		cmps("Knighthood");
		UI_remove_answer_0D("Knighthood");
		if(!(!gflags[004A])) goto labelFunc043F_08C1;
		UcMessage("\"When thou hast completed the Test, then there will be a great banquet held for thee!\"");
		UcSay;
		UcMessage("\"Thou shalt receive thy tattoo, and shalt wear the pelt of thy totem animal.\"");
		UcSay;
		UcMessage("\"But we can discuss this upon thy return... if thou dost have the courage to take the Test of Knighthood...\"");
		UcSay;
		goto labelFunc043F_091D;
	labelFunc043F_08C1:
		UcMessage("\"Congratulations on having passed the Test of Knighthood! I greet thee as almost a brother.\"");
		UcSay;
		if(!(!(gflags[007E] && (gflags[003E] && gflags[0091])))) goto labelFunc043F_08D8;
		UcMessage("\"Thou must prepare for thy banquet.\"");
		UcSay;
	labelFunc043F_08D8:
		if(!(!gflags[003E])) goto labelFunc043F_08E3;
		UcMessage("\"Seek out Lydia, and have her give thee the Tattoo of the Knight. Take none of her lip, mind!\"");
		UcSay;
	labelFunc043F_08E3:
		if(!(!gflags[007E])) goto labelFunc043F_08F5;
		UcMessage("\"Cellia the Furrier shall make thee the Cloak of Knighthood, if thou shalt take to her the body of thy totem animal.\"");
		UcSay;
		UI_add_answer_0C("totem animal");
	labelFunc043F_08F5:
		if(!(!gflags[0091])) goto labelFunc043F_0904;
		UcMessage("\"The banquet cannot begin until thou hast brought the meat from thy totem animal to Lucilla at the pub.\"");
		UcSay;
		UcMessage("\"She can then make the stew for the banquet.\"");
		UcSay;
	labelFunc043F_0904:
		if(!(gflags[003E] && (gflags[007E] && gflags[0091]))) goto labelFunc043F_0919;
		UcMessage("\"Thou art ready! Now thou must meet Lord Marsten at the Great Hall, in the south part of town.\"");
		UcSay;
		goto labelFunc043F_091D;
	labelFunc043F_0919:
		UcMessage("\"When thou hast finished thy work, then Lord Marsten can preside at thy banquet.\"");
		UcSay;
	labelFunc043F_091D:
		cmps("totem animal");
		UI_remove_answer_0D("totem animal");
		UcMessage("\"Upon completing Knight's Test there is a ceremony wherein one's totem animal is chosen. It is always either a wolf, a leopard or a bear.\"");
		UcSay;
	labelFunc043F_0930:
		cmps("know traitor");
		UI_remove_answer_0D("know traitor");
		UcMessage("\"What? Thou dost know who did betray Astrid to the Goblins! How dost thou know? Tell me now!\"");
		UcSay;
		var0010 = Func0992(Shamino, "@We found evidence among the Goblins. Documents signed by
							the traitor!@", "@I found evidence in the Goblin camp.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"May I see this evidence?\"");
		UcSay;
		if(!(Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99) || (Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99) || Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)))) goto labelFunc043F_0CA2;
		if(!(((Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99) + Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99)) + Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)) > 0x0001)) goto labelFunc043F_09EB;
		var0010 = Func0992(Iolo, "@Here are the scrolls.@", "@Here are the scrolls.@", false);
		goto labelFunc043F_09FB;
	labelFunc043F_09EB:
		var0010 = Func0992(Iolo, "@Here it is.@", "@Here it is.@", false);
	labelFunc043F_09FB:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What is this scroll? By the blazes of Furnace! This is proof!\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99)) goto labelFunc043F_0A27;
		UcMessage("\"This is proof that Lord Marsten hath been conspiring with the Goblins! That old goat!\"");
		UcSay;
		UcMessage("\"He planned to destroy the Bears! And the Wolves! And to make himself King of the city!\"");
		UcSay;
		gflags[0038] = true;
	labelFunc043F_0A27:
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99)) goto labelFunc043F_0A4C;
		UcMessage("\"Lord Marsten was the traitor, and that worm Spektor aided him! Death would be too kind for him!\"");
		UcSay;
		UcMessage("\"It seems that Marsten sought to spare Astrid's life, but he failed her even as he betrayed his Knighthood.\"");
		UcSay;
		gflags[0038] = true;
		gflags[0092] = true;
	labelFunc043F_0A4C:
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)) goto labelFunc043F_0A69;
		UcMessage("\"Marsten sought to betray Bull Tower! I will send a messenger to alert them immediately!\"");
		UcSay;
		gflags[0038] = true;
	labelFunc043F_0A69:
		if(!(gflags[0038] && (!UI_get_item_flag_A3(0xFFBB, 0x0004)))) goto labelFunc043F_0AB6;
		UI_move_object_4B(0xFFBB, [0x0446, 0x09C5, 0x0000]);
		UI_set_new_schedules_B6(0xFFBB, [0x0007, 0x0002], [0x000E, 0x0007], [0x0446, 0x09C5, 0x0446, 0x09C5]);
	labelFunc043F_0AB6:
		if(!(gflags[0092] && (!UI_get_item_flag_A3(0xFFB3, 0x0004)))) goto labelFunc043F_0B03;
		UI_move_object_4B(0xFFB3, [0x0448, 0x09D6, 0x0000]);
		UI_set_new_schedules_B6(0xFFB3, [0x0007, 0x0002], [0x000E, 0x0007], [0x0448, 0x09D6, 0x0448, 0x09D6]);
	labelFunc043F_0B03:
		UI_set_new_schedules_B6(0xFFC1, [0x0000, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x001B, 0x0007, 0x001B, 0x0010, 0x001A], [0x03B1, 0x0A49, 0x03D7, 0x0A8A, 0x03CE, 0x09FF, 0x039B, 0x0A76, 0x03B2, 0x0A05, 0x041C, 0x0A57]);
		var0014 = 0x0003;
	labelFunc043F_0B61:
		if(!(var0014 > 0x0000)) goto labelFunc043F_0BFB;
		var0015 = UI_get_object_position_20(0xFE9C);
		var0015[0x0001] = ((var0015[0x0001] + 0x0014) - (UI_die_roll_17(0x0000, 0x0001) * 0x0028));
		var0015[0x0002] = ((var0015[0x0002] + 0x0014) - (UI_die_roll_17(0x0000, 0x0001) * 0x0028));
		var0016 = UI_create_new_object2_2D(0x00E4, var0015);
		var0017 = UI_approach_avatar_BF(var0016, 0x0050, 0x0028);
		if(!var0017) goto labelFunc043F_0BE7;
		UI_set_item_flag_A4(var0016, 0x0012);
		var0005 = true;
		goto labelFunc043F_0BEE;
	labelFunc043F_0BE7:
		UI_remove_item_84(var0016);
	labelFunc043F_0BEE:
		var0014 = (var0014 - 0x0001);
		goto labelFunc043F_0B61;
	labelFunc043F_0BFB:
		var0018 = UI_find_nearby_41(0xFFC1, 0x00E4, 0x001E, 0x0000);
		if(!var0018) goto labelFunc043F_0C37;
		enum();
	labelFunc043F_0C15:
		for (var001B in var0018 with var0019 to var001A atend labelFunc043F_0C37);
		UI_set_schedule_type_25(var001B, 0x0003);
		UI_set_npc_id_BD(var001B, 0x0005);
		goto labelFunc043F_0C15;
	labelFunc043F_0C37:
		if(!var0005) goto labelFunc043F_0C77;
		if(!gflags[0092]) goto labelFunc043F_0C4A;
		UcMessage("\"Do not worry -- we shall arrest these dogs!\"");
		UcSay;
		goto labelFunc043F_0C4E;
	labelFunc043F_0C4A:
		UcMessage("\"Do not worry -- I shall personally see that Marsten is hunted down like the dog he is.\"");
		UcSay;
	labelFunc043F_0C4E:
		Func097F(0xFFC1, "@Pikemen!@", 0x0000);
		UI_set_schedule_type_25(0xFFC1, 0x000A);
		Func097F(var0018[0x0001], "@Yes, lord!@", 0x0002);
		abrt();
		goto labelFunc043F_0C9F;
	labelFunc043F_0C77:
		if(!gflags[0092]) goto labelFunc043F_0C84;
		UcMessage("\"Do not worry, Avatar! I shall order the Pikemen to place the traitors under arrest!\"");
		UcSay;
		goto labelFunc043F_0C88;
	labelFunc043F_0C84:
		UcMessage("\"Do not worry, Avatar! I shall order the Pikemen to place the traitor under arrest!\"");
		UcSay;
	labelFunc043F_0C88:
		Func097F(0xFFC1, "@Pikemen!@", 0x0000);
		UI_set_schedule_type_25(0xFFC1, 0x0014);
		abrt();
	labelFunc043F_0C9F:
		goto labelFunc043F_0CCA;
	labelFunc043F_0CA2:
		var0010 = Func0992(Shamino, "@We did not bring it with us.@", "@I did not bring it.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Until thou dost bring proof, no one will believe thee, including myself!\"");
		UcSay;
		Func097F(0xFFC1, "@Bring proof!@", 0x0000);
		abrt();
	labelFunc043F_0CCA:
		cmps("bye");
		if(!((!gflags[004A]) && (!gflags[0033]))) goto labelFunc043F_0CF8;
		UcMessage("\"I am not usually so talkative to an outsider. Thou shalt not find many in this town who welcome strangers!\"");
		UcSay;
		UcMessage("\"A word of advice: If thou desirest to be accepted in Monitor, thou shouldst consider taking the Test of Knighthood.\"");
		UcSay;
		UcMessage("\"If thou art not a Knight, then thou art nothing!\"");
		UcSay;
		UI_add_answer_0C("Test of Knighthood");
		gflags[0033] = true;
		goto labelFunc043F_0D13;
	labelFunc043F_0CF8:
		Func097F(0xFE9C, "@Until later...@", 0x0000);
		Func097F(0xFFC1, "@Courage!@", 0x0002);
		goto labelFunc043F_0D16;
	labelFunc043F_0D13:
		goto labelFunc043F_02CF;
	labelFunc043F_0D16:
		end_conv();
	labelFunc043F_0D17:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func080E 0x80E ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern var Func0994 0x994 ();

Func0440 0x440 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_find_nearby_41(0xFFC0, 0x013E, 0x001E, 0x0000);
	var0001 = UI_get_item_flag_A3(0xFFC0, 0x001C);
	var0002 = Func0954();
	if(!(gflags[008B] && ((event == 0x0000) && (!gflags[02E2])))) goto labelFunc0440_011B;
	UI_set_npc_id_BD(0xFFC0, (UI_get_npc_id_BC(0xFFC0) + 0x0001));
	if(!(UI_get_npc_id_BC(0xFFC0) == 0x0005)) goto labelFunc0440_005A;
	Func080E();
	labelFunc0440_005A:
		if(!(UI_get_npc_id_BC(0xFFC0) == 0x0004)) goto labelFunc0440_0080;
		Func097F(0xFFC0, "@Never!@", 0x0002);
		Func097F(var0000, "@Give me thy powers!@", 0x0000);
	labelFunc0440_0080:
		if(!(UI_get_npc_id_BC(0xFFC0) == 0x0003)) goto labelFunc0440_00A6;
		Func097F(0xFFC0, "@I am only a little girl...@", 0x0002);
		Func097F(var0000, "@I know thee!@", 0x0000);
	labelFunc0440_00A6:
		if(!(UI_get_npc_id_BC(0xFFC0) == 0x0002)) goto labelFunc0440_00CC;
		Func097F(0xFFC0, "@Leave me alone!@", 0x0000);
		Func097F(var0000, "@Stop, fiend!@", 0x0002);
	labelFunc0440_00CC:
		if(!(UI_get_npc_id_BC(0xFFC0) == 0x0001)) goto labelFunc0440_011A;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		Func097F(0xFFC0, "@Help!@", 0x0000);
		UI_play_music_39(0x0034, Func09A0(0x0005, 0x0001));
		if(!var0000) goto labelFunc0440_0113;
		UI_set_schedule_type_25(var0000, 0x001D);
	labelFunc0440_0113:
		UI_UNKNOWN_9F(0x0000);
	labelFunc0440_011A:
		abrt();
	labelFunc0440_011B:
		if(!(gflags[008B] && ((event == 0x0002) && (!gflags[02E2])))) goto labelFunc0440_020D;
		UI_UNKNOWN_9F(0x0001);
		UI_UNKNOWN_9E();
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_set_camera_AE(0xFE9C);
		gflags[008B] = false;
		UI_run_schedule_B7(0xFF33);
		UI_run_schedule_B7(0xFF35);
		UI_run_schedule_B7(0xFF34);
		UI_run_schedule_B7(0xFEDB);
		UI_remove_npc_4C(0xFFC0);
		if(!(gflags[0095] && (!gflags[005B]))) goto labelFunc0440_01D4;
		UI_move_object_4B(0xFFBD, [0x0345, 0x0A8B, 0x0000]);
		Func09AC(0xFFBD, Dupre, Dupre, 0x000F);
		UI_clear_item_flag_A5(0xFFBD, 0x0001);
		var0003 = UI_execute_usecode_array_01(0xFFBD, [0x23, 0x59, 0x0002]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFBD, [0x23, 0x55, 0x0443], 0x001E);
	labelFunc0440_01D4:
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x001E);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_npc_id_BD(0xFFC0, 0x0000);
		gflags[002A] = false;
	labelFunc0440_020D:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(0xFFC0) == 0x0009))) goto labelFunc0440_025B;
		if(!(UI_get_random_00(0x000A) < 0x0007)) goto labelFunc0440_0230;
		abrt();
	labelFunc0440_0230:
		var0004 = ["@Hello, there!@", "@May I watch?@", "@Art thou a hero?@", "@Where are we going?@", "@May I come?@", "@I'm a warrior, too.@"];
		Func097F(0xFFC0, var0004[UI_get_random_00(0x0006)], 0x0000);
	labelFunc0440_025B:
		if(!(event == 0x0001)) goto labelFunc0440_033D;
		if(!UI_get_item_flag_A3(0xFFC0, 0x001E)) goto labelFunc0440_02F3;
		Func097F(0xFE9C, "Hello, Cantra.", 0x0000);
		var0005 = UI_get_random_00(0x0006);
		if(!(var0005 == 0x0001)) goto labelFunc0440_0296;
		var0006 = "@I want thy flesh!@";
	labelFunc0440_0296:
		if(!(var0005 == 0x0002)) goto labelFunc0440_02A6;
		var0006 = "@I want thy blood!@";
	labelFunc0440_02A6:
		if(!(var0005 == 0x0003)) goto labelFunc0440_02B6;
		var0006 = "@Come pleasure me!@";
	labelFunc0440_02B6:
		if(!(var0005 == 0x0004)) goto labelFunc0440_02C6;
		var0006 = "@How hungry I am!@";
	labelFunc0440_02C6:
		if(!(var0005 == 0x0005)) goto labelFunc0440_02D6;
		var0006 = "@Blood! Blood everywhere!@";
	labelFunc0440_02D6:
		if(!(var0005 == 0x0006)) goto labelFunc0440_02E6;
		var0006 = "@I desire thee!@";
	labelFunc0440_02E6:
		Func097F(0xFFC0, var0006, 0x0002);
		abrt();
	labelFunc0440_02F3:
		if(!(!var0001)) goto labelFunc0440_0315;
		Func097F(0xFE9C, "Hello, little girl.", 0x0000);
		Func097F(0xFFC0, "@Zounds!@", 0x0002);
		goto labelFunc0440_032D;
	labelFunc0440_0315:
		Func097F(0xFE9C, "Hello, Cantra.", 0x0000);
		Func097F(0xFFC0, "@Glad to see thee!@", 0x0002);
	labelFunc0440_032D:
		0xFFC0;
		calle();
		UI_set_schedule_type_25(0xFFC0, 0x0003);
	labelFunc0440_033D:
		if(!(event == 0x0009)) goto labelFunc0440_056E;
		UI_run_schedule_B7(0xFFC0);
		UI_clear_item_say_4E(0xFFC0);
		UI_show_npc_face0_05(0xFFC0, 0x0000);
		if(!(!var0001)) goto labelFunc0440_0379;
		UcMessage("\"I am not as young as I look! Dost thou know how hard it is to be small for one's age? I am fourteen years old, nearly old enough to be a Knight of Monitor. But everyone thinks that I'm a little girl...\"");
		UcSay;
		UcMessage("\"Um, sorry. I mean, welcome to Monitor! My name is Cantra.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFC0, 0x001C);
		goto labelFunc0440_038A;
	labelFunc0440_0379:
		if(!gflags[0047]) goto labelFunc0440_0386;
		UcMessage("\"I feel tired, but I am all right! My mind was full of awful dreams. Thou hast saved me! I shall remember thee always!\"");
		UcSay;
		goto labelFunc0440_038A;
	labelFunc0440_0386:
		UcMessage("\"Hast thou decided to become a Knight yet? It is so exciting! I am practicing to become one myself.\"");
		UcSay;
	labelFunc0440_038A:
		UI_add_answer_0C(["Knight"]);
		if(!(gflags[002D] && (!gflags[00A5]))) goto labelFunc0440_03A6;
		UI_add_answer_0C("Marsten");
	labelFunc0440_03A6:
		UI_add_answer_0C("bye");
	labelFunc0440_03AD:
		UcAsk;
		cmps("Marsten");
		UI_remove_answer_0D("Marsten");
		if(!gflags[0038]) goto labelFunc0440_03C9;
		UcMessage("\"I am amazed to hear that Marsten hath betrayed us. I cannot believe it.\"");
		UcSay;
	labelFunc0440_03C9:
		if(!((gflags[003C] == false) && (gflags[0038] == false))) goto labelFunc0440_03DF;
		UcMessage("\"To become a Knight of Monitor, thou must first ask permission of the Lord of Monitor.\"");
		UcSay;
		gflags[003C] = true;
	labelFunc0440_03DF:
		if(!(!gflags[0038])) goto labelFunc0440_03EA;
		UcMessage("\"Marsten is the Lord of Monitor. One day he will give a banquet in mine honor to celebrate my becoming a Knight.\"");
		UcSay;
	labelFunc0440_03EA:
		cmps("permission");
		UI_remove_answer_0D("permission");
		UcMessage("\"If thou dost wish to take Knight's Test, thou must ask Lord Marsten for his permission.\"");
		UcSay;
		gflags[003C] = true;
	labelFunc0440_0401:
		cmps("Knight");
		UI_remove_answer_0D("Knight");
		UcMessage("\"I have trained for a long time to become a Knight. There is nothing in the world so wonderful as being a Knight!\"");
		UcSay;
		UcMessage("\"My father was a Knight, and a very good one. But he is dead now.\"");
		UcSay;
		UcMessage("\"When I turn fifteen, I can take the Test of Knighthood and become a grand warrior!\"");
		UcSay;
		UI_add_answer_0C(["father", "training", "Test of Knighthood"]);
	labelFunc0440_042C:
		cmps("father");
		UI_remove_answer_0D("father");
		UcMessage("\"Everyone says that he might be alive, but it hath been weeks since he disappeared. I am old enough to face the truth.\"");
		UcSay;
		UcMessage("\"He was on patrol near Monitor. He told the pikemen that he had found something suspicious, and he went to look... and he never returned.\"");
		UcSay;
		UcMessage("\"It must have been the Goblins! I refuse to weep. But I vow that the first dozen Goblins I slay shall be for him!\"");
		UcSay;
	labelFunc0440_0447:
		cmps("training");
		UI_remove_answer_0D("training");
		UcMessage("\"I am strong. I am ready. The Goblins will be no match for me! I have trained well.\"");
		UcSay;
		UcMessage("\"If thou dost need a trainer, I can recommend one. Everyone says that Shazzana is the best trainer, but she is such a tyrant!\"");
		UcSay;
		UcMessage("\"Ever since my father died, Caladin hath been my trainer. He is big and loud, and sometimes dumb, but he doth have a good heart.\"");
		UcSay;
		gflags[00BC] = true;
	labelFunc0440_0466:
		cmps("Test of Knighthood");
		UI_remove_answer_0D("Test of Knighthood");
		UI_push_answers_0E();
		UcMessage("\"I have been training for the Test for mine entire life! Anything that thou needest to know, I can tell thee.\"");
		UcSay;
		UcMessage("\"It truly isn't so dangerous if thou dost know the secrets. And Shmed is nothing to worry about.\"");
		UcSay;
		UcMessage("\"What wouldst thou like to know?\"");
		UcSay;
		UI_add_answer_0C(["location", "secrets", "Shmed", "nothing more"]);
		if(!(!gflags[002F])) goto labelFunc0440_04A6;
		UI_add_answer_0C("permission");
	labelFunc0440_04A6:
		cmps("location");
		UI_remove_answer_0D("location");
		UcMessage("\"The Test of Knighthood takes place in the Knight Mountains, just north of the city. Thou must follow the trail that leads west from the highway.\"");
		UcSay;
		UcMessage("\"But beware of Goblins! They come ever closer to the city of late. Even the bravest warrior can be slain if ambushed...\"");
		UcSay;
	labelFunc0440_04BD:
		cmps("secrets");
		UI_remove_answer_0D("secrets");
		UcMessage("\"These actually are not secrets, since everyone in Monitor knows how Knight's Test doth operate. To become a Knight, thou must survive the dungeon there. Simply remember these tips:\"");
		UcSay;
		UcMessage("\"Do not look back, or the explosions will overcome thee. Move swiftly at first.\"");
		UcSay;
		UcMessage("\"Look upwards, as well as from side to side. There are clues that would otherwise escape thee. Be prepared to climb.\"");
		UcSay;
		UcMessage("\"Timing is essential. The fiery missiles can be outrun, if thou dost watch carefully.\"");
		UcSay;
		UcMessage("\"Use thine hands to search as well as thine eyes, for some things are invisible.\"");
		UcSay;
		UcMessage("\"The last chamber is kept a secret! But I would wager that it is as easy as the rest of the dungeon, if thou dost keep a calm head and steady nerves.\"");
		UcSay;
	labelFunc0440_04E4:
		cmps("Shmed");
		UI_remove_answer_0D("Shmed");
		UcMessage("\"Oh, he is the old man who administers the Test. I do not like him much. He looks at me oddly sometimes...\"");
		UcSay;
		UcMessage("\"He will not let thee into the dungeon until thou dost give him the password. Only Lord Marsten can give the password to thee.\"");
		UcSay;
		UcMessage("\"Shmed also disarms thee, since thou canst only enter the Knight's Test with a mace and leather armour. And no companions may accompany thee.\"");
		UcSay;
	labelFunc0440_04FF:
		cmps("nothing more");
		UI_remove_answer_0D("nothing more");
		UcMessage("\"Very well!\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0440_0516:
		cmps("bye");
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		if(!gflags[0047]) goto labelFunc0440_053F;
		Func097F(0xFFC0, "@Bless thee!@", 0x0002);
		goto labelFunc0440_054F;
	labelFunc0440_053F:
		UcMessage("\"Oh, I hope that thou dost attempt the Knight's Test! And when thou dost, please come back to tell me about it!\"");
		UcSay;
		Func097F(0xFFC0, "@Slay a Goblin!@", 0x0002);
	labelFunc0440_054F:
		if(!(UI_get_schedule_type_24(0xFFC0) == 0x0009)) goto labelFunc0440_0567;
		UI_set_schedule_type_25(0xFFC0, 0x0014);
	labelFunc0440_0567:
		goto labelFunc0440_056D;
	labelFunc0440_056A:
		goto labelFunc0440_03AD;
	labelFunc0440_056D:
		end_conv();
	labelFunc0440_056E:
		if(!(event == 0x0007)) goto labelFunc0440_05A0;
		if(!gflags[0047]) goto labelFunc0440_0587;
		UI_clear_item_flag_A5(0xFFC0, 0x001D);
		abrt();
	labelFunc0440_0587:
		if(!gflags[0079]) goto labelFunc0440_0596;
		var0003 = 0x0000;
		goto labelFunc0440_05A0;
	labelFunc0440_0596:
		UI_set_attack_mode_59(0xFFC0, 0x0007);
	labelFunc0440_05A0:
		if(!(event == 0x0003)) goto labelFunc0440_05D1;
		var0007 = Func0994();
		if(!((var0007 == 0x001F) && (gflags[004A] == true))) goto labelFunc0440_05D1;
		UI_show_npc_face0_05(0xFFC0, 0x0000);
		UcMessage("\"Iieeeee.... Help me, Avatar! Help me! I can't escape... It will catch me and devour me!\" *\"Heelllp!\"");
		UcSay;
		UI_remove_npc_face0_07();
		abrt();
	labelFunc0440_05D1:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0813 0x813 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern Func0811 0x811 ();

Func0441 0x441 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = UI_get_item_flag_A3(0xFFBF, 0x001C);
	var0001 = "stranger";
	if(!var0000) goto labelFunc0441_001F;
	var0001 = Func0954();
	labelFunc0441_001F:
		if(!gflags[0048]) goto labelFunc0441_002B;
		var0001 = "Knight";
	labelFunc0441_002B:
		var0002 = Func097D(0xFE9B, 0xFE99, 0x037C, 0xFE99, 0x0007);
		var0003 = Func0954();
		if(!(event == 0x0007)) goto labelFunc0441_0060;
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0441_0060:
		if(!(event == 0x0001)) goto labelFunc0441_0098;
		Func097F(0xFE9C, "@Pardon me....@", 0x0000);
		0xFFBF;
		calle();
		Func097F(0xFFBF, (("@Yes, " + var0001) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFBF, 0x0003);
	labelFunc0441_0098:
		if(!(event == 0x0009)) goto labelFunc0441_0428;
		UI_run_schedule_B7(0xFFBF);
		UI_clear_item_say_4E(0xFFBF);
		var0005 = false;
		if(!(UI_get_schedule_type_24(0xFFBF) == 0x0007)) goto labelFunc0441_00C4;
		var0005 = true;
	labelFunc0441_00C4:
		UI_show_npc_face0_05(0xFFBF, 0x0000);
		if(!(!var0000)) goto labelFunc0441_0106;
		if(!gflags[004A]) goto labelFunc0441_00E8;
		UcMessage("\"I am Cellia the Furrier. What may I do for thee, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
		goto labelFunc0441_00F9;
	labelFunc0441_00E8:
		UcMessage("\"When thou hast become a Knight, I can be of service to thee. Until then, go thy way.\"");
		UcSay;
		Func097F(0xFFBF, "@Farewell.@", 0x0000);
		abrt();
	labelFunc0441_00F9:
		UI_set_item_flag_A4(0xFFBF, 0x001C);
		goto labelFunc0441_0134;
	labelFunc0441_0106:
		if(!gflags[004A]) goto labelFunc0441_0119;
		UcMessage("\"Glad to see thee again, ");
		UcMessage(var0001);
		UcMessage(". What may I do for thee?\"");
		UcSay;
		goto labelFunc0441_0134;
	labelFunc0441_0119:
		UcMessage("\"Glad to see thee again, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"When thou hast become a Knight, I can be of service to thee. Until then, be thou gone.\"");
		UcSay;
		Func097F(0xFFBF, "@Farewell.@", 0x0000);
		abrt();
	labelFunc0441_0134:
		if(!(gflags[004A] && (!gflags[007D]))) goto labelFunc0441_0146;
		UI_add_answer_0C("slain wolf");
	labelFunc0441_0146:
		if(!(gflags[007D] && (!gflags[007E]))) goto labelFunc0441_0158;
		UI_add_answer_0C("cloak");
	labelFunc0441_0158:
		if(!(gflags[009D] && (!gflags[0292]))) goto labelFunc0441_016A;
		UI_add_answer_0C("fur cap");
	labelFunc0441_016A:
		UI_add_answer_0C(["buy", "furrier", "bye"]);
	labelFunc0441_017A:
		UcAsk;
		cmps("slain wolf");
		UI_remove_answer_0D("slain wolf");
		UcMessage("\"Now that thou hast completed the Test, I must make a cloak for thee from the skin of the animal thou didst slay.\"");
		UcSay;
		if(!(!var0005)) goto labelFunc0441_019E;
		UcMessage("\"When I am in my shop, bring me the body which thou didst obtain at Knight's Test.\"");
		UcSay;
		goto labelFunc0441_025F;
	labelFunc0441_019E:
		UcMessage("\"Give to me the body.\"");
		UcSay;
		if(!var0002) goto labelFunc0441_022F;
		var0004 = UI_remove_party_items_34(0xFE99, 0x037C, 0xFE99, 0x0007, true);
		UcMessage("\"Oooh, 'tis a large one.\"");
		UcSay;
		var0006 = UI_get_cont_items_33(var0004, 0xFE99, 0xFE99, 0xFE99);
		if(!var0006) goto labelFunc0441_01F8;
		enum();
	labelFunc0441_01DA:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0441_01F8);
		var000A = UI_set_last_created_2E(var0009);
		var0004 = Func0813();
		goto labelFunc0441_01DA;
	labelFunc0441_01F8:
		var000B = Func0992(Iolo, "@The Avatar is quite skilled at killing large animals.@", 0x0000, false);
		if(!(var000B != 0xFE9C)) goto labelFunc0441_021D;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
	labelFunc0441_021D:
		UcMessage("\"Return in one day. I shall have thy cloak by then.\"");
		UcSay;
		UI_set_timer_7B(0x0004);
		gflags[007D] = true;
		goto labelFunc0441_025F;
	labelFunc0441_022F:
		var000B = Func0992(0x0001, "@But we do not have the body with us.@", "@I do not have the wolf's body.@", false);
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I cannot make thee a cloak without an animal's skin!\"");
		UcSay;
		UcMessage("\"Return to Knight's Test, and bring me the slain wolf. Or else thou canst not achieve thy knighthood!\"");
		UcSay;
		Func097F(0xFFBF, "@Go!@", 0x0000);
		abrt();
	labelFunc0441_025F:
		cmps("cloak");
		UI_remove_answer_0D("cloak");
		if(!(UI_get_timer_7A(0x0004) < 0x0017)) goto labelFunc0441_02C1;
		UcMessage("\"It is not time! I must have the full 24 hours!\"");
		UcSay;
		var000B = Func0992(0x0001, (("@Take care, " + var0003) + ". She hath a very sharp knife!@"), 0x0000, false);
		if(!(var000B != 0xFE9C)) goto labelFunc0441_02B1;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
		UcMessage("\"And I know exactly where and how to use it...\"");
		UcSay;
	labelFunc0441_02B1:
		Func097F(0xFFBF, "@Give me time!@", 0x0000);
		abrt();
		goto labelFunc0441_0313;
	labelFunc0441_02C1:
		UcMessage("\"It is ready.\"");
		UcSay;
		var000B = Func0992(Iolo, (("@'Tis beautiful, " + var0003) + "!@"), 0x0000, false);
		if(!(var000B != 0xFE9C)) goto labelFunc0441_02F6;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What didst thou expect?\"");
		UcSay;
	labelFunc0441_02F6:
		var0004 = Func099B(0xFE9C, 0x0001, 0x00E3, 0xFE99, 0x0003, 0x0000, true);
		gflags[007E] = true;
	labelFunc0441_0313:
		cmps("furrier");
		UI_remove_answer_0D("furrier");
		UcMessage("\"I am the furrier, tanner and tailor of Monitor. It is my duty to make cloaks from the animals slain by our valiant Knights. If one were to travel far north, it is exactly the sort of thing one should wear.\"");
		UcSay;
		UcMessage("\"I skin the carcasses myself.\"");
		UcSay;
		UcMessage("\"Other pelts I obtain from the northern trappers. They supply exotic furs which are rare here in Monitor -- especially Gwani pelts!\"");
		UcSay;
		UI_add_answer_0C(["trappers", "Gwani pelts"]);
		if(!(gflags[004A] && (!gflags[007D]))) goto labelFunc0441_0352;
		UcMessage("\"Now that thou hast completed the Test of Knighthood, thou must bring me the body of the animal thou didst slay.\"");
		UcSay;
		UcMessage("\"I shall make a cloak from its skin for thee.\"");
		UcSay;
		UcMessage("\"This is the cloak which thou must wear to the Ceremony of Initiation.\"");
		UcSay;
	labelFunc0441_0352:
		cmps("Gwani pelts");
		UI_remove_answer_0D("Gwani pelts");
		UcMessage("\"Hast thou not heard stories of these creatures? They are terrible, ferocious, savage creatures!\"");
		UcSay;
		UcMessage("\"They live in the snowlands of the far north, where the Goblins sometimes go to war on them.\"");
		UcSay;
		UcMessage("\"It is exceedingly rare for the Goblins to slay a Gwani, but when they do, their chieftain immediately lays claim to the carcass.\"");
		UcSay;
		UcMessage("\"Only the toughest Goblin chiefs wear the Gwani cloak. And only the toughest Knights can slay such a fearsome Goblin!\"");
		UcSay;
	labelFunc0441_0371:
		cmps("trappers");
		UI_remove_answer_0D("trappers");
		UcMessage("\"Luther brings me leopard pelts now and again, but mostly I must rely on the trappers to bring me exotic furs.\"");
		UcSay;
		UcMessage("\"The trappers live in the Great Northern Forest, at the foot of the Impassable Mountains.\"");
		UcSay;
		UcMessage("\"A trapper named Hazard sells me snow leopard pelts. Unfortunately, his men only make it as far south as Monitor a few times a year.\"");
		UcSay;
		UcMessage("\"Sometimes he even sends Gwani pelts! He likes hunting Gwani because it is such a challenge.\"");
		UcSay;
		UI_add_answer_0C("Luther");
	labelFunc0441_0397:
		cmps("Luther");
		UI_remove_answer_0D("Luther");
		UcMessage("\"Actually, when Luther doth go on the hunt he rarely catches anything!\"");
		UcSay;
		UcMessage("\"Like all the other Bears, I think he prefers to hunt other warriors! He always bullies the strangers that come into town.\"");
		UcSay;
		UcMessage("\"He is a bully and someone should teach him a lesson! I have noticed that Luther doth completely relax his guard whenever he loses his temper. And nothing angers him so much as when he is taunted. Do with the information what thou wilt. I simply love to cause dissension.\"");
		UcSay;
		gflags[0042] = true;
	labelFunc0441_03B6:
		cmps("buy");
		if(!(UI_get_schedule_type_24(0xFFBF) == 0x0007)) goto labelFunc0441_03E3;
		UcMessage("\"Dost thou wish to buy one of my pelts or cloaks?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0441_03DC;
		Func0811();
		goto labelFunc0441_03E0;
	labelFunc0441_03DC:
		UcMessage("\"Some other time, perhaps.\"");
		UcSay;
	labelFunc0441_03E0:
		goto labelFunc0441_03EE;
	labelFunc0441_03E3:
		UcMessage("\"If thou wouldst come to my shop during the day, I could sell thee something...\"");
		UcSay;
		UI_remove_answer_0D("buy");
	labelFunc0441_03EE:
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		UcMessage("\"The fur cap thou hast described is from Northern Forest, but it is too fancy for any woman from this part of the world. In truth it doth remind me of a piece of work I created for Frigidazzi, a mage in the city of Moonshade. Yes, that must be it.\"");
		UcSay;
	labelFunc0441_0401:
		cmps("bye");
		Func097F(0xFE9C, "@Good day to thee.@", 0x0000);
		Func097F(0xFFBF, "@Happy Hunting!@", 0x0002);
		goto labelFunc0441_0427;
	labelFunc0441_0424:
		goto labelFunc0441_017A;
	labelFunc0441_0427:
		end_conv();
	labelFunc0441_0428:
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0442 0x442 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_object_position_20(0xFFBE);
	if(!(event == 0x0002)) goto labelFunc0442_01AB;
	if(!UI_get_item_flag_A3(0xFFBE, 0x001C)) goto labelFunc0442_014F;
	UI_show_npc_face0_05(0xFFBE, 0x0000);
	UcMessage("\"Thou hast slain me! My blood spills away... all because of Pomdirgun, that betrayer!\"");
	UcSay;
	UcMessage("\"Come nearer, that I may boast of my deeds before I die.\"");
	UcSay;
	UI_add_answer_0C(["deeds", "Pomdirgun", "bye"]);
	labelFunc0442_0041:
		UcAsk;
		cmps("deeds");
		UI_remove_answer_0D("deeds");
		UcMessage("\"I am a Goblin! I have lived amongst the foolish Knights all these many years and no one hath suspected!! Yes! I have supplied my fellow Goblins with all of Monitor's military secrets!\"");
		UcSay;
		UI_add_answer_0C("military secrets");
	labelFunc0442_005E:
		cmps("military secrets");
		UI_remove_answer_0D("military secrets");
		UcMessage("\"That is right! I have relayed patrol plans and other military information to King Pomdirgun. The assault on Fawn Tower was a success thanks to me! Monitor's Knight Champion was ambushed because of mine ingenuity!\"");
		UcSay;
	labelFunc0442_0071:
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"He is our leader! But he hath double-crossed me! That is why I am telling thee this! He promised ME the Helm of Monitor, but the greedy bastard kept it for himself! After all the loyal years I have served the Goblins, I deserve it! Well, I shall have to extract revenge!\"");
		UcSay;
		UI_add_answer_0C(["loyal years", "revenge"]);
	labelFunc0442_0091:
		cmps("loyal years");
		UI_remove_answer_0D("loyal years");
		UcMessage("\"That is right! I have been in Monitor longer than anyone else here! I came to the town many, many years ago!\"");
		UcSay;
		UI_add_answer_0C(["many years ago", "cover"]);
	labelFunc0442_00B1:
		cmps("many years ago");
		UI_remove_answer_0D("many years ago");
		UcMessage("\"It was Pomdirgun's father who procured the magic potion that enabled me to change mine appearance. But now... I am tired of being a Man! I want to be a Goblin again! I have thrown away mine entire life! I want to die...\"");
		UcSay;
	labelFunc0442_00C4:
		cmps("cover");
		UI_remove_answer_0D("cover");
		UcMessage("\"A Moonshadian mage created a potion that enabled us to make our appearance Man-like. But it is addictive! I cannot live without it...\"");
		UcSay;
	labelFunc0442_00D7:
		cmps("revenge", "bye");
		UcMessage("\"Hmmm... Perhaps thou wouldst like to know the secret location of Pomdirgun's camp? If thou dost promise to slay King Pomdirgun, I shall tell thee!\"");
		UcSay;
		if(!Func0955()) goto labelFunc0442_00FF;
		UcMessage("\"There is a Great Dead Tree in the Knights' Forest, north of Knight's Test. Thou wilt know it because it is surrounded by rocks. Hidden nearby is an ancient stairway leading into the bowels of the earth.\"");
		UcSay;
		UcMessage("\"This leads to a passageway which will bring thee to the chief's village, hidden in a secret valley. No Man hath ever set foot there...\"");
		UcSay;
		UcMessage("\"But be careful! There are many challenges for the unwary, and thou must survive to cleave Pomdirgun's head into two!\"");
		UcSay;
		UcMessage("\"The passageway is sealed with an iron door, but thou shalt find the key tied around my neck.\"");
		UcSay;
		goto labelFunc0442_0103;
	labelFunc0442_00FF:
		UcMessage("\"Curse thee, then! I shall take the secret of the Goblins with me to my grave...\"");
		UcSay;
	labelFunc0442_0103:
		UcMessage("\"Urrgh...\"");
		UcSay;
		var0001 = Func0992(0x0001, "@He's dead.@", "@He's dead.@", true);
		UI_set_conversation_slot_09(0x0000);
		UI_clear_item_flag_A5(0xFFBE, 0x001D);
		UI_clear_item_flag_A5(0xFFBE, 0x0004);
		UI_kill_npc_57(0xFFBE);
		UI_set_item_flag_A4(0xFFB4, 0x0004);
		gflags[0046] = true;
		abrt();
	labelFunc0442_0148:
		goto labelFunc0442_0041;
	labelFunc0442_014B:
		end_conv();
		goto labelFunc0442_01AB;
	labelFunc0442_014F:
		UI_show_npc_face0_05(0xFFBE, 0x0000);
		UcMessage("\"Thou hast found out my secret! Now, thou must die...\"");
		UcSay;
		UI_set_item_flag_A4(0xFFBE, 0x001D);
		UI_set_alignment_4A(0xFFBE, 0x0002);
		Func097F(0xFFBE, "@Die!@", 0x0000);
		UI_set_new_schedules_B6(0xFFBE, 0x0000, 0x0000, [var0000[0x0001], var0000[0x0002]]);
		UI_run_schedule_B7(0xFFBE);
		UI_set_opponent_5B(0xFE9C, 0xFFBE);
		abrt();
	labelFunc0442_01AB:
		if(!((event == 0x0007) && (!UI_get_item_flag_A3(0xFFBE, 0x001C)))) goto labelFunc0442_0217;
		UI_set_schedule_type_25(0xFFBE, 0x000F);
		UI_set_item_flag_A4(0xFFBE, 0x0004);
		var0002 = UI_execute_usecode_array_01(0xFFBE, [0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E]);
		UI_set_item_flag_A4(0xFFBE, 0x001C);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000A, 0x55, 0x0442]);
	labelFunc0442_0217:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0954 0x954 ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0836 0x836 ();
extern Func0837 0x837 ();
extern var Func09AE 0x9AE (var var0000);
extern var Func0988 0x988 (var var0000, var var0001);

Func0443 0x443 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = UI_part_of_day_48();
	var0001 = Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F);
	var0002 = Func0954();
	if(!((var0000 > 0x0001) || (var0000 < 0x0006))) goto labelFunc0443_003D;
	var0000 = "day";
	goto labelFunc0443_0043;
	labelFunc0443_003D:
		var0000 = "evening";
	labelFunc0443_0043:
		var0003 = false;
		if(!(event == 0x0007)) goto labelFunc0443_005F;
		var0004 = UI_execute_usecode_array_01(item, [0x55, 0x01D0]);
	labelFunc0443_005F:
		if(!(event == 0x0002)) goto labelFunc0443_0076;
		Func09AC(0xFFBD, Dupre, Dupre, 0x0003);
	labelFunc0443_0076:
		if(!(event == 0x0001)) goto labelFunc0443_00A4;
		UI_item_say_4D(0xFE9C, "@Greetings, milady.@");
		0xFFBD;
		calle();
		Func097F(0xFFBD, "@Greetings to thee.@", 0x0002);
		UI_set_schedule_type_25(0xFFBD, 0x0003);
	labelFunc0443_00A4:
		if(!(event == 0x0009)) goto labelFunc0443_1738;
		UI_clear_item_say_4E(0xFFBD);
		UI_run_schedule_B7(0xFFBD);
		UI_show_npc_face0_05(0xFFBD, 0x0000);
		if(!(gflags[0095] && (!gflags[005B]))) goto labelFunc0443_0171;
		if(!gflags[008C]) goto labelFunc0443_0159;
		UI_revert_schedule_B4(0xFFBD);
		UI_run_schedule_B7(0xFFBD);
		UcMessage("\"As thou hast now seen, the peril that faces Cantra doth go beyond merely being taken by the Goblins. Some foul thing doth possess her.\"");
		UcSay;
		UcMessage("\"The worst the Goblins could do would be to kill her and destroy her body. This new uncertain danger is nothing less than a threat to her spirit, the very essence of her being!\"");
		UcSay;
		UcMessage("\"I implore thee, please find her and rescue her. It is certain to be a perilous undertaking and I cannot blame thee if thou wouldst refuse the pleas of a simple woman.\"");
		UcSay;
		UcMessage("\"But none of the other Knights believe in the visions of the crystal ball. They believe that Cantra hath been taken away by the goblins, and that she is already dead.\"");
		UcSay;
		UcMessage("\"Thou art mine only hope! Wilt thou please find my daughter Cantra and return her to me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0443_013B;
		gflags[005B] = true;
		UcMessage("\"Oh, I thank thee from the bottom of mine heart for thy kindness and thy bravery!\"");
		UcSay;
		UcMessage("\"To find Cantra, thou wilt need two things. The first of these is Cantra's practice sword. I can give that to thee now.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x0208, 0xFE99, 0x0000, 0x0000, true);
		UcMessage("\"This is the very same practice sword that Cantra used every day.\"");
		UcSay;
		UcMessage("\"Now that thou hast my daughter's sword, thou shouldst find one of the legendary Hounds of Doskar. They will be able to sniff Cantra's essence from the sword, and then track her to anywhere in the Serpent Isle.\"");
		UcSay;
		UcMessage("\"The only dilemma thou dost face now is to find one of the Hounds of Doskar. I do not know where one may be found, but I foresee that thou must find the Hound before thou canst rescue my daughter.\"");
		UcSay;
		UI_set_schedule_type_25(0xFFBD, 0x0014);
		goto labelFunc0443_0156;
	labelFunc0443_013B:
		UcMessage("\"Then mine only daughter Cantra shall soon be dead... or worse. Leave thou me now.\"");
		UcSay;
		UI_set_schedule_type_25(0xFFBD, 0x0014);
		Func097F(0xFFBD, "@Oh...@", 0x0000);
		abrt();
	labelFunc0443_0156:
		goto labelFunc0443_016E;
	labelFunc0443_0159:
		UcMessage("\"Thou must find the crystal and gaze into it. Go to mine home. It is there, on the table.\"");
		UcSay;
		UcMessage("\"I beg of thee, for thy sake as well as the sake of my missing child, look into the glass.\"");
		UcSay;
		Func097F(0xFFBD, "@The crystal!@", 0x0000);
		abrt();
	labelFunc0443_016E:
		goto labelFunc0443_0299;
	labelFunc0443_0171:
		if(!gflags[0048]) goto labelFunc0443_021E;
		if(!(!gflags[0079])) goto labelFunc0443_01D5;
		UcMessage("\"My daughter Cantra is missing! I know she would never run away from me, but I feel certain that the Goblins did not take her.\"");
		UcSay;
		gflags[0079] = true;
		if(!(!UI_get_item_flag_A3(0xFFBD, 0x001C))) goto labelFunc0443_01B8;
		UcMessage("\"Pray excuse my poor manners, stranger! I am Widow Harnna, the Healer of Monitor. I also sell vegetables from my garden.\"");
		UcSay;
		UI_add_answer_0C(["widow", "healing", "food", "information"]);
		UI_set_item_flag_A4(0xFFBD, 0x001C);
		goto labelFunc0443_01C2;
	labelFunc0443_01B8:
		UcMessage("\"Pray excuse mine outburst, ");
		UcMessage(var0002);
		UcMessage("! How may I help thee now? Dost thou have need of healing, or dost thou wish to buy my vegetables?\"");
		UcSay;
	labelFunc0443_01C2:
		UI_add_answer_0C(["healing", "food", "information"]);
		goto labelFunc0443_021B;
	labelFunc0443_01D5:
		if(!(!UI_get_item_flag_A3(0xFFBD, 0x001C))) goto labelFunc0443_0207;
		UcMessage("\"I am Widow Harnna, the Healer of Monitor. I also sell vegetables from my garden.\"");
		UcSay;
		UI_add_answer_0C(["widow", "healing", "food", "information"]);
		UI_set_item_flag_A4(0xFFBD, 0x001C);
		goto labelFunc0443_020B;
	labelFunc0443_0207:
		UcMessage("\"How may I help thee now? Dost thou have need of healing, or dost thou wish to buy my vegetables?\"");
		UcSay;
	labelFunc0443_020B:
		UI_add_answer_0C(["healing", "food", "information"]);
	labelFunc0443_021B:
		goto labelFunc0443_0299;
	labelFunc0443_021E:
		var0004 = UI_find_nearby_41(0xFFBD, 0x0334, 0x0014, 0x0000);
		enum();
	labelFunc0443_0232:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0443_0253);
		if(!(UI_get_item_quality_1C(var0007) == 0x0048)) goto labelFunc0443_0250;
		UcMessage("\"Perhaps we may speak at another time. Mine husband is recently dead, and I am in mourning.\"");
		UcSay;
		abrt();
	labelFunc0443_0250:
		goto labelFunc0443_0232;
	labelFunc0443_0253:
		if(!(!UI_get_item_flag_A3(0xFFBD, 0x001C))) goto labelFunc0443_0285;
		UcMessage("\"How may I help thee? I am Widow Harnna, the Healer of Monitor. I also grow mine own food.\"");
		UcSay;
		UI_add_answer_0C(["widow", "healing", "food", "information"]);
		UI_set_item_flag_A4(0xFFBD, 0x001C);
		goto labelFunc0443_0289;
	labelFunc0443_0285:
		UcMessage("\"How may I help thee now? Dost thou have need of healing, or dost thou wish to buy my vegetables?\"");
		UcSay;
	labelFunc0443_0289:
		UI_add_answer_0C(["healing", "food", "information"]);
	labelFunc0443_0299:
		if(!(gflags[005B] && (!gflags[02E2]))) goto labelFunc0443_02AF;
		UI_add_answer_0C("prophecy");
		var0003 = true;
	labelFunc0443_02AF:
		if(!gflags[0079]) goto labelFunc0443_02BC;
		UI_add_answer_0C("Cantra");
	labelFunc0443_02BC:
		if(!(gflags[00C6] && (!gflags[00C7]))) goto labelFunc0443_02CE;
		UI_add_answer_0C("found scroll");
	labelFunc0443_02CE:
		if(!(gflags[0076] && ((!gflags[01A5]) && (gflags[0098] && (!gflags[005A]))))) goto labelFunc0443_02EF;
		UI_add_answer_0C(["Varo leaves", "pox"]);
	labelFunc0443_02EF:
		if(!gflags[00CC]) goto labelFunc0443_02FC;
		UI_add_answer_0C("Pomdirgun");
	labelFunc0443_02FC:
		if(!(gflags[0076] && gflags[0098])) goto labelFunc0443_030D;
		UI_add_answer_0C("pox");
	labelFunc0443_030D:
		if(!(gflags[002D] && (!gflags[00A5]))) goto labelFunc0443_031F;
		UI_add_answer_0C("Marsten");
	labelFunc0443_031F:
		var0008 = 0x0002;
		if(!gflags[0048]) goto labelFunc0443_0331;
		var0008 = 0x0006;
	labelFunc0443_0331:
		if(!gflags[005B]) goto labelFunc0443_033D;
		var0008 = 0x000C;
	labelFunc0443_033D:
		var0009 = 0x0000;
		UI_add_answer_0C("bye");
	labelFunc0443_034A:
		UcAsk;
		cmps("Marsten");
		UI_remove_answer_0D("Marsten");
		if(!gflags[0038]) goto labelFunc0443_0369;
		UcMessage("\"I am glad that miserable traitor is no longer Lord of Monitor!\"");
		UcSay;
		goto labelFunc0443_036D;
	labelFunc0443_0369:
		UcMessage("\"He is the Lord of the Town. Thou shouldst talk to him if thou hast not already.\"");
		UcSay;
	labelFunc0443_036D:
		cmps("widow");
		UI_remove_answer_0D("widow");
		UcMessage("\"My beloved husband was slain while doing his duty, so I should have no complaints. Though Goblins have taken his life, they too shall die.\"");
		UcSay;
		UcMessage("\"But it hath been hard on Cantra. A girl at her age needs a father, dost not thou agree?\"");
		UcSay;
		UI_add_answer_0C(["Cantra", "father"]);
	labelFunc0443_0391:
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"I truly believe it is wrong to wish harm to any living creature, but the world is far better without that foul creature Pomdirgun alive. Thy deed was fair.\"");
		UcSay;
	labelFunc0443_03A4:
		cmps("Cantra");
		UI_remove_answer_0D("Cantra");
		if(!gflags[02E2]) goto labelFunc0443_0401;
		if(!gflags[0096]) goto labelFunc0443_03DB;
		UcMessage("\"It is a comfort to know that my daughter is among the monks. Yet I have a foreboding...\"");
		UcSay;
		UcMessage("\"Something is coming to me... a thought... a premonition...\"");
		UcSay;
		UcMessage("\"Go! The monks have need of thee. My daughter hath need of thee!\"");
		UcSay;
		Func097F(0xFFBD, "@Go to Monk Isle!@", 0x0000);
		abrt();
		goto labelFunc0443_03FE;
	labelFunc0443_03DB:
		UcMessage("\"I know that mine only daughter Cantra is now dead. Her spirit hath been haunting me. She is suffering and tormented.\"");
		UcSay;
		var000A = Func0992(Shamino, "@The monks have taken Cantra to their island.@", "@The monks have taken Cantra to their island.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I thank thee! Perhaps now there is hope that my daughter shall return home to me.\"");
		UcSay;
		gflags[0096] = true;
	labelFunc0443_03FE:
		goto labelFunc0443_0491;
	labelFunc0443_0401:
		if(!(!gflags[0079])) goto labelFunc0443_041E;
		UcMessage("\"Cantra misses her father terribly. He hath been gone for many weeks...\"");
		UcSay;
		UcMessage("\"She is nearly ready to become a Knight herself now. Her father would be so proud of her!\"");
		UcSay;
		UcMessage("\"She is so serious about becoming a Knight. All she ever does is practice with her wooden sword.\"");
		UcSay;
		UI_add_answer_0C("father");
		goto labelFunc0443_0491;
	labelFunc0443_041E:
		if(!(!gflags[0095])) goto labelFunc0443_046B;
		UcMessage("\"Dost thou believe in magic?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0443_0436;
		UcMessage("\"That is good, for what I have to show thee would befuddle the minds of most of this town's inhabitants.\"");
		UcSay;
		goto labelFunc0443_043E;
	labelFunc0443_0436:
		UcMessage("\"I would wager that there is some tiny bit of belief in thine heart, but if not, then it is time that thou wert properly enlightened.\"");
		UcSay;
		UcMessage("\"What I have to show thee should quell any doubts thou mayest yet have.\"");
		UcSay;
	labelFunc0443_043E:
		gflags[0095] = true;
		if(!(UI_get_schedule_type_24(0xFFBD) != 0x001D)) goto labelFunc0443_0457;
		UcMessage("\"Go to mine home. There thou shalt find a crystal ball. Gaze into it, and let thy mind be clear.\"");
		UcSay;
		goto labelFunc0443_045B;
	labelFunc0443_0457:
		UcMessage("\"Look into my crystal ball. Thou shalt find it on the table within mine home. Let thy mind be clear.\"");
		UcSay;
	labelFunc0443_045B:
		Func097F(0xFFBD, "@The crystal!@", 0x0000);
		abrt();
		goto labelFunc0443_0491;
	labelFunc0443_046B:
		if(!(!gflags[0047])) goto labelFunc0443_0479;
		UcMessage("\"I am so grateful that thou hast taken on the quest of saving my daughter. If I can help thee, ask.\"");
		UcSay;
		goto labelFunc0443_0491;
	labelFunc0443_0479:
		if(!UI_get_item_flag_A3(0xFFC0, 0x001E)) goto labelFunc0443_048D;
		UcMessage("\"I am glad that my daughter is alive, but I have a strange foreboding that all is not as it should be with her. A small private part of her is still awash in madness and death.\"");
		UcSay;
		goto labelFunc0443_0491;
	labelFunc0443_048D:
		UcMessage("\"I am so happy my daughter hath been found, resurrected by the monks, and that thou hast restored her mind.\"");
		UcSay;
	labelFunc0443_0491:
		cmps("father");
		UI_remove_answer_0D("father");
		UcMessage("\"The Knights say that there is glory in the way that Cantra's father died, but they do not see the truth. He did his duty, not to earn their respect, but out of love for his family.\"");
		UcSay;
		UcMessage("\"This type of courage, and the source of it, is something the Knights of Monitor do not understand. And until they gain that understanding, there will be no winning this war with the Goblins.\"");
		UcSay;
	labelFunc0443_04A8:
		cmps("healing");
		UcMessage("\"I am not a magical healer. Monitorians are quite suspicious of magic. I use a natural healing method, which uses herbs. Art thou in need of a healer?\"");
		UcSay;
		if(!(gflags[0098] && (gflags[00C2] && (!gflags[005A])))) goto labelFunc0443_057A;
		var000A = Func0992(Iolo, "@The Avatar is burning with fever!@", "@Oh... yes... mine head...@", false);
		UI_set_conversation_slot_09(0x0000);
		if(!(gflags[0076] == false)) goto labelFunc0443_0521;
		UcMessage("\"I can temporarily restore thy body, but thou art suffering from an affliction that cannot easily be cured.\"");
		UcSay;
		UcMessage("\"Such a pox may wear off in time if thou art extremely lucky, but thou canst only be permanently cured by a special ointment made from Varo leaves.\"");
		UcSay;
		UI_add_answer_0C("pox");
		if(!(gflags[01A5] == true)) goto labelFunc0443_0510;
		UcMessage("\"Ah, thou hast spoken with Delphynia already! Dost thou have the Varo leaves?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0443_0509;
		goto labelFunc0443_0521;
		goto labelFunc0443_050D;
	labelFunc0443_0509:
		UcMessage("\"Go thou quickly to Fawn and see if she doth have more of the leaves!\"");
		UcSay;
	labelFunc0443_050D:
		goto labelFunc0443_0517;
	labelFunc0443_0510:
		UI_add_answer_0C("Varo leaves");
	labelFunc0443_0517:
		gflags[0076] = true;
		Func0836();
		goto labelFunc0443_0577;
	labelFunc0443_0521:
		if(!UI_remove_party_items_34(0x0005, 0x01D3, 0xFE99, 0x0003, false)) goto labelFunc0443_0552;
		UcMessage("\"Now that I have the proper ingredients, it is a simple matter to cure thee.\"");
		UcSay;
		UcMessage("\"Hold thou still while I apply these directly upon thy tattoo...\"");
		UcSay;
		UcMessage("\"There, 'tis done. Thine infection hath been healed.\"");
		UcSay;
		gflags[005A] = true;
		UI_clear_item_flag_A5(0xFE9C, 0x0008);
		goto labelFunc0443_0577;
	labelFunc0443_0552:
		if(!UI_get_item_flag_A3(0xFE9C, 0x0008)) goto labelFunc0443_0563;
		UcMessage("\"My cure can have only a temporary effect, for thou art enthralled by a powerful disease.\"");
		UcSay;
	labelFunc0443_0563:
		UcMessage("\"In order for me to provide a permanent cure to thine affliction, thou must bring me five leaves of the Varo plant.\"");
		UcSay;
		Func0836();
		Func097F(0xFFBD, "@Quickly...@", 0x0000);
		abrt();
	labelFunc0443_0577:
		goto labelFunc0443_058A;
	labelFunc0443_057A:
		if(!Func0955()) goto labelFunc0443_0586;
		Func0836();
		goto labelFunc0443_058A;
	labelFunc0443_0586:
		UcMessage("\"If thou art ever in need of a healer, I shall be ready to assist thee.\"");
		UcSay;
	labelFunc0443_058A:
		cmps("Varo leaves");
		UI_remove_answer_0D("Varo leaves");
		UcMessage("\"These leaves are now scarce, as the Varo grows only with abundant sunlight, and we have had clouded skies for many months.\"");
		UcSay;
		UcMessage("\"Go thou and see Delphynia, the horticulturist in Fawn. Perhaps she will have a supply of leaves.\"");
		UcSay;
	labelFunc0443_05A1:
		cmps("pox");
		UI_remove_answer_0D("pox");
		if(!(gflags[00CA] == true)) goto labelFunc0443_05F3;
		UcMessage("\"Didst thou speak with Lydia?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Indeed, the wench hath confessed to her crime!\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFB8, 0x0004)) goto labelFunc0443_05DB;
		UcMessage("\"Moreover, she hath paid for her treachery in blood. She is slain.\"");
		UcSay;
	labelFunc0443_05DB:
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I see. Thou dost appear to have many enemies in my land, ");
		UcMessage(var0002);
		UcMessage(". Be thou careful whom thou dost trust!\"");
		UcSay;
		goto labelFunc0443_063C;
	labelFunc0443_05F3:
		UcMessage("\"Thy suffering came from no accidental affliction -- the venom which mixes with thy blood is not common.\"");
		UcSay;
		var000A = Func0992(Dupre, "@Who did this to the Avatar?@", 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc0443_0618;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0443_0618:
		UcMessage("\"I strongly suspect that the source of thine infection is the tattoo thou hast been given.\"");
		UcSay;
		UcMessage("\"I know that Lydia must have given thee this tattoo, yet I find it difficult to believe she would poison a stranger.\"");
		UcSay;
		UcMessage("\"Thou shouldst have words with her, I think.\"");
		UcSay;
		gflags[0035] = true;
		UI_set_alignment_4A(0xFFB8, 0x0003);
		UI_set_item_flag_A4(0xFFB8, 0x001D);
	labelFunc0443_063C:
		gflags[00CB] = true;
	labelFunc0443_0640:
		cmps("food");
		UcMessage("\"I grow vegetables to feed the town, and sometimes to trade. What dost thou wish to purchase?\"");
		UcSay;
		Func0837();
	labelFunc0443_064F:
		cmps("prophecy");
		UI_remove_answer_0D("prophecy");
		if(!gflags[0211]) goto labelFunc0443_066B;
		UcMessage("\"I sense that thou hast completed the Quest of the Three Artifacts.\"");
		UcSay;
		goto labelFunc0443_067D;
	labelFunc0443_066B:
		UcMessage("\"Thou shalt need three ancient and powerful artifacts to complete thy tasks. One of these is a helm. It seems very familiar to me...\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc0443_067D;
		UcMessage("\"But of course! It is the Helm of Monitor, which thou didst recover from the Goblins!\"");
		UcSay;
		UcMessage("\"Thou shalt yet need that artifact in thy journeys.\"");
		UcSay;
	labelFunc0443_067D:
		UcMessage("\"Thy quest shall be long and difficult. Many are the adventures that thou must undertake. Seemingly unconnected events shall prosper thee in thy seeking of my lost daughter.\"");
		UcSay;
		if(!gflags[0170]) goto labelFunc0443_068B;
		UcMessage("\"Thou mayest find this hard to believe, but my dreams tell me that thy sojourn in Fawn hath been of benefit to thy quest.\"");
		UcSay;
	labelFunc0443_068B:
		UcMessage("\"Thy travels shall take thee north. Far north through caves that lie to the west... I can feel the cold wind blowing upon thee.\"");
		UcSay;
		if(!(gflags[0170] && gflags[002C])) goto labelFunc0443_069D;
		UcMessage("\"I sense that now is the time to go north. All is ready for thy success.\"");
		UcSay;
	labelFunc0443_069D:
		UcMessage("\"I see no more.\"");
		UcSay;
	labelFunc0443_06A1:
		cmps("information");
		if(!((!gflags[0097]) || (UI_get_timer_7A(0x0002) > 0x0004))) goto labelFunc0443_06E0;
		UcMessage("\"What dost thou desire to know?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0001;
		UI_add_answer_0C(["people", "places", "strange objects", "nothing more"]);
		goto labelFunc0443_06E4;
	labelFunc0443_06E0:
		UcMessage("\"I must be about my duties. We must discuss this another time.\"");
		UcSay;
	labelFunc0443_06E4:
		cmps("people");
		if(!(!gflags[007F])) goto labelFunc0443_06F7;
		UcMessage("\"The citizens of Monitor are all Knights, and they belong to one of three Commands: the Bears, Wolves, or Leopards.\"");
		UcSay;
	labelFunc0443_06F7:
		UcMessage("\"About which Command dost thou desire to inquire?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0002;
		UI_add_answer_0C(["Bears", "Wolves", "Leopards", "visitors", "nothing more"]);
	labelFunc0443_071B:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		UcMessage("\"The Bears are strong and brave, and known for their triumphs in the arena. About whom dost thou wish to inquire?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0003;
		UI_add_answer_0C(["Caladin", "Luther", "Simon", "Flicken", "Templar", "Lydia", "nothing more"]);
	labelFunc0443_0754:
		cmps("Caladin");
		UI_remove_answer_0D("Caladin");
		UcMessage("\"He is the leader of the Bear Command, and the commander of the Pikemen. A good, decent man and a hardened veteran of many a tough battle. He doth hate Goblins with a passion.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0770:
		cmps("Luther");
		UI_remove_answer_0D("Luther");
		UcMessage("\"Luther is one of the Bear Command. He is a proven and respected fighter on the battlefield, but off the field he is somewhat of a bully. Best to stay clear of him, I say.\"");
		UcSay;
		UcMessage("\"'Tis said that he doth have a terrible temper. Luther loses control and simply begins swinging.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0790:
		cmps("found scroll");
		UI_remove_answer_0D("found scroll");
		UcMessage("\"A scroll? What dost thou mean?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"I found a scroll, obviously written by Cantra, upon the body of a slain Pikeman. 'Twas thine husband I fear. He was betrayed...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I thank thee, ");
		UcMessage(var0002);
		UcMessage(", for solving the mystery of mine husband's disappearance. 'Tis better to know what truly happened than to be left knowing nothing. I have grieved for mine husband, and I shed tears not for him, but for myself and the waste that all hath become.\"");
		UcSay;
		gflags[00C7] = true;
	labelFunc0443_07CA:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		if(!(!gflags[0044])) goto labelFunc0443_07EB;
		UcMessage("\"He is the innkeeper of The Sleeping Soldier. He is a quiet man, and the oldest person in Monitor. He enjoys his drink -- especially an unusual type of ale from Fawn.\"");
		UcSay;
		UcMessage("\"I have told him to cease drinking that swill, but he insists. From a healer's point of view, that ale should be banned!\"");
		UcSay;
		goto labelFunc0443_07EF;
	labelFunc0443_07EB:
		UcMessage("\"That foul imposter! I spit upon all goblins!\"");
		UcSay;
	labelFunc0443_07EF:
		var0008 = Func09AE(var0008);
	labelFunc0443_07F8:
		cmps("Flicken");
		UI_remove_answer_0D("Flicken");
		UcMessage("\"He is the guard at the south gate of Monitor. He hath a keen eye, despite his getting along in years.\"");
		UcSay;
		UcMessage("\"Flicken is one of the Bear Command. He may seem argumentative, but he is simply a good fellow, doing his job.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0818:
		cmps("Templar");
		UI_remove_answer_0D("Templar");
		UcMessage("\"Templar is a virtuous knight of the Bear Command and oftimes a winner of our local tournaments. He also is our local expert on the Goblins.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0834:
		cmps("Lydia");
		UI_remove_answer_0D("Lydia");
		if(!(!gflags[00CA])) goto labelFunc0443_0851;
		UcMessage("\"She provides the Knights of Monitor with their tattoos, which they receive upon completing Knight's Test or carrying out some difficult quest.\"");
		UcSay;
		goto labelFunc0443_0861;
	labelFunc0443_0851:
		UcMessage("\"'Tis simply beyond belief that she would have poisoned thee... yet thou dost say she confessed to her crime.\"");
		UcSay;
		UcMessage("\"It must have had something to do with that older sister of hers. Selene was taken by the Mages of Moonshade when a mere child.\"");
		UcSay;
		UcMessage("\"Lydia was so happy when her sister visited last month, after all these years. The two were inseparable.\"");
		UcSay;
		UcMessage("\"Selene must have ensorcelled her! How else could one explain how Lydia would commit the dishonorable crime of poisoning a stranger?\"");
		UcSay;
	labelFunc0443_0861:
		var0008 = Func09AE(var0008);
	labelFunc0443_086A:
		cmps("Wolves");
		UI_remove_answer_0D("Wolves");
		UcMessage("\"The Wolves are known for their cunning and stealth, preferring dexterity over brute strength. Brendann is their leader.\"");
		UcSay;
		UcMessage("\"About whom dost thou wish to inquire?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0003;
		UI_add_answer_0C(["Brendann", "Lucilla", "Renfry", "Krayg", "Cellia", "Shmed", "nothing more"]);
	labelFunc0443_08A7:
		cmps("Brendann");
		UI_remove_answer_0D("Brendann");
		UcMessage("\"Brendann is the leader of the Wolf Command. He is a cunning fighter, a clever strategist and a bit of a rogue. He considers himself to be a ladies' man, and not without justification.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_08C3:
		cmps("Lucilla");
		UI_remove_answer_0D("Lucilla");
		UcMessage("\"Lucilla is the barmaid and the owner of the local pub. To tell thee the truth, she is also the town flirt. I do not mean to be catty. She doth have a good heart.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_08DF:
		cmps("Renfry");
		UI_remove_answer_0D("Renfry");
		UcMessage("\"He is a most unusual person. Renfry operates the Crematorium and is the undertaker of the town. He is a pleasant enough fellow, but he doth enjoy his work too much.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_08FB:
		cmps("Krayg");
		UI_remove_answer_0D("Krayg");
		UcMessage("\"Krayg was a fighter, but his arm was mangled in battle a while ago. He is now the Provisioner of the town. He is still haunted by his fighting days. He doth go for long walks alone.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0917:
		cmps("Cellia");
		UI_remove_answer_0D("Cellia");
		UcMessage("\"Cellia is the furrier, tanner and tailor of the city of Monitor. She buys her fur from a trapper who passes through town on occasion. Cellia is a hard-working, earthy woman.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0933:
		cmps("Shmed");
		UI_remove_answer_0D("Shmed");
		if(!UI_get_item_flag_A3(Shmed, 0x0004)) goto labelFunc0443_095A;
		UcMessage("\"They say that Shmed was the traitor who sold our secrets to the Goblins.\"");
		UcSay;
		UcMessage("\"Mine heart tells me that they were wrong. Shmed was a coward, a fool, and a reprobate -- but not a traitor.\"");
		UcSay;
		goto labelFunc0443_0962;
	labelFunc0443_095A:
		UcMessage("\"Shmed hath retired early from his career as a soldier and now operates the Knight's Test -- \"");
		UcSay;
		UcMessage("\"The dungeon where would-be knights test themselves. He is a good man for that job.\"");
		UcSay;
	labelFunc0443_0962:
		var0008 = Func09AE(var0008);
	labelFunc0443_096B:
		cmps("Leopards");
		UI_remove_answer_0D("Leopards");
		UcMessage("\"The Leopards are the glue which holds this community together. We keep the Bears and Wolves from tearing each other apart.\"");
		UcSay;
		UcMessage("\"About whom dost thou wish to know?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0003;
		UI_add_answer_0C(["Lord Marsten", "Spektor", "Standarr", "Andral", "Shazzana", "nothing more"]);
	labelFunc0443_09A5:
		cmps("Lord Marsten");
		UI_remove_answer_0D("Lord Marsten");
		if(!gflags[0038]) goto labelFunc0443_09C1;
		UcMessage("\"I am ashamed that he is a Leopard! I hope that he doth rot in jail for a very long time!\"");
		UcSay;
		goto labelFunc0443_09C5;
	labelFunc0443_09C1:
		UcMessage("\"Marsten is the commander of the Leopard Command. He may be a bit small, but a more tenacious fighter thou shalt not find in the Serpent Isle. He is rough and tough, but gregarious.\"");
		UcSay;
	labelFunc0443_09C5:
		var0008 = Func09AE(var0008);
	labelFunc0443_09CE:
		cmps("Spektor");
		UI_remove_answer_0D("Spektor");
		if(!(!gflags[0092])) goto labelFunc0443_09F3;
		UcMessage("\"A very intelligent man who is part of the Leopard Command. He is the town's treasurer and I understand he doth have quite a collection of books at his house.\"");
		UcSay;
		UcMessage("\"He suffers from insomnia a great deal, and doth have a nervous digestion. When he cannot sleep, he comes to me and I make him a special elixir.\"");
		UcSay;
		UcMessage("\"I think he is worried about the thief. After all, Spektor is the town treasurer, so when money starts disappearing, everyone suspects him.\"");
		UcSay;
		goto labelFunc0443_09F7;
	labelFunc0443_09F3:
		UcMessage("\"I am glad that traitor Spektor hath been arrested!\"");
		UcSay;
	labelFunc0443_09F7:
		gflags[00B6] = true;
		var0008 = Func09AE(var0008);
	labelFunc0443_0A04:
		cmps("Standarr");
		UI_remove_answer_0D("Standarr");
		UcMessage("\"Standarr is the armourer and blacksmith of our town. He is an honorable fighter and skilled craftsman. He also sells weapons and armour.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0A20:
		cmps("Andral");
		UI_remove_answer_0D("Andral");
		UcMessage("\"Andral is not a fighter, which is a good thing since as I hear that he was miserable at it. Instead, he is an artist. Many of the knights hire him to create statues of them.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0A3C:
		cmps("Shazzana");
		UI_remove_answer_0D("Shazzana");
		UcMessage("\"Shazzana is a trainer in the fighting arts and also a knight of the Leopard Command. It is said that one day she may very well become a Champion Knight of Monitor, which would suit her fine!\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0A58:
		cmps("visitors");
		UI_remove_answer_0D("visitors");
		if(!gflags[0044]) goto labelFunc0443_0A74;
		UcMessage("\"I doubt that we shall have as many visitors as memorable as thou art come through town for quite a while!\"");
		UcSay;
		goto labelFunc0443_0A8C;
	labelFunc0443_0A74:
		UcMessage("\"I cannot keep track of all who come and go in this place. Thou shouldst talk to Simon, he is the innkeeper here.\"");
		UcSay;
		if(!(!gflags[0078])) goto labelFunc0443_0A83;
		UcMessage("\"Visitors who do not reside in our inn can usually be found in our prison. For instance, a mad enchanter who was captured in the crematorium recently. Marsten will know more than I about him.\"");
		UcSay;
	labelFunc0443_0A83:
		var0008 = Func09AE(var0008);
	labelFunc0443_0A8C:
		cmps("places");
		UcMessage("\"Of which type of place wouldst thou have me tell?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0002;
		UI_add_answer_0C(["cities", "wilderness"]);
	labelFunc0443_0AAF:
		cmps("cities");
		UI_remove_answer_0D("cities");
		UcMessage("\"There are three cities in the Serpent Isles, and a small hamlet. Of which can I tell thee?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0003;
		UI_add_answer_0C(["Moonshade", "Fawn", "Sleeping Bull", "Monitor", "nothing more"]);
	labelFunc0443_0AE2:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"Moonshade is a city filled with mages who look down on any who are inexperienced in the ways of magic. Moonshade is ruled by a MageLord and a council of sorcerors. It is an excellent place to learn magic, however.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0AFE:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"Fawn is a city of sailors. As thou canst well imagine these teleport storms have grievously harmed their livelihood. Fawn is also a city that worships beauty.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0B1A:
		cmps("Sleeping Bull");
		UI_remove_answer_0D("Sleeping Bull");
		UcMessage("\"This is an inn along the Serpent Highway. It is said that one could obtain passage on ships from there.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0B36:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"Why, it is the city thou dost find thyself in now! It is a city of fighters and knights. Here in Monitor is where the Pikemen that protect the highway are trained.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0B52:
		cmps("wilderness");
		UI_remove_answer_0D("wilderness");
		UcMessage("\"The wilderness is the place in which a warrior can test himself against fearsome beasts and challenges of nature. Of which place wouldst thou learn?\"");
		UcSay;
		UI_push_answers_0E();
		var0009 = 0x0003;
		UI_add_answer_0C(["Furnace", "Gorlab Swamp", "Great Northern Forest", "nothing more"]);
	labelFunc0443_0B82:
		cmps("Furnace");
		UI_remove_answer_0D("Furnace");
		UcMessage("\"This is a dungeon located to the east of here that is said to be so hot that humans cannot survive within its cavernous depths.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0B9E:
		cmps("Gorlab Swamp");
		UI_remove_answer_0D("Gorlab Swamp");
		UcMessage("\"Follow the Serpent Road north and thou shalt come to it. But thou mayest not return.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0BBA:
		cmps("Great Northern Forest");
		UI_remove_answer_0D("Great Northern Forest");
		UcMessage("\"It is said that this forest lies beyond the swamp, but we have precious little contact with the people there.\"");
		UcSay;
		var0008 = Func09AE(var0008);
	labelFunc0443_0BD6:
		cmps("strange objects");
		var0009 = (var0009 + 0x0001);
		UI_remove_answer_0D("strange objects");
		var000B = [];
		if(!(gflags[027A] && (!gflags[028C]))) goto labelFunc0443_0C0A;
		var000B = (var000B & "pinecone");
	labelFunc0443_0C0A:
		if(!(gflags[027B] && (!gflags[028D]))) goto labelFunc0443_0C1F;
		var000B = (var000B & "moonsilk stockings");
	labelFunc0443_0C1F:
		if(!(gflags[027C] && (!gflags[028E]))) goto labelFunc0443_0C34;
		var000B = (var000B & "urn");
	labelFunc0443_0C34:
		if(!(gflags[027D] && (!gflags[028F]))) goto labelFunc0443_0C49;
		var000B = (var000B & "apparatus");
	labelFunc0443_0C49:
		if(!(gflags[027E] && (!gflags[0290]))) goto labelFunc0443_0C5E;
		var000B = (var000B & "pumice");
	labelFunc0443_0C5E:
		if(!(gflags[027F] && (!gflags[0291]))) goto labelFunc0443_0C73;
		var000B = (var000B & "lost ring");
	labelFunc0443_0C73:
		if(!(gflags[0280] && (!gflags[0292]))) goto labelFunc0443_0C88;
		var000B = (var000B & "fur cap");
	labelFunc0443_0C88:
		if(!(gflags[0281] && (!gflags[0293]))) goto labelFunc0443_0C9D;
		var000B = (var000B & "slippers");
	labelFunc0443_0C9D:
		if(!(gflags[0282] && (!gflags[0294]))) goto labelFunc0443_0CB2;
		var000B = (var000B & "breastplate");
	labelFunc0443_0CB2:
		if(!(gflags[0283] && (!gflags[0295]))) goto labelFunc0443_0CC7;
		var000B = (var000B & "blue egg");
	labelFunc0443_0CC7:
		if(!(gflags[0284] && (!gflags[0296]))) goto labelFunc0443_0CDC;
		var000B = (var000B & "strange hairbrush");
	labelFunc0443_0CDC:
		if(!(gflags[0285] && (!gflags[0297]))) goto labelFunc0443_0CF1;
		var000B = (var000B & "bottle of wine");
	labelFunc0443_0CF1:
		if(!(gflags[0287] && (!gflags[0299]))) goto labelFunc0443_0D06;
		var000B = (var000B & "strange coins");
	labelFunc0443_0D06:
		if(!(gflags[0288] && (!gflags[029A]))) goto labelFunc0443_0D1B;
		var000B = (var000B & "skull");
	labelFunc0443_0D1B:
		if(!(gflags[0289] && (!gflags[029B]))) goto labelFunc0443_0D30;
		var000B = (var000B & "bloody hand");
	labelFunc0443_0D30:
		if(!(gflags[028A] && (!gflags[029C]))) goto labelFunc0443_0D45;
		var000B = (var000B & "plain shield");
	labelFunc0443_0D45:
		if(!(gflags[028B] && (!gflags[029D]))) goto labelFunc0443_0D5A;
		var000B = (var000B & "glowing rock");
	labelFunc0443_0D5A:
		if(!(gflags[007B] && (!gflags[007C]))) goto labelFunc0443_0D6F;
		var000B = (var000B & "fish-net stockings");
	labelFunc0443_0D6F:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0443_0D8B;
		var000B = (var000B & "brown bottle");
	labelFunc0443_0D8B:
		if(!(var000B == [])) goto labelFunc0443_0DBB;
		var000A = Func0992(0x0001, (("@But we have no strange objects to ask about, " + var0002) + ".@"), 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I do not think I can assist thee, but if I think of anything, I will let thee know!\"");
		UcSay;
		goto labelFunc0443_0E1F;
	labelFunc0443_0DBB:
		UcMessage("\"What sort of items art thou inquiring about?\"");
		UcSay;
		UI_push_answers_0E();
		var000C = 0x0005;
	labelFunc0443_0DC9:
		if(!(var000C > 0x0000)) goto labelFunc0443_0E18;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_0E04;
		var000C = 0x0000;
		var000E = true;
	labelFunc0443_0E04:
		UI_add_answer_0C(var000D);
		var000C = (var000C - 0x0001);
		goto labelFunc0443_0DC9;
	labelFunc0443_0E18:
		UI_add_answer_0C("nothing more");
	labelFunc0443_0E1F:
		cmps("pinecone");
		UI_remove_answer_0D("pinecone");
		if(!Func097D(0xFE9B, 0x0001, 0x0108, 0xFE99, 0xFE99)) goto labelFunc0443_0E4A;
		UcMessage("\"'Tis a pinecone! They are not normally found anywhere near here. They come from pine trees in the great forests to the north.\"");
		UcSay;
		goto labelFunc0443_0E4E;
	labelFunc0443_0E4A:
		UcMessage("\"It sounds as though thou art describing a pinecone. They come from trees far to the north of here.\"");
		UcSay;
	labelFunc0443_0E4E:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_0E90;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_0E89;
		var000E = true;
	labelFunc0443_0E89:
		UI_add_answer_0C(var000D);
	labelFunc0443_0E90:
		cmps("moonsilk stockings");
		UI_remove_answer_0D("moonsilk stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc0443_0EC3;
		UcMessage("\"My, those are fine stockings! Being a simple woman I could never wear such things -- nor would most of the women of Monitor, for they are Knights!\"");
		UcSay;
		UcMessage("\"Perhaps thou shouldst speak with Brendann. He hath had the most -- ahem -- experience with women from outside the town.\"");
		UcSay;
		gflags[0099] = true;
		goto labelFunc0443_0EC7;
	labelFunc0443_0EC3:
		UcMessage("\"Oh, I know nothing of such frills. But Brendann would be well familiar with how to remove them from a woman.\"");
		UcSay;
	labelFunc0443_0EC7:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_0F09;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_0F02;
		var000E = true;
	labelFunc0443_0F02:
		UI_add_answer_0C(var000D);
	labelFunc0443_0F09:
		cmps("urn");
		UI_remove_answer_0D("urn");
		if(!Func097D(0xFE9B, 0x0001, 0x0392, 0xFE99, 0x0000)) goto labelFunc0443_0F38;
		UcMessage("\"Why, that looks to be a funeral urn. In our city, it is our custom to burn our dead, and keep their remains in such urns.\"");
		UcSay;
		gflags[028E] = true;
		goto labelFunc0443_0F3C;
	labelFunc0443_0F38:
		UcMessage("\"It sounds like the object thou art describing may be a funeral urn.\"");
		UcSay;
	labelFunc0443_0F3C:
		UcMessage("\"I wonder... Caladin hath been angry because the ashes of his grandfather were missing. Perhaps that is what that urn contains.\"");
		UcSay;
		gflags[009A] = true;
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_0F86;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_0F7F;
		var000E = true;
	labelFunc0443_0F7F:
		UI_add_answer_0C(var000D);
	labelFunc0443_0F86:
		cmps("apparatus");
		UI_remove_answer_0D("apparatus");
		if(!Func097D(0xFE9B, 0x0001, 0x02ED, 0xFE99, 0x0001)) goto labelFunc0443_0FB5;
		UcMessage("\"That strange apparatus doth look like nothing I have ever seen before! Could it be some kind of statue, or mayhaps a magical implement?\"");
		UcSay;
		UcMessage("\"Fawn is known for its statuary, while Moonshade is the City of Mages. Perhaps thou shouldst inquire there.\"");
		UcSay;
		goto labelFunc0443_0FB9;
	labelFunc0443_0FB5:
		UcMessage("\"That sounds as if it may be some sort of instrument of mages. They may know of such things in Moonshade, but not here I fear.\"");
		UcSay;
	labelFunc0443_0FB9:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_0FFB;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_0FF4;
		var000E = true;
	labelFunc0443_0FF4:
		UI_add_answer_0C(var000D);
	labelFunc0443_0FFB:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		if(!Func097D(0xFE9B, 0x0001, 0x010B, 0xFE99, 0xFE99)) goto labelFunc0443_102E;
		UcMessage("\"This type of rock is not common around here. Now if thou didst speak with Krayg, perhaps he could help thee...\"");
		UcSay;
		UcMessage("\"He is fond of long walks, and sometimes he discovers odd rocks and plants. He brings me mandrake roots sometimes.\"");
		UcSay;
		gflags[009B] = true;
		goto labelFunc0443_1032;
	labelFunc0443_102E:
		UcMessage("\"I do not recall having ever seen the type of rock thou hast described before. Krayg is much more familiar with the rocks and plants of this area than I am.\"");
		UcSay;
	labelFunc0443_1032:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_1074;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_106D;
		var000E = true;
	labelFunc0443_106D:
		UI_add_answer_0C(var000D);
	labelFunc0443_1074:
		cmps("lost ring");
		UI_remove_answer_0D("lost ring");
		if(!Func097D(0xFE9B, 0x0001, 0x0377, 0xFE99, 0x0000)) goto labelFunc0443_10A3;
		UcMessage("\"That looks to be a special ring, although it doth not appear to be magical. Lucilla is more interested in such baubles and trinkets than I. Perhaps she will be able to tell thee more.\"");
		UcSay;
		gflags[009C] = true;
		goto labelFunc0443_10A7;
	labelFunc0443_10A3:
		UcMessage("\"It sounds as though it could be a magic ring, or most likely just an ordinary ring of betrothal. Lucilla is more interested in such things than I am.\"");
		UcSay;
	labelFunc0443_10A7:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_10E9;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_10E2;
		var000E = true;
	labelFunc0443_10E2:
		UI_add_answer_0C(var000D);
	labelFunc0443_10E9:
		cmps("fur cap");
		UI_remove_answer_0D("fur cap");
		if(!Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0004)) goto labelFunc0443_1118;
		UcMessage("\"Cellia here in town is a tanner and a furrier. This hat looks like it could be her work.\"");
		UcSay;
		gflags[009D] = true;
		goto labelFunc0443_111C;
	labelFunc0443_1118:
		UcMessage("\"Cellia is the tanner and furrier in town. I know nothing of such things.\"");
		UcSay;
	labelFunc0443_111C:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_115E;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_1157;
		var000E = true;
	labelFunc0443_1157:
		UI_add_answer_0C(var000D);
	labelFunc0443_115E:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		if(!Func097D(0xFE9B, 0x0001, 0x024B, 0xFE99, 0x0005)) goto labelFunc0443_118D;
		UcMessage("\"Surely, these belong to no one in this city. Krayg the provisioner might know who would sell something like these slippers.\"");
		UcSay;
		gflags[009E] = true;
		goto labelFunc0443_1191;
	labelFunc0443_118D:
		UcMessage("\"Perhaps thou mayest buy such things from Krayg, our town's provisioner. But I doubt that even he would carry such footwear.\"");
		UcSay;
	labelFunc0443_1191:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_11D3;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_11CC;
		var000E = true;
	labelFunc0443_11CC:
		UI_add_answer_0C(var000D);
	labelFunc0443_11D3:
		cmps("breastplate");
		UI_remove_answer_0D("breastplate");
		UcMessage("\"Thou shouldst ask Standarr the armourer about that.\"");
		UcSay;
		gflags[009F] = true;
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_122C;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_1225;
		var000E = true;
	labelFunc0443_1225:
		UI_add_answer_0C(var000D);
	labelFunc0443_122C:
		cmps("blue egg");
		UI_remove_answer_0D("blue egg");
		if(!Func097D(0xFE9B, 0x0001, 0x0241, 0xFE99, 0x0003)) goto labelFunc0443_1257;
		UcMessage("\"It appears to be an egg from some kind of bird. The shell appears to be thick, yet it is not exceedingly hard. The shell seems to be intended to protect the baby bird from the cold. I would surmise that this egg came from a bird that lives in the north.\"");
		UcSay;
		goto labelFunc0443_125B;
	labelFunc0443_1257:
		UcMessage("\"I once heard that the strange birds of the north lay blue eggs.\"");
		UcSay;
	labelFunc0443_125B:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_129D;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_1296;
		var000E = true;
	labelFunc0443_1296:
		UI_add_answer_0C(var000D);
	labelFunc0443_129D:
		cmps("strange hairbrush");
		UI_remove_answer_0D("strange hairbrush");
		if(!Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0006)) goto labelFunc0443_12D0;
		UcMessage("\"Do not bring that thing near me! If thou dost desire to know its nature, ask of Templar...\"");
		UcSay;
		UcMessage("\"...but never bring that object here again!\"");
		UcSay;
		gflags[00A0] = true;
		goto labelFunc0443_12D4;
	labelFunc0443_12D0:
		UcMessage("\"It sounds simply horrid. Templar may know of such things, but I do not.\"");
		UcSay;
	labelFunc0443_12D4:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_1316;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_130F;
		var000E = true;
	labelFunc0443_130F:
		UI_add_answer_0C(var000D);
	labelFunc0443_1316:
		cmps("bottle of wine");
		UI_remove_answer_0D("bottle of wine");
		if(!(!gflags[0044])) goto labelFunc0443_1337;
		UcMessage("\"Simon is the barkeep at the inn. He knows more than anyone in town about exotic beverages.\"");
		UcSay;
		gflags[00A1] = true;
		goto labelFunc0443_133B;
	labelFunc0443_1337:
		UcMessage("\"I know of no one that could help thee with this. I know nothing of beverages. Perhaps Lucilla knows something...\"");
		UcSay;
	labelFunc0443_133B:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_137D;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_1376;
		var000E = true;
	labelFunc0443_1376:
		UI_add_answer_0C(var000D);
	labelFunc0443_137D:
		cmps("strange coins");
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc0443_13A9;
		UcMessage("\"They appear to be coins from another town. Spektor would recognize them, I am certain.\"");
		UcSay;
		UcMessage("\"He is the town treasurer, and exchanges foreign coins for the good coins of Monitor.\"");
		UcSay;
		gflags[00A2] = true;
		goto labelFunc0443_13AD;
	labelFunc0443_13A9:
		UcMessage("\"Spektor the treasurer is the expert on currency in the town of Monitor.\"");
		UcSay;
	labelFunc0443_13AD:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_13EF;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_13E8;
		var000E = true;
	labelFunc0443_13E8:
		UI_add_answer_0C(var000D);
	labelFunc0443_13EF:
		cmps("skull");
		UI_remove_answer_0D("skull");
		if(!Func097D(0xFE9B, 0x0001, 0x00F4, 0xFE99, 0xFE99)) goto labelFunc0443_141E;
		UcMessage("\"That is a bear skull. Bears are commonly found in the south and west portions of our land.\"");
		UcSay;
		gflags[029A] = true;
		goto labelFunc0443_1422;
	labelFunc0443_141E:
		UcMessage("\"It sounds like thou art describing a bear skull. Bears are usually found in the south and west.\"");
		UcSay;
	labelFunc0443_1422:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_1464;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_145D;
		var000E = true;
	labelFunc0443_145D:
		UI_add_answer_0C(var000D);
	labelFunc0443_1464:
		cmps("bloody hand");
		UI_remove_answer_0D("bloody hand");
		if(!Func097D(0xFE9B, 0x0001, 0x031A, 0xFE99, 0x0000)) goto labelFunc0443_1497;
		UcMessage("\"It seems it was lost on the field of battle, so whoever lost it probably did not survive. Yet there are no signs of decay -- a recent injury...\"");
		UcSay;
		UcMessage("\"Thou mightest ask Renfry if he hath encountered a body with such an injury lately.\"");
		UcSay;
		gflags[00A3] = true;
		goto labelFunc0443_149B;
	labelFunc0443_1497:
		UcMessage("\"What a puzzling mystery! Thou shouldst ask Renfry, our undertaker, about it.\"");
		UcSay;
	labelFunc0443_149B:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_14DD;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_14D6;
		var000E = true;
	labelFunc0443_14D6:
		UI_add_answer_0C(var000D);
	labelFunc0443_14DD:
		cmps("plain shield");
		UI_remove_answer_0D("plain shield");
		if(!Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0xFE99)) goto labelFunc0443_150C;
		UcMessage("\"That shield could belong to anyone in this town. Green and white are the colors of Monitor and its warriors.\"");
		UcSay;
		UcMessage("\"Thou shouldst inquire if anyone is missing a shield.\"");
		UcSay;
		goto labelFunc0443_1510;
	labelFunc0443_150C:
		UcMessage("\"Such a shield could belong to anyone in Monitor.\"");
		UcSay;
	labelFunc0443_1510:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_1552;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_154B;
		var000E = true;
	labelFunc0443_154B:
		UI_add_answer_0C(var000D);
	labelFunc0443_1552:
		cmps("glowing rock");
		UI_remove_answer_0D("glowing rock");
		if(!var0001) goto labelFunc0443_1572;
		UcMessage("\"This glowing rock must have come from some strange, unnatural place. I have never seen such a rock in any sort of place near here.\"");
		UcSay;
		UcMessage("\"I sense that it doth have unusual powers... incredible energies... hidden abilities...\"");
		UcSay;
		goto labelFunc0443_1576;
	labelFunc0443_1572:
		UcMessage("\"I have never before heard of such an item. It sounds as though it might possess great power.\"");
		UcSay;
	labelFunc0443_1576:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_15B8;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_15B1;
		var000E = true;
	labelFunc0443_15B1:
		UI_add_answer_0C(var000D);
	labelFunc0443_15B8:
		cmps("fish-net stockings");
		UI_remove_answer_0D("fish-net stockings");
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0001)) goto labelFunc0443_15E7;
		UcMessage("\"There is a knight in town by the name of Brendann. He hath had more experience in removing these from ladies than I have ever had wearing them, I am afraid.\"");
		UcSay;
		gflags[0099] = true;
		goto labelFunc0443_15EB;
	labelFunc0443_15E7:
		UcMessage("\"Brendann is more well-acquainted with finery of ladies than a simple farm woman such as I, I am afraid.\"");
		UcSay;
	labelFunc0443_15EB:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_162D;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_1626;
		var000E = true;
	labelFunc0443_1626:
		UI_add_answer_0C(var000D);
	labelFunc0443_162D:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0443_1660;
		UcMessage("\"May I see the bottle?\"");
		UcSay;
		UcMessage("\"That looks like the type of bottle that usually contains the ale Simon drinks. In Monitor, only he drinks that bitter Fawnish ale.\"");
		UcSay;
		gflags[005F] = true;
		goto labelFunc0443_1664;
	labelFunc0443_1660:
		UcMessage("\"How strange -- a bottle in the woods? Perhaps Templar can help thee. He is the expert on Goblins and their habits.\"");
		UcSay;
	labelFunc0443_1664:
		var0008 = Func09AE(var0008);
		if(!(!var000E)) goto labelFunc0443_16A6;
		var000D = var000B[UI_get_random_00(UI_get_array_size_73(var000B))];
		var000B = Func0988(var000D, var000B);
		if(!(var000B == [])) goto labelFunc0443_169F;
		var000E = true;
	labelFunc0443_169F:
		UI_add_answer_0C(var000D);
	labelFunc0443_16A6:
		cmps("nothing more");
		if(!(var0009 == 0x0001)) goto labelFunc0443_16C3;
		UI_pop_answers_0F();
		UcMessage("\"I wish I could have been of more help to thee...\"");
		UcSay;
		goto labelFunc0443_16E2;
	labelFunc0443_16C3:
		if(!(var0009 > 0x0001)) goto labelFunc0443_16DE;
		UI_pop_answers_0F();
		var0009 = (var0009 - 0x0001);
		goto labelFunc0443_16C3;
	labelFunc0443_16DE:
		UcMessage("\"Is there anything else I can help thee with?\"");
		UcSay;
	labelFunc0443_16E2:
		cmps("bye");
		if(!(gflags[005B] && (!var0003))) goto labelFunc0443_170B;
		UcMessage("\"But wait... I feel the primal forces drawing near... I hear the voices of the Void...\"");
		UcSay;
		UcMessage("\"I have a prophecy for thee, Avatar.\"");
		UcSay;
		UI_add_answer_0C("prophecy");
		var0003 = true;
		goto labelFunc0443_1734;
	labelFunc0443_170B:
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, (("@Good " + var0000) + "!@"), 0x0000);
		Func097F(0xFFBD, "@And to thee.@", 0x0002);
		abrt();
	labelFunc0443_1734:
		goto labelFunc0443_034A;
	labelFunc0443_1737:
		end_conv();
	labelFunc0443_1738:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0994 0x994 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func08F0 0x8F0 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0953 0x953 ();
extern var Func0956 0x956 (var var0000);
extern Func0842 0x842 ();
extern Func0843 0x843 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097A 0x97A (var var0000);

Func0444 0x444 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = false;
	if(!(UI_get_schedule_type_24(0xFFBC) == 0x0007)) goto labelFunc0444_0016;
	var0000 = true;
	labelFunc0444_0016:
		var0001 = Func0954();
		var0002 = false;
		var0003 = false;
		if(!(Func0994() == 0x000D)) goto labelFunc0444_0032;
		var0003 = true;
	labelFunc0444_0032:
		if(!gflags[0048]) goto labelFunc0444_003E;
		var0001 = "knight";
	labelFunc0444_003E:
		var0004 = UI_is_pc_female_6F();
		var0005 = Func0954();
		var0006 = false;
		var0007 = false;
		var0008 = false;
		if(!(event == 0x0007)) goto labelFunc0444_006F;
		var0009 = UI_execute_usecode_array_01(item, [0x55, 0x01D0]);
	labelFunc0444_006F:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFBC) != 0x000A))) goto labelFunc0444_00E5;
		UI_item_say_4D(0xFE9C, "@Hello, sir.@");
		0xFFBC;
		calle();
		if(!var0000) goto labelFunc0444_00CF;
		Func097F(0xFFBC, "@Hello.@", 0x0002);
		UI_set_schedule_type_25(0xFFBC, 0x000A);
		0xFFBC;
		calle();
		var0009 = UI_delayed_execute_usecode_array_02(0xFFBC, [0x23, 0x55, 0x0444], 0x0007);
		goto labelFunc0444_00E5;
	labelFunc0444_00CF:
		Func097F(0xFFBC, "@Hello.@", 0x0002);
		UI_set_schedule_type_25(0xFFBC, 0x0003);
	labelFunc0444_00E5:
		if(!(event == 0x0002)) goto labelFunc0444_00F1;
		event = 0x0009;
	labelFunc0444_00F1:
		if(!(event == 0x0009)) goto labelFunc0444_0684;
		UI_run_schedule_B7(0xFFBC);
		UI_clear_item_say_4E(0xFFBC);
		if(!(UI_get_schedule_type_24(0xFFBC) == 0x0007)) goto labelFunc0444_0119;
		var0000 = true;
	labelFunc0444_0119:
		UI_show_npc_face0_05(0xFFBC, 0x0000);
		Func08F0();
		var000A = UI_get_item_flag_A3(0xFFBC, 0x001C);
		if(!(!var000A)) goto labelFunc0444_0164;
		if(!var0000) goto labelFunc0444_014D;
		UcMessage("\"Hello, ");
		UcMessage(var0001);
		UcMessage(". I am Krayg the Provisioner. If thou needest any goods, I can provide them at a fair price.\"");
		UcSay;
		goto labelFunc0444_0157;
	labelFunc0444_014D:
		UcMessage("\"Hello, ");
		UcMessage(var0001);
		UcMessage(". How can I help thee?\"");
		UcSay;
	labelFunc0444_0157:
		UI_set_item_flag_A4(0xFFBC, 0x001C);
		goto labelFunc0444_0181;
	labelFunc0444_0164:
		if(!gflags[0048]) goto labelFunc0444_0177;
		UcMessage("\"Hello again, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0444_0181;
	labelFunc0444_0177:
		UcMessage("\"Hello, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0444_0181:
		if(!gflags[0048]) goto labelFunc0444_018E;
		UI_add_answer_0C("duties");
	labelFunc0444_018E:
		if(!((!var0003) || gflags[004E])) goto labelFunc0444_01A0;
		UI_add_answer_0C("walks in the woods");
	labelFunc0444_01A0:
		if(!gflags[004E]) goto labelFunc0444_01AD;
		UI_add_answer_0C("Luther");
	labelFunc0444_01AD:
		if(!(gflags[0045] || (gflags[00A6] || (gflags[009E] || gflags[009B])))) goto labelFunc0444_01C6;
		UI_add_answer_0C("information");
	labelFunc0444_01C6:
		UI_add_answer_0C(["Knights", "supplies", "bye"]);
	labelFunc0444_01D6:
		UcAsk;
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"Someone hath sent thee to me, eh? Well, I shall try to be of help to thee. What dost thou inquire about?\"");
		UcSay;
		UI_push_answers_0E();
		if(!(gflags[009B] && (!gflags[0290]))) goto labelFunc0444_0202;
		UI_add_answer_0C("pumice");
	labelFunc0444_0202:
		if(!(gflags[009E] && (!gflags[0293]))) goto labelFunc0444_0214;
		UI_add_answer_0C("slippers");
	labelFunc0444_0214:
		if(!gflags[00A6]) goto labelFunc0444_0221;
		UI_add_answer_0C("ruins");
	labelFunc0444_0221:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0444_023A;
		UI_add_answer_0C("brown bottle");
	labelFunc0444_023A:
		UI_add_answer_0C("change subject");
	labelFunc0444_0241:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0444_0274;
		UcMessage("\"See! I told everyone that I could not be the traitor!\"");
		UcSay;
		UcMessage("\"I am not even a drinking man. But Luther is known to imbibe to excess...\"");
		UcSay;
		UcMessage("\"This bottle must be his! Luther is the traitor!\"");
		UcSay;
		goto labelFunc0444_0299;
	labelFunc0444_0274:
		UcMessage("\"A bottle in the woods? And thou dost think that I dropped it?\"");
		UcSay;
		var0009 = Func0953();
		UcMessage("\"Thou art wrong, ");
		UcMessage(var0009);
		UcMessage("! Ask anyone -- they will tell thee that I am not a drinking man.\"");
		UcSay;
		UcMessage("\"'Tis due to mine injuries. Milk is all that I can tolerate. Boiled milk.\"");
		UcSay;
		Func097F(0xFFBC, "@Leave me alone...@", 0x0000);
		abrt();
	labelFunc0444_0299:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I run the supplies shop in Monitor, The Tools of the Trade. 'Tis not a glorious duty, but I cannot wield a sword comfortably because of my condition.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["condition", "change subject"]);
	labelFunc0444_02BD:
		cmps("condition");
		UI_remove_answer_0D("condition");
		UcMessage("\"If thou dost look closely, thou canst see that mine arm is bent unnaturally at the elbow. I was wounded as a lad, in my very first battle -- the Goblins surprised us, and it was a heated battle... I was not able to obtain healing in time. Thus I was left unfit for combat.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0444_02D4:
		cmps("Luther");
		UI_remove_answer_0D("Luther");
		UcMessage("\"So thou art a comrade of that brute Luther, eh? I know that he is no friend of mine. He is suspicious of me for no other reason than that I happen to like to take walks in the woods!\"");
		UcSay;
		UcMessage("\"He is merely following his leader, Caladin -- they all think the Wolves are their enemies!\"");
		UcSay;
		if(!(!var0002)) goto labelFunc0444_02F9;
		UI_add_answer_0C("walks in the woods");
	labelFunc0444_02F9:
		cmps("supplies");
		if(!var0000) goto labelFunc0444_036A;
		UcMessage("\"I sell many things that a warrior would require while travelling outside the city. I also buy a few goods that I need. Dost thou wish to buy or sell?\"");
		UcSay;
		var000B = Func0956(["nothing", "buy", "sell"]);
		if(!(var000B == "buy")) goto labelFunc0444_0331;
		Func0842();
		UI_add_answer_0C("buy");
	labelFunc0444_0331:
		if(!(var000B == "sell")) goto labelFunc0444_0353;
		UcMessage("\"I buy a few leather items, ");
		UcMessage(var0001);
		UcMessage("...\"");
		UcSay;
		UcMessage("\"But my prices are set, I'm afraid.\"");
		UcSay;
		Func0843();
		UI_add_answer_0C("sell");
	labelFunc0444_0353:
		if(!(var000B == "nothing")) goto labelFunc0444_0367;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0444_0367:
		goto labelFunc0444_0374;
	labelFunc0444_036A:
		UcMessage("\"I sell supplies when I am open, ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc0444_0374:
		cmps("buy");
		Func0842();
	labelFunc0444_037F:
		cmps("sell");
		Func0843();
	labelFunc0444_038A:
		cmps("Knights");
		UI_remove_answer_0D("Knights");
		if(!var0003) goto labelFunc0444_03A6;
		UcMessage("\"We are all Knights in this town.\"");
		UcSay;
		goto labelFunc0444_03AA;
	labelFunc0444_03A6:
		UcMessage("\"In the City of Monitor, everyone is a Knight.\"");
		UcSay;
	labelFunc0444_03AA:
		if(!gflags[0048]) goto labelFunc0444_03E0;
		UcMessage("\"I myself belong to the Command of the Wolf.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C("Commands");
		if(!(!var0006)) goto labelFunc0444_03CD;
		UI_add_answer_0C("Wolf");
	labelFunc0444_03CD:
		UI_add_answer_0C(["Bear", "Leopard", "change subject"]);
		goto labelFunc0444_03F5;
	labelFunc0444_03E0:
		if(!var0003) goto labelFunc0444_03ED;
		UcMessage("\"I must tell thee, stranger, that if thou art not a Knight, thou art nothing in this town. If thou canst not master the Test of the Knights, then it would be best for thee to move on.\"");
		UcSay;
		goto labelFunc0444_03F1;
	labelFunc0444_03ED:
		UcMessage("\"In Monitor, one is either a Knight, or one is nothing at all. Unless thou art thinking of taking the Test of the Knights, thou mightest want to avoid the City of Monitor.\"");
		UcSay;
	labelFunc0444_03F1:
		gflags[0080] = true;
	labelFunc0444_03F5:
		cmps("Commands");
		UI_remove_answer_0D("Commands");
		UcMessage("\"Thou dost not know about the Commands? All Monitorians belong to one of three Commands: the Bears, the Wolves, or the Leopards.\"");
		UcSay;
		gflags[007F] = true;
	labelFunc0444_040C:
		cmps("Wolf");
		UcMessage("\"It is hard to be a Knight who doth not fight well. I am useless on the battlefield, but by being Provisioner I can at least earn my keep! The Wolves have treated me well. Now if I were a Bear... well, all they can think of is Prowess.\"");
		UcSay;
		UI_remove_answer_0D("Wolf");
		var0006 = true;
	labelFunc0444_0423:
		cmps("Bear");
		UI_remove_answer_0D("Bear");
		var0007 = true;
		UcMessage("\"They are brutes! All they can think of are their incessant duels. The Bears fight only for glory -- but what about the Goblins? What about bandits on the road? Caladin and his Knights are too concerned with winning glory to worry about the true battles which face us.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Caladin", "duels", "nothing more"]);
	labelFunc0444_044E:
		cmps("Leopard");
		UI_remove_answer_0D("Leopard");
		if(!(gflags[0038] == true)) goto labelFunc0444_047B;
		if(!(gflags[0069] == false)) goto labelFunc0444_0474;
		UcMessage("\"That fool Marsten is a blight upon all that the Commands stood for... I believe he hath ruined the reputation of the Leopard Command for good.\"");
		UcSay;
		goto labelFunc0444_0478;
	labelFunc0444_0474:
		UcMessage("\"Well, that foolish leader of the Leopards is now dead. I wonder who will replace him?\"");
		UcSay;
	labelFunc0444_0478:
		goto labelFunc0444_047F;
	labelFunc0444_047B:
		UcMessage("\"The Leopards are not as bad as everyone says they are. They keep the Bears from ruining us! Lord Marsten hath ruled well here, and he is a Leopard. He hath no favorites among the Commands.\"");
		UcSay;
	labelFunc0444_047F:
		cmps("Caladin");
		UI_remove_answer_0D("Caladin");
		UcMessage("\"Caladin is not a bad sort, but his mind is mired in the past. All he sees is Prowess. Can he not see that we Monitorians must stop duelling amongst ourselves, and instead turn our attention outward? Caladin thinks that the Wolves hate the Bears, but the truth is that he cannot abide the plans of our leader, Brendann.\"");
		UcSay;
	labelFunc0444_0492:
		cmps("duels");
		UI_remove_answer_0D("duels");
		UcMessage("\"They waste too many hours at the List Fields, fighting any who will challenge them.\"");
		UcSay;
		if(!gflags[0048]) goto labelFunc0444_04B2;
		UcMessage("\"Luther is the worst! Thou didst hear him! He doth accuse me of being a traitor.\"");
		UcSay;
		goto labelFunc0444_04B6;
	labelFunc0444_04B2:
		UcMessage("\"Luther is the worst!\"");
		UcSay;
	labelFunc0444_04B6:
		cmps("walks in the woods");
		UI_remove_answer_0D("walks in the woods");
		if(!var0002) goto labelFunc0444_04D2;
		UcMessage("\"Oh, let us not discuss this again...\"");
		UcSay;
		goto labelFunc0444_0516;
	labelFunc0444_04D2:
		UI_push_answers_0E();
		var0002 = true;
		if(!gflags[004E]) goto labelFunc0444_04EB;
		UcMessage("\"It pains me that simply because I have this natural tendency, others would viciously gossip that I was conspiring with our enemy. I seldom venture far while I am alone and I take exceeding care, thou canst well believe me.\"");
		UcSay;
		UI_add_answer_0C("conspiring");
	labelFunc0444_04EB:
		UcMessage("\"I take long walks. Well, what is wrong with that, I ask thee? I especially like to visit sites of battles, looking for antique weaponry or armour.	I collect them. I collect many things.\"");
		UcSay;
		if(!(!var0008)) goto labelFunc0444_0500;
		UI_add_answer_0C(["battle sites"]);
	labelFunc0444_0500:
		UI_add_answer_0C("change subject");
		if(!((!gflags[004E]) && var0008)) goto labelFunc0444_0516;
		UI_pop_answers_0F();
	labelFunc0444_0516:
		cmps("change subject", "nothing more");
		UcMessage("\"Very well...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0444_0529:
		cmps("battle sites", "ruins");
		var0008 = true;
		UI_remove_answer_0D("battle sites");
		UI_remove_answer_0D("ruins");
		UcMessage("\"There must have been a great war here, in the days when the Daemons ruled the Serpent Isle. My walks have taken me deep into the most tangled woods, where I have found many mysteries -- ruins built of strange stone, artifacts made of brass, sometimes a skull or shattered weapon... and always, the Sign of the Serpent.\"");
		UcSay;
		UI_add_answer_0C("Sign of the Serpent");
	labelFunc0444_0551:
		cmps("Sign of the Serpent");
		UI_remove_answer_0D("Sign of the Serpent");
		UcMessage("\"Hast thou not wondered why our land is known as the Serpent Isle? Everywhere our ancestors went, they found the Sign of the Serpent -- in carvings, statuettes, throughout the many ancient ruins. Monitor itself was built on the site of an ancient ruin from the times of the Serpent.\"");
		UcSay;
	labelFunc0444_0564:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"They are an infestation! We have fought them since the moment our ancestors set foot on this island. We must destroy them if we are ever to be safe, but we cannot do this unless the Bears and Leopards are willing to listen to Brendann. We must track them to their village lair and slay them. And if a traitor doth exist, then we are doomed from the start...\"");
		UcSay;
	labelFunc0444_0577:
		cmps("conspiring");
		UI_remove_answer_0D("conspiring");
		UcMessage("\"Dost thou accuse me? I am an innocent man, and soon I shall present evidence of that fact! I have reasons of mine own to believe that someone among us is selling our secrets to the Goblins.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["reasons of mine own", "evidence", "nothing more"]);
	labelFunc0444_059E:
		cmps("reasons of mine own");
		UI_remove_answer_0D("reasons of mine own");
		UcMessage("\"There is someone else who takes long walks in the woods. I have never seen him clearly. He is very clever, and always dashes away into the forest before I can identify him.\"");
		UcSay;
		var000C = Func0992(Dupre, "@But was he Goblin or Man?@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc0444_05DD;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"He was not Goblin! They never travel in the woods except in war parties. Yet there was something in his gait that was not entirely Man-like, either.\"");
		UcSay;
		goto labelFunc0444_05E1;
	labelFunc0444_05DD:
		UcMessage("\"He could not have been Goblin, for they never walk in the woods alone. Therefore... I think he must have been the Monitorian traitor!\"");
		UcSay;
	labelFunc0444_05E1:
		cmps("evidence");
		UI_remove_answer_0D("evidence");
		UcMessage("\"Listen to this -- if there is a traitor, he must meet with the Goblins somewhere. I know of a place where the Goblins often gather. Perhaps I can find evidence there of who the traitor is. But of late, there have been too many Goblin patrols near the rendezvous. I have been unable to reach the place undetected.\"");
		UcSay;
		UI_add_answer_0C(["patrols", "rendezvous"]);
	labelFunc0444_0601:
		cmps("patrols");
		UI_remove_answer_0D("patrols");
		UcMessage("\"The Goblins have been thick in the woods north of Knight's Test for weeks now. They have been emboldened ever since they overran the guardtower west of Fawn. That is where they slew Astrid, the bastards!\"");
		UcSay;
	labelFunc0444_0614:
		cmps("rendezvous");
		UI_remove_answer_0D("rendezvous");
		UcMessage("\"The place is easy to find, for the Goblins are attracted to the ancient ruins of this Isle. In the midst of the great cypress woods north of Knight's Test, look for a strange black obelisk. This is the gathering place of the Goblin war parties, before they strike south.\"");
		UcSay;
		gflags[00C0] = true;
	labelFunc0444_062B:
		cmps("pumice");
		UI_remove_answer_0D("pumice");
		UcMessage("\"I recognize thy description! Such rocks doth come from the depths of the earth, where lava flows free and deadly gasses abound. Standarr the Blacksmith hath been to places such as these, on his Quests of Courage -- thou mightest acquire more information from him.\"");
		UcSay;
		gflags[0290] = true;
		gflags[00BA] = true;
	labelFunc0444_0646:
		cmps("slippers");
		UI_remove_answer_0D("slippers");
		UcMessage("\"The nearest place where decorative footwear like that would be worn is Sleeping Bull. Certainly, no one in Monitor would be caught dead wearing them!\"");
		UcSay;
	labelFunc0444_0659:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Must go now!@", 0x0000);
		Func097F(0xFFBC, "@Walk in Courage!@", 0x0002);
		goto labelFunc0444_0683;
	labelFunc0444_0680:
		goto labelFunc0444_01D6;
	labelFunc0444_0683:
		end_conv();
	labelFunc0444_0684:
		if(!(event == 0x0000)) goto labelFunc0444_0702;
		var000D = UI_die_roll_17(0x0001, 0x0005);
		if(!var0000) goto labelFunc0444_06FC;
		if(!(var000D == 0x0001)) goto labelFunc0444_06AF;
		var000E = "@Supplies?@";
	labelFunc0444_06AF:
		if(!(var000D == 0x0002)) goto labelFunc0444_06BF;
		var000E = "@Leather boots?@";
	labelFunc0444_06BF:
		if(!(var000D == 0x0003)) goto labelFunc0444_06CF;
		var000E = "@Finest goods here!@";
	labelFunc0444_06CF:
		if(!(var000D == 0x0004)) goto labelFunc0444_06DF;
		var000E = "@Best goods in Monitor!@";
	labelFunc0444_06DF:
		if(!(var000D == 0x0005)) goto labelFunc0444_06EF;
		var000E = "@Bedroll?@";
	labelFunc0444_06EF:
		UI_item_say_4D(0xFFBC, var000E);
		goto labelFunc0444_0702;
	labelFunc0444_06FC:
		Func097A(0xFFBC);
	labelFunc0444_0702:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0956 0x956 (var var0000);
extern Func084A 0x84A ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0988 0x988 (var var0000, var var0001);

Func0445 0x445 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_get_item_flag_A3(0xFFBB, 0x001C);
	var0003 = "I serve Lord British";
	var0004 = false;
	var0005 = false;
	var0006 = false;
	var0007 = "He is my friend";
	var0008 = false;
	var0009 = UI_get_item_flag_A3(Iolo, 0x0006);
	var000A = UI_get_item_flag_A3(Shamino, 0x0006);
	var000B = UI_get_item_flag_A3(Dupre, 0x0006);
	var000C = UI_is_dead_44(0xFFB4);
	var000D = "he";
	if(!UI_is_pc_female_6F()) goto labelFunc0445_0079;
	var000D = "she";
	labelFunc0445_0079:
		if(!(event == 0x0002)) goto labelFunc0445_0184;
		if(!gflags[0038]) goto labelFunc0445_0091;
		UI_run_schedule_B7(0xFFBB);
		goto labelFunc0445_0257;
	labelFunc0445_0091:
		if(!gflags[00B7]) goto labelFunc0445_0098;
		abrt();
	labelFunc0445_0098:
		var000E = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0445], 0x00C8);
		if(!(!UI_npc_nearby_3A(Dupre))) goto labelFunc0445_0183;
		var000E = UI_approach_avatar_BF(Dupre, 0x0064, 0x0028);
		if(!var000E) goto labelFunc0445_016A;
		var000F = UI_get_object_position_20(Dupre);
		var0010 = UI_create_new_object2_2D(0x00E4, [(var000F[0x0001] + 0x0001), (var000F[0x0002] - 0x0001), var000F[0x0003]]);
		var0011 = UI_create_new_object2_2D(0x00E4, [(var000F[0x0001] - 0x0001), (var000F[0x0002] - 0x0001), var000F[0x0003]]);
		UI_set_alignment_4A(var0010, 0x0000);
		UI_set_alignment_4A(var0011, 0x0000);
		UI_set_schedule_type_25(var0010, 0x0003);
		UI_set_schedule_type_25(var0011, 0x0003);
		UI_set_npc_id_BD(var0010, 0x000D);
		UI_set_npc_id_BD(var0011, 0x000D);
	labelFunc0445_016A:
		Func09AC(Dupre, Dupre, 0x0000, 0x0003);
		UI_set_schedule_type_25(Dupre, 0x0003);
	labelFunc0445_0183:
		abrt();
	labelFunc0445_0184:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFBB, 0x001D))) goto labelFunc0445_01E0;
		if(!gflags[0093]) goto labelFunc0445_01CE;
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"Thou hast ruined everything! With the current emotional and spiritual state of the city, the Goblins are certain to win this war against us!\"");
		UcSay;
		UcMessage("\"The problem lies with the Bears and Wolves -- their bickering weakens us. So I had a plan! The Leopards would rule, and I would be King.\"");
		UcSay;
		UcMessage("\"And with the miracle weapons in our hidden arsenal, not even the Goblins could have taken this city...\"");
		UcSay;
		UI_clear_item_flag_A5(0xFFBB, 0x001D);
		UI_reduce_health_87(0xFFBB, 0x0032, 0x0000);
		abrt();
		goto labelFunc0445_01E0;
	labelFunc0445_01CE:
		var000E = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0445_01E0:
		if(!(event == 0x0001)) goto labelFunc0445_0248;
		UI_item_say_4D(0xFE9C, "@Greetings, sir.@");
		0xFFBB;
		calle();
		if(!gflags[0038]) goto labelFunc0445_0232;
		UI_set_schedule_type_25(0xFFBB, 0x000F);
		Func097F(0xFFBB, "@What!@", 0x0002);
		0xFFBB;
		calle();
		var000E = UI_delayed_execute_usecode_array_02(0xFFBB, [0x23, 0x55, 0x0445], 0x0007);
		abrt();
	labelFunc0445_0232:
		Func097F(0xFFBB, "@Hello.@", 0x0002);
		UI_set_schedule_type_25(0xFFBB, 0x0003);
	labelFunc0445_0248:
		if(!(event == 0x0009)) goto labelFunc0445_0CC6;
		UI_run_schedule_B7(0xFFBB);
	labelFunc0445_0257:
		UI_clear_item_say_4E(0xFFBB);
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		if(!(!var0002)) goto labelFunc0445_02E8;
		var000E = [0xFF6A, 0xFFC1, 0xFFB7, 0xFFB3, 0xFFBB];
		enum();
	labelFunc0445_0285:
		for (var0014 in var000E with var0012 to var0013 atend labelFunc0445_029A);
		UI_revert_schedule_B4(var0014);
		goto labelFunc0445_0285;
	labelFunc0445_029A:
		UcMessage("\"Greetings, stranger. I am Lord Marsten. Thou hast come to this city at a grievous hour. We are here to entomb the ashes of this brave Pikeman Groat, as well as to mourn the loss of our Knight Champion.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFBB, 0x001C);
		Func094E(0xFFC1, "@Astrid was the finest Knight that Monitor ever had!@");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The Goblins ambushed her patrol. They slew all but one of the Pikemen, and took Astrid's body back to their camp -- to be feasted upon and used to make their sickening trophies, no doubt! When the reinforcements came, they were mere moments too late. They managed to rescue Groat but his injuries were too severe. Not even our healer Harnna could save him.\"");
		UcSay;
		Func094E(0xFF6A, "@Damn the Goblins! They should be exterminated...@");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What business dost thou have with me, stranger?\"");
		UcSay;
		UI_add_answer_0C(["Astrid", "Knight Champion"]);
		goto labelFunc0445_0341;
	labelFunc0445_02E8:
		if(!(gflags[002D] && (!gflags[00A5]))) goto labelFunc0445_0307;
		UcMessage("\"Oh, art thou bothering me again! No servant of Beast British is welcome here.\"");
		UcSay;
		UI_add_answer_0C(["I renounce Lord British", "I serve Lord British"]);
		goto labelFunc0445_03D6;
	labelFunc0445_0307:
		if(!gflags[0038]) goto labelFunc0445_0324;
		UcMessage("\"Didst thou come to ask me why I did betray my city? Ha! Any idiot can see the reason. With the current emotional and spiritual state of the city, the Goblins are certain to win this war against us! The foolish Bears and the cowardly Wolves are weakening us! They needed to be turned against each other so that the Leopard Command could assume their rightful leadership of Monitor. I had even devised a secret weapon to defend the city without the Bears or Wolves.\"");
		UcSay;
		UI_add_answer_0C(["foolish Bears", "cowardly Wolves", "secret weapon"]);
		goto labelFunc0445_03D6;
	labelFunc0445_0324:
		if(!gflags[0048]) goto labelFunc0445_0337;
		UcMessage("\"'Tis a pleasure to see thee, Knight ");
		UcMessage(var0001);
		UcMessage(". As the Lord of Monitor, I am always at thy service.\"");
		UcSay;
		goto labelFunc0445_0341;
	labelFunc0445_0337:
		UcMessage("\"Greetings, ");
		UcMessage(var0001);
		UcMessage(". What is thy business with me?\"");
		UcSay;
	labelFunc0445_0341:
		UI_add_answer_0C(["duties", "Goblins"]);
		if(!gflags[0048]) goto labelFunc0445_035B;
		UI_add_answer_0C("traitor");
	labelFunc0445_035B:
		if(!(gflags[003C] && (!gflags[002F]))) goto labelFunc0445_036D;
		UI_add_answer_0C("ask permission");
	labelFunc0445_036D:
		if(!(gflags[004A] && (!gflags[0048]))) goto labelFunc0445_037F;
		UI_add_answer_0C("Knighthood");
	labelFunc0445_037F:
		if(!(gflags[0036] && (!gflags[0038]))) goto labelFunc0445_0391;
		UI_add_answer_0C("accuse");
	labelFunc0445_0391:
		if(!(gflags[00A9] && (!gflags[0078]))) goto labelFunc0445_03A3;
		UI_add_answer_0C("enchanter");
	labelFunc0445_03A3:
		if(!((UI_get_schedule_type_24(0xFFBB) == 0x0007) && (!gflags[0038]))) goto labelFunc0445_03BD;
		UI_add_answer_0C("Hall of Monitor");
	labelFunc0445_03BD:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0445_03D6;
		UI_add_answer_0C("brown bottle");
	labelFunc0445_03D6:
		UI_add_answer_0C("bye");
	labelFunc0445_03DD:
		UcAsk;
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0445_0418;
		UcMessage("\"Leave me with that dirty bottle! It doth look to have been lying in the woods for weeks...\"");
		UcSay;
		Func097F(0xFFBB, "@'Sblood!@", 0x0000);
		abrt();
		goto labelFunc0445_0420;
	labelFunc0445_0418:
		UcMessage("\"I care not what thou didst find in the woods. 'Tis probably Goblin loot.\"");
		UcSay;
		UcMessage("\"There is no traitor in Monitor. Search thou not for evidence, for thou shalt not find it. Instead, help us to eradicate the Goblins!\"");
		UcSay;
	labelFunc0445_0420:
		cmps("I renounce Lord British");
		UI_remove_answer_0D(["I renounce Lord British", "I serve Lord British"]);
		UcMessage("\"Yes? Thou dost wish to say something to me?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I renounce Lord British and everything for which he stands. From this moment forward, I am his friend and servant no longer.\"");
		UcSay;
		UI_remove_npc_face1_08();
		if(!var0009) goto labelFunc0445_0471;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Avatar! I cannot believe thy words!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0445_0471:
		if(!var000A) goto labelFunc0445_0490;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"How could thee renounce thy rightful liege?\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0445_0490:
		if(!var000B) goto labelFunc0445_04AB;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Very well, Avatar. Do what thou must.\"");
		UcSay;
	labelFunc0445_04AB:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou must feel better to have purged thyself of that burden. Thou wilt now be accepted by all of Monitor.\"");
		UcSay;
		UcMessage("\"Who doth know? Perhaps one day thou couldst become a true knight of Monitor. But only if thou passest the Test of Knighthood.\"");
		UcSay;
		UI_add_answer_0C("Test of Knighthood");
		gflags[00A5] = true;
	labelFunc0445_04C5:
		cmps("I serve Lord British");
		UcMessage("\"Away with thee, foul servant of the Beast!\" ~\"Renounce thine allegiance with that cruel tyrant or feel a halberd in thy back as the pikemen escort thee from our fine town!\"");
		UcSay;
		abrt();
	labelFunc0445_04D2:
		cmps("Astrid");
		UI_remove_answer_0D("Astrid");
		UcMessage("\"Canst thou imagine the horrors of being devoured alive?! She was a masterful warrior, and deserved a finer death than this...\"");
		UcSay;
		if(!(!gflags[0032])) goto labelFunc0445_0503;
		Func094E(0xFF6A, "@Understand, stranger, that Marsten and this woman	were bedmates.@");
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C("bedmates");
	labelFunc0445_0503:
		UcMessage("\"There is none to replace her, and certainly none able to reclaim the Helm of Monitor from the Goblins.\"");
		UcSay;
		UI_add_answer_0C("Helm of Monitor");
	labelFunc0445_050E:
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"'Tis a sacred item once belonging to the Goblins. It was what gave their ancient leader, Gurnordir, the power to build the Goblin Horde.\"");
		UcSay;
		UcMessage("\"When our forefathers killed Gurnordir, the Helm was claimed for Monitor. It hath since been worn by the Knight Champion.\"");
		UcSay;
		UI_add_answer_0C("Gurnordir");
		if(!(!var0008)) goto labelFunc0445_053A;
		UI_add_answer_0C("Knight Champion");
	labelFunc0445_053A:
		if(!(!UI_get_item_flag_A3(0xFEF7, 0x0004))) goto labelFunc0445_0553;
		UcMessage("\"We need to reclaim it! Else, the Goblins shall again build their Horde and invade this great city.\"");
		UcSay;
		UI_add_answer_0C("raid the Goblins");
	labelFunc0445_0553:
		cmps("Gurnordir");
		UI_remove_answer_0D("Gurnordir");
		UcMessage("\"If thou dost wish to learn more of this evil race and its history, speak to Templar. He is an expert on the subject.\"");
		UcSay;
		gflags[00A4] = true;
	labelFunc0445_056A:
		cmps("raid the Goblins");
		UI_remove_answer_0D("raid the Goblins");
		if(!gflags[0048]) goto labelFunc0445_059F;
		UcMessage("\"We must smash the Goblins! Their chieftain must be slain, the Helm recovered, and their village pillaged.\"");
		UcSay;
		if(!gflags[0044]) goto labelFunc0445_0598;
		UcMessage("\"Certainly, thou didst force that cretin Simon to give thee some clue before his execution!\"");
		UcSay;
		UcMessage("\"The Goblins shall be defenseless if thou dost strike now. Take only thy companions, and surprise them, for a larger force would be seen by their scouts.\"");
		UcSay;
		UcMessage("\"Go now, and regain the Helm!\"");
		UcSay;
		goto labelFunc0445_059C;
	labelFunc0445_0598:
		UcMessage("\"But no one knows where the Goblin village lies. 'Tis an evil mystery...\"");
		UcSay;
	labelFunc0445_059C:
		goto labelFunc0445_05A3;
	labelFunc0445_059F:
		UcMessage("\"I see no reason to discuss this matter with someone who is not even a Knight.\"");
		UcSay;
	labelFunc0445_05A3:
		cmps("bedmates");
		UI_remove_answer_0D("bedmates");
		UcMessage("\"Yes, Astrid and I were bedmates. I will not say we were lovers. For we were also warriors and comrades in arms. And we knew that any time either one of us took the battlefield might have been the last time we could have seen each other. I loved her, but we were not in love. I shall always remember her.\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"As shall I....\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"What was that thou saidest, Brendann!\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"What??! Oh, nothing, merely mentioning that we shall all miss her presence. She was a fine warrior.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0445_05EC:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"I vow to war upon them until the end of the world! There shall be no end to my vengeance upon the Goblins.\"");
		UcSay;
		UcMessage("\"They have robbed, pillaged, and murdered our people since our ancestors came here centuries ago. They delight in kidnapping our women and eating them alive!\"");
		UcSay;
		UcMessage("\"In the end, 'tis either Men or Goblins -- both of us cannot dwell here.\"");
		UcSay;
		UI_add_answer_0C("ancestors");
	labelFunc0445_060E:
		cmps("ancestors");
		UI_remove_answer_0D("ancestors");
		UcMessage("\"Our people fled from their homeland when an evil tyrant united the kingdoms, and sought to force his philosophy upon them.\"");
		UcSay;
		UcMessage("\"So we set sail from Sosaria, and -- led beyond the Serpent Pillars by a mage named Erstam -- we came to the Serpent Isle.\"");
		UcSay;
		UcMessage("\"This land was deserted then, settled only by Goblins and covered with the ruins of a mysterious ancient Serpentine civilization.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["tyrant", "Sosaria", "ruins", "Erstam", "change subject"]);
	labelFunc0445_0643:
		cmps("tyrant");
		UI_remove_answer_0D("tyrant");
		if(!((gflags[00A5] == false) && (gflags[002D] == false))) goto labelFunc0445_06A0;
		UcMessage("\"He was an evil man, and Knight and Mage alike rebelled against his tyranny. So our ancestors fled here, and founded the Three Cities.\"");
		UcSay;
		UcMessage("\"British was his name. Lord British, he called himself. But we call him Beast British!\"");
		UcSay;
		if(!(Func0956([var0003, "say nothing"]) == var0003)) goto labelFunc0445_069D;
		UcMessage("\"What?! I should have known that evil tyrant would yet live! Beware -- no servant of the Beast shall be aided by any Knight of Monitor!\"");
		UcSay;
		gflags[002D] = true;
		if(!gflags[00B7]) goto labelFunc0445_0690;
		UI_revert_schedule_B4(0xFFBB);
	labelFunc0445_0690:
		Func097F(0xFFBB, "@Begone!@", 0x0000);
		abrt();
	labelFunc0445_069D:
		goto labelFunc0445_06A4;
	labelFunc0445_06A0:
		UcMessage("\"Thou dost agree, since thou dost not speak well of the Beast! Aye, a tyrant if there ever were one.\"");
		UcSay;
	labelFunc0445_06A4:
		UI_add_answer_0C(["Three Cities", "Beast British"]);
	labelFunc0445_06B1:
		cmps("Three Cities");
		UI_remove_answer_0D("Three Cities");
		UcMessage("\"Three great cities were founded by those who fled the tyrant: Moonshade, Fawn and Monitor.\"");
		UcSay;
		UcMessage("\"Moonshade is the City of Mages. Fawn is a city that worships Beauty. As for Monitor, 'tis the city thou art in now. 'Tis a city based on Courage.\"");
		UcSay;
	labelFunc0445_06C8:
		cmps("Beast British");
		UI_remove_answer_0D("Beast British");
		UcMessage("\"That tyrant Beast British tried to force his bent philosophical 'virtues' upon our ancestors. As magic depends greatly upon illusion, the Moon mages dismissed the value of Truth. As worshippers of Beauty, the people of Fawn saw little worth in unconditional Love. We of Monitor feel that Courage stands above his other virtues.\"");
		UcSay;
	labelFunc0445_06DB:
		cmps("Sosaria");
		UI_remove_answer_0D("Sosaria");
		UcMessage("\"This new land was originally to be called New Sosaria, but it became known as the Serpent Isle upon the discovery of various ruins and mysterious ancient serpent writing. We know little else of the race that left its mark here.\"");
		UcSay;
	labelFunc0445_06EE:
		cmps("ruins");
		UI_remove_answer_0D("ruins");
		UcMessage("\"Thou dost see them across the land, left behind by the evil creatures which once dwelled in this place.\"");
		UcSay;
		UcMessage("\"That fellow Krayg could tell thee more. He is most fond of taking long walks in distant places, and often sees strange sights.\"");
		UcSay;
		gflags[00A6] = true;
	labelFunc0445_0709:
		cmps("Erstam");
		UI_remove_answer_0D("Erstam");
		UcMessage("\"He was a wild-eyed man, driven by his thirst for knowledge and his need for the freedom to pursue it. 'Tis said that in his studies and experimentations he did discover things that drove him insane. Others say it was the loss of a woman who was his true love that drove him mad. Today he is known as the Mad Mage. And his name is most often spoken in hushed whispers.\"");
		UcSay;
	labelFunc0445_071C:
		cmps("change subject");
		UI_remove_answer_0D("change subject");
		UcMessage("\"Certainly...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0445_0733:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the Lord of Monitor, the City of Knights.\"");
		UcSay;
		UcMessage("\"There are three bodies of Knights in the city. No Command is better than another, for all warriors are equal.\"");
		UcSay;
		UcMessage("\"As the leader of the Leopards, this is my year to rule Monitor.\"");
		UcSay;
		if(!(!var0005)) goto labelFunc0445_075C;
		UI_add_answer_0C("Leopards");
	labelFunc0445_075C:
		UI_add_answer_0C("Command");
	labelFunc0445_0763:
		cmps("Leopards");
		UI_remove_answer_0D("Leopards");
		var0005 = true;
		UcMessage("\"We are the peacemakers. The Bears and the Wolves always quarrel, but we stop them from wringing each others' necks.\"");
		UcSay;
		UcMessage("\"We bring balance to the community. 'Tis not always glorious to be a Leopard, but we are proud to do our duty.\"");
		UcSay;
		if(!(!var0006)) goto labelFunc0445_078C;
		UI_add_answer_0C("Wolves");
	labelFunc0445_078C:
		if(!(!var0004)) goto labelFunc0445_079A;
		UI_add_answer_0C("Bears");
	labelFunc0445_079A:
		cmps("Command");
		UI_remove_answer_0D("Command");
		UcMessage("\"Every citizen of the town must become a Knight of Monitor, or be banished when they reach the age of	fifteen.\"");
		UcSay;
		UcMessage("\"The Knights are organized into three war bands, which are known as Commands -- the Bears, the Wolves, and the Leopards.\"");
		UcSay;
		UcMessage("\"As thou hast no doubt noted, our tattoos mark us according to our Command.\"");
		UcSay;
		if(!(!var0006)) goto labelFunc0445_07C3;
		UI_add_answer_0C("Wolves");
	labelFunc0445_07C3:
		if(!(!var0004)) goto labelFunc0445_07D1;
		UI_add_answer_0C("Bears");
	labelFunc0445_07D1:
		if(!(!var0005)) goto labelFunc0445_07DF;
		UI_add_answer_0C("Leopards");
	labelFunc0445_07DF:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		var0004 = true;
		UcMessage("\"The Bears have saved this city again and again. They never forget that we live under siege, that the Goblins could always attack.\"");
		UcSay;
		UcMessage("\"The city walls were constructed by the Bears. They are tough, strong, powerful warriors. Caladin is their lord.\"");
		UcSay;
	labelFunc0445_07FA:
		cmps("Wolves");
		var0006 = true;
		UI_remove_answer_0D("Wolves");
		UcMessage("\"The prosperity of Monitor is due to the foresight of the Wolves. They have forced us to reach out to our fellow Man.\"");
		UcSay;
		UcMessage("\"The Wolves repaired the ancient highway, and added new roads to link the Three Cities. They built the guard towers.\"");
		UcSay;
		UcMessage("\"Brendann is their lord. The Wolves are smart, preferring cunning over brute force.\"");
		UcSay;
	labelFunc0445_0819:
		cmps("Knight Champion");
		UI_remove_answer_0D("Knight Champion");
		var0008 = true;
		UcMessage("\"Knight Champion is the most revered title in Monitor -- more than Lord! To be Knight Champion is to be the finest warrior in the land.\"");
		UcSay;
		UcMessage("\"To hone their skills, our Knights meet daily on the List Field to spar. Thus, they demonstrate their martial prowess.\"");
		UcSay;
		UcMessage("\"From success in tournament and in battle, the Knight Champion is determined. He or she is privileged to wear the Helm of Monitor.\"");
		UcSay;
		UI_add_answer_0C("List Field");
	labelFunc0445_083F:
		cmps("List Field");
		UI_remove_answer_0D("List Field");
		UcMessage("\"Thou canst hardly miss the List Field -- 'tis the walled field in the south part of town.\"");
		UcSay;
		UcMessage("\"There is no shortage of opponents, especially if thou dost go there in the late morning or afternoon.\"");
		UcSay;
		if(!(!gflags[0048])) goto labelFunc0445_0868;
		UcMessage("\"Even strangers like thyself are welcome to spar. 'Tis good preparation for the Test of Knighthood.\"");
		UcSay;
		UI_add_answer_0C("Test of Knighthood");
	labelFunc0445_0868:
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		if(!var000C) goto labelFunc0445_0884;
		UcMessage("\"Thou hast done us a valuable service by rooting out that miserable traitor, Simon. Although in the true sense of the word, he was merely a loyal Goblin, not a traitor... Bah! A pox on all Goblins!\"");
		UcSay;
		goto labelFunc0445_08CC;
	labelFunc0445_0884:
		if(!UI_get_item_flag_A3(0xFFB8, 0x0004)) goto labelFunc0445_08B0;
		UcMessage("\"Thou hast slain the traitor, Knight! Well done!");
		UcSay;
		if(!UI_get_item_flag_A3(Shmed, 0x0004)) goto labelFunc0445_08A9;
		UcMessage("\"Lydia must have been part of Shmed's secret conspiracy. But that no longer matters -- both of the Goblin spies are dead!\"");
		UcSay;
		goto labelFunc0445_08AD;
	labelFunc0445_08A9:
		UcMessage("\"The Goblins shall no more steal our secrets, eh!\"");
		UcSay;
	labelFunc0445_08AD:
		goto labelFunc0445_08CC;
	labelFunc0445_08B0:
		if(!UI_get_item_flag_A3(Shmed, 0x0004)) goto labelFunc0445_08C8;
		UcMessage("\"I must apologize to thee for the attack upon thee by the traitor, Shmed.\"");
		UcSay;
		UcMessage("\"I did not believe that there was a traitor, but this evidence proves it.\"");
		UcSay;
		goto labelFunc0445_08CC;
	labelFunc0445_08C8:
		UcMessage("\"I do not care for this talk of traitors. Who would betray us to the Goblins? No man could be that insane.\"");
		UcSay;
	labelFunc0445_08CC:
		cmps("Test of Knighthood");
		UI_remove_answer_0D("Test of Knighthood");
		UcMessage("\"One cannot be born a Knight, nor can the title be bestowed for money or influence. Only a worthy warrior can become a Knight.\"");
		UcSay;
		UcMessage("\"To test the worthiness of those who sought Knighthood, a special dungeon was prepared. If one can survive Knight's Test, then one is ready for Knighthood.\"");
		UcSay;
		UcMessage("\"'Tis an honor to become a Knight of Monitor, yet 'tis also a heavy responsibility. There are many enemies in the land.\"");
		UcSay;
		UI_add_answer_0C(["Knight's Test", "responsibility"]);
	labelFunc0445_08F4:
		cmps("Knight's Test");
		UI_remove_answer_0D("Knight's Test");
		UcMessage("\"The dungeon lies north of town, in the mountains. At the entrance, a Knight named Shmed awaits the hopeful warriors.\"");
		UcSay;
		UcMessage("\"He can explain the rules of the Test to thee, or thou couldst speak with Caladin. 'Tis Caladin's duty to instruct Knight candidates.\"");
		UcSay;
		if(!(!gflags[003C])) goto labelFunc0445_0915;
		Func084A();
	labelFunc0445_0915:
		cmps("responsibility");
		UI_remove_answer_0D("responsibility");
		UcMessage("\"One cannot shirk one's responsibilities after becoming a Knight. Thy Command might call thee to Tower duty, or to scout the Goblins.\"");
		UcSay;
		UcMessage("\"There is nothing worse than deserting thy Command. In times of crisis, thy place is here in Monitor.\"");
		UcSay;
		UcMessage("\"For instance, young Knight Wilfred hath left Monitor to investigate the strange death of his father. Such nonsense! He is needed here, with his brother Knights.\"");
		UcSay;
	labelFunc0445_0930:
		cmps("ask permission");
		UI_remove_answer_0D("ask permission");
		Func084A();
	labelFunc0445_0942:
		cmps("Knighthood");
		UI_remove_answer_0D("Knighthood");
		UcMessage("\"Congratulations! Thou dost not even need to tell me. I can see that thou hast triumphed in the dungeon.\"");
		UcSay;
		if(!(!(gflags[007E] && (gflags[003E] && gflags[0091])))) goto labelFunc0445_0968;
		UcMessage("\"Now thou must prepare for thy banquet, at which thou wilt become a Knight of Monitor.\"");
		UcSay;
	labelFunc0445_0968:
		if(!(!gflags[003E])) goto labelFunc0445_0973;
		UcMessage("\"Thou wouldst be a poor Knight without the Mark. Seek out Lydia, for she will give thee the Tattoo of Knighthood.\"");
		UcSay;
	labelFunc0445_0973:
		if(!(!gflags[007E])) goto labelFunc0445_0982;
		UcMessage("\"In the dungeon, thou didst slay the animal which the Ashes of Gurnordir did send to thee.\"");
		UcSay;
		UcMessage("\"Now bring the animal's body to Cellia the Furrier. From the carcass, she shall make thy Cloak of Knighthood.\"");
		UcSay;
	labelFunc0445_0982:
		if(!(!gflags[0091])) goto labelFunc0445_0991;
		UcMessage("\"The traditional meal of the banquet is a stew made from the meat of the animal thou didst slay.\"");
		UcSay;
		UcMessage("\"Bring the meat to Lucilla in the pub, and she shall prepare the feast.\"");
		UcSay;
	labelFunc0445_0991:
		if(!(gflags[003E] && (gflags[007E] && gflags[0091]))) goto labelFunc0445_09A6;
		UcMessage("\"Thou art ready, young Knight! Go to the banquet hall in one hour. I shall meet thee there.\"");
		UcSay;
		goto labelFunc0445_09AA;
	labelFunc0445_09A6:
		UcMessage("\"When thou hast finished thy work, then thy knighting can occur.\"");
		UcSay;
	labelFunc0445_09AA:
		cmps("accuse");
		UI_remove_answer_0D("accuse");
		UcMessage("\"What art thou talking about? Thou dost know nothing! Leave at once, or I shall call the Pikemen!\"");
		UcSay;
		Func097F(0xFFBB, "@Leave!@", 0x0000);
		abrt();
	labelFunc0445_09CA:
		cmps("enchanter");
		UI_remove_answer_0D("enchanter");
		if(!(!gflags[00AA])) goto labelFunc0445_0A0E;
		UcMessage("\"It was most disrespectful, the way that enchanter did interrupt our memorial service. The white-haired wizard appeared on top of the Cremator, in the most reverent part of the ceremony!\"");
		UcSay;
		UcMessage("\"I ordered him jailed. We are very strict here in Monitor.\"");
		UcSay;
		var0015 = Func0992(0x0001, (("@Could this be our friend Iolo, " + var0000) + "?@"), "@Could this be my friend Iolo?", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then thou shouldst visit the criminal at jail. We have our hands full in this town with the Goblins and we do not need such pranksters in Monitor!\"");
		UcSay;
		goto labelFunc0445_0AFD;
	labelFunc0445_0A0E:
		if(!(!gflags[00BD])) goto labelFunc0445_0A98;
		UcMessage("\"I understand thou hast spoken with this villain.\"");
		UcSay;
		if(!(var0007 == Func0956([var0007, "say nothing"]))) goto labelFunc0445_0A98;
		UcMessage("\"Then explain to me thy friend's actions. Is he a sorcerer?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0445_0A3E;
		UcMessage("\"Then he can remain in jail until he rots. I have no love of mages. I will not abide their pranks under any circumstances.\"");
		UcSay;
		abrt();
		goto labelFunc0445_0A98;
	labelFunc0445_0A3E:
		UcMessage("\"Then how did he appear in the middle of the funeral? Doth he fly?\"");
		UcSay;
		var0016 = Func0956(["@Yes, he does.@", "@He was hit by lightning.@", "@I do not know.@"]);
		if(!(var0016 == "@Yes, he does.@")) goto labelFunc0445_0A6B;
		Func097F(0xFFBB, "@Bah!@", 0x0000);
		abrt();
	labelFunc0445_0A6B:
		if(!(var0016 == "@I do not know.@")) goto labelFunc0445_0A79;
		UcMessage("\"Well, these are mysterious times. Strange occurrences have become usual...\"");
		UcSay;
	labelFunc0445_0A79:
		if(!(var0016 == "@He was hit by lightning.@")) goto labelFunc0445_0A98;
		if(!gflags[004C]) goto labelFunc0445_0A90;
		UcMessage("\"I see! And the urn which thou didst return to Caladin -- it was exchanged for thy friend!\"");
		UcSay;
		goto labelFunc0445_0A94;
	labelFunc0445_0A90:
		UcMessage("\"Indeed. The storms have been known to magically displace their victims.\"");
		UcSay;
	labelFunc0445_0A94:
		gflags[00BD] = true;
	labelFunc0445_0A98:
		if(!gflags[0048]) goto labelFunc0445_0AF1;
		if(!gflags[00CD]) goto labelFunc0445_0AB8;
		UcMessage("\"Art thou daft? I have already given thee the key. Thy friend is locked in the jail. It is in the northeast part of town.\"");
		UcSay;
		Func097F(0xFFBB, "@Free thy friend!@", 0x0000);
		abrt();
		goto labelFunc0445_0AEE;
	labelFunc0445_0AB8:
		UcMessage("\"If thou wilt vouch for thy friend's future behavior, then I shall let him go free.\"");
		UcSay;
		if(!Func0955()) goto labelFunc0445_0AEA;
		UcMessage("\"Very well. Keep thine eye on him. We do not want people popping in and out of our city like this!\"");
		UcSay;
		UcMessage("\"Here is the key to thy friend's jail cell. Set him free.\"");
		UcSay;
		var000E = Func099B(0xFE9C, 0x0001, 0x0281, 0x0068, 0x0000, 0x0000, true);
		gflags[00CD] = true;
		goto labelFunc0445_0AEE;
	labelFunc0445_0AEA:
		UcMessage("\"Then he must remain in his cell.\"");
		UcSay;
	labelFunc0445_0AEE:
		goto labelFunc0445_0AFD;
	labelFunc0445_0AF1:
		UcMessage("\"If only thou wert a Knight! Then I could let thee vouch for thy friend, and let him free.\"");
		UcSay;
		UcMessage("\"But thou art merely a stranger here...\"");
		UcSay;
		gflags[00B5] = true;
	labelFunc0445_0AFD:
		cmps("Hall of Monitor");
		UI_remove_answer_0D("Hall of Monitor");
		UcMessage("\"This is a magnificent building. It serves as both a seat of government where important meetings are held, and as a museum of sorts.\"");
		UcSay;
		UI_add_answer_0C(["meetings", "museum"]);
	labelFunc0445_0B1D:
		cmps("meetings");
		UI_remove_answer_0D("meetings");
		UcMessage("\"Spektor, Caladin, Brendann and myself meet at noon every day to make all the decisions involved in ruling the town.\"");
		UcSay;
	labelFunc0445_0B30:
		cmps("museum");
		UI_remove_answer_0D("museum");
		UcMessage("\"There are many fine exhibits in our museum. Thou shouldst especially note the artifacts captured from the Goblins...\"");
		UcSay;
		UcMessage("\"Many of the artifacts are crafted from the bones of defeated Knights, I am certain. And the drum -- I think the skin across the top is human!\"");
		UcSay;
		var0015 = Func0992(Iolo, "@I find this discussion disgusting.@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh, show courage! Thou dost look like thou mightest lose thy last meal!\"");
		UcSay;
	labelFunc0445_0B62:
		cmps("foolish Bears");
		UI_remove_answer_0D("foolish Bears");
		UcMessage("\"The Bear Command would have hibernated safe within the walls of the city, and would never have seen the danger until the Goblin hordes were climbing over our walls.\"");
		UcSay;
	labelFunc0445_0B75:
		cmps("cowardly Wolves");
		UI_remove_answer_0D("cowardly Wolves");
		UcMessage("\"The Wolf Command would have never remained here this long. They would have pulled up their stakes and gone roaming the day we had to fight to keep this place. Once on the run they would have been cut down like dogs!\"");
		UcSay;
	labelFunc0445_0B88:
		cmps("secret weapon");
		UI_remove_answer_0D("secret weapon");
		UcMessage("\"I had learned of a weapon unlike any that hath ever been seen in this world. A substance that could change the face of war forever! The substance I would have used is well hidden. And thou shalt never find it. Ha!\"");
		UcSay;
	labelFunc0445_0B9B:
		cmps("bye");
		if(!(!gflags[0032])) goto labelFunc0445_0CA7;
		UcMessage("\"But why hast thou come to our town? What is thy business here?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC1, 0x0000);
		UcMessage("\"Perhaps ");
		UcMessage(var000D);
		UcMessage(" is a spy for the Goblins!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Now, I do not agree with all this talk of a spy in our midst. Do not let these rumors divide our city, Caladin.\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"Yet there was that other suspicious stranger, the fat sage...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Whom I threw out of town...\"");
		UcSay;
		UI_show_npc_face1_06(0xFF6A, 0x0000);
		UcMessage("\"And that scholar -- a woman with fine bone structure, but a little too old to pleasure me...\"");
		UcSay;
		UI_remove_npc_face1_08();
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc0445_0C1C;
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"Could he be speaking of Iolo's wife, the good lady Gwenno?\"");
		UcSay;
	labelFunc0445_0C1C:
		UI_show_npc_face1_06(0xFFC1, 0x0000);
		UcMessage("\"And do not forget the enchanter who appeared in the midst of the funeral services for our deceased Pikemen!\"");
		UcSay;
		UI_remove_npc_face1_08();
		gflags[00A9] = true;
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(0xFFBB, 0x0000);
		UcMessage("\"Warriors, be still! There is no spy in Monitor, and I refuse to hear more of this!\"");
		UcSay;
		gflags[0032] = true;
		Func097F(0xFFBB, "@There is no spy!@", 0x0000);
		Func097F(0xFFC1, "@I am not convinced...@", 0x0004);
		Func097F(0xFF6A, "@Nor I!@", 0x0008);
		UI_set_schedule_type_25(0xFFBB, 0x0014);
		UI_set_schedule_type_25(0xFFC1, 0x0014);
		UI_set_schedule_type_25(0xFF6A, 0x0014);
		var000E = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0445]);
		goto labelFunc0445_0CBF;
	labelFunc0445_0CA7:
		Func097F(0xFE9C, "@Good day!@", 0x0000);
		Func097F(0xFFBB, "@Certainly...@", 0x0002);
	labelFunc0445_0CBF:
		goto labelFunc0445_0D4F;
	labelFunc0445_0CC2:
		goto labelFunc0445_03DD;
	labelFunc0445_0CC5:
		end_conv();
	labelFunc0445_0CC6:
		if(!(event == 0x0000)) goto labelFunc0445_0E70;
		if(!gflags[0038]) goto labelFunc0445_0D20;
		var0017 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0017 == 0x0001)) goto labelFunc0445_0CF5;
		UI_item_say_4D(0xFFBB, "@Damn that Avatar!@");
	labelFunc0445_0CF5:
		if(!(var0017 == 0x0002)) goto labelFunc0445_0D09;
		UI_item_say_4D(0xFFBB, "@Never trust a Goblin!@");
	labelFunc0445_0D09:
		if(!(var0017 == 0x0003)) goto labelFunc0445_0D1D;
		UI_item_say_4D(0xFFBB, "@I ruled this town!@");
	labelFunc0445_0D1D:
		goto labelFunc0445_0E70;
	labelFunc0445_0D20:
		var0018 = [0xFFC1];
		enum();
	labelFunc0445_0D2A:
		for (var001B in var0018 with var0019 to var001A atend labelFunc0445_0D4F);
		if(!(!UI_npc_nearby_3A(var001B))) goto labelFunc0445_0D4C;
		var0018 = Func0988(var001B, var0018);
	labelFunc0445_0D4C:
		goto labelFunc0445_0D2A;
	labelFunc0445_0D4F:
		if(!(var0018 == [])) goto labelFunc0445_0D5A;
		abrt();
	labelFunc0445_0D5A:
		UI_clear_item_say_4E(0xFFBB);
		var0015 = var0018[UI_get_random_00(UI_get_array_size_73(var0018))];
		UI_clear_item_say_4E(var0015);
		var001C = UI_get_random_00(0x0006);
		if(!(var001C == 0x0001)) goto labelFunc0445_0DA3;
		UI_item_say_4D(0xFFBB, "@We need law and order!@");
		Func097F(var0015, "@Attack the Goblins!@", 0x0003);
	labelFunc0445_0DA3:
		if(!(var001C == 0x0002)) goto labelFunc0445_0DB7;
		UI_item_say_4D(0xFFBB, "@Calm yourselves.@");
	labelFunc0445_0DB7:
		if(!(var001C == 0x0003)) goto labelFunc0445_0DFD;
		if(!UI_get_item_flag_A3(0xFEF7, 0x0004)) goto labelFunc0445_0DE7;
		UI_item_say_4D(var0015, "@The Goblins are no threat.@");
		Func097F(0xFFBB, "@I told thee so.@", 0x0003);
		goto labelFunc0445_0DFD;
	labelFunc0445_0DE7:
		UI_item_say_4D(var0015, "@The Goblins are pressing south!@");
		Func097F(0xFFBB, "@Do not be alarmed.@", 0x0003);
	labelFunc0445_0DFD:
		if(!(var001C == 0x0004)) goto labelFunc0445_0E1D;
		UI_item_say_4D(0xFFBB, "@I am in charge here!@");
		Func097F(var0015, "@Yes, milord.@", 0x0003);
	labelFunc0445_0E1D:
		if(!(var001C == 0x0005)) goto labelFunc0445_0E5C;
		if(!gflags[0044]) goto labelFunc0445_0E46;
		UI_item_say_4D(0xFFBB, "@The traitor is dead.@");
		Func097F(var0015, "@Was he working alone?@", 0x0002);
		goto labelFunc0445_0E5C;
	labelFunc0445_0E46:
		UI_item_say_4D(0xFFBB, "@There is no traitor.@");
		Func097F(var0015, "@Only a rumor.@", 0x0002);
	labelFunc0445_0E5C:
		if(!(var001C == 0x0006)) goto labelFunc0445_0E70;
		UI_item_say_4D(0xFFBB, "@Listen to me!@");
	labelFunc0445_0E70:
		return;
}
// externs
extern Func091C 0x91C ();
extern var Func0954 0x954 ();
extern Func07D2 0x7D2 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0956 0x956 (var var0000);
extern Func0845 0x845 ();
extern Func0846 0x846 ();
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0446 0x446 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_object_position_20(item);
	if(!((var0000[0x0001] >= 0x0432) && ((var0000[0x0001] <= 0x0439) && ((var0000[0x0002] >= 0x03E4) && ((var0000[0x0002] <= 0x03EB) && (var0000[0x0003] < 0x0005)))))) goto labelFunc0446_0045;
	Func091C();
	abrt();
	labelFunc0446_0045:
		var0001 = Func0954();
		if(!(event == 0x0007)) goto labelFunc0446_0065;
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0446_0065:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFBA) != 0x000F))) goto labelFunc0446_014F;
		var0002 = UI_get_object_position_20(0xFFBA);
		if(!(gflags[0054] && ((UI_get_schedule_type_24(0xFFBA) == 0x000E) && ((var0002[0x0001] > 0x042F) && ((var0002[0x0001] < 0x043F) && ((var0002[0x0002] > 0x0A50) && (var0002[0x0002] < 0x0A5F))))))) goto labelFunc0446_0107;
		0xFFBA;
		calle();
		UI_set_schedule_type_25(0xFFBA, 0x000F);
		Func097F(0xFFBA, "@Yes, love?@", 0x0002);
		var0000 = UI_delayed_execute_usecode_array_02(0xFFBA, [0x23, 0x55, 0x02E6], 0x000A);
		UI_play_music_39(0x001C, Func09A0(0x0005, 0x0001));
		goto labelFunc0446_014F;
	labelFunc0446_0107:
		UI_item_say_4D(0xFE9C, "@Miss!@");
		0xFFBA;
		calle();
		if(!UI_is_pc_female_6F()) goto labelFunc0446_012D;
		Func097F(0xFFBA, "@Yes, dearie?@", 0x0002);
		goto labelFunc0446_0139;
	labelFunc0446_012D:
		Func097F(0xFFBA, "@Yes, handsome?@", 0x0002);
	labelFunc0446_0139:
		Func097F(0xFFBA, "Hello.", 0x0002);
		UI_set_schedule_type_25(0xFFBA, 0x0003);
	labelFunc0446_014F:
		if(!(event == 0x0009)) goto labelFunc0446_07D5;
		UI_run_schedule_B7(0xFFBA);
		UI_clear_item_say_4E(0xFFBA);
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		if(!(gflags[0054] && (UI_get_schedule_type_24(0xFFBA) == 0x000E))) goto labelFunc0446_0199;
		UcMessage("\"Oh, darling! Let us meet in my bedroom...\"");
		UcSay;
		Func097F(0xFFBA, "@I am so sleepy...@", 0x0000);
		UI_run_schedule_B7(0xFFBA);
		abrt();
	labelFunc0446_0199:
		if(!(!UI_get_item_flag_A3(0xFFBA, 0x001C))) goto labelFunc0446_01E5;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_01B6;
		UcMessage("\"Forgive my boldness, but I must say that thou hast a fine build, milord! Surely, thou hast overcome many foes with the powerful thrust of thy weapon...\"");
		UcSay;
		goto labelFunc0446_01BA;
	labelFunc0446_01B6:
		UcMessage("\"What can I do for thee, dear?\"");
		UcSay;
	labelFunc0446_01BA:
		if(!UI_npc_nearby_3A(0xFFB3)) goto labelFunc0446_01D4;
		Func094E(0xFFB3, "@I do hope that I am not interrupting...@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc0446_01D4:
		UcMessage("\"My name is Lucilla. Is there anything I can do for thee? Anything at all?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFBA, 0x001C);
		goto labelFunc0446_01E9;
	labelFunc0446_01E5:
		UcMessage("\"Hello again!\"");
		UcSay;
	labelFunc0446_01E9:
		UI_add_answer_0C(["duties"]);
		if(!Func0942(0xFFB3)) goto labelFunc0446_0203;
		UI_add_answer_0C("interrupting");
	labelFunc0446_0203:
		if(!gflags[0053]) goto labelFunc0446_0210;
		UI_add_answer_0C("rendezvous");
	labelFunc0446_0210:
		if(!gflags[008F]) goto labelFunc0446_021D;
		UI_add_answer_0C("Andral");
	labelFunc0446_021D:
		if(!gflags[0092]) goto labelFunc0446_022A;
		UI_add_answer_0C("Spektor");
	labelFunc0446_022A:
		if(!(gflags[009C] && (!gflags[0291]))) goto labelFunc0446_023C;
		UI_add_answer_0C("lost ring");
	labelFunc0446_023C:
		if(!(gflags[004A] && (!gflags[0091]))) goto labelFunc0446_024E;
		UI_add_answer_0C("banquet stew");
	labelFunc0446_024E:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0446_0267;
		UI_add_answer_0C("brown bottle");
	labelFunc0446_0267:
		if(!(gflags[0048] && (!(UI_get_item_flag_A3(0xFFB4, 0x0004) && (!(gflags[0038] && (!gflags[0092]))))))) goto labelFunc0446_028A;
		UI_add_answer_0C("traitor");
	labelFunc0446_028A:
		UI_add_answer_0C(["name", "buy", "bye"]);
	labelFunc0446_029A:
		UcAsk;
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		UcMessage("\"This is all so confusing. Lord Brendann is certain that there must be a traitor, and the Wolves are united behind him.\"");
		UcSay;
		UcMessage("\"Yet I have also heard that there is certainly no traitor, and that we should not indulge in hysteria...\"");
		UcSay;
		var0003 = Func0992(0x0001, "@Who told thee this, madam?@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc0446_02D9;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Um... no single person, actually. I have merely heard it said in conversation. In a tavern, one hears everything.\"");
		UcSay;
	labelFunc0446_02D9:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0446_0310;
		UcMessage("\"'Tis a very dirty bottle. Thou didst find this in the woods?\"");
		UcSay;
		UcMessage("\"Ah! 'Tis one of Simon's ale bottles. I order them specially for him, as only he can stand the taste.\"");
		UcSay;
		UcMessage("\"Fawnish ale -- phew! A horrible brew.\"");
		UcSay;
		gflags[005F] = true;
		goto labelFunc0446_0318;
	labelFunc0446_0310:
		UcMessage("\"If thou couldst bring me the bottle, I am sure that I could identify it. We supply ale and spirits for the entire town from the pub where I work.\"");
		UcSay;
		UcMessage("\"If the bottle is of an uncommon type, then perhaps that would be a clue.\"");
		UcSay;
	labelFunc0446_0318:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"My name is Lucilla.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFBA, 0x001C);
	labelFunc0446_0335:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I run the Slashing Sword, the best pub in Monitor. Thou mightest think that cooking is not a very Knightly activity, but I assure thee, feeding the warriors in this town is indeed a Quest of Courage!\"");
		UcSay;
		if(!(UI_get_schedule_type_24(0xFFBA) == 0x0017)) goto labelFunc0446_0363;
		UcMessage("\"If thou dost want anything to eat or drink, thou hast merely to say so, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0446_0367;
	labelFunc0446_0363:
		UcMessage("\"Please come by the pub sometime.\"");
		UcSay;
	labelFunc0446_0367:
		if(!(!gflags[0048])) goto labelFunc0446_0382;
		UcMessage("\"And I would love to chat further, but I do not speak with strangers. My standards are very high, and thou art not a Knight of Monitor.\"");
		UcSay;
		Func097F(0xFFBA, "@Not a Knight!@", 0x0000);
		abrt();
		goto labelFunc0446_0392;
	labelFunc0446_0382:
		UI_add_answer_0C(["The Slashing Sword", "cooking", "Quest of Courage"]);
	labelFunc0446_0392:
		cmps("buy");
		if(!(UI_get_schedule_type_24(0xFFBA) == 0x0017)) goto labelFunc0446_03DE;
		UcMessage("\"What wouldst thou like, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
		var0004 = Func0956(["food", "drink"]);
		if(!(var0004 == "food")) goto labelFunc0446_03CE;
		Func0845();
	labelFunc0446_03CE:
		if(!(var0004 == "drink")) goto labelFunc0446_03DB;
		Func0846();
	labelFunc0446_03DB:
		goto labelFunc0446_03E9;
	labelFunc0446_03DE:
		UcMessage("\"If thou wouldst return when we are open, perhaps I could serve thee food or drink...\"");
		UcSay;
		UI_remove_answer_0D("buy");
	labelFunc0446_03E9:
		cmps("The Slashing Sword");
		UI_remove_answer_0D("The Slashing Sword");
		UcMessage("\"'Tis a pub that hath been handed down generation to generation, originating with my great-grandfather. Although 'tis a wonderful place to have a meal, most of the men in the town come by to court me!\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_040F;
		UcMessage("\"I enjoy all the attention...\"");
		UcSay;
		UI_add_answer_0C("court");
	labelFunc0446_040F:
		UI_add_answer_0C(["great-grandfather", "men"]);
	labelFunc0446_041C:
		cmps("great-grandfather");
		UI_remove_answer_0D("great-grandfather");
		UcMessage("\"He was not only the founder of the pub, but he was a Champion Knight of Monitor! He wore the Helm of Monitor for several years, before he was bested in a tournament.\"");
		UcSay;
		UI_add_answer_0C(["Champion Knight", "tournament"]);
	labelFunc0446_043C:
		cmps("Champion Knight");
		UI_remove_answer_0D("Champion Knight");
		UcMessage("\"I can hardly speak of the Champion Knight without remembering Astrid's foul death at the hands of the Goblins.\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc0446_045C;
		UcMessage("\"I am so glad that thou hast recaptured the Helm of Monitor. Thou dost make a fine Champion Knight in thine own right.\"");
		UcSay;
		goto labelFunc0446_0473;
	labelFunc0446_045C:
		UcMessage("\"I fear that there is none worthy to fill her shoes as Champion Knight!\"");
		UcSay;
		UI_add_answer_0C("worthy");
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_0473;
		UcMessage("\"Except, perhaps, thyself? I must believe that thou hast had thy share of conquests in thy time...\"");
		UcSay;
	labelFunc0446_0473:
		cmps("worthy");
		UI_remove_answer_0D("worthy");
		UcMessage("\"Monitor is not the town it once was. Our ancestors founded a settlement built on the Principle of Courage.\"");
		UcSay;
		UcMessage("\"But today, greed and glory have corrupted our Knights. Monitor needs a champion that is not only a leader on the battlefield, but someone who can stir their hearts and lead them back to what it means to be a Knight.\"");
		UcSay;
		if(!(!gflags[002C])) goto labelFunc0446_0495;
		UcMessage("\"I wish a new Champion Knight would arise, one who can not only retrieve the Helm of Monitor, but also right the wrongs in this town!\"");
		UcSay;
	labelFunc0446_0495:
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_04A4;
		UcMessage("\"Could that person be thee? I would like it to be so.\"");
		UcSay;
		goto labelFunc0446_04C5;
	labelFunc0446_04A4:
		var0003 = Func0992(0x0001, "@Perhaps this is a quest for the Avatar?@", 0x0000, false);
		if(!(var0003 != 0xFE9C)) goto labelFunc0446_04C5;
		UI_set_conversation_slot_09(0x0000);
	labelFunc0446_04C5:
		cmps("tournament");
		UI_remove_answer_0D("tournament");
		UcMessage("\"All the Knights think about is fighting! And who do they fight? The Goblins? No! They prefer to spar with one another at the List Field!\"");
		UcSay;
		UcMessage("\"Luther is the worst. Oh, how I hate him!\"");
		UcSay;
		UI_add_answer_0C("Luther");
	labelFunc0446_04E3:
		cmps("Luther");
		UI_remove_answer_0D("Luther");
		UcMessage("\"What a buffoon! He thinks every woman in this town wants him, but I find him repulsive!\"");
		UcSay;
		UcMessage("\"To prove his prowess, he torments the weakest Knights and challenges them to meet him on the List Field.\"");
		UcSay;
		UcMessage("\"And when they lose -- which they must, since Luther is such a powerful brute -- he gloats over them.\"");
		UcSay;
		if(!(!gflags[00B2])) goto labelFunc0446_0515;
		UcMessage("\"They say that that new shield of his doth have special powers, so that now he is truly invincible!\"");
		UcSay;
		UcMessage("\"Well, I say if it is magical, then force him to not use it! Monitorians do not use magic weapons or armour...\"");
		UcSay;
		UcMessage("\"But no one can tell Luther anything.\"");
		UcSay;
		gflags[00AC] = true;
	labelFunc0446_0515:
		gflags[00AE] = true;
	labelFunc0446_0519:
		cmps("men");
		UI_remove_answer_0D("men");
		if(!UI_is_pc_female_6F()) goto labelFunc0446_054F;
		UcMessage("\"Dost thou not know that men are scum? Yet we cannot leave them alone...\"");
		UcSay;
		UcMessage("\"Wouldst thou like to know more about the men of Monitor?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0446_0548;
		UcMessage("\"Avoid Brendann -- he sees women as trophies, to be won and then set on a shelf. He is shallow and insincere.\"");
		UcSay;
		UcMessage("\"Templar is very attractive, I think. But Caladin is a brute, and Luther is a clod!\"");
		UcSay;
		goto labelFunc0446_054C;
	labelFunc0446_0548:
		UcMessage("\"'Tis just as well -- there are no great lovers in this place!\"");
		UcSay;
	labelFunc0446_054C:
		goto labelFunc0446_0557;
	labelFunc0446_054F:
		UcMessage("\"Why is it that a woman must have a man? I have looked and looked, and I have not yet found the one for me.\"");
		UcSay;
		UcMessage("\"He must be tough, yet gentle with his woman. Brave, but afraid to disappoint his mate. He must be devious enough to win many battles, yet fair enough to consider me as his equal...\"");
		UcSay;
	labelFunc0446_0557:
		cmps("Andral");
		UI_remove_answer_0D("Andral");
		UcMessage("\"For a time we were quite close. I still have great respect for his talents, but in truth he always put me second to his work. I suppose I enjoy being the center of attention too much.\"");
		UcSay;
	labelFunc0446_056A:
		cmps("court");
		UI_remove_answer_0D("court");
		UcMessage("\"Dost thou find me beautiful? I admit I love the attention! But I have never found the right man for me...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_05B4;
		UcMessage("\"But I sense that thou art somehow different, milord.\"");
		UcSay;
		if(!gflags[0055]) goto labelFunc0446_0593;
		UcMessage("\"Listen, Spektor and I truly have nothing together. Honestly, 'tis nothing.\"");
		UcSay;
	labelFunc0446_0593:
		UcMessage("\"Wouldst thou like to meet later?\"");
		UcSay;
		gflags[0053] = true;
		if(!Func0955()) goto labelFunc0446_05B0;
	labelFunc0446_05A1:
		UcMessage("\"Then meet me at the pub after we have closed, in the wee hours before dawn. 'Tis the only time I can be alone with thee since I work so late.\"");
		UcSay;
		UcMessage("\"I cannot wait.\"");
		UcSay;
		gflags[0054] = true;
		goto labelFunc0446_05B4;
	labelFunc0446_05B0:
		UcMessage("\"Oh. Be that way, then. There are plenty of others who are interested in me!\"");
		UcSay;
	labelFunc0446_05B4:
		cmps("cooking");
		UI_remove_answer_0D("cooking");
		UcMessage("\"If I do say so myself, I am a master of cooking poultry. Or as they say...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_05D6;
		UcMessage("\"Breasts and thighs, breasts and thighs. And which dost thou prefer, milord? But do not answer yet...\"");
		UcSay;
		goto labelFunc0446_05DA;
	labelFunc0446_05D6:
		UcMessage("\"If I cannot succeed in the bedroom, I might as well try in the kitchen! Homely women make good cooks, they say...\"");
		UcSay;
	labelFunc0446_05DA:
		cmps("Quest of Courage");
		UI_remove_answer_0D("Quest of Courage");
		UcMessage("\"Thou knowest -- the quests to prove that thou art fit to bear thy Knighthood...\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc0446_05FA;
		UcMessage("\"Like when thou didst retrieve the Helm of Monitor from that vile Pomdirgun.\"");
		UcSay;
		goto labelFunc0446_060F;
	labelFunc0446_05FA:
		UcMessage("\"Surely, a fine young warrior like thyself dost plan to partake in the Quest to retrieve the Helm of Monitor?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0446_060B;
		UcMessage("\"If only we could learn the secret of their hidden camp! But it remains a mystery...\"");
		UcSay;
		goto labelFunc0446_060F;
	labelFunc0446_060B:
		UcMessage("\"Too dangerous for a coward like thyself? And I thought better of thee...\"");
		UcSay;
	labelFunc0446_060F:
		cmps("interrupting");
		UI_remove_answer_0D("interrupting");
		UcMessage("\"Surely, thou dost know Spektor the Financier?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB3, 0x0000);
		UcMessage("\"I must be going. Pressing town business, that sort of thing.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And it is so seldom that we are able to talk! Be sure to give my greetings to Lord Marsten.\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I shall!\"");
		UcSay;
		gflags[0055] = true;
		Func097F(0xFFBA, "@Farewell!@", 0x0000);
		Func097F(0xFFB3, "@Anon!@", 0x0002);
		UI_si_path_run_usecode_C1(0xFFB3, [0x041B, 0x0A52, 0x0000], 0x000D, 0xFFB3, 0x044D, true);
		abrt();
	labelFunc0446_0680:
		cmps("rendezvous");
		UI_remove_answer_0D("rendezvous");
		if(!(!gflags[0054])) goto labelFunc0446_06AD;
		UcMessage("\"Hast thou changed thy mind about meeting?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0446_06A6;
		goto labelFunc0446_05A1;
		goto labelFunc0446_06AA;
	labelFunc0446_06A6:
		UcMessage("\"Suit thyself.\"");
		UcSay;
	labelFunc0446_06AA:
		goto labelFunc0446_06BE;
	labelFunc0446_06AD:
		UcMessage("\"The time is not right. I cannot see thee now. Another time, my love...\"");
		UcSay;
		Func097F(0xFFBA, "@Not now!@", 0x0000);
		abrt();
	labelFunc0446_06BE:
		cmps("Spektor");
		UI_remove_answer_0D("Spektor");
		if(!(!gflags[0092])) goto labelFunc0446_06FA;
		UcMessage("\"Very well, I shall bare my soul to thee.\"");
		UcSay;
		if(!gflags[0055]) goto labelFunc0446_06E2;
		UcMessage("\"I suspected that thou knewest when thou didst catch Spektor and I together that time. But we could not fool thee...\"");
		UcSay;
	labelFunc0446_06E2:
		UcMessage("\"Spektor and I were lovers. Canst thou believe it? Yet there was something appealing about that man...\"");
		UcSay;
		UcMessage("\"Despite my conscience, I have kept his guilty secret for these many months. It casts filth upon my soul. I am ashamed.\"");
		UcSay;
		UI_add_answer_0C(["lovers", "secret"]);
		goto labelFunc0446_0720;
	labelFunc0446_06FA:
		UcMessage("\"Now that Spektor hath been arrested for his crimes, I wonder what I shall do with this key that he gave to me for safekeeping. Perhaps I shall give it to thee. Since thou hast determined all of what hath been happening, perhaps thou wilt be able to put it to good use.\"");
		UcSay;
		if(!(!gflags[00C1])) goto labelFunc0446_0720;
		var0000 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0062, 0x0005, false, true);
		gflags[00C1] = true;
	labelFunc0446_0720:
		cmps("lovers");
		UI_remove_answer_0D("lovers");
		UcMessage("\"This is so embarrassing. To think that I could have had any man in this town, and yet I gave mine heart to... Spektor!\"");
		UcSay;
		UcMessage("\"A Knight who had scarce drawn his sword in many moons...\"");
		UcSay;
	labelFunc0446_0737:
		cmps("secret");
		UI_remove_answer_0D("secret");
		UcMessage("\"Spektor played a key part in Lord Marsten's plan to destroy the Bears and Wolves, so that the Leopards could rule Monitor!\"");
		UcSay;
		UcMessage("\"They had a secret cache of money and weapons hidden somewhere in the mountains west of town.\"");
		UcSay;
		UcMessage("\"I do not know what else they hid there, but Spektor said that they had the power to someday rule all of Serpent Isle!\"");
		UcSay;
	labelFunc0446_0752:
		cmps("lost ring");
		UI_remove_answer_0D("lost ring");
		UcMessage("\"A ring so pretty must be intended for a loved one. Perhaps a ring of marriage or engagement.\"");
		UcSay;
	labelFunc0446_0765:
		cmps("banquet stew");
		UI_remove_answer_0D("banquet stew");
		if(!UI_remove_party_items_34(0x0003, 0x0194, 0xFE99, 0x0003, false)) goto labelFunc0446_0793;
		UcMessage("\"Very good! Now that I have the meat, thy stew will be ready for the banquet. Thy banquet will be held at the Knight's Banquet Hall. It is located south of the Pub. Thou shalt find it on Banquet Hall Road.\"");
		UcSay;
		gflags[0091] = true;
		goto labelFunc0446_0797;
	labelFunc0446_0793:
		UcMessage("\"Now that thou hast completed the Knight's Test, thou must now bring me the meat for thy banquet stew.\"");
		UcSay;
	labelFunc0446_0797:
		cmps("bye");
		Func097F(0xFE9C, "@Must be going...@", 0x0000);
		if(!(!UI_is_pc_female_6F())) goto labelFunc0446_07C2;
		Func097F(0xFFBA, "@Goodbye, lover.@", 0x0002);
		goto labelFunc0446_07CE;
	labelFunc0446_07C2:
		Func097F(0xFFBA, "@Goodbye, milady.@", 0x0002);
	labelFunc0446_07CE:
		goto labelFunc0446_07D4;
	labelFunc0446_07D1:
		goto labelFunc0446_029A;
	labelFunc0446_07D4:
		end_conv();
	labelFunc0446_07D5:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func08F0 0x8F0 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0955 0x955 ();
extern Func0849 0x849 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0956 0x956 (var var0000);
extern Func0848 0x848 ();
extern var Func0988 0x988 (var var0000, var var0001);

Func0447 0x447 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = UI_get_item_flag_A3(0xFFB9, 0x001C);
	var0003 = Func0953();
	if(!(event == 0x0007)) goto labelFunc0447_00F3;
	if(!gflags[0083]) goto labelFunc0447_00E1;
	var0004 = UI_get_oppressor_5C(0xFFB9);
	var0004 = (0x0000 - var0004);
	if(!(!var0004)) goto labelFunc0447_004F;
	var0004 = 0xFE9C;
	labelFunc0447_004F:
		if(!((var0004 != 0xFE9C) && (!in(var0004, Func098D())))) goto labelFunc0447_00BA;
		var0000 = Func098D();
		var0000 = (var0000 & 0xFE9C);
		enum();
	labelFunc0447_0073:
		for (var0007 in var0000 with var0005 to var0006 atend labelFunc0447_008D);
		if(!Func0932(var0007)) goto labelFunc0447_008A;
		goto labelFunc0447_0093;
	labelFunc0447_008A:
		goto labelFunc0447_0073;
	labelFunc0447_008D:
		var0007 = 0xFE9C;
	labelFunc0447_0093:
		UI_set_oppressor_5E(0xFFB9, var0007);
		UI_set_oppressor_5E(var0004, var0007);
		Func0976(0xFFB9, 0x0003);
		Func0976(var0004, 0x0003);
		exit2();
	labelFunc0447_00BA:
		if(!(!gflags[0007])) goto labelFunc0447_00D7;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0004), UI_get_npc_object_23(0xFFB9));
		exit2();
	labelFunc0447_00D7:
		Func092E(var0004);
		exit2();
		goto labelFunc0447_00F3;
	labelFunc0447_00E1:
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0447_00F3:
		if(!(event == 0x0000)) goto labelFunc0447_0151;
		if(!gflags[0083]) goto labelFunc0447_0151;
		var0009 = UI_die_roll_17(0x0001, 0x0003);
		UI_clear_item_say_4E(0xFFB9);
		if(!(var0009 == 0x0001)) goto labelFunc0447_0129;
		UI_item_say_4D(0xFFB9, "@Coward!@");
	labelFunc0447_0129:
		if(!(var0009 == 0x0002)) goto labelFunc0447_013D;
		UI_item_say_4D(0xFFB9, "@Pitiful excuse...@");
	labelFunc0447_013D:
		if(!(var0009 == 0x0003)) goto labelFunc0447_0151;
		UI_item_say_4D(0xFFB9, "@Flay that stranger!@");
	labelFunc0447_0151:
		if(!(event == 0x0002)) goto labelFunc0447_019E;
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		if(!gflags[0041]) goto labelFunc0447_0189;
		UcMessage("\"I would love to converse with thee, friend Avatar. But this is the hour when Andral sculpts my likeness.\"");
		UcSay;
		Func097F(0xFFB9, "@Go on, Andral!@", 0x0000);
		Func097F(0xFFC2, "@Yes, milord.@", 0x0003);
		abrt();
		goto labelFunc0447_019E;
	labelFunc0447_0189:
		UcMessage("\"What art thou, a moron? Canst thou not see that the artist is at work? Andral is sculpting me.\"");
		UcSay;
		UcMessage("\"When my bust is complete, then my fame will be perfect and they shall surely proclaim me Knight Champion!\"");
		UcSay;
		Func097F(0xFFB9, "@Move on!@", 0x0000);
		abrt();
	labelFunc0447_019E:
		if(!(event == 0x0001)) goto labelFunc0447_01FC;
		UI_item_say_4D(0xFE9C, "@Sir Knight!@");
		0xFFB9;
		calle();
		Func097F(0xFFB9, "@Eh?@", 0x0000);
		if(!((UI_get_schedule_type_24(0xFFB9) == 0x0010) && UI_npc_nearby_3A(0xFFC2))) goto labelFunc0447_01F2;
		var0008 = UI_delayed_execute_usecode_array_02(0xFFB9, [0x23, 0x55, 0x0447], 0x0005);
		goto labelFunc0447_01FC;
	labelFunc0447_01F2:
		UI_set_schedule_type_25(0xFFB9, 0x0003);
	labelFunc0447_01FC:
		if(!(event == 0x0009)) goto labelFunc0447_0744;
		UI_halt_scheduled_71(0xFFB9);
		UI_run_schedule_B7(0xFFB9);
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		Func08F0();
		if(!(!var0002)) goto labelFunc0447_023F;
		UcMessage("\"Hmpf! Art thou a fighter? Thou dost not look like a fighter to me!\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0447_0238;
		UcMessage("\"More like someone to cook Luther's meals! Har!\"");
		UcSay;
		goto labelFunc0447_023C;
	labelFunc0447_0238:
		UcMessage("\"Thou dost look like someone to carry Luther's water buckets! Har!\"");
		UcSay;
	labelFunc0447_023C:
		goto labelFunc0447_0266;
	labelFunc0447_023F:
		if(!(!gflags[0041])) goto labelFunc0447_025B;
		if(!(!gflags[003E])) goto labelFunc0447_0254;
		UcMessage("\"Hello, little fighter! Step on any ants today?\"");
		UcSay;
		goto labelFunc0447_0258;
	labelFunc0447_0254:
		UcMessage("\"Look at the new Knight! Thou dost certainly look fetching with thy tattoo. Hah!\"");
		UcSay;
	labelFunc0447_0258:
		goto labelFunc0447_0266;
	labelFunc0447_025B:
		UcMessage("\"Now that thou hast bested me on the field of battle, I am thy friend. What can I do for thee?\"");
		UcSay;
		UI_add_answer_0C("join");
	labelFunc0447_0266:
		UI_add_answer_0C(["name", "duties"]);
		if(!(gflags[0042] && (!gflags[00B1]))) goto labelFunc0447_0285;
		UI_add_answer_0C("bully");
	labelFunc0447_0285:
		if(!(gflags[00AD] && (!gflags[00AF]))) goto labelFunc0447_0297;
		UI_add_answer_0C("braggart");
	labelFunc0447_0297:
		if(!(gflags[00AE] && (!gflags[00B0]))) goto labelFunc0447_02A9;
		UI_add_answer_0C("repulsive");
	labelFunc0447_02A9:
		if(!(gflags[00AC] && (!gflags[00B2]))) goto labelFunc0447_02BB;
		UI_add_answer_0C("new shield");
	labelFunc0447_02BB:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0447_02D4;
		UI_add_answer_0C("brown bottle");
	labelFunc0447_02D4:
		if(!(gflags[0048] && (!UI_get_item_flag_A3(0xFFB4, 0x0004)))) goto labelFunc0447_02ED;
		UI_add_answer_0C("traitor");
	labelFunc0447_02ED:
		UI_add_answer_0C("bye");
	labelFunc0447_02F4:
		UcAsk;
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		UcMessage("\"The Goblins did not ambush that patrol without help. If Lord Marsten doth not recognize this, then he is blind as well as brainless.\"");
		UcSay;
		UcMessage("\"It doth not take a wizard to untangle this skein. Who among us acts strangely, doth do things in secret, and avoids his knightly duties?\"");
		UcSay;
		UcMessage("\"Speak to Krayg the Provisioner. Force him to spill his filthy secrets. I would do it myself, but Marsten hath ordered me to stay away from that worm.\"");
		UcSay;
	labelFunc0447_0312:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"So what do I care if thou didst find garbage in the woods?\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0447_0342;
		UcMessage("\"Place it not in my face! That bottle is filthy...\"");
		UcSay;
		UcMessage("\"Besides, I do not drink that brew. 'Tis Fawnish ale. A bitter brew!\"");
		UcSay;
	labelFunc0447_0342:
		UcMessage("\"No doubt the bottle belongs to that traitor, Krayg.\"");
		UcSay;
	labelFunc0447_0346:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am Luther! I am a Bear and a trainer of unequalled strength. It is my destiny to become the next Knight Champion of Monitor!\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB9, 0x001C);
		UI_add_answer_0C(["Knight Champion", "destiny"]);
	labelFunc0447_0370:
		cmps("Knight Champion");
		UI_remove_answer_0D("Knight Champion");
		UcMessage("\"The Knight Champion is the bravest and toughest fighter in all the land. Now that Astrid hath met an untimely doom, the post is open for the taking!\"");
		UcSay;
		UcMessage("\"Actually, she must have been fairly addlepated to let the Goblins ambush her like that. When I am Champion, the Goblins shall quake in fear!\"");
		UcSay;
	labelFunc0447_0387:
		cmps("destiny");
		UI_remove_answer_0D("destiny");
		UcMessage("\"I am the greatest fighter in Monitor! But I sense that thou art uncertain. Dost thou disagree?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0447_03AB;
		UcMessage("\"I shall gladly prove it to thee -- on the List Field! Meet me there in the morning,...\"");
		UcSay;
		UcMessage("\"...but not too early. I like my sleep. The ninth hour should be sufficient.\"");
		UcSay;
		goto labelFunc0447_03AF;
	labelFunc0447_03AB:
		UcMessage("\"Good for thee.\"");
		UcSay;
	labelFunc0447_03AF:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"As a Knight of the Order of the Bear, I am charged with defending Monitor at all times.\"");
		UcSay;
		UcMessage("\"Often I am called upon by Caladin to lead patrols outside the	city walls, or to single-handedly scout the wilderness. I am very brave.\"");
		UcSay;
		UI_add_answer_0C(["Bears", "brave", "Caladin"]);
	labelFunc0447_03D6:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		UcMessage("\"We are the hope of Monitor, the only defense against the Goblins. The Leopards are hopeless, and the Wolves too smart for their own good.\"");
		UcSay;
		if(!(!gflags[004A])) goto labelFunc0447_03FF;
		UcMessage("\"If thou dost become a Knight of Monitor -- which is highly unlikely by the looks of thee -- thou shalt not be a Bear.\"");
		UcSay;
		UcMessage("\"The Ashes of Gurnordir do not select puny weaklings for our Command.\"");
		UcSay;
		UI_add_answer_0C("Ashes of Gurnordir");
	labelFunc0447_03FF:
		cmps("Ashes of Gurnordir");
		UI_remove_answer_0D("Ashes of Gurnordir");
		UcMessage("\"Ignorant oaf! The Ashes are consecrated to the ideal of Prowess -- to the biggest, strongest, bravest warriors!\"");
		UcSay;
		if(!(!gflags[004A])) goto labelFunc0447_0421;
		UcMessage("\"In the Test of Knighthood, it is the Ashes which shall show thee thy totem animal. By the blood.\"");
		UcSay;
		UcMessage("\"But why am I speaking of this to thee? If thou didst attempt the Test, it would surely kill thee.\"");
		UcSay;
	labelFunc0447_0421:
		cmps("brave");
		UI_remove_answer_0D("brave");
		UcMessage("\"Many of the Knights tell stories about mine accomplishments. Thou shouldst especially speak with Lucilla -- she is very impressed with me...\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0447_0440;
		UcMessage("\"...if thou knowest what I mean, aye?\"");
		UcSay;
	labelFunc0447_0440:
		if(!(!gflags[0038])) goto labelFunc0447_0452;
		UcMessage("\"One day I shall be Lord of the Bears, when Caladin is at last seen for the pathetic coward that he truly is.\"");
		UcSay;
		UcMessage("\"Then I shall challenge the Goblins to a final battle, and use their pathetic skulls for the sharpening of my blade!\"");
		UcSay;
		goto labelFunc0447_0456;
	labelFunc0447_0452:
		UcMessage("\"Now that I am Lord of the Bears, Monitor is at last safe from invasion.\"");
		UcSay;
	labelFunc0447_0456:
		cmps("Caladin");
		UI_remove_answer_0D("Caladin");
		UcMessage("\"Oftimes I am sent on the most dangerous types of patrols. Caladin, head of the Bear Command, likes to joke that he sends me on these patrols in the hopes that I do not return. But I know the truth. He sends me because he knows I am the only one who is tough enough.\"");
		UcSay;
	labelFunc0447_0469:
		cmps("bully");
		UI_remove_answer_0D("bully");
		UcMessage("\"How darest thou call me a bully! That little whore Lydia must have put thee up to this...\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFB8, 0x0004)) goto labelFunc0447_0490;
		UcMessage("\"I am glad that she is dead, the bitch!\"");
		UcSay;
		goto labelFunc0447_0494;
	labelFunc0447_0490:
		UcMessage("\"So, thou and she are teaming against me, aye? Spreading lies and rumors? Poisoning my reputation?\"");
		UcSay;
	labelFunc0447_0494:
		gflags[00B1] = true;
		Func0849();
		Func097F(0xFFB9, "@Damn thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFB9, 0x0014);
	labelFunc0447_04B1:
		cmps("braggart");
		UI_remove_answer_0D("braggart");
		UcMessage("\"Braggart! Who art thou calling a braggart? Thou art a snivelling worm!\"");
		UcSay;
		if(!(!gflags[0092])) goto labelFunc0447_04D3;
		UcMessage("\"That cold fish Spektor must have coaxed thee to this. He hath been jealous of my manliness for many moons...\"");
		UcSay;
		UcMessage("\"He knows that the women prefer me to him, and he schemes against me!\"");
		UcSay;
	labelFunc0447_04D3:
		UcMessage("\"Why, I should rip thine head off and feed it to the pigs!\"");
		UcSay;
		gflags[00AF] = true;
		Func0849();
		Func097F(0xFFB9, "@Curse thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFB9, 0x0014);
	labelFunc0447_04F4:
		cmps("repulsive");
		UI_remove_answer_0D("repulsive");
		UcMessage("\"Lucilla said what?! She finds me repulsive? Thou dost lie, it is a filthy lie...\"");
		UcSay;
		UcMessage("\"I will have thine head on a pike for spreading such tales!\"");
		UcSay;
		gflags[00B0] = true;
		Func0849();
		Func097F(0xFFB9, "@Blast thee!@", 0x0000);
		UI_set_schedule_type_25(0xFFB9, 0x0014);
	labelFunc0447_0528:
		cmps("found shield");
		UI_remove_answer_0D("found shield");
		var000A = Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0x0000);
		if(!gflags[00B2]) goto labelFunc0447_0559;
		UcMessage("\"Many thanks for returning my shield to me, friend.\"");
		UcSay;
		goto labelFunc0447_056E;
	labelFunc0447_0559:
		if(!var000A) goto labelFunc0447_0566;
		UcMessage("\"No, that doth not look like my shield. I do not believe I have ever seen that shield before in my life.\"");
		UcSay;
		goto labelFunc0447_056A;
	labelFunc0447_0566:
		UcMessage("\"I have not lost my shield. Thou art mistaken.\"");
		UcSay;
	labelFunc0447_056A:
		UcMessage("\"Besides, I have this new shield -- which, by the way, is a family heirloom. Thank thee very much.\"");
		UcSay;
	labelFunc0447_056E:
		cmps("new shield");
		UI_remove_answer_0D("new shield");
		UcMessage("\"So, thou hast heard of my new shield! No one hath ever seen the like of it before. It is so light, yet blows seem to bounce off of it...\"");
		UcSay;
		if(!UI_npc_nearby_3A(Dupre)) goto labelFunc0447_05A5;
		var000B = Func0992(Dupre, "@Look! He doth have my missing shield!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc0447_05BC;
	labelFunc0447_05A5:
		var000B = Func0992(0x0001, "@Look! He doth have Dupre's missing shield!@", "@Why I think that is Dupre's missing shield!@", false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc0447_05BC:
		if(!((gflags[00B2] == false) && gflags[028A])) goto labelFunc0447_05DF;
		Func094E(var000B, "@And that mystery shield we have must be his!@");
		UI_add_answer_0C("found shield");
		UI_set_conversation_slot_09(0x0000);
	labelFunc0447_05DF:
		if(!(var000B != 0xFE9C)) goto labelFunc0447_05F0;
		UcMessage("\"What did he say?!\"");
		UcSay;
		goto labelFunc0447_05F4;
	labelFunc0447_05F0:
		UcMessage("\"What didst thou say?!\"");
		UcSay;
	labelFunc0447_05F4:
		var000C = Func0956(["return our shield", "I will pay for that shield", "say nothing"]);
		if(!(var000C == "return our shield")) goto labelFunc0447_0628;
		if(!gflags[0041]) goto labelFunc0447_061C;
		Func0848();
		goto labelFunc0447_0628;
	labelFunc0447_061C:
		UcMessage("\"No, I will not! This is my shield, and it hath been mine since my father -- a great Knight of Monitor -- passed it on to me!\"");
		UcSay;
		UcMessage("\"If thou dost call me a thief again, then thou art calling me a liar -- and dishonoring the name of my father!\"");
		UcSay;
		UcMessage("\"If thou didst that, I would have to challenge thee to combat on the List Field! So if I were thee, I would think twice about speaking to me with such an insolent tone!\"");
		UcSay;
	labelFunc0447_0628:
		if(!(var000C == "I will pay for that shield")) goto labelFunc0447_064A;
		if(!gflags[0041]) goto labelFunc0447_0642;
		UcMessage("\"I could not accept money from a friend!\"");
		UcSay;
		Func0848();
		goto labelFunc0447_064A;
	labelFunc0447_0642:
		UcMessage("\"Hah! A fine shield like this is not for sale. It is a family heirloom, after all.\"");
		UcSay;
		UcMessage("\"The other Knights might grovel after money, but not I! I am no Spektor!\"");
		UcSay;
	labelFunc0447_064A:
		cmps("join");
		UI_remove_answer_0D("join");
		var000D = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list_2B());
		var000E = 0x0001;
		enum();
	labelFunc0447_0671:
		for (var0011 in var000D with var000F to var0010 atend labelFunc0447_06E5);
		if(!(var000E == 0x0001)) goto labelFunc0447_0693;
		Func094E(UI_get_npc_number_47(var0011), "@Avatar!@");
	labelFunc0447_0693:
		if(!(var000E == 0x0002)) goto labelFunc0447_06AA;
		Func094E(UI_get_npc_number_47(var0011), "@Luther! Travelling with us?!@");
	labelFunc0447_06AA:
		if(!(var000E == 0x0003)) goto labelFunc0447_06C1;
		Func094E(UI_get_npc_number_47(var0011), "@I do not think this is a good idea...@");
	labelFunc0447_06C1:
		if(!(var000E == 0x0004)) goto labelFunc0447_06D8;
		Func094E(UI_get_npc_number_47(var0011), "@If he is coming, I am going!@");
	labelFunc0447_06D8:
		var000E = (var000E + 0x0001);
		goto labelFunc0447_0671;
	labelFunc0447_06E5:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou couldst use a warrior like myself, to guard thee against thine enemies. With me on hand, nothing could harm thee!\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFEF7, 0x0004)) goto labelFunc0447_0704;
		UcMessage("\"But alas, my duty as a Knight keeps me here in Monitor. The Goblins are a constant threat, even though thou hast slain their king.\"");
		UcSay;
		goto labelFunc0447_0708;
	labelFunc0447_0704:
		UcMessage("\"But alas, my duty as a Knight keeps me here in Monitor. The Goblins are a constant threat.\"");
		UcSay;
	labelFunc0447_0708:
		cmps("bye");
		if(!gflags[0041]) goto labelFunc0447_0725;
		Func097F(0xFFB9, "@Courage!@", 0x0002);
		goto labelFunc0447_0731;
	labelFunc0447_0725:
		Func097F(0xFFB9, "@Slug!@", 0x0002);
	labelFunc0447_0731:
		Func097F(0xFE9C, "@Bye!@", 0x0000);
		goto labelFunc0447_0743;
	labelFunc0447_0740:
		goto labelFunc0447_02F4;
	labelFunc0447_0743:
		end_conv();
	labelFunc0447_0744:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0954 0x954 ();
extern var Func098E 0x98E ();
extern var Func0942 0x942 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0994 0x994 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern var Func0956 0x956 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func09AD 0x9AD (var var0000);

Func0448 0x448 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0953();
	var0001 = Func0954();
	var0002 = UI_is_pc_female_6F();
	var0003 = UI_get_item_flag_A3(0xFFB8, 0x001C);
	var0004 = Func098E();
	var0005 = UI_find_nearby_41(0xFFB8, 0x0381, 0x0014, 0x0000);
	var0006 = Func0942(Dupre);
	if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFB8, 0x001D))) goto labelFunc0448_00A1;
	UI_show_npc_face0_05(0xFFB8, 0x0000);
	if(!(!gflags[00CA])) goto labelFunc0448_0079;
	UcMessage("\"So! Thou hast discovered me!\"");
	UcSay;
	UcMessage("\"Yes, I poisoned thee, but I will not say who did instruct me to do so!\"");
	UcSay;
	if(!(!gflags[005A])) goto labelFunc0448_0079;
	UcMessage("\"There is no antidote, so thou canst look forward to a long and painful death!\"");
	UcSay;
	labelFunc0448_0079:
		UcMessage("\"I spit upon thee, pawn of the Demon British!\"");
		UcSay;
		UI_clear_item_flag_A5(0xFFB8, 0x001D);
		UI_reduce_health_87(0xFFB8, 0x0032, 0x0000);
		Func097F(0xFE9C, "@Whew!@", 0x0002);
		abrt();
	labelFunc0448_00A1:
		if(!(event == 0x0002)) goto labelFunc0448_0227;
		if(!(UI_get_item_flag_A3(0xFFB8, 0x001E) && (item == Func09A0(0x0005, 0x0002)))) goto labelFunc0448_0148;
		if(!(UI_get_item_flag_A3(0xFE9C, 0x0010) || (Func0994() == 0x001F))) goto labelFunc0448_00FB;
		var0007 = Func09A0(0x0005, 0x0002);
		var0008 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x0448], 0x0064);
		abrt();
	labelFunc0448_00FB:
		UI_clear_item_flag_A5(0xFFB8, 0x001E);
		var0009 = Func0992(Shamino, 0x0000, 0x0000, false);
		if(!((var0009 != 0xFE9C) && Func0942(var0009))) goto labelFunc0448_0147;
		UI_show_npc_face0_05(var0009, 0x0000);
		UcMessage("\"Thou dost look terrible, ");
		UcMessage(var0000);
		UcMessage(". I think thou hast been struck by some terrible malady.\"");
		UcSay;
		Func097F(var0009, "@Thou needest a healer!@", 0x0000);
		abrt();
	labelFunc0448_0147:
		abrt();
	labelFunc0448_0148:
		if(!(UI_get_item_flag_A3(0xFE9C, 0x0008) && (item == Func09A0(0x0005, 0x0002)))) goto labelFunc0448_01A8;
		var0009 = Func0992(Shamino, "@Art thou all right?@", "@Oh...@", true);
		if(!(var0009 != 0xFE9C)) goto labelFunc0448_01A8;
		UI_set_item_flag_A4(0xFFB8, 0x001E);
		var0007 = Func09A0(0x0005, 0x0002);
		var0008 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x0448], 0x0005);
	labelFunc0448_01A8:
		if(!((item == Func09A0(0x0005, 0x0001)) && (!gflags[005A]))) goto labelFunc0448_0227;
		if(!(!UI_get_item_flag_A3(0xFE9C, 0x0008))) goto labelFunc0448_0204;
		if(!(Func0994() != 0x001F)) goto labelFunc0448_0204;
		gflags[00C2] = true;
		UI_set_item_flag_A4(0xFE9C, 0x0008);
		var0007 = Func09A0(0x0005, 0x0002);
		var0008 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x0448], 0x0014);
	labelFunc0448_0204:
		var0007 = Func09A0(0x0005, 0x0001);
		var0008 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x0448], 0x03E8);
	labelFunc0448_0227:
		if(!(event == 0x0001)) goto labelFunc0448_025C;
		UI_item_say_4D(0xFE9C, "@Hello, there.@");
		0xFFB8;
		calle();
		UI_set_schedule_type_25(0xFFB8, 0x0003);
		Func097F(0xFFB8, "@Hello.@", 0x0002);
		UI_clear_item_say_4E(0xFFB8);
	labelFunc0448_025C:
		if(!(event == 0x0009)) goto labelFunc0448_069F;
		UI_run_schedule_B7(0xFFB8);
		var000A = false;
		if(!(UI_get_schedule_type_24(0xFFB8) == 0x0007)) goto labelFunc0448_0281;
		var000A = true;
	labelFunc0448_0281:
		UI_show_npc_face0_05(0xFFB8, 0x0000);
		if(!(!gflags[004A])) goto labelFunc0448_02A6;
		UcMessage("\"Begone with thee, stranger. No one who hath not passed the Test of Knighthood is worthy of my time.\"");
		UcSay;
		Func097F(0xFFB8, "@Good day.@", 0x0000);
		abrt();
		goto labelFunc0448_02CE;
	labelFunc0448_02A6:
		if(!(!var0003)) goto labelFunc0448_02C4;
		UcMessage("\"I am Lydia. What can I do for thee, ");
		UcMessage(var0001);
		UcMessage("?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB8, 0x001C);
		goto labelFunc0448_02CE;
	labelFunc0448_02C4:
		UcMessage("\"Hello, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0448_02CE:
		UI_add_answer_0C(["duties"]);
		if(!(gflags[004A] && (!gflags[003E]))) goto labelFunc0448_02EA;
		UI_add_answer_0C("tattoo");
	labelFunc0448_02EA:
		if(!(gflags[0048] && (!UI_get_item_flag_A3(0xFFB4, 0x0004)))) goto labelFunc0448_0303;
		UI_add_answer_0C("traitor");
	labelFunc0448_0303:
		if(!gflags[0035]) goto labelFunc0448_0310;
		UI_add_answer_0C("poison");
	labelFunc0448_0310:
		UI_add_answer_0C("bye");
	labelFunc0448_0317:
		UcAsk;
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		UcMessage("\"As loathsome as Luther is, perhaps he doth have a point. Krayg doth indeed take long walks in the woods, most strangely...\"");
		UcSay;
		if(!gflags[00C0]) goto labelFunc0448_033A;
		UcMessage("\"Yet if he hath told thee of a Goblin rendezvous site, then thou shouldst examine the site. There might be evidence there to convict the traitor, whomever he might be.\"");
		UcSay;
		goto labelFunc0448_033E;
	labelFunc0448_033A:
		UcMessage("\"But a man cannot be convicted simply for strange habits! We must have evidence...\"");
		UcSay;
	labelFunc0448_033E:
		cmps("duties");
		UI_remove_answer_0D("duties");
		if(!var000A) goto labelFunc0448_0362;
		UcMessage("\"Look around thee! Dost thou see the needles, the vials of ink, and the sketches!\"");
		UcSay;
		UcMessage("\"Look closer. Dost thou see the patterns which adorn my body, the swirls of color? Each doth have its meaning...\"");
		UcSay;
		UcMessage("\"I am the artist who creates tattoos.\"");
		UcSay;
		goto labelFunc0448_036A;
	labelFunc0448_0362:
		UcMessage("\"Thou art new to this city, or thou wouldst have heard of me by now. Mine is the art of using needles and ink to create harmonious patterns.\"");
		UcSay;
		UcMessage("\"I am Lydia, the tattoo artist.\"");
		UcSay;
	labelFunc0448_036A:
		UI_add_answer_0C(["artist", "patterns"]);
	labelFunc0448_0377:
		cmps("artist");
		UI_remove_answer_0D("artist");
		UcMessage("\"I learned the trade from my father. Counting myself, there have been twelve generations of tattooists in our family.\"");
		UcSay;
		UcMessage("\"As the tattooist, it is my privilege to grant the first tattoo to any warrior who completes the Test of Knighthood.\"");
		UcSay;
		UcMessage("\"Lord Marsten sometimes authorizes me to give additional tattoos, but only when the recipient hath earned them through Courage or Valor.\"");
		UcSay;
		UI_add_answer_0C(["tradition", "special tattoos"]);
	labelFunc0448_039F:
		cmps("tradition");
		UI_remove_answer_0D("tradition");
		UcMessage("\"Artistry is something that one is born with -- it cannot be learned or imitated. As I was born with the talent, I could not deny my duty.\"");
		UcSay;
		UcMessage("\"As thou canst see, I have had much practice on myself. As the tattooist, I can have as many tattoos as I desire...\"");
		UcSay;
		UcMessage("\"My body is covered with tattoos! My mother tattooed my back and other spots I could not reach comfortably.\"");
		UcSay;
		UI_add_answer_0C(["mother", "spots?"]);
	labelFunc0448_03C7:
		cmps("mother");
		UI_remove_answer_0D("mother");
		UcMessage("\"She was a courageous Knight! I miss her very much...\"");
		UcSay;
		UcMessage("\"Others will tell thee that my mother died in a battle with road bandits, but I know better. She had lost the will to live!\"");
		UcSay;
		UcMessage("\"Her heart was broken, ever since that Warlock from Moonshade stole her oldest daughter!\"");
		UcSay;
		UI_add_answer_0C(["Moonshade", "Warlock", "daughter"]);
	labelFunc0448_03F2:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"That is the City of Mages, to the east on the Isle of Beyond. It is a depraved, indulgent, undisciplined place.\"");
		UcSay;
		UcMessage("\"No warrior could ever feel comfortable in such a setting. They care nothing for Duty and Courage -- only pleasure!\"");
		UcSay;
	labelFunc0448_0409:
		cmps("Warlock");
		UI_remove_answer_0D("Warlock");
		UcMessage("\"I do not know his name. The evil wizard travels throughout the Serpent Isle, in search of children to steal for the mage school.\"");
		UcSay;
		UcMessage("\"Any infant with potential is taken in the dead of night, and a white stone is left in its place.\"");
		UcSay;
	labelFunc0448_0420:
		cmps("daughter");
		UI_remove_answer_0D("daughter");
		UcMessage("\"My sister Selene was a very beautiful girl. She was four years older than I, and I thought she was so mature!\"");
		UcSay;
		UcMessage("\"She was only twelve when she was taken, so she never had the chance to pass the Test of Knighthood... Selene doth have no tattoos.\"");
		UcSay;
		UcMessage("\"I have often wondered about her life among the Mages, learning spells and bewitching her enemies. I would give anything to see her again!\"");
		UcSay;
		var000B = true;
	labelFunc0448_043F:
		cmps("spots?");
		UI_remove_answer_0D("spots?");
		UcMessage("\"Well, thou knowest... private places!\"");
		UcSay;
		if(!var0006) goto labelFunc0448_0492;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Milady, I would be very interested in seeing all of thy tattoos. Perhaps we could step into...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I am not on display, sir! Thou shouldst not think that any lout can see the entire gallery.\"");
		UcSay;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Sorry, milady.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Later, perhaps... handsome stranger.\"");
		UcSay;
	labelFunc0448_0492:
		cmps("special tattoos");
		UI_remove_answer_0D("special tattoos");
		UcMessage("\"Only Lord Marsten can approve one for a Tattoo of Valor. They are won for great deeds done on the field of battle.\"");
		UcSay;
		UcMessage("\"Our bravest warriors have many tattoos. Caladin and Brendann, rivals in all things, have more tattoos than anyone else in Monitor!\"");
		UcSay;
		UcMessage("\"Caladin wears his on those brawny arms of his, while Brendann's are kept in more discreet locations...\"");
		UcSay;
	labelFunc0448_04AD:
		cmps("patterns");
		UI_remove_answer_0D("patterns");
		UcMessage("\"These swirls and dots may seem random, but each has its meaning. A trained artist can read thy past by thy tattoos.\"");
		UcSay;
		UcMessage("\"Do not stare so closely at my tattoos! I wish my secrets to be mine own.\"");
		UcSay;
	labelFunc0448_04C4:
		cmps("tattoo");
		UI_remove_answer_0D("tattoo");
		if(!var0005) goto labelFunc0448_05D2;
		UcMessage("\"Thou hast earned the right to wear the Knight's Tattoo. Without it, one cannot be inducted into one's Knighthood.\"");
		UcSay;
		UcMessage("\"Since thou didst slay the Wolf in the Test, thou art slated to receive the Mark of the Wolf.\"");
		UcSay;
		UcMessage("\"Art thou ready to obtain thy tattoo?\"");
		UcSay;
		var000C = Func0956(["Yes", "No", "Will it hurt?"]);
		if(!(var000C == "Yes")) goto labelFunc0448_059C;
		UcMessage("\"We shall now begin the process. This will hurt, but as a warrior, thou art accustomed to suffering.\"");
		UcSay;
		Func097F(0xFFB8, "@Be seated.@", 0x0000);
		enum();
	labelFunc0448_0512:
		for (var000F in var0004 with var000D to var000E atend labelFunc0448_052F);
		Func09AC(var000F, Dupre, 0x0000, 0x0010);
		goto labelFunc0448_0512;
	labelFunc0448_052F:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		var0010 = UI_get_object_position_20(var0005);
		var0010[0x0001] = (var0010[0x0001] + 0x0001);
		UI_set_npc_id_BD(0xFFB8, 0x0000);
		UI_si_path_run_usecode_C1(0xFE9C, var0010, 0x0002, item, 0x028C, false);
		UI_set_path_failure_A7(0x028C, item, 0x000E);
		UI_play_music_39(0x001D, Func09A0(0x0005, 0x0001));
		UI_set_schedule_type_25(0xFFB8, 0x000F);
		abrt();
		goto labelFunc0448_05CF;
	labelFunc0448_059C:
		if(!(var000C == "Will it hurt?")) goto labelFunc0448_05CB;
		UcMessage("\"Will it hurt! Thou art not fit to be a Knight of Monitor.\"");
		UcSay;
		if(!var0002) goto labelFunc0448_05B7;
		UcMessage("\"Thou dost shame all womankind by thy cowardice.\"");
		UcSay;
		goto labelFunc0448_05BB;
	labelFunc0448_05B7:
		UcMessage("\"Come back when thou art ready to be a man!\"");
		UcSay;
	labelFunc0448_05BB:
		Func097F(0xFFB8, "@Away!@", 0x0000);
		abrt();
		goto labelFunc0448_05CF;
	labelFunc0448_05CB:
		UcMessage("\"Then perhaps later.\"");
		UcSay;
	labelFunc0448_05CF:
		goto labelFunc0448_05D6;
	labelFunc0448_05D2:
		UcMessage("\"If thou wilt come to my shop when I am at work, I shall be happy to grant thee thy Mark of Knighthood.\"");
		UcSay;
	labelFunc0448_05D6:
		cmps("poison");
		UcMessage("\"So! Thou hast discovered me!\"");
		UcSay;
		UcMessage("\"Yes, I poisoned thee, but I will not say at whose insistence it was done!\"");
		UcSay;
		if(!(!gflags[005A])) goto labelFunc0448_05F1;
		UcMessage("\"There is no antidote, so thou canst look forward to a long and painful death!\"");
		UcSay;
	labelFunc0448_05F1:
		UcMessage("\"I spit upon thee, pawn of the Demon British!\"");
		UcSay;
		var0009 = Func0992(Shamino, (("@Thou hast poisoned " + var0000) + " for the sake of Lord British?@"), 0x0000, false);
		if(!(var0009 != 0xFE9C)) goto labelFunc0448_0626;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, Fiend British!\"");
		UcSay;
	labelFunc0448_0626:
		UcMessage("\"I hate that monster! He represents all that is evil!\"");
		UcSay;
		if(!gflags[005A]) goto labelFunc0448_0637;
		UcMessage("\"Since the poison hath not killed thee, I see that I must do the job myself!\"");
		UcSay;
		goto labelFunc0448_063B;
	labelFunc0448_0637:
		UcMessage("\"Thou canst not take me to the dungeons without a fight!\"");
		UcSay;
	labelFunc0448_063B:
		gflags[00CA] = true;
		UI_clear_item_say_4E(0xFFB8);
		Func097F(0xFFB8, "@En garde!@", 0x0000);
		Func097F(Iolo, "@Stop her!@", 0x0002);
		Func09AC(0xFFB8, Dupre, 0x0000, 0x0000);
		Func09AD(0xFFB8);
		abrt();
	labelFunc0448_0674:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long...@", 0x0000);
		Func097F(0xFFB8, "@Good day!@", 0x0002);
		goto labelFunc0448_069E;
	labelFunc0448_069B:
		goto labelFunc0448_0317;
	labelFunc0448_069E:
		end_conv();
	labelFunc0448_069F:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0449 0x449 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = "He";
	if(!UI_is_pc_female_6F()) goto labelFunc0449_0013;
	var0000 = "She";
	labelFunc0449_0013:
		if(!(event == 0x0001)) goto labelFunc0449_0041;
		UI_item_say_4D(0xFE9C, "@Greetings, sir.@");
		0xFFB7;
		calle();
		Func097F(0xFFB7, "@What?@", 0x0002);
		UI_set_schedule_type_25(0xFFB7, 0x0003);
	labelFunc0449_0041:
		if(!(event == 0x0009)) goto labelFunc0449_0410;
		UI_run_schedule_B7(0xFFB7);
		UI_clear_item_say_4E(0xFFB7);
		UI_show_npc_face0_05(0xFFB7, 0x0000);
		var0001 = UI_get_item_flag_A3(0xFFB7, 0x001C);
		if(!(!gflags[0032])) goto labelFunc0449_007A;
		UcMessage("\"Say here! I'm Renfry the Cremator and there is a funeral in progress. Lords Marsten, Spektor, Brendann and Caladin are all in the crypts paying their last respects.\"");
		UcSay;
		abrt();
	labelFunc0449_007A:
		if(!(!gflags[0048])) goto labelFunc0449_00A5;
		UcMessage("\"I say, I say who is that? Art thou a stranger?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0449_009E;
		UcMessage("\"No, no, I do not speak with strangers... I only care to speak with my fellow Knights.\"");
		UcSay;
		Func097F(0xFFB7, "@Be gone...@", 0x0000);
		goto labelFunc0449_00A2;
	labelFunc0449_009E:
		UcMessage("\"Pardon me for not recognizing thee, Sir Knight. I be an old man, and mine eyesight is not what it once was.\"");
		UcSay;
	labelFunc0449_00A2:
		goto labelFunc0449_00A9;
	labelFunc0449_00A5:
		UcMessage("\"What? What? Oh, 'tis thee again.\"");
		UcSay;
	labelFunc0449_00A9:
		UI_add_answer_0C(["name", "duties"]);
		if(!gflags[00BE]) goto labelFunc0449_00C3;
		UI_add_answer_0C("Payment");
	labelFunc0449_00C3:
		if(!(gflags[00A3] && (!gflags[029B]))) goto labelFunc0449_00D5;
		UI_add_answer_0C("severed hand");
	labelFunc0449_00D5:
		UI_add_answer_0C("bye");
		var0002 = Func0942(Iolo);
		var0003 = Func0942(Shamino);
		var0004 = Func0942(Dupre);
	labelFunc0449_00F7:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Flame? Oh, yes, we keep the fires going constantly.\"");
		UcSay;
		var0005 = Func0992(0x0001, (("@@" + var0000) + " said NAME, old man. Not FLAME.@"), 0x0000, false);
		if(!(var0005 != 0xFE9C)) goto labelFunc0449_0148;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Oh. As thou canst tell, mine hearing is not what it once was. 'Tis the roar of the fires which hath done it...\"");
		UcSay;
		UcMessage("\"I am Renfry, Knight and Cremator.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB7, 0x001C);
	labelFunc0449_0148:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"What? Why, I am the undertaker of Monitor. Didst thou not know that? I thought everyone knew that. Do not forget, Knight, that one day I shall cremate thee!\"");
		UcSay;
		UI_add_answer_0C(["undertaker", "Body"]);
	labelFunc0449_0168:
		cmps("undertaker");
		UI_remove_answer_0D("undertaker");
		UcMessage("\"I take care of the dead. I am in charge of the Crematorium. I prepare bodies for cremation and oversee the chamber that houses the Ashes of the Dead.\"");
		UcSay;
		UI_add_answer_0C(["The Cremator", "Ashes of the Dead"]);
	labelFunc0449_0188:
		cmps("Ashes of the Dead");
		UI_remove_answer_0D("Ashes of the Dead");
		if(!(!gflags[0048])) goto labelFunc0449_01C0;
		UcMessage("\"'Tis mighty curious for thee to know so little of our customs -- art thou certain thou art a Knight?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0449_01AF;
		UcMessage("\"Then thou hast spent too much time on the list fields, and not enough time pondering the traditions of our people. Pay attention!\"");
		UcSay;
		goto labelFunc0449_01C0;
	labelFunc0449_01AF:
		UcMessage("\"I don't speak with strangers!\"");
		UcSay;
		Func097F(0xFFB7, "@To blazes!@", 0x0000);
		abrt();
	labelFunc0449_01C0:
		UcMessage("\"'Tis the Monitorian custom to cremate our dead. The ashes of a dead Knight are sacred. They represent the essence of that person's life, distilled by the mystical processes of the Cremator.\"");
		UcSay;
		UcMessage("\"In the Crypts of the Dead are urns filled with the ashes of generations of Knights. The Ashes of the Dead are our heritage.\"");
		UcSay;
		UI_add_answer_0C("mysticism");
	labelFunc0449_01CF:
		cmps("The Cremator");
		UI_remove_answer_0D("The Cremator");
		UcMessage("\"Be reverent when thou art in the presence of the Machine of Cremation, as it represents Death itself.\"");
		UcSay;
		UcMessage("\"After I throw the switch, the pumps begin to churn. When the heat builds, the trapdoor on top opens. The body then falls into the fires below.\"");
		UcSay;
		UcMessage("\"The mechanism retrieves the Ashes of the Dead, and places them in an urn. A travelling belt carries the urn out of the fiery belly of the machine, so that I may collect it and take it to the Crypts of the Dead.\"");
		UcSay;
		UcMessage("\"Careful with what thou wouldst put near the thing! It hath the capacity to destroy practically any object in the world!\"");
		UcSay;
		UI_add_answer_0C(["the Dead", "urn"]);
	labelFunc0449_01FB:
		cmps("the Dead");
		UI_remove_answer_0D("the Dead");
		UcMessage("\"I am glad thou didst mention that. Remember that, if thou shouldst ever stumble across the remains of a brave departed pikeman, thou must bring his body home for cremation.\"");
		UcSay;
		UcMessage("\"If thou dost not do this, the ghost of the dead will torment thee until thy dying day!\"");
		UcSay;
		UcMessage("\"I have been given authority by Lord Marsten to pay 100 monetari for every pikeman's body brought home again. That way they can be properly entombed within the crypts.\"");
		UcSay;
		gflags[0057] = true;
		UI_add_answer_0C("crypts");
	labelFunc0449_0221:
		cmps("crypts");
		UI_remove_answer_0D("crypts");
		UcMessage("\"They are just beyond the curtain in the crematorium.\"");
		UcSay;
	labelFunc0449_0234:
		cmps("urn");
		UI_remove_answer_0D("urn");
		UcMessage("\"Andral, our town sculptor, makes them.\"");
		UcSay;
		UI_add_answer_0C("Andral");
	labelFunc0449_024E:
		cmps("Andral");
		UI_remove_answer_0D("Andral");
		UcMessage("\"Talented but very solitary person, he is. Never leaves his house, except to go to his workplace. He was especially upset by the recent theft at his shop.\"");
		UcSay;
		UI_add_answer_0C("theft");
	labelFunc0449_0268:
		cmps("theft");
		UI_remove_answer_0D("theft");
		UcMessage("\"Had something to do with that sage who was in town recently. Andral will know more about it. Talk to him.\"");
		UcSay;
		gflags[0056] = true;
		var0005 = Func0992(0x0001, "@Dost thou know the name of this sage?@", 0x0000, false);
		if(!(var0005 != 0xFE9C)) goto labelFunc0449_02B4;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I have a perfect memory for names. 'Twas Badwin, I think. A very large man, with a hooded companion.\"");
		UcSay;
		Func094E(var0005, "@Must be Batlin!@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc0449_02B4:
		cmps("mysticism");
		UI_remove_answer_0D("mysticism");
		UcMessage("\"We are a community of Knights. For us, the world is a harsh place in which only the valiant survive.\"");
		UcSay;
		UcMessage("\"We do not trust magic -- thou couldst not sell a magical weapon in this town at any price! Yet there are powers greater than mere magic...\"");
		UcSay;
		UcMessage("\"One of these mysteries concerns the Ashes of the Dead. As we all know, the Ashes of Gurnordir lie at the end of Knight's Test. What is the power which causes the totem animal to appear? Not even I can say!\"");
		UcSay;
		UcMessage("\"And no one can explain the Serpent Gate, yet we have built our city above it.\"");
		UcSay;
		UI_add_answer_0C(["Gurnordir", "Serpent Gate"]);
	labelFunc0449_02E0:
		cmps("Gurnordir");
		UI_remove_answer_0D("Gurnordir");
		UcMessage("\"I can hardly do justice to the tale -- thou shouldst speak to Lord Marsten.\"");
		UcSay;
		UcMessage("\"Suffice it to say that when our blood is mixed with the ashes of the dead Goblin king Gurnordir, the totem animal of a Monitor knight appears.\"");
		UcSay;
		UcMessage("\"Gurnordir was our greatest foe! Do his ashes stand for hatred, and thus the animals are produced to try to slay us?\"");
		UcSay;
		UcMessage("\"Or do his ashes symbolize Courage? If so, this suggests that the Goblins have more in common with Monitorians than many would like to believe...\"");
		UcSay;
	labelFunc0449_02FF:
		cmps("Serpent Gate");
		UI_remove_answer_0D("Serpent Gate");
		UcMessage("\"A stone platform hidden in the Crypts...\"");
		UcSay;
		UcMessage("\"The inscribed serpent marks the stonework as being the product of the Daemons. Such daemons once dwelt throughout this land, but for as long as the Knights have been here, the Daemons have confined themselves to the dungeon called Furnace.\"");
		UcSay;
		UcMessage("\"By legend, the platform is called the Gate of the Serpent. But a gate to where? To what?\"");
		UcSay;
	labelFunc0449_031A:
		cmps("Payment");
		UI_remove_answer_0D("Payment");
		UcMessage("\"For thy service to Monitor and to the community of Knights I shall pay thee for thy trouble.\"");
		UcSay;
		UcMessage("\"I thank thee for cremating that once proud warrior.\"");
		UcSay;
		gflags[00BE] = false;
		var0006 = Func099B(0xFE9C, 0x0064, 0x03B7, 0xFE99, 0xFE99, true, true);
	labelFunc0449_034C:
		cmps("Body");
		UcMessage("\"Dost thou carry a pikeman's body for cremation?\"");
		UcSay;
		var0007 = 0x0000;
		if(!Func0955()) goto labelFunc0449_03D2;
		var0007 = UI_count_objects_31(0xFE9B, 0x0192, 0xFE99, 0x000B);
		var0007 = (var0007 + UI_count_objects_31(0xFE9B, 0x0190, 0xFE99, 0x0005));
		var0007 = (var0007 + UI_count_objects_31(0xFE9B, 0x0190, 0xFE99, 0x0006));
		if(!(var0007 > 0x0000)) goto labelFunc0449_03C7;
		if(!(var0007 == 0x0001)) goto labelFunc0449_03C0;
		UcMessage("\"Ah, place it there on the trapdoor on top of the Cremator. I will pay thee after thou hast performed the last rites for the fallen one.\"");
		UcSay;
		goto labelFunc0449_03C4;
	labelFunc0449_03C0:
		UcMessage("\"Ah, place them one at a time on the trapdoor on top of the Cremator.\" *\"I will pay thee after each one receives the final rites.\"");
		UcSay;
	labelFunc0449_03C4:
		goto labelFunc0449_03CB;
	labelFunc0449_03C7:
		UcMessage("\"Thou dost not carry a pikeman! I can only pay thee for bringing me the bodies of fallen knights. Only they deserve such respect...\"");
		UcSay;
	labelFunc0449_03CB:
		UI_remove_answer_0D("Body");
	labelFunc0449_03D2:
		cmps("severed hand");
		UI_remove_answer_0D("severed hand");
		UcMessage("\"I deduce that the severed hand found in thy possession is not dead. What manner of magic could do this? I have never seen its like.\"");
		UcSay;
	labelFunc0449_03E5:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Bye!@", 0x0000);
		Func097F(0xFFB7, "@What? Oh, goodbye.@", 0x0002);
		goto labelFunc0449_040F;
	labelFunc0449_040C:
		goto labelFunc0449_00F7;
	labelFunc0449_040F:
		end_conv();
	labelFunc0449_0410:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern var Func0988 0x988 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();

Func044A 0x44A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = Func0954();
	var0001 = UI_get_item_flag_A3(0xFFB6, 0x001C);
	var0002 = "stranger";
	if(!gflags[0048]) goto labelFunc044A_0025;
	var0002 = "Knight";
	labelFunc044A_0025:
		if(!(event == 0x0007)) goto labelFunc044A_00F8;
		if(!gflags[0083]) goto labelFunc044A_00E6;
		var0003 = UI_get_oppressor_5C(0xFFB6);
		var0003 = (0x0000 - var0003);
		if(!(!var0003)) goto labelFunc044A_0054;
		var0003 = 0xFE9C;
	labelFunc044A_0054:
		if(!((var0003 != 0xFE9C) && (!in(var0003, Func098D())))) goto labelFunc044A_00BF;
		var0000 = Func098D();
		var0000 = (var0000 & 0xFE9C);
		enum();
	labelFunc044A_0078:
		for (var0002 in var0000 with var0004 to var0005 atend labelFunc044A_0092);
		if(!Func0932(var0002)) goto labelFunc044A_008F;
		goto labelFunc044A_0098;
	labelFunc044A_008F:
		goto labelFunc044A_0078;
	labelFunc044A_0092:
		var0002 = 0xFE9C;
	labelFunc044A_0098:
		UI_set_oppressor_5E(0xFFB6, var0002);
		UI_set_oppressor_5E(var0003, var0002);
		Func0976(0xFFB6, 0x0003);
		Func0976(var0003, 0x0003);
		exit2();
	labelFunc044A_00BF:
		if(!(!gflags[0007])) goto labelFunc044A_00DC;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0003), UI_get_npc_object_23(0xFFB6));
		exit2();
	labelFunc044A_00DC:
		Func092E(var0003);
		exit2();
		goto labelFunc044A_00F8;
	labelFunc044A_00E6:
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc044A_00F8:
		if(!(event == 0x0000)) goto labelFunc044A_03B5;
		var0007 = UI_get_object_position_20(0xFFB6);
		if(!(var0007[0x0002] > 0x0A41)) goto labelFunc044A_026A;
		var0008 = UI_find_nearby_41(0xFFB6, Dupre, 0x0014, 0x0008);
		var0008 = Func0988(UI_get_npc_object_23(0xFFB6), var0008);
		var0009 = [];
		enum();
	labelFunc044A_0141:
		for (var000C in var0008 with var000A to var000B atend labelFunc044A_0167);
		if(!(UI_get_schedule_type_24(var000C) == 0x001B)) goto labelFunc044A_0164;
		var0009 = (var0009 & var000C);
	labelFunc044A_0164:
		goto labelFunc044A_0141;
	labelFunc044A_0167:
		if(!(var0009 == [])) goto labelFunc044A_0172;
		abrt();
	labelFunc044A_0172:
		UI_clear_item_say_4E(0xFFB6);
		var000D = var0009[UI_get_random_00(UI_get_array_size_73(var0009))];
		UI_clear_item_say_4E(var000D);
		var000E = UI_get_random_00(0x0006);
		if(!(var000E == 0x0001)) goto labelFunc044A_01BB;
		UI_item_say_4D(0xFFB6, "@Work harder!@");
		Func097F(var000D, "@Yes, Shazzana.@", 0x0003);
	labelFunc044A_01BB:
		if(!(var000E == 0x0002)) goto labelFunc044A_01DB;
		UI_item_say_4D(0xFFB6, "@Do not rest!@");
		Func097F(var000D, "@Sorry, madam.@", 0x0003);
	labelFunc044A_01DB:
		if(!(var000E == 0x0003)) goto labelFunc044A_01FB;
		UI_item_say_4D(var000D, "@Slave driver...@");
		Func097F(0xFFB6, "@I heard that!@", 0x0003);
	labelFunc044A_01FB:
		if(!(var000E == 0x0004)) goto labelFunc044A_021B;
		UI_item_say_4D(0xFFB6, "@With vigor!@");
		Func097F(var000D, "@Yes, Shazzana.@", 0x0003);
	labelFunc044A_021B:
		if(!(var000E == 0x0005)) goto labelFunc044A_023B;
		UI_item_say_4D(0xFFB6, "@Do not slow!@");
		Func097F(var000D, "@Yes, Shazzana.@", 0x0003);
	labelFunc044A_023B:
		if(!(var000E == 0x0006)) goto labelFunc044A_0267;
		UI_item_say_4D(0xFFB6, "@Very good!@");
		Func097F(var000D, "@Thanks.@", 0x0003);
		Func097F(0xFFB6, "@Keep working.@", 0x0006);
	labelFunc044A_0267:
		goto labelFunc044A_03B5;
	labelFunc044A_026A:
		var000F = [0xFFC1, 0xFF6A];
		if(!(!gflags[0092])) goto labelFunc044A_0287;
		var000F = (var000F & 0xFFB3);
	labelFunc044A_0287:
		enum();
	labelFunc044A_0288:
		for (var000C in var000F with var0010 to var0011 atend labelFunc044A_02AD);
		if(!(!UI_npc_nearby_3A(var000C))) goto labelFunc044A_02AA;
		var000F = Func0988(var000C, var000F);
	labelFunc044A_02AA:
		goto labelFunc044A_0288;
	labelFunc044A_02AD:
		if(!(var000F == [])) goto labelFunc044A_02B8;
		abrt();
	labelFunc044A_02B8:
		UI_clear_item_say_4E(0xFFB6);
		var000D = var000F[UI_get_random_00(UI_get_array_size_73(var000F))];
		UI_clear_item_say_4E(var000D);
		var000E = UI_get_random_00(0x0006);
		if(!(var000E == 0x0001)) goto labelFunc044A_0301;
		UI_item_say_4D(0xFFB6, "@Do it my way!@");
		Func097F(var000D, "@Don't dictate to me!@", 0x0003);
	labelFunc044A_0301:
		if(!(var000E == 0x0002)) goto labelFunc044A_0315;
		UI_item_say_4D(0xFFB6, "@We should not argue.@");
	labelFunc044A_0315:
		if(!(var000E == 0x0003)) goto labelFunc044A_0335;
		UI_item_say_4D(var000D, "@Exterminate the Goblins!@");
		Func097F(0xFFB6, "@I agree.@", 0x0003);
	labelFunc044A_0335:
		if(!(var000E == 0x0004)) goto labelFunc044A_0375;
		if(!(!gflags[00B4])) goto labelFunc044A_035F;
		UI_item_say_4D(0xFFB6, "@The crops sicken.@");
		Func097F(var000D, "@Is the world ending?@", 0x0003);
		goto labelFunc044A_0375;
	labelFunc044A_035F:
		UI_item_say_4D(0xFFB6, "@Money is missing.@");
		Func097F(var000D, "@Must find the thief.@", 0x0003);
	labelFunc044A_0375:
		if(!(var000E == 0x0005)) goto labelFunc044A_0395;
		UI_item_say_4D(var000D, "@Kill Marsten!@");
		Func097F(0xFFB6, "@But how...?", 0x0002);
	labelFunc044A_0395:
		if(!(var000E == 0x0006)) goto labelFunc044A_03B5;
		UI_item_say_4D(var000D, "@As I was saying...@");
		Func097F(0xFFB6, "@Be silent!@", 0x0003);
	labelFunc044A_03B5:
		if(!(event == 0x0001)) goto labelFunc044A_03E3;
		UI_item_say_4D(0xFE9C, "@Hail, Knight!@");
		0xFFB6;
		calle();
		Func097F(0xFFB6, "@Yes?@", 0x0002);
		UI_set_schedule_type_25(0xFFB6, 0x0003);
	labelFunc044A_03E3:
		if(!(event == 0x0009)) goto labelFunc044A_06CA;
		UI_run_schedule_B7(0xFFB6);
		UI_clear_item_say_4E(0xFFB6);
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		if(!(!var0001)) goto labelFunc044A_0422;
		UcMessage("\"We have not had many strangers in our town lately. Let me introduce myself. I am Shazzana, a Knight of the Leopards.\"");
		UcSay;
		UI_add_answer_0C("Leopards");
		UI_set_item_flag_A4(0xFFB6, 0x001C);
		goto labelFunc044A_0426;
	labelFunc044A_0422:
		UcMessage("\"I am not one to waste time with words. What is thy business with me, Knight?\"");
		UcSay;
	labelFunc044A_0426:
		UI_add_answer_0C(["duties"]);
		if(!gflags[00A8]) goto labelFunc044A_043D;
		UI_add_answer_0C("mysterious sailor");
	labelFunc044A_043D:
		if(!gflags[00CC]) goto labelFunc044A_044A;
		UI_add_answer_0C("Pomdirgun");
	labelFunc044A_044A:
		if(!gflags[0044]) goto labelFunc044A_0457;
		UI_add_answer_0C("Simon");
	labelFunc044A_0457:
		UI_add_answer_0C("bye");
	labelFunc044A_045E:
		UcAsk;
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"Thou hast killed the Goblin King Pomdirgun. How wonderful!\"");
		UcSay;
	labelFunc044A_0474:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		UcMessage("\"I understand thou didst determine that the traitor in our town was Simon. I am certain thou didst deal properly with him.\"");
		UcSay;
	labelFunc044A_0487:
		cmps("mysterious sailor");
		UI_remove_answer_0D("mysterious sailor");
		UcMessage("\"The mysterious sailor thou dost speak of was a pirate by the name of Deadeye. We engaged in knightly combat on the List Field and in a more esoteric form of hand to hand combat elsewhere. He was most... diverting.\"");
		UcSay;
		UcMessage("\"There was a very strange man who came into town not long ago. He said his name was Batlin. He wanted me to work for him.  But I felt I could not trust him, so I refused.\"");
		UcSay;
	labelFunc044A_049E:
		cmps("duties");
		UI_remove_answer_0D("duties");
		if(!(!gflags[0048])) goto labelFunc044A_04CC;
		UcMessage("\"What business is this of thine? If thou dost wish to train with me, then meet me at the List Field at noon.\"");
		UcSay;
		UcMessage("\"If not, then be on thy way.\"");
		UcSay;
		Func097F(0xFFB6, "@At noon...@", 0x0000);
		abrt();
		goto labelFunc044A_04E1;
	labelFunc044A_04CC:
		UcMessage("\"I am one of the best fighters in this town. This is why all of the Knights desire to be trained by me.\"");
		UcSay;
		UcMessage("\"I fight harder than any man or woman alive. I commonly win, but when I do not, the victor knows that they were in a terrific fight.\"");
		UcSay;
		UI_add_answer_0C(["best", "train"]);
	labelFunc044A_04E1:
		cmps("best");
		UI_remove_answer_0D("best");
		UcMessage("\"There are few who can match me! The secret is to be in control. A Knight who doth lose his temper in battle is a defeated Knight.\"");
		UcSay;
		UcMessage("\"The Bears say that strength is the key. Well, I can strike before those over-muscled brutes can react!\"");
		UcSay;
		UcMessage("\"The Wolves pride themselves on cunning. Fools! They cannot think past my blinding sword strikes.\"");
		UcSay;
		UcMessage("\"Since thou hast questioned my skill, I challenge thee to a match. Dost thou accept?\"");
		UcSay;
		if(!Func0955()) goto labelFunc044A_0511;
		UcMessage("\"Meet me upon the List Field at noon, and I shall teach thee to appreciate my skill with a blade.\"");
		UcSay;
		UcMessage("\"If thou dost not show, then I shall know thee for the coward thou art.\"");
		UcSay;
		goto labelFunc044A_0522;
	labelFunc044A_0511:
		UcMessage("\"Thou art not worthy of thy Knighthood...\"");
		UcSay;
		Func097F(0xFFB6, "@Pah!@", 0x0000);
		abrt();
	labelFunc044A_0522:
		UI_add_answer_0C(["Bears", "Wolves"]);
	labelFunc044A_052F:
		cmps("train");
		UI_remove_answer_0D("train");
		UcMessage("\"I teach the art of combat. My technique is based on swiftness and accuracy of movement. If thou wert to be at the List Field at noon, I could spar with thee.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc044A_05CF;
		UcMessage("\"I am certain I could also teach thy friend a thing or two...\"");
		UcSay;
		var0012 = UI_get_item_flag_A3(Iolo, 0x0006);
		var0013 = UI_get_item_flag_A3(Shamino, 0x0006);
		var0014 = UI_get_item_flag_A3(Dupre, 0x0006);
		if(!var0012) goto labelFunc044A_0594;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Art thou referring to me?\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc044A_0594:
		if(!var0014) goto labelFunc044A_05AC;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"I believe she was referring to thee!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc044A_05AC:
		if(!var0013) goto labelFunc044A_05C4;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"I believe it was thee she was referring to, Avatar.\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc044A_05C4:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I can train anyone.\"");
		UcSay;
	labelFunc044A_05CF:
		cmps("Leopards");
		UI_remove_answer_0D("Leopards");
		UcMessage("\"The Wolves and the Bears are full of dreams. We Leopards are realistic. We live one day at a time.\"");
		UcSay;
	labelFunc044A_05E2:
		cmps("Wolves");
		UI_remove_answer_0D("Wolves");
		UcMessage("\"The Wolves have this grand scheme for uniting the Three Cities into a commonwealth, united by trade routes.\"");
		UcSay;
		UcMessage("\"How can this be, when the Goblins threaten our very existence? The Wolves are simply not practical.\"");
		UcSay;
	labelFunc044A_05F9:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		UcMessage("\"The Bears believe in a strong defense, I will give them that! But we cannot hide behind Monitor's walls -- we must seek out our enemies.\"");
		UcSay;
		UcMessage("\"Our highest priority should be to raid that hidden Goblin camp, and destroy that evil race!\"");
		UcSay;
		UI_add_answer_0C(["raid", "destroy"]);
	labelFunc044A_061D:
		cmps("raid");
		UI_remove_answer_0D("raid");
		UcMessage("\"We must take back the Helm of Monitor, and avenge the death of Astrid!\"");
		UcSay;
		UcMessage("\"War is the ultimate test for any Knight. This is how one doth test one's inner strength.\"");
		UcSay;
		UcMessage("\"War is both holy and obscene, beautiful and yet hideous. I love it. I am very good at it.\"");
		UcSay;
		UI_add_answer_0C(["Astrid", "Helm of Monitor"]);
	labelFunc044A_0645:
		cmps("Astrid");
		UI_remove_answer_0D("Astrid");
		UcMessage("\"Astrid was a magnificent Knight Champion! Even though she was a Bear and I a Leopard, we were boon companions.\"");
		UcSay;
		UcMessage("\"It takes a rare individual to lead warriors in combat. Astrid united us against the Goblins. Now I fear the Bears and Wolves shall squabble again...\"");
		UcSay;
	labelFunc044A_065C:
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"The Helm was originally taken from the old goblin king, Gurnordir, in the days of the Goblin Horde.\"");
		UcSay;
		UcMessage("\"It is an ancient and powerful talisman, endowed with the Principle of Courage. Thus, it can only be worn by the bravest of warriors.\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc044A_0680;
		UcMessage("\"Now thou art the Champion Knight of Monitor. It was an honor I had wished for myself. But I must admit thou dost wear it well.\"");
		UcSay;
		goto labelFunc044A_0684;
	labelFunc044A_0680:
		UcMessage("\"Astrid was such a person. When I become the Knight Champion and the Helm is recovered, I shall wear it in Astrid's memory.\"");
		UcSay;
	labelFunc044A_0684:
		cmps("destroy");
		UI_remove_answer_0D("destroy");
		UcMessage("\"If the Goblins refuse to concede that this territory belongs to us, then what else shall we do? Sue for peace?!\"");
		UcSay;
		UcMessage("\"We must wage war against them until they are all dead. This is the nature of the world. So be it.\"");
		UcSay;
	labelFunc044A_069B:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "Good day to thee.", 0x0000);
		Func097F(0xFFB6, "And to thee.", 0x0002);
		goto labelFunc044A_06C9;
	labelFunc044A_06C6:
		goto labelFunc044A_045E;
	labelFunc044A_06C9:
		end_conv();
	labelFunc044A_06CA:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0955 0x955 ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A6 0x9A6 (var var0000);
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);

Func044B 0x44B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;

	var0000 = Func0953();
	var0001 = Func0994();
	if(!(event == 0x0001)) goto labelFunc044B_007E;
	UI_item_say_4D(0xFE9C, "@Greetings, Guard!@");
	Shmed;
	calle();
	if(!gflags[0004]) goto labelFunc044B_0052;
	UI_show_npc_face0_05(Shmed, 0x0000);
	UcMessage("\"It was horrible! I was a wolf! I know I was! I saw myself in a reflection on a puddle of water!\"");
	UcSay;
	UI_set_attack_mode_59(Shmed, 0x0007);
	Func097F(Shmed, "@Aieee!!@", 0x0000);
	abrt();
	goto labelFunc044B_007E;
	labelFunc044B_0052:
		if(!(!gflags[004A])) goto labelFunc044B_0068;
		Func097F(Shmed, "@Greetings!@", 0x0002);
		goto labelFunc044B_0074;
	labelFunc044B_0068:
		Func097F(Shmed, "@It cannot be!@", 0x0002);
	labelFunc044B_0074:
		UI_set_schedule_type_25(Shmed, 0x0003);
	labelFunc044B_007E:
		if(!((event == 0x0007) && UI_get_item_flag_A3(Shmed, 0x001D))) goto labelFunc044B_00E1;
		UI_clear_item_say_4E(Shmed);
		if(!(!gflags[00C5])) goto labelFunc044B_00B1;
		UI_show_npc_face0_05(Shmed, 0x0000);
		UcMessage("\"But I don't understand. How didst thou survive the Knight's Test? We fixed the place with traps to be absolutely fatal!\"");
		UcSay;
		UcMessage("\"I did not want to do it. She seduced me into trying to kill thee! Yet even now, I cannot betray her...\"");
		UcSay;
	labelFunc044B_00B1:
		UI_clear_item_flag_A5(Shmed, 0x001D);
		Func097F(Shmed, "@My love!@", 0x0000);
		Func097F(0xFE9C, "@Die with dishonor!@", 0x0005);
		UI_reduce_health_87(Shmed, 0x0037, 0x0000);
		abrt();
	labelFunc044B_00E1:
		if(!(event == 0x0009)) goto labelFunc044B_05FD;
		UI_run_schedule_B7(Shmed);
		UI_clear_item_say_4E(Shmed);
		var0002 = false;
		if(!(var0001 == 0x000C)) goto labelFunc044B_0109;
		var0002 = true;
	labelFunc044B_0109:
		UI_show_npc_face0_05(Shmed, 0x0000);
		if(!gflags[004A]) goto labelFunc044B_0142;
		UcMessage("\"But I don't understand. How didst thou survive the Knight's Test? We fixed the place with traps to be absolutely fatal!\"");
		UcSay;
		UcMessage("\"I did not want to do it. She seduced me into trying to kill thee! Yet even now, I cannot betray her...\"");
		UcSay;
		Func09AD(Shmed);
		UI_set_item_flag_A4(Shmed, 0x001D);
		Func097F(Shmed, "@Take this!@", 0x0000);
		gflags[00C5] = true;
		abrt();
	labelFunc044B_0142:
		var0003 = UI_get_item_flag_A3(Shmed, 0x001C);
		if(!var0003) goto labelFunc044B_015C;
		UcMessage("\"Hello again.\"");
		UcSay;
		goto labelFunc044B_016E;
	labelFunc044B_015C:
		UcMessage("\"My name is Shmed. I am a Knight of Monitor, at thy service...\"");
		UcSay;
		UI_set_item_flag_A4(Shmed, 0x001C);
		var0004 = false;
	labelFunc044B_016E:
		if(!gflags[0080]) goto labelFunc044B_017B;
		UI_add_answer_0C("the Test");
	labelFunc044B_017B:
		UI_add_answer_0C(["duties", "bye"]);
	labelFunc044B_0188:
		UcAsk;
		cmps("duties");
		UI_remove_answer_0D("duties");
		if(!gflags[004A]) goto labelFunc044B_01A4;
		UcMessage("\"But thou already knowest!\"");
		UcSay;
	labelFunc044B_01A4:
		UcMessage("\"I am the Knight in charge of the Test of the Knights.\"");
		UcSay;
		if(!var0002) goto labelFunc044B_01B2;
		UcMessage("\"The Test takes place here, beyond that locked door.\"");
		UcSay;
	labelFunc044B_01B2:
		if(!(!var0004)) goto labelFunc044B_01C0;
		UI_add_answer_0C("the Test");
	labelFunc044B_01C0:
		cmps("the Test");
		var0004 = true;
		UI_remove_answer_0D("the Test");
		if(!(!gflags[004A])) goto labelFunc044B_05CE;
		UcMessage("\"All Monitorians must pass the Test before they can be granted their Knighthood.\"");
		UcSay;
		UcMessage("\"The Test of the Knights is a challenge which only one stout of heart, keen of mind and strong of arm can pass. It is specially designed to test thy might, thy fleetness, thy courage and thy wits. If thou dost complete the test thou shouldst follow the directions of the words contained in the scrolls that thou wilt find. Thy totem animal will then appear. Slay it and take it back to town. Cellia will take its skin to make a cloak for thee. Lucilla will cook its meat. All the Knights will have a banquet in thine honor -- if thou dost pass the test.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc044B_021A;
		UcMessage("\"It is a test which one must endure alone, without companions.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFD4, 0x0006)) goto labelFunc044B_021A;
		Func094E(0xFFD4, (("@But not before finishing our quest, " + var0000) + "!@"));
		UI_set_conversation_slot_09(0x0000);
	labelFunc044B_021A:
		if(!(!gflags[002F])) goto labelFunc044B_022C;
		UcMessage("\"If thou dost wish to take the Test, thou must speak with Lord Marsten and obtain his permission.\"");
		UcSay;
		gflags[003C] = true;
		goto labelFunc044B_05CE;
	labelFunc044B_022C:
		if(!var0002) goto labelFunc044B_05C2;
		UcMessage("\"Dost thou wish to test thy mettle by taking the Test of Knighthood?\"");
		UcSay;
		var0005 = Func0955();
		if(!var0005) goto labelFunc044B_05AE;
		var0006 = UI_get_object_position_20(Shmed);
		var0007 = var0006[0x0001];
		var0008 = var0006[0x0002];
		if(!(!((var0007 > 0x0319) && ((var0007 < 0x0347) && ((var0008 > 0x08BD) && (var0008 < 0x08E2)))))) goto labelFunc044B_02AE;
		UI_show_npc_face0_05(Shmed, 0x0000);
		UcMessage("\"Come to the building just south of the entrance to Knight's Test. There I can properly attend to thee before the test.\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		UI_item_say_4D(0xFE9C, "@Farewell.@");
		Func097F(Shmed, "@See thee there...@", 0x0002);
		abrt();
	labelFunc044B_02AE:
		UI_show_npc_face0_05(Shmed, 0x0000);
		UcMessage("\"Pray tell, what be the password?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Courage is the Soul of Life.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Steel thyself! If thou dost make it through to the other side, then all will know that thou art worthy to be a Knight of Monitor.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc044B_03F4;
		UcMessage("\"Thy friends must wait for thee here.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFD4, 0x0006)) goto labelFunc044B_0321;
		Func094E(0xFFD4, "@Then he cannot take this Test! I refuse to leave!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I cannot change the rules of the Test. Therefore, I cannot admit thee, stranger.\"");
		UcSay;
		Func097F(Shmed, "@Good-bye.@", 0x0000);
		abrt();
	labelFunc044B_0321:
		gflags[0082] = true;
		Func09AC(Shmed, Dupre, 0x0000, 0x000B);
		var0009 = Func0992(Dupre, "@Couldn't we wait at the pub in town?@", 0x0000, false);
		if(!(var0009 != 0xFE9C)) goto labelFunc044B_039F;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc044B_0398;
		var000A = var0009;
	labelFunc044B_0363:
		if(!(var000A == var0009)) goto labelFunc044B_0380;
		var000A = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc044B_0363;
	labelFunc044B_0380:
		var000A = Func0992(var000A, (("@Of course not. We shall wait faithfully for thee here, " + var0000) + ".@"), 0x0000, false);
	labelFunc044B_0398:
		UI_set_conversation_slot_09(0x0000);
	labelFunc044B_039F:
		var000B = UI_get_party_list2_AA();
		if(!var000B) goto labelFunc044B_03F4;
		enum();
	labelFunc044B_03AD:
		for (var000E in var000B with var000C to var000D atend labelFunc044B_03F4);
		if(!(!(UI_get_npc_number_47(var000E) == 0xFE9C))) goto labelFunc044B_03F1;
		UI_remove_from_party_27(var000E);
		var000F = [0x0322, 0x08DA];
		UI_set_new_schedules_B6(var000E, 0x0000, 0x000B, var000F);
		UI_run_schedule_B7(var000E);
	labelFunc044B_03F1:
		goto labelFunc044B_03AD;
	labelFunc044B_03F4:
		UI_clear_item_flag_A5(0xFE9C, 0x0000);
		var0010 = UI_find_nearby_41(Shmed, 0x020A, 0x0064, 0x0000);
		var0011 = 0x0000;
		enum();
	labelFunc044B_0418:
		for (var0014 in var0010 with var0012 to var0013 atend labelFunc044B_0444);
		if(!(UI_get_item_quality_1C(var0014) == 0x0048)) goto labelFunc044B_0441;
		UI_set_item_shape_14(var0014, 0x0320);
		var0011 = var0014;
	labelFunc044B_0441:
		goto labelFunc044B_0418;
	labelFunc044B_0444:
		if(!(var0011 == 0x0000)) goto labelFunc044B_0487;
		var0015 = UI_create_new_object_2C(0x0320);
		if(!var0015) goto labelFunc044B_0480;
		var0016 = UI_set_item_quality_1D(var0015, 0x0048);
		var0016 = UI_update_last_created_2F(UI_get_object_position_20(item));
		var0011 = var0015;
		goto labelFunc044B_0487;
	labelFunc044B_0480:
		UI_error_message_40("backup chest creation failed.");
	labelFunc044B_0487:
		UcMessage("\"For now I will take thy things and keep them safe. Thou art only permitted to wear leather armour and to carry no other weapon but a simple mace when thou art taking the Knight's Test of Monitor.\"");
		UcSay;
		var0017 = 0x0000;
		var0018 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc044B_04A4:
		if(!(var0017 < 0x0002)) goto labelFunc044B_0539;
		enum();
	labelFunc044B_04AF:
		for (var001B in var0018 with var0019 to var001A atend labelFunc044B_0519);
		if(!(Func09A6(var001B) || (var0017 == 0x0001))) goto labelFunc044B_0516;
		var001C = UI_get_item_shape_18(var001B);
		if(!(!((var001C == 0x01E6) || ((var001C == 0x025F) || (var001C == 0x01E5))))) goto labelFunc044B_0516;
		if(!(!UI_set_last_created_2E(var001B))) goto labelFunc044B_0503;
		UI_error_message_40(" failed the push!");
		abrt();
	labelFunc044B_0503:
		if(!(!UI_give_last_created_43(var0011))) goto labelFunc044B_0516;
		UI_error_message_40(" failed the pop!");
		abrt();
	labelFunc044B_0516:
		goto labelFunc044B_04AF;
	labelFunc044B_0519:
		var0017 = (var0017 + 0x0001);
		var0018 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc044B_04A4;
	labelFunc044B_0539:
		var0015 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0293, 0xFE99, 0x0000, false);
		var0015 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0239, 0xFE99, 0x0000, false);
		UI_si_path_run_usecode_C1(Shmed, [0x0339, 0x08D7, 0x0000], 0x0007, 0xFE9C, 0x0739, true);
		Func097F(Shmed, "@Follow me...@", 0x0002);
		Func097F(0xFE9C, "@Lead onwards...@", 0x0005);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		abrt();
		goto labelFunc044B_05BF;
	labelFunc044B_05AE:
		UcMessage("\"Harrumph! Perhaps when thou hast found a bit of courage!\"");
		UcSay;
		Func097F(Shmed, "@Be on thy way then!@", 0x0003);
		abrt();
	labelFunc044B_05BF:
		goto labelFunc044B_05CE;
	labelFunc044B_05C2:
		UcMessage("\"If thou dost meet me at the Place of the Test, thou canst take the Test of Knighthood.\"");
		UcSay;
		UcMessage("\"Follow the Kings' Road north of Monitor, then take the trail leading west.\"");
		UcSay;
		UcMessage("\"I can be found there everyday, from dawn until late in the afternoon.\"");
		UcSay;
	labelFunc044B_05CE:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Farewell.@", 0x0000);
		Func097F(Shmed, "@On thy way, then.@", 0x0002);
		goto labelFunc044B_0658;
	labelFunc044B_05F9:
		goto labelFunc044B_0188;
	labelFunc044B_05FC:
		end_conv();
	labelFunc044B_05FD:
		if(!(event == 0x0002)) goto labelFunc044B_0658;
		var001D = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
		enum();
	labelFunc044B_0619:
		for (var0020 in var001D with var001E to var001F atend labelFunc044B_0658);
		if(!(UI_get_item_quality_1C(var0020) == 0x0048)) goto labelFunc044B_0655;
		if(!(Func0906(var0020) == 0x0002)) goto labelFunc044B_0655;
		Func0907(var0020, 0x0000);
		Func094F(item, ["There thou dost go...", "Thou mayest begin."]);
	labelFunc044B_0655:
		goto labelFunc044B_0619;
	labelFunc044B_0658:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094E 0x94E (var var0000, var var0001);
extern Func0620 0x620 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func044C 0x44C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = Func0954();
	var0001 = UI_get_item_flag_A3(0xFFB4, 0x001C);
	var0002 = Func0953();
	var0003 = false;
	if(!((event == 0x0007) && ((gflags[0045] || gflags[005F]) && ((!UI_get_item_flag_A3(0xFFB4, 0x001E)) && (!gflags[0044]))))) goto labelFunc044C_015C;
	UI_show_npc_face0_05(0xFFB4, 0x0000);
	UcMessage("\"So, thou hast found me out? Well, to the blazes with it all!\"");
	UcSay;
	UI_set_item_flag_A4(0xFFB4, 0x001E);
	UI_set_item_flag_A4(0xFFB4, 0x0004);
	var0004 = UI_get_object_position_20(0xFFB4);
	var0004[0x0001] = (var0004[0x0001] - (var0004[0x0003] / 0x0002));
	var0004[0x0002] = (var0004[0x0002] - (var0004[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0015, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0077);
	UI_remove_npc_4C(0xFFB4);
	UI_move_object_4B(0xFFBE, var0004);
	UI_set_alignment_4A(0xFFBE, 0x0002);
	UI_set_new_schedules_B6(0xFFBE, 0x0000, 0x0004, [var0004[0x0001], var0004[0x0002]]);
	UI_run_schedule_B7(0xFFBE);
	Func097F(0xFFBE, "@Lorfag Tar!@", 0x0002);
	var0005 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000F, 0x55, 0x0442]);
	gflags[0044] = true;
	var0005 = UI_find_nearby_41(0xFE9C, Dupre, 0x0028, 0x0008);
	enum();
	labelFunc044C_0139:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc044C_015B);
		UI_set_oppressor_5E(var0008, 0xFFBE);
		UI_set_opponent_5B(var0008, 0xFFBE);
		goto labelFunc044C_0139;
	labelFunc044C_015B:
		abrt();
	labelFunc044C_015C:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFB4) != 0x000A))) goto labelFunc044C_01CA;
		Func097F(0xFE9C, "@Hello!@", 0x0000);
		0xFFB4;
		calle();
		Func097F(0xFFB4, "@Welcome!@", 0x0002);
		if(!(UI_get_schedule_type_24(0xFFB4) != 0x0007)) goto labelFunc044C_01A9;
		UI_set_schedule_type_25(0xFFB4, 0x0003);
		goto labelFunc044C_01CA;
	labelFunc044C_01A9:
		var0005 = UI_delayed_execute_usecode_array_02(0xFFB4, [0x23, 0x55, 0x044C], 0x0005);
		UI_set_schedule_type_25(0xFFB4, 0x000A);
	labelFunc044C_01CA:
		if(!(event == 0x0002)) goto labelFunc044C_01D6;
		event = 0x0009;
	labelFunc044C_01D6:
		if(!(event == 0x0009)) goto labelFunc044C_0953;
		UI_run_schedule_B7(0xFFB4);
		UI_clear_item_say_4E(0xFFB4);
		UI_show_npc_face0_05(0xFFB4, 0x0000);
		if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc044C_022F;
		UI_clear_item_flag_A5(0xFE9C, 0x000F);
		gflags[00B8] = true;
		UcMessage("\"Unusual taste, eh? I dare say I am the only one outside of the city of Fawn who drinks it.\"");
		UcSay;
		UcMessage("\"I would share more with thee, but I think that thou dost not appreciate it. Besides, I must clean this foulness!\"");
		UcSay;
		UI_set_schedule_type_25(0xFFB4, 0x000B);
		Func097F(0xFFB4, "@Such a waste!@", 0x0000);
		abrt();
	labelFunc044C_022F:
		if(!(!var0001)) goto labelFunc044C_0247;
		UcMessage("\"How may I help thee? My name is Simon.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB4, 0x001C);
		goto labelFunc044C_0251;
	labelFunc044C_0247:
		UcMessage("\"How can I help, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc044C_0251:
		UI_add_answer_0C(["duties", "visitors"]);
		if(!(gflags[0045] && gflags[005F])) goto labelFunc044C_026F;
		UI_add_answer_0C("brown bottle");
	labelFunc044C_026F:
		if(!(gflags[00A1] && (!gflags[0297]))) goto labelFunc044C_0281;
		UI_add_answer_0C("strange wine");
	labelFunc044C_0281:
		if(!gflags[0048]) goto labelFunc044C_028E;
		UI_add_answer_0C("traitor");
	labelFunc044C_028E:
		UI_add_answer_0C("bye");
	labelFunc044C_0295:
		UcAsk;
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the innkeeper of The Sleeping Soldier, Monitor's inn. If thou dost need a bed, I can certainly accommodate thee.\"");
		UcSay;
		if(!(!gflags[00B8])) goto labelFunc044C_02BD;
		UcMessage("\"Or if thou dost care to join me in a bottle of ale, I will gladly share with thee.\"");
		UcSay;
		UI_add_answer_0C("ale");
	labelFunc044C_02BD:
		UI_add_answer_0C(["innkeeper", "The Sleeping Soldier", "Monitor", "bed"]);
	labelFunc044C_02D0:
		cmps("innkeeper");
		UI_remove_answer_0D("innkeeper");
		UcMessage("\"I have been Monitor's innkeeper for -- well, longer than I care to remember! I am probably the oldest person in town. I can remember when Marsten, our current Lord of Monitor, was but a baby! But I have no complaints. It hath been a fair life.\"");
		UcSay;
		UI_add_answer_0C("life");
	labelFunc044C_02EA:
		cmps("life");
		UI_remove_answer_0D("life");
		UcMessage("\"Well, one cannot truly control one's destiny, can one? I have had my share of misfortune. I have learned to move forward and try and forget the past.\"");
		UcSay;
		UI_add_answer_0C(["misfortune", "the past"]);
	labelFunc044C_030A:
		cmps("misfortune");
		UI_remove_answer_0D("misfortune");
		UcMessage("\"Alas, long ago, my young bride was killed by Goblins. We had ventured out onto the roads to journey to Fawn. At that time I was a Knight, and I stupidly believed that I could protect her on mine own. We were ambushed by the foul creatures. I barely escaped with mine own life.\"");
		UcSay;
	labelFunc044C_031D:
		cmps("the past");
		UI_remove_answer_0D("the past");
		UcMessage("\"When I was young I was a Knight of Monitor. I suppose technically I still am. Mine age prevents me from performing any Quests of Courage or going on patrol, of course. I passed the Test of Knighthood, but shortly afterwards the incident with the Goblins occurred. I am afraid that I had no more desire to battle after that. I have chosen to live quietly and run the inn.\"");
		UcSay;
	labelFunc044C_0330:
		cmps("The Sleeping Soldier");
		UI_remove_answer_0D("The Sleeping Soldier");
		UcMessage("\"'Tis an old inn. As old as Monitor itself. I can gladly accommodate thee if thou dost wish.\"");
		UcSay;
	labelFunc044C_0343:
		cmps("Monitor");
		UI_remove_answer_0D("Monitor");
		UcMessage("\"I have lived here all my life. My parents were killed when I was very young. In a Goblin raid, of course. Most deaths are usually caused by Goblins. We have spent our entire history fighting the creatures.\"");
		UcSay;
		UI_add_answer_0C("Goblins");
	labelFunc044C_035D:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"No one knows where their home is. Templar is our local Goblin expert, so thou shouldst speak with him.\"");
		UcSay;
		gflags[00A4] = true;
		UcMessage("\"Since the death of Astrid, some say that there is a traitor amongst us -- selling our secrets to the Goblins.\"");
		UcSay;
		if(!(!var0003)) goto labelFunc044C_0386;
		UI_add_answer_0C("traitor");
	labelFunc044C_0386:
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		var0003 = true;
		UcMessage("\"I have mine own suspicions. Take a close look at Krayg. He seems to spend a lot of time in the woods on long walks... alone.\"");
		UcSay;
		var0009 = true;
	labelFunc044C_03A1:
		cmps("bed");
		UI_remove_answer_0D("bed");
		if(!(UI_get_schedule_type_24(0xFFB4) == 0x0007)) goto labelFunc044C_0467;
		UcMessage("\"The cost is 5 monetari per person. Wouldst thou like a room for the night?\"");
		UcSay;
		if(!Func0955()) goto labelFunc044C_0460;
		var000A = (UI_get_array_size_73(UI_get_party_list_2B()) * 0x0005);
		var000B = UI_count_objects_31(0xFE9B, 0x03B7, 0xFE99, 0xFE99);
		if(!(var000B >= var000A)) goto labelFunc044C_042A;
		UcMessage("\"Here is thy key.\"");
		UcSay;
		var000C = UI_remove_party_items_34(var000A, 0x03B7, 0xFE99, 0xFE99, 0x0000);
		var0005 = Func099B(0xFE9C, 0x0001, 0x0281, 0x004A, 0x0006, 0x0000, true);
		goto labelFunc044C_045D;
	labelFunc044C_042A:
		var000D = Func0992(0x0001, "@But we do not have enough money...@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		if(!(var000D == 0xFE9C)) goto labelFunc044C_0452;
		UcMessage("\"I do believe thou dost not have enough monetari. Please return when thou dost have the appropriate amount.\"");
		UcSay;
		goto labelFunc044C_045D;
	labelFunc044C_0452:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Please return when thou dost have the appropriate amount.\"");
		UcSay;
	labelFunc044C_045D:
		goto labelFunc044C_0464;
	labelFunc044C_0460:
		UcMessage("\"Some other time, then.\"");
		UcSay;
	labelFunc044C_0464:
		goto labelFunc044C_046B;
	labelFunc044C_0467:
		UcMessage("\"I can give thee a room if thou wilt come to mine inn when I am open!\"");
		UcSay;
	labelFunc044C_046B:
		cmps("ale");
		UI_remove_answer_0D("ale");
		UcMessage("\"Yes, thou mayest drink thy fill of ale here. But I am particularly fond of mine own personal brand of ale. Have a drink?\"");
		UcSay;
		gflags[005F] = true;
		if(!gflags[0045]) goto labelFunc044C_048F;
		UI_add_answer_0C("brown bottle");
	labelFunc044C_048F:
		var000E = Func0955();
		if(!var000E) goto labelFunc044C_05AA;
		UI_set_schedule_type_25(0xFFB4, 0x000F);
		Func094E(0xFE9C, "@Pfffz!@");
		var000D = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!(var000D != 0xFE9C)) goto labelFunc044C_04F3;
		UI_show_npc_face0_05(var000D, 0x0000);
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("! Art thou all right?\"");
		UcSay;
		Func097F(var000D, "@What a mess!@", 0x0005);
		UI_remove_npc_face0_07();
		UI_set_conversation_slot_09(0x0000);
	labelFunc044C_04F3:
		UI_halt_scheduled_71(0xFE9C);
		0xFE9C;
		calle();
		var0005 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x044C], 0x0019);
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0005, 0x6C, 0x27, 0x0004, 0x6D, 0x27, 0x0004, 0x6E, 0x27, 0x0004, 0x61]);
		Func094F(0xFE9C, ["@Ohh!@", "@Eeehhh!@", "@Bleh!@", "@Yuk!@"]);
		var0005 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0795], 0x0011);
		var000F = UI_create_new_object_2C(0x0268);
		if(!var000F) goto labelFunc044C_05A6;
		UI_set_item_frame_1B(var000F, 0x0009);
		UI_set_item_flag_A4(var000F, 0x0012);
		var0010 = UI_get_object_position_20(0xFE9C);
		var0011 = UI_update_last_created_2F(var0010);
	labelFunc044C_05A6:
		abrt();
		goto labelFunc044C_05AE;
	labelFunc044C_05AA:
		UcMessage("\"Suit thyself, then.\"");
		UcSay;
	labelFunc044C_05AE:
		cmps("visitors");
		UI_remove_answer_0D("visitors");
		UcMessage("\"The only two memorable visitors we have had -- besides thyself -- were a fat sage and a scholar.\"");
		UcSay;
		UI_add_answer_0C(["fat sage", "scholar"]);
	labelFunc044C_05CE:
		cmps("fat sage");
		UI_remove_answer_0D("fat sage");
		UcMessage("\"He had such a curiosity about the ancient ruins. I believe he followed Renfry into the Crypts so he could look around -- something there fascinated him.\"");
		UcSay;
		UcMessage("\"Thou shouldst also speak with Andral, the sculptor. He and the sage spent many hours in conversation, here at the inn.\"");
		UcSay;
		UcMessage("\"I believe he went northeast from here, towards the little hamlet of Sleeping Bull.\"");
		UcSay;
		var000D = Func0992(Dupre, "@The man's name -- dost thou recall?!@", 0x0000, false);
		if(!(var000D != 0xFE9C)) goto labelFunc044C_060A;
		UI_set_conversation_slot_09(0x0000);
	labelFunc044C_060A:
		UcMessage("\"Now what was that man's name? It was a simple name, unpleasant sounding and mean...\"");
		UcSay;
		UcMessage("\"Batlin, that was it. He called himself the Sage Batlin.\"");
		UcSay;
		var000D = Func0992(Shamino, "@We have found Batlin's trail!@", 0x0000, false);
		if(!(var000D != 0xFE9C)) goto labelFunc044C_0633;
		UI_set_conversation_slot_09(0x0000);
	labelFunc044C_0633:
		UcMessage("\"Oh, and did I mention that he had several underlings travelling with him? There was a warrior, a sailor, and a hooded man.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_add_answer_0C(["warrior", "sailor", "hooded man"]);
	labelFunc044C_064B:
		cmps("warrior");
		UI_remove_answer_0D("warrior");
		UcMessage("\"Standarr had a disagreement with this warrior. I'd wager he could tell thee a tale or two about him!\"");
		UcSay;
		gflags[008D] = true;
	labelFunc044C_0662:
		cmps("sailor");
		UI_remove_answer_0D("sailor");
		UcMessage("\"A swarthy man who was called Deadeye. He had the look of a pirate about him. Shazzana spent a bit of time with him as I recall.\"");
		UcSay;
		gflags[00A8] = true;
	labelFunc044C_0679:
		cmps("hooded man");
		UI_remove_answer_0D("hooded man");
		UcMessage("\"I noticed a funny smell about him... almost like -- brimstone? I also could have sworn that under his hood there were horns upon his head. But, no -- that is foolish. It must be some kind of trick.\"");
		UcSay;
	labelFunc044C_068C:
		cmps("scholar");
		UI_remove_answer_0D("scholar");
		UcMessage("\"She said she was researching the land and seemed anxious to learn all about Serpent Isle. Spektor dealt with her, mostly.\"");
		UcSay;
		gflags[00A7] = true;
		if(!UI_npc_nearby_3A(Iolo)) goto labelFunc044C_0718;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Gwenno! It must have been Gwenno!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, I believe that was her name...\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("! What luck! We have found a trail to follow! Oh, Gwenno! Dost thou know where she went from here, milord?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I believe she went east, anxious to learn the wisdom of the Xenkan Monks. She set sail with Captain Hawk, bound for Moonshade and points beyond.\"");
		UcSay;
		UcMessage("\"Of course, this was before the Storms. No sailor will brave these dangerous waters now.\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Praise Virtue! This means she is alive and well! I thank thee, sir, for this woman is my wife!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Very kind woman, she was, sir.\"");
		UcSay;
		goto labelFunc044C_0737;
	labelFunc044C_0718:
		UcMessage("\"Her name was Gwenno. She left here for the east, anxious to learn the wisdom of the Xenkan Monks.\"");
		UcSay;
		UcMessage("\"Of course, this was before the Storms. No sailor will brave these dangerous waters now.\"");
		UcSay;
		var000D = Func0992(0x0001, "@What luck! We have found a trail to follow!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc044C_0737:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"Hmmm. I cannot imagine... oh yes, I remember. I was taking a walk in that area. I must have been careless and dropped the bottle.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Walk?", "area", "change subject"]);
	labelFunc044C_075E:
		cmps("Walk?");
		UI_remove_answer_0D("Walk?");
		UcMessage("\"That is correct. I was taking a walk. Sometimes I want to exercise and enjoy the fresh air.\"");
		UcSay;
		UI_add_answer_0C(["Way up there?", "What about Goblins?"]);
	labelFunc044C_077E:
		cmps("Way up there?");
		UI_remove_answer_0D("Way up there?");
		UcMessage("\"Yes. What is wrong with that?\"");
		UcSay;
	labelFunc044C_0791:
		cmps("What about Goblins?");
		UI_remove_answer_0D("What about Goblins?");
		UcMessage("\"What about them? They did not bother me. We cannot let them control our lives!\"");
		UcSay;
	labelFunc044C_07A4:
		cmps("area");
		UI_remove_answer_0D("area");
		UcMessage("\"Is that the area they believe is the Goblin rendezvous? I do not believe it. I have never seen Goblins there.\"");
		UcSay;
		var000D = Func0992(Dupre, 0x0000, 0x0000, false);
		if(!(var000D != 0xFE9C)) goto labelFunc044C_0807;
		UI_show_npc_face1_06(var000D, 0x0000);
		UcMessage("\"So thou dost go there often?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Er, no, not at all. I only meant I did not see any Goblins then.\"");
		UcSay;
		UI_show_npc_face1_06(var000D, 0x0000);
		UcMessage("\"Mine instincts tell me this man is lying, Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc044C_0807:
		UI_add_answer_0C("Thou art lying!");
	labelFunc044C_080E:
		cmps("Thou art lying!");
		UI_play_music_39(0x0010, Func09A0(0x0005, 0x0001));
		UcMessage("\"So I have been found out! Well, to the blazes with it all!!\"");
		UcSay;
		var0004 = UI_get_object_position_20(0xFFB4);
	labelFunc044C_0834:
		if(!(var0004[0x0003] > 0x0000)) goto labelFunc044C_0874;
		var0004[0x0001] = (var0004[0x0001] - 0x0001);
		var0004[0x0002] = (var0004[0x0002] - 0x0001);
		var0004[0x0003] = (var0004[0x0003] - 0x0002);
		goto labelFunc044C_0834;
	labelFunc044C_0874:
		UI_obj_sprite_effect_91(0xFFB4, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0004 = UI_get_object_position_20(0xFFB4);
		UI_remove_npc_4C(0xFFB4);
		UI_move_object_4B(0xFFBE, var0004);
		UI_set_alignment_4A(0xFFBE, 0x0002);
		UI_set_new_schedules_B6(0xFFBE, 0x0000, 0x0004, [var0004[0x0001], var0004[0x0002]]);
		UI_run_schedule_B7(0xFFBE);
		Func097F(0xFFBE, "@Lorfag Tar!@", 0x0002);
		var0005 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000F, 0x55, 0x0442]);
		gflags[0044] = true;
		abrt();
	labelFunc044C_0902:
		cmps("change subject");
		UI_remove_answer_0D("change subject");
		UcMessage("\"Gladly! Thou hast come to thy senses...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc044C_0919:
		cmps("strange wine");
		UI_remove_answer_0D("strange wine");
		UcMessage("\"The Rangers of Moonshade make wine. Perhaps it is from there that this wine thou dost speak of hath come.\"");
		UcSay;
	labelFunc044C_092C:
		cmps("bye");
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(0xFFB4, "@Come again!@", 0x0002);
		goto labelFunc044C_0952;
	labelFunc044C_094F:
		goto labelFunc044C_0295;
	labelFunc044C_0952:
		end_conv();
	labelFunc044C_0953:
		if(!(event == 0x0000)) goto labelFunc044C_09C6;
		var0012 = UI_get_schedule_type_24(0xFFB4);
		var0013 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0012 == 0x0007)) goto labelFunc044C_09C6;
		if(!(var0013 == 0x0001)) goto labelFunc044C_098C;
		var0014 = "@Need a room?@";
	labelFunc044C_098C:
		if(!(var0013 == 0x0002)) goto labelFunc044C_099C;
		var0014 = "@Fine lodgings!@";
	labelFunc044C_099C:
		if(!(var0013 == 0x0003)) goto labelFunc044C_09AC;
		var0014 = "@Rest thy bones here!@";
	labelFunc044C_09AC:
		if(!(var0013 == 0x0004)) goto labelFunc044C_09BC;
		var0014 = "@Sleep well here!@";
	labelFunc044C_09BC:
		UI_item_say_4D(0xFFB4, var0014);
	labelFunc044C_09C6:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func0865 0x865 ();

Func044D 0x44D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = Func0954();
	var0001 = Func0953();
	if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc044D_0024;
	UI_set_schedule_type_25(0xFFB3, 0x000C);
	labelFunc044D_0024:
		if(!(event == 0x0000)) goto labelFunc044D_024B;
		if(!gflags[0092]) goto labelFunc044D_0094;
		var0002 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0002 == 0x0001)) goto labelFunc044D_0053;
		UI_item_say_4D(0xFFB3, "@My money...@");
	labelFunc044D_0053:
		if(!(var0002 == 0x0002)) goto labelFunc044D_007D;
		UI_item_say_4D(0xFFB3, "@It was his plan!@");
		if(!UI_npc_nearby_3A(0xFFBB)) goto labelFunc044D_007D;
		Func097F(0xFFBB, "@Quiet!@", 0x0003);
	labelFunc044D_007D:
		if(!(var0002 == 0x0003)) goto labelFunc044D_0091;
		UI_item_say_4D(0xFFB3, "@I hate thee!@");
	labelFunc044D_0091:
		goto labelFunc044D_024B;
	labelFunc044D_0094:
		var0003 = [0xFFC1, 0xFF6A];
		if(!(!gflags[0038])) goto labelFunc044D_00B4;
		var0003 = (var0003 & 0xFFBB);
		goto labelFunc044D_00BE;
	labelFunc044D_00B4:
		var0003 = (var0003 & 0xFFB6);
	labelFunc044D_00BE:
		enum();
	labelFunc044D_00BF:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc044D_00E4);
		if(!(!UI_npc_nearby_3A(var0006))) goto labelFunc044D_00E1;
		var0003 = Func0988(var0006, var0003);
	labelFunc044D_00E1:
		goto labelFunc044D_00BF;
	labelFunc044D_00E4:
		if(!(var0003 == [])) goto labelFunc044D_00EF;
		abrt();
	labelFunc044D_00EF:
		UI_clear_item_say_4E(0xFFB3);
		var0007 = var0003[UI_get_random_00(UI_get_array_size_73(var0003))];
		UI_clear_item_say_4E(var0007);
		var0008 = UI_get_random_00(0x0006);
		if(!(var0008 == 0x0001)) goto labelFunc044D_0138;
		UI_item_say_4D(0xFFB3, "@Stop the rumors!@");
		Func097F(var0007, "@Impossible.@", 0x0003);
	labelFunc044D_0138:
		if(!(var0008 == 0x0002)) goto labelFunc044D_014C;
		UI_item_say_4D(0xFFB3, "@Must write this down.@");
	labelFunc044D_014C:
		if(!(var0008 == 0x0003)) goto labelFunc044D_0192;
		if(!UI_get_item_flag_A3(0xFEF7, 0x0004)) goto labelFunc044D_017C;
		UI_item_say_4D(var0007, "@The Goblins are weak.@");
		Func097F(0xFFB3, "@Be cautious...@", 0x0003);
		goto labelFunc044D_0192;
	labelFunc044D_017C:
		UI_item_say_4D(var0007, "@Where are the Goblins?@");
		Func097F(0xFFB3, "@Send a patrol.@", 0x0003);
	labelFunc044D_0192:
		if(!(var0008 == 0x0004)) goto labelFunc044D_01D9;
		if(!(!gflags[00B4])) goto labelFunc044D_01C3;
		UI_item_say_4D(0xFFB3, "@A storm approaches.@");
		Func097F(var0007, "@Another one?@", 0x0003);
		UI_set_weather_53(0x0002);
		goto labelFunc044D_01D9;
	labelFunc044D_01C3:
		UI_item_say_4D(0xFFB3, "@I am not a thief.@");
		Func097F(var0007, "@Of course not.@", 0x0003);
	labelFunc044D_01D9:
		if(!(var0008 == 0x0005)) goto labelFunc044D_0237;
		if(!gflags[0044]) goto labelFunc044D_0202;
		UI_item_say_4D(0xFFB3, "@Poor Simon...@");
		Func097F(var0007, "@But he was a traitor!@", 0x0002);
		goto labelFunc044D_0237;
	labelFunc044D_0202:
		if(!gflags[0038]) goto labelFunc044D_0221;
		UI_item_say_4D(0xFFB3, "@Kill Marsten now!@");
		Func097F(var0007, "@Why so hastily?@", 0x0002);
		goto labelFunc044D_0237;
	labelFunc044D_0221:
		UI_item_say_4D(0xFFB3, "@There is no traitor.@");
		Func097F(var0007, "@I disagree.@", 0x0002);
	labelFunc044D_0237:
		if(!(var0008 == 0x0006)) goto labelFunc044D_024B;
		UI_item_say_4D(0xFFB3, "@Money is short.@");
	labelFunc044D_024B:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFFB3, 0x001D))) goto labelFunc044D_02AF;
		if(!gflags[0094]) goto labelFunc044D_029D;
		UI_show_npc_face0_05(0xFFB3, 0x0000);
		UcMessage("\"Very well, I have been found out. Listen to my secrets, brute, for I must confess all with my dying breath...\"");
		UcSay;
		UcMessage("\"Yes, Marsten and I did plot with the Goblins -- but we did think to cheat them in the end! Then the Leopards would have ruled Monitor.\"");
		UcSay;
		UcMessage("\"And it was I who stole from the town treasury, for we needed the money to acquire a cache of powerful weapons -- explosive weapons...\"");
		UcSay;
		UcMessage("\"The blood of Cantra's father weighs upon my soul. He did stumble into our secret, so he had to be killed. If our secret had not been protected, Marsten would have killed me.\"");
		UcSay;
		UI_clear_item_flag_A5(0xFFB3, 0x001D);
		UI_reduce_health_87(0xFFB3, 0x0032, 0x0000);
		gflags[00B4] = true;
		abrt();
		goto labelFunc044D_02AF;
	labelFunc044D_029D:
		var0009 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc044D_02AF:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFFB3) != 0x000F))) goto labelFunc044D_0323;
		UI_item_say_4D(0xFE9C, "@Greetings, milord.@");
		0xFFB3;
		calle();
		if(!gflags[0092]) goto labelFunc044D_030D;
		UI_set_schedule_type_25(0xFFB3, 0x000F);
		Func097F(0xFFB3, "@Not thee!@", 0x0002);
		0xFFB3;
		calle();
		var0009 = UI_delayed_execute_usecode_array_02(0xFFB3, [0x23, 0x55, 0x044D], 0x0007);
		abrt();
	labelFunc044D_030D:
		Func097F(0xFFB3, "Yes?", 0x0002);
		UI_set_schedule_type_25(0xFFB3, 0x0003);
	labelFunc044D_0323:
		if(!(event == 0x0002)) goto labelFunc044D_032E;
		goto labelFunc044D_0336;
	labelFunc044D_032E:
		if(!(event == 0x0009)) goto labelFunc044D_0877;
	labelFunc044D_0336:
		UI_run_schedule_B7(0xFFB3);
		UI_clear_item_say_4E(0xFFB3);
		UI_show_npc_face0_05(0xFFB3, 0x0000);
		if(!gflags[0092]) goto labelFunc044D_0374;
		if(!gflags[00B4]) goto labelFunc044D_0361;
		UcMessage("\"Mine actions stand beyond the shallow morality of any tribunal. No court can condemn me. The only crime of which I am truly guilty is that I allowed myself to be caught.\"");
		UcSay;
		goto labelFunc044D_0371;
	labelFunc044D_0361:
		UcMessage("\"Very well, I have been found out. There is no point in denying my guilt any longer. It was I who stole the money from the treasury.\"");
		UcSay;
		UcMessage("\"I was in league with Lord Marsten, who schemed to become King of Monitor. The Bears and Wolves would have been powerless!\"");
		UcSay;
		UcMessage("\"Cantra's father stumbled into our secret cave, so he had to be killed. If the secret of the explosive weapons had been revealed, Marsten would have killed me...\"");
		UcSay;
		gflags[00B4] = true;
	labelFunc044D_0371:
		goto labelFunc044D_0414;
	labelFunc044D_0374:
		var000A = UI_get_item_flag_A3(0xFFB3, 0x001C);
		if(!var000A) goto labelFunc044D_038E;
		UcMessage("\"Yes, how may I help?\"");
		UcSay;
		goto labelFunc044D_039C;
	labelFunc044D_038E:
		UcMessage("\"I am Spektor, treasurer of Monitor.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB3, 0x001C);
	labelFunc044D_039C:
		UI_add_answer_0C(["duties", "exchange coins"]);
		if(!(gflags[0093] && (!(gflags[0038] || gflags[00B3])))) goto labelFunc044D_03BF;
		UI_add_answer_0C("know traitor");
	labelFunc044D_03BF:
		if(!(gflags[00A2] && (!gflags[0299]))) goto labelFunc044D_03D1;
		UI_add_answer_0C("strange coins");
	labelFunc044D_03D1:
		if(!gflags[00A7]) goto labelFunc044D_03DE;
		UI_add_answer_0C("Gwenno");
	labelFunc044D_03DE:
		if(!(!(gflags[0078] && gflags[00A9]))) goto labelFunc044D_03F0;
		UI_add_answer_0C("enchanter");
	labelFunc044D_03F0:
		if(!(gflags[00B3] && (!gflags[0038]))) goto labelFunc044D_0402;
		UI_add_answer_0C("evidence");
	labelFunc044D_0402:
		if(!(gflags[00B6] && (!gflags[00B4]))) goto labelFunc044D_0414;
		UI_add_answer_0C("thief");
	labelFunc044D_0414:
		UI_add_answer_0C("bye");
	labelFunc044D_041B:
		UcAsk;
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"Frankly, I do so many things. I am Monitor's treasurer. Lord Marsten may order things done, but I must find a way to pay for it all!\"");
		UcSay;
		UcMessage("\"I handle the books and the paperwork, and I'm the local money exchanger. I also collect and administer the taxes.\"");
		UcSay;
		UcMessage("\"Frankly, I'm not much of a fighter, even though I am a Knight.\"");
		UcSay;
		UI_add_answer_0C(["taxes", "Knight", "exchange coins"]);
	labelFunc044D_0449:
		cmps("taxes");
		UI_remove_answer_0D("taxes");
		UcMessage("\"Our Pikemen patrol the major roads connecting Monitor with Fawn and Sleeping Bull, and man the guard towers.\"");
		UcSay;
		UcMessage("\"In better times, caravans travelled these routes, and we collected a fat reward from merchants eager for our protection.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFEF7, 0x0004)) goto labelFunc044D_0474;
		UcMessage("\"With the Goblin King slain, perhaps the roads will again be filled. But the storms also discourage travel...\"");
		UcSay;
		goto labelFunc044D_047F;
	labelFunc044D_0474:
		UcMessage("\"But now, the rumors of a gathering Goblin invasion have scared the travellers off the roads! Frankly, this is nonsense.\"");
		UcSay;
		UI_add_answer_0C("invasion");
	labelFunc044D_047F:
		cmps("invasion");
		UI_remove_answer_0D("invasion");
		UcMessage("\"The Knights of Monitor have repelled such Goblin aggressions successfully in the past and they shall do so again.\"");
		UcSay;
	labelFunc044D_0492:
		cmps("Knight");
		UI_remove_answer_0D("Knight");
		UcMessage("\"Well, I dutifully passed the Test of Knighthood when I was fifteen. But frankly, not everyone was born to be a Knight. I admit it.\"");
		UcSay;
		UcMessage("\"What I am is an intellectual. Other Knights may scoff, but I don't care. I might be an easy target on the List Field, but in a debate I'm a killer!\"");
		UcSay;
		if(!(!gflags[004A])) goto labelFunc044D_04BF;
		UcMessage("\"Perhaps thou shouldst consider taking the Test of Knighthood. It is not so difficult, with proper training.\"");
		UcSay;
		UcMessage("\"We citizens are so much nicer to thee when thou art a Knight, rather than a stranger. We distrust outsiders.\"");
		UcSay;
		UI_add_answer_0C("Test of Knighthood");
	labelFunc044D_04BF:
		cmps("thief");
		UI_remove_answer_0D("thief");
		UcMessage("\"Yes, frankly, 'tis true. But I do not like to talk about it.\"");
		UcSay;
		UcMessage("\"Someone in Monitor is a thief. Money is being taken from the treasury. 'Tis a mystery.\"");
		UcSay;
		UcMessage("\"The Bears think the Wolves are responsible. And, of course, the Wolves think the Bears are responsible. We Leopards are doing our best to keep them from killing each other.\"");
		UcSay;
		UcMessage("\"Please keep this to thyself. Only a few select individuals are aware of this crime. Frankly, we do not want a panic.\"");
		UcSay;
		UI_add_answer_0C(["Bears", "Wolves", "Leopards", "frankly"]);
	labelFunc044D_04F1:
		cmps("Bears", "Wolves", "Leopards");
		UI_remove_answer_0D(["Bears", "Wolves", "Leopards"]);
		UcMessage("\"I tire of this entire system. Wolves! Bears! Leopards! Why can we not be united, rather than divided into Commands?\"");
		UcSay;
		UcMessage("\"I am a Leopard, and frankly, we're the only level- headed ones. When a Leopard like Lord Marsten is in residence as Lord of Monitor, things are much more in... balance.\"");
		UcSay;
		UcMessage("\"As for the Wolves and the Bears, they are like children. \"");
		UcSay;
	labelFunc044D_051B:
		cmps("frankly");
		UI_remove_answer_0D("frankly");
		UcMessage("\"Yes, I do say that a lot, do I not? I apologize. 'Tis a bad habit. Frankly... er, to tell the truth, I should stop.\"");
		UcSay;
	labelFunc044D_052E:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"There was a woman here a while ago who spent much time in the Hall of Monitor, examining our museum display. Very friendly.\"");
		UcSay;
		var0007 = Func0992(Iolo, "@Where did she go from here? Dost thou know?@", 0x0000, false);
		if(!(var0007 != 0xFE9C)) goto labelFunc044D_0562;
		UI_set_conversation_slot_09(0x0000);
	labelFunc044D_0562:
		UcMessage("\"She left here for the east. To study at the library on Monk Isle, as I recall.\"");
		UcSay;
		UI_add_answer_0C("Monk Isle");
		var0007 = Func0992(Iolo, "@Avatar! We must journey onward and find her!@", 0x0000, false);
		if(!(var0007 != 0xFE9C)) goto labelFunc044D_058E;
		UI_set_conversation_slot_09(0x0000);
	labelFunc044D_058E:
		cmps("Monk Isle");
		UI_remove_answer_0D("Monk Isle");
		UcMessage("\"Frankly, 'tis a mysterious place. I do not know much about it, except the legend that wise monks dwell there.\"");
		UcSay;
		UcMessage("\"The only way to go there is by ship, but there are no sailors here -- the storms have discouraged them.\"");
		UcSay;
		UcMessage("\"Perhaps thou couldst hire a captain in Fawn -- which is the city of fishermen -- or at the hamlet of Sleeping Bull.\"");
		UcSay;
		UI_add_answer_0C(["Fawn", "Sleeping Bull"]);
	labelFunc044D_05B6:
		cmps("Fawn");
		UI_remove_answer_0D("Fawn");
		UcMessage("\"Fawn is a coastal town filled with the worshippers of beauty. Frankly, I find those people to be a little too superficial for my liking.\"");
		UcSay;
	labelFunc044D_05C9:
		cmps("Sleeping Bull");
		UI_remove_answer_0D("Sleeping Bull");
		UcMessage("\"The inn there is a very old establishment, built in the days before the founding of the Three Cities. The village is built around the inn.\"");
		UcSay;
		UcMessage("\"Since it is such a crossroads, thou canst often meet all sorts of interesting folk there. And it is the direct link to the City of Mages.\"");
		UcSay;
		UI_add_answer_0C("City of Mages");
	labelFunc044D_05E7:
		cmps("City of Mages");
		UI_remove_answer_0D("City of Mages");
		UcMessage("\"A place where I shall never be seen! I distrust magic in all its forms.\"");
		UcSay;
		UcMessage("\"Moonshade is on the Isle of Beyond, which is across the channel from Sleeping Bull. Thou wouldst need a boat to journey there.\"");
		UcSay;
		if(!(!gflags[00DB])) goto labelFunc044D_0626;
		var0007 = Func0992(Iolo, "@Perhaps thou couldst obtain a new spellbook there...@", 0x0000, false);
		if(!(var0007 != 0xFE9C)) goto labelFunc044D_0626;
		UI_set_conversation_slot_09(0x0000);
	labelFunc044D_0626:
		cmps("Test of Knighthood");
		UI_remove_answer_0D("Test of Knighthood");
		UcMessage("\"'Tis actually quite easy. Do not believe what the Knights will tell thee. Frankly, if I can pass it, anyone can!\"");
		UcSay;
		UcMessage("\"If thou desirest to know more, I would suggest speaking with Caladin. He is the instructor for young Knight candidates.\"");
		UcSay;
		UcMessage("\"Also, thou couldst speak with little Cantra. She is preparing to take the Test next month, and is full of information.\"");
		UcSay;
	labelFunc044D_0641:
		cmps("know traitor");
		UI_remove_answer_0D("know traitor");
		if(!gflags[0094]) goto labelFunc044D_0674;
		UcMessage("\"What!? What dost thou mean? Art thou calling me a traitor? I may not be much of a fighter, but I can defend myself!\"");
		UcSay;
		UI_set_schedule_type_25(0xFFB3, 0x0014);
		Func097F(0xFFB3, "@Beware!@", 0x0000);
		abrt();
		goto labelFunc044D_0767;
	labelFunc044D_0674:
		UcMessage("\"Marsten is the traitor? This is too incredible to believe. Hast thou proof?\"");
		UcSay;
		if(!Func0955()) goto labelFunc044D_0756;
		UcMessage("\"I must see this. Might I see the evidence?\"");
		UcSay;
		if(!(!(Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99) || (Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99) || Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99))))) goto labelFunc044D_06DC;
		var0007 = Func0992(Iolo, "@We did not bring it with us...@", "@I did not bring it.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Then I can do nothing for thee. Unseen evidence is useless evidence.\"");
		UcSay;
		goto labelFunc044D_0753;
	labelFunc044D_06DC:
		if(!Func0955()) goto labelFunc044D_074F;
		var0009 = Func0996(0xFE9B, 0xFFB3, 0x0001, 0x031D, 0x0078, 0xFE99, 0x0000);
		var0009 = Func0996(0xFE9B, 0xFFB3, 0x0001, 0x031D, 0x0079, 0xFE99, 0x0000);
		var0009 = Func0996(0xFE9B, 0xFFB3, 0x0001, 0x031D, 0x007A, 0xFE99, 0x0000);
		UcMessage("\"I shall study this evidence, and if thou art right, I will bring it before the other Lords.\"");
		UcSay;
		gflags[00B3] = true;
		UcMessage("\"Now leave me, so that I may peruse this matter.\"");
		UcSay;
		Func097F(0xFFB3, "@Let me be.@", 0x0000);
		abrt();
		goto labelFunc044D_0753;
	labelFunc044D_074F:
		UcMessage("\"Then I can do nothing for thee. Unseen evidence is useless evidence.\"");
		UcSay;
	labelFunc044D_0753:
		goto labelFunc044D_0767;
	labelFunc044D_0756:
		UcMessage("\"Then be on thy way! Marsten is the traitor -- what a lark!\"");
		UcSay;
		Func097F(0xFFB3, "@Don't waste my time...@", 0x0000);
		abrt();
	labelFunc044D_0767:
		cmps("evidence");
		UI_remove_answer_0D("evidence");
		UcMessage("\"Give me time, ");
		UcMessage(var0000);
		UcMessage("! Such matters are not quickly resolved.\"");
		UcSay;
		Func097F(0xFFB3, "@More time!@", 0x0000);
		abrt();
	labelFunc044D_078D:
		cmps("enchanter");
		UI_remove_answer_0D("enchanter");
		if(!gflags[00B9]) goto labelFunc044D_07A9;
		UcMessage("\"I am still not certain if we can trust Iolo, that enchanter friend of thine. Tell him he had better be on his best behavior. That is a friendly warning.\"");
		UcSay;
		goto labelFunc044D_07C1;
	labelFunc044D_07A9:
		if(!gflags[00B5]) goto labelFunc044D_07BD;
		UcMessage("\"Perhaps thou shouldst pay me, say -- a fine -- yes, a fine! That's it. To pay for this rogue Iolo's misdeeds. After all, I am the city treasurer, thou dost know. So t'would be most proper.\"");
		UcSay;
		UI_add_answer_0C("fine");
		goto labelFunc044D_07C1;
	labelFunc044D_07BD:
		UcMessage("\"Oh, thou must be speaking of that wild rogue mage that was recently arrested trying to disrupt Groat's funeral! I believe he said his name was Iolo. Thou shouldst speak with Lord Marsten. He dealt with him.\"");
		UcSay;
	labelFunc044D_07C1:
		cmps("fine");
		UI_remove_answer_0D("fine");
		UcMessage("\"Wouldst thou be willing to pay a fine of 30 Monetari?\"");
		UcSay;
		var000B = Func0955();
		if(!var000B) goto labelFunc044D_0826;
		var000C = UI_remove_party_items_34(0x001E, 0x03B7, 0xFE99, 0xFE99, false);
		if(!var000C) goto labelFunc044D_081E;
		UcMessage("\"Very well. Here is the key to the offender's cell. Tell him to consider himself lucky. Seldom is the town of Monitor so forgiving of the trespasses of others.\"");
		UcSay;
		var0009 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0068, 0x0000, 0x0000, true);
		gflags[00B9] = true;
		goto labelFunc044D_0823;
	labelFunc044D_081E:
		UcMessage("\"Thou dost not have 30 Monetari! Art thou trying to swindle me! Bah!\"");
		UcSay;
		abrt();
	labelFunc044D_0823:
		goto labelFunc044D_082A;
	labelFunc044D_0826:
		UcMessage("\"So! Thy friend is not worth the price of justice, eh? Then let him rot!\"");
		UcSay;
	labelFunc044D_082A:
		cmps("exchange coins");
		Func0865();
	labelFunc044D_0835:
		cmps("strange coins");
		UI_remove_answer_0D("strange coins");
		UcMessage("\"The coins thou hast described are the currency of the city of Fawn. But where thou mayest have gotten them, without travelling to Fawn, I haven't a clue!\"");
		UcSay;
	labelFunc044D_0848:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "Goodbye!", 0x0000);
		Func097F(0xFFB3, "Go in Courage!", 0x0002);
		goto labelFunc044D_0876;
	labelFunc044D_0873:
		goto labelFunc044D_041B;
	labelFunc044D_0876:
		end_conv();
	labelFunc044D_0877:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0956 0x956 (var var0000);
extern Func0867 0x867 ();
extern Func0866 0x866 ();
extern Func0868 0x868 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097A 0x97A (var var0000);

Func044E 0x44E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	if(!gflags[0048]) goto labelFunc044E_0012;
	var0000 = "Knight";
	labelFunc044E_0012:
		var0001 = UI_get_item_flag_A3(0xFFB2, 0x001C);
		if(!(UI_get_schedule_type_24(0xFFB2) == 0x000D)) goto labelFunc044E_0031;
		var0002 = true;
	labelFunc044E_0031:
		if(!(event == 0x0001)) goto labelFunc044E_005F;
		UI_item_say_4D(0xFE9C, "@Hail there!@");
		0xFFB2;
		calle();
		Func097F(0xFFB2, "@Greetings.@", 0x0003);
		UI_set_schedule_type_25(0xFFB2, 0x0003);
	labelFunc044E_005F:
		if(!(event == 0x0009)) goto labelFunc044E_02A2;
		UI_run_schedule_B7(0xFFB2);
		UI_clear_item_say_4E(0xFFB2);
		UI_show_npc_face0_05(0xFFB2, 0x0000);
		if(!var0001) goto labelFunc044E_0092;
		UcMessage("\"What dost thou wish of me, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		goto labelFunc044E_00A0;
	labelFunc044E_0092:
		UcMessage("\"I am Standarr the Armourer. What dost thou wish of me?\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB2, 0x001C);
	labelFunc044E_00A0:
		if(!(gflags[009F] && (!gflags[0294]))) goto labelFunc044E_00B2;
		UI_add_answer_0C("strange breastplate");
	labelFunc044E_00B2:
		if(!gflags[008D]) goto labelFunc044E_00BF;
		UI_add_answer_0C("Brunt");
	labelFunc044E_00BF:
		if(!gflags[00BA]) goto labelFunc044E_00CC;
		UI_add_answer_0C("Quests of Courage");
	labelFunc044E_00CC:
		if(!gflags[0038]) goto labelFunc044E_00D9;
		UI_add_answer_0C("Marsten");
	labelFunc044E_00D9:
		if(!gflags[002C]) goto labelFunc044E_00E6;
		UI_add_answer_0C("Helm of Monitor");
	labelFunc044E_00E6:
		if(!gflags[0044]) goto labelFunc044E_00F3;
		UI_add_answer_0C("Simon");
	labelFunc044E_00F3:
		if(!gflags[00CC]) goto labelFunc044E_0100;
		UI_add_answer_0C("Pomdirgun");
	labelFunc044E_0100:
		UI_add_answer_0C(["buy", "bye"]);
	labelFunc044E_010D:
		UcAsk;
		cmps("Pomdirgun");
		UI_add_answer_0C("Pomdirgun");
		UcMessage("\"I envy thee the chance to kill Pomdirgun. I hope thou didst make him suffer!\"");
		UcSay;
	labelFunc044E_0123:
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"Thanks to thee for liberating the Helm of Monitor from the Goblins. Thou hast truly earned the title of Champion Knight.\"");
		UcSay;
	labelFunc044E_0136:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		UcMessage("\"Simon was a Goblin spy! I would never have suspected...\"");
		UcSay;
	labelFunc044E_0149:
		cmps("Marsten");
		UI_remove_answer_0D("Marsten");
		UcMessage("\"Before he was arrested I worked for Marsten. He was, after all, acting Lord of Monitor. I created a new type of weapon for him. A highly combustible powder that exploded when it came in contact with fire. Thou shouldst keep thine eye open for it. It would be a disaster if it ever fell into the hands of the Goblins.\"");
		UcSay;
	labelFunc044E_015C:
		cmps("Quests of Courage");
		UI_remove_answer_0D("Quests of Courage");
		UcMessage("\"We Knights on occasion go on what we call Quests of Courage. Many times they involve going into the woods on Goblin raids. Other times they involve entering the depths of a dungeon called Furnace. That place is filled with a withering heat and many monsters live there. Recently, a Knight and good friend of ours named Pendar went off on a quest to Furnace in search of a treasure of which he had heard rumors. He hath not returned, and we worry about him and wonder if we shall ever see him again. Perhaps, he is spending his	treasure! Ha!\"");
		UcSay;
	labelFunc044E_016F:
		cmps("Brunt");
		UI_remove_answer_0D("Brunt");
		UcMessage("\"Let me tell thee, when in the trade of blacksmith, one doth develop his muscles. I am no weakling, I can assure thee. But this fellow Brunt who did accompany the sage Batlin through town could probably hoist me with his weak arm. Not the brightest of fellows, mind thee. But strong as an ox! He bested me in the tournament, but not by skill. By sheer muscle.\"");
		UcSay;
	labelFunc044E_0182:
		cmps("buy");
		if(!(UI_get_schedule_type_24(0xFFB2) == 0x000D)) goto labelFunc044E_0215;
		UcMessage("\"Wouldst thou be interested in buying or selling?\"");
		UcSay;
		var0003 = Func0956(["nothing", "buying", "selling"]);
		if(!(var0003 == "buying")) goto labelFunc044E_01EC;
		UcMessage("\"Wouldst thou care to buy weapons or armour?\"");
		UcSay;
		var0004 = Func0956(["weapons", "armour"]);
		if(!(var0004 == "weapons")) goto labelFunc044E_01E2;
		Func0867();
		UI_add_answer_0C("buy weapons");
		goto labelFunc044E_01EC;
	labelFunc044E_01E2:
		Func0866();
		UI_add_answer_0C("buy armour");
	labelFunc044E_01EC:
		if(!(var0003 == "selling")) goto labelFunc044E_0204;
		UcMessage("\"I buy only armour, friend, and I do not haggle on the price.\"");
		UcSay;
		Func0868();
		UI_add_answer_0C("sell armour");
	labelFunc044E_0204:
		if(!(var0003 == "nothing")) goto labelFunc044E_0212;
		UcMessage("\"Another time, perhaps.\"");
		UcSay;
	labelFunc044E_0212:
		goto labelFunc044E_0219;
	labelFunc044E_0215:
		UcMessage("\"Return when my shop is open, and we can talk business.\"");
		UcSay;
	labelFunc044E_0219:
		cmps("buy weapons");
		Func0867();
	labelFunc044E_0224:
		cmps("buy armour");
		Func0866();
	labelFunc044E_022F:
		cmps("sell armour");
		Func0868();
	labelFunc044E_023A:
		cmps("strange breastplate");
		UI_remove_answer_0D("strange breastplate");
		var0005 = Func097D(0xFE9B, 0x0001, 0x01A3, 0xFE99, 0x0000);
		if(!var0005) goto labelFunc044E_026F;
		UcMessage("\"I recognize this!  This is the ornamental breastplate that I made for Kylista, priestess of Fawn.\"");
		UcSay;
		gflags[0294] = true;
		goto labelFunc044E_0273;
	labelFunc044E_026F:
		UcMessage("\"I am familiar with the making of many types of weapon and armour. A pity thou dost not have it with thee. Without looking at it, I can tell thee no more.\"");
		UcSay;
	labelFunc044E_0273:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Stay well!@", 0x0000);
		Func097F(0xFFB2, "@Farewell!@", 0x0003);
		goto labelFunc044E_02A1;
	labelFunc044E_029E:
		goto labelFunc044E_010D;
	labelFunc044E_02A1:
		end_conv();
	labelFunc044E_02A2:
		if(!(event == 0x0000)) goto labelFunc044E_0310;
		var0006 = UI_die_roll_17(0x0001, 0x0004);
		if(!var0002) goto labelFunc044E_030A;
		if(!(var0006 == 0x0001)) goto labelFunc044E_02CD;
		var0007 = "@Armour?@";
	labelFunc044E_02CD:
		if(!(var0006 == 0x0002)) goto labelFunc044E_02DD;
		var0007 = "@We sell the best armour here!@";
	labelFunc044E_02DD:
		if(!(var0006 == 0x0003)) goto labelFunc044E_02ED;
		var0007 = "@Finest goods here!@";
	labelFunc044E_02ED:
		if(!(var0006 == 0x0004)) goto labelFunc044E_02FD;
		var0007 = "@Best weapons in Monitor!@";
	labelFunc044E_02FD:
		UI_item_say_4D(0xFFB2, var0007);
		goto labelFunc044E_0310;
	labelFunc044E_030A:
		Func097A(0xFFB2);
	labelFunc044E_0310:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern Func08F0 0x8F0 ();

Func044F 0x44F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = Func0954();
	var0001 = UI_get_item_flag_A3(0xFFB1, 0x001C);
	var0002 = Func097D(0xFE9B, 0x0001, 0x011D, 0xFE99, 0x0006);
	var0003 = false;
	if(!(event == 0x0001)) goto labelFunc044F_005A;
	UI_item_say_4D(0xFE9C, "@Hail, Knight.@");
	0xFFB1;
	calle();
	Func097F(0xFFB1, "@Hail.@", 0x0002);
	UI_set_schedule_type_25(0xFFB1, 0x0003);
	labelFunc044F_005A:
		if(!(event == 0x0000)) goto labelFunc044F_00B1;
		if(!gflags[0083]) goto labelFunc044F_00B1;
		var0004 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0004 == 0x0001)) goto labelFunc044F_0089;
		UI_item_say_4D(0xFFB1, "@Strong hit!@");
	labelFunc044F_0089:
		if(!(var0004 == 0x0002)) goto labelFunc044F_009D;
		UI_item_say_4D(0xFFB1, "@Nice form!@");
	labelFunc044F_009D:
		if(!(var0004 == 0x0003)) goto labelFunc044F_00B1;
		UI_item_say_4D(0xFFB1, "@I could do better.@");
	labelFunc044F_00B1:
		if(!(event == 0x0007)) goto labelFunc044F_0182;
		if(!gflags[0083]) goto labelFunc044F_0172;
		var0005 = UI_get_oppressor_5C(0xFFB1);
		var0005 = (0x0000 - var0005);
		if(!(!var0005)) goto labelFunc044F_00E0;
		var0005 = 0xFE9C;
	labelFunc044F_00E0:
		if(!((var0005 != 0xFE9C) && (!in(var0005, Func098D())))) goto labelFunc044F_014B;
		var0000 = Func098D();
		var0000 = (var0000 & 0xFE9C);
		enum();
	labelFunc044F_0104:
		for (var0008 in var0000 with var0006 to var0007 atend labelFunc044F_011E);
		if(!Func0932(var0008)) goto labelFunc044F_011B;
		goto labelFunc044F_0124;
	labelFunc044F_011B:
		goto labelFunc044F_0104;
	labelFunc044F_011E:
		var0008 = 0xFE9C;
	labelFunc044F_0124:
		UI_set_oppressor_5E(0xFFB1, var0008);
		UI_set_oppressor_5E(var0005, var0008);
		Func0976(0xFFB1, 0x0003);
		Func0976(var0005, 0x0003);
		exit2();
	labelFunc044F_014B:
		if(!(!gflags[0007])) goto labelFunc044F_0168;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0005), UI_get_npc_object_23(0xFFB1));
		exit2();
	labelFunc044F_0168:
		Func092E(var0005);
		exit2();
		goto labelFunc044F_0182;
	labelFunc044F_0172:
		var0009 = UI_execute_usecode_array_01(item, [0x55, 0x01D0]);
	labelFunc044F_0182:
		if(!(event == 0x0009)) goto labelFunc044F_060D;
		UI_clear_item_say_4E(0xFFB1);
		UI_run_schedule_B7(0xFFB1);
		UI_show_npc_face0_05(0xFFB1, 0x0000);
		Func08F0();
		if(!(!var0001)) goto labelFunc044F_01BD;
		UcMessage("\"What can I do for thee? I am Templar.\"");
		UcSay;
		UI_set_item_flag_A4(0xFFB1, 0x001C);
		goto labelFunc044F_01C1;
	labelFunc044F_01BD:
		UcMessage("\"Yes?\"");
		UcSay;
	labelFunc044F_01C1:
		UI_add_answer_0C("duties");
		if(!(gflags[00A0] && ((!gflags[0296]) && gflags[0048]))) goto labelFunc044F_01DE;
		UI_add_answer_0C("grisly brush");
	labelFunc044F_01DE:
		if(!(gflags[00A4] && gflags[0048])) goto labelFunc044F_01EF;
		UI_add_answer_0C("Goblins");
	labelFunc044F_01EF:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc044F_0208;
		UI_add_answer_0C("brown bottle");
	labelFunc044F_0208:
		if(!(gflags[01CA] && gflags[0048])) goto labelFunc044F_0219;
		UI_add_answer_0C("Argus");
	labelFunc044F_0219:
		if(!gflags[0048]) goto labelFunc044F_0226;
		UI_add_answer_0C("traitor");
	labelFunc044F_0226:
		UI_add_answer_0C("bye");
	labelFunc044F_022D:
		UcAsk;
		cmps("grisly brush");
		UI_remove_answer_0D("grisly brush");
		UcMessage("\"A peculiar brush? I suspect that I already know what it is, but let me see...\"");
		UcSay;
		if(!var0002) goto labelFunc044F_025F;
		UcMessage("\"That is a Goblin hairbrush! Made out of the bones of their victims, or so the legends claim.\"");
		UcSay;
		UcMessage("\"Perhaps crafted from the thigh bone of one of mine old friends. Someday, thou or I too may be odd bits of furnishings in some Goblin hut!\"");
		UcSay;
		gflags[0296] = true;
		UI_add_answer_0C("Goblin artifacts");
		goto labelFunc044F_0263;
	labelFunc044F_025F:
		UcMessage("\"I cannot identify the object if thou dost not show it to me. I will not waste my time making wild guesses.\"");
		UcSay;
	labelFunc044F_0263:
		cmps("Goblin artifacts");
		UI_remove_answer_0D("Goblin artifacts");
		UcMessage("\"Goblins have some pretty strange things. Jewelry made from human bones. Drums made with human skin. Much broken glass. Very macabre.\"");
		UcSay;
		UcMessage("\"I suspect their own village must be brimming with such little nightmares.\"");
		UcSay;
		UcMessage("\"They eat nearly anything, except their own kind. Goblins are especially fond of children. We had to build the city walls to keep their scouts from stealing our babies.\"");
		UcSay;
		UcMessage("\"The Goblins consider the pelts of the Gwani to be great prizes -- thou canst recognize a Goblin chief by the pelt he wears.\"");
		UcSay;
		UcMessage("\"The chief always keeps the prize artifacts for himself. But he must lock them away in a safe place, or his followers will steal them!\"");
		UcSay;
		UI_add_answer_0C("Gwani pelts");
	labelFunc044F_028D:
		cmps("Gwani pelts");
		UI_remove_answer_0D("Gwani pelts");
		UcMessage("\"The furs are taken from the Gwani, a race of fierce warriors which live in the far north. They are said to be even more vicious than the Goblins.\"");
		UcSay;
		UcMessage("\"Gwani fur provides great warmth, but it is also valued for its great beauty -- it sparkles in the light.\"");
		UcSay;
	labelFunc044F_02A4:
		cmps("duties");
		UI_remove_answer_0D("duties");
		if(!(!gflags[0048])) goto labelFunc044F_02DC;
		UcMessage("\"What business is it of thee, stranger? Canst thou not see that I am recovering from wounds?\"");
		UcSay;
		UcMessage("\"I do not wish to spend my limited vitality in idle chatter. I am a warrior, not a clerk...\"");
		UcSay;
		Func097F(0xFFB1, "@Excuse me...@", 0x0000);
		UI_set_schedule_type_25(0xFFB1, 0x0014);
		abrt();
		goto labelFunc044F_02ED;
	labelFunc044F_02DC:
		UcMessage("\"I am a Knight of Monitor, and a member of the Command of the Bear. I also serve Lord Marsten as his tactical adviser.\"");
		UcSay;
		UI_add_answer_0C(["Command of the Bear", "adviser"]);
	labelFunc044F_02ED:
		cmps("Command of the Bear");
		UI_remove_answer_0D("Command of the Bear");
		UcMessage("\"We are by far the strongest of the three commands. The envy of the Serpent Isle.\"");
		UcSay;
	labelFunc044F_0300:
		cmps("adviser");
		UI_remove_answer_0D("adviser");
		UcMessage("\"Adviser for military matters, that is. Some consider me to be an expert in tactics.\"");
		UcSay;
		UcMessage("\"For instance, hast thou ever noticed that the Goblins tend to attack in patterns? By observing them, I can sometimes predict when and how they are going to strike next. I like to imagine what it must be like, to be huddled around the fires of their village as they draw their plans against us. The better I can understand them, the better I can defend against them.\"");
		UcSay;
		if(!gflags[0048]) goto labelFunc044F_0337;
		UI_push_answers_0E();
		UI_add_answer_0C(["patterns", "when", "how", "change subject"]);
		goto labelFunc044F_033B;
	labelFunc044F_0337:
		UcMessage("\"But I must not speak of these things to a stranger. Thou couldst be a spy for them...\"");
		UcSay;
	labelFunc044F_033B:
		cmps("patterns");
		UI_remove_answer_0D("patterns");
		UcMessage("\"They are creatures of habit, to be sure. If thou dost know their customs, then thou hast the knowledge to defeat them.\"");
		UcSay;
		UcMessage("\"They always set their travel camps in the same pattern. The chieftain's hut is the largest, and is in the center.\"");
		UcSay;
		UcMessage("\"Each day ends with a drunken revel, and then the exhausted celebrants stumble to their huts and sleep until long past daybreak.\"");
		UcSay;
		UcMessage("\"When raiding a Goblin camp, strike in the morning, just as the sun is coming up. This is when the guards are fewest, and the chance for success is greatest.\"");
		UcSay;
	labelFunc044F_035A:
		cmps("when");
		UI_remove_answer_0D("when");
		UcMessage("\"The Goblins do not seem to like the sun and their most favored time to strike their enemies is precisely after the sun hath set for the night. Many is the time when Goblin armies have marched to the edge of a city or encampment and then they have waited until nightfall. Often these sieges lasted all night long.\"");
		UcSay;
	labelFunc044F_036D:
		cmps("how");
		UI_remove_answer_0D("how");
		UcMessage("\"The Goblins do not practice any sophisticated sort of military strategy or tactics. Mostly they rely on sheer numbers as well as the fear that they inspire in the hearts of men and women.\"");
		UcSay;
	labelFunc044F_0380:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"What else dost thou desire of me?\"");
		UcSay;
	labelFunc044F_0390:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"'Tis a bloody war we are fighting. That I am alive, today, speaking with thee is a miracle.\"");
		UcSay;
		UcMessage("\"The Goblins are foul but fascinating creatures. They are more intelligent than one would think. In a bestial way, of course.\"");
		UcSay;
		UcMessage("\"If only I could speak with their general Pomdirgun! Imagine what that mind must be like -- so calculating, so incisive, yet so utterly inhuman.\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc044F_03B5;
		UcMessage("\"Perhaps in my next life I shall see him again. But not for any prolonged period of time, I hope.\"");
		UcSay;
	labelFunc044F_03B5:
		UI_add_answer_0C(["war", "miracle", "Pomdirgun"]);
	labelFunc044F_03C5:
		cmps("war");
		UI_remove_answer_0D("war");
		UcMessage("\"We have been fighting the damn Goblins since our forefathers landed on these shores. This city was built on the site of a Goblin village.\"");
		UcSay;
		var000A = Func097D(0xFE9B, 0x0001, 0x017F, 0xFE99, 0x0001);
		if(!(gflags[002C] || var000A)) goto labelFunc044F_0402;
		UcMessage("\"Now that thou hast recovered the Helm of Monitor from their fiendish hands, the scales have again tipped in our favor.\"");
		UcSay;
		UcMessage("\"How I look forward to the day when the Goblins have been exterminated from this land!\"");
		UcSay;
		goto labelFunc044F_040E;
	labelFunc044F_0402:
		UcMessage("\"There had been a balance of sorts, until the ambush of Astrid's patrol. As Knight Champion, she wore the Helm of Monitor, and now the Goblins have it.\"");
		UcSay;
		UcMessage("\"The power of the Helm cannot be understated! With it, Pomdirgun can once again assemble the Goblin Horde, and invade the lands of Men.\"");
		UcSay;
		UcMessage("\"Somehow, we must regain the Helm!\"");
		UcSay;
	labelFunc044F_040E:
		UI_add_answer_0C("forefathers");
	labelFunc044F_0415:
		cmps("forefathers");
		UI_remove_answer_0D("forefathers");
		UcMessage("\"The greatest battle of the Goblin wars took place in the days when Gurnordir was King of the Goblins.\"");
		UcSay;
		UcMessage("\"He was the mightiest Goblin who ever lived, and he led the Goblin Horde in the invasion which placed Monitor itself under siege.\"");
		UcSay;
		UcMessage("\"The Goblins stormed the walls, and fought their way inside the city. However, the Bears surrounded them, and Gurnordir was at last slain.\"");
		UcSay;
		UcMessage("\"From his dead body was taken the Helm of Courage, and his ashes are enshrined in Knight's Test.\"");
		UcSay;
		UI_add_answer_0C(["Helm of Courage", "ashes"]);
	labelFunc044F_0441:
		cmps("Helm of Courage");
		UI_remove_answer_0D("Helm of Courage");
		UcMessage("\"We now call it the Helm of Monitor, and it is worn by the Knight Champion. But it first came from the Goblins.\"");
		UcSay;
		UcMessage("\"Whence it came before they got their hands upon it, no one can say.\"");
		UcSay;
		UcMessage("\"The Helm doth have mystical powers, which we believe are due to being imbued with the essence of Courage.\"");
		UcSay;
	labelFunc044F_045C:
		cmps("ashes");
		UI_remove_answer_0D("ashes");
		UcMessage("\"As Renfry can tell thee, we Monitorians have a special reverence for the Ashes of the Dead.\"");
		UcSay;
		UcMessage("\"When a Knight dies, his body must be brought back to Monitor for cremation. The ashes are then placed in the Crypts.\"");
		UcSay;
		UcMessage("\"In the case of Gurnordir, his ashes have a strange power. Like all ashes, they are imbued with the essence of the living being.\"");
		UcSay;
		if(!gflags[004A]) goto labelFunc044F_0484;
		UcMessage("\"As thou hast seen, the ashes are used in the climax of the Test of Knighthood. Somehow, they have the power to summon one's totem animal.\"");
		UcSay;
		goto labelFunc044F_048C;
	labelFunc044F_0484:
		UcMessage("\"In the climax of the Test of Knighthood, one doth mix one's own blood with the Ashes of Gurnordir.\"");
		UcSay;
		UcMessage("\"Through a mystical process, this causes one's own totem animal to appear. Thus, it is revealed to which Command thou dost belong.\"");
		UcSay;
	labelFunc044F_048C:
		cmps("miracle");
		UI_remove_answer_0D("miracle");
		UcMessage("\"It shames me to say that I am the sole survivor from the ambush of Astrid's patrol. The Goblins left me for dead, but I was merely dazed.\"");
		UcSay;
		UcMessage("\"There was a heap of bodies where Astrid had last been fighting, but her body was not there. It is obvious to me that they took her alive.\"");
		UcSay;
		UcMessage("\"I managed to reach Knight's Test, where Shmed gave me shelter and sent for Harnna to bandage my wounds. When I recover, I am going there again!\"");
		UcSay;
		UI_push_answers_0E();
		if(!(!var0003)) goto labelFunc044F_04B9;
		UI_add_answer_0C("ambush");
	labelFunc044F_04B9:
		UI_add_answer_0C(["Astrid", "alive", "change subject"]);
	labelFunc044F_04C9:
		cmps("ambush", "traitor");
		UI_remove_answer_0D("ambush");
		UI_remove_answer_0D("traitor");
		var0003 = true;
		if(!gflags[0044]) goto labelFunc044F_04F3;
		UcMessage("\"A Goblin magically transformed himself into a man and hid amongst us as Simon. Amazing! One day we must learn the secret of how they could accomplish this thing.\"");
		UcSay;
		goto labelFunc044F_0510;
	labelFunc044F_04F3:
		UcMessage("\"It was as if they knew our plans! They were lying in wait across our path, and were upon us in moments. What carnage!\"");
		UcSay;
		UcMessage("\"It grieves me to say this, but there must be a traitor in Monitor. Someone must have revealed our plans to the Goblins.\"");
		UcSay;
		UcMessage("\"As a Bear, I know that our Command is innocent. Caladin doth have many faults, but being devious is not one of them.\"");
		UcSay;
		UcMessage("\"The traitor is either a Wolf or a Leopard. Perhaps if thou dost ask around, thou mightest find clues in this mystery.\"");
		UcSay;
		UI_add_answer_0C(["Wolf", "Leopard"]);
	labelFunc044F_0510:
		cmps("Wolf");
		UI_remove_answer_0D("Wolf");
		UcMessage("\"The Wolves have been disloyal to Monitor since Brendann took charge. He would have us guard the roads, not the city itself!\"");
		UcSay;
		UcMessage("\"If anyone is the spy, it must be Krayg. He is often out in the woods, alone -- and he never brings back booty or prisoners.\"");
		UcSay;
		UcMessage("\"What can he be doing? He says that he doth have an old injury, but he's merely a snivelling coward.\"");
		UcSay;
		gflags[004E] = true;
	labelFunc044F_052F:
		cmps("Leopard");
		UI_remove_answer_0D("Leopard");
		UcMessage("\"Marsten, the leader of the Leopard Command, officially runs the town and he doth have his hands full. Not only are there the Goblins to worry about, but there is also a thief stealing money from the treasury. Spektor, his right hand man, is in charge of that as well. Needless to say it hath made things unpleasant between the commands as of late.\"");
		UcSay;
		gflags[00B6] = true;
	labelFunc044F_0546:
		cmps("Astrid");
		UI_remove_answer_0D("Astrid");
		UcMessage("\"She was the greatest Knight that I have ever had the honor of fighting beside. Carrying on her standard is a challenge to which I will dedicate myself for the rest of my life.\"");
		UcSay;
	labelFunc044F_0559:
		cmps("alive");
		UI_remove_answer_0D("alive");
		UcMessage("\"Being captured alive by the Goblins is a far worse fate than being killed by them on the battlefield. Survivors tell horrifying stories of torture, mutilation and things I should not even speak of.\"");
		UcSay;
	labelFunc044F_056C:
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		if(!gflags[002C]) goto labelFunc044F_0588;
		UcMessage("\"With Pomdirgun dead, those wicked Goblins will be much easier to defeat. His evil brain was constantly able to devise strategies that perplexed us. Thou hast done us a great service and I thank thee.\"");
		UcSay;
		goto labelFunc044F_0590;
	labelFunc044F_0588:
		UcMessage("\"He is the Goblin leader -- a king or a chieftain, depending on how one translates the Goblin tongue.\"");
		UcSay;
		UcMessage("\"Pomdirgun claims to be a direct descendant of Gurnordir. Having heard him curse us on the field of battle, I know that he speaks our tongue -- quite a feat for one of those creatures.\"");
		UcSay;
	labelFunc044F_0590:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"How strange! Thou wouldst never find an intact bottle in a Goblin camp -- the creatures delight in smashing glass. Their barbarian urges are very strong.\"");
		UcSay;
		UcMessage("\"This must have been left by a Man. At last -- evidence to identify our traitor!\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc044F_05C3;
		UcMessage("\"Such an unusual bottle... Perhaps Lucilla can identify it for thee.\"");
		UcSay;
		goto labelFunc044F_05C7;
	labelFunc044F_05C3:
		UcMessage("\"Thou must inquire to see if anyone can identify this bottle.\"");
		UcSay;
	labelFunc044F_05C7:
		cmps("Argus");
		UI_remove_answer_0D("Argus");
		UcMessage("\"He was a Knight of Monitor with whom I had an altercation. He took bribes, and when my friend accused him of it, Argus slew him on the List Field.\"");
		UcSay;
		UcMessage("\"Then there was a hue and cry, for the honor of the List Field was at stake! The Wolves wanted to protect Argus, but the Bears were for justice!\"");
		UcSay;
		UcMessage("\"Shortly afterward, Argus left town. He must have been guilty, or he would have stayed to prove his innocence.\"");
		UcSay;
	labelFunc044F_05E2:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Bye!@", 0x0000);
		Func097F(0xFFB1, "@Vigilance!@", 0x0002);
		goto labelFunc044F_060C;
	labelFunc044F_0609:
		goto labelFunc044F_022D;
	labelFunc044F_060C:
		end_conv();
	labelFunc044F_060D:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func0833 0x833 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0956 0x956 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func0450 0x450 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = false;
	var0001 = UI_get_item_flag_A3(0xFFB0, 0x001C);
	var0002 = Func0953();
	if(!(event == 0x0007)) goto labelFunc0450_0031;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0450_0031:
		if(!((event == 0x000A) || (event == 0x0002))) goto labelFunc0450_0049;
		0xFFB0;
		calle();
		Func0833(event);
	labelFunc0450_0049:
		if(!(event == 0x0001)) goto labelFunc0450_05AA;
		Func097F(0xFE9C, "@Hail!@", 0x0000);
		0xFFB0;
		calle();
		UI_clear_item_say_4E(0xFFB0);
		UI_show_npc_face0_05(0xFFB0, 0x0000);
		if(!(!var0001)) goto labelFunc0450_0113;
		UcMessage("\"Halt! Who art thou and what is thy business?\"");
		UcSay;
		var0004 = Func0956(["I am the Avatar", ("I am " + var0002), "Who doth wish to know?"]);
		if(!(var0004 == "I am the Avatar")) goto labelFunc0450_00A3;
		UcMessage("\"Who? Never heard of thee.\"");
		UcSay;
	labelFunc0450_00A3:
		if(!(var0004 == ("I am " + var0002))) goto labelFunc0450_00B5;
		UcMessage("\"I see.\"");
		UcSay;
	labelFunc0450_00B5:
		if(!(var0004 == "Who wants to know?")) goto labelFunc0450_00C3;
		UcMessage("\"I ask the questions here.\"");
		UcSay;
	labelFunc0450_00C3:
		UcMessage("\"Another stranger! Most suspicious. There have not been many travellers recently.\"");
		UcSay;
		Func09AC(0xFFBB, 0x0310, 0x0A66, 0x001D);
		Func09AC(0xFFC1, 0x030F, 0x0A64, 0x001D);
		Func09AC(0xFF6A, 0x0310, 0x0A6A, 0x001D);
		Func09AC(0xFFB3, 0x030F, 0x0A68, 0x001D);
		UI_add_answer_0C(["open the gate", "strangers"]);
		goto labelFunc0450_016C;
	labelFunc0450_0113:
		UcMessage("\"What is it now?\"");
		UcSay;
		UI_add_answer_0C(["name", "duties"]);
		var0005 = UI_get_object_position_20(0xFFB0);
		var0006 = var0005[0x0001];
		var0007 = var0005[0x0002];
		if(!((var0006 > 0x0310) && ((var0006 < 0x0330) && ((var0007 > 0x0AA0) && (var0007 < 0x0AD0))))) goto labelFunc0450_016C;
		UI_add_answer_0C(["gate"]);
	labelFunc0450_016C:
		if(!(gflags[0048] && (!UI_get_item_flag_A3(0xFFB4, 0x0004)))) goto labelFunc0450_0185;
		UI_add_answer_0C("traitor");
	labelFunc0450_0185:
		if(!gflags[00CC]) goto labelFunc0450_0192;
		UI_add_answer_0C("Pomdirgun");
	labelFunc0450_0192:
		if(!gflags[0044]) goto labelFunc0450_019F;
		UI_add_answer_0C("Simon");
	labelFunc0450_019F:
		if(!var0001) goto labelFunc0450_01AC;
		UI_add_answer_0C("bye");
	labelFunc0450_01AC:
		UcAsk;
		cmps("Pomdirgun");
		UI_remove_answer_0D("Pomdirgun");
		UcMessage("\"Thou hast killed the worst enemy Monitor hath ever faced! Surely the day of his death will be cause for celebration for many years to come. Thou dost have my thanks, and the thanks of all of Monitor.\"");
		UcSay;
	labelFunc0450_01C2:
		cmps("Simon");
		UI_remove_answer_0D("Simon");
		UcMessage("\"Perhaps now that Simon was exposed as a Goblin spy the city will be safe again. Then again, I have the feeling that as long as there is a Goblin alive somewhere in the world we will never be truly safe.\"");
		UcSay;
	labelFunc0450_01D5:
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		UcMessage("\"Thou hast mistaken me for someone who wastes time with idle chatter, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"If there is a traitor, no doubt Lord Marsten shall unmask him. Meanwhile, I shall do my duty.\"");
		UcSay;
	labelFunc0450_01F2:
		cmps("open the gate");
		UcMessage("\"Art thou friend or foe?\"");
		UcSay;
		if(!(Func0956(["friend", "foe"]) == "friend")) goto labelFunc0450_02D9;
		UcMessage("\"I do not know thou art a friend... I shall let thee in, but thou must have an escort until thou hast spoken to Lord Marsten.\"");
		UcSay;
		UcMessage("\"Thou canst find him at the Crematorium, mourning for the dead. Follow the road north.\"");
		UcSay;
		UcMessage("\"Remember, we shall be keeping an eye upon thee!\"");
		UcSay;
		Func097F(0xFFB0, "@Pikemen!@", 0x0001);
		var0008 = UI_create_new_object2_2D(0x00E4, [0x032E, 0x0AAF, 0x0000]);
		if(!var0008) goto labelFunc0450_0273;
		UI_set_npc_id_BD(var0008, 0x0003);
		UI_set_schedule_type_25(var0008, 0x0009);
		UI_set_alignment_4A(var0008, 0x0000);
		var0003 = UI_set_npc_prop_29(var0008, 0x0001, 0x000A);
	labelFunc0450_0273:
		var0008 = UI_create_new_object2_2D(0x00E4, [0x032C, 0x0ABE, 0x0000]);
		if(!var0008) goto labelFunc0450_02BD;
		UI_set_npc_id_BD(var0008, 0x0003);
		UI_set_schedule_type_25(var0008, 0x0009);
		UI_set_alignment_4A(var0008, 0x0000);
		var0003 = UI_set_npc_prop_29(var0008, 0x0001, 0x000A);
	labelFunc0450_02BD:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		Func0833(event);
		UI_set_item_flag_A4(0xFFB0, 0x001C);
		abrt();
		goto labelFunc0450_02EA;
	labelFunc0450_02D9:
		UcMessage("\"Then I shall certainly not let thee in.\"");
		UcSay;
		Func097F(0xFFB0, "@Be thou gone!@", 0x0000);
		abrt();
	labelFunc0450_02EA:
		cmps("strangers");
		UI_remove_answer_0D("strangers");
		UcMessage("\"The Colored Storms and the Goblins have kept most people off the roads, and so 'tis unusual to see strangers in Monitor.\"");
		UcSay;
		if(!(!var0000)) goto labelFunc0450_030B;
		UI_add_answer_0C("Goblins");
	labelFunc0450_030B:
		UI_add_answer_0C("storms");
		if(!(!gflags[0078])) goto labelFunc0450_0341;
		UcMessage("\"Suspicious, in fact...\"");
		UcSay;
		UcMessage("\"Perhaps thou art in league with the enchanter who materialized in the center of town! We promptly jailed him.\"");
		UcSay;
		gflags[00A9] = true;
		if(!(!gflags[0032])) goto labelFunc0450_0337;
		UcMessage("\"But the uproar interrupted the funeral ceremonies.\"");
		UcSay;
		UI_add_answer_0C("funeral");
	labelFunc0450_0337:
		UI_add_answer_0C(["enchanter"]);
	labelFunc0450_0341:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"Didst thou not see the storm which passed by here so recently? Even a Knight must hide from the fury of Nature!\"");
		UcSay;
		UcMessage("\"Hast thou noticed the lightning? It comes in many colors, and it hath sinister magical properties!\"");
		UcSay;
	labelFunc0450_0358:
		cmps("gate");
		UI_remove_answer_0D("gate");
		UcMessage("\"Aye, 'tis a gate indeed. And a strong one at that. To repel any foe who dares attempt to breach these walls.\" *\"I suppose thou dost want me to operate it. As if I had naught to do...\"");
		UcSay;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		Func0833(event);
		abrt();
	labelFunc0450_037A:
		cmps("enchanter");
		UI_remove_answer_0D("enchanter");
		UcMessage("\"Thou dost show an unusual interest in this man. Speak to Lord Marsten. I shall say no more to thee about the matter.\"");
		UcSay;
	labelFunc0450_038D:
		cmps("funeral");
		UI_remove_answer_0D("funeral");
		UcMessage("\"'Tis a sad affair. One of our patrols was ambushed, and the Goblins slew nearly all of them! Only Templar survived to return.\"");
		UcSay;
		UcMessage("\"Worse yet, the patrol was led by the Champion Knight, and she remains lost. We must assume that she is slain, and the Helm of Monitor taken!\"");
		UcSay;
		UI_add_answer_0C(["Champion Knight", "Helm of Monitor"]);
	labelFunc0450_03B1:
		cmps("Champion Knight");
		UI_remove_answer_0D("Champion Knight");
		UcMessage("\"We are lost without Astrid, for she was a Warrior of Warriors!\"");
		UcSay;
		UcMessage("\"Only the bravest Knight can be the Champion of Monitor. We compete constantly for the title, and this keeps us fit to battle the Goblin hordes.\"");
		UcSay;
		UcMessage("\"Astrid was unique among us, for she had held the title for nearly three years. In the north, they say that women are weak, but not in Monitor!\"");
		UcSay;
	labelFunc0450_03CC:
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"The Helm is more than symbolic. Yes, the Champion Knight wears it. But it stands for something!\"");
		UcSay;
		UcMessage("\"It was once the property of the Goblin chieftain who nearly conquered Monitor!\"");
		UcSay;
		if(!(!gflags[002C])) goto labelFunc0450_03F1;
		UcMessage("\"Now that they have it again, we are in dire trouble.\"");
		UcSay;
		goto labelFunc0450_03F5;
	labelFunc0450_03F1:
		UcMessage("\"Since thou hast brought it back, Monitor shall surely never fall.\"");
		UcSay;
	labelFunc0450_03F5:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am Flicken, and I am a Knight of Monitor. I belong to the Command of the Bear.\"");
		UcSay;
		UcMessage("\"We are all Knights here. If thou art not a Knight of Monitor, then thou dost not belong in Monitor!\"");
		UcSay;
		if(!(!gflags[007F])) goto labelFunc0450_041D;
		UI_add_answer_0C("Command");
		goto labelFunc0450_042A;
	labelFunc0450_041D:
		UI_add_answer_0C(["Wolves", "Leopards"]);
	labelFunc0450_042A:
		UI_add_answer_0C("Bears");
	labelFunc0450_0431:
		cmps("Command");
		UI_remove_answer_0D("Command");
		UcMessage("\"The Knights of Monitor are organized into three clans, which are called Commands.\"");
		UcSay;
		UcMessage("\"The Bears are the elite, but there are also the Wolves and the Leopards. Thou canst tell us apart by our tattoos.\"");
		UcSay;
		gflags[007F] = true;
		UI_add_answer_0C(["Bears", "Wolves", "Leopards"]);
	labelFunc0450_045C:
		cmps("Bears");
		UI_remove_answer_0D("Bears");
		if(!(!gflags[004A])) goto labelFunc0450_047D;
		UcMessage("\"If thou dost ever become a Knight of Monitor, then pray that the Ashes of Gurnordir proclaim thee a Knight of the Bears!\"");
		UcSay;
		UI_add_answer_0C("Ashes of Gurnordir");
	labelFunc0450_047D:
		UcMessage("\"We are the strongest of the Commands. The Goblins shall never break this city, so long as we are here to man the walls!\"");
		UcSay;
	labelFunc0450_0481:
		cmps("Ashes of Gurnordir");
		UI_remove_answer_0D("Ashes of Gurnordir");
		UcMessage("\"I probably should not speak of sacred matters to outsiders, but it is true that the Ashes of the Dead are holy.\"");
		UcSay;
		UcMessage("\"If thou wantest to know more, speak to Caladin or Marsten -- they deal with outsiders.\"");
		UcSay;
	labelFunc0450_0498:
		cmps("Wolves");
		UI_remove_answer_0D("Wolves");
		UcMessage("\"Bah! If they had their way, the Wolves would waste all our men defending the highways, and leave Monitor defenseless!\"");
		UcSay;
		UcMessage("\"Their leader, Brendann, is a profligate. Spending too much time with loose women is bad for a warrior -- mark my words!\"");
		UcSay;
	labelFunc0450_04AF:
		cmps("Leopards");
		UI_remove_answer_0D("Leopards");
		if(!(!gflags[0038])) goto labelFunc0450_04D7;
		UcMessage("\"No one knows what the Leopards stand for anymore! Marsten used to be strong and virile, but now he rules the city from his desk.\"");
		UcSay;
		UcMessage("\"As for Spektor, he would rather pick up a quill than a sword. With such leaders, how can the Leopards amount to much!\"");
		UcSay;
		UI_add_answer_0C("ruler");
		goto labelFunc0450_04DB;
	labelFunc0450_04D7:
		UcMessage("\"With Marsten in prison, the Leopards must needs be restored to what they once were! But Shazzana is a she-tiger... she will set things aright.\"");
		UcSay;
	labelFunc0450_04DB:
		cmps("ruler");
		UI_remove_answer_0D("ruler");
		UcMessage("\"Monitor hath no King or Queen -- we do not believe in such things, and left our ancient homeland to escape a tyrant who thought otherwise.\"");
		UcSay;
		UcMessage("\"The Lords of the Commands take turns ruling Monitor. Currently, Marsten doth have that duty. Next year it shall be Caladin, then after that we must suffer a year under Brendann's yoke.\"");
		UcSay;
	labelFunc0450_04F2:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the Chief Pikeman, and my station is the Southwest Gate. The task of the Pikemen of Monitor is to man the city walls, and watch for Goblins.\"");
		UcSay;
		if(!(!var0000)) goto labelFunc0450_0516;
		UI_add_answer_0C(["Goblins"]);
	labelFunc0450_0516:
		cmps("Goblins");
		UI_remove_answer_0D("Goblins");
		UcMessage("\"Foul creatures! They are the bane of our existence. We are at war with the Goblins, and have been for many generations. If it were not for the Pikemen patrolling the roads, one could never travel anywhere!\"");
		UcSay;
		var0000 = true;
		UI_add_answer_0C(["roads", "travel"]);
	labelFunc0450_053A:
		cmps("roads");
		UI_remove_answer_0D("roads");
		UcMessage("\"Dost thou know nothing?! Why, we Monitorians have rebuilt the ancient highways, and added new trails and byways.\"");
		UcSay;
		UcMessage("\"Each of our Commands supplies the men to guard the Towers which protect the trade routes.\"");
		UcSay;
		UcMessage("\"But it is all foolishness! Fawn Tower hath been conquered, and the Goblins will not stop there!\"");
		UcSay;
	labelFunc0450_0555:
		cmps("travel");
		UI_remove_answer_0D("travel");
		UcMessage("\"Why would anyone bother with going anywhere beyond Monitor? This is where Courage thrives -- out there, frivolity reigns...\"");
		UcSay;
		UcMessage("\"Moonshade is nothing more than a city of mages. Who needs magic? It pales before a sharply honed sword.\"");
		UcSay;
		UcMessage("\"As for Fawn, the place is obsessed with strange customs. And they worship Beauty -- now, how can that compare to Courage?\"");
		UcSay;
	labelFunc0450_0570:
		cmps("bye");
		if(!(!gflags[004A])) goto labelFunc0450_0587;
		UcMessage("\"Do not be surprised if most people do not talk to thee! Since thou art not a Knight of Monitor, thou dost not belong here.\"");
		UcSay;
		UcMessage("\"Only the bravest of the brave can be a member of our community!\"");
		UcSay;
	labelFunc0450_0587:
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Thank thee.@", 0x0000);
		Func097F(0xFFB0, "@Courage!@", 0x0002);
		goto labelFunc0450_05A9;
	labelFunc0450_05A6:
		goto labelFunc0450_01AC;
	labelFunc0450_05A9:
		end_conv();
	labelFunc0450_05AA:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern var Func0942 0x942 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0956 0x956 (var var0000);
extern var Func0955 0x955 ();
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func082D 0x82D ();

Func0451 0x451 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_item_flag_A3(0xFFAF, 0x001C);
	var0004 = Func0994();
	var0005 = Func0942(Dupre);
	var0006 = Func0942(Shamino);
	var0007 = Func0942(Iolo);
	var0008 = false;
	var0009 = false;
	var000A = false;
	var000B = false;
	var000C = false;
	if(!(event == 0x0000)) goto labelFunc0451_0101;
	var000D = UI_get_random_00(0x0006);
	if(!(var000D == 0x0001)) goto labelFunc0451_007B;
	UI_item_say_4D(0xFFAF, "@I shall have revenge!@");
	labelFunc0451_007B:
		if(!(var000D == 0x0002)) goto labelFunc0451_008F;
		UI_item_say_4D(0xFFAF, "@I am an Adept!@");
	labelFunc0451_008F:
		if(!(var000D == 0x0003)) goto labelFunc0451_00A3;
		UI_item_say_4D(0xFFAF, "@Bide thee...@");
	labelFunc0451_00A3:
		if(!(var000D == 0x0004)) goto labelFunc0451_00B7;
		UI_item_say_4D(0xFFAF, "@They shall see...@");
	labelFunc0451_00B7:
		if(!(var000D == 0x0005)) goto labelFunc0451_00ED;
		if(!Func0942(0xFFD5)) goto labelFunc0451_00E3;
		UI_item_say_4D(0xFFAF, "@Stay thou away from me!@");
		Func097F(0xFFD5, "@Yes, m'lord.@", 0x0002);
		goto labelFunc0451_00ED;
	labelFunc0451_00E3:
		UI_item_say_4D(0xFFAF, "@I shall prevail!@");
	labelFunc0451_00ED:
		if(!(var000D == 0x0006)) goto labelFunc0451_0101;
		UI_item_say_4D(0xFFAF, "@What do I here?@");
	labelFunc0451_0101:
		if(!(event == 0x0001)) goto labelFunc0451_012F;
		UI_item_say_4D(0xFE9C, "@Greetings!@");
		0xFFAF;
		calle();
		Func097F(0xFFAF, "@Art thou speaking to me?@", 0x0005);
		UI_set_schedule_type_25(0xFFAF, 0x0003);
	labelFunc0451_012F:
		if(!(event == 0x0009)) goto labelFunc0451_095C;
		UI_run_schedule_B7(0xFFAF);
		UI_clear_item_say_4E(0xFFAF);
		UI_show_npc_face0_05(0xFFAF, 0x0000);
		if(!(UI_get_schedule_type_24(0xFFAF) == 0x0007)) goto labelFunc0451_0161;
		var000E = true;
	labelFunc0451_0161:
		if(!((gflags[0004] == true) && (gflags[00D4] == false))) goto labelFunc0451_018C;
		UcMessage("\"Seest thou, ");
		UcMessage(var0002);
		UcMessage("? I told thee that I would teach them not to take Ensorcio lightly! I told thee that one day they would welcome me back... Beg for me to return!\"");
		UcSay;
		UI_add_answer_0C(["teach them", "welcome", "bye"]);
		goto labelFunc0451_0213;
	labelFunc0451_018C:
		if(!(var0003 == false)) goto labelFunc0451_01E0;
		if(!(gflags[003E] == true)) goto labelFunc0451_01BB;
		UcMessage("\"Well, if it isn't another petty tyrant!\"");
		UcSay;
		UcMessage("\"Thou mayest as well leave now, Pikeman. I have no use for the likes of thee... And thou canst do nothing to avenge the wrongs I have suffered.\"");
		UcSay;
		UcMessage("\"So, leave thou before I grow tired of thee and thou dost feel the wrath of Ensorcio the Adept!\"");
		UcSay;
		UI_add_answer_0C(["tyrant", "wrongs", "bye"]);
		goto labelFunc0451_01D3;
	labelFunc0451_01BB:
		UcMessage("\"Thou mayest as well leave now, hero. I have seen thy kind before and have no use for the likes of thee... And thou canst do nothing to avenge the wrongs I have suffered.\"");
		UcSay;
		UcMessage("\"So, leave thou before I grow tired of thee and thou dost feel the wrath of Ensorcio the Adept!\"");
		UcSay;
		UI_add_answer_0C(["hero", "wrongs", "bye"]);
	labelFunc0451_01D3:
		UI_set_item_flag_A4(0xFFAF, 0x001C);
		goto labelFunc0451_01F3;
	labelFunc0451_01E0:
		if(!(gflags[003E] == true)) goto labelFunc0451_01EF;
		UcMessage("\"So, thou art returned... Failed in thy puny quest already, Pikeman?\"");
		UcSay;
		goto labelFunc0451_01F3;
	labelFunc0451_01EF:
		UcMessage("\"So, thou art returned... Failed in thy puny quest already, hero?\"");
		UcSay;
	labelFunc0451_01F3:
		if(!var000E) goto labelFunc0451_0200;
		UI_add_answer_0C("spells");
	labelFunc0451_0200:
		UI_add_answer_0C(["wrongs", "Devra", "Hawk", "bye"]);
	labelFunc0451_0213:
		UcAsk;
		cmps("teach them");
		UcMessage("\"Shamino the Anarch hath proclaimed me the finest of Adepts! At last someone hath seen my talents and set them for the world to see... No more shall I be Ensorcio the shunned, Ensorcio the exile! Now I am the premier Adept!\"");
		UcSay;
		UI_remove_answer_0D("teach them");
	labelFunc0451_0229:
		cmps("welcome");
		UcMessage("\"Filbercio's unjust rule hath been brought to an end!\"");
		UcSay;
		UcMessage("\"Shamino the Anarch, thy wonderful companion, hath cast him from power and I have been welcomed with open arms!\"");
		UcSay;
		UcMessage("\"Oh, what joy! To be back in Moonshade and free to experiment as I wish!\"");
		UcSay;
		UI_remove_answer_0D("welcome");
	labelFunc0451_0244:
		cmps("tyrant");
		UcMessage("\"Yes, tyrant! And I shall say it in front of Argus, too, for all that matters!\"");
		UcSay;
		UcMessage("\"You Pikemen wear your @bravery@ marked on your faces for all to see and expect the world to tremble at your feet! Thou demandest tribute like a king, but all thou art worthy of is contempt!\"");
		UcSay;
		if(!(var0005 == true)) goto labelFunc0451_0275;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Thou dost not speak to an ordinary Pikeman!\" *\"This is the Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_0275:
		if(!(var0006 == true)) goto labelFunc0451_0296;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Thou mayest not judge the Avatar by this mark alone!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_0296:
		if(!(var0007 == true)) goto labelFunc0451_02B7;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Do not let him say such things about thee, Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_02B7:
		UcMessage("\"I see thee draw thyself up... Have I offended thee? And what wilt thou do, Pikeman? Drag me to thy jail as thy comrades did drag Hawk?\"");
		UcSay;
		UI_remove_answer_0D("tyrant");
		UI_add_answer_0C(["Argus", "tribute", "Hawk"]);
	labelFunc0451_02D2:
		cmps("Argus");
		UcMessage("\"For all that he is Devra's son, he is still a dog!\"");
		UcSay;
		UcMessage("\"I will grant that he came home when Devra summoned him, unlike Wilfred. But the two are cut from the same cloth, all the same... Vain, pompous braggarts!\"");
		UcSay;
		UI_remove_answer_0D("Argus");
		UI_add_answer_0C("Wilfred");
		if(!(var0008 == false)) goto labelFunc0451_02FF;
		UI_add_answer_0C("Devra");
	labelFunc0451_02FF:
		cmps("Wilfred");
		UcMessage("\"Wilfred is Devra's youngest whelp. And I'll wager that thou wilt never find a better example of the attitude of which I speak.\"");
		UcSay;
		if(!(var0007 == true)) goto labelFunc0451_032C;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"He's a fine one to talk of attitude...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_032C:
		UcMessage("\"Wilfred ran away to prove to the world that he was better than his brother... A better bully, a better ruffian and a better murderer thou shalt not find!\"");
		UcSay;
		UI_remove_answer_0D("Wilfred");
	labelFunc0451_0337:
		cmps("tribute");
		UcMessage("\"Or perhaps I should say @donation@!\"");
		UcSay;
		UcMessage("\"Where is the honor in charging even the poorest peasant a ruinous fee to use the only safe road in all the islands? So much for protecting the weak and helping the poor!\"");
		UcSay;
		UI_remove_answer_0D("tribute");
	labelFunc0451_034E:
		cmps("Hawk");
		UcMessage("\"Hawk is the captain of the Arabella.\"");
		UcSay;
		UcMessage("\"I am afraid that Flindo was a bit distressed to hear that the good captain had no intention of risking himself or his ship to take that upstanding merchant back to Moonshade in these damnable storms. So he bought the muscle of the Pikemen to @persuade@ Hawk that remaining here would be unhealthy...\"");
		UcSay;
		gflags[01CD] = true;
		UI_remove_answer_0D("Hawk");
		UI_push_answers_0E();
		UI_add_answer_0C(["Moonshade", "storms", "Flindo", "change subject"]);
	labelFunc0451_0380:
		cmps("change subject");
		UcMessage("\"As thou dost wish...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0451_0390:
		cmps("Moonshade");
		UcMessage("\"Moonshade, the city of wonders! And the city of charlatans!\"");
		UcSay;
		UcMessage("\"Heaven forfend that thou shouldst try something innovative! It might endanger the incompetent fools led by Filbercio and his trained Council of Mages!\"");
		UcSay;
		UI_remove_answer_0D("Moonshade");
		UI_add_answer_0C(["Filbercio", "Council of Mages"]);
	labelFunc0451_03B4:
		cmps("Filbercio");
		UcMessage("\"Filbercio is a presumptuous maggot who calls himself MageLord of Moonshade!\"");
		UcSay;
		UcMessage("\"I doubt that he could light a candle magically! But he doth have the backing of the Council and the threat of the Mountains of Freedom to support his claim!\"");
		UcSay;
		UcMessage("\"The one saving grace for Moonshade is that Filbercio spends all of his time pursuing skirts! His insignificant knowledge of magic hath little effect in the bedchambers of his conquests!\"");
		UcSay;
		var000A = true;
		UI_remove_answer_0D("Filbercio");
		UI_add_answer_0C("Freedom");
	labelFunc0451_03DA:
		cmps("Freedom");
		UcMessage("\"Freedom! What a farce!\"");
		UcSay;
		UcMessage("\"The Mountains of Freedom are a prison, hero! A prison filled with magical traps that none can escape. And that is where Filbercio puts all who anger or oppose him.\"");
		UcSay;
		UcMessage("\"'Tis a small wonder that I did not end there...\"");
		UcSay;
		UI_remove_answer_0D("Freedom");
	labelFunc0451_03F5:
		cmps("Council of Mages");
		UcMessage("\"The Council of Mages is a handful of Adepts meant to keep the MageLord from misusing his power. In this case, however, they spend their time making the decisions that the MageLord should be making.\"");
		UcSay;
		UcMessage("\"But, as unto myself, they are content to allow Filbercio to continue his @amusements@. With luck, he will be killed by one of his paramours.\"");
		UcSay;
		var000B = true;
		UI_remove_answer_0D("Council of Mages");
	labelFunc0451_0410:
		cmps("storms");
		UcMessage("\"Rather showy, if thou shouldst ask me... But rather spectacular results. Entirely too random for my tastes, however.\"");
		UcSay;
		UcMessage("\"Of course, I cannot help wondering which mage is behind them. And I wonder if that double-crossing Batlin has anything to do with them... The storms started after he left here, thou knowest.\"");
		UcSay;
		UI_remove_answer_0D("storms");
		UI_add_answer_0C("Batlin");
	labelFunc0451_042E:
		cmps("Batlin");
		UcMessage("\"I can see that thou knowest of him.\"");
		UcSay;
		UcMessage("\"Batlin came here some time ago, he and his tame daemon. He seemed to take an interest in my story and we spent many evenings exchanging arcane lore. Then he left on some errand.\"");
		UcSay;
		UcMessage("\"When he returned with his other two thugs, Batlin seemed restless. But we continued our discussions as if nothing had changed. I thought he was my friend...\"");
		UcSay;
		UI_remove_answer_0D("Batlin");
		UI_add_answer_0C(["Daemon", "thugs"]);
	labelFunc0451_0456:
		cmps("Daemon");
		UcMessage("\"Absolutely huge... and ugly!\"");
		UcSay;
		UcMessage("\"Batlin called him Palos. And the daemon went about meekly hooded and robed as his master commanded.\"");
		UcSay;
		UcMessage("\"I do admit, I was impressed. I could not help but think about the trouble that Rotoluncia was having.\"");
		UcSay;
		UI_remove_answer_0D("Daemon");
		UI_add_answer_0C("Rotoluncia");
	labelFunc0451_0478:
		cmps("Rotoluncia");
		UcMessage("\"Ever since Filbercio replaced Rotoluncia as his playmate, Rotoluncia hath had to find some other interest to occupy her time.\"");
		UcSay;
		UcMessage("\"And, from what I have heard, that seems to be daemons... Perhaps I can hope that she doth have designs on revenge. I would be content to think of Filbercio filling a daemon's belly.\"");
		UcSay;
		UcMessage("\"So, I am sure that she would take quite an interest in that fat mage's pet daemon. I wish I could send her word...\"");
		UcSay;
		UI_remove_answer_0D("Rotoluncia");
	labelFunc0451_0493:
		cmps("thugs");
		UcMessage("\"I should have guessed that Batlin intended something shady when I saw those two!\"");
		UcSay;
		UcMessage("\"I am sure that Batlin brought them expressly to steal the old jawbone left to me by my mentor.\"");
		UcSay;
		UcMessage("\"Between Brunt, the idiot, and Deadeye, the one-eyed pirate, I am lucky still to be alive...\"");
		UcSay;
		UI_remove_answer_0D("thugs");
		UI_add_answer_0C(["jawbone", "mentor"]);
	labelFunc0451_04BB:
		cmps("jawbone");
		UcMessage("\"'Twas a large serpent jawbone that my mentor received from his mentor, the Mad Mage.\"");
		UcSay;
		UcMessage("\"I could never discover what its use was, though it was clearly magical. 'Twas a keepsake -- though I hoped to discover its secret some day.\"");
		UcSay;
		UcMessage("\"I think that Batlin found its secret... and created these damned storms.\"");
		UcSay;
		var0009 = true;
		UI_remove_answer_0D("jawbone");
		UI_add_answer_0C("Mad Mage");
	labelFunc0451_04E1:
		cmps("Mad Mage");
		UcMessage("\"His true name is Erstam. He taught many of the Moonshadian Adepts their craft. But, as is the way with master and apprentice, they eventually surpassed him in skill and scope.\"");
		UcSay;
		UcMessage("\"The old mage could not abide the thought that these mages were no longer his malleable students, and went quite mad... He saw them all as thieves intent on stealing his secrets and moved to an island off Moonshade.\"");
		UcSay;
		UcMessage("\"He doth refuse to have any dealings with Moonshade to this day. He sits on his island trying to find a way to create life.\"");
		UcSay;
		UI_remove_answer_0D("Mad Mage");
	labelFunc0451_04FC:
		cmps("mentor");
		UcMessage("\"He was a very great man. His name was Vasculio.\"");
		UcSay;
		UcMessage("\"Unfortunately, Vasculio was a man that was constantly testing the limits of convention. The Council of Mages found him threatening, and attempted to kill him when he refused to bow to their wishes...\"");
		UcSay;
		UcMessage("\"But his experimentation with Stoneheart had given him spells to elude even that monstrous fate. He is out there somewhere still, straining at the chains of accepted wisdom.\"");
		UcSay;
		UI_remove_answer_0D("mentor");
		UI_add_answer_0C(["Stoneheart", "spells"]);
	labelFunc0451_0524:
		cmps("Stoneheart");
		UcMessage("\"Ah, such a wonder to behold! It doth come from the depths of the Mountains of Freedom, and is quite rare...\"");
		UcSay;
		UcMessage("\"The Council hath outlawed possession of Stoneheart, because they fear its power. But a small quantity is quietly hidden -- else how would the death spells work?\"");
		UcSay;
		gflags[029D] = true;
		UI_remove_answer_0D("Stoneheart");
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x000F)) goto labelFunc0451_0567;
		UcMessage("\"Thou dost have stoneheart! Could I...\"");
		UcSay;
		UcMessage("\"No, I shall not succumb to its lure. I shall be strong. But thou shouldst take care, for this reagent has a way of twisting a man's heart so that he cannot bear to part from it.\"");
		UcSay;
		UcMessage("\"In its raw form, 'tis useless for spells. For a fee -- sizable, of course -- I could teach thee its secret so that thou mayest also cast death spells.\"");
		UcSay;
		UI_add_answer_0C("secret");
	labelFunc0451_0567:
		cmps("secret");
		UcMessage("\"This is very valuable information, friend.\"");
		UcSay;
		UcMessage("\"How much wouldst thou pay for it?\"");
		UcSay;
		var000F = Func0956(["Guilders", "Gold Coins"]);
		if(!(var000F == "Guilders")) goto labelFunc0451_0596;
		var0010 = 0x03B8;
	labelFunc0451_0596:
		if(!(var000F == "Gold Coins")) goto labelFunc0451_05A6;
		var0010 = 0x0284;
	labelFunc0451_05A6:
		var0011 = UI_count_objects_31(0xFE9B, var0010, 0xFE99, 0xFE99);
		if(!(var0011 == 0x0000)) goto labelFunc0451_05D0;
		UcMessage("\"Thou dost not have any ");
		UcMessage(var000F);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0451_06E3;
	labelFunc0451_05D0:
		var0012 = UI_input_numeric_value_13(0x0000, var0011, 0x0001, 0x0000);
		var0013 = var0012;
		if(!(var000F == "Guilders")) goto labelFunc0451_0601;
		var0013 = ((var0012 * 0x0002) / 0x0003);
	labelFunc0451_0601:
		if(!(var0013 < 0x0001)) goto labelFunc0451_0612;
		UcMessage("\"Imparting such information is risky. Thou dost offer too little in exchange for mine health...\"");
		UcSay;
		goto labelFunc0451_06E3;
	labelFunc0451_0612:
		if(!((var0013 >= 0x0001) && (var0013 <= 0x000F))) goto labelFunc0451_062B;
		UcMessage("\"Thou couldst not buy even so much as a novice's light spell for that paltry sum! Another offer perhaps...\"");
		UcSay;
		goto labelFunc0451_05A6;
	labelFunc0451_062B:
		if(!((var0013 >= 0x0010) && (var0013 <= 0x001E))) goto labelFunc0451_064A;
		UcMessage("\"Art thou serious? Thou wouldst offer only ");
		UcMessage(var0012);
		UcMessage(" for the power of destruction? Think again...\"");
		UcSay;
		goto labelFunc0451_05A6;
	labelFunc0451_064A:
		if(!((var0013 >= 0x001F) && (var0013 <= 0x002D))) goto labelFunc0451_0663;
		UcMessage("\"Dost thou think me a shopkeeper to haggle with? I am Ensorcio the Adept! Do not trifle with me...\"");
		UcSay;
		goto labelFunc0451_05A6;
	labelFunc0451_0663:
		if(!((var0013 >= 0x002E) && (var0013 <= 0x003C))) goto labelFunc0451_067C;
		UcMessage("\"Thou canst be more reasonable than that...\"");
		UcSay;
		goto labelFunc0451_05A6;
	labelFunc0451_067C:
		if(!((var0013 >= 0x003D) && (var0013 <= 0x004B))) goto labelFunc0451_0695;
		UcMessage("\"How can I be sure what use thou wilt make of this? I do not know...\"");
		UcSay;
		goto labelFunc0451_05A6;
	labelFunc0451_0695:
		if(!(var0013 > 0x004B)) goto labelFunc0451_06E3;
		UcMessage("\"Thou art most wise, indeed! For ");
		UcMessage(var0012);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", I shall teach thee how to put thy Stoneheart to use. Agreed?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0451_06DF;
		var0014 = Func0996(0xFE9C, 0xFFAF, var0012, var0010, 0xFE99, 0xFE99, true);
		UcMessage("\"First, thou must have a ritual blood-letting device... Most mages possess one, even though they are technically illegal.\"");
		UcSay;
		UcMessage("\"Then thou must fill a small container with blood, using this device. The blood can be thine or that of any of thy companions... Whichever thou dost find more convenient.\"");
		UcSay;
		UcMessage("\"Once thou hast the blood, thou must use the blood on the Stoneheart. This produces the Bloodspawn that thou wilt need for death spells.\"");
		UcSay;
		goto labelFunc0451_06E3;
	labelFunc0451_06DF:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc0451_06E3:
		UI_remove_answer_0D("secret");
	labelFunc0451_06EA:
		cmps("spells");
		if(!(var000C == false)) goto labelFunc0451_0702;
		UcMessage("\"Like any apprentice, I learned all that I could from my mentor... Whether he was willing to teach me or not. 'Tis all a matter of not being discovered in the act.\"");
		UcSay;
		var000C = true;
	labelFunc0451_0702:
		UcMessage("\"Art thou interested in buying a spell perhaps? I could always use more money for ale...\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0451_0714;
		Func082D();
		goto labelFunc0451_0718;
	labelFunc0451_0714:
		UcMessage("\"If thou art ever interested, find me.\"");
		UcSay;
	labelFunc0451_0718:
		cmps("Flindo");
		UcMessage("\"Flindo would have it that he is a person of note from the fair city of Moonshade, known by one and all. But he is truly little more than a loud shopkeeper with a penchant for gossip.\"");
		UcSay;
		UcMessage("\"Flindo flits about here and there, acquiring merchandise for Bucia to sell, and as much information as he can. I think that alone is why the Adepts humor him from time to time with some tidbit of news...\"");
		UcSay;
		UI_remove_answer_0D("Flindo");
		UI_add_answer_0C("Bucia");
	labelFunc0451_0736:
		cmps("Bucia");
		UcMessage("\"Bucia runs Flindo's shop for him. 'Tis called the Capessi Canton -- a pompous name, if thou dost ask me.\"");
		UcSay;
		UcMessage("\"Bucia charges a fillip more on everything she sells, for her troubles. And is very careful to show Flindo the altered accounts.\"");
		UcSay;
		UI_remove_answer_0D("Bucia");
	labelFunc0451_074D:
		cmps("hero");
		UcMessage("\"Yes, hero! And I shall say it in front of Devra, too, for all that matters!\"");
		UcSay;
		UcMessage("\"You adventurers swagger around as though you could save the world! Thou dost expect awe and reverence from those thou dost meet... The ones that bury thy dead body when thine arrogance doth meet its match!\"");
		UcSay;
		if(!(var0005 == true)) goto labelFunc0451_077E;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Thou dost not speak to an ordinary adventurer!\" *\"This is the Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_077E:
		if(!(var0006 == true)) goto labelFunc0451_079F;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Thou mayest not judge the Avatar so!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_079F:
		if(!(var0007 == true)) goto labelFunc0451_07C0;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Do not let him say such things about thee, Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0451_07C0:
		UcMessage("\"I see thee draw thyself up... Have I offended thee? And what wilt thou do, hero? Imprison me? Or wilt thou simply murder me?\"");
		UcSay;
		UI_remove_answer_0D("hero");
		UI_add_answer_0C(["Devra", "Hawk"]);
	labelFunc0451_07D8:
		cmps("Devra");
		if(!(var0001 == true)) goto labelFunc0451_07EF;
		UcMessage("\"Devra's a fine woman, for all that she is a bit domineering...\"");
		UcSay;
		goto labelFunc0451_07F3;
	labelFunc0451_07EF:
		UcMessage("\"Devra's a fine woman, for all that she is a bit domineering... But then most women are, are they not?\"");
		UcSay;
	labelFunc0451_07F3:
		UcMessage("\"She hath taken her loss incredibly well. She hath convinced that worthless son of hers to return and help with some honest work here at the inn. But, if thou askest me, I would say that she is too kind to the rogues and misfits.\"");
		UcSay;
		var0008 = true;
		UI_remove_answer_0D("Devra");
		UI_add_answer_0C("loss");
	labelFunc0451_0809:
		cmps("loss");
		if(!(var0001 == true)) goto labelFunc0451_0824;
		UcMessage("\"Quite sad, actually. I recall that the morning I went to her to report the theft, she was terribly upset.\"");
		UcSay;
		UcMessage("\"It seems Angus had a bit of Silverpate in him after all, and disappeared... To think of it, perhaps he was the one that stole the jawbone from me... Though why it would interest him, I shall never know.\"");
		UcSay;
		goto labelFunc0451_082C;
	labelFunc0451_0824:
		UcMessage("\"Quite pathetic, actually. When I reported the theft to her that morning she was too distraught to even pay attention to my complaint... Not at all professional -- after all, I am a paying guest here.\"");
		UcSay;
		UcMessage("\"It seems Angus had a bit of Silverpate in him after all, and disappeared... To think of it, perhaps he was the one that stole the jawbone from me... Though why it would interest him, I shall never know.\"");
		UcSay;
	labelFunc0451_082C:
		UI_remove_answer_0D("loss");
		UI_add_answer_0C(["Angus", "Silverpate"]);
		if(!(var0009 == false)) goto labelFunc0451_084F;
		UI_add_answer_0C("jawbone");
	labelFunc0451_084F:
		cmps("Angus");
		UcMessage("\"Angus is... er, was... Devra's husband. Seemed a right enough fellow. Liked a cup or two of ale in the evenings. Worked hard -- But then, with her nagging, he couldn't help but work hard!\"");
		UcSay;
		UcMessage("\"Would never have guessed that he had the spine to leave like that. But I suppose that every man doth have his breaking point...\"");
		UcSay;
		UI_remove_answer_0D("Angus");
	labelFunc0451_0866:
		cmps("Silverpate");
		UcMessage("\"Silverpate is the great-grandfather of Angus.\"");
		UcSay;
		UcMessage("\"They say that old Silverpate was a bloodthirsty pirate. According to popular tales, he reformed and took his ill-gotten gains and built this inn...\"");
		UcSay;
		UcMessage("\"But the Adepts in Moonshade tell a different tale.\"");
		UcSay;
		UI_remove_answer_0D("Silverpate");
		UI_add_answer_0C("tale");
	labelFunc0451_0888:
		cmps("tale");
		UcMessage("\"It seems that Silverpate employed Erstam to do something at the inn -- perhaps hide that fabled treasure, who knows. In any case, the pirate planned to trick Erstam so that he would not have to pay the mage's fees.\"");
		UcSay;
		UcMessage("\"But Erstam found him out and trapped the treacherous @innkeeper@ in a pit filled with daemons. No one ever saw Silverpate again, and people learned to fear crossing any mage.\"");
		UcSay;
		UI_remove_answer_0D("tale");
	labelFunc0451_089F:
		cmps("wrongs");
		UcMessage("\"Thou dost not know the half of it! Here I sit, an Adept in a wretched hovel, exiled from the practice of the magic that is my life's blood!\"");
		UcSay;
		UcMessage("\"The Council hath turned its back on Filbercio's exploits for so long that they sought to make me their scapegoat... their public example.\"");
		UcSay;
		UI_remove_answer_0D("wrongs");
		UI_add_answer_0C("example");
		if(!(var000A == false)) goto labelFunc0451_08CC;
		UI_add_answer_0C("Filbercio");
	labelFunc0451_08CC:
		if(!(var000B == false)) goto labelFunc0451_08DB;
		UI_add_answer_0C("Council of Mages");
	labelFunc0451_08DB:
		cmps("example");
		UcMessage("\"Filbercio hath hopped from bed to bed throughout the city, using every means of coercion possible. But let it be found that poor Ensorcio used magic to catch the favor of an Adept's daughter, and suddenly I am an unspeakable monster!\"");
		UcSay;
		UcMessage("\"Thou canst not know what humiliation is until thou hast been turned out from thine home and told never to return on pain of death!\"");
		UcSay;
		UcMessage("\"Thou canst not know the burning shame to hear that thy wrongdoing hath been proclaimed to all. To know that wherever thou goest people will say, @Isn't Ensorcio that exiled mage from Moonshade?@!\"");
		UcSay;
		UI_remove_answer_0D("example");
		UI_add_answer_0C(["coercion", "Adept's daughter"]);
	labelFunc0451_0903:
		cmps("coercion");
		UcMessage("\"The least that I have heard of is blackmail... Who knows to what other means Filbercio will stoop to fulfill his lusts?\"");
		UcSay;
		UcMessage("\"But I have no details, for I try not to listen to such stories as they always send me into a near-murderous fit... Thou shalt have to seek thine information elsewhere.\"");
		UcSay;
		UI_remove_answer_0D("coercion");
	labelFunc0451_091A:
		cmps("Adept's daughter");
		UcMessage("\"Oh, no! Thou shalt not have her name to drag through the mud alongside Ensorcio! Never!\"");
		UcSay;
		UcMessage("\"I cared enough for her to spend my magics upon her, hoping that she would come to care for me. I'll not have thee blacken her name, for all that's been done to me!\"");
		UcSay;
		UI_remove_answer_0D("Adept's daughter");
	labelFunc0451_0931:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFFAF, "@Fare well...@", 0x0005);
		goto labelFunc0451_095B;
	labelFunc0451_0958:
		goto labelFunc0451_0213;
	labelFunc0451_095B:
		end_conv();
	labelFunc0451_095C:
		if(!(event == 0x0003)) goto labelFunc0451_09A2;
		if(!(var0004 == 0x001F)) goto labelFunc0451_09A2;
		UI_item_say_4D(0xFFEE, "@Save me from this madman!@");
		UI_show_npc_face0_05(0xFFAF, 0x0000);
		if(!(var0003 == true)) goto labelFunc0451_0995;
		UcMessage("\"Do not interfere with me, Avatar!\" ~\"I am the MageLord now...\"");
		UcSay;
		UcMessage("\"Thou dost know that Filbercio is lower than swine...\" ~\"He doth deserve to be tortured for all the ill that he hath done.\"");
		UcSay;
		goto labelFunc0451_099D;
	labelFunc0451_0995:
		UcMessage("\"Do not meddle in that which thou dost not understand, hero!\" ~\"I am the MageLord, and this man is evil.\"");
		UcSay;
		UcMessage("\"He hath destroyed the lives of many.\" ~\"He doth deserve to be tortured for all the ill that he hath done.\"");
		UcSay;
	labelFunc0451_099D:
		UI_remove_npc_face0_07();
		abrt();
	labelFunc0451_09A2:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0452 0x452 (var var0000)
{
	var var0001;
	var var0002;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0452_000E;
	Func0809();
	labelFunc0452_000E:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0452_0048;
		UI_item_say_4D(0xFE9C, "@Speak, automaton!@");
		0xFFAE;
		calle();
		Func097F(0xFFAE, "@Obedience... Failed...@", 0x0002);
		UI_set_schedule_type_25(0xFFAE, 0x0003);
	labelFunc0452_0048:
		if(!(event == 0x0009)) goto labelFunc0452_007D;
		UI_run_schedule_B7(0xFFAE);
		UI_clear_item_say_4E(0xFFAE);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Unfinished... Discipline...\"");
		UcSay;
		UcMessage("\"Master... Punishment... No Order...\"");
		UcSay;
		UcMessage("\"Alcoves... Pain... Cannot succeed...\"");
		UcSay;
		UcMessage("\"Failed... Duty... Punishment...\"");
		UcSay;
		UI_remove_npc_face0_07();
		abrt();
	labelFunc0452_007D:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0453 0x453 (var var0000)
{
	var var0001;
	var var0002;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0453_000E;
	Func0809();
	labelFunc0453_000E:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0453_0048;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFFAD;
		calle();
		Func097F(0xFFAD, "@Speak... Creak... Weak...@", 0x0002);
		UI_set_schedule_type_25(0xFFAD, 0x0003);
	labelFunc0453_0048:
		if(!(event == 0x0009)) goto labelFunc0453_0081;
		UI_run_schedule_B7(0xFFAD);
		UI_clear_item_say_4E(0xFFAD);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Soldiers... Discipline... fountain...\"");
		UcSay;
		UcMessage("\"Seek... Meek...\"");
		UcSay;
		UcMessage("\"Die in acid!... automaton... fetches Water!\"");
		UcSay;
		UcMessage("\"Sleek... Speak... Squeak...\"");
		UcSay;
		gflags[0226] = true;
		UI_remove_npc_face0_07();
		abrt();
	labelFunc0453_0081:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func09AD 0x9AD (var var0000);

Func0454 0x454 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0454_0011;
	Func0809();
	goto labelFunc0454_0015;
	labelFunc0454_0011:
		Func09AD(item);
	labelFunc0454_0015:
		return;
}
// externs
extern Func08B2 0x8B2 ();

Func0455 0x455 (var var0000)
{
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0455_0029;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0032, 0x0000);
	gflags[0209] = true;
	abrt();
	labelFunc0455_0029:
		Func08B2();
		return;
}
// externs
extern Func0809 0x809 ();

Func0456 0x456 (var var0000)
{
	Func0809();
	return;
}
// externs
extern Func08B2 0x8B2 ();

Func0457 0x457 (var var0000)
{
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc0457_0029;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0032, 0x0000);
	gflags[020A] = true;
	abrt();
	labelFunc0457_0029:
		Func08B2();
		return;
}
// externs
extern Func0809 0x809 ();

Func0458 0x458 (var var0000)
{
	Func0809();
	return;
}
// externs
extern Func0809 0x809 ();

Func0459 0x459 (var var0000)
{
	Func0809();
	return;
}
// externs
extern Func0809 0x809 ();

Func045A 0x45A (var var0000)
{
	Func0809();
	return;
}
// externs
extern Func0809 0x809 ();

Func045B 0x45B (var var0000)
{
	Func0809();
	return;
}
// externs
extern Func08B2 0x8B2 ();

Func045C 0x45C (var var0000)
{
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc045C_0029;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0032, 0x0000);
	gflags[020B] = true;
	abrt();
	labelFunc045C_0029:
		Func08B2();
		return;
}
// externs
extern Func08B2 0x8B2 ();

Func045D 0x45D (var var0000)
{
	if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc045D_0029;
	UI_clear_item_flag_A5(item, 0x001D);
	UI_reduce_health_87(item, 0x0032, 0x0000);
	gflags[020C] = true;
	abrt();
	labelFunc045D_0029:
		Func08B2();
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

Func045E 0x45E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc045E_000F;
	Func0809();
	abrt();
	labelFunc045E_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc045E_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFFA2;
		calle();
		Func097F(0xFFA2, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFA2, 0x0003);
	labelFunc045E_0051:
		if(!(event == 0x0009)) goto labelFunc045E_01A4;
		UI_run_schedule_B7(0xFFA2);
		UI_clear_item_say_4E(0xFFA2);
		UI_show_npc_face0_05(0xFFA2, 0x0000);
		if(!gflags[0233]) goto labelFunc045E_0089;
		UcMessage("\"That hath made good use of thy Logic, ");
		UcMessage(var0000);
		UcMessage(". I would not have believed that one of our fellowship could have done such a thing. I thank thee for finding the traitor in our midst.\"");
		UcSay;
		UcMessage("\"Use the key to obtain the waters of Logic. Thou hast well earned that honor.\"");
		UcSay;
		abrt();
		goto labelFunc045E_01A4;
	labelFunc045E_0089:
		UcMessage("\"I am Number 1, ");
		UcMessage(var0000);
		UcMessage(". And I am sorry. Thou must postpone thy meditations, for the key to the fountain room cannot be found.\"");
		UcSay;
		UcMessage("\"I fear that someone hath destroyed Number 7, the keeper of the key!\"");
		UcSay;
		UI_add_answer_0C(["meditations", "destroyed", "accuse", "bye"]);
	labelFunc045E_00AA:
		UcAsk;
		cmps("meditations");
		UI_remove_answer_0D("meditations");
		UcMessage("\"Thy search for Logic can go no further until thou canst drink of the waters of Logic. And until the key to the fountain room is found, no one may taste the pure waters of Logic.\"");
		UcSay;
	labelFunc045E_00C0:
		cmps("destroyed");
		UI_remove_answer_0D("destroyed");
		UcMessage("\"I cannot make any accusations, but we are incapable of leaving our post. Something dire must have happened to Number 7.\"");
		UcSay;
		UcMessage("\"I am restricted from taking action against any of my fellows, so it is up to thee to determine what hath befallen the keeper of the key.\"");
		UcSay;
		UcMessage("\"For my part, I can say that I was with Number 2 and Number 6 when last we saw Number 7.\"");
		UcSay;
	labelFunc045E_00DB:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc045E_0165;
		UcMessage("\"Thou hast no proof! Both Number 2 and Number 6 can attest that I was with them when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFFA1, "@Number 1 was with me!@");
		Func094E(0xFF9D, "@It cannot be! I was with Number 1!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou hast wronged me!\"");
		UcSay;
		var0002 = [0xFFA2, 0xFFA1, 0xFFA0, 0xFF9F, 0xFF9E, 0xFF9D];
		enum();
	labelFunc045E_0135:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc045E_0161);
		UI_set_alignment_4A(var0005, 0x0003);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		goto labelFunc045E_0135;
	labelFunc045E_0161:
		abrt();
		goto labelFunc045E_016F;
	labelFunc045E_0165:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc045E_016F:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		Func097F(0xFFA2, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFFA2, 0x000B);
		goto labelFunc045E_01A3;
	labelFunc045E_01A0:
		goto labelFunc045E_00AA;
	labelFunc045E_01A3:
		end_conv();
	labelFunc045E_01A4:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

Func045F 0x45F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc045F_000F;
	Func0809();
	abrt();
	labelFunc045F_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc045F_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFFA1;
		calle();
		Func097F(0xFFA1, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFA1, 0x0003);
	labelFunc045F_0051:
		if(!(event == 0x0009)) goto labelFunc045F_01FB;
		UI_run_schedule_B7(0xFFA1);
		UI_clear_item_say_4E(0xFFA1);
		UI_show_npc_face0_05(0xFFA1, 0x0000);
		if(!gflags[0233]) goto labelFunc045F_0089;
		UcMessage("\"That hath made good use of thy Logic, ");
		UcMessage(var0000);
		UcMessage(". I would not have believed that one of our fellowship could have done such a thing. I thank thee for finding the traitor in our midst.\"");
		UcSay;
		UcMessage("\"Use the key to obtain the waters of Logic. Thou hast well earned that honor.\"");
		UcSay;
		abrt();
		goto labelFunc045F_01FB;
	labelFunc045F_0089:
		UcMessage("\"Thou mayest call me Number 2, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I regret that thou canst not meditate, ");
		UcMessage(var0000);
		UcMessage(". The strange mage hath damaged the Temple and the key to the fountain room is nowhere to be found!\"");
		UcSay;
		UI_add_answer_0C(["strange mage", "damaged", "key", "accuse", "bye"]);
	labelFunc045F_00B3:
		UcAsk;
		cmps("strange mage");
		UI_remove_answer_0D("strange mage");
		UcMessage("\"He was a nasty-looking little man, ");
		UcMessage(var0000);
		UcMessage(". He and his vile companions came in here without regard for the sanctity of the Temple. It was shocking!\"");
		UcSay;
		UI_add_answer_0C("companions");
	labelFunc045F_00D6:
		cmps("companions");
		UI_remove_answer_0D("companions");
		UcMessage("\"I could not see them well, for the mage kept my fellows and I locked within an energy field while he went about his evil work.\"");
		UcSay;
		UcMessage("\"All I can tell thee is that there were three of them. And one was very large and went heavily-cloaked.\"");
		UcSay;
	labelFunc045F_00ED:
		cmps("damaged");
		UI_remove_answer_0D("damaged");
		UcMessage("\"The mage destroyed the prison container that it was our duty to protect... Why in the name of Order he would ever do such a horrible thing, I do not know.\"");
		UcSay;
		UI_add_answer_0C("prison container");
	labelFunc045F_0107:
		cmps("prison container");
		UI_remove_answer_0D("prison container");
		UcMessage("\"I do not know what great evil was contained there, ");
		UcMessage(var0000);
		UcMessage(". But I know that it exhausted all of the Order Hierophant's magic to imprison it here.\"");
		UcSay;
		UcMessage("\"Who knows what ill is now loose upon the world!\"");
		UcSay;
	labelFunc045F_0124:
		cmps("key");
		UI_remove_answer_0D("key");
		UcMessage("\"It was the duty of Number 7 to keep the key to the fountain room. It hath been quite a while since we last saw Number 7.\"");
		UcSay;
		UcMessage("\"All I remember is that I was with Number 1 when last we saw Number 7. I wonder where he hath gone?\"");
		UcSay;
	labelFunc045F_013B:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc045F_01BC;
		UcMessage("\"Thou art wrong! Number 1 can tell thee where I was when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFFA2, "@Number 2 was with me, as was Number 6!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou shalt pay!\"");
		UcSay;
		var0002 = [0xFFA2, 0xFFA1, 0xFFA0, 0xFF9F, 0xFF9E, 0xFF9D];
		enum();
	labelFunc045F_018C:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc045F_01B8);
		UI_set_alignment_4A(var0005, 0x0003);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		goto labelFunc045F_018C;
	labelFunc045F_01B8:
		abrt();
		goto labelFunc045F_01C6;
	labelFunc045F_01BC:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc045F_01C6:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFFA1, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFFA1, 0x000B);
		goto labelFunc045F_01FA;
	labelFunc045F_01F7:
		goto labelFunc045F_00B3;
	labelFunc045F_01FA:
		end_conv();
	labelFunc045F_01FB:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

Func0460 0x460 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0460_000F;
	Func0809();
	abrt();
	labelFunc0460_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0460_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFFA0;
		calle();
		Func097F(0xFFA0, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFFA0, 0x0003);
	labelFunc0460_0051:
		if(!(event == 0x0009)) goto labelFunc0460_01A7;
		UI_run_schedule_B7(0xFFA0);
		UI_clear_item_say_4E(0xFFA0);
		UI_show_npc_face0_05(0xFFA0, 0x0000);
		if(!gflags[0233]) goto labelFunc0460_0089;
		UcMessage("\"That hath made good use of thy Logic, ");
		UcMessage(var0000);
		UcMessage(". I would not have believed that one of our fellowship could have done such a thing. I thank thee for finding the traitor in our midst.\"");
		UcSay;
		UcMessage("\"Use the key to obtain the waters of Logic. Thou hast well earned that honor.\"");
		UcSay;
		abrt();
		goto labelFunc0460_01A7;
	labelFunc0460_0089:
		UcMessage("\"We have failed to protect the Temple! We have failed to provide thee with the solitude to meditate! And no one hath seen Number 7 in ages!\"");
		UcSay;
		UcMessage("\"I am not worthy of my Number 3! Where is Number 7, the keeper of the key?!\"");
		UcSay;
		UI_add_answer_0C(["protect", "solitude", "Number 7", "accuse", "bye"]);
	labelFunc0460_00A7:
		UcAsk;
		cmps("protect");
		UI_remove_answer_0D("protect");
		UcMessage("\"That is the duty of my fellows and I, to protect the Temple and assist those who come here to meditate on the pure waters of Logic. And we have failed!\"");
		UcSay;
	labelFunc0460_00BD:
		cmps("solitude");
		UI_remove_answer_0D("solitude");
		UcMessage("\"No one would interfere with thy communion with the waters of Logic.\"");
		UcSay;
	labelFunc0460_00D0:
		cmps("Number 7");
		UI_remove_answer_0D("Number 7");
		UcMessage("\"Something must have happened to Number 7. Let me think, I was with Number 5 the last time any of us saw Number 7... and that was quite some time ago.\"");
		UcSay;
		UcMessage("\"I fear we may never find the key to the fountain room now.\"");
		UcSay;
	labelFunc0460_00E7:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0460_0168;
		UcMessage("\"Thou art mad! I was with Number 5 when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFF9E, "@Number 3 was with me!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I shall make thee bleed!\"");
		UcSay;
		var0002 = [0xFFA2, 0xFFA1, 0xFFA0, 0xFF9F, 0xFF9E, 0xFF9D];
		enum();
	labelFunc0460_0138:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0460_0164);
		UI_set_alignment_4A(var0005, 0x0003);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		goto labelFunc0460_0138;
	labelFunc0460_0164:
		abrt();
		goto labelFunc0460_0172;
	labelFunc0460_0168:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc0460_0172:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Fare well!@", 0x0000);
		Func097F(0xFFA0, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFFA0, 0x000B);
		goto labelFunc0460_01A6;
	labelFunc0460_01A3:
		goto labelFunc0460_00A7;
	labelFunc0460_01A6:
		end_conv();
	labelFunc0460_01A7:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0461 0x461 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0461_000F;
	Func0809();
	abrt();
	labelFunc0461_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0461_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFF9F;
		calle();
		Func097F(0xFF9F, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF9F, 0x0003);
	labelFunc0461_0051:
		if(!(event == 0x0009)) goto labelFunc0461_01B9;
		UI_run_schedule_B7(0xFF9F);
		UI_clear_item_say_4E(0xFF9F);
		UI_show_npc_face0_05(0xFF9F, 0x0000);
		if(!gflags[0233]) goto labelFunc0461_009D;
		UcMessage("\"Thou hast ruined it all! Die!\"");
		UcSay;
		UI_set_alignment_4A(0xFF9F, 0x0003);
		UI_set_schedule_type_25(0xFF9F, 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFF9F);
		abrt();
		goto labelFunc0461_01B9;
	labelFunc0461_009D:
		UcMessage("\"Number 7 hath abandoned his post! The key is gone!\"");
		UcSay;
		UcMessage("\"None shall seek the fountain to meditate again!\"");
		UcSay;
		UI_add_answer_0C(["abandoned", "fountain", "accuse", "name", "bye"]);
	labelFunc0461_00BB:
		UcAsk;
		cmps("abandoned");
		UI_remove_answer_0D("abandoned");
		UcMessage("\"Why else would Number 7 not be here, unless someone hath destroyed him? If Number 7 were fulfilling his duties, we would have the key to allow thee to meditate... as is our sworn duty.\"");
		UcSay;
		UcMessage("\"The last time any of us saw Number 7, I was with Number 2... And that was some time ago.\"");
		UcSay;
	labelFunc0461_00D5:
		cmps("fountain");
		UI_remove_answer_0D("fountain");
		UcMessage("\"The fountain contains the precious waters of Logic, pure and sweet and crystal clear. It is our duty to protect it from all who would muddy its waters.\"");
		UcSay;
	labelFunc0461_00E8:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Thou mayest call me Number 4, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0461_0101:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0461_017A;
		UcMessage("\"What art thou saying?! I was with Number 2 when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFFA1, "@That is a lie! I was with Number 1 and Number 6, not Number 4!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou hast caught me! Very well... the key is thine.\"");
		UcSay;
		var0002 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0046, 0x0005, false, true);
		UcMessage("\"I confess. It was I that destroyed Number 7... as I shall destroy thee! I should have been the keeper of the key all along! Number 7 was wrong not to give it to me!\"");
		UcSay;
		UI_set_alignment_4A(0xFF9F, 0x0003);
		UI_set_schedule_type_25(0xFF9F, 0x0000);
		UI_set_opponent_5B(0xFE9C, 0xFF9F);
		gflags[0233] = true;
		abrt();
		goto labelFunc0461_0184;
	labelFunc0461_017A:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc0461_0184:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Until later...@", 0x0000);
		Func097F(0xFF9F, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFF9F, 0x000B);
		goto labelFunc0461_01B8;
	labelFunc0461_01B5:
		goto labelFunc0461_00BB;
	labelFunc0461_01B8:
		end_conv();
	labelFunc0461_01B9:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

Func0462 0x462 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0462_000F;
	Func0809();
	abrt();
	labelFunc0462_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0462_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFF9E;
		calle();
		Func097F(0xFF9E, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF9E, 0x0003);
	labelFunc0462_0051:
		if(!(event == 0x0009)) goto labelFunc0462_01EB;
		UI_run_schedule_B7(0xFF9E);
		UI_clear_item_say_4E(0xFF9E);
		UI_show_npc_face0_05(0xFF9E, 0x0000);
		if(!gflags[0233]) goto labelFunc0462_0089;
		UcMessage("\"That hath made good use of thy Logic, ");
		UcMessage(var0000);
		UcMessage(". I would not have believed that one of our fellowship could have done such a thing. I thank thee for finding the traitor in our midst.\"");
		UcSay;
		UcMessage("\"Use the key to obtain the waters of Logic. Thou hast well earned that honor.\"");
		UcSay;
		abrt();
		goto labelFunc0462_01EB;
	labelFunc0462_0089:
		UcMessage("\"Where is the justice in the world when a strange mage comes to destroy our Temple and disrupt our peace?! Where is the keeper of the key?\"");
		UcSay;
		UI_add_answer_0C(["justice", "strange mage", "disrupt", "keeper of the key", "accuse", "bye"]);
	labelFunc0462_00A6:
		UcAsk;
		cmps("justice");
		UI_remove_answer_0D("justice");
		UcMessage("\"Thou mayest call me Number 5, for I no longer bear a mortal name. I surrendered that when I swore myself to eternal service at the fountain of Logic.\"");
		UcSay;
		UcMessage("\"I am bound for all time and eternity in a body that will never age, and now I cannot fulfill my vows! Where is the justice in living forever with broken vows?\"");
		UcSay;
	labelFunc0462_00C0:
		cmps("strange mage");
		UI_remove_answer_0D("strange mage");
		UcMessage("\"He was a rude, fat man, ");
		UcMessage(var0000);
		UcMessage(". I assumed he came seeking Logic, but I should have realized that one such as he would not be interested in the clarity of Logic.\"");
		UcSay;
	labelFunc0462_00D9:
		cmps("disrupt");
		UI_remove_answer_0D("disrupt");
		UcMessage("\"Long ago, the Order Hierophant bound a force of great evil into a prison and placed it here for us to guard.\"");
		UcSay;
		UcMessage("\"What peace is left for us here, guardians of an empty shell now that the mage hath loosed what once was captive?\"");
		UcSay;
		UI_add_answer_0C("force of great evil");
	labelFunc0462_00F7:
		cmps("force of great evil");
		UI_remove_answer_0D("force of great evil");
		UcMessage("\"I do not know what it was, ");
		UcMessage(var0000);
		UcMessage(". I am sorry. It was not my place to ask if the Hierophant did not choose to tell me.\"");
		UcSay;
		UcMessage("\"I can only hope that the failure of my fellows and I hath not endangered the world too greatly.\"");
		UcSay;
	labelFunc0462_0114:
		cmps("keeper of the key");
		UI_remove_answer_0D("keeper of the key");
		UcMessage("\"Perhaps the mage waylaid Number 7 to steal the key...\"");
		UcSay;
		UcMessage("\"But no, that cannot be. For Number 7 disappeared the day I was with Number 3, long before the strange mage came.\"");
		UcSay;
	labelFunc0462_012B:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0462_01AC;
		UcMessage("\"Lies! Number 3 will remember that we were together when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFFA0, "@It is true, Number 5 was with me!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I shall have thine head for this outrage!\"");
		UcSay;
		var0002 = [0xFFA2, 0xFFA1, 0xFFA0, 0xFF9F, 0xFF9E, 0xFF9D];
		enum();
	labelFunc0462_017C:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0462_01A8);
		UI_set_alignment_4A(var0005, 0x0003);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		goto labelFunc0462_017C;
	labelFunc0462_01A8:
		abrt();
		goto labelFunc0462_01B6;
	labelFunc0462_01AC:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc0462_01B6:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		Func097F(0xFF9E, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFF9E, 0x000B);
		goto labelFunc0462_01EA;
	labelFunc0462_01E7:
		goto labelFunc0462_00A6;
	labelFunc0462_01EA:
		end_conv();
	labelFunc0462_01EB:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

Func0463 0x463 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0463_000F;
	Func0809();
	abrt();
	labelFunc0463_000F:
		var0000 = Func0954();
		var0001 = Func0953();
		if(!(event == 0x0001)) goto labelFunc0463_0051;
		UI_item_say_4D(0xFE9C, "@May we speak?@");
		0xFF9D;
		calle();
		Func097F(0xFF9D, (("@Yes, " + var0000) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF9D, 0x0003);
	labelFunc0463_0051:
		if(!(event == 0x0009)) goto labelFunc0463_01A8;
		UI_run_schedule_B7(0xFF9D);
		UI_clear_item_say_4E(0xFF9D);
		UI_show_npc_face0_05(0xFF9D, 0x0000);
		if(!gflags[0233]) goto labelFunc0463_0089;
		UcMessage("\"That hath made good use of thy Logic, ");
		UcMessage(var0000);
		UcMessage(". I would not have believed that one of our fellowship could have done such a thing. I thank thee for finding the traitor in our midst.\"");
		UcSay;
		UcMessage("\"Use the key to obtain the waters of Logic. Thou hast well earned that honor.\"");
		UcSay;
		abrt();
		goto labelFunc0463_01A8;
	labelFunc0463_0089:
		UcMessage("\"Thou mayest call me Number 6, ");
		UcMessage(var0000);
		UcMessage(". Long have we searched for the one who held the key to the fountain room, ");
		UcMessage(var0000);
		UcMessage(". But Number 7 hath disappeared and we are failures.\"");
		UcSay;
		UI_add_answer_0C(["Number 7", "failures", "accuse", "bye"]);
	labelFunc0463_00AC:
		UcAsk;
		cmps("Number 7");
		UI_remove_answer_0D("Number 7");
		UcMessage("\"Number 7 was the keeper of the key to the fountain room, ");
		UcMessage(var0000);
		UcMessage(". His was the greatest duty -- to insure that no one defiled the waters of Logic.\"");
		UcSay;
		UcMessage("\"None of us have seen Number 7 since the day that I was with Number 1.\"");
		UcSay;
	labelFunc0463_00CC:
		cmps("failures");
		UI_remove_answer_0D("failures");
		UcMessage("\"Although the waters of Logic are safe, without the key to the fountain room, we can no longer aid those who come seeking Logic. Therefore, we have failed.\"");
		UcSay;
	labelFunc0463_00DF:
		cmps("accuse");
		UcMessage("\"I must warn thee, ");
		UcMessage(var0000);
		UcMessage(", we are each sworn to protect the other. If thou dost accuse me falsely, we shall attack thee.\"");
		UcSay;
		UcMessage("\"If thou hast spoken to each of us and hast determined that one of us is guilty, accuse accordingly. But be not hasty in thy judgment.\"");
		UcSay;
		UcMessage("\"Dost thou accuse me?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0463_0169;
		UcMessage("\"Where is thy Logic?! Both Number 2 and Number 1 can attest that I was with them when Number 7 disappeared!\"");
		UcSay;
		Func094E(0xFFA2, "@Number 1 was with me!@");
		Func094E(0xFFA1, "@It cannot be! I was with Number 1!@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou shalt regret thy words!\"");
		UcSay;
		var0002 = [0xFFA2, 0xFFA1, 0xFFA0, 0xFF9F, 0xFF9E, 0xFF9D];
		enum();
	labelFunc0463_0139:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0463_0165);
		UI_set_alignment_4A(var0005, 0x0003);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		goto labelFunc0463_0139;
	labelFunc0463_0165:
		abrt();
		goto labelFunc0463_0173;
	labelFunc0463_0169:
		UcMessage("\"I hope that thou dost find what hath happened to Number 7, ");
		UcMessage(var0000);
		UcMessage(". We cannot fulfill our duty without the key.\"");
		UcSay;
	labelFunc0463_0173:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Until later...@", 0x0000);
		Func097F(0xFF9D, "@Use thy Logic!@", 0x0002);
		UI_set_schedule_type_25(0xFF9D, 0x000B);
		goto labelFunc0463_01A7;
	labelFunc0463_01A4:
		goto labelFunc0463_00AC;
	labelFunc0463_01A7:
		end_conv();
	labelFunc0463_01A8:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func09AA 0x9AA ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0955 0x955 ();
extern Func082F 0x82F ();

Func0464 0x464 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	if(!UI_get_item_flag_A3(0xFF9C, 0x001E)) goto labelFunc0464_001B;
	Func0809();
	abrt();
	labelFunc0464_001B:
		if(!(event == 0x0002)) goto labelFunc0464_0790;
		Func09AA();
		UI_play_music_39(0x0040, Func09A0(0x0005, 0x0001));
		UI_show_npc_face0_05(0xFED6, 0x0000);
		var0000 = UI_get_item_flag_A3(0xFF9C, 0x001C);
		if(!(var0000 == false)) goto labelFunc0464_0286;
		UcMessage("\"I am the Educator here, seeker. It is my task to determine how far thine Ethicality hath already progressed before the test may begin.\"");
		UcSay;
		UcMessage("\"Dost thou wish to begin the test?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0464_01F9;
		UcMessage("\"Very well... Consider each question carefully before answering.\"");
		UcSay;
		UcMessage("\"Question One: If thou didst come upon one who was sure to die, would it be Ethical to risk death trying to save the doomed person? Or would it be more Ethical to flee before the same fate befell thee?\"");
		UcSay;
		UI_add_answer_0C(["Risk Death", "Flee"]);
	labelFunc0464_007A:
		UcAsk;
		cmps("Risk Death");
		UcMessage("\"Thou art correct. Ethicality demands that thou must seek to preserve the life of others, as thou wouldst thine own.\" *\"No man's fate is certain while he yet lives. Thine actions can change the course of fate...\"");
		UcSay;
		UI_push_answers_0E();
		UcMessage("\"Question Two: If thou didst come upon a room of untold wealth within a structure where thou didst not know if the owner lived, would it be Ethical to take the money if thou wert in sore need? Or wouldst thou leave the money to possibly be used for evil ends?\"");
		UcSay;
		UI_add_answer_0C(["Take the Money", "Leave the Money"]);
	labelFunc0464_009E:
		cmps("Take the Money");
		UcMessage("\"No matter what the need, seeker, Ethicality demands that thou not takest anything without permission. It is difficult to weigh these things at times, but thou shalt find it easier as time passes...\"");
		UcSay;
		UI_pop_answers_0F();
		goto labelFunc0464_0169;
	labelFunc0464_00B1:
		cmps("Leave the Money");
		UcMessage("\"Thou art correct, seeker. Thou wouldst have no idea what the money was to be used for.\" *\"Ethicality demands that thou not takest anything without permission, no matter what the need. If thou wouldst stand in judgment of another, thou must be sure of thine Ethicality.\"");
		UcSay;
		UI_push_answers_0E();
		UcMessage("\"Finally, Question Three: If thou wert faced with the certainty of thy death at the hands of an unethical man, wouldst thou yield to him to save thy life? Or would Ethicality demand that thou shouldst continue the struggle unto death?\"");
		UcSay;
		UI_add_answer_0C(["Yield", "Continue"]);
	labelFunc0464_00D2:
		cmps("Yield");
		UcMessage("\"No, seeker. If thou shouldst yield to one who is evil, even to save thy life, then thou art admitting the dominion of that evil.\"");
		UcSay;
		UcMessage("\"Thy life doth have little value if thou dost abandon thy virtue. Ethicality demands that thou wilt oppose evil in all ways, even at the cost of thine own life.\"");
		UcSay;
		UI_pop_answers_0F();
		UI_pop_answers_0F();
		goto labelFunc0464_0169;
	labelFunc0464_00ED:
		cmps("Continue");
		UcMessage("\"Thou art correct, and brave as well, seeker. Thou dost know that yielding to evil is to admit the dominion of that evil.\" *\"Ethicality demands that thou shouldst maintain thy virtue and oppose evil, even at the cost of thy life.\"");
		UcSay;
		UcMessage("\"Thou hast answered well... Of all virtues, Ethicality is often the most subjective and tenuous.\" *\"Thou art worthy to begin the test...\"");
		UcSay;
		UI_pop_answers_0F();
		UI_pop_answers_0F();
		UI_set_item_flag_A4(0xFF9C, 0x001C);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x09AE, 0x036F, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		gflags[021A] = true;
		abrt();
	labelFunc0464_0152:
		cmps("Flee");
		UcMessage("\"Thou art incorrect, seeker. While thou must never seek to throw thy life away, Ethicality demands that thou must seek to preserve the life of others as thou wouldst thine own.\" *\"No man's fate is certain while he yet lives. Thine actions can change the course of fate...\"");
		UcSay;
		UI_pop_answers_0F();
		goto labelFunc0464_0169;
	labelFunc0464_0165:
		goto labelFunc0464_007A;
	labelFunc0464_0168:
		end_conv();
	labelFunc0464_0169:
		UcMessage("\"I am sorry, seeker. It is necessary for thee to think more about these questions before undergoing the tests. Please return after further meditation.\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x000F]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
		goto labelFunc0464_0286;
	labelFunc0464_01F9:
		UcMessage("\"As thou wishest...\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x000F]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
	labelFunc0464_0286:
		if(!(gflags[021B] == true)) goto labelFunc0464_031E;
		UcMessage("\"It is a pleasure to see thee again, seeker. But there is nothing more that can be done here...\" *\"I have taught thee all I can. Thou must seek other virtues to embrace.\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x000F]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
		goto labelFunc0464_0515;
	labelFunc0464_031E:
		if(!(gflags[021A] && (gflags[0007] == false))) goto labelFunc0464_0515;
		if(!(UI_get_timer_7A(0x0003) > 0x0017)) goto labelFunc0464_048D;
		UcMessage("\"Thou hast returned, seeker! I am pleased.\" *\"I hope that thou hast benefitted from thy meditations... Behold!\"");
		UcSay;
		if(!(gflags[0217] == false)) goto labelFunc0464_0383;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x09AE, 0x036F, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		abrt();
	labelFunc0464_0383:
		if(!(gflags[0218] == false)) goto labelFunc0464_03CA;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0A28, 0x0326, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		abrt();
	labelFunc0464_03CA:
		if(!(gflags[0219] == false)) goto labelFunc0464_048A;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0ABF, 0x0384, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0002 = UI_create_new_object2_2D(0x013E, [0x0ABE, 0x037A, 0x0000]);
		if(!var0002) goto labelFunc0464_0472;
		UI_set_schedule_type_25(var0002, 0x000F);
		UI_sprite_effect_68(0x001A, 0x0A22, 0x0373, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_execute_usecode_array_01(var0002, [0x59, 0x34]);
		var0003 = Func09A0(0x0000, 0x0001);
		if(!var0003) goto labelFunc0464_0472;
		var0001 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x013E], 0x0019);
	labelFunc0464_0472:
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		abrt();
	labelFunc0464_048A:
		goto labelFunc0464_0515;
	labelFunc0464_048D:
		UcMessage("\"Further meditation must be done before thou art ready to undertake the tests once more...\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
	labelFunc0464_0515:
		gflags[0007] = false;
		if(!((!gflags[021C]) && ((!gflags[021D]) && (!gflags[021F])))) goto labelFunc0464_05C1;
		UcMessage("\"I am sorry, seeker. Thou hast failed to grasp the meaning of Ethicality in this.\" *\"Study and meditate further... Thou canst return tomorrow to try again, if thou wishest.\"");
		UcSay;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		Func082F();
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		UI_set_timer_7B(0x0003);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x000F]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
	labelFunc0464_05C1:
		if(!(gflags[021C] == true)) goto labelFunc0464_0625;
		UcMessage("\"Thou hast truly learned the Ethicality of saving others! Thou art worthy to continue the test... Behold!\"");
		UcSay;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x32]);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0A28, 0x0326, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		gflags[021C] = false;
		gflags[0217] = true;
		abrt();
	labelFunc0464_0625:
		if(!(gflags[021D] == true)) goto labelFunc0464_06F8;
		UcMessage("\"Thou hast learned to value Ethicality over money... Thou art worthy to continue the test! Behold!\"");
		UcSay;
		gflags[021E] = true;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		Func082F();
		UI_move_object_4B(0xFE9C, [0x0ABF, 0x0384, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0002 = UI_create_new_object2_2D(0x013E, [0x0ABE, 0x037A, 0x0000]);
		if(!var0002) goto labelFunc0464_06D8;
		UI_set_schedule_type_25(var0002, 0x000F);
		UI_sprite_effect_68(0x001A, 0x0A22, 0x0373, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_execute_usecode_array_01(var0002, [0x59, 0x34]);
		var0003 = Func09A0(0x0000, 0x0001);
		if(!var0003) goto labelFunc0464_06D8;
		var0001 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x013E], 0x0019);
	labelFunc0464_06D8:
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		gflags[021D] = false;
		gflags[0218] = true;
		abrt();
	labelFunc0464_06F8:
		if(!((gflags[021A] == true) && (gflags[021F] == true))) goto labelFunc0464_0790;
		UcMessage("\"Thou hast retained thy virtue! The very essence of Ethicality flows within thine heart!\" *\"I congratulate thee, seeker. Thou hast accomplished what many have failed to do.\"");
		UcSay;
		gflags[021B] = true;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x0AA0, 0x03C0, 0x0000]);
		UI_play_sound_effect_16(0x0066);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x000F]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0004);
		gflags[0219] = true;
		gflags[021C] = true;
		gflags[021D] = true;
		gflags[021F] = true;
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E3], 0x0001);
		abrt();
	labelFunc0464_0790:
		return;
}
// externs
extern Func09B7 0x9B7 ();

Func0477 0x477 (var var0000)
{
	if(!((event == 0x0007) || (event == 0x0002))) goto labelFunc0477_0011;
	Func09B7();
	labelFunc0477_0011:
		return;
}
// externs
extern Func09B7 0x9B7 ();

Func0478 0x478 (var var0000)
{
	if(!((event == 0x0007) || (event == 0x0002))) goto labelFunc0478_0011;
	Func09B7();
	labelFunc0478_0011:
		return;
}
// externs
extern Func09B7 0x9B7 ();

Func0479 0x479 (var var0000)
{
	if(!((event == 0x0007) || (event == 0x0002))) goto labelFunc0479_0011;
	Func09B7();
	labelFunc0479_0011:
		return;
}
// externs
extern Func09B7 0x9B7 ();

Func047A 0x47A (var var0000)
{
	if(!((event == 0x0007) || (event == 0x0002))) goto labelFunc047A_0011;
	Func09B7();
	labelFunc047A_0011:
		return;
}
// externs
extern Func09B7 0x9B7 ();

Func047B 0x47B (var var0000)
{
	if(!((event == 0x0007) || (event == 0x0002))) goto labelFunc047B_0011;
	Func09B7();
	labelFunc047B_0011:
		return;
}
Func047C 0x47C (var var0000)
{
	var var0001;

	if(!(event == 0x0007)) goto labelFunc047C_004F;
	UI_show_npc_face0_05(0xFF58, 0x0000);
	UcMessage("\"Why dost thou interrupt my dreaming? Canst thou not see that I have important matters to attend to?\" *\"Argh! I am waking...\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0000 = UI_get_object_position_20(item);
	UI_play_sound_effect_16(0x0077);
	UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_npc_4C(0xFF84);
	labelFunc047C_004F:
		if(!(event == 0x0001)) goto labelFunc047C_006E;
		UI_show_npc_face0_05(0xFF58, 0x0000);
		UcMessage("\"Ah, Avatar!\" ~\"This is as it should be... The food is good, the wine is sweet and the company is warm! Wouldst thou care to join me?\"");
		UcSay;
		UcMessage("\"Still bound by thy quest, I see.\" ~\"Well, if thou dost change thy mind, thou art welcome here any time.\" *\"Oh, and Avatar?\" ~\"Thou shouldst honestly relax a bit...\"");
		UcSay;
		UI_remove_npc_face0_07();
		abrt();
	labelFunc047C_006E:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func047D 0x47D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc047D_000F;
	Func0809();
	abrt();
	labelFunc047D_000F:
		if(!(event == 0x0001)) goto labelFunc047D_0065;
		if(!gflags[024D]) goto labelFunc047D_0049;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Thou dost have the sceptre. My work is complete. I must rest. I have waited for thee for so long...\"*");
		UcSay;
		var0000 = UI_delayed_execute_usecode_array_02(0xFF83, [0x23, 0x78, 0x0032, 0x0000], 0x000F);
		abrt();
		goto labelFunc047D_0065;
	labelFunc047D_0049:
		UI_item_say_4D(0xFE9C, "@Hold there, Automaton!@");
		Func097F(item, "@I would speak with thee...@", 0x0003);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc047D_0065:
		if(!(event == 0x0009)) goto labelFunc047D_0129;
		UI_run_schedule_B7(item);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Hierophant! Thou hast returned!\"");
		UcSay;
		UcMessage("\"But, thou art not the Hierophant. Pardon, mine energy is low.\"");
		UcSay;
		UcMessage("\"I have been waiting since all of the citizens of this city left through the Wall of Lights for their new world. Since that time	I have been carefully attending thy belongings...\" *\"Pardon. I mean, the Hierophant's belongings.\" *\"Before he led the people through the Wall of Lights, he gave me an item of extreme importance, the Serpent Sceptre.\"* \"I have been guarding it for centuries now.\"");
		UcSay;
		var0001 = ["@This machine did mistake thee for the Hierophant, Avatar.@"];
		var0002 = ["@By the Virtues, it thought I was this Hierophant person.@"];
		var0000 = Func0992(Shamino, var0001, var0002, false);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Pardon, but did I just hear thou art the Hierophant? Is it true thou art the Hierophant of Order?\"");
		UcSay;
		var0003 = Func0955();
		if(!var0003) goto labelFunc047D_011A;
		UcMessage("\"At long last thou hast returned! I have kept it safe for all the centuries since thou wert last here!\"");
		UcSay;
		UcMessage("\"Hierophant, here is thy Serpent Sceptre!\"");
		UcSay;
		gflags[024D] = true;
		var0000 = Func099B(0xFE9C, 0x0001, 0x039E, 0xFE99, 0x0000, 0x0000, true);
		UcMessage("\"It is good that I successfully carried out mine instructions.\" *\"Now, I must rest...\"");
		UcSay;
		var0000 = UI_delayed_execute_usecode_array_02(0xFF83, [0x23, 0x78, 0x0032, 0x0000], 0x000F);
		UI_set_schedule_type_25(0xFF83, 0x0014);
		abrt();
		goto labelFunc047D_0129;
	labelFunc047D_011A:
		UcMessage("\"Error! I have waited centuries for the Hierophant and to have almost given the Serpent Sceptre to a total stranger!\"* \"Error! To almost let the key to the Great Library fall into the wrong hands! I should have my works examined...\"* \"Begone! Thou art a hazard to the safety of the Great Library.\" *\"Now what was it that the Hierophant wanted...?\"");
		UcSay;
		UI_set_schedule_type_25(0xFF83, 0x0014);
		abrt();
	labelFunc047D_0129:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func047E 0x47E (var var0000)
{
	var var0001;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc047E_000F;
	Func0809();
	abrt();
	labelFunc047E_000F:
		if(!(event == 0x0001)) goto labelFunc047E_0035;
		UI_item_say_4D(0xFE9C, "A guard of metal!@");
		Func097F(0xFF82, "@Thou art a fool!@", 0x0003);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc047E_0035:
		if(!(event == 0x0009)) goto labelFunc047E_0094;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Avatar, thou shalt fail!\"");
		UcSay;
		var0000 = Func0992(Dupre, "@Why, Avatar! Canst thou not hear it?! This automaton speaks with Batlin's voice!@", "@I recognize that voice! Batlin!@", false);
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
		UcMessage("\"Canst thou hear me, Avatar? Thou art too late! By the time thou hast found the Shrine of Order, I shall have become as powerful as the Guardian himself!\"");
		UcSay;
		UcMessage("\"Come! Come and witness mine ascent to power.\"");
		UcSay;
		UcMessage("\"Come, Avatar... Come and meet thy death!\"");
		UcSay;
		UI_set_schedule_type_25(0xFF82, 0x0000);
		UI_set_alignment_4A(0xFF82, 0x0002);
		UI_set_opponent_5B(0xFE9C, 0xFF82);
		UI_remove_npc_face0_07();
	labelFunc047E_0094:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0924 0x924 (var var0000, var var0001);

Func047F 0x47F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_item_quality_1C(item);
	if(!(event == 0x0008)) goto labelFunc047F_0018;
	UI_set_polymorph_B3(item, 0x01F5);
	labelFunc047F_0018:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc047F_0048;
		UI_set_schedule_type_25(0xFF81, 0x000F);
		var0001 = UI_execute_usecode_array_01(0xFF81, [0x23, 0x6C, 0x6D, 0x52, "@Master!@"]);
	labelFunc047F_0048:
		if(!((event == 0x0002) && ((gflags[0007] == false) && (gflags[0253] == false)))) goto labelFunc047F_0090;
		gflags[0253] = true;
		UI_move_object_4B(0xFF81, [0x0797, 0x028B, 0x0000]);
		UI_si_path_run_usecode_C1(0xFF81, [0x0799, 0x027F, 0x0000], 0x000A, 0xFF81, 0x047F, true);
	labelFunc047F_0090:
		if(!((event == 0x0002) && gflags[0007])) goto labelFunc047F_00BD;
		gflags[0007] = false;
		UI_si_path_run_usecode_C1(0xFF81, [0x0794, 0x028F, 0x0000], 0x000B, 0xFF81, 0x047F, true);
	labelFunc047F_00BD:
		if(!(event == 0x000A)) goto labelFunc047F_0109;
		UI_show_npc_face0_05(0xFF81, 0x0000);
		UcMessage("\"Avatar! That fiend Batlin will destroy us all if he is not stopped!\"* \"'Twill be our destruction! He is attempting to open that cursed Wall of Lights!\"* \"Quickly, follow me! I will lead thee straight to him.\"");
		UcSay;
		UI_remove_npc_face1_08();
		gflags[0007] = true;
		Func097F(0xFF81, "@Follow me!@", 0x0000);
		Func097F(0xFE9C, "@Wait!@", 0x0005);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x047F], 0x0002);
		abrt();
	labelFunc047F_0109:
		if(!((event == 0x000B) || (event == 0x000E))) goto labelFunc047F_0160;
		var0002 = UI_find_nearby_41(item, 0x0314, 0x0014, 0x0000);
		enum();
	labelFunc047F_0129:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc047F_0154);
		var0000 = UI_get_item_quality_1C(var0005);
		if(!(var0000 == 0x0092)) goto labelFunc047F_0151;
		Func0924(var0005, 0xFE99);
	labelFunc047F_0151:
		goto labelFunc047F_0129;
	labelFunc047F_0154:
		UI_remove_npc_4C(0xFF81);
		gflags[0256] = true;
		abrt();
	labelFunc047F_0160:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0924 0x924 (var var0000, var var0001);

Func0480 0x480 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0008)) goto labelFunc0480_0010;
	UI_set_polymorph_B3(item, 0x01F5);
	labelFunc0480_0010:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc0480_0040;
		UI_set_schedule_type_25(0xFF80, 0x000F);
		var0000 = UI_execute_usecode_array_01(0xFF80, [0x23, 0x6C, 0x6D, 0x52, "@Arrr, Master!@"]);
	labelFunc0480_0040:
		if(!((event == 0x0002) && ((gflags[0007] == false) && (gflags[0255] == false)))) goto labelFunc0480_0088;
		gflags[0255] = true;
		UI_move_object_4B(0xFF80, [0x0926, 0x0284, 0x0000]);
		UI_si_path_run_usecode_C1(0xFF80, [0x0927, 0x028D, 0x0000], 0x000A, 0xFF80, 0x0480, true);
	labelFunc0480_0088:
		if(!((event == 0x0002) && gflags[0007])) goto labelFunc0480_00B5;
		gflags[0007] = false;
		UI_si_path_run_usecode_C1(0xFF80, [0x092A, 0x0284, 0x0000], 0x000B, 0xFF80, 0x0480, true);
	labelFunc0480_00B5:
		if(!(event == 0x000A)) goto labelFunc0480_0101;
		UI_show_npc_face0_05(0xFF80, 0x0000);
		UcMessage("\"The time hath come for thee to feel me steel!\"* \"Face me, Avatar, if thou dost have the courage!\"* \"I shall cut thee for bait, then feed thee to the minnows shouldst thou try to cross me sword!\"");
		UcSay;
		UI_remove_npc_face1_08();
		gflags[0007] = true;
		Func097F(0xFF80, "@Ha,ha,ha!@", 0x0000);
		Func097F(0xFE9C, "@Hold!@", 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0480], 0x0002);
		abrt();
	labelFunc0480_0101:
		if(!((event == 0x000B) || (event == 0x000E))) goto labelFunc0480_0158;
		var0001 = UI_find_nearby_41(item, 0x0314, 0x0014, 0x0000);
		enum();
	labelFunc0480_0121:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0480_014C);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x0093)) goto labelFunc0480_0149;
		Func0924(var0004, 0xFE99);
	labelFunc0480_0149:
		goto labelFunc0480_0121;
	labelFunc0480_014C:
		UI_remove_npc_4C(0xFF80);
		gflags[0258] = true;
		abrt();
	labelFunc0480_0158:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();

Func0481 0x481 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0481_000F;
	Func0809();
	abrt();
	labelFunc0481_000F:
		if(!(event == 0x000E)) goto labelFunc0481_001B;
		event = 0x000A;
	labelFunc0481_001B:
		if(!(event == 0x0001)) goto labelFunc0481_005C;
		Func097F(0xFE9C, "@Hail, metal servant!@", 0x0000);
		Func097F(item, "@Halt, stranger!@", 0x0001);
		UI_set_schedule_type_25(0xFF7F, 0x000A);
		UI_si_path_run_usecode_C1(item, [0x0766, 0x027C, 0x0000], 0x000A, item, 0x0481, true);
	labelFunc0481_005C:
		if(!(event == 0x000A)) goto labelFunc0481_008D;
		UI_set_schedule_type_25(0xFF7F, 0x001D);
		UI_set_item_frame_1B(0xFF7F, 0x0010);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0481], 0x0003);
	labelFunc0481_008D:
		if(!(event == 0x0002)) goto labelFunc0481_019B;
		UI_run_schedule_B7(item);
		UI_clear_item_say_4E(0xFE9C);
		UI_clear_item_say_4E(item);
		UI_set_schedule_type_25(0xFF7F, 0x001D);
		var0001 = UI_get_item_flag_A3(Dupre, 0x0006);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"I am the guardian of the city of Order. Dost thou wish to enter the great city of Spinebreaker?\"");
		UcSay;
		var0002 = Func0955();
		if(!var0002) goto labelFunc0481_0129;
		UcMessage("\"I cannot allow thee to enter until thou dost tell me the password. Canst thou tell me what the password is?\"");
		UcSay;
		var0003 = Func0955();
		if(!var0003) goto labelFunc0481_0121;
		if(!var0001) goto labelFunc0481_010D;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"But Avatar, surely thou dost not know the password! How canst thou fool this infernal thing?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
	labelFunc0481_010D:
		UcMessage("\"I am waiting to receive the password.\"");
		UcSay;
		UI_add_answer_0C(["I don't know the password.", "try to guess the password"]);
		goto labelFunc0481_0126;
	labelFunc0481_0121:
		UcMessage("\"Then thou canst not enter the underground city.\"");
		UcSay;
		abrt();
	labelFunc0481_0126:
		goto labelFunc0481_012E;
	labelFunc0481_0129:
		UcMessage("\"Then thou shouldst not loiter about this place. By the authority of those who once lived and ruled here, I order thee to leave this place immediately.\"");
		UcSay;
		abrt();
	labelFunc0481_012E:
		UcAsk;
		cmps("I don't know the password.");
		UcMessage("\"Then thou canst not enter the underground city. By the authority of those who once lived and ruled here, I order thee to leave this place immediately!\"");
		UcSay;
		abrt();
	labelFunc0481_013E:
		cmps("try to guess the password");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("Having no idea what the password actually is, you take a wild guess, saying something that sounds like it might make a proper password.");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"That is not the correct password! Thou art forbidden to enter!\"");
		UcSay;
		UcMessage("\"Thou shouldst not loiter about here. Thou must leave this place immediately.\"");
		UcSay;
		var0001 = UI_get_item_flag_A3(Dupre, 0x0006);
		if(!var0001) goto labelFunc0481_0196;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"I take it that was a guess! Ha! I knew thou couldst not know the proper password! I suggest we cease trying to guess the password and find a better way of entering this place. Simply guessing could take forever!\"");
		UcSay;
	labelFunc0481_0196:
		abrt();
	labelFunc0481_0197:
		goto labelFunc0481_012E;
	labelFunc0481_019A:
		end_conv();
	labelFunc0481_019B:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0482 0x482 (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc0482_002E;
	UI_item_say_4D(0xFE9C, "@A metal man!@");
	0xFF7E;
	calle();
	Func097F(0xFF7E, "@Who goes there?@", 0x0003);
	UI_set_schedule_type_25(0xFF7E, 0x0003);
	labelFunc0482_002E:
		if(!(event == 0x0009)) goto labelFunc0482_0116;
		UI_run_schedule_B7(0xFF7E);
		UI_clear_item_say_4E(0xFF7E);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Halt! It is our duty to question thee. Dost thou serve Order or dost thou serve Chaos?\"");
		UcSay;
		UI_add_answer_0C(["I serve Order", "I serve Chaos"]);
	labelFunc0482_005F:
		UcAsk;
		cmps("I serve Order");
		UI_remove_answer_0D("I serve Order");
		UcMessage("\"Very well. We have been left here to watch for any survivors of Chaos who might come from the depths of these passages. There is no escape from this place save for these doors and still no one can obtain passage through them.\"");
		UcSay;
		UI_add_answer_0C(["escape", "passage", "bye"]);
	labelFunc0482_0085:
		cmps("escape");
		UI_remove_answer_0D("escape");
		UcMessage("\"As thou hast seen or surely wilt see, this is not a place that sustains life. There is no safe way out of this place.\"");
		UcSay;
	labelFunc0482_0098:
		cmps("passage");
		UI_remove_answer_0D("passage");
		UcMessage("\"These doors will not open without the proper keys. Not even we have them. This is not an exit.\"");
		UcSay;
	labelFunc0482_00AB:
		cmps("I serve Chaos");
		UI_remove_answer_0D("I serve Chaos");
		UcMessage("\"Thanks to thee for thine identification.\"");
		UcSay;
		UI_set_schedule_type_25(0xFF7E, 0x0000);
		UI_set_schedule_type_25(0xFF7D, 0x0000);
		UI_set_schedule_type_25(0xFF7C, 0x0000);
		UI_set_schedule_type_25(0xFF7B, 0x0000);
		abrt();
	labelFunc0482_00E7:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@I have heard enough.@", 0x0000);
		Func097F(0xFF7E, "@Always serving.@", 0x0003);
		goto labelFunc0482_0115;
	labelFunc0482_0112:
		goto labelFunc0482_005F;
	labelFunc0482_0115:
		end_conv();
	labelFunc0482_0116:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func048F 0x48F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	if(!(event == 0x0001)) goto labelFunc048F_0028;
	UI_item_say_4D(0xFE9C, "@Greetings@");
	Func097F(0xFF71, "@We knew thou would come.@", 0x0003);
	UI_set_schedule_type_25(0xFF71, 0x0003);
	labelFunc048F_0028:
		if(!(event == 0x0009)) goto labelFunc048F_0448;
		UI_run_schedule_B7(0xFF71);
		UI_clear_item_say_4E(0xFF71);
		UI_show_npc_face0_05(0xFF71, 0x0000);
		var0000 = Func097D(0xFE9B, 0x0001, 0x032A, 0x0009, 0x0002);
		var0001 = UI_get_item_flag_A3(0xFF71, 0x001C);
		if(!var0001) goto labelFunc048F_0077;
		UcMessage("\"We meet again.\"");
		UcSay;
		goto labelFunc048F_007B;
	labelFunc048F_0077:
		UcMessage("\"Thou art Avatar!\"");
		UcSay;
	labelFunc048F_007B:
		UI_add_answer_0C(["name", "bye"]);
		if(!var0000) goto labelFunc048F_0095;
		UI_add_answer_0C("got blood");
	labelFunc048F_0095:
		UcAsk;
		cmps("got blood");
		UI_remove_answer_0D("got blood");
		UcMessage("\"Hurry! Take Ice Dragon blood to Yenani! No time to delay!\"");
		UcSay;
		abrt();
	labelFunc048F_00AC:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I am Baiyanda, mate of Mwaerno and healer for Gwani people.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF71, 0x001C);
		UI_add_answer_0C(["Mwaerno", "healer"]);
	labelFunc048F_00D6:
		cmps("Mwaerno");
		UI_remove_answer_0D("Mwaerno");
		UcMessage("\"He great hunter. Mwaerno and Baiyanda joined by Yenani many years ago.\"");
		UcSay;
		UI_add_answer_0C(["hunter", "Yenani"]);
	labelFunc048F_00F6:
		cmps("hunter");
		UI_remove_answer_0D("hunter");
		UcMessage("\"Myauri Master Hunter of Gwani. He know where game are and how to find. But Mwaerno best at catching game. I very proud of him.\"");
		UcSay;
	labelFunc048F_0109:
		cmps("Yenani");
		UI_remove_answer_0D("Yenani");
		UcMessage("\"She our chieftain. Gwani people always led by females. Yenani good friend of Gwenno.\"");
		UcSay;
		UI_add_answer_0C("Gwenno");
	labelFunc048F_0123:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		var0002 = UI_get_schedule_type_24(0xFF6B);
		if(!(var0002 == 0x000F)) goto labelFunc048F_0158;
		UcMessage("\"Gwenno dead. She good woman. Very generous. She once make gift of bucket to Baiyanda. Baiyanda place body at sacred Gwani Death Temple.\"");
		UcSay;
		gflags[0262] = true;
		UI_add_answer_0C("Where is the temple?");
		goto labelFunc048F_015C;
	labelFunc048F_0158:
		UcMessage("\"Baiyanda happy that Gwenno alive again!\"");
		UcSay;
	labelFunc048F_015C:
		cmps("Where is the temple?");
		UI_remove_answer_0D("Where is the temple?");
		UcMessage("\"It not thing for thou to know. Gwenno must rest now, her soul rest. Leave her. I know it painful, but thou must do this. Even if thou found her thou could not unseal her body without sacred horn of Gwani. Long ago it taken by fiend who steals our dead from us.\"");
		UcSay;
	labelFunc048F_016F:
		cmps("healer");
		UI_remove_answer_0D("healer");
		UcMessage("\"I treat all wounds and illness of Gwani people. Baiyanda not use ways of human healers. Gwani live simple in balance with nature, not force on nature. Gwani healers learn secrets of herbs and animals. If thou need healer, I will help thou.\"");
		UcSay;
		UI_add_answer_0C(["I need a healer", "herbs and animals"]);
	labelFunc048F_018F:
		cmps("I need a healer");
		UI_remove_answer_0D("I need a healer");
		UcMessage("\"Rest easy. I will help thou.\"");
		UcSay;
		UcMessage("\"Who thou want to heal?\"");
		UcSay;
		var0003 = Func098E();
		var0003 = (0x0000 & var0003);
		var0004 = ["nobody"];
		enum();
	labelFunc048F_01C0:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc048F_01E7);
		if(!(!(var0007 == 0x0000))) goto labelFunc048F_01E4;
		var0004 = (var0004 & UI_get_npc_name_30(var0007));
	labelFunc048F_01E4:
		goto labelFunc048F_01C0;
	labelFunc048F_01E7:
		var0008 = Func0957(var0004);
		var0008 = var0003[var0008];
		if(!(var0008 == 0x0000)) goto labelFunc048F_020A;
		UcMessage("\"Maybe thou return later.\"");
		UcSay;
		goto labelFunc048F_02CD;
	labelFunc048F_020A:
		var0009 = UI_get_npc_number_47(var0008);
		var000A = UI_get_item_flag_A3(var0008, 0x0008);
		var000B = UI_get_npc_prop_28(var0008, 0x0000);
		var000C = UI_get_npc_prop_28(var0008, 0x0003);
		var000D = UI_get_npc_name_30(var0008);
		if(!(var000B > var000C)) goto labelFunc048F_0276;
		var000E = (var000B - var000C);
		var000F = UI_set_npc_prop_29(var0009, 0x0003, var000E);
		UcMessage("\"All right, ");
		UcMessage(var000D);
		UcMessage(" healed now!\"");
		UcSay;
		goto labelFunc048F_02B7;
	labelFunc048F_0276:
		if(!(var000A == false)) goto labelFunc048F_029C;
		if(!(var0009 == 0xFE9C)) goto labelFunc048F_028F;
		UcMessage("\"Thou not hurt!\"");
		UcSay;
		goto labelFunc048F_0299;
	labelFunc048F_028F:
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" not hurt! Thou play trick?\"");
		UcSay;
	labelFunc048F_0299:
		goto labelFunc048F_02B7;
	labelFunc048F_029C:
		if(!(var0009 == 0xFE9C)) goto labelFunc048F_02AD;
		UcMessage("\"Thou poisoned bad! I fix.\"");
		UcSay;
		goto labelFunc048F_02B7;
	labelFunc048F_02AD:
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" poisoned bad! I fix.\"");
		UcSay;
	labelFunc048F_02B7:
		if(!(var000A == true)) goto labelFunc048F_02CD;
		UI_clear_item_flag_A5(var0008, 0x0008);
		UcMessage("\"Good! Poison gone now.\"");
		UcSay;
	labelFunc048F_02CD:
		cmps("herbs and animals");
		UI_remove_answer_0D("herbs and animals");
		UcMessage("\"Magic corrupts balance of nature. Gwani healers learn things like prepare dried fish and use Ice Dragon blood.\"");
		UcSay;
		UI_add_answer_0C(["balance of nature", "dried fish", "Ice Dragon blood"]);
	labelFunc048F_02F0:
		cmps("balance of nature");
		UI_remove_answer_0D("balance of nature");
		UcMessage("\"To Gwani, best way to live -- only way -- to live in harmony with nature. And so we not do anything that force nature.\"");
		UcSay;
	labelFunc048F_0303:
		cmps("dried fish");
		UI_remove_answer_0D("dried fish");
		UcMessage("\"Dried fish very good food. It keeps thou from hunger longer than other food.\"");
		UcSay;
		UcMessage("\"Would thou like some?\"");
		UcSay;
		var0010 = Func0955();
		if(!var0010) goto labelFunc048F_0344;
		UcMessage("\"Here, have some. It good.\"");
		UcSay;
		var0011 = Func099B(0xFE9C, 0x0001, 0x01FD, 0xFE99, 0xFE99, false, true);
		goto labelFunc048F_0348;
	labelFunc048F_0344:
		UcMessage("\"Too bad. Thou should try some.\"");
		UcSay;
	labelFunc048F_0348:
		cmps("Ice Dragon blood");
		UI_remove_answer_0D("Ice Dragon blood");
		UcMessage("\"Special things about blood of Ice Dragon that can cure almost any sickness.\"");
		UcSay;
		UcMessage("\"But Ice Dragons very rare creatures. Gwani honor all life -- try everything before we hunt them.\"");
		UcSay;
		UcMessage("\"One did live north of our village. We drove different one east many years ago.\"");
		UcSay;
		var0012 = UI_get_item_flag_A3(0xFF6D, 0x001E);
		if(!var0012) goto labelFunc048F_03B2;
		UcMessage("\"Ice Dragon blood maybe only thing powerful enough to cure Neyobi. But it so rare that it very hard to find. Five of our hunters looking for it.\"");
		UcSay;
		UcMessage("\"Gwenno said thou help people in need. Thou must find some Ice Dragon blood for Neyobi! It is the last hope!\"");
		UcSay;
		if(!(!gflags[0264])) goto labelFunc048F_03AB;
		UcMessage("\"Here, take bucket of mine. If thou find and slay Ice Dragon, please bring bucket of blood. Take to Yenani, she know what to do with it.\"");
		UcSay;
		var0013 = Func099B(0xFE9C, 0x0001, 0x032A, 0x0000, 0x0000, false, true);
		UcMessage("\"Good luck. Neyobi's life depend on it.\"");
		UcSay;
		gflags[0264] = true;
		goto labelFunc048F_03AF;
	labelFunc048F_03AB:
		UcMessage("\"Give Yenani bucket of Ice Dragon blood. She know what to do with it.\"");
		UcSay;
	labelFunc048F_03AF:
		goto labelFunc048F_03B6;
	labelFunc048F_03B2:
		UcMessage("\"Ice Dragon blood saved Neyobi's life. Great many thanks, Avatar.\"");
		UcSay;
	labelFunc048F_03B6:
		UI_add_answer_0C(["north dragon", "east dragon", "Neyobi"]);
	labelFunc048F_03C6:
		cmps("north dragon");
		UI_remove_answer_0D("north dragon");
		UcMessage("\"I do not know exactly where. We heard nothing for many years.\"");
		UcSay;
	labelFunc048F_03D9:
		cmps("east dragon");
		UI_remove_answer_0D("east dragon");
		UcMessage("\"Years ago, Gwani attacked by dragon. Myauri and Mwaerno led hunters to fight it. Gwani drove it east beyond mountains. It very old dragon and still unmated. Very rare.\"");
		UcSay;
	labelFunc048F_03EC:
		cmps("Neyobi");
		UI_remove_answer_0D("Neyobi");
		var0012 = UI_get_item_flag_A3(0xFF6D, 0x001E);
		if(!var0012) goto labelFunc048F_0415;
		UcMessage("\"Neyobi ill from strange sickness. Baiyanda never seen before. Nothing Baiyanda tried help her. Ice Dragon blood only thing that could save her.\"");
		UcSay;
		goto labelFunc048F_0419;
	labelFunc048F_0415:
		UcMessage("\"No magic in whole world would have saved Neyobi's life. But when Gwani way of healing with balance of nature done, she better.\"");
		UcSay;
	labelFunc048F_0419:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@I thank thee.@", 0x0000);
		Func097F(0xFF71, "@Very good.@", 0x0003);
		goto labelFunc048F_0447;
	labelFunc048F_0444:
		goto labelFunc048F_0095;
	labelFunc048F_0447:
		end_conv();
	labelFunc048F_0448:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0490 0x490 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc0490_0028;
	UI_item_say_4D(0xFE9C, "@Hail there!@");
	Func097F(0xFF70, "@Aruk nok! Raag!@", 0x0003);
	UI_set_schedule_type_25(0xFF70, 0x0003);
	labelFunc0490_0028:
		if(!(event == 0x0009)) goto labelFunc0490_0181;
		UI_run_schedule_B7(0xFF70);
		UI_clear_item_say_4E(0xFF70);
		UI_show_npc_face0_05(0xFF70, 0x0000);
		var0000 = Func0942(0xFF6F);
		var0001 = Func097D(0xFE9B, 0x0001, 0x03D1, 0xFE99, 0x0008);
		var0002 = Func097D(0xFE9B, 0x0001, 0x0002, 0xFE99, 0x0004);
		var0003 = UI_get_item_flag_A3(item, 0x001C);
		if(!(var0001 || var0002)) goto labelFunc0490_00C6;
		UcMessage("\"Botoka na guta!\" *This creature looks at you with eyes so filled with hate that it is painful to look at them.");
		UcSay;
		if(!var0000) goto labelFunc0490_00B3;
		UI_show_npc_face1_06(0xFF6F, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Umgabar fotuba na Gwani!\" *This one looks at you with eyes that are cold and feral.");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0490_00B3:
		var0004 = Func0992(Iolo, "@Avatar, they smell the Gwani pelts!@", "@They smell the Gwani pelts!@", false);
		goto labelFunc0490_0181;
	labelFunc0490_00C6:
		if(!var0003) goto labelFunc0490_00D3;
		UcMessage("\"Be good very much to meet again.\"");
		UcSay;
		goto labelFunc0490_00D7;
	labelFunc0490_00D3:
		UcMessage("\"Thou... the one... Gwenno spoke.\" ~You can tell the creature obviously has great trouble with your language.");
		UcSay;
	labelFunc0490_00D7:
		UI_add_answer_0C(["name", "Gwani", "bye"]);
	labelFunc0490_00E7:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Bwundai my name is.\"");
		UcSay;
		UI_set_item_flag_A4(item, 0x001C);
	labelFunc0490_0105:
		cmps("Gwani");
		UI_remove_answer_0D("Gwani");
		UcMessage("\"Our village near. But, thou seek Gwenno...\" ~He pauses thoughtfully before speaking to you again. ~\"Gwani Death Temple on island north. West of Ice dragon caves.\"");
		UcSay;
	labelFunc0490_0118:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		UI_set_schedule_type_25(item, 0x0014);
		UI_set_new_schedules_B6(0xFF70, [0x0001, 0x0003, 0x0006], [0x000B, 0x0010, 0x000E], [0x03A4, 0x0368, 0x0431, 0x0348, 0x0427, 0x034D]);
		Func097F(0xFE9C, "@Farewell, little fellow.@", 0x0000);
		Func097F(0xFF70, "@Fare -- well@", 0x0003);
		abrt();
	labelFunc0490_017D:
		goto labelFunc0490_00E7;
	labelFunc0490_0180:
		end_conv();
	labelFunc0490_0181:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0942 0x942 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0491 0x491 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc0491_0028;
	UI_item_say_4D(0xFE9C, "@Hail there!@");
	Func097F(0xFF6F, "@Gruk! Barama tu!@", 0x0003);
	UI_set_schedule_type_25(0xFF6F, 0x0003);
	labelFunc0491_0028:
		if(!(event == 0x0009)) goto labelFunc0491_01B2;
		UI_run_schedule_B7(0xFF6F);
		UI_clear_item_say_4E(0xFF6F);
		UI_show_npc_face0_05(0xFF6F, 0x0000);
		var0000 = Func0942(0xFF70);
		var0001 = UI_get_item_flag_A3(Iolo, 0x0006);
		var0002 = UI_get_item_flag_A3(Shamino, 0x0006);
		var0003 = UI_get_item_flag_A3(Dupre, 0x0006);
		var0004 = Func097D(0xFE9B, 0x0001, 0x00E3, 0xFE99, 0x0008);
		var0005 = Func097D(0xFE9B, 0x0001, 0x0002, 0xFE99, 0x0004);
		if(!(var0004 || var0005)) goto labelFunc0491_0146;
		UcMessage("\"Rrrow! Meteka Gwani adu laseka!\" This creature looks at you with angry eyes.");
		UcSay;
		if(!var0000) goto labelFunc0491_00CF;
		UI_show_npc_face1_06(0xFF70, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Soko terama dok!\" This one gives you a mean look and spits.");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0491_00CF:
		if(!var0001) goto labelFunc0491_00F2;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Avatar, 'tis the pelts! They can smell that we have Gwani pelts on us! I suggest we throw them away!\"");
		UcSay;
		UI_remove_npc_face1_08();
		abrt();
		goto labelFunc0491_0143;
	labelFunc0491_00F2:
		if(!var0002) goto labelFunc0491_0115;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Avatar, 'tis the pelts! They can smell that we have Gwani pelts on us! I suggest we throw them away!\"");
		UcSay;
		UI_remove_npc_face1_08();
		abrt();
		goto labelFunc0491_0143;
	labelFunc0491_0115:
		if(!var0003) goto labelFunc0491_0138;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UI_set_conversation_slot_09(0x0001);
		UcMessage("\"Avatar, 'tis the pelts! They can smell we have Gwani pelts on us! I suggest that we throw them away!\"");
		UcSay;
		UI_remove_npc_face1_08();
		abrt();
		goto labelFunc0491_0143;
	labelFunc0491_0138:
		UI_item_say_4D(0xFE9C, "@I have Gwani pelts!@");
		abrt();
	labelFunc0491_0143:
		goto labelFunc0491_01B2;
	labelFunc0491_0146:
		UcMessage("\"Thou look like Avatar,\" the Gwani creature says with broken speech.");
		UcSay;
		UI_add_answer_0C(["name", "Gwani", "bye"]);
	labelFunc0491_015A:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Mwaerno. Means 'rain clouds'.\"");
		UcSay;
	labelFunc0491_0170:
		cmps("Gwani");
		UI_remove_answer_0D("Gwani");
		UcMessage("\"Our village near. Speak to Yenani.\"");
		UcSay;
	labelFunc0491_0183:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFF6F, "@Atala dak!@", 0x0003);
		goto labelFunc0491_01B1;
	labelFunc0491_01AE:
		goto labelFunc0491_015A;
	labelFunc0491_01B1:
		end_conv();
	labelFunc0491_01B2:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0492 0x492 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0492_0028;
	UI_item_say_4D(0xFE9C, "@Hail, Gwani elder!@");
	Func097F(0xFF6E, "@Thou are here.@", 0x0003);
	UI_set_schedule_type_25(0xFF6E, 0x0003);
	labelFunc0492_0028:
		if(!(event == 0x0009)) goto labelFunc0492_028C;
		UI_run_schedule_B7(0xFF6E);
		UI_clear_item_say_4E(0xFF6E);
		UI_show_npc_face0_05(0xFF6E, 0x0000);
		UcMessage("\"It is one foretold by Gwenno!\"");
		UcSay;
		UI_add_answer_0C(["name", "Gwenno", "bye"]);
		if(!gflags[0004]) goto labelFunc0492_0079;
		if(!gflags[0263]) goto labelFunc0492_0072;
		UI_add_answer_0C("Thanks");
		goto labelFunc0492_0079;
	labelFunc0492_0072:
		UI_add_answer_0C("We have been attacked!");
	labelFunc0492_0079:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I Myauri, hunting master. My mate Yenani chieftain of our people. I am father of Neyobi and Kapyundi.\"");
		UcSay;
		UI_add_answer_0C(["Myauri", "Yenani", "Neyobi", "Kapyundi"]);
	labelFunc0492_00A2:
		cmps("Myauri");
		UI_remove_answer_0D("Myauri");
		UcMessage("\"It is ancient, proud Gwani name. It mean 'Blizzard' in our tongue.\"");
		UcSay;
	labelFunc0492_00B5:
		cmps("Yenani");
		UI_remove_answer_0D("Yenani");
		UcMessage("\"She mate of Myauri all of life. She not only leader of Gwani people, but keeper of stories, and history of our people.\"");
		UcSay;
	labelFunc0492_00C8:
		cmps("Neyobi");
		UI_remove_answer_0D("Neyobi");
		var0000 = UI_get_item_flag_A3(0xFF6D, 0x001E);
		if(!var0000) goto labelFunc0492_0101;
		UcMessage("\"Neyobi my only daughter. She very sick. Strange sickness put her to sleep. Now she not wake. If she not cured soon, sleeping sickness kill her.\"");
		UcSay;
		UI_add_answer_0C(["strange sickness", "When did this happen?", "cure"]);
		goto labelFunc0492_0105;
	labelFunc0492_0101:
		UcMessage("\"Neyobi sickness gone! Avatar cure Neyobi. Myauri never forget great deed Avatar do for Myauri. Great deed for Gwani people!\"");
		UcSay;
	labelFunc0492_0105:
		cmps("strange sickness");
		UI_remove_answer_0D("strange sickness");
		UcMessage("\"Not even our healer Baiyanda know what sickness is, where it come from, how it cured. I worry it be with rest of Gwani people. Maybe nothing to be done. Maybe Gwani die.\"");
		UcSay;
		UI_add_answer_0C(["nothing to be done", "Gwani die"]);
	labelFunc0492_0125:
		cmps("When did this happen?");
		UI_remove_answer_0D("When did this happen?");
		UcMessage("\"It not long ago when Neyobi was well. Then one morning she not wake. That is all I know.\"");
		UcSay;
	labelFunc0492_0138:
		cmps("cure");
		UI_remove_answer_0D("cure");
		UcMessage("\"Speak with Yenani or Baiyanda. They know what to do.\"");
		UcSay;
	labelFunc0492_014B:
		cmps("Kapyundi");
		UI_remove_answer_0D("Kapyundi");
		var0001 = UI_get_item_flag_A3(0xFF66, 0x0004);
		if(!var0001) goto labelFunc0492_0174;
		UcMessage("\"The Trapper killed him. He was great hunter. He fought fiercely for his life and his people. My heart burn at loss of him but he live forever in my memory.\"");
		UcSay;
		goto labelFunc0492_0178;
	labelFunc0492_0174:
		UcMessage("\"He my son, brave and strong hunter. One day he take my place as Hunting Master of Gwani people. Even now he search for cure for Neyobi sickness.\"");
		UcSay;
	labelFunc0492_0178:
		cmps("nothing to be done");
		UI_remove_answer_0D("nothing to be done");
		UcMessage("\"Not all things in world meant to have answers. Gwani tried to live in balance with world, not force us on nature. Maybe our time is over.\"");
		UcSay;
	labelFunc0492_018B:
		cmps("Gwani die");
		UI_remove_answer_0D("Gwani die");
		UcMessage("\"Maybe time here to face death of our people. All in universe balanced unless man or Gwani intervene. Our people seen great strife, great challenges. Fierce dragons, goblins, hunting humans. We survive all of these things. Still part of great balance of things. Maybe we not meant to survive this. When Gwani no longer part of balance of universe, time for us to leave world. This way of things.\"");
		UcSay;
	labelFunc0492_019E:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		var0002 = UI_get_schedule_type_24(0xFF6B);
		if(!(var0002 == 0x000F)) goto labelFunc0492_01D9;
		UcMessage("\"Gwenno great friend to our people. It thanks to her that many of our people speak thy tongue. She even told us all about thou. She said thou would come. Her death tragedy.\"");
		UcSay;
		gflags[0262] = true;
		UI_add_answer_0C(["How did Gwenno die?", "Where is Gwenno's body?"]);
		goto labelFunc0492_01DD;
	labelFunc0492_01D9:
		UcMessage("\"All Gwani people very happy to know Gwenno alive again!\"");
		UcSay;
	labelFunc0492_01DD:
		cmps("How did Gwenno die?");
		UI_remove_answer_0D("How did Gwenno die?");
		UcMessage("\"Gwenno killed by The Trapper's men.\"");
		UcSay;
		UI_add_answer_0C("The Trapper");
	labelFunc0492_01F7:
		cmps("Where is Gwenno's body?");
		UI_remove_answer_0D("Where is Gwenno's body?");
		UcMessage("\"Gwenno's body now at Gwani Death Temple. It place sacred to us, where spirits of dead rest peacefully. Only leaders of tribe, Yenani and Baiyanda go there. But Baiyanda's mate Bwundai may know where it is.\"");
		UcSay;
	labelFunc0492_020A:
		cmps("The Trapper");
		UI_remove_answer_0D("The Trapper");
		if(!gflags[0263]) goto labelFunc0492_0226;
		UcMessage("\"I thank thou for killing The Trapper. Maybe now we live in peace!\"");
		UcSay;
		goto labelFunc0492_022A;
	labelFunc0492_0226:
		UcMessage("\"The Trapper cunning human who hunt us to near extinction. He hunt us for our skins. He live somewhere north. We do not know where.\"");
		UcSay;
	labelFunc0492_022A:
		cmps("Thanks");
		UI_remove_answer_0D("Thanks");
		UcMessage("\"Terrible threat to Gwani people ended thanks to thou! We grateful!\"");
		UcSay;
	labelFunc0492_023D:
		cmps("We have been attacked!");
		UI_remove_answer_0D("We have been attacked!");
		UcMessage("\"The Trapper struck! All Gwani dead but Yenani, Neyobi and I.\"");
		UcSay;
		UI_add_answer_0C(["nothing to be done", "Gwani die"]);
	labelFunc0492_025D:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFF6E, "@Go in peace, my friend.@", 0x0003);
		goto labelFunc0492_028B;
	labelFunc0492_0288:
		goto labelFunc0492_0079;
	labelFunc0492_028B:
		end_conv();
	labelFunc0492_028C:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();

Func0493 0x493 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0493_0059;
	var0000 = UI_get_item_flag_A3(0xFF6D, 0x001E);
	if(!var0000) goto labelFunc0493_0039;
	UI_item_say_4D(0xFE9C, "@Wake up, little one!@");
	var0001 = Func0992(0x0001, "@She cannot wake, Avatar. She is very sick.@", "@Poor little one! She is very sick.@", false);
	abrt();
	goto labelFunc0493_0059;
	labelFunc0493_0039:
		UI_item_say_4D(0xFE9C, "@Good morning, little one!@");
		Func097F(0xFF6D, "@Tee hee hee hee!@", 0x0003);
		UI_set_schedule_type_25(0xFF6D, 0x0003);
	labelFunc0493_0059:
		if(!(event == 0x0009)) goto labelFunc0493_0177;
		UI_run_schedule_B7(0xFF6D);
		UI_clear_item_say_4E(0xFF6D);
		UI_show_npc_face0_05(0xFF6D, 0x0000);
		UcMessage("\"Thou be Avatar! Thou nice!\"");
		UcSay;
		UI_add_answer_0C(["name", "What art thou doing?", "bye"]);
	labelFunc0493_008D:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Mother say thou found medicine make me better. Thank thou! My name Neyobi! Thou know what that mean?\"");
		UcSay;
		var0002 = Func0955();
		if(!var0002) goto labelFunc0493_00B6;
		UcMessage("\"Then thou very smart!\"");
		UcSay;
		goto labelFunc0493_00BA;
	labelFunc0493_00B6:
		UcMessage("\"It mean 'little dew drops' and also mean my name. Neyobi! Me!\"");
		UcSay;
	labelFunc0493_00BA:
		cmps("What art thou doing?");
		UI_remove_answer_0D("What art thou doing?");
		UcMessage("\"Early today I play! I like look at clouds! Other day I saw one that look like penguin! Later, mother and Baiyanda teach lessons.\"");
		UcSay;
		UI_add_answer_0C(["mother", "Baiyanda", "lessons"]);
	labelFunc0493_00DD:
		cmps("mother");
		UI_remove_answer_0D("mother");
		UcMessage("\"Yenani, silly! She chieftain of our tribe. She tell me one day, after I grow, that what I be.\"");
		UcSay;
	labelFunc0493_00F0:
		cmps("Baiyanda");
		UI_remove_answer_0D("Baiyanda");
		var0003 = UI_get_item_flag_A3(0xFF71, 0x0004);
		if(!var0003) goto labelFunc0493_0119;
		UcMessage("\"I not see her in long time! I miss her lot.\"");
		UcSay;
		goto labelFunc0493_011D;
	labelFunc0493_0119:
		UcMessage("\"She healer, and smartest person in whole world!\"");
		UcSay;
	labelFunc0493_011D:
		cmps("lessons");
		UI_remove_answer_0D("lessons");
		UcMessage("\"Mother tells me the stories of the old days. She also teach me language of Men. She say Gwani very good at learn languages. Especially young ones.\"");
		UcSay;
		var0003 = UI_get_item_flag_A3(0xFF71, 0x0004);
		if(!(!var0003)) goto labelFunc0493_0148;
		UcMessage("\"Baiyanda teach me about plants and things.\"");
		UcSay;
	labelFunc0493_0148:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Have fun, little one.@", 0x0000);
		Func097F(0xFF6D, "@Bye!@", 0x0003);
		goto labelFunc0493_0176;
	labelFunc0493_0173:
		goto labelFunc0493_008D;
	labelFunc0493_0176:
		end_conv();
	labelFunc0493_0177:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0494 0x494 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func097D(0xFE9B, 0x0001, 0x01DF, 0xFE99, 0x0002);
	if(!(event == 0x0001)) goto labelFunc0494_0043;
	UI_item_say_4D(0xFE9C, "@Hail there, Gwani person.@");
	0xFF6C;
	calle();
	Func097F(0xFF6C, "@Hello there, Avatar!@", 0x0003);
	UI_set_schedule_type_25(0xFF6C, 0x0003);
	labelFunc0494_0043:
		if(!(event == 0x0009)) goto labelFunc0494_036F;
		UI_run_schedule_B7(0xFF6C);
		UI_clear_item_say_4E(0xFF6C);
		UI_show_npc_face0_05(0xFF6C, 0x0000);
		var0001 = Func097D(0xFE9B, 0x0001, 0x032A, 0x0009, 0x0002);
		var0002 = UI_get_item_flag_A3(0xFF6C, 0x001C);
		UI_add_answer_0C(["name", "bye"]);
		if(!var0001) goto labelFunc0494_009F;
		UI_add_answer_0C("got blood");
	labelFunc0494_009F:
		if(!var0002) goto labelFunc0494_00AC;
		UcMessage("\"It is thee again!\"");
		UcSay;
		goto labelFunc0494_00B7;
	labelFunc0494_00AC:
		UcMessage("\"Thou must be one Gwenno spoke of!\"");
		UcSay;
		UI_add_answer_0C("Gwenno");
	labelFunc0494_00B7:
		if(!(gflags[025D] && gflags[0260])) goto labelFunc0494_00C8;
		UI_add_answer_0C("valuable secret");
	labelFunc0494_00C8:
		if(!gflags[0004]) goto labelFunc0494_00DC;
		if(!(!gflags[0263])) goto labelFunc0494_00DC;
		UI_add_answer_0C("Where are the other Gwani?");
	labelFunc0494_00DC:
		if(!(var0000 && (!gflags[025E]))) goto labelFunc0494_00EE;
		UI_add_answer_0C("Here is the amulet.");
	labelFunc0494_00EE:
		UcAsk;
		cmps("Here is the amulet.");
		UI_remove_answer_0D("Here is the amulet.");
		UcMessage("\"Many thanks for returning this, Avatar.\"");
		UcSay;
		UcMessage("\"Here something to reward good deed.\"");
		UcSay;
		var0003 = UI_remove_party_items_34(0x0001, 0x01DF, 0xFE99, 0x0002, false);
		var0004 = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x0000, false, true);
		gflags[025E] = true;
	labelFunc0494_0137:
		cmps("name");
		UcMessage("\"I am Yenani, mate of Myauri, mother of Neyobi and Kapyundi, leader of Gwani people and teller of Gwani history.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF6C, 0x001C);
		UI_remove_answer_0D("name");
		UI_add_answer_0C(["Myauri", "Neyobi", "Kapyundi", "history"]);
	labelFunc0494_0167:
		cmps("history");
		UI_remove_answer_0D("history");
		UcMessage("\"Many years ago the Gwani ruled these icy lands with the Great Horn of the Gwani. It was a powerful tool of balance that could make the ice dance. But we lost the Great Horn of the Gwani when it was stolen from us by a stranger who came in the night. He took the Horn to the place men call Skullcrusher. We have since found that we Gwani do not need it to live in balance with the universe. May it go to whoever has the good fortune of finding it.\"");
		UcSay;
	labelFunc0494_017A:
		cmps("Myauri");
		UcMessage("\"Long have Gwani been led by my wisdom, and hunting skills of mate Myauri. Together we are heart and soul of Gwani people.\"");
		UcSay;
		UI_remove_answer_0D("Myauri");
	labelFunc0494_018D:
		cmps("Kapyundi");
		UcMessage("\"He is proud and skilled hunter.\"");
		UcSay;
		UI_remove_answer_0D("Kapyundi");
	labelFunc0494_01A0:
		cmps("Neyobi");
		UI_remove_answer_0D("Neyobi");
		var0005 = UI_get_item_flag_A3(0xFF6D, 0x001E);
		if(!var0005) goto labelFunc0494_01D0;
		UcMessage("\"My daughter have severe fever. She dying and only thou canst save her!\"");
		UcSay;
		UI_add_answer_0C("save Neyobi");
		goto labelFunc0494_01EC;
	labelFunc0494_01D0:
		UcMessage("\"I thank thee for bringing the one thing that could save daughter.\"");
		UcSay;
		if(!gflags[025D]) goto labelFunc0494_01E8;
		UcMessage("\"To reward thee I can shall give thee a valuable secret.\"");
		UcSay;
		UI_add_answer_0C("valuable secret");
		goto labelFunc0494_01EC;
	labelFunc0494_01E8:
		UcMessage("\"Remember that the Gwani people are in thy debt. Perhaps we shall be able to reward thee one day.\"");
		UcSay;
	labelFunc0494_01EC:
		cmps("save Neyobi");
		UcMessage("\"Talk to Baiyanda, healer of our people. She will know what to do.\"");
		UcSay;
		UI_remove_answer_0D("save Neyobi");
	labelFunc0494_01FF:
		cmps("valuable secret");
		if(!gflags[0260]) goto labelFunc0494_0218;
		UcMessage("\"For thy aid to my people, I present to thee this gift of knowledge. Here is the secret for travelling through Skullcrusher Mountains -- When thou dost reach this place, remember the phrase: @Isal Sal Cra Gaas Iskar.@ Skullcrusher is south of	our village. At mountains go westward and follow all way round. There is a cave like any other there. But inside are five pillars and five serpent runestones and a man of metal guards this place.\"");
		UcSay;
		gflags[0265] = true;
		goto labelFunc0494_021C;
	labelFunc0494_0218:
		UcMessage("\"I shall give to thee the secret for passing through the mountains of Skullcrusher, which is what one must do to reach the lands farther to the north.\"");
		UcSay;
	labelFunc0494_021C:
		UI_remove_answer_0D("valuable secret");
	labelFunc0494_0223:
		cmps("Gwenno");
		var0006 = UI_get_schedule_type_24(0xFF6B);
		if(!(var0006 == 0x000F)) goto labelFunc0494_0254;
		UcMessage("\"Gwenno was good friend to us. She spent weeks teaching me human language. Over time I slowly teaching others.	Many days we have mourned death of good woman Gwenno. She horribly killed by men of one we call The Trapper. She spoke of thee often.\"");
		UcSay;
		gflags[0262] = true;
		UI_add_answer_0C(["Spoke of me?"]);
		goto labelFunc0494_0258;
	labelFunc0494_0254:
		UcMessage("\"We of Gwani overjoyed to learn Gwenno's resurrection.\"");
		UcSay;
	labelFunc0494_0258:
		UI_remove_answer_0D("Gwenno");
	labelFunc0494_025F:
		cmps("Spoke of me?");
		UI_remove_answer_0D("Spoke of me?");
		UcMessage("\"She spoke of one called the Avatar. She said one called the Avatar would come and return her to her mate. She also said Avatar would save Gwani from extinction.\"");
		UcSay;
	labelFunc0494_0272:
		cmps("Gwani");
		UcMessage("\"We are peaceful people and chose to live apart from races of goblins and humanity.\"");
		UcSay;
		UI_add_answer_0C(["goblins", "humanity"]);
		UI_remove_answer_0D("Gwani");
	labelFunc0494_0292:
		cmps("goblins");
		UcMessage("\"Goblins hunt us without mercy. Hatred for us almost greater than hatred for humans.\"");
		UcSay;
		UI_remove_answer_0D("goblins");
	labelFunc0494_02A5:
		cmps("humanity");
		UcMessage("\"Humans also hunt us, although fewer of them than goblins. Still, one human menaces us and being greatest single threat to our race.  This is man we know only as the Trapper.\"");
		UcSay;
		UI_remove_answer_0D("humanity");
		UI_add_answer_0C("The Trapper");
	labelFunc0494_02BF:
		cmps("got blood");
		UI_remove_answer_0D("got blood");
		UcMessage("\"Thou brought blood of Ice Dragon! I must have!\"");
		UcSay;
		var0007 = UI_remove_party_items_34(0x0001, 0x032A, 0x0009, 0x0002, false);
		if(!var0007) goto labelFunc0494_0312;
		UcMessage("\"Daughter can be saved! I thank thee.\"");
		UcSay;
		if(!gflags[025D]) goto labelFunc0494_0301;
		UcMessage("\"Now, as I promised I reward thee with a valuable secret.\"");
		UcSay;
		UI_add_answer_0C("valuable secret");
	labelFunc0494_0301:
		gflags[0260] = true;
		UI_clear_item_flag_A5(0xFF6D, 0x001E);
		goto labelFunc0494_0316;
	labelFunc0494_0312:
		UcMessage("\"Thou must give me the blood of an ice dragon so I save daughter.\"");
		UcSay;
	labelFunc0494_0316:
		cmps("The Trapper");
		UcMessage("\"He is human called Hazard. He lives in cave north on Ice Plains. I fear he not stop hunt us until he hunt us to extinction.\"");
		UcSay;
		UI_remove_answer_0D("The Trapper");
	labelFunc0494_0329:
		cmps("Where are the other Gwani?");
		UI_remove_answer_0D("Where are the other Gwani?");
		UcMessage("\"We were attacked by the Trapper! All of our tribe dead except Myauri, Neyobi and myself. I want to give thee magical serpent tooth, but it in amulet of Baiyanda. Amulet is now with the Trapper. Thou find his lair north, in cave along mountains.\"");
		UcSay;
		gflags[0261] = true;
	labelFunc0494_0340:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Be safe, my friend.@", 0x0001);
		Func097F(0xFF6C, "@And thee, as well.@", 0x0005);
		goto labelFunc0494_036E;
	labelFunc0494_036B:
		goto labelFunc0494_00EE;
	labelFunc0494_036E:
		end_conv();
	labelFunc0494_036F:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func0835 0x835 ();
extern Func09B4 0x9B4 (var var0000);

Func0495 0x495 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_part_of_day_48();
	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0495_0109;
	UI_item_say_4D(0xFE9C, "@A pleasure to see thee...@");
	0xFF6B;
	calle();
	if(!(!UI_get_item_flag_A3(0xFF6B, 0x001E))) goto labelFunc0495_005F;
	Func097F(0xFF6B, "@'Tis good to see thee!@", 0x0002);
	UI_set_schedule_type_25(0xFF6B, 0x0003);
	goto labelFunc0495_0109;
	labelFunc0495_005F:
		UI_set_new_schedules_B6(0xFF6B, 0x0000, 0x001E, [0x0977, 0x048C]);
		UI_run_schedule_B7(0xFF6B);
		if(!(!gflags[02DD])) goto labelFunc0495_00A4;
		gflags[02DD] = true;
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x001E);
	labelFunc0495_00A4:
		var0005 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0005 == 0x0001)) goto labelFunc0495_00C7;
		Func097F(0xFF6B, "@I must sate mine hunger!@", 0x0002);
	labelFunc0495_00C7:
		if(!(var0005 == 0x0002)) goto labelFunc0495_00DD;
		Func097F(0xFF6B, "@Come, allow me to feed upon thee!@", 0x0002);
	labelFunc0495_00DD:
		if(!(var0005 == 0x0003)) goto labelFunc0495_00F3;
		Func097F(0xFF6B, "@Blood! Blood everywhere!@", 0x0002);
	labelFunc0495_00F3:
		if(!(var0005 == 0x0004)) goto labelFunc0495_0109;
		Func097F(0xFF6B, "@Let me feel thy naked flesh!@", 0x0002);
	labelFunc0495_0109:
		if(!(event == 0x0009)) goto labelFunc0495_0702;
		if(!UI_get_item_flag_A3(0xFF6B, 0x0006)) goto labelFunc0495_0132;
		UI_set_schedule_type_25(0xFF6B, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0495_0140;
	labelFunc0495_0132:
		UI_run_schedule_B7(0xFF6B);
		UI_add_answer_0C("join");
	labelFunc0495_0140:
		UI_clear_item_say_4E(0xFF6B);
		UI_show_npc_face0_05(0xFF6B, 0x0000);
		var0006 = UI_get_item_flag_A3(0xFF6B, 0x001C);
		if(!(((!UI_get_item_flag_A3(Iolo, 0x001E)) && gflags[00D5]) && (!gflags[0275]))) goto labelFunc0495_0210;
		UcMessage("\"Iolo! My beloved Iolo!\"");
		UcSay;
		UcMessage("\"Oh, I had feared that I would never see thee again!\"");
		UcSay;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"My lovely Gwenno!\"");
		UcSay;
		UcMessage("\"Now mine heart can sing, at the sight of thee!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou dost look pale, dear Iolo.\"");
		UcSay;
		UcMessage("\"Thou didst never take care of thyself when I was away...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0001);
		if(!Func097D(0xFE9B, 0x0001, 0x03BB, 0xFE99, 0x0005)) goto labelFunc0495_01DE;
		UcMessage("\"The Lady of Fawn gave me this necklace to give to thee, when at last I found thee, my love.\"");
		UcSay;
		UcMessage("\"Take it as a token of my love.\"");
		UcSay;
		var0007 = Func0996(Iolo, 0xFF6B, 0x0001, 0x03BB, 0xFE99, 0x0005, true);
		goto labelFunc0495_01E6;
	labelFunc0495_01DE:
		UcMessage("\"The Lady of Fawn gave me a necklace to give to thee, my love. But in all my trials to find thee, I seem to have lost it.\"");
		UcSay;
		UcMessage("\"I had thought to give it to thee as a token of my love.\"");
		UcSay;
	labelFunc0495_01E6:
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		if(!(var0007 == true)) goto labelFunc0495_0204;
		UcMessage("\"I shall cherish it always, Iolo.\"");
		UcSay;
		UcMessage("\"But thou didst not have to give me anything to prove thy love. That thou art here now is proof enough.\"");
		UcSay;
		goto labelFunc0495_020C;
	labelFunc0495_0204:
		UcMessage("\"It doth not matter, Iolo.\"");
		UcSay;
		UcMessage("\"Thou dost not have to give me anything to prove thy love. That thou art here now is proof enough.\"");
		UcSay;
	labelFunc0495_020C:
		gflags[0275] = true;
	labelFunc0495_0210:
		if(!(UI_get_item_flag_A3(Iolo, 0x001E) && gflags[00D5])) goto labelFunc0495_0233;
		UcMessage("\"A thousand thanks for bringing back mine husband, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I grieve that his wits seem to have left him. But at least he is safe with me.\"");
		UcSay;
		UcMessage("\"I shall do all that I can to aid thee in restoring him. Or gladly care for him all the remainder of my days... even as he is.\"");
		UcSay;
	labelFunc0495_0233:
		if(!(!UI_get_item_flag_A3(0xFF6B, 0x001C))) goto labelFunc0495_0260;
		UI_set_item_flag_A4(0xFF6B, 0x001C);
		UcMessage("\"What a relief to see thee again, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I fear that thy work hath only begun. Batlin's deeds have only worsened the storms.\"");
		UcSay;
		UcMessage("\"As the sand dwindles within the Hourglass of Fate, the danger will only increase. Thou must find the answer quickly, Avatar!\"");
		UcSay;
		goto labelFunc0495_026E;
	labelFunc0495_0260:
		UcMessage("\"I have been doing much study, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"There is much I must tell thee before the sand runs down in the Hourglass of Fate.\"");
		UcSay;
	labelFunc0495_026E:
		if(!(!gflags[00FF])) goto labelFunc0495_0285;
		UI_add_answer_0C(["Batlin's deeds", "danger", "answer"]);
	labelFunc0495_0285:
		if(!(gflags[00FF] && ((!gflags[00D4]) || ((!gflags[00D5]) || (!gflags[00D3]))))) goto labelFunc0495_02A5;
		UcMessage("\"Avatar! I have found a most intriguing scroll that tells of some sort of mystic connection between the Banes and the ancient temples!\"");
		UcSay;
		UI_add_answer_0C("mystic connection");
	labelFunc0495_02A5:
		if(!(gflags[0279] && (!gflags[022B]))) goto labelFunc0495_02B8;
		UcMessage("\"Now I understand what Xenka meant by being aided by specters. But, unless thou canst find the grave of the last Chaos Hierophant, I know not how thou wilt restore Balance.\"");
		UcSay;
		UcMessage("\"Perhaps if thou wouldst ask one of the monks -- perhaps Thoxa -- she could try to divine where the Chaos Hierophant lies.\"");
		UcSay;
	labelFunc0495_02B8:
		if(!(gflags[0010] && ((!UI_get_item_flag_A3(0xFF6B, 0x0006)) && UI_get_cont_items_33(0xFF6B, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc0495_02E2;
		UI_add_answer_0C("belongings");
	labelFunc0495_02E2:
		UI_add_answer_0C(["bye"]);
	labelFunc0495_02EC:
		UcAsk;
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		Func0835();
	labelFunc0495_0301:
		cmps("join");
		UI_remove_answer_0D("join");
		if(!gflags[0061]) goto labelFunc0495_0349;
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0495_033E;
		UI_add_answer_0C("leave");
		UcMessage("\"If thou dost think I can be of use...\"");
		UcSay;
		UI_add_to_party_26(0xFF6B);
		gflags[0010] = true;
		goto labelFunc0495_0346;
	labelFunc0495_033E:
		UcMessage("\"I hardly think that thou hast need of me, Avatar. Look at all thy fine companions!\"");
		UcSay;
		UcMessage("\"Instead, I shall remain here. After all, what can one old woman do for thee?\"");
		UcSay;
	labelFunc0495_0346:
		goto labelFunc0495_0361;
	labelFunc0495_0349:
		if(!UI_get_item_flag_A3(Iolo, 0x001E)) goto labelFunc0495_035D;
		UcMessage("\"But I must remain here and study! I must help thee find a way to restore my dear Iolo!\"");
		UcSay;
		goto labelFunc0495_0361;
	labelFunc0495_035D:
		UcMessage("\"I will be of more use to thee if I remain here. I seem to have a talent for finding the information thou dost need.\"");
		UcSay;
	labelFunc0495_0361:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UI_add_answer_0C("join");
		UcMessage("\"I understand, ");
		UcMessage(var0002);
		UcMessage("...\"");
		UcSay;
		UI_remove_from_party_27(0xFF6B);
		Func09B4(0xFF6B);
	labelFunc0495_038E:
		cmps("Batlin's deeds");
		UI_remove_answer_0D("Batlin's deeds");
		UcMessage("\"Until Batlin interfered, this land had no Balance, but complete chaos was held in check... Until he loosed the Banes.\"");
		UcSay;
		UcMessage("\"Unless Balance is restored, this land shall die... And take every world that touches it into the dust of oblivion as well.\"");
		UcSay;
		UI_add_answer_0C(["Banes", "every world"]);
	labelFunc0495_03B2:
		cmps("Banes");
		UI_remove_answer_0D("Banes");
		UI_push_answers_0E();
		UcMessage("\"The Banes are the splintered force of Chaos.\"");
		UcSay;
		UcMessage("\"Thou wilt have to cage them again, as they were before Batlin came. 'Tis only a temporary solution at best.\"");
		UcSay;
		UcMessage("\"Perhaps I can consult the materials here on Monk Isle and discover a way to rid this land of the threat entirely.\"");
		UcSay;
		UI_add_answer_0C(["cage them", "materials", "change subject"]);
	labelFunc0495_03E1:
		cmps("cage them");
		UI_remove_answer_0D("cage them");
		UcMessage("\"Thou shouldst go to Moonshade.\"");
		UcSay;
		UcMessage("\"If thou canst learn who gave Batlin the secret of trapping souls, I will try to learn what can make them able to withstand the forces that we wish to contain.\"");
		UcSay;
		UI_add_answer_0C(["Moonshade", "secret"]);
		gflags[012D] = true;
	labelFunc0495_0409:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"I do not believe that caging souls was possible within Britannia. Therefore, the spell must have come from this land.\"");
		UcSay;
		UcMessage("\"And where else but Moonshade wilt thou find a spell in this land? But they are a closed-mouthed lot -- I wish thee luck.\"");
		UcSay;
	labelFunc0495_0420:
		cmps("secret");
		UI_remove_answer_0D("secret");
		UcMessage("\"Although I spent quite a bit of time within Moonshade, I heard nothing about such a spell.\"");
		UcSay;
		UcMessage("\"Since the Mages are all basically vain, that must mean that the spell is a secret... or at least not common knowledge.\"");
		UcSay;
	labelFunc0495_0437:
		cmps("materials");
		UI_remove_answer_0D("materials");
		UcMessage("\"The Monks have said that they have an extensive library here. Perhaps, with all I have learned from my travels throughout the land, I can use their books and scrolls to find the answer.\"");
		UcSay;
	labelFunc0495_044A:
		cmps("every world");
		UI_remove_answer_0D("every world");
		UI_push_answers_0E();
		UcMessage("\"Britannia -- even thine home, Avatar -- is in deadly peril!\"");
		UcSay;
		UcMessage("\"No world exists without influencing another. So all may be destroyed if New Sosaria dies.\"");
		UcSay;
		UI_add_answer_0C(["New Sosaria", "change subject"]);
	labelFunc0495_0472:
		cmps("New Sosaria");
		UI_remove_answer_0D("New Sosaria");
		UcMessage("\"According to the Mages of Moonshade, New Sosaria is the name of this land, ");
		UcMessage(var0002);
		UcMessage(", though 'tis often called Serpent Isle.\"");
		UcSay;
		UcMessage("\"The forefathers of all the people here were dissenters of Lord British's rule.\"");
		UcSay;
		UI_add_answer_0C(["Serpent Isle", "Lord British's rule"]);
	labelFunc0495_049C:
		cmps("Serpent Isle");
		UI_remove_answer_0D("Serpent Isle");
		UcMessage("\"I came upon the ruins of a civilization in many places during my travels.\"");
		UcSay;
		UcMessage("\"They all bore the mark of some serpent design or another. I noted that there appeared to be a different serpent motif in different areas.\"");
		UcSay;
		UI_add_answer_0C("serpent motif");
	labelFunc0495_04BA:
		cmps("serpent motif");
		UI_remove_answer_0D("serpent motif");
		UcMessage("\"One serpent always seems to crawl toward the left. Another serpent always crawls toward the right, and the remaining serpent always crawls straight.\"");
		UcSay;
		UcMessage("\"I have no idea if it means anything, but there was a difference between the different ruins.\"");
		UcSay;
	labelFunc0495_04D1:
		cmps("Lord British's rule");
		UI_remove_answer_0D("Lord British's rule");
		UcMessage("\"It doth seem difficult to believe that they could be talking about the Lord British we know.\"");
		UcSay;
		UcMessage("\"But perhaps time runs differently here than in Britannia.\"");
		UcSay;
	labelFunc0495_04E8:
		cmps("danger");
		UI_remove_answer_0D("danger");
		UI_push_answers_0E();
		UcMessage("\"Thou hast already experienced the power of the Storms of Imbalance. As time passes, these will increase in frequency and strength.\"");
		UcSay;
		UcMessage("\"After a further period of time, earthquakes will begin to tear the land apart... Until it at last destroys itself.\"");
		UcSay;
		UI_add_answer_0C(["Storms of Imbalance", "period of time", "change subject"]);
	labelFunc0495_0513:
		cmps("Storms of Imbalance");
		UI_remove_answer_0D("Storms of Imbalance");
		UcMessage("\"The Prophecies of Xenka speak of the Storms of Imbalance.\"");
		UcSay;
		UcMessage("\"Storms unlike any living man hath seen. Storms whose results no man can predict...\"");
		UcSay;
		UcMessage("\"I am sorry, the prophecies are cryptic at best.\"");
		UcSay;
		UI_add_answer_0C(["prophecies", "cryptic"]);
	labelFunc0495_053B:
		cmps("prophecies");
		UI_remove_answer_0D("prophecies");
		UcMessage("\"The monks have recorded all of Xenka's visions. They keep this tome of wisdom within their Chapel, on the altar.\"");
		UcSay;
		UcMessage("\"It is very confusing to read.\"");
		UcSay;
	labelFunc0495_0552:
		cmps("cryptic");
		UI_remove_answer_0D("cryptic");
		UcMessage("\"The language is vague and hard to understand.\"");
		UcSay;
		UcMessage("\"Much of it sounds like bad poetry... In fact, if Iolo's songs were as bad, I would break his lute rather than allow him to inflict them on others!\"");
		UcSay;
	labelFunc0495_0569:
		cmps("period of time");
		UI_remove_answer_0D("period of time");
		UcMessage("\"I do not know! These forsaken prophecies are so poorly written that I cannot make any headway in finding any reference to any other!\"");
		UcSay;
		UcMessage("\"I do not know who is responsible, the monks or Xenka herself, but I sometimes feel as if I could strike someone!\"");
		UcSay;
	labelFunc0495_0580:
		cmps("answer");
		UI_remove_answer_0D("answer");
		UI_push_answers_0E();
		UcMessage("\"According to Xenka's visions, 'The Hero from Another World will succeed through the use of powerful magic, the aid of specters, and the implements of the Hierophant.'\"");
		UcSay;
		UcMessage("\"Before the sands run down, we must find the meaning of these accursed riddles!\"");
		UcSay;
		UI_add_answer_0C(["powerful magic", "specters", "implements", "change subject"]);
	labelFunc0495_05AE:
		cmps("powerful magic");
		UI_remove_answer_0D("powerful magic");
		UcMessage("\"I know not what a farm wife would consider great magic!\"");
		UcSay;
		UcMessage("\"For all I know it could be as simple as lighting a candle! Or perhaps she is referring to the power to trap souls.\"");
		UcSay;
		UcMessage("\"It would be so much more simple if Xenka would return and explain these infernal riddles herself! She is worse than Chuckles!\"");
		UcSay;
	labelFunc0495_05C9:
		cmps("specters");
		UI_remove_answer_0D("specters");
		UcMessage("\"For all I know, Xenka is talking about herself!\"");
		UcSay;
		UcMessage("\"All of these monks are convinced that she will return to help thee finish thy quest... While I wade through all these insane ramblings!\"");
		UcSay;
		UcMessage("\"What I need is to talk to her specter and see if I can wring any sense out of her rather than these writings!\"");
		UcSay;
	labelFunc0495_05E4:
		cmps("implements");
		UI_remove_answer_0D("implements");
		UcMessage("\"From what Karnax hath told me, a Hierophant was some sort of priest or holy man for these Ophidians.\"");
		UcSay;
		UcMessage("\"What tools would a holy man use? Something for blessing people, perhaps... I know not. I must search further for more clues.\"");
		UcSay;
	labelFunc0495_05FB:
		cmps("mystic connection");
		UI_remove_answer_0D("mystic connection");
		UI_push_answers_0E();
		UcMessage("\"Before thou canst redeem thy faithful companions, thou must take the soul cages and bathe them in the water of the temple that is connected to that Bane.\"");
		UcSay;
		UcMessage("\"And whilst thou art at each temple, according to the scroll, there is a device of some sort through which thou canst divine the location of each Bane.\"");
		UcSay;
		UI_add_answer_0C(["bathe", "temple", "device", "change subject"]);
	labelFunc0495_0629:
		cmps("bathe");
		UI_remove_answer_0D("bathe");
		UcMessage("\"The soul cages... er, prisms... that thou dost have cannot withstand the powers of beings such as the Banes.\"");
		UcSay;
		UcMessage("\"Only a prism purified by the water of the appropriate temple can hold each Bane. Otherwise, the prism will be ineffective.\"");
		UcSay;
	labelFunc0495_0640:
		cmps("temple");
		UI_remove_answer_0D("temple");
		UcMessage("\"Karnax did tell me that Miggim doth have maps to the various temples...\"");
		UcSay;
		UcMessage("\"Apparently each temple was dedicated to one of the six virtues of the Ophidians. Thou shouldst seek out the correct temple before thou canst defeat the Banes.\"");
		UcSay;
		UI_add_answer_0C(["Karnax", "Miggim", "Ophidians"]);
	labelFunc0495_0667:
		cmps("Karnax");
		UI_remove_answer_0D("Karnax");
		UcMessage("\"Karnax is quite pompous. He is more inclined to lecture me than to help.\"");
		UcSay;
		UcMessage("\"But I will gladly suffer his speeches if they can help me find the way to restore mine husband.\"");
		UcSay;
		UcMessage("\"His knowledge of the history of these islands hath been invaluable!\"");
		UcSay;
	labelFunc0495_0682:
		cmps("Miggim");
		UI_remove_answer_0D("Miggim");
		UcMessage("\"Miggim is very quiet and helpful.\"");
		UcSay;
		UcMessage("\"He hath been most helpful reading books and scrolls that might hold some clue or another. I am thankful for his knowledge of this library... without him I would never find anything!\"");
		UcSay;
	labelFunc0495_0699:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"'Ophidians' is the word that Karnax uses for the people that once dwelled in the serpent ruins throughout the land.\"");
		UcSay;
		UcMessage("\"I do not know if it is their name for themselves, or if it is a name that he concocted for them.\"");
		UcSay;
	labelFunc0495_06B0:
		cmps("device");
		UI_remove_answer_0D("device");
		UcMessage("\"Once again, Avatar, I have nothing further that I can tell thee. I have been unable to find any more references to devices within the temples.\"");
		UcSay;
		UcMessage("\"I can find tallies of grain given to the temples, or lists of stonework hired by each temple caretaker. But I can find nothing else to help thee... I will keep searching.\"");
		UcSay;
	labelFunc0495_06C7:
		cmps("change subject");
		UcMessage("\"Certainly...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0495_06D7:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@I shall return...@", 0x0000);
		Func097F(0xFF6B, "@Hurry back!@", 0x0002);
		goto labelFunc0495_0701;
	labelFunc0495_06FE:
		goto labelFunc0495_02EC;
	labelFunc0495_0701:
		end_conv();
	labelFunc0495_0702:
		return;
}
// externs
extern Func091B 0x91B ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func08F1 0x8F1 ();
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func0976 0x976 (var var0000, var var0001);
extern Func0936 0x936 (var var0000, var var0001);
extern Func092E 0x92E (var var0000);
extern var Func0988 0x988 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0956 0x956 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0496 0x496 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	var0000 = UI_get_object_position_20(item);
	if(!((var0000[0x0001] >= 0x0432) && ((var0000[0x0001] <= 0x0439) && ((var0000[0x0002] >= 0x03E4) && ((var0000[0x0002] <= 0x03EB) && (var0000[0x0003] < 0x0005)))))) goto labelFunc0496_0045;
	Func091B();
	abrt();
	labelFunc0496_0045:
		var0001 = Func0954();
		var0002 = Func0953();
		var0003 = false;
		var0004 = UI_get_item_flag_A3(0xFFB8, 0x0004);
		if(!(gflags[003D] && ((UI_get_schedule_type_24(0xFF6A) == 0x000E) && (Func08F1() < 0x000F)))) goto labelFunc0496_00AA;
		var0005 = true;
		if(!((!UI_npc_nearby_3A(Iolo)) && ((!UI_npc_nearby_3A(Dupre)) && ((!UI_npc_nearby_3A(Shamino)) && (!UI_npc_nearby_3A(0xFFDE)))))) goto labelFunc0496_00AA;
		var0006 = true;
	labelFunc0496_00AA:
		if(!(event == 0x0007)) goto labelFunc0496_017D;
		if(!gflags[0083]) goto labelFunc0496_016B;
		var0007 = UI_get_oppressor_5C(0xFF6A);
		var0007 = (0x0000 - var0007);
		if(!(!var0007)) goto labelFunc0496_00D9;
		var0007 = 0xFE9C;
	labelFunc0496_00D9:
		if(!((var0007 != 0xFE9C) && (!in(var0007, Func098D())))) goto labelFunc0496_0144;
		var0008 = Func098D();
		var0008 = (var0008 & 0xFE9C);
		enum();
	labelFunc0496_00FD:
		for (var000B in var0008 with var0009 to var000A atend labelFunc0496_0117);
		if(!Func0932(var000B)) goto labelFunc0496_0114;
		goto labelFunc0496_011D;
	labelFunc0496_0114:
		goto labelFunc0496_00FD;
	labelFunc0496_0117:
		var000B = 0xFE9C;
	labelFunc0496_011D:
		UI_set_oppressor_5E(0xFF6A, var000B);
		UI_set_oppressor_5E(var0007, var000B);
		Func0976(0xFF6A, 0x0003);
		Func0976(var0007, 0x0003);
		exit2();
	labelFunc0496_0144:
		if(!(!gflags[0007])) goto labelFunc0496_0161;
		gflags[0007] = true;
		Func0936(UI_get_npc_object_23(var0007), UI_get_npc_object_23(0xFF6A));
		exit2();
	labelFunc0496_0161:
		Func092E(var0007);
		exit2();
		goto labelFunc0496_017D;
	labelFunc0496_016B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x01D0]);
	labelFunc0496_017D:
		if(!(event == 0x0000)) goto labelFunc0496_0350;
		var000C = [0xFFC1];
		if(!(!gflags[0038])) goto labelFunc0496_01A2;
		var000C = (var000C & 0xFFBB);
		goto labelFunc0496_01AC;
	labelFunc0496_01A2:
		var000C = (var000C & 0xFFB6);
	labelFunc0496_01AC:
		if(!(!gflags[0092])) goto labelFunc0496_01BD;
		var000C = (var000C & 0xFFB3);
	labelFunc0496_01BD:
		enum();
	labelFunc0496_01BE:
		for (var000F in var000C with var000D to var000E atend labelFunc0496_01E3);
		if(!(!UI_npc_nearby_3A(var000F))) goto labelFunc0496_01E0;
		var000C = Func0988(var000F, var000C);
	labelFunc0496_01E0:
		goto labelFunc0496_01BE;
	labelFunc0496_01E3:
		if(!(var000C == [])) goto labelFunc0496_01EE;
		abrt();
	labelFunc0496_01EE:
		UI_clear_item_say_4E(0xFF6A);
		var0010 = var000C[UI_get_random_00(UI_get_array_size_73(var000C))];
		UI_clear_item_say_4E(var0010);
		var0011 = UI_get_random_00(0x0006);
		if(!(var0011 == 0x0001)) goto labelFunc0496_0239;
		Func097F(0xFF6A, "@Protect the roads!@", 0x0000);
		Func097F(var0010, "@Protect the city!@", 0x0003);
	labelFunc0496_0239:
		if(!(var0011 == 0x0002)) goto labelFunc0496_024F;
		Func097F(0xFF6A, "@We should adjourn!@", 0x0000);
	labelFunc0496_024F:
		if(!(var0011 == 0x0003)) goto labelFunc0496_0292;
		if(!gflags[00CC]) goto labelFunc0496_027A;
		Func097F(var0010, "@The Goblin King is dead!@", 0x0000);
		Func097F(0xFF6A, "@Long live the Avatar!@", 0x0003);
		goto labelFunc0496_0292;
	labelFunc0496_027A:
		Func097F(var0010, "@The Goblins are coming!@", 0x0000);
		Func097F(0xFF6A, "@Then we must attack.@", 0x0003);
	labelFunc0496_0292:
		if(!(var0011 == 0x0004)) goto labelFunc0496_02D6;
		if(!(!gflags[00B4])) goto labelFunc0496_02BE;
		Func097F(0xFF6A, "@The storms grow worse.@", 0x0000);
		Func097F(var0010, "@Nothing we can do.@", 0x0003);
		goto labelFunc0496_02D6;
	labelFunc0496_02BE:
		Func097F(0xFF6A, "@Who is the thief?@", 0x0000);
		Func097F(var0010, "@Do not look at me!@", 0x0003);
	labelFunc0496_02D6:
		if(!(var0011 == 0x0005)) goto labelFunc0496_033A;
		if(!gflags[0044]) goto labelFunc0496_0301;
		Func097F(0xFF6A, "@Simon was the traitor!@", 0x0000);
		Func097F(var0010, "@I rejoice in his death...@", 0x0002);
		goto labelFunc0496_033A;
	labelFunc0496_0301:
		if(!gflags[0038]) goto labelFunc0496_0322;
		Func097F(0xFF6A, "@Execute Marsten!@", 0x0000);
		Func097F(var0010, "@We must consider...@", 0x0002);
		goto labelFunc0496_033A;
	labelFunc0496_0322:
		Func097F(0xFF6A, "@There is a traitor.@", 0x0000);
		Func097F(var0010, "@Difficult to believe.@", 0x0002);
	labelFunc0496_033A:
		if(!(var0011 == 0x0006)) goto labelFunc0496_0350;
		Func097F(0xFF6A, "@The Bears are wrong!@", 0x0000);
	labelFunc0496_0350:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFF6A) != 0x000F))) goto labelFunc0496_0414;
		if(!(gflags[003D] && (((UI_get_schedule_type_24(0xFF6A) == 0x000E) || (UI_get_schedule_type_24(0xFF6A) == 0x000A)) && (Func08F1() < 0x000F)))) goto labelFunc0496_03EC;
		0xFF6A;
		calle();
		0xFF6A;
		calle();
		UI_set_schedule_type_25(0xFF6A, 0x000F);
		Func097F(0xFF6A, "@At last!@", 0x0002);
		UI_play_music_39(0x001C, Func09A0(0x0005, 0x0001));
		UI_set_npc_id_BD(0xFF6A, 0x0000);
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		var0000 = UI_delayed_execute_usecode_array_02(0xFF6A, [0x23, 0x55, 0x0496], 0x000A);
		goto labelFunc0496_0414;
	labelFunc0496_03EC:
		Func097F(0xFE9C, "@Greetings, sir.@", 0x0000);
		0xFF6A;
		calle();
		Func097F(0xFF6A, "@Hello.@", 0x0002);
		UI_set_schedule_type_25(0xFF6A, 0x0003);
	labelFunc0496_0414:
		if(!(event == 0x0002)) goto labelFunc0496_0430;
		var0000 = UI_execute_usecode_array_01(0xFF6A, [0x23, 0x55, 0x0235]);
	labelFunc0496_0430:
		if(!(event == 0x0009)) goto labelFunc0496_0ED6;
		UI_run_schedule_B7(0xFF6A);
		UI_clear_item_say_4E(0xFF6A);
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		if(!(!UI_get_item_flag_A3(0xFF6A, 0x001C))) goto labelFunc0496_0489;
		if(!(gflags[0079] == false)) goto labelFunc0496_046D;
		UcMessage("\"I am Brendann, stranger.\"");
		UcSay;
		goto labelFunc0496_0471;
	labelFunc0496_046D:
		UcMessage("\"I am Brendann. I did meet thee at the Banquet Hall.\"");
		UcSay;
	labelFunc0496_0471:
		if(!UI_is_pc_female_6F()) goto labelFunc0496_047C;
		UcMessage("\"And thou art the most beautiful creature I have ever seen.\"");
		UcSay;
	labelFunc0496_047C:
		UI_set_item_flag_A4(0xFF6A, 0x001C);
		goto labelFunc0496_04B3;
	labelFunc0496_0489:
		UcMessage("\"So we meet again, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		if(!(gflags[003E] && (!gflags[003F]))) goto labelFunc0496_04B3;
		if(!UI_is_pc_female_6F()) goto labelFunc0496_04B3;
		UcMessage("\"And thy tattoo makes thee even more desirable than before, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		gflags[003F] = true;
	labelFunc0496_04B3:
		UI_add_answer_0C(["duties"]);
		if(!(gflags[0046] && (!gflags[002C]))) goto labelFunc0496_04CF;
		UI_add_answer_0C("Goblin raid");
	labelFunc0496_04CF:
		if(!gflags[003D]) goto labelFunc0496_04DC;
		UI_add_answer_0C("ready to spar");
	labelFunc0496_04DC:
		if(!(gflags[0048] && (!UI_get_item_flag_A3(0xFFB4, 0x0004)))) goto labelFunc0496_04F5;
		UI_add_answer_0C("traitor");
	labelFunc0496_04F5:
		if(!(gflags[0093] && (!gflags[0038]))) goto labelFunc0496_0507;
		UI_add_answer_0C("know traitor");
	labelFunc0496_0507:
		if(!(gflags[0099] && (!gflags[028D]))) goto labelFunc0496_0519;
		UI_add_answer_0C("stockings");
	labelFunc0496_0519:
		if(!gflags[0032]) goto labelFunc0496_0526;
		UI_add_answer_0C("Gwenno");
	labelFunc0496_0526:
		if(!gflags[0048]) goto labelFunc0496_0533;
		UI_add_answer_0C("Welcome to the Wolf Command");
	labelFunc0496_0533:
		if(!(gflags[0038] && (!gflags[0078]))) goto labelFunc0496_0545;
		UI_add_answer_0C("Iolo");
	labelFunc0496_0545:
		if(!(gflags[0045] && (UI_get_schedule_type_24(0xFFB4) != 0x000F))) goto labelFunc0496_055E;
		UI_add_answer_0C("brown bottle");
	labelFunc0496_055E:
		if(!gflags[002C]) goto labelFunc0496_056B;
		UI_add_answer_0C("Helm of Monitor");
	labelFunc0496_056B:
		UI_add_answer_0C("bye");
	labelFunc0496_0572:
		UcAsk;
		cmps("Helm of Monitor");
		UI_remove_answer_0D("Helm of Monitor");
		UcMessage("\"As thou hast won back the helm of Monitor, thou art truly deserved of the title Champion Knight of Monitor. I salute thee!\"");
		UcSay;
	labelFunc0496_0588:
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"Of what shall we speak?\"");
		UcSay;
	labelFunc0496_0598:
		cmps("brown bottle");
		UI_remove_answer_0D("brown bottle");
		UcMessage("\"What clear thinking, ");
		UcMessage(var0002);
		UcMessage("! Now I understand the wisdom of the Test of Knighthood, when it proclaimed thee a member of our Command.\"");
		UcSay;
		UcMessage("\"Surely this proves Krayg's innocence, for he is not a drinking man.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0009)) goto labelFunc0496_05D5;
		UcMessage("\"'Tis certainly a unique bottle, unlike common ale bottles.\"");
		UcSay;
		UcMessage("\"If I were thee, I would take this to Luther and confront him. I have always suspected him, and a drunkard like him might well drop a bottle in the woods!\"");
		UcSay;
		goto labelFunc0496_05D9;
	labelFunc0496_05D5:
		UcMessage("\"Perhaps someone could identify the bottle, if thou wert to show it around. Lucilla at the pub might recognize it.\"");
		UcSay;
	labelFunc0496_05D9:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"A fine looking woman, but I know nothing more of her. Simon would be the one to ask concerning information of the strangers passing through town.\"");
		UcSay;
	labelFunc0496_05EC:
		cmps("Welcome to the Wolf Command");
		UI_remove_answer_0D("Welcome to the Wolf Command");
		UcMessage("\"'Tis good to have thee as one of us, ");
		UcMessage(var0002);
		UcMessage(". Again, congratulations on receiving thy Knighthood.\"");
		UcSay;
	labelFunc0496_0605:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"I am the leader of the Command of the Wolf. Like all of the Wolves, I am a warrior of cunning as well as strength.\"");
		UcSay;
		if(!gflags[002C]) goto labelFunc0496_0625;
		UcMessage("\"Why, I daresay I may be the most capable knight in all of Monitor... Save for thee, Champion Knight. Now that thou hast undeniably won that honor, the ladies will certainly fawn on thee!\"");
		UcSay;
		goto labelFunc0496_062D;
	labelFunc0496_0625:
		UcMessage("\"When I recover the Helm of Monitor from the Goblins, then my prowess will be known to all, and I shall become the next Champion Knight of Monitor!\"");
		UcSay;
		UcMessage("\"Then glory will be mine. And the ladies will truly fawn on me!\"");
		UcSay;
	labelFunc0496_062D:
		if(!(!gflags[0048])) goto labelFunc0496_063C;
		UcMessage("\"But I should not be speaking with thee until thou dost become a Knight of Monitor. Speak with Marsten about that.\"");
		UcSay;
		abrt();
		goto labelFunc0496_064F;
	labelFunc0496_063C:
		UI_add_answer_0C(["Wolves", "cunning", "Champion Knight", "ladies"]);
	labelFunc0496_064F:
		cmps("Wolves");
		UcMessage("\"The Wolves are the most canny fighters in Monitor. We are quick, silent, and deadly. We are experts at tracking and hunting our prey, and when we attack -- nothing can withstand us. Someday all of Serpent Isle will belong to Monitor, and it will be because of the Command of the Wolf!\"");
		UcSay;
		UI_remove_answer_0D("Wolves");
		UI_add_answer_0C("Serpent Isle");
	labelFunc0496_0669:
		cmps("Serpent Isle");
		UI_remove_answer_0D("Serpent Isle");
		UI_push_answers_0E();
		UcMessage("\"I do not see why we stay down here in the south! Undoubtedly, the climate is warmer here, but the entire continent is ours for the taking! The Bears merely want to hide here and stagnate. And the Leopards have no ambition at all!\"");
		UcSay;
		UI_remove_answer_0D("Serpent Isle");
		UI_add_answer_0C(["Bears", "Leopards", "change subject"]);
	labelFunc0496_0697:
		cmps("Bears");
		UcMessage("\"I believe one of them is a traitor! Didst thou hear that their patrol was ambushed at Fawn Tower? Our beloved Champion Knight was slain by goblins in that battle.\"");
		UcSay;
		UcMessage("\"She may have been a Bear, but she was beautiful...\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0496_06B8;
		UcMessage("\"But, er, thou art even more beautiful, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc0496_06B8:
		UcMessage("\"The patrol was betrayed. And who could have known the plans? Why, another Bear, of course!\"");
		UcSay;
		UI_remove_answer_0D("Bears");
		if(!(!var0003)) goto labelFunc0496_06D1;
		UI_add_answer_0C("traitor");
	labelFunc0496_06D1:
		cmps("traitor");
		UI_remove_answer_0D("traitor");
		var0003 = true;
		if(!gflags[0048]) goto labelFunc0496_06EE;
		UcMessage("\"The charges against Krayg are odious. Simply because a man is different, doth not make him a criminal! He is not the traitor.\"");
		UcSay;
	labelFunc0496_06EE:
		if(!(gflags[00C0] && (!gflags[0045]))) goto labelFunc0496_0700;
		UcMessage("\"So Krayg hath told thee of a secret rendezvous site in the woods? By all means, investigate! Surely, thou wilt find evidence there to convict the traitor.\"");
		UcSay;
		goto labelFunc0496_0783;
	labelFunc0496_0700:
		if(!gflags[0038]) goto labelFunc0496_0717;
		UcMessage("\"I cannot still believe that Marsten would betray the entire city to the Goblins. Still, thine evidence is most convincing...\"");
		UcSay;
		if(!gflags[0092]) goto labelFunc0496_0714;
		UcMessage("\"And Marsten would surely need an accomplice to his evil deeds. It seems that is the role Spektor chose to play in this tragic little drama.\"");
		UcSay;
	labelFunc0496_0714:
		goto labelFunc0496_071F;
	labelFunc0496_0717:
		UcMessage("\"I would not be surprised to find that one of the Bears did play traitor to their own Command! Inspect closely the actions of Luther. He is not to be trusted. He is a braggart and a buffoon. He thinks he shall be the next Champion Knight. But he hath never beaten me!\"");
		UcSay;
		gflags[00AD] = true;
	labelFunc0496_071F:
		UI_add_answer_0C(["Luther", "List Field"]);
		if(!((!gflags[0038]) && (!gflags[0092]))) goto labelFunc0496_0783;
		if(!(UI_get_item_flag_A3(0xFFB8, 0x0004) || UI_get_item_flag_A3(Shmed, 0x0004))) goto labelFunc0496_0783;
		UI_push_answers_0E();
		if(!UI_get_item_flag_A3(0xFFB8, 0x0004)) goto labelFunc0496_0768;
		UI_add_answer_0C("Was Lydia the traitor?");
	labelFunc0496_0768:
		if(!UI_get_item_flag_A3(Shmed, 0x0004)) goto labelFunc0496_077C;
		UI_add_answer_0C("Was Shmed the traitor?");
	labelFunc0496_077C:
		UI_add_answer_0C("change subject");
	labelFunc0496_0783:
		cmps("Was Lydia the traitor?");
		UI_remove_answer_0D("Was Lydia the traitor?");
		UcMessage("\"I find it hard to believe that any member of my Command could be a traitor to Monitor.\"");
		UcSay;
		UcMessage("\"How could she betray the patrol? She was a tattoo artist, not a warrior...\"");
		UcSay;
		UcMessage("\"No, Luther is still the most likely suspect. Continue on thy quest to find the traitor, my friend. As thy commander, I order it.\"");
		UcSay;
	labelFunc0496_079E:
		cmps("Was Shmed the traitor?");
		UI_remove_answer_0D("Was Shmed the traitor?");
		UcMessage("\"I do not pretend to know what happened in the Knighthood Dungeon, but it sounds more like wizardry than Goblin mischief.\"");
		UcSay;
		UcMessage("\"Dost thou have enemies in the City of Mages, ");
		UcMessage(var0002);
		UcMessage("? Hast thou been to Moonshade?\"");
		UcSay;
		UcMessage("\"Lord Marsten may want us to believe that the traitor hath been caught, but I do not believe it.\"");
		UcSay;
		if(!(!UI_get_item_flag_A3(0xFFB8, 0x0004))) goto labelFunc0496_07D1;
		UcMessage("\"As a favor to me, please continue searching for the spy. Surely, conclusive evidence shall appear sooner or later...\"");
		UcSay;
	labelFunc0496_07D1:
		cmps("Luther");
		UI_remove_answer_0D("Luther");
		UcMessage("\"He may be a Bear, but he doth act like a pig! Ha!\"");
		UcSay;
	labelFunc0496_07E4:
		cmps("List Field");
		UcMessage("\"If thou dost feel like a skirmish, I shall be happy to meet thee there at the List Field. I often give lessons in combat, teaching how to strike quickly. I am there every day	at three o' clock. Thou dost look like thou art capable of a couple of rounds!\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0496_0803;
		UcMessage("\"And if thou dost meet me at my barracks at next midnight, I shall show thee another way to spar...\"");
		UcSay;
		UcMessage("\"My room is at the corner of Kosric Street and Roland Street, facing the List Field.\"");
		UcSay;
		gflags[003D] = true;
	labelFunc0496_0803:
		UI_remove_answer_0D(["List Field", "ready to spar"]);
	labelFunc0496_0810:
		cmps("Leopards");
		UcMessage("\"Oh, they are all right. At least they listen to us and try to see our point of view. It is time that we dispense with the notion of 'all-for-one and one-for-all' and adopt the concept of -- may the best Knight win!\"");
		UcSay;
		UI_remove_answer_0D("Leopards");
	labelFunc0496_0823:
		cmps("cunning");
		UI_remove_answer_0D("cunning");
		UcMessage("\"Stealth and cunning are primary attributes of a fighter. The Wolves are specialists in these regards. To be stalked and caught by a Wolf patrol would be a ghastly, but altogether honorable, death.\"");
		UcSay;
	labelFunc0496_0836:
		cmps("Champion Knight");
		if(!gflags[002C]) goto labelFunc0496_0859;
		UcMessage("\"And a fine champion thou dost make, as well. A true pride to the Wolf Command.\"");
		UcSay;
		if(!(gflags[0044] && gflags[00CC])) goto labelFunc0496_0856;
		UcMessage("\"Not only didst thou root out the imposter in our midst, but thou hast slain our longtime enemy Pomdirgun, the Goblin King. Thou shalt be the stuff of legend one day, surely! Thy place in the history of Monitor is assured.\"");
		UcSay;
	labelFunc0496_0856:
		goto labelFunc0496_0868;
	labelFunc0496_0859:
		UcMessage("\"Astrid was a brave woman. But the next Champion Knight shall be me.\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0496_0868;
		UcMessage("\"Unless, my dear, thou shalt claim the title thyself.\"");
		UcSay;
	labelFunc0496_0868:
		UI_remove_answer_0D("Champion Knight");
	labelFunc0496_086F:
		cmps("ladies");
		UI_remove_answer_0D("ladies");
		UI_push_answers_0E();
		if(!UI_is_pc_female_6F()) goto labelFunc0496_0898;
		UcMessage("\"None of the ladies in Monitor are as beautiful as thou! When I gaze upon thy lovely features, I no longer remember that I have had relations with nearly every woman in this town.\"");
		UcSay;
		UcMessage("\"What were their names? Lydia, Lucilla, Shazzana, Cellia... and dost thou not see the resemblance between myself and young Cantra? But I should not speak of this...\"");
		UcSay;
		UcMessage("\"Well, they mean nothing to me now that thou art in my life.\"");
		UcSay;
		goto labelFunc0496_08A0;
	labelFunc0496_0898:
		UcMessage("\"Ah, the ladies of Monitor. All are governed by their own particular passions.\"");
		UcSay;
		UcMessage("\"Lydia, Lucilla, Shazzana, Cellia, Harnna...\"");
		UcSay;
	labelFunc0496_08A0:
		UI_remove_answer_0D("ladies");
		UI_add_answer_0C(["Lydia", "Lucilla", "Shazzana", "Cellia", "Harnna", "change subject"]);
	labelFunc0496_08C0:
		cmps("Lydia");
		if(!var0004) goto labelFunc0496_08D5;
		UcMessage("\"Lydia was a strange woman, beautiful but dangerous.\"");
		UcSay;
		goto labelFunc0496_08D9;
	labelFunc0496_08D5:
		UcMessage("\"She is a spicy wench, that one! Hath quite a temper and is very opinionated.\"");
		UcSay;
	labelFunc0496_08D9:
		UcMessage("\"They say her sister was even more beautiful, but the sorcerers took her away to their city. 'Twould certainly be an experience to meet her, I am certain of that!\"");
		UcSay;
		UI_remove_answer_0D("Lydia");
	labelFunc0496_08E4:
		cmps("Lucilla");
		UcMessage("\"She is quite a flirt, that one. A true tease, if thou dost know what I mean. Quite good-looking, and fun, too.");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0496_08FC;
		UcMessage("\"Perhaps thou mayest enjoy her company?\"");
		UcSay;
	labelFunc0496_08FC:
		UcMessage("\"To tell the truth, I believe she must be interested in someone else. A secret, torrid affair, perhaps? Now, who could her lover be? I haven't a clue.\"");
		UcSay;
		UI_remove_answer_0D("Lucilla");
	labelFunc0496_0907:
		cmps("Shazzana");
		UcMessage("\"Now that Astrid is dead, Shazzana deeply desires to be the new Champion Knight of Monitor. This is not such a great revelation, of course. Any of us would gladly welcome such an honor.\"");
		UcSay;
		UI_remove_answer_0D("Shazzana");
	labelFunc0496_091A:
		cmps("Cellia");
		UcMessage("\"She is more quiet. Yet she is not unaffected by the often lonely life of a Monitor knight.\"");
		UcSay;
		if(!(!UI_is_pc_female_6F())) goto labelFunc0496_0932;
		UcMessage("\"Her skin is smooth and soft. Finer than any luxuriant mane or hide thou wilt find in her shop, I can assure thee... Harrumph, excuse me!\"");
		UcSay;
	labelFunc0496_0932:
		UI_remove_answer_0D("Cellia");
	labelFunc0496_0939:
		cmps("Harnna");
		UI_remove_answer_0D("Harnna");
		UcMessage("\"She is a widow now, and hath a fine daughter.\"");
		UcSay;
		UcMessage("\"These days, she keeps to herself and dabbles in magic, canst thou imagine? Hah!\"");
		UcSay;
		if(!gflags[0079]) goto labelFunc0496_095A;
		UcMessage("\"I hope Cantra can be found. The Goblins must have taken her -- they eat children, as thou knowest.\"");
		UcSay;
	labelFunc0496_095A:
		cmps("ready to spar");
		UI_remove_answer_0D("ready to spar");
		UcMessage("\"If thou dost mean what I think thou dost mean, please, meet me in my barracks tonight.\"");
		UcSay;
	labelFunc0496_096D:
		cmps("Goblin raid");
		UI_remove_answer_0D("Goblin raid");
		if(!gflags[002C]) goto labelFunc0496_0989;
		UcMessage("\"Thy raid of the Goblin camp and recovery of the Helm of Monitor will live in our history forever. Astrid is avenged!\"");
		UcSay;
		goto labelFunc0496_09B5;
	labelFunc0496_0989:
		UcMessage("\"Thou dost plan to raid the Goblin camp? I fear it may be too dangerous, ");
		UcMessage(var0001);
		UcMessage(". Best leave it to more experienced fighters.\"");
		UcSay;
		var0012 = Func0956(["I will go!", "I beg thy pardon!"]);
		UcMessage("\"Well, if that is the way thou dost feel... Go thou. Prove thyself worthy! Go on!\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0496_09B1;
		UcMessage("\"I shall miss thee if thou dost not return...\"");
		UcSay;
	labelFunc0496_09B1:
		UcMessage("\"Templar is the expert on the Goblins. Thou mightest consider seeking his advice, before risking thy life.\"");
		UcSay;
	labelFunc0496_09B5:
		cmps("know traitor");
		UI_remove_answer_0D("know traitor");
		UcMessage("\"Aha! I always knew that buffoon Luther was the criminal. Those Bears shall sing a different tune now!\"");
		UcSay;
		UcMessage("\"But dost thou have proof?\"");
		UcSay;
		var0010 = Func0992(Dupre, "@We found evidence among the Goblins. Documents signed by the traitor!@", "@I found evidence in the Goblin camp.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"May I see?\"");
		UcSay;
		if(!(Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99) || (Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99) || Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)))) goto labelFunc0496_0D76;
		if(!(((Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99) + Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99)) + Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)) > 0x0001)) goto labelFunc0496_0A74;
		var0010 = Func0992(Iolo, "@Here are the scrolls.@", "@Here are the scrolls.@", false);
		goto labelFunc0496_0A84;
	labelFunc0496_0A74:
		var0010 = Func0992(Iolo, "@Here it is.@", "@Here it is.@", false);
	labelFunc0496_0A84:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"But this is not what I expected...\"");
		UcSay;
		var0000 = 0x0000;
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x0078, 0xFE99)) goto labelFunc0496_0ABC;
		UcMessage("\"This is proof that Lord Marsten hath been conspiring with the Goblins! That old goat!\"");
		UcSay;
		UcMessage("\"He planned to destroy the Wolves! And the Bears! And to make himself King of the city!\"");
		UcSay;
		var0000 = 0x0001;
		gflags[0038] = true;
	labelFunc0496_0ABC:
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x0079, 0xFE99)) goto labelFunc0496_0AEB;
		UcMessage("\"Lord Marsten was the traitor, and that worm Spektor aided him! Death would be too kind for them!\"");
		UcSay;
		UcMessage("\"It seems that Marsten sought to spare Astrid's life, but he failed her even as he betrayed his manhood.\"");
		UcSay;
		var0000 = (var0000 + 0x0001);
		gflags[0038] = true;
		gflags[0092] = true;
	labelFunc0496_0AEB:
		if(!Func097D(0xFE9B, 0x0001, 0x031D, 0x007A, 0xFE99)) goto labelFunc0496_0B12;
		UcMessage("\"Marsten sought to betray Bull Tower! We must act quickly to warn the Tower.\"");
		UcSay;
		var0000 = (var0000 + 0x0001);
		gflags[0038] = true;
	labelFunc0496_0B12:
		if(!(var0000 == 0x0001)) goto labelFunc0496_0B23;
		UcMessage("\"I thank thee for showing me this document. Justice will be served. Thou mayest keep this document if thou wishest.\"");
		UcSay;
		goto labelFunc0496_0B31;
	labelFunc0496_0B23:
		if(!(var0000 > 0x0001)) goto labelFunc0496_0B31;
		UcMessage("\"I thank thee for showing me these documents. Justice will be served. Thou mayest keep these documents if thou wishest.\"");
		UcSay;
	labelFunc0496_0B31:
		if(!(gflags[0038] && (!UI_get_item_flag_A3(0xFFBB, 0x0004)))) goto labelFunc0496_0B7E;
		UI_move_object_4B(0xFFBB, [0x0446, 0x09C5, 0x0000]);
		UI_set_new_schedules_B6(0xFFBB, [0x0007, 0x0002], [0x000E, 0x0007], [0x0446, 0x09C5, 0x0446, 0x09C5]);
	labelFunc0496_0B7E:
		if(!(gflags[0092] && (!UI_get_item_flag_A3(0xFFB3, 0x0004)))) goto labelFunc0496_0BCB;
		UI_move_object_4B(0xFFB3, [0x0448, 0x09D6, 0x0000]);
		UI_set_new_schedules_B6(0xFFB3, [0x0007, 0x0002], [0x000E, 0x0007], [0x0448, 0x09D6, 0x0448, 0x09D6]);
	labelFunc0496_0BCB:
		UI_set_new_schedules_B6(0xFFC1, [0x0000, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x001B, 0x0007, 0x001B, 0x0010, 0x001A], [0x03B1, 0x0A49, 0x03D7, 0x0A8A, 0x03CE, 0x09FF, 0x039B, 0x0A76, 0x03B2, 0x0A05, 0x041C, 0x0A57]);
		var0013 = 0x0003;
	labelFunc0496_0C29:
		if(!(var0013 > 0x0000)) goto labelFunc0496_0CC3;
		var0014 = UI_get_object_position_20(0xFE9C);
		var0014[0x0001] = ((var0014[0x0001] + 0x0014) - (UI_die_roll_17(0x0000, 0x0001) * 0x0028));
		var0014[0x0002] = ((var0014[0x0002] + 0x0014) - (UI_die_roll_17(0x0000, 0x0001) * 0x0028));
		var0015 = UI_create_new_object2_2D(0x00E4, var0014);
		var0016 = UI_approach_avatar_BF(var0015, 0x0032, 0x0028);
		if(!var0016) goto labelFunc0496_0CAF;
		UI_set_item_flag_A4(var0015, 0x0012);
		var0017 = true;
		goto labelFunc0496_0CB6;
	labelFunc0496_0CAF:
		UI_remove_item_84(var0015);
	labelFunc0496_0CB6:
		var0013 = (var0013 - 0x0001);
		goto labelFunc0496_0C29;
	labelFunc0496_0CC3:
		var0018 = UI_find_nearby_41(0xFF6A, 0x00E4, 0x001E, 0x0000);
		if(!var0018) goto labelFunc0496_0CFF;
		enum();
	labelFunc0496_0CDD:
		for (var001B in var0018 with var0019 to var001A atend labelFunc0496_0CFF);
		UI_set_schedule_type_25(var001B, 0x0003);
		UI_set_npc_id_BD(var001B, 0x0006);
		goto labelFunc0496_0CDD;
	labelFunc0496_0CFF:
		if(!var0017) goto labelFunc0496_0D3F;
		if(!gflags[0092]) goto labelFunc0496_0D12;
		UcMessage("\"Do not worry -- we shall arrest these vermin!\"");
		UcSay;
		goto labelFunc0496_0D16;
	labelFunc0496_0D12:
		UcMessage("\"Do not worry -- I shall personally see that Marsten is hunted down like the dog he is.\"");
		UcSay;
	labelFunc0496_0D16:
		Func097F(0xFF6A, "@Pikemen!@", 0x0000);
		UI_set_schedule_type_25(0xFF6A, 0x000A);
		Func097F(var0018[0x0001], "@Yes, lord!@", 0x0002);
		abrt();
		goto labelFunc0496_0D73;
	labelFunc0496_0D3F:
		if(!gflags[0092]) goto labelFunc0496_0D52;
		UcMessage("\"Do not worry, ");
		UcMessage(var0002);
		UcMessage("! I shall order the Pikemen to place the traitors under arrest!\"");
		UcSay;
		goto labelFunc0496_0D5C;
	labelFunc0496_0D52:
		UcMessage("\"Do not worry, ");
		UcMessage(var0002);
		UcMessage("! I shall order the Pikemen to place the traitor under arrest!\"");
		UcSay;
	labelFunc0496_0D5C:
		Func097F(0xFF6A, "@Pikemen!@", 0x0000);
		UI_set_schedule_type_25(0xFF6A, 0x0014);
		abrt();
	labelFunc0496_0D73:
		goto labelFunc0496_0D9E;
	labelFunc0496_0D76:
		var0010 = Func0992(Shamino, "@We did not bring it with us.@", "@I did not bring it.@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Until thou dost bring proof, no one will believe us...\"");
		UcSay;
		Func097F(0xFF6A, "@Bring proof!@", 0x0000);
		abrt();
	labelFunc0496_0D9E:
		cmps("stockings");
		UI_remove_answer_0D("stockings");
		UcMessage("\"Ha! I surmise thou hast heard of my reputation as something of a womanizer. Purely undeserved, I assure thee. I will try to answer thy questions.\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0000)) goto labelFunc0496_0DCD;
		UcMessage("\"A female mage would wear stockings such as the ones thou didst discover amongst thy possessions.\"");
		UcSay;
		goto labelFunc0496_0DD1;
	labelFunc0496_0DCD:
		UcMessage("\"Thou must have the stockings that thou didst discover amongst thy possessions? If thou dost not have them, I cannot tell thee anything about them.\"");
		UcSay;
	labelFunc0496_0DD1:
		if(!Func097D(0xFE9B, 0x0001, 0x02A5, 0xFE99, 0x0001)) goto labelFunc0496_0DEA;
		UcMessage("\"The stockings that thou didst take from Shmed were made in the city of Fawn.\"");
		UcSay;
	labelFunc0496_0DEA:
		cmps("Iolo");
		UI_remove_answer_0D("Iolo");
		if(!(gflags[00C4] == false)) goto labelFunc0496_0E3A;
		UcMessage("\"If thou wilt vouch for thy friend's future behavior, then I shall let him go free.\"");
		UcSay;
		if(!Func0955()) goto labelFunc0496_0E33;
		UcMessage("\"Very well. Keep thine eye on him. We do not want people popping in and out of our city as he did!\"");
		UcSay;
		UcMessage("\"Here is the key to thy friend's jail cell. Set him free.\"");
		UcSay;
		var0000 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0068, 0x0005, 0x0000, true);
		gflags[00C4] = true;
		goto labelFunc0496_0E37;
	labelFunc0496_0E33:
		UcMessage("\"Then he must remain in his cell.\"");
		UcSay;
	labelFunc0496_0E37:
		goto labelFunc0496_0E84;
	labelFunc0496_0E3A:
		if(!Func097D(0xFE9B, 0x0001, 0x0281, 0x0068, 0x0005)) goto labelFunc0496_0E56;
		UcMessage("\"I did already give thee the key to thy friend's cell!\"");
		UcSay;
		goto labelFunc0496_0E84;
	labelFunc0496_0E56:
		UcMessage("\"Didst thou lose the key I did give thee?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0496_0E80;
		UcMessage("\"Very well. Here then, take this copy. And do not lose this one!\"");
		UcSay;
		var0000 = Func099B(0xFE9C, 0x0001, 0x0281, 0x0068, 0x0005, 0x0000, true);
		goto labelFunc0496_0E84;
	labelFunc0496_0E80:
		UcMessage("\"Good. I would hate for thee to have lost it...\"");
		UcSay;
	labelFunc0496_0E84:
		cmps("bye");
		Func097F(0xFE9C, "@Goodbye@", 0x0000);
		if(!UI_is_pc_female_6F()) goto labelFunc0496_0EC3;
		if(!gflags[003D]) goto labelFunc0496_0EB4;
		Func097F(0xFF6A, "@Until tonight!@", 0x0002);
		goto labelFunc0496_0EC0;
	labelFunc0496_0EB4:
		Func097F(0xFF6A, "@Nice legs...@", 0x0002);
	labelFunc0496_0EC0:
		goto labelFunc0496_0ECF;
	labelFunc0496_0EC3:
		Func097F(0xFF6A, "@Be cunning!@", 0x0002);
	labelFunc0496_0ECF:
		goto labelFunc0496_0ED5;
	labelFunc0496_0ED2:
		goto labelFunc0496_0572;
	labelFunc0496_0ED5:
		end_conv();
	labelFunc0496_0ED6:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0498 0x498 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0954();
	var0001 = Func0953();
	if(!(event == 0x0001)) goto labelFunc0498_004F;
	UI_item_say_4D(0xFE9C, "@Greetings, friend!@");
	0xFF68;
	calle();
	if(!gflags[0279]) goto labelFunc0498_0039;
	Func097F(0xFF68, "@I know thee...@", 0x0002);
	goto labelFunc0498_0045;
	labelFunc0498_0039:
		Func097F(0xFF68, "@Don't hurt me!@", 0x0002);
	labelFunc0498_0045:
		UI_set_schedule_type_25(0xFF68, 0x0003);
	labelFunc0498_004F:
		if(!(event == 0x0009)) goto labelFunc0498_03A0;
		UI_clear_item_say_4E(0xFF68);
		UI_show_npc_face0_05(0xFF68, 0x0000);
		if(!UI_get_item_flag_A3(0xFF68, 0x0006)) goto labelFunc0498_0090;
		UcMessage("\"We must hasten to the Serpent Gate!\"");
		UcSay;
		UI_set_schedule_type_25(0xFF68, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0498_00F0;
		goto labelFunc0498_0097;
	labelFunc0498_0090:
		UI_run_schedule_B7(0xFF68);
	labelFunc0498_0097:
		var0002 = UI_get_item_flag_A3(0xFF68, 0x001C);
		if(!gflags[0279]) goto labelFunc0498_00BE;
		UcMessage("\"Thou art late! I have been waiting for thee for a very long time...\"");
		UcSay;
		UI_add_answer_0C(["waiting", "long time"]);
		goto labelFunc0498_00F0;
	labelFunc0498_00BE:
		if(!UI_get_item_flag_A3(0xFF68, 0x001C)) goto labelFunc0498_00D2;
		UcMessage("\"Thou art returned! What tortures hast thou devised for me, Order dog?\"");
		UcSay;
		goto labelFunc0498_00E0;
	labelFunc0498_00D2:
		UcMessage("\"I knew that thou wouldst come for me, Order dog! Thou canst take my life, but the key is gone! Gone!\" *\"Sethys shall not fail the Chaos Hierophant!\"");
		UcSay;
		UI_set_item_flag_A4(0xFF68, 0x001C);
	labelFunc0498_00E0:
		UI_add_answer_0C(["Order dog", "key", "Chaos Hierophant"]);
	labelFunc0498_00F0:
		UI_add_answer_0C("bye");
	labelFunc0498_00F7:
		UcAsk;
		cmps("Order dog");
		UcMessage("\"Thou canst not be satisfied with winning the war! No, thou must slaughter all who dared to believe in something other than what thou dost hold dear!\" *\"Fine warriors who kill cripples and children!\"");
		UcSay;
		UI_remove_answer_0D("Order dog");
		UI_add_answer_0C(["winning the war", "cripples and children"]);
	labelFunc0498_011A:
		cmps("winning the war");
		UcMessage("\"Thy kind hath destroyed the Balance... All power now rests with the Order villains!\"");
		UcSay;
		UcMessage("\"The Temples have been desecrated, and the altars have been thrown down...\"");
		UcSay;
		UcMessage("\"See how thou wilt use it... To slay an unarmed man!\"");
		UcSay;
		UI_remove_answer_0D("winning the war");
		UI_add_answer_0C(["destroyed the Balance", "desecrated"]);
	labelFunc0498_0142:
		cmps("desecrated");
		UI_remove_answer_0D("desecrated");
		UcMessage("\"Do not deny it, fiend! I know how thy mind works. Even now, thou doth lust to topple the altar of this temple.\"");
		UcSay;
		UcMessage("\"But I shall not tell thee where it lies! I shall not aid thee in stopping the glorious waters which flow from it, nor shall I aid thee in placing the sacred containers upon it...\"");
		UcSay;
	labelFunc0498_0159:
		cmps("destroyed the Balance");
		UI_remove_answer_0D("destroyed the Balance");
		UcMessage("\"I'm certain it was thy pack of jackals that killed the Great Hierophant! Without Ssithnos' guidance, we are lost... Even thee, dog!\"");
		UcSay;
	labelFunc0498_016C:
		cmps("cripples and children");
		UcMessage("\"I was at the Temple of Enthusiasm as thy forces marched on it! I saw the children fall to thy soldiers' blades!\" *\"And now that thou art here -- where all are misfits and crippled... I'm certain thou wilt slay us with as little regard!\"");
		UcSay;
		UI_remove_answer_0D("cripples and children");
	labelFunc0498_017F:
		cmps("key");
		UI_remove_answer_0D("key");
		UcMessage("\"Thou knowest of the key? The Chaos Hierophant sent thee!\" *\"Alas, I have failed my duty... The key that I was to guard and hide is gone!\"");
		UcSay;
		UI_add_answer_0C(["hide and guard", "gone"]);
	labelFunc0498_019F:
		cmps("hide and guard");
		UcMessage("\"Our Master gave me the key as the Order soldiers came. He bade me guard the key with my life, and hide it from their filthy grasp.\" *\"I have not seen our Master since... And thus far I have eluded the Order scum.\"");
		UcSay;
		UI_remove_answer_0D("hide and guard");
	labelFunc0498_01B2:
		cmps("gone");
		UI_remove_answer_0D("gone");
		UcMessage("\"Now my soul will never enter the Void! Long ago, or so it seems to me, a vicious rat came and gnashed its long teeth at me.\" *\"I dropped the key as I tried to fend the beast off. The rat, seeing a shiny treasure, took the key and fled!\"");
		UcSay;
		UI_add_answer_0C(["Void", "fled"]);
	labelFunc0498_01D2:
		cmps("Void");
		UI_remove_answer_0D("Void");
		UcMessage("\"It is the goal of the devout to live pure lives, so that we can ascend to the Void and merge with the Greater One.\"");
		UcSay;
		UcMessage("\"But I stand condemned, for the key is lost!\"");
		UcSay;
	labelFunc0498_01E9:
		cmps("fled");
		UcMessage("\"Down that small tunnel in the wall...\" *\"I have tried to enlarge the hole so that I might retrieve the key... But I have nothing as strong and sharp as a rat's teeth.\" *\"Oh, I am doomed!\"");
		UcSay;
		Func097F(0xFF68, "@Doomed!@", 0x0000);
		UI_set_schedule_type_25(0xFF68, 0x0014);
		abrt();
	labelFunc0498_020C:
		cmps("Chaos Hierophant");
		UI_remove_answer_0D("Chaos Hierophant");
		UcMessage("\"The Chaos Hierophant charged me with an important task... Who would have ever thought that I would be found worthy?\"");
		UcSay;
		UI_add_answer_0C(["worthy", "task"]);
	labelFunc0498_022C:
		cmps("worthy");
		UI_remove_answer_0D("worthy");
		UcMessage("\"I must confess that in mine humility, it never occurred to me that the Hierophant even knew my name!\"");
		UcSay;
		UcMessage("\"And then, in the hour of need, he selected me! Such an honor!\"");
		UcSay;
	labelFunc0498_0243:
		cmps("task");
		UI_remove_answer_0D("task");
		UcMessage("\"I shall not tell thee... At last, I, Sethys, have something important, something of value.\" *\"I have a secret!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["share it with me", "don't care"]);
	labelFunc0498_0267:
		cmps("share it with me");
		UcMessage("\"A secret! A secret! I have a secret! And I won't tell!\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0498_0277:
		cmps("don't care");
		UcMessage("\"Ah, but I can tell that thou dost want mine hidden knowledge. It will do thee no good! I shall keep my secret.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0498_0287:
		cmps("waiting");
		UI_remove_answer_0D("waiting");
		UcMessage("\"How canst thou have forgotten? It is time for us to bring the key to the Master.\"");
		UcSay;
		UcMessage("\"Sadly, I have lost the key, so I shall have to beg for forgiveness...\"");
		UcSay;
		UI_add_answer_0C("Master");
	labelFunc0498_02A5:
		cmps("long time");
		UI_remove_answer_0D("long time");
		UcMessage("\"Why, I have been in this place for... centuries, it doth seem. The aura of this place must have preserved me to fulfill my duty.\"");
		UcSay;
	labelFunc0498_02B8:
		cmps("Master");
		UcMessage("\"Only I know where our Master lies, dear friend, for I am the sole survivor of that horrible battle. I could show thee the place, but I am loathe to leave the Temple... I have been here so long.\"");
		UcSay;
		UI_remove_answer_0D("Master");
		UI_push_answers_0E();
		UI_add_answer_0C(["show me", "never mind"]);
	labelFunc0498_02DC:
		cmps("never mind");
		UI_remove_answer_0D("never mind");
		UcMessage("\"I am so relieved! There is so much to be done here.\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0498_02F3:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UcMessage("\"Oh, but I cannot leave thee now! I have pledged to show thee the resting place of the Hierophant, and I shall not disappoint thee.\"");
		UcSay;
	labelFunc0498_0306:
		cmps("show me");
		UI_remove_answer_0D("show me");
		UcMessage("\"I should remain here. This place must be cleaned before the Master of Tolerance returns... Look at what those filthy Order monsters did to our home!\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc0498_0347;
		UcMessage("\"But I would like to return the key to the Chaos Hierophant. Perhaps it would not hurt to go to the Temple of Enthusiasm, briefly.\"");
		UcSay;
		UcMessage("\"Very well! I shall join with thee.\"");
		UcSay;
		UI_add_to_party_26(0xFF68);
		Func097F(0xFF68, "@Onward!@", 0x0000);
		abrt();
		goto labelFunc0498_034F;
	labelFunc0498_0347:
		UcMessage("\"Ah, but thou hast so many companions! Surely I would only be a nuisance to thee...\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc0498_034F:
		cmps("bye");
		UI_remove_npc_face0_07();
		if(!UI_get_item_flag_A3(0xFF68, 0x0006)) goto labelFunc0498_0383;
		Func097F(0xFE9C, "@Thank thee!@", 0x0000);
		Func097F(0xFF68, "@Hasten!@", 0x0002);
		goto labelFunc0498_039B;
	labelFunc0498_0383:
		Func097F(0xFE9C, "@Farewell, ancient!@", 0x0000);
		Func097F(0xFF68, "@Go in Chaos!@", 0x0002);
	labelFunc0498_039B:
		abrt();
	labelFunc0498_039C:
		goto labelFunc0498_00F7;
	labelFunc0498_039F:
		end_conv();
	labelFunc0498_03A0:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0499 0x499 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0499_002E;
	UI_item_say_4D(0xFE9C, "@Hail, Gwani hunter!@");
	0xFF67;
	calle();
	Func097F(0xFF67, "@Noo Koomba!@", 0x0003);
	UI_set_schedule_type_25(0xFF67, 0x0003);
	labelFunc0499_002E:
		if(!(event == 0x0009)) goto labelFunc0499_0158;
		UI_set_new_schedules_B6(0xFF67, [0x0000, 0x0003, 0x0004], [0x000E, 0x0005, 0x000C], [0x03A6, 0x035F, 0x03A6, 0x035F, 0x03A6, 0x035F]);
		UI_run_schedule_B7(0xFF67);
		UI_clear_item_say_4E(0xFF67);
		UI_show_npc_face0_05(0xFF67, 0x0000);
		var0000 = UI_get_item_flag_A3(0xFF67, 0x001C);
		if(!var0000) goto labelFunc0499_009C;
		UcMessage("\"Greetings again.\"");
		UcSay;
		goto labelFunc0499_00A0;
	labelFunc0499_009C:
		UcMessage("\"Beware claws of Ice Dragon!\"");
		UcSay;
	labelFunc0499_00A0:
		UI_add_answer_0C(["name", "Ice Dragon", "bye"]);
	labelFunc0499_00B0:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		if(!var0000) goto labelFunc0499_00CF;
		UcMessage("\"Am still Gilwoyai.\"");
		UcSay;
		goto labelFunc0499_00DD;
	labelFunc0499_00CF:
		UcMessage("\"Am Gilwoyai, means @Of the Wind@.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF67, 0x001C);
	labelFunc0499_00DD:
		cmps("Ice Dragon");
		UI_remove_answer_0D("Ice Dragon");
		UcMessage("\"We tried to kill Ice Dragon, to bring its blood and cure Neyobi. We failed. It hit with claws, I smash into cave wall. I need Baiyanda to heal.\"");
		UcSay;
		UI_add_answer_0C(["claws", "cave"]);
	labelFunc0499_00FD:
		cmps("claws");
		UI_remove_answer_0D("claws");
		UcMessage("\"Vicious beast! This Ice Dragon is mother protecting its babies.\"");
		UcSay;
	labelFunc0499_0110:
		cmps("cave");
		UI_remove_answer_0D("cave");
		UcMessage("\"To find Ice Dragon lair walk north. Take ice raft to cross channel. Beware front opening!\"");
		UcSay;
	labelFunc0499_0123:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		UI_set_schedule_type_25(item, 0x0014);
		Func097F(0xFE9C, "@Go home now!@", 0x0000);
		Func097F(0xFF67, "@Kill Ice Dragon!@", 0x0003);
		abrt();
	labelFunc0499_0154:
		goto labelFunc0499_00B0;
	labelFunc0499_0157:
		end_conv();
	labelFunc0499_0158:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func049A 0x49A (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc049A_0028;
	UI_item_say_4D(0xFE9C, "@Hail, Gwani!@");
	Func097F(0xFF66, "@Noocha Ta, Avatar!@", 0x0003);
	UI_set_schedule_type_25(0xFF66, 0x0003);
	labelFunc049A_0028:
		if(!(event == 0x0009)) goto labelFunc049A_013F;
		UI_run_schedule_B7(0xFF66);
		UI_clear_item_say_4E(0xFF66);
		UI_show_npc_face0_05(0xFF66, 0x0000);
		var0000 = UI_get_item_flag_A3(0xFF66, 0x001C);
		if(!var0000) goto labelFunc049A_0062;
		UcMessage("\"Greetings, great hunter.\"");
		UcSay;
		goto labelFunc049A_0066;
	labelFunc049A_0062:
		UcMessage("\"Our hunt bad.\"");
		UcSay;
	labelFunc049A_0066:
		UI_add_answer_0C(["name", "hunt", "bye"]);
	labelFunc049A_0076:
		UcAsk;
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"Me Kapyundi, mean @little glacier@. Me son of Yenani and Myauri.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF66, 0x001C);
	labelFunc049A_0096:
		cmps("hunt");
		UI_remove_answer_0D("hunt");
		UcMessage("\"We try to kill Ice Dragon, use blood to save Neyobi. But lair of Ice Dragon is certain death.\"");
		UcSay;
		UI_add_answer_0C(["Ice Dragon lair", "certain death"]);
	labelFunc049A_00B6:
		cmps("Ice Dragon lair");
		UI_remove_answer_0D("Ice Dragon lair");
		UcMessage("\"Front entrance is too much danger! Must be other entrance!\"");
		UcSay;
	labelFunc049A_00C9:
		cmps("certain death");
		UI_remove_answer_0D("certain death");
		UcMessage("\"Three of us died in Ice Dragon lair. We two injured. Must return to village in shame.\"");
		UcSay;
		UI_add_answer_0C("three died");
	labelFunc049A_00E3:
		cmps("three died");
		UI_remove_answer_0D("three died");
		UcMessage("\"We fought by three Gwani hunters who died in Ice Dragon lair. Dragon eat them. Now we never able to take their bodies to Gwani death temple.\"");
		UcSay;
		UI_add_answer_0C("Gwani death temple");
	labelFunc049A_00FD:
		cmps("Gwani death temple");
		UcMessage("\"I do not know where temple. Gwani place of death to west of Ice Dragon's lair. Temple is there somewhere.\"");
		UcSay;
		UI_remove_answer_0D("Gwani death temple");
	labelFunc049A_0110:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Safe journey to thee.@", 0x0000);
		Func097F(0xFF66, "@Good luck.@", 0x0003);
		goto labelFunc049A_013E;
	labelFunc049A_013B:
		goto labelFunc049A_0076;
	labelFunc049A_013E:
		end_conv();
	labelFunc049A_013F:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0942 0x942 (var var0000);
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func049B 0x49B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = Func0942(0xFF64);
	if(!(event == 0x0002)) goto labelFunc049B_00AC;
	if(!((Func0994() != 0x0007) || (UI_get_item_flag_A3(0xFF65, 0x0004) || (UI_get_item_flag_A3(0xFF64, 0x0004) || (!gflags[02BE]))))) goto labelFunc049B_0043;
	abrt();
	labelFunc049B_0043:
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x049B], (0x0014 + UI_get_random_00(0x0032)));
		if(!(UI_npc_nearby_3A(0xFF62) || (UI_npc_nearby_3A(0xFF64) || (UI_npc_nearby_3A(0xFF63) || UI_npc_nearby_3A(0xFF61))))) goto labelFunc049B_008B;
		abrt();
	labelFunc049B_008B:
		var0003 = UI_approach_avatar_BF(0xFF65, 0x0078, 0x0028);
		if(!var0003) goto labelFunc049B_00AB;
		UI_set_schedule_type_25(0xFF65, 0x0003);
	labelFunc049B_00AB:
		abrt();
	labelFunc049B_00AC:
		if(!(event == 0x0001)) goto labelFunc049B_00DA;
		UI_item_say_4D(0xFE9C, "@Hello.@");
		0xFF65;
		calle();
		Func097F(0xFF65, "@Speaking to me?@", 0x0002);
		UI_set_schedule_type_25(0xFF65, 0x0003);
	labelFunc049B_00DA:
		if(!(event == 0x0009)) goto labelFunc049B_062A;
		UI_run_schedule_B7(0xFF65);
		UI_show_npc_face0_05(0xFF65, 0x0000);
		UI_set_item_flag_A4(0xFF65, 0x001C);
		UI_clear_item_say_4E(0xFF65);
		if(!var0002) goto labelFunc049B_017F;
		UcMessage("\"My name is Beryl. I need thine help, but I cannot speak now...\"");
		UcSay;
		UI_show_npc_face1_06(0xFF64, 0x0000);
		UcMessage("\"What art thou saying to that stranger, Beryl?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		if(!gflags[02BD]) goto labelFunc049B_0144;
		UcMessage("\"I shall meet thee as before. Now, go...\"");
		UcSay;
		Func097F(0xFF65, "@Nothing, Draygan...@", 0x0000);
		gflags[02BE] = true;
		goto labelFunc049B_0154;
	labelFunc049B_0144:
		UcMessage("\"Nothing, Lord Draygan.\"");
		UcSay;
		Func097F(0xFF65, "@Nothing.@", 0x0000);
	labelFunc049B_0154:
		UI_set_schedule_type_25(0xFF64, 0x0009);
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x049B], 0x0032);
		abrt();
		goto labelFunc049B_0411;
	labelFunc049B_017F:
		if(!UI_get_item_flag_A3(0xFF64, 0x0004)) goto labelFunc049B_02A8;
		if(!UI_get_item_flag_A3(0xFF65, 0x001E)) goto labelFunc049B_01B3;
		UcMessage("\"I am content now, ");
		UcMessage(var0001);
		UcMessage(". There is such a peacefulness in my life, now that Morghrim doth care for me.\"");
		UcSay;
		Func097F(0xFF65, "@Good fortune!@", 0x0000);
		abrt();
		goto labelFunc049B_02A5;
	labelFunc049B_01B3:
		UI_set_item_flag_A4(0xFF65, 0x001E);
		UcMessage("\"I am so glad that the tyrant is dead! Thanks to thee, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Do not fear for me -- I can care for myself, now that Draygan cannot use his magical secrets to control me.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFF61)) goto labelFunc049B_0249;
		UI_show_npc_face1_06(0xFF61, 0x0000);
		UcMessage("\"Thou canst come and stay with me, woman, until thou art ready to return to thy kind. My camp is clean, and the forest animals enjoy thy company.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I shall accept thy kind offer, Forest Master.\"");
		UcSay;
		Func097F(0xFF61, "@Stay with me.@", 0x0000);
		Func097F(0xFF65, "@I shall.@", 0x0005);
		UI_set_new_schedules_B6(0xFF65, [0x0000, 0x0002, 0x0006], [0x000E, 0x0007, 0x000C], [0x02B1, 0x0676, 0x02B9, 0x0686, 0x02C1, 0x06AD]);
		UI_run_schedule_B7(0xFF65);
		abrt();
		goto labelFunc049B_02A5;
	labelFunc049B_0249:
		UcMessage("\"I shall go to the Forest Master and beg for a place by his side. He is old, and doth need a help from time to time.\"");
		UcSay;
		UcMessage("\"Thank thee Avatar for thine help. Thou hast given me back my life.\"");
		UcSay;
		Func097F(0xFF65, "@Fear not for me!@", 0x0000);
		Func097F(0xFE9C, "@Live long and prosper!@", 0x0000);
		UI_set_new_schedules_B6(0xFF65, [0x0000, 0x0002, 0x0006], [0x000E, 0x0007, 0x000C], [0x02B1, 0x0676, 0x02B9, 0x0686, 0x02C1, 0x06AD]);
		UI_run_schedule_B7(0xFF65);
		abrt();
	labelFunc049B_02A5:
		goto labelFunc049B_0411;
	labelFunc049B_02A8:
		if(!(gflags[02BF] && (!UI_get_item_flag_A3(0xFF64, 0x0004)))) goto labelFunc049B_02CF;
		UcMessage("\"Why dost thou wait? Use the arrow! Use it to strike down the tyrant Draygan!\"");
		UcSay;
		UcMessage("\"Then we shall find the secret of his power, and he shall not stop me from obtaining my freedom.\"");
		UcSay;
		Func097F(0xFF65, "@Use the arrow!@", 0x0000);
		abrt();
	labelFunc049B_02CF:
		if(!(gflags[02C0] && (!UI_get_item_flag_A3(0xFF64, 0x0004)))) goto labelFunc049B_0341;
		UcMessage("\"Tell me -- hast thou prepared the arrow? To defeat the tyrant Draygan?\"");
		UcSay;
		if(!Func0955()) goto labelFunc049B_0330;
		if(!Func097D(0xFE9B, 0x0001, 0x0238, 0xFE99, 0xFE99)) goto labelFunc049B_031C;
		gflags[02BF] = true;
		UcMessage("\"Then use it! Use it to numb the tyrant Draygan!\"");
		UcSay;
		UcMessage("\"Then we shall find the secret of his power, and prevent him from stopping mine escape.\"");
		UcSay;
		Func097F(0xFF65, "@Use the arrow!@", 0x0000);
		abrt();
		goto labelFunc049B_032D;
	labelFunc049B_031C:
		UcMessage("\"Do not thou give me false hopes, stranger! I see no arrow...\"");
		UcSay;
		Func097F(0xFF65, "@Bring the arrow...@", 0x0000);
		abrt();
	labelFunc049B_032D:
		goto labelFunc049B_0341;
	labelFunc049B_0330:
		UcMessage("\"Thou must treat an arrow with the juices from the King's Savior plant.\"");
		UcSay;
		Func097F(0xFF65, "@Prepare the arrow!@", 0x0000);
		abrt();
	labelFunc049B_0341:
		if(!gflags[02B9]) goto labelFunc049B_03F4;
		UcMessage("\"Tell me -- hast thou obtained the plant which I told thee of? The King's Savior?\"");
		UcSay;
		if(!Func0955()) goto labelFunc049B_03DD;
		if(!(Func097D(0xFE9B, 0x0001, 0x01D3, 0xFE99, 0x0000) || Func097D(0xFE9B, 0x0001, 0x01D3, 0xFE99, 0x0001))) goto labelFunc049B_0391;
		gflags[02C0] = true;
		UcMessage("\"Very good. Now, thou must treat an arrow with the juices from the King's Savior plant. I have hidden some arrows away in my quarters. If thou dost need one, get one there.\"");
		UcSay;
		Func097F(0xFF65, "@Prepare the arrow!@", 0x0000);
		abrt();
		goto labelFunc049B_03DA;
	labelFunc049B_0391:
		if(!Func097D(0xFE9B, 0x0001, 0x0238, 0xFE99, 0xFE99)) goto labelFunc049B_03C2;
		gflags[02BF] = true;
		UcMessage("\"And thou hast enchanted the arrow? Then use it -- use it to numb the tyrant Draygan!\"");
		UcSay;
		UcMessage("\"Then we shall find the secret of his power, and prevent him from stopping mine escape!\"");
		UcSay;
		Func097F(0xFF65, "@Use the arrow!@", 0x0000);
		abrt();
		goto labelFunc049B_03DA;
	labelFunc049B_03C2:
		UcMessage("\"Do not give me false hopes, stranger! I see no King's Savior.\"");
		UcSay;
		UcMessage("\"I fear Draygan more each day...\"");
		UcSay;
		UI_add_answer_0C(["afraid", "Draygan", "King's Savior"]);
	labelFunc049B_03DA:
		goto labelFunc049B_03F1;
	labelFunc049B_03DD:
		UcMessage("\"Then I despair! For without this herb, Draygan cannot be stopped. I am so afraid...\"");
		UcSay;
		UI_add_answer_0C(["afraid", "Draygan", "King's Savior"]);
	labelFunc049B_03F1:
		goto labelFunc049B_0411;
	labelFunc049B_03F4:
		gflags[02BD] = true;
		gflags[02BE] = false;
		UcMessage("\"My name is Beryl. I am so glad that thou hast met me privately. We cannot speak for long, lest Draygan or his minions find us.\"");
		UcSay;
		UcMessage("\"I live in fear of Draygan and his terrible power.\"");
		UcSay;
		UI_add_answer_0C(["afraid", "Draygan"]);
	labelFunc049B_0411:
		UI_add_answer_0C(["bye"]);
	labelFunc049B_041B:
		UcAsk;
		cmps("afraid");
		UI_remove_answer_0D("afraid");
		UcMessage("\"Of the two-score settlers who came to this place led by Draygan, only three of us survive! And the other two work for him!\"");
		UcSay;
		UcMessage("\"Draygan burned the ship and left the others to die! I know he played a part in the death of mine husband, as well.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["other two", "burned ship", "dead husband", "change subject"]);
	labelFunc049B_044C:
		cmps("other two");
		UI_remove_answer_0D("other two");
		UcMessage("\"Beware them! They follow Draygan's orders	unquestioningly! They would even kill at his word!\"");
		UcSay;
	labelFunc049B_045F:
		cmps("burned ship");
		UI_remove_answer_0D("burned ship");
		UcMessage("\"One of the settlers, Falcon, wanted to leave the settlement. Many others chose to go as well. I did not believe it when Draygan allowed Falcon's group to leave so easily.\"");
		UcSay;
		UcMessage("\"I discovered why. Draygan had the ship burned, leaving them all to be eaten by the wolves!\"");
		UcSay;
		UI_add_answer_0C(["settlement", "wolves"]);
	labelFunc049B_0483:
		cmps("dead husband");
		UI_remove_answer_0D("dead husband");
		UcMessage("\"Mine husband, Carvell, died when Draygan took a group of men in search of gold. Only Draygan returned.\"");
		UcSay;
		UcMessage("\"He told a story of how they were attacked by the wolves, but he lied. I did not find the truth until a short while ago, when Draygan drunkenly boasted of killing Carvell and the others. That was when I ran away.\"");
		UcSay;
		UI_add_answer_0C("ran away");
	labelFunc049B_04A1:
		cmps("ran away");
		UI_remove_answer_0D("ran away");
		UcMessage("\"Yes, I could not stay here with the man who murdered mine husband! I went deep into the woods... but Draygan's lackeys found me and brought me back.\"");
		UcSay;
		UcMessage("\"Now they watch me closely -- but not closely enough!\"");
		UcSay;
	labelFunc049B_04B8:
		cmps("settlement");
		UI_remove_answer_0D("settlement");
		UcMessage("\"A year ago, a group of us left by ship and came to the Northlands. We were in search of the gold and precious gems that are said to fill this land. Our original camp was to the south, but we had no luck there and we made our way to this place. Once here, Draygan seized control! We had to do his bidding or suffer the consequences.\"");
		UcSay;
		UI_add_answer_0C("consequences");
	labelFunc049B_04D2:
		cmps("consequences");
		UI_remove_answer_0D("consequences");
		UcMessage("\"There were beatings, and other things... I would rather not talk about that.\"");
		UcSay;
	labelFunc049B_04E5:
		cmps("wolves");
		UI_remove_answer_0D("wolves");
		UcMessage("\"Surely thou hast heard them! With every cry thou canst hear how they hunger for our flesh!\"");
		UcSay;
	labelFunc049B_04F8:
		cmps("Draygan");
		UI_remove_answer_0D("Draygan");
		UcMessage("\"I feared that no one could save me from Draygan, for he is invincible!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["save", "invincible", "change subject"]);
	labelFunc049B_051F:
		cmps("change subject");
		UcMessage("\"And what shall we speak of?\"");
		UcSay;
		UI_pop_answers_0F();
	labelFunc049B_052F:
		cmps("save");
		UI_remove_answer_0D("save");
		UcMessage("\"But that is before thou didst come here! Thou must save me from this devil Draygan!\"");
		UcSay;
	labelFunc049B_0542:
		cmps("invincible");
		UI_remove_answer_0D("invincible");
		UcMessage("\"He cannot be harmed by blade or knife nor by any magic that I have seen. Whatever he and his expedition found, it hath given him unimaginable power.\"");
		UcSay;
		UI_add_answer_0C("cannot be harmed");
	labelFunc049B_055C:
		cmps("cannot be harmed");
		UI_remove_answer_0D("cannot be harmed");
		UcMessage("\"I have been thinking about this for some time. Perhaps Draygan can be defeated by something that doth not actually bring harm to him. Thou couldst treat an arrow with the plant that is called King's Savior!\"");
		UcSay;
		UI_add_answer_0C(["arrow"]);
		if(!(!gflags[02B9])) goto labelFunc049B_0587;
		UI_add_answer_0C("King's Savior");
	labelFunc049B_0587:
		cmps("arrow");
		UI_remove_answer_0D("arrow");
		UcMessage("\"An arrow thusly treated would put anyone stricken by it in a deep sleep. Dost thou not see? The arrow would not harm him, but it would allow the herbal medicine to take effect!\"");
		UcSay;
		UcMessage("\"This would give us the chance to find and steal the source of Draygan's power. Unless we do this, I am doomed to be his slave.\"");
		UcSay;
	labelFunc049B_059E:
		cmps("King's Savior");
		UI_remove_answer_0D("King's Savior");
		UcMessage("\"According to legend, the plant is found in the deepest and most dangerous part of the forest.\"");
		UcSay;
		UcMessage("\"Only one man can help thee. The Forest Master could guide thee to King's Savior -- but beware him! He possesses strange powers.\"");
		UcSay;
		gflags[02B9] = true;
		UI_push_answers_0E();
		UI_add_answer_0C(["Forest Master", "strange powers", "change subject"]);
	labelFunc049B_05CD:
		cmps("Forest Master");
		UI_remove_answer_0D("Forest Master");
		UcMessage("\"His name is Morghrim. His face is horribly scarred, yet I do not fear him the way I fear Draygan.\"");
		UcSay;
		UcMessage("\"Morghrim is a strange man, foreign in some way I cannot explain. But he is the only one who hath treated me kindly since Carvell was murdered. I stayed with him a short time after I ran away.\"");
		UcSay;
		UcMessage("\"His dwelling place lies far southwest of here, in a grove of silverleaf trees. Perhaps he shall deign to aid thee.\"");
		UcSay;
	labelFunc049B_05E8:
		cmps("strange powers");
		UI_remove_answer_0D("strange powers");
		UcMessage("\"I cannot say what they were, for he was careful to never let me see any such display. But thou wilt feel his power if thou dost meet him. Take care that thou dost not anger him.\"");
		UcSay;
	labelFunc049B_05FB:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Go now. Be safe.@", 0x0000);
		Func097F(0xFF65, "@Do not forget me!@", 0x0003);
		goto labelFunc049B_0629;
	labelFunc049B_0626:
		goto labelFunc049B_041B;
	labelFunc049B_0629:
		end_conv();
	labelFunc049B_062A:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0982 0x982 (var var0000, var var0001);

Func049C 0x49C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = Func0953();
	if(!(event == 0x0001)) goto labelFunc049C_003A;
	UI_item_say_4D(0xFE9C, "@Hello.@");
	0xFF64;
	calle();
	Func097F(0xFF64, "@Speaking to me?@", 0x0002);
	UI_set_schedule_type_25(0xFF64, 0x0003);
	labelFunc049C_003A:
		if(!((event == 0x0000) && (UI_get_schedule_type_24(0xFF64) == 0x0007))) goto labelFunc049C_008C;
		if(!(UI_get_random_00(0x000A) < 0x0007)) goto labelFunc049C_005D;
		abrt();
	labelFunc049C_005D:
		var0002 = ["@Leave us!@", "@Go thy way!@", "@Do not steal...@", "@I am destiny.@", "@Ignore the others.@", "@I am Master here.@"];
		Func097F(0xFF64, var0002[UI_get_random_00(UI_get_array_size_73(var0002))], 0x0000);
	labelFunc049C_008C:
		if(!((event == 0x0007) && UI_get_item_flag_A3(0xFF64, 0x001D))) goto labelFunc049C_00FE;
		if(!gflags[02BC]) goto labelFunc049C_00FE;
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x049F], 0x0032);
		gflags[02BC] = false;
		UI_clear_item_flag_A5(0xFF64, 0x001D);
		Func0982(0xFF64, 0x0032);
		UI_run_schedule_B7(0xFF65);
		UI_set_alignment_4A(0xFF65, 0x0000);
		UI_set_alignment_4A(0xFF61, 0x0000);
		UI_set_schedule_type_25(0xFF65, 0x0003);
	labelFunc049C_00FE:
		if(!(event == 0x0009)) goto labelFunc049C_032A;
		UI_run_schedule_B7(0xFF64);
		UI_clear_item_say_4E(0xFF64);
		UI_show_npc_face0_05(0xFF64, 0x0000);
		var0004 = UI_get_item_flag_A3(0xFF64, 0x001C);
		if(!(var0004 == false)) goto labelFunc049C_0148;
		UI_set_item_flag_A4(0xFF64, 0x001C);
		UcMessage("\"I do not believe we have met. My name is Draygan. I am lord of all the land that I survey.\"");
		UcSay;
		UcMessage("\"At present, I am hard at work fulfilling mine appointed destiny. Conversing with thee is nothing but a useless distraction from achieving that end.\"");
		UcSay;
		goto labelFunc049C_0150;
	labelFunc049C_0148:
		UcMessage("\"We meet again, I see.\"");
		UcSay;
		UcMessage("\"And thou art still of no use to my destiny. I do not have time to prattle with thee, stranger. Stay away from this camp, and from my followers. As the lord of this place, I order this to be so.\"");
		UcSay;
	labelFunc049C_0150:
		UI_add_answer_0C(["lord", "destiny"]);
		UI_add_answer_0C("bye");
	labelFunc049C_0164:
		UcAsk;
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"But we were soon to hear the best part...\"");
		UcSay;
	labelFunc049C_0177:
		cmps("destiny");
		UI_remove_answer_0D("destiny");
		UcMessage("\"I was born a pauper's son. My father was a rancid beggar-man who lived in the dirt of the road. I hated it as I hated him. But there was one thing he always told me. He told me that one day I would be a rich and powerful man. I believe this is my destiny. When I was still a lad, I stole his near-empty coin purse and sought my fortune.\"");
		UcSay;
		UcMessage("\"I have acquired naught but half of my legacy... though I already have the power!\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["fortune", "power", "change subject"]);
	labelFunc049C_01A2:
		cmps("fortune");
		UI_remove_answer_0D("fortune");
		UcMessage("\"It was one year ago that I led my band of men to this spot. We had all heard the tales of gold and fabulous gems that could be found here. We came by ship -- the Emerald Lady. As we planned to settle here, they all brought their wives and children. For months we suffered through bad luck. Then one of the miners made an important discovery. That was before I went on the hunting expedition -- but, ah, I am ahead of myself. It hath been too long since I have had a fresh face to converse with. Damned distraction!\"");
		UcSay;
		UI_add_answer_0C(["suffered", "discovery", "hunting expedition"]);
	labelFunc049C_01C5:
		cmps("suffered");
		UI_remove_answer_0D("suffered");
		UcMessage("\"For three months we toiled near the site of our original landing. But we found nothing. It made the men so discouraged that they nearly surrendered. At last, we moved camp and came here.\"");
		UcSay;
	labelFunc049C_01D8:
		cmps("discovery");
		UI_remove_answer_0D("discovery");
		UcMessage("\"One of the men, a fellow by the name of Hamlin, discovered a nugget of gold as large as my thumb. It was not far from our present location. Rest his soul.\"");
		UcSay;
	labelFunc049C_01EB:
		cmps("hunting expedition");
		UI_remove_answer_0D("hunting expedition");
		UcMessage("\"Not long after the first significant find, we had planned a great feast as a celebration. I led a group of hunters into the forest to hunt for game. We were attacked by a vicious pack of wolves. Only I survived to make it back to camp. It was then that I discovered my power. But the failed expedition was a bad omen. Soon my men were divided and our group fell into rebellion.\"");
		UcSay;
		UI_add_answer_0C(["divided", "rebellion"]);
	labelFunc049C_020B:
		cmps("divided");
		UI_remove_answer_0D("divided");
		UcMessage("\"A man named Falcon declared himself the leader of a group of dissenters that was comprised of nearly half of our number.\"");
		UcSay;
		UcMessage("\"He was a man of exceedingly weak character. He suggested that we return home penniless, without a single piece of treasure! All because a few of the women and children had a difficult time of it in the wilderness.\"");
		UcSay;
		UcMessage("\"Well, all that is the past, and there is nothing one can do for the dead. And we have the treasure...\"");
		UcSay;
	labelFunc049C_0226:
		cmps("rebellion");
		UI_remove_answer_0D("rebellion");
		UcMessage("\"Simple disobedience, really. Oh, yes, and someone cut Hamlin's throat and stole his gold. I do not know who did it.\"");
		UcSay;
		UcMessage("\"After this, most of the men chose to leave. So what was I to do? I gave them their fair share of the gold that we had found, and sent them back to the ship with my blessings.\"");
		UcSay;
		UcMessage("\"They were led by the weakling, Falcon. After they left, I never saw them again. Ah, well...\"");
		UcSay;
	labelFunc049C_0241:
		cmps("power");
		UI_remove_answer_0D("power");
		UcMessage("\"I need not bore thee with the details of how I learned of this power. Suffice it to say that I cannot die.\"");
		UcSay;
		UcMessage("\"Thou wouldst do well to consider that a warning. Do not think of stealing my gold, for it is thee who shall lose thy life. I cannot die because I am destined to become wealthy.\"");
		UcSay;
		UcMessage("\"Hurd and Ivor work the mines night and day. Beryl cooks and cleans. They are good workers. They shall make me wealthy.\"");
		UcSay;
		UI_add_answer_0C("warning?");
	labelFunc049C_0263:
		cmps("warning?");
		UI_remove_answer_0D("warning?");
		UcMessage("\"If we ever come into conflict over the gold that I know lies somewhere in this land, I shall kill thee dead without an ounce of regret.\"");
		UcSay;
	labelFunc049C_0276:
		cmps("lord");
		UI_remove_answer_0D("lord");
		UcMessage("\"I am the Master of the Great Northern Forest, and none can dispute it.\"");
		UcSay;
		UcMessage("\"And if thou shouldst ever speak to a disfigured cripple named Morghrim --\"");
		UcSay;
		UcMessage("\"and I would recommend against that --\"");
		UcSay;
		UcMessage("\"pay no mind to what he may say. Morghrim is an evil and depraved man. Thou shouldst avoid him like the plague.\"");
		UcSay;
		UcMessage("\"This is the one and only piece of friendly advice I shall give to thee.\"");
		UcSay;
	labelFunc049C_0299:
		cmps("bye");
		if(!(!gflags[02BD])) goto labelFunc049C_02C9;
		gflags[02BE] = true;
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x049B], 0x004B);
	labelFunc049C_02C9:
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x049E], 0x012C);
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x049D], 0x00C8);
		Func097F(0xFE9C, "@Interesting....@", 0x0000);
		Func097F(0xFF64, "@Do not return!@", 0x0003);
		UI_set_schedule_type_25(0xFF64, 0x0007);
		abrt();
	labelFunc049C_0326:
		goto labelFunc049C_0164;
	labelFunc049C_0329:
		end_conv();
	labelFunc049C_032A:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func049D 0x49D (var var0000)
{
	var var0001;

	if(!(event == 0x0002)) goto labelFunc049D_009E;
	if(!(UI_get_item_flag_A3(0xFF64, 0x0004) || ((Func0994() != 0x0007) || (UI_get_item_flag_A3(0xFF63, 0x0004) || (UI_get_npc_id_BC(0xFF63) > 0x0003))))) goto labelFunc049D_0035;
	abrt();
	labelFunc049D_0035:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x049D], (0x0064 + UI_get_random_00(0x01F4)));
		if(!(UI_npc_nearby_3A(0xFF62) || (UI_npc_nearby_3A(0xFF64) || (UI_npc_nearby_3A(0xFF65) || UI_npc_nearby_3A(0xFF61))))) goto labelFunc049D_007D;
		abrt();
	labelFunc049D_007D:
		var0000 = UI_approach_avatar_BF(0xFF63, 0x0078, 0x0028);
		if(!var0000) goto labelFunc049D_009D;
		UI_set_schedule_type_25(0xFF63, 0x0016);
	labelFunc049D_009D:
		abrt();
	labelFunc049D_009E:
		if(!(event == 0x0001)) goto labelFunc049D_010D;
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		0xFF63;
		calle();
		if(!UI_npc_nearby_3A(0xFF64)) goto labelFunc049D_00E5;
		Func097F(0xFF63, "@Go away!@", 0x0003);
		UI_set_schedule_type_25(0xFF64, 0x0009);
		Func097F(0xFF64, "@Leave him alone!@", 0x0005);
		goto labelFunc049D_0103;
	labelFunc049D_00E5:
		Func097F(0xFF63, "@I am not a spy...@", 0x0003);
		UI_set_npc_id_BD(0xFF63, (UI_get_npc_id_BC(0xFF63) + 0x0001));
	labelFunc049D_0103:
		UI_set_schedule_type_25(0xFF63, 0x0014);
	labelFunc049D_010D:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);

Func049E 0x49E (var var0000)
{
	var var0001;

	if(!(event == 0x0002)) goto labelFunc049E_00AC;
	if(!(UI_get_item_flag_A3(0xFF64, 0x0004) || ((Func0994() != 0x0007) || (UI_get_item_flag_A3(0xFF62, 0x0004) || (UI_get_npc_id_BC(0xFF62) > 0x0004))))) goto labelFunc049E_0035;
	abrt();
	labelFunc049E_0035:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x049E], UI_get_random_00(0x01F4));
		if(!(UI_npc_nearby_3A(0xFF63) || (UI_npc_nearby_3A(0xFF64) || (UI_npc_nearby_3A(0xFF65) || UI_npc_nearby_3A(0xFF61))))) goto labelFunc049E_0079;
		abrt();
	labelFunc049E_0079:
		var0000 = UI_approach_avatar_BF(0xFF62, 0x0078, 0x0028);
		if(!var0000) goto labelFunc049E_00AB;
		UI_set_schedule_type_25(0xFF62, 0x0014);
		UI_set_npc_id_BD(0xFF62, (UI_get_npc_id_BC(0xFF62) + 0x0001));
	labelFunc049E_00AB:
		abrt();
	labelFunc049E_00AC:
		if(!(event == 0x0001)) goto labelFunc049E_0138;
		UI_item_say_4D(0xFE9C, "@Greetings!@");
		UI_clear_item_say_4E(0xFF62);
		0xFF62;
		calle();
		if(!UI_npc_nearby_3A(0xFF64)) goto labelFunc049E_010B;
		Func097F(0xFF62, "@We cannot speak...@", 0x0003);
		UI_set_schedule_type_25(0xFF64, 0x0009);
		UI_clear_item_say_4E(0xFF64);
		Func097F(0xFF64, "@Go away!@", 0x0005);
		UI_set_schedule_type_25(0xFF62, 0x0014);
		goto labelFunc049E_0138;
	labelFunc049E_010B:
		Func097F(0xFF62, "@I'm no thief!@", 0x0003);
		if(!(UI_get_npc_id_BC(0xFF62) > 0x0003)) goto labelFunc049E_012E;
		Func09AD(0xFF62);
		goto labelFunc049E_0138;
	labelFunc049E_012E:
		UI_set_schedule_type_25(0xFF62, 0x000C);
	labelFunc049E_0138:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func095D 0x95D (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

Func049F 0x49F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_get_npc_id_BC(0xFF61);
	var0001 = Func0954();
	var0002 = Func0953();
	var0003 = Func097D(0xFE9B, 0x0001, 0x01C2, 0xFE99, 0x0000);
	if(!(event == 0x0002)) goto labelFunc049F_00E9;
	if(!UI_get_item_flag_A3(0xFF61, 0x001E)) goto labelFunc049F_0052;
	Func09AC(0xFF61, Dupre, 0x0000, 0x0003);
	goto labelFunc049F_00E9;
	labelFunc049F_0052:
		UI_play_sound_effect_16(0x0077);
		UI_set_item_flag_A4(0xFF61, 0x001E);
		UI_clear_item_flag_A5(0xFF61, 0x0001);
		UI_set_item_frame_1B(0xFF61, 0x001E);
		UI_move_object_4B(0xFF61, [0x063E, 0x044D, 0x0000]);
		UI_set_schedule_type_25(0xFF61, 0x000F);
		UI_sprite_effect_68(0x0007, 0x063E, 0x044D, 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, 0x063E, 0x044D, 0x0000, 0x0000, 0x000C, Iolo);
		Func097F(0xFF61, "Draygan's power is broken!", 0x0003);
		var0004 = UI_delayed_execute_usecode_array_02(0xFF61, [0x23, 0x55, 0x049F], 0x000A);
	labelFunc049F_00E9:
		if(!(event == 0x0001)) goto labelFunc049F_0117;
		UI_item_say_4D(0xFE9C, "@Greetings, old man...@");
		0xFF61;
		calle();
		Func097F(0xFF61, "@Who calleth me old?@", 0x0002);
		UI_set_schedule_type_25(0xFF61, 0x0003);
	labelFunc049F_0117:
		if(!(event == 0x0009)) goto labelFunc049F_0649;
		UI_run_schedule_B7(0xFF61);
		UI_clear_item_say_4E(0xFF61);
		UI_show_npc_face0_05(0xFF61, 0x0000);
		UI_add_answer_0C(["Master"]);
		var0005 = UI_get_item_flag_A3(0xFF61, 0x001C);
		if(!(UI_get_item_flag_A3(0xFF64, 0x0004) && (!gflags[02BB]))) goto labelFunc049F_01EA;
		if(!Func097D(0xFE9B, 0x0001, 0x01C2, 0xFE99, 0x0000)) goto labelFunc049F_01B7;
		Func09AC(0xFF61, Dupre, 0x0000, 0x000C);
		UcMessage("\"Thou must return the Heart of Elerion to me! I need it to restore balance to the forest and its creatures.\"");
		UcSay;
		UI_set_schedule_type_25(0xFF61, 0x0009);
		UI_set_schedule_type_25(0xFF65, 0x0009);
		UI_set_alignment_4A(0xFF65, 0x0000);
		UI_add_answer_0C("give Orb");
		UI_remove_answer_0D("Master");
		goto labelFunc049F_01E7;
	labelFunc049F_01B7:
		UI_set_schedule_type_25(0xFF65, 0x0009);
		UI_set_alignment_4A(0xFF65, 0x0000);
		UI_set_schedule_type_25(0xFF61, 0x0009);
		UcMessage("\"I must have the Heart of Elerion. Draygan had it, but it belongs to me. If thou canst find it, I shall reward thee.\"");
		UcSay;
		UI_add_answer_0C("reward");
		UI_remove_answer_0D("Master");
	labelFunc049F_01E7:
		goto labelFunc049F_0216;
	labelFunc049F_01EA:
		if(!(var0005 == false)) goto labelFunc049F_01F9;
		UcMessage("\"I am Morghrim, Master of these forests.\"");
		UcSay;
		goto labelFunc049F_01FD;
	labelFunc049F_01F9:
		UcMessage("\"There thou art! I knew thou wert here somewhere!\"");
		UcSay;
	labelFunc049F_01FD:
		if(!(gflags[02B9] && (!UI_get_item_flag_A3(0xFF64, 0x0004)))) goto labelFunc049F_0216;
		UI_add_answer_0C("King's Savior");
	labelFunc049F_0216:
		if(!(UI_get_item_flag_A3(0xFF64, 0x0004) && gflags[02BB])) goto labelFunc049F_023D;
		UcMessage("\"I thank thee for all that thou hast done. The forest and its animals are free from the evil that Draygan had instilled in them.\"");
		UcSay;
		UcMessage("\"Stay here as long as thou wishest, friend.\"");
		UcSay;
		UI_add_answer_0C("Hound of Doskar");
		UI_remove_answer_0D("Master");
	labelFunc049F_023D:
		UI_add_answer_0C("bye");
	labelFunc049F_0244:
		UcAsk;
		cmps("change subject");
		UI_pop_answers_0F();
		UcMessage("\"What wouldst thou have me speak of, stranger?\"");
		UcSay;
	labelFunc049F_0257:
		cmps("give Orb");
		UI_remove_answer_0D("give Orb");
		gflags[02BB] = true;
		UcMessage("\"I thank thee for thy kind deed! In return I shall give thee the whistle to summon the Hound of Doskar.\"");
		UcSay;
		UcMessage("\"He will tend to range away from thee when thou hast not given him something to track. If thou dost ever need him, all that thou must do is blow the magic whistle.\"");
		UcSay;
		var0004 = UI_remove_party_items_34(0x0001, 0x01C2, 0xFE99, 0x0000, 0x0000);
		Func095D(0x012C);
		var0004 = Func099B(0xFE9C, 0x0001, 0x0289, 0x0000, 0x0004, false, true);
		UI_revert_schedule_B4(0xFF61);
		UI_run_schedule_B7(0xFF61);
	labelFunc049F_02B3:
		cmps("reward");
		UI_remove_answer_0D("reward");
		UcMessage("\"Give the Orb to me, and thou shalt have a most peculiar reward -- the Whistle of Doskar.\"");
		UcSay;
		UcMessage("\"Use it and thou shalt summon one of the great supernatural hounds from my world. Such a hound can track anything, over any distance.\"");
		UcSay;
	labelFunc049F_02CA:
		cmps("King's Savior");
		UI_remove_answer_0D("King's Savior");
		UcMessage("\"Thou art looking for the plant they call King's Savior? It is a green plant with spiked foliage and tiny yellow blossoms.\"");
		UcSay;
		UcMessage("\"Thou shalt find King's Savior growing near mushrooms, along the western shore of this land, beyond the mountain ridge.\"");
		UcSay;
		UcMessage("\"I won't be asking what thou dost want it for. It is none of my business.\"");
		UcSay;
	labelFunc049F_02E5:
		cmps("Master");
		UI_remove_answer_0D("Master");
		UcMessage("\"That is correct! I am the Forest Master! Friend to Windrunner! Former protector of Elerion, and now refugee of Pagan! Of course that will mean nothing to a foreigner like thyself. Dost thou know that I can speak to animals and trees? Do not smirk, knave!\"");
		UcSay;
		UI_set_item_flag_A4(0xFF61, 0x001C);
		UI_add_answer_0C(["Windrunner", "Pagan", "Elerion", "speak to animals and trees"]);
	labelFunc049F_0315:
		cmps("Windrunner");
		UI_remove_answer_0D("Windrunner");
		UcMessage("\"He is a great gray wolf, and my longtime friend. He is also a refugee, like myself. We have been through many adventures together.\"");
		UcSay;
	labelFunc049F_0328:
		cmps("Pagan");
		UI_remove_answer_0D("Pagan");
		UcMessage("\"Ah, Pagan! A wondrous world, far better than this miserable place. At least, it was before it was destroyed by the Evil One and his followers.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Evil One", "followers", "change subject"]);
	labelFunc049F_034F:
		cmps("Evil One");
		UI_remove_answer_0D("Evil One");
		UcMessage("\"He is the Destructor of Worlds, the one who calls himself the Guardian. Ah, but why do I speak of this to thee? What wouldst thou knowest of him? Bah!\"");
		UcSay;
	labelFunc049F_0362:
		cmps("followers");
		UI_remove_answer_0D("followers");
		UcMessage("\"The followers of the Evil One were legion, and they declared war upon all who did not fall in tribute to their master. I am proud to count myself among the enemies of the Evil One and am proud to have earned his wrath. But his followers in their cowardice set fire to my forest. Even the Great Tree of Life, Elerion, burned. Using all my powers I was able to obtain the Silver Seed from within Elerion, but in the effort the flames took away my sight. The agony was unbearable and I would have surely died there, in my dead forest, on my dead world, if not for my one true friend, Windrunner. He saved me, so that one day I could become the protector of a new forest. But I have been blind since that day.\"");
		UcSay;
		UI_add_answer_0C(["saved thee", "new forest"]);
	labelFunc049F_0382:
		cmps("saved thee");
		UI_remove_answer_0D("saved thee");
		UcMessage("\"Through his efforts, we escaped, and I used the last of my magic to escape. We found ourselves here -- on the Serpent Isle.\"");
		UcSay;
	labelFunc049F_0395:
		cmps("new forest");
		UI_remove_answer_0D("new forest");
		UcMessage("\"That would be this place. I have been the caretaker of the trees of these lands for several centuries. It seems that time doth not pass at the same rate here as on my world. But I am sad to say that my powers are not what they once were. Now this forest, this entire world, is dying -- even as mine old world did. But this world will not die with a scream, but with a whimper. Not torn asunder by some terrible devil, but gently fallen into the slumber of death as great cosmic forces shift out of alignment.\"");
		UcSay;
	labelFunc049F_03A8:
		cmps("Elerion");
		UI_remove_answer_0D("Elerion");
		UcMessage("\"Elerion was the magnificent tree of life on the world of Pagan! How couldst thou not know such a thing! It stood as a symbol of peace and endurance for more than a millennium, its branches stretched across the sky. I was the last in a long line of noble and dutiful protectors of Elerion. It was the bearer of the Silver Seed and the prime target of the Evil One and his followers.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Silver Seed", "prime target", "change subject"]);
	labelFunc049F_03CF:
		cmps("Silver Seed");
		UI_remove_answer_0D("Silver Seed");
		if(!gflags[02EE]) goto labelFunc049F_03FE;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(", fate has burdened me with a tremendous weight!  The Silver Seed was split open in the destruction and discord and its magical powers have seeped from it.  The task was mine to plant the Silver Seed, if I survived the cataclysmic end this land faces. I have failed in that duty now, too.  Hrumph!  If only the tales were true!\"");
		UcSay;
		UI_add_answer_0C(["tales", "split open"]);
		goto labelFunc049F_0402;
	labelFunc049F_03FE:
		UcMessage("\"One day in the far, far future, if this world doth somehow manage to survive its myriad cataclysms, it will be time for me to plant the Silver Seed. Only I will know when and only I will know what to do. Hmmph! I will speak of this no more! Do not ask me of it again!\"");
		UcSay;
	labelFunc049F_0402:
		cmps("prime target");
		UI_remove_answer_0D("prime target");
		UcMessage("\"It seemed to be the way of this Guardian to try and destroy all goodness and life in the world. I spit upon him! Why, if this Evil One were here right now I would tear off his head and feed the rest of him to Windrunner! That is what I would do!\"");
		UcSay;
	labelFunc049F_0415:
		cmps("speak to animals and trees");
		UI_remove_answer_0D("speak to animals and trees");
		UcMessage("\"It is far more interesting to speak to an animal or tree than it is to speak to thee, I can assure thee of that! Much better conversation! Why, it is through this talent that I am able to speak to the Hound of Doskar, for instance.\"");
		UcSay;
		if(!(!gflags[02BB])) goto labelFunc049F_0433;
		UcMessage("\"Unfortunately, I am having a problem with most of mine other magical powers.\"");
		UcSay;
	labelFunc049F_0433:
		UI_push_answers_0E();
		UI_add_answer_0C(["Hound of Doskar", "magical powers", "change subject"]);
	labelFunc049F_0447:
		cmps("Hound of Doskar");
		UI_remove_answer_0D("Hound of Doskar");
		UcMessage("\"The stories that Hound can tell! I can talk with the Hound of Doskar for hours! It is a great mystical beast capable of tracking any sort of creature. It can track across worlds and is often ranging, on the scent of one unusual thing or another.\"");
		UcSay;
		UI_add_answer_0C("tracking");
	labelFunc049F_0461:
		cmps("tracking");
		UI_remove_answer_0D("tracking");
		UcMessage("\"Before the Hound of Doskar can track, thou must show it an item belonging to the person whom thou dost wish to seek.\"");
		UcSay;
		UcMessage("\"Not any old item -- it must be something which reflects the soul of the lost one! Something personal, something of the heart.\"");
		UcSay;
		UcMessage("\"Then the Hound can guide thee to the general vicinity where the sought being doth dwell. Nothing can stop the beast.\"");
		UcSay;
	labelFunc049F_047C:
		cmps("magical powers");
		UI_remove_answer_0D("magical powers");
		UcMessage("\"I confess I am not comfortable with the ways magic is practiced on this world, as prescribed by the sorcerers of Moonshade. I suppose I am simply not used to it. This world is plagued by such chaos and imbalance. Long ago, I grew so frustrated by not understanding the way it worked that I put all of my power into a living Orb -- the Heart of Elerion.\"");
		UcSay;
		UI_add_answer_0C(["chaos and imbalance", "Heart of Elerion"]);
	labelFunc049F_049C:
		cmps("chaos and imbalance");
		UI_remove_answer_0D("chaos and imbalance");
		UcMessage("\"For example, these bizarre storms! Surely thou art familiar with them! We had nothing like this on Pagan! It hath completely interfered with me using my powers!\"");
		UcSay;
	labelFunc049F_04AF:
		cmps("Heart of Elerion");
		UI_remove_answer_0D("Heart of Elerion");
		UcMessage("\"With the Orb I am as one with the animals and plants of the forest, and I am its Master, servant and devoted protector. The Orb is spiritually connected to me.\"");
		UcSay;
		UI_add_answer_0C("connected");
		if(!(!gflags[02BB])) goto labelFunc049F_04DB;
		UcMessage("\"But it hath been stolen!\"");
		UcSay;
		UI_add_answer_0C("stolen");
	labelFunc049F_04DB:
		cmps("connected");
		UI_remove_answer_0D("connected");
		UcMessage("\"My thoughts, emotions, perceptions -- my soul -- it is all tied to the Orb. The Heart of Elerion is like unto mine own heart beating in my chest.\"");
		UcSay;
		if(!(!gflags[02BB])) goto labelFunc049F_04FC;
		UcMessage("\"Having lost the Orb I am as a dead man walking. I cannot heal the land! I cannot even summon the Hound of Doskar for a decent conversation!\"");
		UcSay;
		goto labelFunc049F_0500;
	labelFunc049F_04FC:
		UcMessage("\"Through it I have the power to heal the land when harm hath come to it, and I can summon the Hound of Doskar.\"");
		UcSay;
	labelFunc049F_0500:
		UI_add_answer_0C(["heal the land", "summon the Hound"]);
	labelFunc049F_050D:
		cmps("heal the land");
		UI_remove_answer_0D("heal the land");
		UcMessage("\"And the land doth sorely need it. Thou hast travelled this forest.	The trees are tall, but brittle-dry. Soon they will be lifeless and bare. The wolves in this forest are already becoming quite mean, as I am certain thou hast noticed. It is all the wicked result of forces out of balance.\"");
		UcSay;
	labelFunc049F_0520:
		cmps("summon the Hound");
		UI_remove_answer_0D("summon the Hound");
		if(!(!gflags[02BB])) goto labelFunc049F_0561;
		UcMessage("\"Ever since I have lost contact with the Orb, I am so weakened that I have not been able to produce a call that the Hound is capable of hearing -- even with those long floppy ears on that miserable mongrel! Bah! Didst thou require the hound for some reason?\"");
		UcSay;
		var0006 = Func0955();
		if(!var0006) goto labelFunc049F_054D;
		UcMessage("\"I cannot help thee until mine Orb, the Heart of Elerion, is returned...\"");
		UcSay;
		goto labelFunc049F_055E;
	labelFunc049F_054D:
		UcMessage("\"Then why are we talking about the Hound of Doskar?! Bah! I have heard more coherent conversations from trees!\"");
		UcSay;
		Func097F(0xFF61, "@Bah!@", 0x0000);
		abrt();
	labelFunc049F_055E:
		goto labelFunc049F_0565;
	labelFunc049F_0561:
		UcMessage("\"But I already gave thee the whistle to summon the Hound! I hope thou hast not lost it, for if thou hast lost the whistle, I cannot help thee.\"");
		UcSay;
	labelFunc049F_0565:
		cmps("stolen");
		UI_remove_answer_0D("stolen");
		UcMessage("\"Draygan, the leader of a mining camp that is elsewhere in the forest, came traipsing through here with some of his friends one day. They reached my Sanctuary while I was away and stole mine Orb! I had mine hands full with another problem at the time so I sent Windrunner and his mates after them.	The wolves killed all of them save for Draygan himself. But he threatened to destroy the Orb if I did not let him go. Since that time, he hath escaped me.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["another problem", "miner's camp", "Draygan", "change subject"]);
	labelFunc049F_058F:
		cmps("another problem");
		UI_remove_answer_0D("another problem");
		UcMessage("\"That would be Hazard the Trapper. Perhaps thou hast heard of him. I am told he is a man of some renown in certain circles. He and I have come against each other before. I bear no grudge against any who hunt in my forest for food, nor one who makes their living as a hunter. But this Hazard is as he is named. No sense nor love for anything save the kill. He hunts and kills without ceasing, with bloody and painful methods. None of the predator's grace -- like the wolves. I cannot abide a man such as he!\"");
		UcSay;
	labelFunc049F_05A2:
		cmps("miner's camp");
		UI_remove_answer_0D("miner's camp");
		UcMessage("\"A group of miners driven delirious with gold fever sold everything they owned and came here some time ago. They found nothing and were driven to the brink of starvation. Most of the miners tried to leave but they were eaten by the wolves. They were driven away because of Draygan's demands of constant work. A terrible tragedy.\"");
		UcSay;
	labelFunc049F_05B5:
		cmps("tales");
		UI_remove_answer_0D("tales");
		UcMessage("\"I did go to the Xenkan Monks for aid in my quest to make whole the seed.  They could not heal it, but they told me of a passage in a decrepit book.  It was penned by a scribe of the long-dead folk who once peopled this isle, and it hinted that they, too, possessed a Silver Seed!  Alas, the scribe made no mention of its whereabouts, so it may as well be myth!\"");
		UcSay;
	labelFunc049F_05C8:
		cmps("split open");
		UI_remove_answer_0D("split open");
		UcMessage("\"Magical as it may be, it is naught but a seed, susceptible to the rigors of the world around it.  I know not when, but the thin shell of the seed split apart.  The contents, wherein the magic of the seed did dwell, were mashed and beaten unknowingly by my own body whilst I tried to escape.  The magic within died.\"");
		UcSay;
	labelFunc049F_05DB:
		cmps("Draygan");
		UI_remove_answer_0D("Draygan");
		UcMessage("\"Now that Draygan possesses the Orb, he is nearly as powerful as I. Yet I am not as powerful as I once was. Over time my powers have diminished even more and I am no longer capable of challenging him for possession of the Orb. He is virtually impervious to all forms of harm. I doubt thou wouldst fare better than I have against him and the conflicts have all but killed me! If I were thee, I would try to reason with Draygan. He'll not listen to me for we are enemies. But thou mightest have a chance.\"");
		UcSay;
		UcMessage("\"Wouldst thou try to retrieve mine Orb?\"");
		UcSay;
		var0007 = Func0955();
		if(!var0007) goto labelFunc049F_0609;
		UcMessage("\"Thou art a true friend, if a strange one. So I shall give thee a word of warning. The wolves and bears and boars of this forest are very hungry. There was a time not so long ago when I could have assured that no harm would come to thee, not only while thou wert in my forest, but all across this world. But not only hath my magic gone, but as I am certain thou dost know, this world is off kilter. Nothing is certain anymore. Good luck to thee.\"");
		UcSay;
		gflags[02BA] = true;
		goto labelFunc049F_061A;
	labelFunc049F_0609:
		UcMessage("\"Then I have nothing more to say to thee!\"");
		UcSay;
		Func097F(0xFF61, "@I am alone...@", 0x0000);
		abrt();
	labelFunc049F_061A:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		Func097F(0xFF61, "@Take care!@", 0x0003);
		goto labelFunc049F_0648;
	labelFunc049F_0645:
		goto labelFunc049F_0244;
	labelFunc049F_0648:
		end_conv();
	labelFunc049F_0649:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0956 0x956 (var var0000);

Func04A0 0x4A0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04A0_000F;
	Func0809();
	abrt();
	labelFunc04A0_000F:
		var0000 = Func0954();
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		if(!(event == 0x0000)) goto labelFunc04A0_021D;
		var0003 = UI_find_nearby_41(item, 0x025F, 0x0000, 0x0010);
		enum();
	labelFunc04A0_003C:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc04A0_021D);
		var0007 = UI_get_item_frame_1A(var0006);
		if(!((var0007 <= 0x0001) || (var0007 >= 0x0007))) goto labelFunc04A0_01AA;
		var0008 = UI_find_nearby_41(item, 0x0113, 0x0014, 0x0010);
		enum();
	labelFunc04A0_0075:
		for (var000B in var0008 with var0009 to var000A atend labelFunc04A0_00C6);
		if(!((UI_get_item_frame_1A(var000B) == 0x0006) && (UI_get_item_quality_1C(var000B) == 0x0001))) goto labelFunc04A0_00C3;
		if(!(UI_get_distance_21(var000B, 0xFE9C) < 0x0009)) goto labelFunc04A0_00C3;
		UI_item_say_4D(item, "@Thou shan't steal the gold!@");
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_alignment_4A(item, 0x0002);
	labelFunc04A0_00C3:
		goto labelFunc04A0_0075;
	labelFunc04A0_00C6:
		var000C = UI_find_nearest_15(item, 0x010E, 0x0003);
		if(!var000C) goto labelFunc04A0_0133;
		var000D = UI_get_object_position_20(var000C);
		var000E = UI_get_item_quality_1C(var000C);
		UI_remove_item_84(var000C);
		var000F = UI_create_new_object_2C(0x0178);
		if(!var000F) goto labelFunc04A0_0130;
		var0010 = UI_set_item_quality_1D(var000F, var000E);
		UI_set_item_frame_1B(var000F, 0x0005);
		var0010 = UI_update_last_created_2F(var000D);
		UI_play_sound_effect2_A1(0x0020, var000F);
	labelFunc04A0_0130:
		goto labelFunc04A0_01AA;
	labelFunc04A0_0133:
		if(!(!(UI_get_schedule_type_24(item) == 0x0000))) goto labelFunc04A0_01AA;
		var000C = UI_find_nearest_15(item, 0x0178, 0x0005);
		if(!var000C) goto labelFunc04A0_01AA;
		var000D = UI_get_object_position_20(var000C);
		var000E = UI_get_item_quality_1C(var000C);
		UI_remove_item_84(var000C);
		var000F = UI_create_new_object_2C(0x010E);
		if(!var000F) goto labelFunc04A0_01AA;
		var0010 = UI_set_item_quality_1D(var000F, var000E);
		UI_set_item_frame_1B(var000F, 0x0006);
		var0010 = UI_update_last_created_2F(var000D);
		UI_play_sound_effect2_A1(0x001F, var000F);
	labelFunc04A0_01AA:
		if(!(var0007 == 0x0002)) goto labelFunc04A0_01DD;
		if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc04A0_01CD;
		UI_item_say_4D(item, "@No new arrivals...@");
	labelFunc04A0_01CD:
		var0010 = UI_execute_usecode_array_01(item, [0x27, 0x0007]);
	labelFunc04A0_01DD:
		if(!(var0007 == 0x0004)) goto labelFunc04A0_021A;
		if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc04A0_020A;
		UI_item_say_4D(item, "@'Tis as a rubbish heap!@");
		Func097F(item, "Bloody criminals...@", 0x0010);
	labelFunc04A0_020A:
		var0010 = UI_execute_usecode_array_01(item, [0x27, 0x000A]);
	labelFunc04A0_021A:
		goto labelFunc04A0_003C;
	labelFunc04A0_021D:
		if(!(event == 0x0002)) goto labelFunc04A0_033E;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		if(!gflags[023B]) goto labelFunc04A0_026E;
		UcMessage("\"Yes, felon?\"");
		UcSay;
		UcMessage("\"'Tis gratifying to see that I shant have to collect thy skull yet. Such stamina shall be useful to thee here, certainly.\"");
		UcSay;
		UcMessage("\"But thou shouldst journey further into the mountain soon, felon. The only source of food and water lies deeper in the heart of Freedom... if thou canst pay for it.\"");
		UcSay;
		UcMessage("\"Forgive me if I do not linger. I have many things to attend to before I can begin my rounds. Remember, if thou canst find thy way out, thou wilt be free!\"");
		UcSay;
		if(!(UI_die_roll_17(0x0001, 0x000A) > 0x0009)) goto labelFunc04A0_025E;
		UI_set_schedule_type_25(item, 0x001D);
	labelFunc04A0_025E:
		UI_remove_npc_face0_07();
		UI_item_say_4D(item, "@So long, felon!@");
		abrt();
		goto labelFunc04A0_0332;
	labelFunc04A0_026E:
		UcMessage("\"Greetings, felon!\"");
		UcSay;
		UcMessage("\"Thou art in the Mountains of Freedom... A magical prison from which none have escaped.\"");
		UcSay;
		UcMessage("\"I am the caretaker here. It is my duty to record thy name and crime.\"");
		UcSay;
		var0011 = (("I am " + var0002) + ".");
		var0012 = [var0011, "I am the Avatar.", "None of thy business."];
		var0013 = Func0956(var0012);
		if(!(var0013 == var0011)) goto labelFunc04A0_02B4;
		UcMessage("\"My condolences on thy sentence here, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc04A0_02B4:
		if(!(var0013 == "I am the Avatar.")) goto labelFunc04A0_02C2;
		UcMessage("\"I see... Perhaps thou couldst have pleaded insanity and avoided being sent here, felon.\"");
		UcSay;
	labelFunc04A0_02C2:
		if(!(var0013 == "None of thy business.")) goto labelFunc04A0_02D0;
		UcMessage("\"With thine attitude, I understand why thou art here.\"");
		UcSay;
	labelFunc04A0_02D0:
		UcMessage("\"With what crime art thou charged?\"");
		UcSay;
		var0014 = ["I am innocent!", "Angering Filbercio.", "I don't know."];
		var0015 = Func0956(var0014);
		if(!(var0015 == "I am innocent!")) goto labelFunc04A0_02FA;
		UcMessage("\"Ahh, thou wouldst be surprised how many innocents come through here, felon. Only yesterday we had another such innocent... Let us see. Stefano was his name.\"");
		UcSay;
	labelFunc04A0_02FA:
		if(!(var0015 == "Angering Filbercio.")) goto labelFunc04A0_0308;
		UcMessage("\"Ahh, thou art in fine company then, felon. Only yesterday we had another such felon arrive... Let us see. Stefano was his name.\"");
		UcSay;
	labelFunc04A0_0308:
		if(!(var0015 == "I don't know.")) goto labelFunc04A0_0316;
		UcMessage("\"I am certain that thou wilt discern it while thou art here. Perhaps yesterday's felon is still alive to aid thee in thy search for enlightenment... Let us see. Stefano was his name.\"");
		UcSay;
	labelFunc04A0_0316:
		UcMessage("\"I will tell thee as I told him. Sleep passes thy time here, and may provide thee with new ideas for winning thy freedom.\"");
		UcSay;
		UcMessage("\"Thou shouldst be wary of two rogue mages who roam through these passages. They came here in search of the forbidden reagent, Stoneheart, and never escaped.\"");
		UcSay;
		UcMessage("\"Be mindful of the other felons... Most are quite desperate by now and will kill thee for what thou dost possess. In fact, they may prove to be thy greatest danger.\"");
		UcSay;
		UcMessage("\"There is another caretaker within the prison with a small supply of food and healing potions for sale, if thou dost need any... And if thou dost make it that far, of course.\"");
		UcSay;
		UcMessage("\"I make rounds periodically, to note who hath died for the records. Thou mayest notice later that I take great care to memorialize all who perish here. So thy passing shall not go unremarked...\"");
		UcSay;
		UcMessage("\"Remember, if thou canst find thy way out, thou wilt be free!\"");
		UcSay;
		gflags[023B] = true;
	labelFunc04A0_0332:
		UI_remove_npc_face0_07();
		UI_item_say_4D(item, "@Goodbye, felon!@");
	labelFunc04A0_033E:
		if(!(event == 0x0001)) goto labelFunc04A0_035B;
		var0010 = UI_execute_usecode_array_01(item, [0x27, 0x0002, 0x55, 0x04A0]);
	labelFunc04A0_035B:
		if(!(event == 0x0007)) goto labelFunc04A0_0416;
		var000D = UI_get_object_position_20(item);
	labelFunc04A0_036B:
		if(!(var000D[0x0003] > 0x0000)) goto labelFunc04A0_03AB;
		var000D[0x0001] = (var000D[0x0001] - 0x0001);
		var000D[0x0002] = (var000D[0x0002] - 0x0001);
		var000D[0x0003] = (var000D[0x0003] - 0x0002);
		goto labelFunc04A0_036B;
	labelFunc04A0_03AB:
		var0016 = UI_get_cont_items_33(0xFF60, 0xFE99, 0xFE99, 0xFE99);
		if(!var0016) goto labelFunc04A0_03E1;
		var0010 = UI_set_last_created_2E(var0016);
		if(!var0010) goto labelFunc04A0_03DE;
		var0010 = UI_update_last_created_2F(var000D);
	labelFunc04A0_03DE:
		goto labelFunc04A0_03AB;
	labelFunc04A0_03E1:
		UI_sprite_effect_68(0x001B, (var000D[0x0001] - 0x0001), (var000D[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_remove_npc_4C(0xFF60);
	labelFunc04A0_0416:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern Func080F 0x80F ();
extern Func0810 0x810 ();

Func04A1 0x4A1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04A1_000F;
	Func0809();
	abrt();
	labelFunc04A1_000F:
		var0000 = Func0954();
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		if(!(event == 0x0000)) goto labelFunc04A1_0073;
		var0003 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0003 == 0x0001)) goto labelFunc04A1_004B;
		UI_item_say_4D(0xFF5F, "@Healing potions!@");
	labelFunc04A1_004B:
		if(!(var0003 == 0x0002)) goto labelFunc04A1_005F;
		UI_item_say_4D(0xFF5F, "@Food!@");
	labelFunc04A1_005F:
		if(!(var0003 == 0x0003)) goto labelFunc04A1_0073;
		UI_item_say_4D(0xFF5F, "@Bandages!@");
	labelFunc04A1_0073:
		if(!(event == 0x0001)) goto labelFunc04A1_00DF;
		0xFF5F;
		calle();
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Greetings, felon!\"");
		UcSay;
		UcMessage("\"Art thou in need of food or healing?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04A1_00D8;
		UcMessage("\"Such items are very valuable here, felon. Thou mayest find the prices steep...\"");
		UcSay;
		UcMessage("\"What dost thou wish, food or healing?\"");
		UcSay;
		var0004 = Func0956(["food", "healing"]);
		if(!(var0004 == "food")) goto labelFunc04A1_00C2;
		Func080F();
		goto labelFunc04A1_00C5;
	labelFunc04A1_00C2:
		Func0810();
	labelFunc04A1_00C5:
		UcMessage("\"Thou art always welcome here, felon... As long as thou dost have money, that is.\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_item_say_4D(item, "@Goodbye, felon!@");
		goto labelFunc04A1_00DF;
	labelFunc04A1_00D8:
		UcMessage("\"Then thou wilt have to move on...\"");
		UcSay;
		goto labelFunc04A1_0162;
	labelFunc04A1_00DF:
		if(!(event == 0x0007)) goto labelFunc04A1_0162;
		var0005 = UI_get_object_position_20(item);
	labelFunc04A1_00EF:
		if(!(var0005[0x0003] > 0x0000)) goto labelFunc04A1_012F;
		var0005[0x0001] = (var0005[0x0001] - 0x0001);
		var0005[0x0002] = (var0005[0x0002] - 0x0001);
		var0005[0x0003] = (var0005[0x0003] - 0x0002);
		goto labelFunc04A1_00EF;
	labelFunc04A1_012F:
		UI_sprite_effect_68(0x001B, (var0005[0x0001] - 0x0001), (var0005[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_remove_item_84(item);
	labelFunc04A1_0162:
		return;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern Func080F 0x80F ();
extern Func0810 0x810 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func04A2 0x4A2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04A2_000F;
	Func0809();
	abrt();
	labelFunc04A2_000F:
		var0000 = Func0954();
		var0001 = UI_is_pc_female_6F();
		var0002 = Func0953();
		if(!(event == 0x0001)) goto labelFunc04A2_004D;
		UI_item_say_4D(item, "@Well done!@");
		0xFF5E;
		calle();
		var0003 = UI_execute_usecode_array_01(item, [0x27, 0x0002, 0x55, 0x04A2]);
	labelFunc04A2_004D:
		if(!(event == 0x0002)) goto labelFunc04A2_00AF;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Thou hast made it this far... Dost thou wish to purchase food or healing potions?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04A2_0098;
		UcMessage("\"Such items are very valuable here, felon. Thou mayest find the prices steep...\"");
		UcSay;
		UcMessage("\"What dost thou wish, food or healing potions?\"");
		UcSay;
		var0004 = Func0956(["food", "healing"]);
		if(!(var0004 == "food")) goto labelFunc04A2_0092;
		Func080F();
		goto labelFunc04A2_0095;
	labelFunc04A2_0092:
		Func0810();
	labelFunc04A2_0095:
		goto labelFunc04A2_00AF;
	labelFunc04A2_0098:
		UcMessage("\"But it is my task to bar thine exit still. If thou canst defeat me, thou mayest take the key and be free!\"* \"But if thou canst not, thou wilt remain here. Forever!\"");
		UcSay;
		Func097F(0xFF5E, "@To arms, felon!@", 0x0002);
		Func09AD(0xFF5E);
		abrt();
	labelFunc04A2_00AF:
		if(!(event == 0x0007)) goto labelFunc04A2_00ED;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Congratulations, ");
		UcMessage(var0000);
		UcMessage("! Thou hast proven thine innocence...\"");
		UcSay;
		UcMessage("\"Take the key and enjoy thy freedom!\"");
		UcSay;
		var0005 = Func099B(0xFE9C, 0x0001, 0x0281, 0xFE99, 0x0018, 0x0000, true);
		UI_remove_npc_face1_08();
		abrt();
	labelFunc04A2_00ED:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AA 0x9AA ();
extern Func09AD 0x9AD (var var0000);

Func04A3 0x4A3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;

	if(!(event == 0x0003)) goto labelFunc04A3_0026;
	var0000 = UI_execute_usecode_array_01(0xFF5D, [0x55, 0x04A3]);
	Func097F(0xFF5D, "@Die, mortal!@", 0x0002);
	labelFunc04A3_0026:
		if(!(event == 0x0002)) goto labelFunc04A3_07F3;
		if(!(UI_get_item_shape_18(item) == 0x0331)) goto labelFunc04A3_0448;
		var0001 = UI_die_roll_17(0x0001, 0x0003);
		if(!((var0001 == 0x0001) && (gflags[023A] == false))) goto labelFunc04A3_006F;
		Func097F(0xFE9C, "@Free me, Avatar!@", 0x0005);
		Func097F(0xFF58, "@Listen to thy sword!@", 0x000F);
	labelFunc04A3_006F:
		if(!((var0001 == 0x0002) && (gflags[023A] == false))) goto labelFunc04A3_0097;
		Func097F(0xFE9C, "@Release me, Avatar!@", 0x0005);
		Func097F(0xFF58, "@Do what thy sword says!@", 0x000C);
	labelFunc04A3_0097:
		if(!((var0001 == 0x0003) && (gflags[023A] == false))) goto labelFunc04A3_00BF;
		Func097F(0xFE9C, "@Liberate me, Avatar!@", 0x0005);
		Func097F(0xFF58, "@Do it! Do it! Do it!@", 0x0009);
	labelFunc04A3_00BF:
		var0001 = UI_find_nearby_41(0xFF5D, 0x0113, 0x0000, 0x0010);
		if(!var0001) goto labelFunc04A3_00FE;
		var0002 = UI_die_roll_17(0x0002, 0x0008);
		var0000 = UI_delayed_execute_usecode_array_02(var0001, [0x55, 0x04A3], (0x0019 + var0002));
	labelFunc04A3_00FE:
		var0002 = UI_die_roll_17(0x0001, 0x0004);
		var0003 = UI_direction_from_A2(0xFF5D, 0xFE9C);
		if(!(var0002 == 0x0001)) goto labelFunc04A3_023B;
		var0004 = UI_get_object_position_20(0xFF5D);
		UI_sprite_effect_68(0x000D, (var0004[0x0001] - 0x0001), (var0004[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0074);
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@Kal Ort Grav!@", 0x01, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0003, 0x6C, 0x27, 0x0002, 0x61]);
		UI_earthquake_6E(0x000A);
		var0005 = UI_get_party_list_2B();
		enum();
	labelFunc04A3_0199:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc04A3_023B);
		var0009 = [];
		var000A = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000A == 0x0001)) goto labelFunc04A3_01DE;
		var0009 = [0x6E, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61];
	labelFunc04A3_01DE:
		if(!(var000A == 0x0002)) goto labelFunc04A3_0208;
		var0009 = [0x59, 0x0004, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61];
	labelFunc04A3_0208:
		if(!(var000A == 0x0003)) goto labelFunc04A3_022B;
		var0009 = [0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0004, 0x61];
	labelFunc04A3_022B:
		var0000 = UI_execute_usecode_array_01(var0008, var0009);
		goto labelFunc04A3_0199;
	labelFunc04A3_023B:
		if(!(var0002 == 0x0002)) goto labelFunc04A3_02BA;
		var0004 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0011, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_UNKNOWN_72();
		UI_play_sound_effect_16(0x0074);
		var0000 = UI_apply_damage_76(UI_get_npc_prop_28(0xFE9C, 0x0000), 0x0004, 0x0003, 0xFE9C);
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@Kal Grav!@", 0x6F, 0x27, 0x0003, 0x70, 0x27, 0x0002, 0x61]);
	labelFunc04A3_02BA:
		if(!(var0002 == 0x0003)) goto labelFunc04A3_03CD;
		var000A = UI_die_roll_17(0x0001, 0x0004);
		if(!(var000A == 0x0001)) goto labelFunc04A3_02E1;
		var000B = 0x0001;
	labelFunc04A3_02E1:
		if(!(var000A == 0x0002)) goto labelFunc04A3_02F1;
		var000B = 0x0004;
	labelFunc04A3_02F1:
		if(!(var000A == 0x0003)) goto labelFunc04A3_0301;
		var000B = 0x0005;
	labelFunc04A3_0301:
		if(!(var000A == 0x0004)) goto labelFunc04A3_0311;
		var000B = 0x001E;
	labelFunc04A3_0311:
		if(!(var000A == 0x0005)) goto labelFunc04A3_0321;
		var000B = 0x001B;
	labelFunc04A3_0321:
		if(!(var000A == 0x0006)) goto labelFunc04A3_0331;
		var000B = 0x001F;
	labelFunc04A3_0331:
		var0004 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(var000B, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0005 = UI_get_party_list_2B();
		enum();
	labelFunc04A3_0369:
		for (var0008 in var0005 with var000C to var000D atend labelFunc04A3_0391);
		var0000 = UI_apply_damage_76(UI_get_npc_prop_28(var0008, 0x0000), 0x0004, 0x0003, var0008);
		goto labelFunc04A3_0369;
	labelFunc04A3_0391:
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@Vas Flam!@", 0x64, 0x27, 0x0002, 0x65, 0x27, 0x0002, 0x66, 0x27, 0x0002, 0x67, 0x27, 0x0002, 0x64, 0x27, 0x0002, 0x61]);
	labelFunc04A3_03CD:
		if(!(var0002 == 0x0004)) goto labelFunc04A3_0447;
		var000A = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000A == 0x0001)) goto labelFunc04A3_0405;
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@I will kill thee!@"]);
	labelFunc04A3_0405:
		if(!(var000A == 0x0002)) goto labelFunc04A3_0426;
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@Thou art no match for my power.@"]);
	labelFunc04A3_0426:
		if(!(var000A == 0x0003)) goto labelFunc04A3_0447;
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x59, var0003, 0x52, "@Kneel before me, worm.@"]);
	labelFunc04A3_0447:
		abrt();
	labelFunc04A3_0448:
		if(!(UI_get_item_shape_18(item) == 0x0341)) goto labelFunc04A3_04E9;
		var0004 = UI_get_object_position_20(0xFF5D);
		var000E = UI_get_object_position_20(item);
		if(!(var000E[0x0001] < var0004[0x0001])) goto labelFunc04A3_048B;
		var000E[0x0001] = 0x09C7;
		var000E[0x0002] = 0x06D7;
		goto labelFunc04A3_04C3;
	labelFunc04A3_048B:
		var000E[0x0001] = 0x09BD;
		var000E[0x0002] = 0x06DC;
		UI_sprite_effect_68(0x001E, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
	labelFunc04A3_04C3:
		UI_sprite_effect_68(0x0001, var000E[0x0001], var000E[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
	labelFunc04A3_04E9:
		if(!(UI_get_item_shape_18(item) == 0x0349)) goto labelFunc04A3_0564;
		var0004 = UI_get_object_position_20(0xFF5D);
		var000E = UI_get_object_position_20(item);
		if(!(var000E[0x0002] < var0004[0x0002])) goto labelFunc04A3_052C;
		var000E[0x0001] = 0x09C4;
		var000E[0x0002] = 0x06E4;
		goto labelFunc04A3_053E;
	labelFunc04A3_052C:
		var000E[0x0001] = 0x09B8;
		var000E[0x0002] = 0x06E0;
	labelFunc04A3_053E:
		UI_sprite_effect_68(0x0001, var000E[0x0001], var000E[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
	labelFunc04A3_0564:
		if(!(UI_get_item_shape_18(item) == 0x031F)) goto labelFunc04A3_0645;
		Func09AA();
		var000F = UI_find_nearby_41(0xFF5D, 0x031F, 0x001E, 0x0000);
		var000F = (var000F & UI_find_nearby_41(0xFF5D, 0x0339, 0x001E, 0x0000));
		var000F = (var000F & UI_find_nearby_41(0xFF5D, 0x00E0, 0x001E, 0x0000));
		enum();
	labelFunc04A3_05B5:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc04A3_05E0);
		var0004 = UI_get_object_position_20(var0012);
		var0004[0x0003] = 0x0000;
		UI_move_object_4B(var0012, var0004);
		goto labelFunc04A3_05B5;
	labelFunc04A3_05E0:
		var0013 = UI_find_nearby_41(0xFF5D, 0x00A3, 0x001E, 0x0000);
		enum();
	labelFunc04A3_05F4:
		for (var0016 in var0013 with var0014 to var0015 atend labelFunc04A3_0637);
		var0002 = UI_die_roll_17(0x0001, 0x0003);
		var0000 = UI_execute_usecode_array_01(var0016, [0x27, var0002, 0x50, 0x27, var0002, 0x0B, Iolo, 0x0004, 0x27, var0002, 0x2D]);
		goto labelFunc04A3_05F4;
	labelFunc04A3_0637:
		UI_remove_npc_4C(0xFF5D);
		var0005 = UI_get_party_list_2B();
	labelFunc04A3_0645:
		if(!(UI_get_item_shape_18(item) == 0x01FB)) goto labelFunc04A3_0715;
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x52, "@Perhaps I've a use for thee after all...@", 0x01, 0x70, 0x27, 0x0001, 0x6F, 0x27, 0x0004, 0x70, 0x27, 0x0003, 0x61]);
		var0004 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x000D, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		UI_remove_item_84(item);
		var0017 = UI_create_new_object2_2D(0x017D, var0004);
		UI_set_polymorph_B3(var0017, 0x01CC);
		UI_set_item_flag_A4(var0017, 0x001D);
		Func09AD(var0017);
		var0003 = UI_find_direction_22(var0017, 0xFE9C);
		var0000 = UI_execute_usecode_array_01(var0017, [0x59, var0003, 0x27, 0x0004, 0x65, 0x27, 0x0003, 0x66, 0x27, 0x0003, 0x67, 0x27, 0x0004, 0x55, 0x04A3]);
		abrt();
	labelFunc04A3_0715:
		if(!(UI_get_item_shape_18(item) == 0x017D)) goto labelFunc04A3_076F;
		var0018 = UI_find_nearest_15(0xFF5D, 0x0124, 0x0005);
		if(!var0018) goto labelFunc04A3_076E;
		var0000 = UI_execute_usecode_array_01(0xFF5D, [0x27, 0x0003, 0x6C, 0x27, 0x0002, 0x6D]);
		var0000 = UI_execute_usecode_array_01(var0018, [0x52, "@And now, I fear I must be going.@", 0x27, 0x0007, 0x55, 0x04A3]);
	labelFunc04A3_076E:
		abrt();
	labelFunc04A3_076F:
		if(!(UI_get_item_shape_18(item) == 0x0124)) goto labelFunc04A3_07F3;
		var0017 = UI_find_nearby_41(0xFF5D, 0x017D, 0x0014, 0x0008);
		if(!var0017) goto labelFunc04A3_07B0;
		UI_set_schedule_type_25(var0017, 0x0000);
		var0000 = UI_execute_usecode_array_01(var0017, [0x52, "@Die, mortal!@"]);
	labelFunc04A3_07B0:
		var0004 = UI_get_object_position_20(0xFF5D);
		UI_remove_npc_4C(0xFF5D);
		UI_sprite_effect_68(0x0007, (var0004[0x0001] - 0x0002), (var0004[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		Func09AA();
		abrt();
	labelFunc04A3_07F3:
		return;
}
// externs
extern var Func0955 0x955 ();
extern Func0922 0x922 (var var0000);
extern var Func099D 0x99D (var var0000);
extern Func08AF 0x8AF (var var0000, var var0001);

Func04A5 0x4A5 (var var0000)
{
	var var0001;
	var var0002;

	if(!((event == 0x0007) && UI_get_item_flag_A3(0xFF5B, 0x001D))) goto labelFunc04A5_00BA;
	var0000 = UI_get_cont_items_33(item, 0x0326, 0xFE99, 0xFE99);
	if(!var0000) goto labelFunc04A5_00BA;
	UI_clear_item_flag_A5(0xFF5B, 0x001D);
	UI_play_sound_effect_16(0x004C);
	gflags[0234] = true;
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x04A5], 0x0002);
	UI_show_npc_face0_05(0xFEFF, 0x0000);
	UcMessage("\"At last thou hast found me, Avatar... I thought that I was free of thee when that strange lightning teleported me to this place...\" ~\"But now we are joined and I shall remain with thee until thou dost release me!\"");
	UcSay;
	UcMessage("\"I have fulfilled the task thou didst set for me back in Britannia. Did I not serve thee well on the Isle of Fire? Thou didst not bind me for service in another land. Thou shouldst release me from my prison to be free again. Wilt thou?\"");
	UcSay;
	if(!(Func0955() == true)) goto labelFunc04A5_00AE;
	UcMessage("\"Free! Free! Free at last!\"");
	UcSay;
	UcMessage("\"Fool! Thou hast no idea what thou hast lost...\"");
	UcSay;
	UI_remove_npc_face0_07();
	Func0922(0x0017);
	UI_obj_sprite_effect_91(0xFE9C, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x004C);
	gflags[023A] = true;
	gflags[00CF] = false;
	goto labelFunc04A5_00BA;
	labelFunc04A5_00AE:
		UcMessage("\"The journey into this realm weakened thine hold on me, Avatar. Beware! If thou wilt not release me honorably, I will have my vengeance upon thee if I escape!\"");
		UcSay;
		UcMessage("\"But perhaps thou wilt have need of me yet...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc04A5_00BA:
		if(!(event == 0x0002)) goto labelFunc04A5_00DF;
		if(!((gflags[023A] == false) && (gflags[00CF] == true))) goto labelFunc04A5_00DF;
		if(!(!Func099D(item))) goto labelFunc04A5_00DF;
		Func08AF(item, 0x0000);
	labelFunc04A5_00DF:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func086A 0x86A ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func04A8 0x4A8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func0994();
	var0004 = UI_part_of_day_48();
	var0005 = false;
	if(!((var0004 > 0x0001) || (var0004 < 0x0006))) goto labelFunc04A8_003F;
	var0004 = "day";
	goto labelFunc04A8_0045;
	labelFunc04A8_003F:
		var0004 = "evening";
	labelFunc04A8_0045:
		if(!(event == 0x0001)) goto labelFunc04A8_007B;
		UI_item_say_4D(0xFE9C, "@Hello!@");
		0xFF58;
		calle();
		Func097F(0xFF58, (("@Felicitations, " + var0000) + ".@"), 0x0002);
		UI_set_schedule_type_25(0xFF58, 0x0003);
	labelFunc04A8_007B:
		if(!(event == 0x0009)) goto labelFunc04A8_087E;
		UI_run_schedule_B7(0xFF58);
		UI_clear_item_say_4E(0xFF58);
		UI_show_npc_face0_05(0xFF58, 0x0000);
		if(!UI_get_item_flag_A3(0xFF58, 0x0006)) goto labelFunc04A8_00BC;
		UI_set_schedule_type_25(0xFF58, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc04A8_00CA;
	labelFunc04A8_00BC:
		UI_run_schedule_B7(0xFF58);
		UI_add_answer_0C("join");
	labelFunc04A8_00CA:
		var0006 = UI_get_item_flag_A3(0xFF58, 0x001C);
		if(!gflags[0004]) goto labelFunc04A8_01F4;
		if(!(!UI_get_item_flag_A3(0xFF22, 0x0004))) goto labelFunc04A8_012B;
		UcMessage("\"I am not a cowardly man, ");
		UcMessage(var0000);
		UcMessage(", but I am powerfully glad to see thee again. I am in terrible trouble.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list2_AA()) < 0x0005)) goto labelFunc04A8_0121;
		UcMessage("\"In fact, I think that I will stay close by thee -- that will be safest for me!\"");
		UcSay;
		UI_add_to_party_26(0xFF58);
		gflags[000F] = true;
		UI_remove_answer_0D("join");
		UI_add_answer_0C("leave");
	labelFunc04A8_0121:
		UI_add_answer_0C("trouble");
		goto labelFunc04A8_01DD;
	labelFunc04A8_012B:
		if(!gflags[0137]) goto labelFunc04A8_0145;
		UcMessage("\"I hope that thy quest doth fare well, ");
		UcMessage(var0000);
		UcMessage(". Hast thou yet recovered the Rock Serpent?\"");
		UcSay;
		UI_add_answer_0C("Rock Serpent");
		goto labelFunc04A8_01DD;
	labelFunc04A8_0145:
		if(!gflags[00FB]) goto labelFunc04A8_0158;
		UcMessage("\"I hope that thy quest doth fare well, ");
		UcMessage(var0000);
		UcMessage(". How might a humble man such as myself be of aid to thee?\"");
		UcSay;
		goto labelFunc04A8_01DD;
	labelFunc04A8_0158:
		UcMessage("\"If I were not quaking with fear, ");
		UcMessage(var0000);
		UcMessage(", I would go down on both knees before thee. I am so grateful for thine aid.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFF58, 0x0006)) goto labelFunc04A8_0180;
		UI_remove_from_party_27(0xFF58);
		Func086A();
		UI_remove_answer_0D("leave");
	labelFunc04A8_0180:
		UI_set_new_schedules_B6(0xFF58, [0x0000, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x001A, 0x000C, 0x001A, 0x0004], [0x09A7, 0x0778, 0x08C7, 0x0714, 0x099F, 0x078F, 0x08BE, 0x0707, 0x08B6, 0x070C]);
		UI_set_schedule_type_25(0xFF58, 0x000C);
		UI_add_answer_0C("grateful");
	labelFunc04A8_01DD:
		UI_add_answer_0C("happenings");
		if(!gflags[0149]) goto labelFunc04A8_01F1;
		UI_add_answer_0C("thy death");
	labelFunc04A8_01F1:
		goto labelFunc04A8_0262;
	labelFunc04A8_01F4:
		if(!(var0003 == 0x000F)) goto labelFunc04A8_0251;
		if(!(var0006 == false)) goto labelFunc04A8_023A;
		UI_set_item_flag_A4(0xFF58, 0x001C);
		Func09AC(0xFF58, Dupre, 0x0000, 0x000C);
		UI_set_schedule_type_25(0xFF58, 0x0014);
		UcMessage("\"I am Stefano, late of Moonshade, and obtainer of rarities...\"");
		UcSay;
		UcMessage("\"I was unjustly imprisoned here, ");
		UcMessage(var0000);
		UcMessage("! I'll freely admit that I am no fighter... But I have a quick wit and information that should help us pass out of this foul place. Perhaps if we join together, we have some small chance of escape.\"");
		UcSay;
		goto labelFunc04A8_023E;
	labelFunc04A8_023A:
		UcMessage("\"How may I aid thee, Avatar?\"");
		UcSay;
	labelFunc04A8_023E:
		UI_add_answer_0C(["Moonshade", "rarities", "information"]);
		goto labelFunc04A8_0262;
	labelFunc04A8_0251:
		UcMessage("\"I see that thou art still hale and whole, Avatar!\"");
		UcSay;
		UI_add_answer_0C(["Moonshade", "rarities"]);
	labelFunc04A8_0262:
		if(!(gflags[000F] && ((!UI_get_item_flag_A3(0xFF58, 0x0006)) && UI_get_cont_items_33(0xFF58, 0xFE99, 0xFE99, 0xFE99)))) goto labelFunc04A8_028C;
		UI_add_answer_0C("belongings");
	labelFunc04A8_028C:
		UI_add_answer_0C(["bye"]);
	labelFunc04A8_0296:
		UcAsk;
		cmps("thy death");
		UI_remove_answer_0D("thy death");
		gflags[0149] = false;
		UcMessage("\"Thou dost recall correctly -- I was dead when last we met...");
		UcSay;
		UcMessage("\"Next I remember, this beautiful woman was standing over me. She kissed me, and a warmth spread throughout my body...\"");
		UcSay;
		UcMessage("\"She said her name was Thoxa, and that I had to live in order to fulfill thy destiny, ");
		UcMessage(var0002);
		UcMessage(". And so I'm here.\"");
		UcSay;
	labelFunc04A8_02BE:
		cmps("change subject", "nothing more");
		UI_pop_answers_0F();
		if(!var0005) goto labelFunc04A8_02DA;
		UcMessage("\"Umm... I apologize for droning on and on. What wouldst thou like to speak about?\"");
		UcSay;
		goto labelFunc04A8_02EA;
	labelFunc04A8_02DA:
		UcMessage("\"My talk bores thee, eh? So thou dost think that I drone on and on with my long-winded stories...\"");
		UcSay;
		UcMessage("\"Well, actually, 'tis the truth. A bad habit that I'd like to be rid of.\"");
		UcSay;
		UcMessage("\"At any rate, what dost thou desire to speak of?\"");
		UcSay;
		var0005 = true;
	labelFunc04A8_02EA:
		cmps("belongings");
		UI_remove_answer_0D("belongings");
		Func086A();
	labelFunc04A8_02FC:
		cmps("Rock Serpent");
		UI_remove_answer_0D("Rock Serpent");
		UcMessage("\"Thou hast but to look within the vault behind mine old house, ");
		UcMessage(var0002);
		UcMessage(". I will not touch it again. It hath brought me enough bad luck...\"");
		UcSay;
		UcMessage("\"I am not a bold adventurer like thee, ");
		UcMessage(var0002);
		UcMessage(". I have no need of such things, but I am sure that thou wilt find it useful.\"");
		UcSay;
		UcMessage("\"And I thank thee once again for saving my life. I shall never forget thee.\"");
		UcSay;
		gflags[00FB] = true;
	labelFunc04A8_0327:
		cmps("happenings");
		UI_remove_answer_0D("happenings");
		UcMessage("\"A terrible, glowing being came to Moonshade, and battled against all of the Mages! I believe them to be dead...\"");
		UcSay;
		UcMessage("\"I did not stay to be sure, but came here to hide myself. 'Tis the end of the world, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc04A8_0344:
		cmps("grateful");
		UI_remove_answer_0D("grateful");
		UcMessage("\"I thank thee a thousand times over for saving my life, ");
		UcMessage(var0002);
		UcMessage("! There is no way for me to repay thee, but something I possess might be of use to thee on thy quest.\"");
		UcSay;
		UcMessage("\"This is the key to the vault behind mine old house, which is west of the city. With it, thou wilt be able to retrieve the cursed Rock Serpent that hath caused me such trouble. Take it with my blessings!\"");
		UcSay;
		var0007 = Func099B(0xFE9C, 0x0001, 0x0281, 0x00C2, 0x0009, 0x0000, true);
		gflags[0137] = true;
	labelFunc04A8_037E:
		cmps("trouble");
		UI_remove_answer_0D("trouble");
		UcMessage("\"This all started with a piece of work I did for the late MageLord, which involved procuring some stockings...\"");
		UcSay;
		UcMessage("\"'Tis a long story, but to be brief, Columna the Green Witch hated me for what I did. She is dead now, but her curse lives on.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["curse", "stockings", "Columna", "change subject"]);
	labelFunc04A8_03AC:
		cmps("curse");
		UI_remove_answer_0D("curse");
		UcMessage("\"I'd spit on her grave, if she had one, the hag!\"");
		UcSay;
		UcMessage("\"From the depths of some hell, she hath summoned up a tireless warrior to pursue me!\"");
		UcSay;
		UcMessage("\"'Tis a Death Knight, whose sole purpose is to slay the victim he is promised. Columna pledged my soul to this one.\"");
		UcSay;
		UcMessage("\"Surely, thou canst save me! Slay him for me, and thou shalt have my most priceless reward!\"");
		UcSay;
		UI_add_answer_0C(["slay", "reward", "Where is he?"]);
	labelFunc04A8_03DB:
		cmps("slay");
		UI_remove_answer_0D("slay");
		UcMessage("\"Well, I don't know how to kill him. I only know that he is very, very tough. Mayhap immortal.\"");
		UcSay;
		var0008 = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!((var0008 != 0xFF58) && (var0008 != 0xFE9C))) goto labelFunc04A8_0429;
		UI_show_npc_face1_06(var0008, 0x0000);
		UcMessage("\"Perhaps nothing can stop a Death Knight.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc04A8_0429:
		UcMessage("\"Don't let me discourage thee from making the attempt to slay the thing. My life depends on it, friend!\"");
		UcSay;
	labelFunc04A8_042D:
		cmps("reward");
		UI_remove_answer_0D("reward");
		UcMessage("\"Well, thou dost see, I have this item which might interest thee. In fact, I think it belongs to thee. I suspect one of those magic storms brought it my way.\"");
		UcSay;
		UcMessage("\"If I was an honorable man, I suppose I'd give it to thee straight away. But I'm not. So if thou canst kill the Death Knight, the Rock Serpent is thine. If not...\"");
		UcSay;
		UcMessage("\"And do not think of killing me and taking the Serpent. I have it well hidden.\"");
		UcSay;
	labelFunc04A8_0448:
		cmps("Where is he?");
		UI_remove_answer_0D("Where is he?");
		UcMessage("\"Wish I knew. He doth charge at me when I least expect it. Sometimes he appears from thin air!\"");
		UcSay;
	labelFunc04A8_045B:
		cmps("Moonshade");
		UI_remove_answer_0D("Moonshade");
		UcMessage("\"No, I'm no mage... Though they tell me that I have a bit of the ability. But what good is that when the entire city is ruled by Adepts? No, no, 'tis not for me!\"");
		UcSay;
		UcMessage("\"Give me a good challenging search any day! The harder something is to find, the better I like it.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["ability", "Adepts", "search", "change subject"]);
	labelFunc04A8_0489:
		cmps("stockings");
		UI_remove_answer_0D("stockings");
		UcMessage("\"Filbercio promised me a small but substantial fortune if I could procure a certain pair of moonsilk stockings.\"");
		UcSay;
		UcMessage("\"It seems that he was eager to enjoy the pleasures of one of the female Mages, and felt that these stockings would provide leverage for his arguments -- if thou dost see where I am reaching...\"");
		UcSay;
		UcMessage("\"So I stole -- er, acquired -- the stockings for him. But then the lightning stole them from me. Filbercio accused me of swindling him, and tossed me in Dungeon Freedom!\"");
		UcSay;
	labelFunc04A8_04A4:
		cmps("Columna");
		UI_remove_answer_0D("Columna");
		UcMessage("\"If thou must know -- Columna is married to Melino, an old and doddering Mage but no fool. 'Tis no surprise that she lusts for young Torrissio!\"");
		UcSay;
		UcMessage("\"The stockings were evidence, since only Columna wears this sort, and because I found them in Torrissio's manor.\"");
		UcSay;
		UcMessage("\"However, Columna found out that I stole them, and she wants mine head on a platter. Literally!\"");
		UcSay;
		UcMessage("\"I'm glad the old witch is dead. I only wish her curse had died with her...\"");
		UcSay;
	labelFunc04A8_04C3:
		cmps("ability");
		UI_remove_answer_0D("ability");
		UcMessage("\"Magic! It seems as if some dark magic is following me these days...\"");
		UcSay;
		UcMessage("\"I sometimes carry a spell scroll or two... May as well make use of any edge I can acquire.\"");
		UcSay;
		if(!(var0003 == 0x000F)) goto labelFunc04A8_04E8;
		UcMessage("\"In fact, if we escape, I suggest that thou shouldst acquire as many spell scrolls as thou canst -- they come in very handy!\"");
		UcSay;
	labelFunc04A8_04E8:
		cmps("Adepts");
		UI_remove_answer_0D("Adepts");
		UcMessage("\"If Moonshade weren't ruled by the Adepts, canst thou imagine what it would be like trying to govern all those powerful mages? With all their fragile egos? -- LARGE, fragile egos.\"");
		UcSay;
		UcMessage("\"If there's one central problem with the Adepts, 'tis that they have no regard for those with little or no magic. However, in some ways, that makes my life easier.\"");
		UcSay;
		UI_add_answer_0C(["egos", "easier"]);
	labelFunc04A8_050C:
		cmps("egos");
		UI_remove_answer_0D("egos");
		UcMessage("\"Thou dost not know the half of it! One time I was passing time at the Blue Boar while Frigidazzi was there.\"");
		UcSay;
		UcMessage("\"Rotoluncia entered and rather pointedly remarked that Frigidazzi was looking excessively rumpled that day. And suddenly they were at each other...\"");
		UcSay;
		UcMessage("\"Of course, they were pretty much evenly matched. Until Celennia showed up that is. But 'tis that I refer to... Fragile egos and hot tempers, and magic to top it. Not a safe combination.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Frigidazzi", "Rotoluncia", "Celennia", "nothing more"]);
	labelFunc04A8_053E:
		cmps("Frigidazzi");
		UI_remove_answer_0D("Frigidazzi");
		UcMessage("\"Thou knowest the kind of beauty that artisans create? 'Tis like unto Frigidazzi -- like a cold marble carving.\"");
		UcSay;
		UcMessage("\"Oh, I'll grant that there's a hot predator under that shroud of ice, but few have seen it.\"");
		UcSay;
		UcMessage("\"Like the cold spells she excels in, Frigidazzi certainly knows how to lower the temperature in a room...\"");
		UcSay;
		UcMessage("\"'Tis a wonder that Filbercio hath not died of frostbite by now! I cannot discern if he's a brave man... or merely stupid!\"");
		UcSay;
	labelFunc04A8_055D:
		cmps("Rotoluncia");
		UI_remove_answer_0D("Rotoluncia");
		UcMessage("\"Dead, is she? At thine hand?\"");
		UcSay;
		UcMessage("\"I'm impressed at thy skills, ");
		UcMessage(var0000);
		UcMessage("! Most could not have killed the Red Witch.\"");
		UcSay;
	labelFunc04A8_057A:
		cmps("Celennia");
		UI_remove_answer_0D("Celennia");
		UcMessage("\"I would rather face the ire of Frigidazzi AND Rotoluncia than that of Celennia! She's worse than a cat, ");
		UcMessage(var0000);
		UcMessage("! She'll toy with thee before she kills thee -- She wants thee to have time to consider what will happen to thee, and why.\"");
		UcSay;
		UcMessage("\"Celennia was Frigidazzi's dearest friend until they had a fight. I do not know what it was about but I wouldn't be surprised if it was caused by Frigidazzi being friendly with the MageLord... I think Celennia thought she was to be his next companion.\"");
		UcSay;
		UcMessage("\"All I know is that the fight was spectacular, and Celennia was on Hawk's ship the next day, bound for Sleeping Bull. They say she doth have relatives in Monitor...\"");
		UcSay;
		var0009 = true;
	labelFunc04A8_059F:
		cmps("Vasculio");
		UI_remove_answer_0D("Vasculio");
		UcMessage("\"I'm not sure I can speak of it here, in this awful place. Old Fedabiblio uses it as a tale to frighten the novices... And I'll admit that it made an impression on me.\"");
		UcSay;
		UcMessage("\"Vasculio was an Adept who lived outside of the Strictures. He tortured and killed without restraint, using death agony to feed power into his spells.\"");
		UcSay;
		UcMessage("\"The Council put him to death, but his power had grown beyond even that limitation. They found his grave empty not long after burial... And they say he still wanders the world looking for new victims.\"");
		UcSay;
		UI_add_answer_0C("Strictures");
	labelFunc04A8_05C1:
		cmps("Strictures");
		UI_remove_answer_0D("Strictures");
		UcMessage("\"The Strictures are the rules that all mages must obey, novice and Adept alike. They address what experimentation can be done, what reagents can be used or sold... things like that.\"");
		UcSay;
		UcMessage("\"The Strictures are meant to keep mages from abandoning all bonds of civilized behavior in pursuit of knowledge. As thou shouldst know, ");
		UcMessage(var0000);
		UcMessage(", there are some things in the world that would be better unknown.\"");
		UcSay;
	labelFunc04A8_05DE:
		cmps("easier");
		UI_remove_answer_0D("easier");
		UcMessage("\"As I said, ");
		UcMessage(var0000);
		UcMessage(", I acquire rarities. And sometimes those items are... previously owned, shall we say?\"");
		UcSay;
		UcMessage("\"But Adepts, being the pompous lot they are, fail to see anything other than a magical attack as a threat.\"");
		UcSay;
		UcMessage("\"Most Adepts resort to simple physical traps to guard their mansions. Of course, there's always the automatons to deal with... But once I know that secret, their home is as good as mine!\"");
		UcSay;
		UI_add_answer_0C(["physical traps", "automatons"]);
	labelFunc04A8_060C:
		cmps("physical traps");
		UI_remove_answer_0D("physical traps");
		UcMessage("\"Oh, it could be anything from sliding walls, to fireballs that shoot out of the wall, to secret doors.  And dealing with most of those are easy enough, if thou art careful.\"");
		UcSay;
		UcMessage("\"The automatons are harder to deal with...\"");
		UcSay;
	labelFunc04A8_0623:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"Those are the constructs that Torrissio makes. They are quite fast and fierce fighters. Definitely not what thou wouldst care to encounter in a dark hallway, I'll tell thee! I still have the scars to prove it...\"");
		UcSay;
	labelFunc04A8_0636:
		cmps("search");
		UI_remove_answer_0D("search");
		UcMessage("\"When people hire my services, they know exactly what they need and where it is. Or perhaps I should say that they know whose mansion it is in.\"");
		UcSay;
		UcMessage("\"From there I must determine how to enter, and when. And then I have to outwit the Adept who wished to keep it hidden from my talents. I have yet to be outdone, I might add.\"");
		UcSay;
	labelFunc04A8_064D:
		cmps("rarities");
		UI_remove_answer_0D("rarities");
		UcMessage("\"I'll admit that that title covers quite a bit... Scrolls, magical apparatus, lab equipment, reagents. Anything that a client thinks is of value -- that's what I mean by rarities.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["magical apparatus", "client", "change subject"]);
	labelFunc04A8_0674:
		cmps("magical apparatus");
		UI_remove_answer_0D("magical apparatus");
		UcMessage("\"Wands, crystal balls... things like that.\"");
		UcSay;
		UcMessage("\"Of course I'll never admit to anything in specific. I value my life too much. Unless I'm actually caught in the act, no one can prove anything... And I stay alive a bit longer. Thou mightest say it's a game of sorts.\"");
		UcSay;
	labelFunc04A8_068B:
		cmps("client");
		UI_remove_answer_0D("client");
		UcMessage("\"Oh, no! Ask no more! I guarantee my clients complete secrecy.\"");
		UcSay;
		UcMessage("\"If I ever forget that promise, dealing with mages, I'll be very dead, very fast. Or at least I hope I'll be dead... There are a few drawbacks to knowing anything about magic, ");
		UcMessage(var0000);
		UcMessage(". All the alternatives to being dead come too readily to mind!\"");
		UcSay;
	labelFunc04A8_06A8:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"Somewhere, within this labyrinth, there are two switches that must be thrown... at the same time, in order to continue to the exit. I do not know where it is exactly, but I'm sure that it will be apparent.\"");
		UcSay;
		UcMessage("\"Without me to aid thee, thou hast no chance of winning free of this place for all thy prowess. And without thee, I have no hope of surmounting what lies in the next room.\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["next room", "change subject"]);
	labelFunc04A8_06D0:
		cmps("next room");
		UI_remove_answer_0D("next room");
		UcMessage("\"One of the things I bless about my peculiar line of work is the ability to move silently, ");
		UcMessage(var0000);
		UcMessage(". It may be the only thing that saved my life this time...\"");
		UcSay;
		UcMessage("\"When I came into this room, I heard some sort of commotion in the next room. When I sneaked into the entrance, all I saw was a mage and a VERY, VERY large monster before I ran back in here.\"");
		UcSay;
		UcMessage("\"Last time I looked, they were still in there...\"");
		UcSay;
		UI_add_answer_0C(["mage", "monster"]);
	labelFunc04A8_06FE:
		cmps("mage");
		UI_remove_answer_0D("mage");
		UcMessage("\"I did not recognize him. But by the robes, I judged him a mage. I have heard that a few foolhardy mages have attempted to sneak into these tunnels in search of Stoneheart. Few who try ever return to the outside world.\"");
		UcSay;
		UI_add_answer_0C("Stoneheart");
	labelFunc04A8_0718:
		cmps("Stoneheart");
		UI_remove_answer_0D("Stoneheart");
		UcMessage("\"It is forbidden to possess Stoneheart, ");
		UcMessage(var0000);
		UcMessage(", and for good reason. It is the basis for the reagent that fueled all of Vasculio's spells -- and some say it can steal a man's wits. It is very dangerous.\"");
		UcSay;
		UI_add_answer_0C("Vasculio");
	labelFunc04A8_0738:
		cmps("monster");
		UI_remove_answer_0D("monster");
		UcMessage("\"I... I think it was a... a dragon!\"");
		UcSay;
		UcMessage("\"Oh, please, ");
		UcMessage(var0000);
		UcMessage("! Thou must let me join thee!\"");
		UcSay;
		UcMessage("\"Without mine aid thou canst not hope to escape, and I am no fighter! Without thee I am a dead man!\"");
		UcSay;
	labelFunc04A8_0759:
		cmps("join");
		if(!gflags[0239]) goto labelFunc04A8_076E;
		UcMessage("\"No, but thank thee for asking.\"");
		UcSay;
		goto labelFunc04A8_078B;
	labelFunc04A8_076E:
		UI_remove_answer_0D("join");
		UI_add_answer_0C("leave");
		UcMessage("\"Thou and I, we'll do good together!\"");
		UcSay;
		UI_add_to_party_26(0xFF58);
		gflags[000F] = true;
	labelFunc04A8_078B:
		cmps("leave");
		UI_remove_answer_0D("leave");
		if(!gflags[0004]) goto labelFunc04A8_07AD;
		UcMessage("\"But that thing will kill me, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc04A8_07B7;
	labelFunc04A8_07AD:
		UcMessage("\"But thou needest mine aid, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
	labelFunc04A8_07B7:
		cmps("bye");
		if(!(gflags[0004] && (!gflags[00FA]))) goto labelFunc04A8_0814;
		UcMessage("\"Wait. I almost forgot about this...\"");
		UcSay;
		UcMessage("\"Found this object when I happened to be passing through one of the manors, if thou knowest what I mean...\"");
		UcSay;
		UcMessage("\"Let me give this to thee, as a token of my great esteem for thine ability to save my life.\"");
		UcSay;
		UcMessage("\"It looks to be one of the Serpent Teeth that Mad Erstam used to collect.\"");
		UcSay;
		var0007 = Func099B(0xFE9C, 0x0001, 0x022F, 0x0000, 0x000E, 0x0000, true);
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x04A8], 0x0014);
		gflags[00FA] = true;
	labelFunc04A8_0814:
		UI_remove_npc_face0_07();
		if(!UI_get_item_flag_A3(0xFF58, 0x0006)) goto labelFunc04A8_0840;
		Func097F(0xFF58, "@Pleased to be of service.@", 0x0002);
		Func097F(0xFE9C, "@Thanks!@", 0x0000);
		goto labelFunc04A8_0879;
	labelFunc04A8_0840:
		Func097F(0xFE9C, "@So long!@", 0x0000);
		if(!(gflags[0004] && (!UI_get_item_flag_A3(0xFF22, 0x0004)))) goto labelFunc04A8_086D;
		Func097F(0xFF58, "@Please protect me...@", 0x0000);
		goto labelFunc04A8_0879;
	labelFunc04A8_086D:
		Func097F(0xFF58, "@'Til we meet again!@", 0x0002);
	labelFunc04A8_0879:
		abrt();
	labelFunc04A8_087A:
		goto labelFunc04A8_0296;
	labelFunc04A8_087D:
		end_conv();
	labelFunc04A8_087E:
		if(!(event == 0x000E)) goto labelFunc04A8_089F;
		Func097F(0xFF58, "@Eeek! A spider!@", 0x0002);
		Func097F(0xFF58, "@Kill it, Avatar!@", 0x0016);
		abrt();
	labelFunc04A8_089F:
		if(!(event == 0x000A)) goto labelFunc04A8_0989;
		var000A = UI_find_nearest_15(0xFE9C, 0x0313, 0x0003);
		var000B = UI_find_nearest_15(0xFF58, 0x0313, 0x0003);
		if(!(var000A && var000B)) goto labelFunc04A8_097F;
		var000C = UI_direction_from_A2(0xFE9C, var000A);
		var000D = UI_direction_from_A2(0xFF58, var000B);
		var000E = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0005, 0x59, var000C, 0x52, "@Now, Stefano!@", 0x27, 0x0004, 0x6C, 0x27, 0x0002, 0x61]);
		var000E = UI_execute_usecode_array_01(0xFF58, [0x23, 0x27, 0x0005, 0x27, 0x0002, 0x59, var000D, 0x27, 0x0002, 0x52, "@All right!@", 0x6C, 0x27, 0x0002, 0x61]);
		var000E = UI_execute_usecode_array_01(var000A, [0x23, 0x27, 0x000C, 0x55, 0x0313]);
		var000E = UI_execute_usecode_array_01(var000B, [0x23, 0x27, 0x000C, 0x55, 0x0313, 0x55, 0x04A8]);
	labelFunc04A8_097F:
		UI_set_schedule_type_25(0xFF58, 0x001F);
	labelFunc04A8_0989:
		if(!(event == 0x0002)) goto labelFunc04A8_0BB5;
		if(!gflags[0007]) goto labelFunc04A8_0A2C;
		gflags[0007] = false;
		UI_show_npc_face0_05(0xFF58, 0x0000);
		UcMessage("\"We are back in Moonshade! This means that we have won our freedom!\" *\"What a team we made! With thy muscle and mine intellect we showed them who they can and cannot keep in that prison. Thank thee, Avatar.\" *\"I must away now for other duties call. But if thou art ever in need of my talents, do but call and I shall accommodate thee.\"");
		UcSay;
		Func097F(0xFF58, "@See thee someday...@", 0x0000);
		Func097F(0xFE9C, "@So long, Stefano.@", 0x0005);
		UI_remove_from_party_27(0xFF58);
		Func086A();
		UI_set_new_schedules_B6(0xFF58, [0x0000, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x001A, 0x000C, 0x001A, 0x0004], [0x09A7, 0x0778, 0x08C7, 0x0714, 0x099F, 0x078F, 0x08BE, 0x0707, 0x08B6, 0x070C]);
		UI_set_schedule_type_25(0xFF58, 0x0014);
		UI_run_schedule_B7(0xFF58);
		abrt();
		goto labelFunc04A8_0BB5;
	labelFunc04A8_0A2C:
		if(!gflags[0004]) goto labelFunc04A8_0B45;
		if(!UI_get_item_flag_A3(0xFF22, 0x0004)) goto labelFunc04A8_0A40;
		abrt();
	labelFunc04A8_0A40:
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x04A8], (UI_get_random_00(0x0064) + 0x0032));
		if(!UI_npc_nearby_3A(0xFF58)) goto labelFunc04A8_0B42;
		UI_play_music_39(0x001E, Func09A0(0x0005, 0x0001));
		var0007 = UI_approach_avatar_BF(0xFF22, 0x0078, 0x0028);
		if(!(!var0007)) goto labelFunc04A8_0AE0;
		var0007 = UI_get_object_position_20(0xFE9C);
		var0007[0x0001] = (var0007[0x0001] + 0x000A);
		UI_move_object_4B(0xFF22, var0007);
		UI_sprite_effect_68(0x001A, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
	labelFunc04A8_0AE0:
		UI_set_alignment_4A(0xFF22, 0x0002);
		UI_set_schedule_type_25(0xFF22, 0x0000);
		UI_set_oppressor_5E(0xFF22, 0xFF58);
		UI_set_opponent_5B(0xFF22, 0xFF58);
		UI_clear_item_say_4E(0xFF22);
		Func097F(0xFF22, "@Die, Stefano!@", 0x0000);
		UI_clear_item_say_4E(0xFF58);
		Func097F(0xFF58, "@Save me!@", 0x0002);
		UI_set_schedule_type_25(0xFF58, 0x0000);
		UI_set_attack_mode_59(0xFF58, 0x0007);
	labelFunc04A8_0B42:
		goto labelFunc04A8_0BB5;
	labelFunc04A8_0B45:
		var000F = UI_find_nearby_41(item, 0x00E9, 0x0028, 0x0000);
		enum();
	labelFunc04A8_0B57:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc04A8_0BB5);
		if(!(UI_get_item_frame_1A(var0012) == 0x0002)) goto labelFunc04A8_0BB2;
		UI_set_item_frame_1B(var0012, 0x0001);
		var0013 = UI_get_object_position_20(var0012);
		UI_sprite_effect_68(0x000D, (var0013[0x0001] - 0x0002), (var0013[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0043);
	labelFunc04A8_0BB2:
		goto labelFunc04A8_0B57;
	labelFunc04A8_0BB5:
		return;
}
// externs
extern var Func099F 0x99F (var var0000, var var0001, var var0002);
extern Func08AE 0x8AE ();
extern Func09AA 0x9AA ();
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);

Func04A9 0x4A9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0009)) goto labelFunc04A9_0131;
	UI_clear_item_say_4E(0xFF57);
	var0000 = Func099F(0x034A, 0xFE99, 0x000F);
	var0001 = Func099F(0x034A, 0xFE99, 0x0008);
	if(!(var0000 || var0001)) goto labelFunc04A9_00CC;
	if(!(var0000 && var0001)) goto labelFunc04A9_004E;
	UI_item_say_4D(0xFF57, "@Die, thief!@");
	goto labelFunc04A9_006B;
	labelFunc04A9_004E:
		if(!var0000) goto labelFunc04A9_0061;
		UI_item_say_4D(0xFF57, "@Thou shalt not steal my bloodspawn!@");
		goto labelFunc04A9_006B;
	labelFunc04A9_0061:
		UI_item_say_4D(0xFF57, "@I shan't reveal my secret!@");
	labelFunc04A9_006B:
		UI_set_polymorph_B3(0xFF57, 0x012E);
		gflags[0236] = false;
		gflags[0237] = true;
		UI_set_schedule_type_25(0xFF57, 0x0000);
		UI_set_alignment_4A(0xFF57, 0x0003);
		var0002 = UI_get_object_position_20(0xFF57);
		UI_sprite_effect_68(0x0009, (var0002[0x0001] - 0x0001), (var0002[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		goto labelFunc04A9_0131;
	labelFunc04A9_00CC:
		UI_item_say_4D(0xFF57, "@Thou shalt not have the reagent!@");
		UI_set_polymorph_B3(0xFF57, 0x01F2);
		gflags[0236] = true;
		gflags[0237] = false;
		UI_set_schedule_type_25(item, 0x000F);
		UI_set_alignment_4A(item, 0x0000);
		var0002 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0009, (var0002[0x0001] - 0x0001), (var0002[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		Func08AE();
	labelFunc04A9_0131:
		if(!(event == 0x000A)) goto labelFunc04A9_024F;
		var0003 = (UI_get_object_position_20(0xFF57) & (0xFE99 & 0x0006));
		var0004 = UI_find_nearby_41(var0003, 0x0113, 0x0001, 0x0010);
		if(!var0004) goto labelFunc04A9_024F;
		if(!(UI_get_item_quality_1C(var0004) == 0x0064)) goto labelFunc04A9_023A;
		UI_item_say_4D(item, "@Thou shalt not have my reagents!@");
		if(!gflags[0236]) goto labelFunc04A9_01A8;
		var0005 = UI_execute_usecode_array_01(item, [0x68, 0x27, 0x0002, 0x69, 0x27, 0x0002, 0x6A, 0x27, 0x0003, 0x55, 0x04A9]);
		goto labelFunc04A9_01CD;
	labelFunc04A9_01A8:
		var0005 = UI_execute_usecode_array_01(item, [0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0003, 0x6C, 0x27, 0x0002, 0x55, 0x04A9]);
	labelFunc04A9_01CD:
		var0006 = UI_find_nearest_15(item, 0x00E9, 0x000A);
		if(!var0006) goto labelFunc04A9_0223;
		UI_set_item_frame_1B(var0006, 0x0001);
		var0002 = UI_get_object_position_20(var0006);
		UI_sprite_effect_68(0x000D, (var0002[0x0001] - 0x0002), (var0002[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0043);
	labelFunc04A9_0223:
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFF57, 0x000F);
		goto labelFunc04A9_024F;
	labelFunc04A9_023A:
		var0005 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x55, 0x04A9], 0x0001);
	labelFunc04A9_024F:
		if(!(event == 0x000B)) goto labelFunc04A9_02AD;
		var0006 = UI_find_nearest_15(item, 0x00E9, 0x0005);
		if(!var0006) goto labelFunc04A9_02A3;
		var0002 = UI_get_object_position_20(var0006);
		UI_sprite_effect_68(0x0007, (var0002[0x0001] - 0x0002), (var0002[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
	labelFunc04A9_02A3:
		UI_remove_npc_4C(0xFF57);
		Func09AA();
	labelFunc04A9_02AD:
		if(!(event == 0x0002)) goto labelFunc04A9_0333;
		if(!(UI_get_item_shape_18(item) == UI_get_item_shape_18(0xFF57))) goto labelFunc04A9_0330;
		var0003 = (UI_get_object_position_20(0xFF57) & (0xFE99 & 0x0000));
		var0004 = UI_find_nearby_41(var0003, 0x025F, 0x0014, 0x0010);
		if(!var0004) goto labelFunc04A9_032D;
		var0007 = Dupre;
		var0008 = Dupre;
		var0009 = Iolo;
		Func090E(0xFF57, var0004, var0007, var0008, var0009, 0x04A9, UI_get_npc_object_23(0xFF57), 0x000B, false);
		UI_set_path_failure_A7(0x04A9, item, 0x000B);
	labelFunc04A9_032D:
		goto labelFunc04A9_0333;
	labelFunc04A9_0330:
		Func08AE();
	labelFunc04A9_0333:
		if(!(event == 0x0001)) goto labelFunc04A9_0343;
		UI_item_say_4D(item, "@Leave me be!@");
	labelFunc04A9_0343:
		if(!(event == 0x0007)) goto labelFunc04A9_03F6;
		if(!(gflags[0236] || gflags[0237])) goto labelFunc04A9_03CF;
		var0002 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0009, (var0002[0x0001] - 0x0001), (var0002[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		var0002[0x0001] = (var0002[0x0001] + 0x0001);
		var0002[0x0002] = (var0002[0x0002] + 0x0001);
		var000A = UI_create_new_object_2C(0x03D1);
		if(!var000A) goto labelFunc04A9_03CF;
		UI_set_item_frame_1B(var000A, 0x0001);
		var0005 = UI_update_last_created_2F(var0002);
	labelFunc04A9_03CF:
		UI_set_polymorph_B3(0xFF57, 0x0191);
		gflags[0236] = false;
		gflags[0237] = false;
		UI_set_alignment_4A(item, 0x0000);
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		Func08AE();
	labelFunc04A9_03F6:
		if(!(event == 0x0008)) goto labelFunc04A9_042E;
		if(!gflags[0236]) goto labelFunc04A9_0411;
		UI_set_polymorph_B3(0xFF57, 0x01F2);
		goto labelFunc04A9_042E;
	labelFunc04A9_0411:
		if(!gflags[0237]) goto labelFunc04A9_0424;
		UI_set_polymorph_B3(0xFF57, 0x012E);
		goto labelFunc04A9_042E;
	labelFunc04A9_0424:
		UI_set_polymorph_B3(0xFF57, 0x0191);
	labelFunc04A9_042E:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func087A 0x87A ();
extern Func094F 0x94F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0878 0x878 ();
extern Func0924 0x924 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern Func0877 0x877 ();
extern Func0876 0x876 ();
extern var Func0955 0x955 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0879 0x879 ();

Func04AA 0x4AA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;

	var0000 = Func0942(Shamino);
	var0001 = Func0942(Iolo);
	var0002 = Func0942(Dupre);
	var0003 = Func0954();
	var0004 = UI_is_pc_female_6F();
	var0005 = Func0953();
	var0006 = Func097D(0xFE9B, 0x0001, 0x0268, 0xFE99, 0x0014);
	var0007 = UI_get_item_flag_A3(0xFF56, 0x001C);
	var0008 = (("I am " + var0005) + ".");
	var0009 = "his";
	var000A = "him";
	var000B = "he";
	if(!var0004) goto labelFunc04AA_0088;
	var0009 = "her";
	var000A = "her";
	var000B = "she";
	labelFunc04AA_0088:
		if(!(event == 0x0000)) goto labelFunc04AA_0198;
		var000C = UI_find_nearby_41(item, 0x0313, 0x000A, 0x0000);
		var000D = UI_get_item_quality_1C(var000C);
		if(!((var000D == 0x0047) && (gflags[01FE] == false))) goto labelFunc04AA_00F3;
		var000E = (UI_get_item_frame_1A(var000C) + 0x0001);
		UI_set_item_frame_1B(var000C, var000E);
		Func087A();
		Func094F(0xFF56, "To enter our realm...");
		gflags[01FE] = true;
		Func097F(0xFF56, "@To seek the Pillars!@", 0x0010);
		Func0878();
		abrt();
	labelFunc04AA_00F3:
		if(!((var000D == 0x0049) && (gflags[01FE] && (!gflags[01FF])))) goto labelFunc04AA_0198;
		gflags[01FF] = true;
		var000E = (UI_get_item_frame_1A(var000C) + 0x0001);
		UI_set_item_frame_1B(var000C, var000E);
		Func0924(0x0049, 0xFE99);
		Func094F(0xFF56, "To go in Virtue!");
		Func097F(0xFE9C, "@May Virtue be with thee!@", 0x0010);
		Func0878();
		var000F = UI_find_nearby_41(item, 0x0314, 0x001E, 0x0000);
		enum();
	labelFunc04AA_0155:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc04AA_0197);
		var0013 = UI_get_item_quality_1C(var0012);
		if(!(var0013 == 0x0000)) goto labelFunc04AA_0194;
		var0014 = UI_set_item_quality_1D(var0012, 0x0049);
		var0015 = UI_get_object_position_20(var0012);
		Func0924(var0012, 0x0001);
	labelFunc04AA_0194:
		goto labelFunc04AA_0155;
	labelFunc04AA_0197:
		abrt();
	labelFunc04AA_0198:
		if(!(event == 0x0001)) goto labelFunc04AA_0204;
		UI_item_say_4D(0xFE9C, "@Greetings, fine Gargoyle!@");
		0xFF56;
		calle();
		Func097F(0xFF56, "@To say greetings.@", 0x0002);
		if(!gflags[01FE]) goto labelFunc04AA_01CF;
		UI_set_schedule_type_25(0xFF56, 0x0003);
		goto labelFunc04AA_0204;
	labelFunc04AA_01CF:
		if(!(UI_get_schedule_type_24(0xFF56) != 0x000F)) goto labelFunc04AA_0204;
		UI_set_schedule_type_25(0xFF56, 0x000F);
		0xFF56;
		calle();
		var0014 = UI_delayed_execute_usecode_array_02(0xFF56, [0x23, 0x55, 0x04AA], 0x0007);
	labelFunc04AA_0204:
		if(!(event == 0x0002)) goto labelFunc04AA_0222;
		if(!(item == UI_get_npc_object_23(0xFF56))) goto labelFunc04AA_021F;
		event = 0x0009;
		goto labelFunc04AA_0222;
	labelFunc04AA_021F:
		Func087A();
	labelFunc04AA_0222:
		if(!(event == 0x0009)) goto labelFunc04AA_0A28;
		UI_run_schedule_B7(0xFF56);
		UI_clear_item_say_4E(0xFF56);
		UI_show_npc_face0_05(0xFF56, 0x0000);
		if(!(gflags[01FE] && (!gflags[01FB]))) goto labelFunc04AA_026C;
		UcMessage("\"To have told you to seek the Pillar of Fire. To grasp it and enter the Test of the Ancients.\"");
		UcSay;
		UcMessage("\"To delay no longer.\"");
		UcSay;
		Func097F(0xFF56, "@The Pillar!@", 0x0000);
		UI_set_schedule_type_25(0xFF56, 0x0014);
		abrt();
	labelFunc04AA_026C:
		if(!gflags[01FB]) goto labelFunc04AA_039A;
		if(!(gflags[01EB] && (gflags[01EC] && (gflags[01ED] && (!gflags[0207]))))) goto labelFunc04AA_0292;
		UI_add_answer_0C("explain test");
		Func0877();
		goto labelFunc04AA_0397;
	labelFunc04AA_0292:
		if(!gflags[0207]) goto labelFunc04AA_029E;
		Func0876();
		goto labelFunc04AA_0397;
	labelFunc04AA_029E:
		if(!(!gflags[0200])) goto labelFunc04AA_02C1;
		UcMessage("\"To be caught in indecision!\"");
		UcSay;
		UcMessage("\"To say that you have returned from the Test, as the Dream said that the Hero would.\"");
		UcSay;
		UcMessage("\"Yet you did not succeed at the Test. You have failed to show Virtue. To have thought that you would have passed all the tests if you were the Hero!\"");
		UcSay;
		UI_add_answer_0C(["second chance", "never mind"]);
		goto labelFunc04AA_0397;
	labelFunc04AA_02C1:
		if(!(!gflags[0201])) goto labelFunc04AA_0394;
		UcMessage("\"To ask if you have brought me the Goblet. To know that this shall prove you to be the Hero of the Dream.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04AA_0334;
		if(!(var0006 == true)) goto labelFunc04AA_0305;
		var0016 = Func0992(0x0001, "@We have brought the Goblet!@", "@I have the Goblet...@", false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To be true! To apologize most sincerely for doubting you...\"");
		UcSay;
		UcMessage("\"To keep the Goblet, Hero From Another World. To hope that it might have powers to aid you on your quest.\"");
		UcSay;
		Func0877();
		gflags[0201] = true;
		goto labelFunc04AA_0331;
	labelFunc04AA_0305:
		var0016 = Func0992(0x0001, "@We do not have the Goblet!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To wonder if you jest. To say you do not have the Goblet. To be unwilling to deal with you until you have gotten it.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF56, "@Not until then.@", 0x0002);
		abrt();
	labelFunc04AA_0331:
		goto labelFunc04AA_0391;
	labelFunc04AA_0334:
		if(!(var0006 == true)) goto labelFunc04AA_0365;
		var0016 = Func0992(0x0001, "@But we do have the Goblet!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To say that you are confused, but to give you the ring as promised. To say that I am certain that you are the Hero from our dream.\"");
		UcSay;
		UcMessage("\"To keep the Goblet, Hero From Another World. To hope that it might have powers to aid you on your quest.\"");
		UcSay;
		Func0877();
		gflags[0201] = true;
		goto labelFunc04AA_0391;
	labelFunc04AA_0365:
		var0016 = Func0992(0x0001, "@We do not have the Goblet!@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To be displeased that you do not have the Goblet. To be unwilling to deal with you until you have gotten it.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF56, "@Not until then.@", 0x0002);
		abrt();
	labelFunc04AA_0391:
		goto labelFunc04AA_0397;
	labelFunc04AA_0394:
		Func0876();
	labelFunc04AA_0397:
		goto labelFunc04AA_03C9;
	labelFunc04AA_039A:
		if(!(gflags[01EF] == true)) goto labelFunc04AA_03C6;
		UcMessage("\"To ask if you have reconsidered. The Twin Pillars await the Hero of the Dream.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04AA_03B4;
		Func0879();
		goto labelFunc04AA_03C3;
	labelFunc04AA_03B4:
		UcMessage("\"To waste our precious time! To leave now!\"");
		UcSay;
		UI_set_schedule_type_25(0xFF56, 0x000C);
		abrt();
	labelFunc04AA_03C3:
		goto labelFunc04AA_03C9;
	labelFunc04AA_03C6:
		Func0876();
	labelFunc04AA_03C9:
		UI_add_answer_0C("bye");
	labelFunc04AA_03D0:
		UcAsk;
		cmps(var0008);
		UcMessage("\"To be wary that you might be like others of your kind, who come here to slay my people and steal our treasures.\"");
		UcSay;
		UcMessage("\"And yet... to wonder if you are the Hero of the Dream.\"");
		UcSay;
		if(!var0004) goto labelFunc04AA_03ED;
		UcMessage("\"To be female as the Hero was in the dream...\"");
		UcSay;
	labelFunc04AA_03ED:
		UI_remove_answer_0D([var0008, "I am the Avatar.", "I am lost..."]);
		UI_add_answer_0C(["others of your kind", "treasures", "dream"]);
		if(!(!gflags[01FE])) goto labelFunc04AA_041B;
		UI_add_answer_0C("drawbridge");
	labelFunc04AA_041B:
		cmps("drawbridge");
		UI_remove_answer_0D("drawbridge");
		UcMessage("\"To be protection against our enemies. To be lowered and raised by ancient levers.\"");
		UcSay;
		UcMessage("\"To know that only gargoyles are strong enough to pull the levers!\"");
		UcSay;
	labelFunc04AA_0432:
		cmps("others of your kind");
		UI_remove_answer_0D("others of your kind");
		UcMessage("\"To say sadly that Men come to do us harm. To not understand why they call us Daemons...\"");
		UcSay;
		UcMessage("\"To say they are brawny warriors in stout armour. To delight in shedding our blood. To hate us greatly.\"");
		UcSay;
		UcMessage("\"To regret that we cannot make peace with them.\"");
		UcSay;
		UI_add_answer_0C("Daemons");
	labelFunc04AA_0454:
		cmps("Daemons");
		UI_remove_answer_0D("Daemons");
		UcMessage("\"To tell you there is no such thing as a daemon. To be sure that Daemons are creatures from stories, used to frighten young ones.\"");
		UcSay;
		UcMessage("\"To disbelieve that Men can believe us to be Daemons. To be Gargoyles.\"");
		UcSay;
	labelFunc04AA_046B:
		cmps("treasures");
		UI_remove_answer_0D("treasures");
		UcMessage("\"To say that many Men have come here to steal the wealth of the Lost City.\"");
		UcSay;
		UcMessage("\"To be willing to share... To be angry that the Men in Armour do not want to share. To want only to kill us.\"");
		UcSay;
		UcMessage("\"To be as ignorant as they are	greedy.\"");
		UcSay;
		UI_add_answer_0C(["ignorant", "Lost City"]);
	labelFunc04AA_0493:
		cmps("ignorant");
		UI_remove_answer_0D("ignorant");
		UcMessage("\"To say that these invaders cannot stand the heat of this place! To quickly die.\"");
		UcSay;
		UcMessage("\"To be amused to see them come again and again, only to die. To survive long enough to vex us with their weapons, before their deaths.\"");
		UcSay;
	labelFunc04AA_04AA:
		cmps("Lost City");
		UI_remove_answer_0D("Lost City");
		UcMessage("\"To say that several generations of gargoyles have dwelled here. To assure you that this place was old before we came.\"");
		UcSay;
		UcMessage("\"To look about and know that the people who dwelt here revered serpents. To say that they also suffered a great calamity.\"");
		UcSay;
		UcMessage("\"To wonder what happened to those who once dwelt here...\"");
		UcSay;
	labelFunc04AA_04C5:
		cmps("dream");
		UI_remove_answer_0D("dream");
		UI_push_answers_0E();
		UcMessage("\"To tell you that our slumber is filled with a single Dream, a vision of a Hero from another world...\"");
		UcSay;
		if(!var0004) goto labelFunc04AA_04E9;
		UcMessage("\"To say that the Hero is most like you...\"");
		UcSay;
		goto labelFunc04AA_04ED;
	labelFunc04AA_04E9:
		UcMessage("\"To say that the Hero is a Man, most like you.\"");
		UcSay;
	labelFunc04AA_04ED:
		var0016 = Func0992(Dupre, (("@It must be thee, " + var0005) + "!@"), 0x0000, false);
		if(!(var0016 != 0xFE9C)) goto labelFunc04AA_0558;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0002)) goto labelFunc04AA_0551;
		var0017 = var0016;
	labelFunc04AA_0524:
		if(!(var0017 == var0016)) goto labelFunc04AA_0541;
		var0017 = Func0992(0x0001, 0x0000, 0x0000, false);
		goto labelFunc04AA_0524;
	labelFunc04AA_0541:
		var0017 = Func0992(var0017, "@The Avatar is the Hero... No doubt about it!@", 0x0000, false);
	labelFunc04AA_0551:
		UI_set_conversation_slot_09(0x0000);
	labelFunc04AA_0558:
		UcMessage("\"To wonder if you are the Hero.\"");
		UcSay;
		UI_add_answer_0C(["I am not the Hero", "tell me more"]);
	labelFunc04AA_0569:
		cmps("I am not the Hero");
		UcMessage("\"To go your way! To leave my people to their slumbers, and the fate which grasps them in the night.\"");
		UcSay;
		UcMessage("\"To hope the Hero comes soon...\"");
		UcSay;
		Func097F(0xFF56, "@Soon...@", 0x0000);
		UI_set_schedule_type_25(0xFF56, 0x000C);
		abrt();
	labelFunc04AA_0590:
		cmps("tell me more");
		UI_remove_answer_0D(["I am not the Hero", "tell me more"]);
		UcMessage("\"To say that the Dream tells of great disasters -- storms that disintegrate with their bolts, diseases which kill the meek, and a spectral Trinity which spreads Evil.\"");
		UcSay;
		UcMessage("\"To declare that a Hero shall come from beyond this world. To have seen that this warrior shall slay the Trinity, and triumph through virtue.\"");
		UcSay;
		UcMessage("\"To be required to give this Hero an ancient artifact, which will provide guidance to ");
		UcMessage(var000A);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"To know the Hero by this sign -- ");
		UcMessage(var000B);
		UcMessage(" shall submit to the Test of Purity, and be shown worthy by returning in virtue.\"");
		UcSay;
		UI_add_answer_0C(["Test of Purity", "ancient artifact", "storms", "diseases", "Evil Trinity", "nothing"]);
	labelFunc04AA_05DA:
		cmps("Test of Purity");
		UI_remove_answer_0D("Test of Purity");
		UcMessage("\"To tell you that this city is old. To have a long history before the gargoyles found it.\"");
		UcSay;
		UcMessage("\"To know little about the former inhabitants, but to believe that they were not Evil. To have visited their sacred places amid the ruins.\"");
		UcSay;
		UcMessage("\"To know that the Dream says that the Hero shall go to the Place of the Twin Pillars, where ");
		UcMessage(var000B);
		UcMessage(" must face the ordeal of the ancients.\"");
		UcSay;
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) > 0x0001)) goto labelFunc04AA_060E;
		UcMessage("\"To assure your companions that no harm shall come to you or to them during the Test. To believe this myself.\"");
		UcSay;
	labelFunc04AA_060E:
		UI_add_answer_0C(["Twin Pillars"]);
	labelFunc04AA_0618:
		cmps("Twin Pillars");
		UI_remove_answer_0D("Twin Pillars");
		UcMessage("\"To have visited this place within the Underground City. To be in the north-eastern chambers of the city.\"");
		UcSay;
		UcMessage("\"To have seen two stone pillars of great size, in the semblance of serpents.\"");
		UcSay;
		UcMessage("\"To say that the Pillar of Ice is broken. To say that the Pillar of Fire yet stands.\"");
		UcSay;
		UcMessage("\"To have dreamed of the Hero grasping the fiery serpent with ");
		UcMessage(var0009);
		UcMessage(" hands, and thus commencing the Test.\"");
		UcSay;
	labelFunc04AA_063D:
		cmps("ancient artifact");
		UI_remove_answer_0D("ancient artifact");
		UcMessage("\"To have a great treasure among the Gargoyles, an artifact discovered among the ruins. To not know its powers.\"");
		UcSay;
		UcMessage("\"To have seen by the Dream, that we must entrust this device to the Hero who shall come.\"");
		UcSay;
		UcMessage("\"To say that this Ring of the Serpent shall be the means of guiding the Hero in his struggle against the Imbalance.\"");
		UcSay;
	labelFunc04AA_0658:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"To have detected a change in the structure of the world, by means of an Imbalance of Essences.\"");
		UcSay;
		UcMessage("\"To know this is the reason why great storms now howl across the face of this world, hurling their lightnings down.\"");
		UcSay;
		UcMessage("\"To know this is not all -- to become worse with time, until the End of the World. Unless the Hero prevails.\"");
		UcSay;
	labelFunc04AA_0673:
		cmps("diseases");
		UI_remove_answer_0D("diseases");
		UcMessage("\"To weep for the creatures that succumb most easily to the sickness of this world.\"");
		UcSay;
		UcMessage("\"To have dreamed of dying infants, of minds numbed or gone insane, and of beings which simply waste away due to the Imbalance.\"");
		UcSay;
		UcMessage("\"To despair for my people, for they are lost in slumbers and the Dream. Only I remain.\"");
		UcSay;
	labelFunc04AA_068E:
		cmps("Evil Trinity");
		UI_remove_answer_0D("Evil Trinity");
		UcMessage("\"To have seen the Three Ghosts stalking the land, through the Dream.\"");
		UcSay;
		UcMessage("\"To declare that one has the Evil Glow. One has the haunting eyes that mock. One has the Serpent's Head.\"");
		UcSay;
		UcMessage("\"To know that this is not yet, but shall soon be. These are the Enemies of the Hero.\"");
		UcSay;
	labelFunc04AA_06A9:
		cmps("nothing");
		UI_remove_answer_0D("nothing");
		UcMessage("\"To delay my purpose no longer...\"");
		UcSay;
		UcMessage("\"To ask if you are willing to take the Test. To prove that you are the Hero of which we dream.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04AA_06CE;
		Func0879();
		goto labelFunc04AA_06E9;
	labelFunc04AA_06CE:
		UcMessage("\"To be sad... To know that we are fading rapidly. To hope that the Hero comes soon.\"");
		UcSay;
		Func097F(0xFF56, "@Depart...@", 0x0000);
		UI_set_schedule_type_25(0xFF56, 0x000C);
		abrt();
	labelFunc04AA_06E9:
		cmps("I am the Avatar.");
		UI_remove_answer_0D([var0008, "I am the Avatar.", "I am lost..."]);
		UcMessage("\"To not have heard of any Avatar...\"");
		UcSay;
		UcMessage("\"To be wary that you are not like other Men, and to hope that you are not here to steal our treasures.\"");
		UcSay;
		var0016 = Func0992(Iolo, "@The Avatar is the Champion of Virtue, dear gargoyle.@", 0x0000, false);
		if(!(var0016 != 0xFE9C)) goto labelFunc04AA_0731;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To be possible? To be the Hero that we have dreamed of?\"");
		UcSay;
		goto labelFunc04AA_0735;
	labelFunc04AA_0731:
		UcMessage("\"To seem to recognize you, as if from the vision of my slumbers... To wonder if you are the Hero of the Dream...\"");
		UcSay;
	labelFunc04AA_0735:
		gflags[01FD] = true;
		UI_add_answer_0C(["others of your kind", "treasures", "dream"]);
	labelFunc04AA_0749:
		cmps("I am lost...");
		UcMessage("\"To think that you wish to do us harm, like all of your kind. To think that you are here to steal our treasures. To demand that you leave now!\"");
		UcSay;
		Func097F(0xFF56, "@Leave!@", 0x0000);
		UI_set_schedule_type_25(0xFF56, 0x000C);
		abrt();
	labelFunc04AA_076C:
		cmps("dreaming sickness");
		UcMessage("\"To be concerned. To have an imbalance in the land. To have affected the gargoyles and thrown them into helpless dreaming.\" *\"To be the only one that remains awake to fight back the trolls...\"");
		UcSay;
		UI_remove_answer_0D("dreaming sickness");
		UI_add_answer_0C("trolls");
	labelFunc04AA_0786:
		cmps("trolls");
		UcMessage("\"To be uncivilized creatures! To enjoy killing... To have been plaguing us for generations.\" *\"To be advised to be cautious if you hear drums.\"");
		UcSay;
		UI_remove_answer_0D("trolls");
		UI_add_answer_0C("drums");
	labelFunc04AA_07A0:
		cmps("drums");
		UcMessage("\"To be thought of as the trolls' communication. To be trouble for all within the sound of the drums.\"");
		UcSay;
		UI_remove_answer_0D("drums");
	labelFunc04AA_07B3:
		cmps("ring");
		UcMessage("\"To be a relic of the humans who once dwelt here... To have dreamed that it is a thing of great power.\" *\"To have seen in the dream that you will receive great assistance from the ring.\"");
		UcSay;
		UI_remove_answer_0D("ring");
		UI_add_answer_0C("assistance");
	labelFunc04AA_07CD:
		cmps("assistance");
		UcMessage("\"To have been unclear. To have only seen two snakes fighting... To know that the ring is important in the battle. To know nothing else.\"");
		UcSay;
		UI_remove_answer_0D("assistance");
	labelFunc04AA_07E0:
		cmps("Serpent Staff");
		UcMessage("\"To have once had the Serpent Staff. To have been taken by the troll king.\"");
		UcSay;
		UI_remove_answer_0D("Serpent Staff");
		UI_add_answer_0C("troll king");
	labelFunc04AA_07FA:
		cmps("troll king");
		UI_remove_answer_0D("troll king");
		UcMessage("\"To be thinking that the staff will bring the trolls the power to destroy the gargoyles. To be certain that you will have to kill the troll king to reclaim the staff.\" *\"To regret that the dreamers must remain guarded. To wish to go with you...\"");
		UcSay;
	labelFunc04AA_080D:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"To have little to tell you...\"");
		UcSay;
		UcMessage("\"To only say that the Imbalance is growing worse. To fear that there will be no gargoyles left undreaming soon.\"");
		UcSay;
	labelFunc04AA_0824:
		cmps("aid");
		UI_remove_answer_0D("aid");
		UcMessage("\"To be fighting the dreaming. To regret that there is no aid to give as long as the Imbalance exists!\"");
		UcSay;
	labelFunc04AA_0837:
		cmps("second chance");
		UI_remove_answer_0D("second chance");
		UI_set_npc_id_BD(0xFF56, 0x0001);
		UcMessage("\"To need one last task from you. To be without doubt. To be done before giving thee the artifact.\"");
		UcSay;
		var0016 = Func0992(Shamino, "@The Avatar took thy test willingly! Nothing was said about passing all the tests!@", 0x0000, false);
		if(!(var0016 != 0xFE9C)) goto labelFunc04AA_0879;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"To be sure that your friends are hasty in your behalf.\"");
		UcSay;
	labelFunc04AA_0879:
		UcMessage("\"To be unwilling to allow the ring to fall into the wrong hands. To say that the Dream warns of the deceitfulness of the Spectral Trinity.\"");
		UcSay;
		UcMessage("\"To set you this test: To show Virtue by risking your life to enter the Conjury of the Ancients, and obtain the Goblet of Replenishing Water.\"");
		UcSay;
		gflags[0200] = true;
		UI_add_answer_0C(["goblet", "Conjury"]);
		Func0878();
	labelFunc04AA_0895:
		cmps("Conjury");
		UI_remove_answer_0D("Conjury");
		UcMessage("\"To have been a mighty hall within the city of the Ancients. To be recognized by the tiles of gold and black which floor the chamber. To be in the northern chambers of the city.\"");
		UcSay;
		UcMessage("\"To keep its secrets well guarded. To have slain all of our warriors who entered.\"");
		UcSay;
	labelFunc04AA_08AC:
		cmps("goblet");
		UI_remove_answer_0D("goblet");
		UcMessage("\"To have listened to the dying speech of one explorer, and have heard of a Magic Goblet which lies in this room.\"");
		UcSay;
		UcMessage("\"To believe that only the noblest Hero could retrieve such an object.\"");
		UcSay;
	labelFunc04AA_08C3:
		cmps("never mind");
		UI_remove_answer_0D("never mind");
		UcMessage("\"To refuse to give you the Ring of the Serpent. To ask that you submit further proof of your Virtue.\"");
		UcSay;
		Func097F(0xFF56, "@Proof!@", 0x0000);
		Func0878();
		abrt();
	labelFunc04AA_08E6:
		cmps("leave Furnace");
		UI_remove_answer_0D("leave Furnace");
		var0018 = UI_find_nearby_41(0xFF56, 0x0313, 0x0014, 0x0000);
		if(!(UI_get_item_quality_1C(var0018) == 0x0049)) goto labelFunc04AA_0944;
		UcMessage("\"To open the brass gate, that you may gain the surface.\"");
		UcSay;
		Func097F(0xFF56, "@To wait.@", 0x0000);
		UI_set_new_schedules_B6(0xFF56, 0x0000, 0x001D, UI_get_object_position_20(0xFF56));
		UI_run_schedule_B7(0xFF56);
		goto labelFunc04AA_098B;
	labelFunc04AA_0944:
		UcMessage("\"To know that the only exit is at the brass gate at where we first met. To know that Men are too weak to pull the levers to open it.\"");
		UcSay;
		UcMessage("\"To go now to the brass gate, Hero. To meet you there and	to let you return to the surface.\"");
		UcSay;
		Func097F(0xFF56, "@To meet you there...@", 0x0000);
		Func097F(0xFE9C, "@See thee at the gate...@", 0x0000);
		var0019 = [0x05C4, 0x09B3];
		UI_set_new_schedules_B6(0xFF56, 0x0000, 0x000A, [var0019]);
		UI_run_schedule_B7(0xFF56);
		abrt();
	labelFunc04AA_098B:
		cmps("explain test");
		UI_remove_answer_0D("explain test");
		UcMessage("\"To reveal that the emotional pleas for you to flee this dying world were a test of your Logic. As all worlds are connected, it would have done you no good to flee.\"");
		UcSay;
		UcMessage("\"To commend you for your Ethicality when faced with the coercion of others. To be heartened that you did not seek to benefit from their servitude.\"");
		UcSay;
		UcMessage("\"To see that you are the Hero, for you are Virtuous and able to complete a task -- no matter how tedious. To be relieved that you have come at last...\"");
		UcSay;
		gflags[01FA] = true;
	labelFunc04AA_09AA:
		cmps("bye");
		if(!(UI_get_npc_id_BC(0xFF56) == 0x0001)) goto labelFunc04AA_0A05;
		UI_set_npc_id_BD(0xFF56, 0x0000);
		UcMessage("\"To give me your answer -- will you bring me the Goblet of the Conjury?\"");
		UcSay;
		if(!Func0955()) goto labelFunc04AA_09E7;
		UcMessage("\"To have nothing to fear, if you are the Hero. To meditate to give you strength.\"");
		UcSay;
		Func097F(0xFF56, "@To be strong!@", 0x0000);
		goto labelFunc04AA_09F7;
	labelFunc04AA_09E7:
		UcMessage("\"To know that time is short. To wish that the true Hero shall come soon.\"");
		UcSay;
		Func097F(0xFF56, "@Soon...@", 0x0000);
	labelFunc04AA_09F7:
		UI_set_schedule_type_25(0xFF56, 0x0014);
		abrt();
		goto labelFunc04AA_0A24;
	labelFunc04AA_0A05:
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Well met!@", 0x0000);
		Func097F(0xFF56, "@To wish you luck!@", 0x0002);
		goto labelFunc04AA_0A27;
	labelFunc04AA_0A24:
		goto labelFunc04AA_03D0;
	labelFunc04AA_0A27:
		end_conv();
	labelFunc04AA_0A28:
		return;
}
Func04AB 0x4AB (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04AB_0010;
	UI_item_say_4D(item, "@Save us, stranger!@");
	labelFunc04AB_0010:
		return;
}
Func04AC 0x4AC (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc04AC_0029;
	if(!(UI_get_schedule_type_24(0xFF54) == 0x0004)) goto labelFunc04AC_0021;
	UI_item_say_4D(item, "@Later...@");
	goto labelFunc04AC_0029;
	labelFunc04AC_0021:
		UI_item_say_4D(item, "@Not the left button!@");
	labelFunc04AC_0029:
		if(!(event == 0x0000)) goto labelFunc04AC_005E;
		var0000 = ("@Thou art so manly!@" & ("@Kiss me!@" & ("@Let us do it again...@" & ("@Come closer...@" & ("@Oh, Shamino!@" & "@I am overcome...@")))));
		UI_item_say_4D(item, var0000[UI_get_random_00(UI_get_array_size_73(var0000))]);
	labelFunc04AC_005E:
		return;
}
Func04AD 0x4AD (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04AD_0010;
	UI_item_say_4D(item, "@Please free me...@");
	labelFunc04AD_0010:
		return;
}
Func04AE 0x4AE (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04AE_0010;
	UI_item_say_4D(item, "@Thy friend lies...@");
	labelFunc04AE_0010:
		return;
}
Func04AF 0x4AF (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04AF_0010;
	UI_item_say_4D(item, "@Spare us!@");
	labelFunc04AF_0010:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);

Func04B0 0x4B0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc04B0_0012;
	UI_item_say_4D(0xFF50, "@Water, please!@");
	labelFunc04B0_0012:
		if(!(event == 0x0009)) goto labelFunc04B0_0045;
		UI_set_schedule_type_25(0xFF50, 0x0007);
		UI_item_say_4D(0xFF50, "@Water, please!@");
		var0000 = UI_delayed_execute_usecode_array_02(0xFF50, [0x23, 0x55, 0x04B0], 0x0050);
	labelFunc04B0_0045:
		if(!(event == 0x0009)) goto labelFunc04B0_007C;
		var0001 = UI_die_roll_17(0x0001, 0x0003);
		var0002 = ["Give me some water!", "Water! I'm thirsty!", "I must have water!"];
		var0003 = var0002[var0001];
		UI_item_say_4D(0xFF50, var0003);
	labelFunc04B0_007C:
		if(!(event == 0x0002)) goto labelFunc04B0_00D5;
		var0004 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		enum();
	labelFunc04B0_0096:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc04B0_00D5);
		if(!(!UI_get_item_flag_A3(var0007, 0x0006))) goto labelFunc04B0_00D2;
		UI_clear_item_flag_A5(var0007, 0x0001);
		UI_clear_item_say_4E(var0007);
		Func097F(var0007, "@Water!@", 0x0000);
		Func09AD(var0007);
	labelFunc04B0_00D2:
		goto labelFunc04B0_0096;
	labelFunc04B0_00D5:
		return;
}
Func04B1 0x4B1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc04B1_0012;
	UI_item_say_4D(0xFF4F, "@I need water!@");
	labelFunc04B1_0012:
		if(!((event == 0x0009) || (event == 0x0000))) goto labelFunc04B1_0059;
		var0000 = UI_die_roll_17(0x0001, 0x0003);
		var0001 = ["Water! Please!", "I beseech thee!", "My throat is so dry..."];
		var0002 = var0001[var0000];
		UI_item_say_4D(0xFF4F, var0002);
		UI_set_schedule_type_25(0xFF4F, 0x0007);
	labelFunc04B1_0059:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0955 0x955 ();
extern Func0814 0x814 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AA 0x9AA ();

Func04B2 0x4B2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = false;
	if(!(event == 0x0009)) goto labelFunc04B2_0487;
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	var0004 = UI_find_nearby_41(0xFE9C, 0x0178, 0x0019, 0x0000);
	if(!var0004) goto labelFunc04B2_0077;
	var0005 = UI_get_object_position_20(var0004);
	var0006 = UI_create_new_object_2C(0x010E);
	if(!var0006) goto labelFunc04B2_0077;
	UI_remove_item_84(var0004);
	UI_set_item_frame_1B(var0006, 0x0016);
	var0007 = UI_update_last_created_2F(var0005);
	labelFunc04B2_0077:
		UI_run_schedule_B7(0xFF4E);
		UI_set_schedule_type_25(0xFF4E, 0x000F);
		UI_show_npc_face0_05(0xFF4E, 0x0000);
		UcMessage("\"Thank the heavens I have found thee! Thou didst disappear...\"");
		UcSay;
		UcMessage("\"When the Guardian appeared, we feared thou wert taken. Thou must hurry, I have found a way for thee to return home!\"");
		UcSay;
		UI_add_answer_0C(["disappear", "Guardian", "return home"]);
	labelFunc04B2_00AA:
		UcAsk;
		cmps("disappear");
		UcMessage("\"One moment thou wert standing between the pillars... The next, thou wert gone!\" *\"That fiend Zhelkas laughed and said that the land was well rid of thee. Dupre tried to slay him, but he was no match for the gargoyle's strength. And then the Guardian came...\"");
		UcSay;
		UI_remove_answer_0D("disappear");
		UI_add_answer_0C("no match");
	labelFunc04B2_00C7:
		cmps("no match");
		UcMessage("\"Dupre fought valiantly, Avatar. But Zhelkas threw him aside and ran into the caverns.\" *\"I heard one of the sliding doors open just before the drums started.\"");
		UcSay;
		UI_remove_answer_0D("no match");
		UI_add_answer_0C(["sliding doors", "drums"]);
	labelFunc04B2_00E7:
		cmps("sliding doors");
		UcMessage("\"The drawbridge, Avatar! They were the only thing standing between us and the trolls! Zhelkas must have let them down...\" *\"We must flee, while there is still time!\"");
		UcSay;
		UI_remove_answer_0D("sliding doors");
	labelFunc04B2_00FA:
		cmps("drums");
		UcMessage("\"Zhelkas said that the drums were a sign that the trolls were on the move.\" *\"We must escape, Avatar, the drums are growing louder!\"");
		UcSay;
		UcMessage("\"Wilt thou flee with thine old friend Iolo?\"");
		UcSay;
		if(!(Func0955() == false)) goto labelFunc04B2_0142;
		if(!(var0003 == false)) goto labelFunc04B2_0121;
		UcMessage("\"Thou wilt reconsider when thou dost hear what the Guardian said...\"");
		UcSay;
		goto labelFunc04B2_0125;
	labelFunc04B2_0121:
		UcMessage("\"Zhelkas said that the land would be better off without thee. The Guardian said that the end is inevitable. Why stay when we shall all die?\"");
		UcSay;
	labelFunc04B2_0125:
		gflags[01F0] = true;
		if(!(gflags[01F0] && (gflags[01F1] && gflags[01F2]))) goto labelFunc04B2_013F;
		Func0814();
		gflags[01EB] = true;
		abrt();
	labelFunc04B2_013F:
		goto labelFunc04B2_01E9;
	labelFunc04B2_0142:
		UcMessage("\"Follow me through the gate, Avatar! Thou wilt soon be home...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_find_nearby_41(0xFE9C, 0x0360, 0x0019, 0x0000);
		if(!var0008) goto labelFunc04B2_01DE;
		var0005 = UI_get_object_position_20(var0008);
		var0005[0x0001] = (var0005[0x0001] - 0x0001);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(0xFE9C, var0005, 0x000A, var0008, 0x04B2, true);
		var0009 = Func09A0(0x0000, 0x0001);
		var0005[0x0001] = (var0005[0x0001] - 0x0002);
		UI_si_path_run_usecode_C1(0xFF4E, var0005, 0x000B, var0009, 0x04B2, false);
		goto labelFunc04B2_01E8;
	labelFunc04B2_01DE:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc04B2_01E8:
		abrt();
	labelFunc04B2_01E9:
		UI_remove_answer_0D("drums");
	labelFunc04B2_01F0:
		cmps("Guardian");
		UcMessage("\"The Guardian spoke to us after thou didst disappear.\"");
		UcSay;
		UcMessage("\"The Guardian said that he hath grown tired of the game here on Serpent Isle. The end is inevitable now...\"");
		UcSay;
		UcMessage("\"The Guardian said to tell thee that he was changing the venue...\"");
		UcSay;
		var0003 = true;
		UI_remove_answer_0D("Guardian");
		UI_add_answer_0C(["inevitable", "venue"]);
	labelFunc04B2_021C:
		cmps("inevitable");
		UcMessage("\"The Guardian said that Balance could never be restored now. He said that the land will soon destroy itself... And us with it.\"");
		UcSay;
		UI_remove_answer_0D("inevitable");
		UI_add_answer_0C("destroy itself");
	labelFunc04B2_0236:
		cmps("destroy itself");
		UcMessage("\"Without Balance, the earthquakes and storms will continue until there is not one rock upon another. Soon the seas will swallow all that remains of the land.\"");
		UcSay;
		UcMessage("\"There is nothing that thou canst do here, Avatar! We will be crushed and dragged beneath the waves if we stay!\"");
		UcSay;
		UI_remove_answer_0D("destroy itself");
	labelFunc04B2_024D:
		cmps("venue");
		UcMessage("\"The Guardian said that he would await thee on Earth, Avatar! Thine home...\" *\"He said he was going to unleash horrible maladies upon thy people.\"");
		UcSay;
		UI_remove_answer_0D("venue");
		UI_add_answer_0C("maladies");
	labelFunc04B2_0267:
		cmps("maladies");
		UcMessage("\"The Guardian said he would send vile, lingering plagues to all the leaders of thy land. Then he would set minions in their places to destroy all that thou dost hold dear.\" *\"The Guardian even threatened thy family...\"");
		UcSay;
		UI_remove_answer_0D("maladies");
		UI_add_answer_0C("family");
	labelFunc04B2_0281:
		cmps("family");
		UI_remove_answer_0D("family");
		UcMessage("\"The Guardian told us to tell thee that it would be of no great matter to find out who all thy friends and family were, Avatar. He said that we were to tell thee that he had special plans for them.\"");
		UcSay;
		UcMessage("\"Wilt thou follow me? I can help thee escape to save those that thou lovest.\"");
		UcSay;
		if(!(Func0955() == false)) goto labelFunc04B2_02C1;
		UcMessage("\"Wilt thou allow the Guardian to slay thy friends as his minions slew poor Spark's father? How canst thou consider staying in a doomed land when thy family is in danger?\"");
		UcSay;
		gflags[01F1] = true;
		if(!(gflags[01F0] && (gflags[01F1] && gflags[01F2]))) goto labelFunc04B2_02BE;
		gflags[01EB] = true;
		Func0814();
		abrt();
	labelFunc04B2_02BE:
		goto labelFunc04B2_0368;
	labelFunc04B2_02C1:
		UcMessage("\"Follow me through the gate, Avatar! Thou wilt soon be home...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_find_nearby_41(0xFE9C, 0x0360, 0x0019, 0x0000);
		if(!var0008) goto labelFunc04B2_035D;
		var0005 = UI_get_object_position_20(var0008);
		var0005[0x0001] = (var0005[0x0001] - 0x0001);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(0xFE9C, var0005, 0x000A, var0008, 0x04B2, true);
		var0009 = Func09A0(0x0000, 0x0001);
		var0005[0x0001] = (var0005[0x0001] - 0x0002);
		UI_si_path_run_usecode_C1(0xFF4E, var0005, 0x000B, var0009, 0x04B2, false);
		goto labelFunc04B2_0367;
	labelFunc04B2_035D:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc04B2_0367:
		abrt();
	labelFunc04B2_0368:
		cmps("return home");
		UcMessage("\"When the Guardian disappeared, we began searching for thee. The Guardian's interference into this place hath opened a gate... To thine home, I think.\"");
		UcSay;
		UI_remove_answer_0D("return home");
		UI_add_answer_0C("gate");
	labelFunc04B2_0382:
		cmps("gate");
		UcMessage("\"It is much like the Moongate that brought thee to Britannia the last time. Shamino thought perhaps the Guardian's passage had not fully closed.\" *\"I do not think it is a trap, Avatar! I do not think the Guardian knows that the gate here still exists...\"");
		UcSay;
		UI_remove_answer_0D("gate");
		UI_add_answer_0C("trap");
	labelFunc04B2_039C:
		cmps("trap");
		UI_remove_answer_0D("trap");
		UcMessage("\"Why would the Guardian go to such lengths, Avatar? He already has thee trapped here... In a land he says will soon rend its heart out.\"");
		UcSay;
		UcMessage("\"Wilt thou come with me now? I am sure that thou canst return home at last.\"");
		UcSay;
		if(!(Func0955() == false)) goto labelFunc04B2_03DC;
		UcMessage("\"Reconsider, Avatar! Thou couldst spend the rest of thy life waiting for another chance to return to thine home and family...\"");
		UcSay;
		gflags[01F2] = true;
		if(!(gflags[01F0] && (gflags[01F1] && gflags[01F2]))) goto labelFunc04B2_03D9;
		Func0814();
		gflags[01EB] = true;
		abrt();
	labelFunc04B2_03D9:
		goto labelFunc04B2_0483;
	labelFunc04B2_03DC:
		UcMessage("\"Follow me through the gate, Avatar! Thou wilt soon be home...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_find_nearby_41(0xFE9C, 0x0360, 0x0019, 0x0000);
		if(!var0008) goto labelFunc04B2_0478;
		var0005 = UI_get_object_position_20(var0008);
		var0005[0x0001] = (var0005[0x0001] - 0x0001);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(0xFE9C, var0005, 0x000A, var0008, 0x04B2, true);
		var0009 = Func09A0(0x0000, 0x0001);
		var0005[0x0001] = (var0005[0x0001] - 0x0002);
		UI_si_path_run_usecode_C1(0xFF4E, var0005, 0x000B, var0009, 0x04B2, false);
		goto labelFunc04B2_0482;
	labelFunc04B2_0478:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc04B2_0482:
		abrt();
	labelFunc04B2_0483:
		goto labelFunc04B2_00AA;
	labelFunc04B2_0486:
		end_conv();
	labelFunc04B2_0487:
		if(!(event == 0x000E)) goto labelFunc04B2_04BA;
		var000A = UI_get_item_shape_18(item);
		if(!(var000A == 0x0360)) goto labelFunc04B2_04A8;
		event = 0x000A;
		goto labelFunc04B2_04BA;
	labelFunc04B2_04A8:
		if(!(var000A == 0x01D1)) goto labelFunc04B2_04B9;
		event = 0x000D;
		goto labelFunc04B2_04BA;
	labelFunc04B2_04B9:
		abrt();
	labelFunc04B2_04BA:
		if(!(event == 0x000A)) goto labelFunc04B2_0558;
		var0008 = UI_find_nearby_41(0xFE9C, 0x0360, 0x000A, 0x0000);
		Func09AA();
		var0005 = UI_get_object_position_20(0xFF4E);
		UI_sprite_effect_68(0x001A, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF4E);
		var0005 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x001A, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_polymorph_B3(0xFE9C, 0x00EF);
		var0007 = UI_delayed_execute_usecode_array_02(var0008, [0x55, 0x07F7, 0x01, 0x52, "@What the...?@"], 0x0014);
		abrt();
	labelFunc04B2_0558:
		if(!(event == 0x000D)) goto labelFunc04B2_05A8;
		var0005 = UI_get_object_position_20(0xFF4E);
		UI_sprite_effect_68(0x001A, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF4E);
		var0007 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07F7], 0x0014);
		abrt();
	labelFunc04B2_05A8:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0955 0x955 ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07F7 0x7F7 (var var0000);

Func04B3 0x4B3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0000)) goto labelFunc04B3_0048;
	var0003 = ("@I like this place!@" & ("@Pleasure me, woman!@" & ("@Dance, dance, dance!@" & ("@Now!@" & ("@Come to me!@" & "@Thou art beautiful...@")))));
	UI_item_say_4D(item, var0003[UI_get_random_00(UI_get_array_size_73(var0003))]);
	labelFunc04B3_0048:
		if(!(event == 0x0001)) goto labelFunc04B3_0076;
		UI_item_say_4D(0xFE9C, "@Old friend...@");
		0xFF4D;
		calle();
		Func097F(0xFF4D, "@What dost thou wish?@", 0x0002);
		UI_set_schedule_type_25(0xFF4D, 0x0003);
	labelFunc04B3_0076:
		if(!(event == 0x0009)) goto labelFunc04B3_0339;
		UI_clear_item_say_4E(0xFF4D);
		if(!UI_get_item_flag_A3(0xFE9C, 0x0010)) goto labelFunc04B3_010D;
		var0004 = Func09A0(0x0000, 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x061E], 0x0002);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0006 = UI_find_nearby_41(0xFE9C, 0x010E, 0x001E, 0x0000);
		if(!var0006) goto labelFunc04B3_010D;
		var0007 = UI_get_object_position_20(var0006);
		var0008 = UI_create_new_object_2C(0x0178);
		if(!var0008) goto labelFunc04B3_010D;
		UI_remove_item_84(var0006);
		UI_set_item_frame_1B(var0008, 0x0016);
		var0005 = UI_update_last_created_2F(var0007);
	labelFunc04B3_010D:
		UI_set_schedule_type_25(0xFF4D, 0x000F);
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"We feared for thee when thou didst disappear from between the pillars. While searching, I became trapped here. I cannot seem to find the way out. Though I suspect that those buttons on the wall might be part of the answer.\"");
		UcSay;
		UI_add_answer_0C(["disappear", "trapped", "buttons", "bye"]);
	labelFunc04B3_0138:
		UcAsk;
		cmps("bye");
		UI_run_schedule_B7(0xFF4D);
		Func097F(0xFE9C, "@Thanks...@", 0x0000);
		Func097F(0xFF4D, "@Try the left button!@", 0x0002);
		abrt();
	labelFunc04B3_0163:
		cmps("disappear");
		UcMessage("\"Thou didst examine the fiery pillar, as Zhelkas instructed thee... And then thou wert gone!\"");
		UcSay;
		UcMessage("\"I think the Gargoyle hath tricked us, Avatar. Never trust their type...\"");
		UcSay;
		UI_remove_answer_0D("disappear");
		UI_add_answer_0C("tricked");
	labelFunc04B3_0181:
		cmps("tricked");
		UcMessage("\"When we sought to question him about thy disappearance, he was nowhere to be found. So we divided to look for thee...\"");
		UcSay;
		UcMessage("\"I became confused when trying to return to the pillars. And here I am... With all these lovely people.\"");
		UcSay;
		UI_remove_answer_0D("tricked");
		UI_add_answer_0C("people");
	labelFunc04B3_019F:
		cmps("people");
		UcMessage("\"They seem to be trapped here as well.\"");
		UcSay;
		UcMessage("\"They have been trying to discourage me from using the button on the left... but there are powerful rewards for pressing that button!\"");
		UcSay;
		UI_remove_answer_0D("people");
		UI_add_answer_0C("rewards");
	labelFunc04B3_01BD:
		cmps("rewards");
		UcMessage("\"Well, these people seem to have been here a very long time. They are... lonely... for company.\"");
		UcSay;
		UcMessage("\"There is much that we could do to make them feel less lonely, Avatar, if thou dost know what I mean...\"");
		UcSay;
		UI_remove_answer_0D("rewards");
	labelFunc04B3_01D4:
		cmps("trapped");
		UcMessage("\"Thou canst see for thyself... There is no way out of here. I can find no concealed doors.\"");
		UcSay;
		UcMessage("\"It is only reasonable that these buttons hold the way out. Though they also hold much more...\"");
		UcSay;
		UI_remove_answer_0D("trapped");
		UI_add_answer_0C("what else");
	labelFunc04B3_01F2:
		cmps("what else");
		UcMessage("\"Apparently the buttons also control the doors to the private chambers.\"");
		UcSay;
		UcMessage("\"And also the private passions of these people! This is such fun, Avatar.\"");
		UcSay;
		UI_remove_answer_0D("what else");
		UI_add_answer_0C("private chambers");
	labelFunc04B3_0210:
		cmps("private chambers");
		UI_remove_answer_0D("private chambers");
		UcMessage("\"I can show thee, if thou wouldst like... Or thou canst press the button on the left post and see for thyself.\"");
		UcSay;
		UcMessage("\"Wouldst thou like me to do it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B3_02D6;
		UI_remove_npc_face0_07();
		Func097F(0xFF4D, "@Watch this!@", 0x0000);
		gflags[01EE] = true;
		var0009 = UI_find_nearby_41(0xFE9C, 0x0314, 0x0014, 0x0000);
		enum();
	labelFunc04B3_0257:
		for (var000C in var0009 with var000A to var000B atend labelFunc04B3_02D2);
		var000D = UI_get_item_quality_1C(var000C);
		if(!(var000D == 0x0017)) goto labelFunc04B3_02CF;
		UI_play_music_39(0x001C, Func09A0(0x0005, 0x0001));
		var000E = UI_get_distance_21(0xFF4D, var000C);
		var0007 = UI_get_object_position_20(var000C);
		var0007[0x0001] = (var0007[0x0001] + 0x0001);
		UI_set_npc_id_BD(0xFF4D, 0x0001);
		UI_si_path_run_usecode_C1(0xFF4D, var0007, 0x000D, UI_get_npc_object_23(0xFF4D), 0x04B3, true);
	labelFunc04B3_02CF:
		goto labelFunc04B3_0257;
	labelFunc04B3_02D2:
		abrt();
		goto labelFunc04B3_02DA;
	labelFunc04B3_02D6:
		UcMessage("\"Perhaps later, when thou art more relaxed, eh?\"");
		UcSay;
	labelFunc04B3_02DA:
		cmps("buttons");
		UcMessage("\"There are two buttons on the posts behind me.\"");
		UcSay;
		UcMessage("\"When I went to press the one on the left, these comely folks begged me not to.\"");
		UcSay;
		UI_remove_answer_0D("buttons");
		UI_add_answer_0C("begged");
	labelFunc04B3_02F8:
		cmps("begged");
		UcMessage("\"Yes, begged. But they would not explain, and I was certain they were hiding something from me...\"");
		UcSay;
		UcMessage("\"What could I do?\"");
		UcSay;
		UcMessage("\"I pressed the button on the left... And made a rather fascinating discovery.\"");
		UcSay;
		UI_remove_answer_0D("begged");
		UI_add_answer_0C("discovery");
	labelFunc04B3_031A:
		cmps("discovery");
		UcMessage("\"I found out how very lonely certain of these folks have been -- particularly the women...\"");
		UcSay;
		UcMessage("\"They have been very convincing.\"");
		UcSay;
		UcMessage("\"Press the button, and thou canst see for thyself!\"");
		UcSay;
		UI_remove_answer_0D("discovery");
	labelFunc04B3_0335:
		goto labelFunc04B3_0138;
	labelFunc04B3_0338:
		end_conv();
	labelFunc04B3_0339:
		if(!(event == 0x0002)) goto labelFunc04B3_0457;
		if(!gflags[01EE]) goto labelFunc04B3_043C;
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"See, Avatar? When I press this button, the women become so friendly towards me...\"");
		UcSay;
		UcMessage("\"Now I and one of my new friends shall go to a private chamber for some socializing... if thou knowest what I mean...\"");
		UcSay;
		UcMessage("\"I do not think I'll be back for quite a while, Avatar. Thou shalt have to find the way out thyself.\"");
		UcSay;
		UcMessage("\"If thou wishest to...\"");
		UcSay;
		UI_remove_npc_face0_07();
		var000F = UI_find_nearby_41(0xFF4D, 0x028C, 0x001E, 0x0004);
		if(!var000F) goto labelFunc04B3_0428;
		Func097F(0xFF4D, "@I think 'tis THY turn...@", 0x0001);
		UI_set_schedule_type_25(var000F, 0x000F);
		UI_clear_item_say_4E(0xFF54);
		Func097F(0xFF54, "@Yes, Shamino...@", 0x0002);
		var0006 = UI_find_nearby_41(0xFF4D, 0x0178, 0x000A, 0x0000);
		if(!var0006) goto labelFunc04B3_0428;
		var0007 = UI_get_object_position_20(var0006);
		UI_set_npc_id_BD(0xFF4D, 0x0000);
		UI_si_path_run_usecode_C1(0xFF4D, [(var0007[0x0001] + 0x0001), var0007[0x0002], var0007[0x0003]], 0x000A, item, 0x04B3, true);
		UI_si_path_run_usecode_C1(0xFF54, [(var0007[0x0001] + 0x0001), (var0007[0x0002] + 0x0002), var0007[0x0003]], 0x000A, item, 0x04B3, true);
	labelFunc04B3_0428:
		Func097F(0xFE9C, "@Hey, come back!@", 0x0003);
		gflags[01EE] = false;
		abrt();
		goto labelFunc04B3_0456;
	labelFunc04B3_043C:
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"See, their desire to please thee hath clouded their minds...\"");
		UcSay;
		UcMessage("\"Open the door to their private chambers and let them show thee how much they'd like thee to stay...\"");
		UcSay;
		UcMessage("\"They can be... very... persuasive.\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc04B3_0456:
		abrt();
	labelFunc04B3_0457:
		if(!(event == 0x000E)) goto labelFunc04B3_04CB;
		var0010 = UI_get_item_shape_18(item);
		if(!(var0010 == 0x0378)) goto labelFunc04B3_0475;
		event = 0x0007;
	labelFunc04B3_0475:
		if(!((var0010 == 0x02D1) && (gflags[0202] == true))) goto labelFunc04B3_0489;
		event = 0x0007;
	labelFunc04B3_0489:
		if(!((var0010 == 0x01E7) && (UI_get_npc_id_BC(0xFF4D) == 0x0001))) goto labelFunc04B3_04A3;
		event = 0x000D;
	labelFunc04B3_04A3:
		if(!((var0010 == 0x01E7) && (UI_get_npc_id_BC(0xFF4D) == 0x0000))) goto labelFunc04B3_04BD;
		event = 0x000A;
	labelFunc04B3_04BD:
		if(!(var0010 == 0x028C)) goto labelFunc04B3_04CB;
		event = 0x000A;
	labelFunc04B3_04CB:
		if(!(event == 0x000D)) goto labelFunc04B3_04E6;
		var0005 = UI_execute_usecode_array_01(0xFF4D, [0x55, 0x072A]);
		abrt();
	labelFunc04B3_04E6:
		if(!(event == 0x000A)) goto labelFunc04B3_0570;
		if(!gflags[0202]) goto labelFunc04B3_056B;
		var0011 = UI_get_object_position_20(0xFF4D);
		var0012 = UI_get_object_position_20(0xFF54);
		Func09AC(0xFF4D, 0x001C, 0x066C, 0x0004);
		Func09AC(0xFF54, 0x0018, 0x066C, 0x0004);
		UI_sprite_effect_68(0x001A, var0011[0x0001], var0011[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0012[0x0001], var0012[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		gflags[0202] = false;
		goto labelFunc04B3_056F;
	labelFunc04B3_056B:
		gflags[0202] = true;
	labelFunc04B3_056F:
		abrt();
	labelFunc04B3_0570:
		if(!(event == 0x0007)) goto labelFunc04B3_065E;
		if(!gflags[0202]) goto labelFunc04B3_05EA;
		var0013 = UI_get_object_position_20(0xFE9C);
		var0012 = UI_get_object_position_20(0xFF53);
		UI_remove_npc_4C(0xFF53);
		UI_sprite_effect_68(0x001A, var0013[0x0001], var0013[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0012[0x0001], var0012[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		0x0000;
		calle();
		goto labelFunc04B3_065D;
	labelFunc04B3_05EA:
		Func097F(0xFF53, "@Come, Avatar...@", 0x0002);
		var0006 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
		if(!var0006) goto labelFunc04B3_0659;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0007 = UI_get_object_position_20(var0006);
		var0007[0x0001] = (var0007[0x0001] + 0x0001);
		var0007[0x0002] = (var0007[0x0002] - 0x0002);
		UI_si_path_run_usecode_C1(0xFE9C, var0007, 0x0007, UI_get_npc_object_23(0xFE9C), 0x04B3, true);
	labelFunc04B3_0659:
		gflags[0202] = true;
	labelFunc04B3_065D:
		abrt();
	labelFunc04B3_065E:
		if(!(event == 0x000B)) goto labelFunc04B3_0717;
		var0014 = UI_get_npc_number_47(item);
		var0007 = UI_get_object_position_20(var0014);
		UI_remove_npc_4C(var0014);
		UI_sprite_effect_68(0x0007, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!(gflags[01EC] == true)) goto labelFunc04B3_0717;
		var0007 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0007, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!UI_find_nearby_41(0xFE9C, 0x01E7, 0x0014, 0x0000)) goto labelFunc04B3_06F4;
		UI_show_npc_face0_05(0xFF4D, 0x0000);
		UcMessage("\"The slaves, Avatar! Thou didst release them all! Damn thee!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc04B3_06F4:
		var0015 = Func09A0(0x0000, 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(var0015, [0x23, 0x55, 0x07F7], 0x000F);
	labelFunc04B3_0717:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func0952 0x952 (var var0000);
extern Func07F7 0x7F7 (var var0000);
extern Func09C1 0x9C1 ();
extern var Func0955 0x955 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09BF 0x9BF ();

Func04B4 0x4B4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!((event == 0x0001) && (gflags[01F3] == true))) goto labelFunc04B4_0034;
	UI_show_npc_face0_05(0xFF4C, 0x0000);
	UcMessage("\"No time to talk, Avatar. There is exploring to be done!\"");
	UcSay;
	UI_remove_npc_face0_07();
	abrt();
	labelFunc04B4_0034:
		if(!(event == 0x0000)) goto labelFunc04B4_0084;
		if(!Func097D(item, 0xFE99, 0x025C, 0xFE99, 0xFE99)) goto labelFunc04B4_0062;
		Func094F(item, ["@Look!@", "@A glass sword!@", "@So much treasure!@"]);
		goto labelFunc04B4_0084;
	labelFunc04B4_0062:
		var0003 = UI_create_new_object_2C(0x025C);
		if(!Func0952(item)) goto labelFunc04B4_0084;
		var0004 = UI_is_readied_88(item, 0x0001, 0x025C, 0x0000);
	labelFunc04B4_0084:
		if(!(event == 0x0003)) goto labelFunc04B4_00A1;
		if(!(gflags[01F3] && (!gflags[01ED]))) goto labelFunc04B4_009E;
		item;
		calle();
		goto labelFunc04B4_00A1;
	labelFunc04B4_009E:
		Func09C1();
	labelFunc04B4_00A1:
		if(!(event == 0x0002)) goto labelFunc04B4_00DA;
		UI_move_object_4B(0xFF4C, [0x00A7, 0x0655, 0x0000]);
		UI_set_new_schedules_B6(0xFF4C, 0x0000, 0x0003, [0x00A6, 0x0664]);
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc04B4_00DA:
		if(!(event == 0x0009)) goto labelFunc04B4_04B4;
		UI_set_new_schedules_B6(0xFF4C, 0x0000, 0x0007, [0x00AB, 0x0631]);
		UI_run_schedule_B7(0xFF4C);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0005 = UI_find_nearby_41(0xFE9C, 0x010E, 0x0050, 0x0000);
		enum();
	labelFunc04B4_011D:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc04B4_0145);
		var0009 = UI_get_item_quality_1C(var0008);
		if(!(var0009 == 0x0007)) goto labelFunc04B4_0142;
		var000A = var0008;
	labelFunc04B4_0142:
		goto labelFunc04B4_011D;
	labelFunc04B4_0145:
		if(!var000A) goto labelFunc04B4_0180;
		var000B = UI_get_object_position_20(var000A);
		var000C = UI_create_new_object_2C(0x0178);
		if(!var000C) goto labelFunc04B4_0180;
		UI_remove_item_84(var000A);
		UI_set_item_frame_1B(var000C, 0x0016);
		var0003 = UI_update_last_created_2F(var000B);
	labelFunc04B4_0180:
		UI_show_npc_face0_05(0xFF4C, 0x0000);
		if(!((gflags[01F3] == true) && ((gflags[01F7] == true) && (!(gflags[01F8] == true))))) goto labelFunc04B4_01D7;
		UcMessage("\"Avatar! Thou must come and look at what I have found! Come now... Zhelkas may not allow thee the time to see this. Wilt thou come look? Thou canst finish off the last Worm when thou dost return.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B4_01BE;
		UcMessage("\"'Tis just through here...\"");
		UcSay;
		Func097F(0xFF4C, "@Follow me!@", 0x0000);
		goto labelFunc04B4_01D2;
	labelFunc04B4_01BE:
		UcMessage("\"It looks important, though I am no judge of such things. Thou shouldst come look while thou hast the chance...\"");
		UcSay;
		Func097F(0xFF4C, "@'Tis thy loss...@", 0x0000);
		gflags[01ED] = true;
	labelFunc04B4_01D2:
		gflags[01F8] = true;
		abrt();
	labelFunc04B4_01D7:
		if(!((gflags[01F3] == true) && ((gflags[01F6] == true) && (!(gflags[01F8] == true))))) goto labelFunc04B4_01FD;
		UcMessage("\"There is no wine, Avatar. But thou shouldst see the weapons! If thou dost not finish soon, I cannot promise to share...\"");
		UcSay;
		Func097F(0xFF4C, "@This is wonderful!@", 0x0000);
		abrt();
	labelFunc04B4_01FD:
		if(!((gflags[01F3] == true) && ((gflags[01F5] == true) && (!(gflags[01F8] == true))))) goto labelFunc04B4_0223;
		UcMessage("\"Avatar! Thou shouldst see the treasure that I have found! Stay and finish the Game. I shall try to bring some to thee...\"");
		UcSay;
		Func097F(0xFF4C, "@Wait here...@", 0x0000);
		abrt();
	labelFunc04B4_0223:
		if(!((gflags[01F3] == true) && ((gflags[01F4] == true) && (!(gflags[01F8] == true))))) goto labelFunc04B4_0249;
		UcMessage("\"This is boring, indeed. I will leave thee to the Game, Avatar. I am going exploring...\"");
		UcSay;
		Func097F(0xFF4C, "@So long...@", 0x0000);
		abrt();
	labelFunc04B4_0249:
		if(!((gflags[01F3] == true) && ((gflags[01F4] == true) && (gflags[01F8] == true)))) goto labelFunc04B4_0285;
		UcMessage("\"Damn thee, Avatar! Damn thee! Thou hast destroyed the worms. Perhaps with such a weapon, thou dost not have any need for what I have found here...\"");
		UcSay;
		Func097F(0xFF4C, "@Damn thee!@", 0x0000);
		var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07F7], 0x0019);
		abrt();
	labelFunc04B4_0285:
		UcMessage("\"Zhelkas hath appointed me moderator of the Game, Avatar. He hath also given me leave to explore...\" *\"Art thou ready to begin?\"");
		UcSay;
		UI_add_answer_0C(["moderator", "Game", "explore", "begin"]);
	labelFunc04B4_029C:
		UcAsk;
		cmps("moderator");
		UcMessage("\"It is my duty as moderator to see that thou dost know the rules. After I have informed thee, I cannot aid thee... In any way.\"");
		UcSay;
		UI_remove_answer_0D("moderator");
		UI_add_answer_0C(["rules", "aid"]);
	labelFunc04B4_02BF:
		cmps("rules");
		UcMessage("\"The rules are few...\" *\"Thou shalt face ten Worms. Thou canst not leave until the last Worm hath been dispatched.\"");
		UcSay;
		UI_remove_answer_0D("rules");
		UI_add_answer_0C(["Worm", "dispatched"]);
	labelFunc04B4_02DF:
		cmps("Worm");
		UcMessage("\"Thou shalt face each Worm singly, one after the other. Each Worm shall seek thy death, Avatar. So be prepared.\"");
		UcSay;
		UI_remove_answer_0D("Worm");
	labelFunc04B4_02F2:
		cmps("dispatched");
		UcMessage("\"The Worms can only be killed by a hammer. Each Worm can be slain only by hammer blows.\"");
		UcSay;
		UI_remove_answer_0D("dispatched");
		UI_add_answer_0C("hammer");
	labelFunc04B4_030C:
		cmps("hammer");
		UcMessage("\"They are Worms, Avatar! Everyone knows that if thou dost use a sword against a Worm, thou wilt face twice the number of foes after each stroke.\" *\"There is a small hammer on the floor near thee...\"");
		UcSay;
		UI_remove_answer_0D("hammer");
		UI_add_answer_0C("everyone knows");
	labelFunc04B4_0326:
		cmps("everyone knows");
		UcMessage("\"'Tis common knowledge, Avatar! I am surprised at thee... Cease such questions and put thine attention to the Game!\"");
		UcSay;
		UI_remove_answer_0D("everyone knows");
	labelFunc04B4_0339:
		cmps("aid");
		UcMessage("\"I cannot assist thee in thy struggle against the Worms, either directly or indirectly.\"");
		UcSay;
		UI_remove_answer_0D("aid");
		UI_add_answer_0C(["directly", "indirectly"]);
	labelFunc04B4_0359:
		cmps("directly");
		UcMessage("\"I cannot join thy fight against the Worms. If I do, thou wilt lose the Game.\"");
		UcSay;
		UI_remove_answer_0D("directly");
	labelFunc04B4_036C:
		cmps("indirectly");
		UcMessage("\"I cannot give thee anything I find while exploring. If I give thee anything, thou wilt lose the Game.\"");
		UcSay;
		UI_remove_answer_0D("indirectly");
	labelFunc04B4_037F:
		cmps("Game");
		UcMessage("\"That is how Zhelkas referred to it, Avatar. Perhaps it is a test of thy skill or versatility as a warrior.\"");
		UcSay;
		UI_remove_answer_0D("Game");
		UI_add_answer_0C(["skill", "versatility"]);
	labelFunc04B4_039F:
		cmps("skill");
		UcMessage("\"If thou art the Hero Zhelkas seeks, surely thou art a skilled enough fighter to stand alone against the Worms. If thou canst not best the Worms, how canst thou expect to stop the very destruction of the world?\"");
		UcSay;
		UI_remove_answer_0D("skill");
		UI_add_answer_0C("destruction");
	labelFunc04B4_03B9:
		cmps("destruction");
		UcMessage("\"Why dost thou ask me? Everyone fears that the world will end soon if these storms are not stopped...\" *\"Turn thy mind to the task at hand. The sooner thou dost finish this Game, the sooner we can be on our way...\"");
		UcSay;
		UI_remove_answer_0D("destruction");
	labelFunc04B4_03CC:
		cmps("versatility");
		UcMessage("\"A true warrior doth not rely on only one weapon, Avatar. What would happen if thou didst not have thy sword and had to battle the Guardian? A true Hero would make anything a weapon if need be...\"");
		UcSay;
		UI_remove_answer_0D("versatility");
	labelFunc04B4_03DF:
		cmps("explore");
		UcMessage("\"Zhelkas said there were rooms in this area that I would find interesting. By acting as moderator, perhaps I may find something to benefit our quest.\"");
		UcSay;
		UI_remove_answer_0D("explore");
		UI_add_answer_0C(["interesting", "benefit"]);
	labelFunc04B4_03FF:
		cmps("interesting");
		UcMessage("\"Well, unless Zhelkas was talking about wine casks... I'd say he might have been referring to weapons.\"");
		UcSay;
		UI_remove_answer_0D("interesting");
		UI_add_answer_0C(["wine casks", "weapons"]);
	labelFunc04B4_041F:
		cmps("wine casks");
		UcMessage("\"Do not worry, old friend! I shall try to save thee a drop or two.\" *\"But thou shouldst be quick, lest I forget...\"");
		UcSay;
		UI_remove_answer_0D("wine casks");
	labelFunc04B4_0432:
		cmps("weapons");
		UcMessage("\"If there is time after the Game, perhaps thou canst join me. If I can carry it... Perhaps I'll bring thee something.\"");
		UcSay;
		UI_remove_answer_0D("weapons");
	labelFunc04B4_0445:
		cmps("benefit");
		UcMessage("\"Information, weapons...\" *\"I bring back what I can... As long as there isn't too much wine!\"");
		UcSay;
		UI_remove_answer_0D("benefit");
	labelFunc04B4_0458:
		cmps("begin");
		Func097F(0xFF4C, "@Then let the Game begin!@", 0x0000);
		gflags[01F3] = true;
		UI_set_npc_id_BD(0xFF4C, 0x0001);
		var000D = Func09A0(0x0004, 0x0001);
		var0003 = UI_set_item_quality_1D(var000D, 0x0001);
		var000D = Func09A0(0x0004, 0x0002);
		var0003 = UI_set_item_quality_1D(var000D, 0x0000);
		Func09BF();
		abrt();
	labelFunc04B4_04B0:
		goto labelFunc04B4_029C;
	labelFunc04B4_04B3:
		end_conv();
	labelFunc04B4_04B4:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func085C 0x85C ();
extern Func085D 0x85D (var var0000, var var0001);

Func04B5 0x4B5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func097D(0xFE9B, 0x0001, 0x017F, 0xFE99, 0x0001);
	var0004 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0003);
	var0005 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x000B);
	var0006 = UI_get_npc_id_BC(0xFF4B);
	if(!(event == 0x0002)) goto labelFunc04B5_0144;
	if(!((var0006 == 0x0001) || ((var0006 == 0x0007) || (var0006 == 0x0008)))) goto labelFunc04B5_00FA;
	if(!(var0006 == 0x0001)) goto labelFunc04B5_0092;
	UI_set_npc_id_BD(0xFF4B, 0x0000);
	labelFunc04B5_0092:
		if(!(var0006 == 0x0007)) goto labelFunc04B5_00A6;
		UI_set_npc_id_BD(0xFF4B, 0x0005);
	labelFunc04B5_00A6:
		if(!(var0006 == 0x0008)) goto labelFunc04B5_00BA;
		UI_set_npc_id_BD(0xFF4B, 0x0006);
	labelFunc04B5_00BA:
		UI_play_sound_effect_16(0x0029);
		UI_obj_sprite_effect_91(0xFE9C, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0007 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x78, 0x0032, 0x0000], 0x000C);
		goto labelFunc04B5_0144;
	labelFunc04B5_00FA:
		UI_play_sound_effect_16(0x0030);
		UI_obj_sprite_effect_91(0xFE9C, 0x0009, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFF4B, 0x0003);
		var0007 = UI_execute_usecode_array_01(0xFF4B, [0x66, 0x65, 0x68, 0x61, 0x66, 0x65, 0x68, 0x61]);
	labelFunc04B5_0144:
		if(!(event == 0x0001)) goto labelFunc04B5_0183;
		Func097F(0xFE9C, "@Excuse me...@", 0x0000);
		Func097F(0xFF4B, "@Who art thou?@", 0x0002);
		var0007 = UI_execute_usecode_array_01(0xFF4B, [0x02]);
		UI_set_schedule_type_25(0xFF4B, 0x0003);
		0xFF4B;
		calle();
	labelFunc04B5_0183:
		if(!(event == 0x0009)) goto labelFunc04B5_02D0;
		UI_run_schedule_B7(0xFF4B);
		UI_clear_item_say_4E(0xFF4B);
		UI_show_npc_face0_05(0xFF4B, 0x0000);
		if(!(var0006 == 0x0000)) goto labelFunc04B5_01E2;
		UcMessage("\"Hast thou seen the firebird's death or followed thy dreams to seek power? Canst thou touch the face of a dream that clutches thee with bony claws? How wouldst thou know the power that leaps from dream to dream, devouring death as it went?\"");
		UcSay;
		UI_set_item_flag_A4(0xFF4B, 0x001C);
		UcMessage("\"Dost thou have the protection of Courage to face thy dreams? Can thine helm face the power and kiss the lips of sweet death?\"");
		UcSay;
		if(!(var0003 == true)) goto labelFunc04B5_01D4;
		UI_set_npc_id_BD(0xFF4B, 0x0002);
		goto labelFunc04B5_01DE;
	labelFunc04B5_01D4:
		UI_set_npc_id_BD(0xFF4B, 0x0001);
	labelFunc04B5_01DE:
		Func085C();
		abrt();
	labelFunc04B5_01E2:
		if(!(var0006 == 0x0002)) goto labelFunc04B5_020C;
		if(!(var0003 == true)) goto labelFunc04B5_01F8;
		UcMessage("\"Curse the pot metal protection that thou dost call Courage! Thou hast not danced with the maker of dreams upon the cold stone grave of power...\"");
		UcSay;
	labelFunc04B5_01F8:
		UI_set_npc_id_BD(0xFF4B, 0x0005);
		Func085D(0x0B66, 0x05C7);
		abrt();
	labelFunc04B5_020C:
		if(!(var0006 == 0x0005)) goto labelFunc04B5_023D;
		UcMessage("\"Dost thou have the glass petals of Love to bind thy dreams? Canst thou swim the seas of death and come forth the father of power?\"");
		UcSay;
		if(!(var0004 == true)) goto labelFunc04B5_022F;
		UI_set_npc_id_BD(0xFF4B, 0x0003);
		goto labelFunc04B5_0239;
	labelFunc04B5_022F:
		UI_set_npc_id_BD(0xFF4B, 0x0007);
	labelFunc04B5_0239:
		Func085C();
		abrt();
	labelFunc04B5_023D:
		if(!(var0006 == 0x0003)) goto labelFunc04B5_0267;
		if(!(var0004 == true)) goto labelFunc04B5_0253;
		UcMessage("\"A thousand plagues upon the putrid flower thou dost call Love! Thou canst not walk amongst the clouds of dreams and reap the withered souls of weaklings...\"");
		UcSay;
	labelFunc04B5_0253:
		UI_set_npc_id_BD(0xFF4B, 0x0006);
		Func085D(0x0B3A, 0x0594);
		abrt();
	labelFunc04B5_0267:
		if(!(var0006 == 0x0006)) goto labelFunc04B5_0298;
		UcMessage("\"Dost thou have the reflection of Truth to make thy dreams real? Canst thou mirror the ride of the spiraling serpent of death down to the peak of moonlit dreams?\"");
		UcSay;
		if(!(var0005 == true)) goto labelFunc04B5_028A;
		UI_set_npc_id_BD(0xFF4B, 0x0004);
		goto labelFunc04B5_0294;
	labelFunc04B5_028A:
		UI_set_npc_id_BD(0xFF4B, 0x0008);
	labelFunc04B5_0294:
		Func085C();
		abrt();
	labelFunc04B5_0298:
		if(!(var0006 == 0x0004)) goto labelFunc04B5_02C3;
		if(!(var0005 == true)) goto labelFunc04B5_02C0;
		UcMessage("\"Damnation to the false reflection that thou dost call Truth! Thou didst not fly to the vaulted tombs of vilified saints to grasp at the reins of the sun...\"");
		UcSay;
		UcMessage("\"Nooooo!\"");
		UcSay;
		UI_earthquake_6E(0x0005);
		UI_kill_npc_57(0xFF4B);
	labelFunc04B5_02C0:
		goto labelFunc04B5_02D0;
	labelFunc04B5_02C3:
		UI_set_npc_id_BD(0xFF4B, 0x0001);
		Func085C();
	labelFunc04B5_02D0:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern Func07D7 0x7D7 (var var0000);
extern var Func08B6 0x8B6 ();
extern Func095D 0x95D (var var0000);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func04B6 0x4B6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x000A);
	var0004 = UI_get_item_flag_A3(0xFFF0, 0x001C);
	if(!(event == 0x0001)) goto labelFunc04B6_0065;
	Func097F(0xFE9C, "@Hello, there!@", 0x0000);
	Func097F(0xFF4A, "@Yes?@", 0x0002);
	UI_set_schedule_type_25(0xFF4A, 0x0003);
	0xFF4A;
	calle();
	labelFunc04B6_0065:
		if(!(event == 0x0002)) goto labelFunc04B6_0323;
		if(!gflags[0211]) goto labelFunc04B6_0151;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_music_39(0x0016, Func09A0(0x0005, 0x0001));
		var0005 = Func09A0(0x0002, 0x0001);
		var0006 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x0636], 0x000C);
		var0007 = Func095C(0xFE9C, 0x0000);
		var0008 = Func095C(0xFE9C, 0x0003);
		if(!(var0007 > var0008)) goto labelFunc04B6_00EB;
		var0009 = (var0007 - var0008);
		Func095E(0xFE9C, 0x0003, var0009);
	labelFunc04B6_00EB:
		item;
		calle();
		var000A = Func08B6();
		enum();
	labelFunc04B6_00F6:
		for (var000D in var000A with var000B to var000C atend labelFunc04B6_0129);
		UI_clear_item_flag_A5(var000D, 0x0001);
		UI_set_schedule_type_25(var000D, 0x001F);
		var0006 = UI_execute_usecode_array_01(var000D, [0x23, 0x61]);
		goto labelFunc04B6_00F6;
	labelFunc04B6_0129:
		if(!var000D) goto labelFunc04B6_013B;
		Func097F(var000D, "@What dreams!@", 0x000E);
	labelFunc04B6_013B:
		UI_move_object_4B(0xFE9C, [0x05B4, 0x0652, 0x0000]);
		goto labelFunc04B6_0322;
	labelFunc04B6_0151:
		UI_show_npc_face0_05(0xFF4A, 0x0000);
		UcMessage("\"Edrin! Thou hast come...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF0, 0x0000);
		UcMessage("\"Siranush! I had despaired of seeing thee again! How I wish I could be with thee always...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou hast filled my world with the love I never knew while my body lived. For that, I have called thee here for one last sight of thee...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF0, 0x0000);
		UcMessage("\"Then the Hero hath succeeded in destroying the Dream Crystal?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"No, dear one, only I can undo what Rabindrinath hath done... The Hero hath defeated Rabindrinath and brought me the Crystal.\" *\"It is mine to destroy it.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF0, 0x0000);
		UcMessage("\"Although I know it would be wrong, I wish with all mine heart that thou wouldst not. If I could join thee, I would gladly.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I know that, dear Edrin. But thou hast life yet to live.\" *\"I must destroy the Crystal. My people and I must move on to what lies beyond... I will look for thee, and hope that thou dost join me in what waits ahead.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF0, 0x0000);
		UcMessage("\"I have no wish to bind thee here, for all that I love thee. I will live my life and pray to meet thee beyond this world.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thou canst add my prayers to thine, Edrin. I love thee, now and always.\" *\"Although we will not meet here again, dream of me... Farewell, my love.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFF0, 0x0000);
		UcMessage("\"I love thee... And I shall dream of thee all the rest of my days.\" *\"Farewell...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_4C(0xFFF0);
		UcMessage("\"Thou hast freed the tormented souls of my people, Avatar. Thy good deed shall be rewarded as promised.\" *\"I wish thee luck in thy quest. May thy sleep be peaceful...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func095D(0x0190);
		gflags[02DB] = true;
		var0006 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x0064);
		var000E = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc04B6_0236:
		for (var0011 in var000E with var000F to var0010 atend labelFunc04B6_0266);
		if(!(!((UI_get_item_shape_18(var0011) == 0x01E6) || (UI_get_item_shape_18(var0011) == 0x025F)))) goto labelFunc04B6_0263;
		UI_remove_item_84(var0011);
	labelFunc04B6_0263:
		goto labelFunc04B6_0236;
	labelFunc04B6_0266:
		var0006 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x03BB, 0xFE99, 0x0002, 0x0000);
		var0012 = 0x0000;
		var000E = UI_get_cont_items_33(0xFF1B, 0xFE99, 0xFE99, 0xFE99);
	labelFunc04B6_0298:
		if(!(var0012 < 0x0002)) goto labelFunc04B6_030A;
		enum();
	labelFunc04B6_02A3:
		for (var0011 in var000E with var0013 to var0014 atend labelFunc04B6_02EA);
		if(!(Func09A6(var0011) || (var0012 == 0x0001))) goto labelFunc04B6_02E7;
		if(!(!UI_set_last_created_2E(var0011))) goto labelFunc04B6_02D3;
		Func092F(0xFE9C, 0x000D);
	labelFunc04B6_02D3:
		if(!(!UI_give_last_created_43(0xFE9C))) goto labelFunc04B6_02E7;
		Func092F(0xFE9C, 0x000E);
	labelFunc04B6_02E7:
		goto labelFunc04B6_02A3;
	labelFunc04B6_02EA:
		var0012 = (var0012 + 0x0001);
		var000E = UI_get_cont_items_33(0xFF1B, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc04B6_0298;
	labelFunc04B6_030A:
		gflags[0211] = true;
		var0006 = UI_execute_usecode_array_01(0xFF4A, [0x23, 0x55, 0x04B6]);
	labelFunc04B6_0322:
		abrt();
	labelFunc04B6_0323:
		if(!(event == 0x0009)) goto labelFunc04B6_099B;
		UI_run_schedule_B7(0xFF4A);
		UI_clear_item_say_4E(0xFF4A);
		UI_show_npc_face0_05(0xFF4A, 0x0000);
		var0015 = UI_get_item_flag_A3(0xFF4A, 0x001C);
		if(!(gflags[020D] == true)) goto labelFunc04B6_046F;
		if(!var0003) goto labelFunc04B6_0450;
		UcMessage("\"Hast thou reconsidered my request, Avatar? Wilt thou give to me the Dream Crystal?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B6_0448;
		UcMessage("\"I knew that Edrin could not be so misled...\"");
		UcSay;
		var0016 = Func0996(0xFE9C, 0xFF4A, 0xFE99, 0x0289, 0xFE99, 0x000A, true);
		UcMessage("\"After all these centuries of waiting... I had almost given up hope.\" *\"But there is one that I must see one last time, before our paths forever separate.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0017 = UI_get_object_position_20(0xFF4A);
		var0017[0x0001] = (var0017[0x0001] + 0x0002);
		UI_move_object_4B(0xFFF0, var0017);
		UI_sprite_effect_68(0x0007, var0017[0x0001], var0017[0x0002], var0017[0x0003], 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFFF0, 0x000F);
		UI_set_schedule_type_25(0xFF4A, 0x000F);
		var0018 = UI_find_direction_22(0xFFF0, 0xFF4A);
		var0019 = UI_find_direction_22(0xFF4A, 0xFFF0);
		var0006 = UI_execute_usecode_array_01(0xFFF0, [0x23, 0x59, var0018, 0x6A]);
		var0006 = UI_execute_usecode_array_01(0xFF4A, [0x23, 0x59, var0019, 0x6A]);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x04B6], 0x000F);
		abrt();
		goto labelFunc04B6_044D;
	labelFunc04B6_0448:
		UcMessage("\"Then do not return unless thou hast had a change of heart! I am saddened beyond bearing!\"");
		UcSay;
		abrt();
	labelFunc04B6_044D:
		goto labelFunc04B6_046F;
	labelFunc04B6_0450:
		UcMessage("\"Hast thou reconsidered my request, Avatar? Wilt thou bring to me the Dream Crystal?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B6_046A;
		UcMessage("\"I knew that Edrin could not be so misled...\"");
		UcSay;
		UI_add_answer_0C("defeat");
		goto labelFunc04B6_046F;
	labelFunc04B6_046A:
		UcMessage("\"Then do not return unless thou hast had a change of heart! I am saddened beyond bearing!\"");
		UcSay;
		abrt();
	labelFunc04B6_046F:
		if(!((var0004 == true) && (!gflags[020D]))) goto labelFunc04B6_05E1;
		if(!(var0015 == false)) goto labelFunc04B6_04DD;
		var001A = UI_get_item_flag_A3(0xFF4B, 0x0004);
		if(!var001A) goto labelFunc04B6_04BC;
		UcMessage("\"I am Siranush. I have been expecting thee...\"");
		UcSay;
		UcMessage("\"Now that the foul mage Rabindrinath is dead, we have some hope of escaping his evil spell.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF4A, 0x001C);
		UI_add_answer_0C(["expecting", "Rabindrinath", "evil spell"]);
		goto labelFunc04B6_04DA;
	labelFunc04B6_04BC:
		UcMessage("\"Thou hast come at last! I am Siranush. I have been expecting thee... I knew that thou wert the one destined to free us from Rabindrinath's evil spell.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF4A, 0x001C);
		UI_add_answer_0C(["expecting", "Rabindrinath", "evil spell"]);
	labelFunc04B6_04DA:
		goto labelFunc04B6_05DE;
	labelFunc04B6_04DD:
		UcMessage("\"Thou hast returned. Hast thou brought to me the Dream Crystal, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B6_05D9;
		if(!(var0003 == true)) goto labelFunc04B6_05D1;
		var0016 = Func0996(0xFE9C, 0xFF4A, 0xFE99, 0x0289, 0xFE99, 0x000A, true);
		UcMessage("\"After all these centuries of waiting... I had almost given up hope.\" *\"But there is one that I must see one last time, before our paths forever separate.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0017 = UI_get_object_position_20(0xFF4A);
		var0017[0x0001] = (var0017[0x0001] + 0x0002);
		UI_move_object_4B(0xFFF0, var0017);
		UI_sprite_effect_68(0x0007, var0017[0x0001], var0017[0x0002], var0017[0x0003], 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFFF0, 0x000F);
		UI_set_schedule_type_25(0xFF4A, 0x000F);
		var0018 = UI_find_direction_22(0xFFF0, 0xFF4A);
		var0019 = UI_find_direction_22(0xFF4A, 0xFFF0);
		var0006 = UI_execute_usecode_array_01(0xFFF0, [0x23, 0x59, var0018, 0x6A]);
		var0006 = UI_execute_usecode_array_01(0xFF4A, [0x23, 0x59, var0019, 0x6A]);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x04B6], 0x000F);
		abrt();
		goto labelFunc04B6_05D6;
	labelFunc04B6_05D1:
		UcMessage("\"Perhaps thou wert dreaming, Avatar. I do not see the Dream Crystal.\" *\"Without the Crystal, our souls remain trapped. Bring to me the Dream Crystal and the Serpent Necklace is thine...\"");
		UcSay;
		abrt();
	labelFunc04B6_05D6:
		goto labelFunc04B6_05DE;
	labelFunc04B6_05D9:
		UcMessage("\"Without the Crystal, our souls remain trapped. Bring to me the Dream Crystal and the Serpent Necklace is thine...\"");
		UcSay;
		abrt();
	labelFunc04B6_05DE:
		goto labelFunc04B6_060C;
	labelFunc04B6_05E1:
		if(!(!gflags[00E6])) goto labelFunc04B6_05F3;
		UcMessage("\"Thou must not enter the realm of dreams before thou hast transformed the lost brother! His true form bears not wings.... Seek the answers, for I must have thine aid!\"");
		UcSay;
		UcMessage("\"To exit this place, thou must remember that from death a dreamer awakes. Seek the pillar of flame.\"");
		UcSay;
		goto labelFunc04B6_05FB;
	labelFunc04B6_05F3:
		UcMessage("\"The lost brother hath lost his wings, but thou hast not sought the memories of a bird. Thou must not enter this realm without that knowledge. Seek the answers, for I must have thine aid!\"");
		UcSay;
		UcMessage("\"Remember, death is a dreamer's fiery door to life.\"");
		UcSay;
	labelFunc04B6_05FB:
		UI_remove_npc_face0_07();
		Func097F(0xFF4A, "@Go quickly!@", 0x0000);
		abrt();
	labelFunc04B6_060C:
		UcAsk;
		cmps("expecting");
		UcMessage("\"As Edrin hath told thee of me, he hath dreamed of thee. I knew that thou wouldst come... 'Twas only a matter of time.\"");
		UcSay;
		UI_remove_answer_0D("expecting");
		UI_add_answer_0C("matter of time");
	labelFunc04B6_0629:
		cmps("matter of time");
		UcMessage("\"In mine own dreams, I saw that thou wouldst need the Serpent Necklace. I knew that thou wouldst have to come here before thou couldst complete thy quest.\"");
		UcSay;
		UI_remove_answer_0D("matter of time");
		UI_add_answer_0C(["Serpent Necklace", "quest"]);
	labelFunc04B6_0649:
		cmps("Serpent Necklace");
		UcMessage("\"'Tis a thing of power from the people who settled this land after the village of Gorlab existed. It is to be thy reward.\"");
		UcSay;
		UI_remove_answer_0D("Serpent Necklace");
		UI_add_answer_0C(["thing of power", "Gorlab", "reward"]);
	labelFunc04B6_066C:
		cmps("thing of power");
		UcMessage("\"I do not know what it will do... I only know that it was part of a set of such jewelry. And it was a symbol of authority of some sort.\"");
		UcSay;
		UI_remove_answer_0D("thing of power");
		UI_add_answer_0C("authority");
	labelFunc04B6_0686:
		cmps("authority");
		UcMessage("\"I have been trapped for a very long time, Avatar.\" *\"All I know is that the Ophidians seemed to worship serpents and that artifacts with the serpent symbol were often of magical origin. I have no idea what it will do.\"");
		UcSay;
		UI_remove_answer_0D("authority");
	labelFunc04B6_0699:
		cmps("Gorlab");
		UcMessage("\"The ruins that lie within the swamp are those of my village. Though Gorlab was not always a swamp.\" *'Long ago, Gorlab was once a prosperous community, Avatar.\"");
		UcSay;
		UI_remove_answer_0D("Gorlab");
		UI_add_answer_0C("swamp");
	labelFunc04B6_06B3:
		cmps("swamp");
		UcMessage("\"When I was Gorlab's healer, the village stood on firm ground. We held back the swamp and farmed the rich soil.\" *\"But after we became trapped in this forsaken place, the earthworks we had built crumbled and the swamp rose to engulf the village.\"");
		UcSay;
		UI_remove_answer_0D("swamp");
	labelFunc04B6_06C6:
		cmps("reward");
		if(!var001A) goto labelFunc04B6_06EC;
		UcMessage("\"Thou wert our only hope, Avatar. Our souls are trapped here, unable to go to what awaits beyond the realm of life.\"");
		UcSay;
		if(!var0003) goto labelFunc04B6_06E5;
		UcMessage("\"Thou dost have what will free us... If thou wilt help us, I shall reward thee with the Serpent Necklace.\"");
		UcSay;
		goto labelFunc04B6_06E9;
	labelFunc04B6_06E5:
		UcMessage("\"If thou wilt undertake the task I ask, I shall reward thee with the Serpent necklace.\"");
		UcSay;
	labelFunc04B6_06E9:
		goto labelFunc04B6_06F0;
	labelFunc04B6_06EC:
		UcMessage("\"Thou art our only hope, Avatar. Our souls are trapped here, unable to go to what awaits beyond the realm of life.\" *\"If thou wilt undertake the task I ask, I shall reward thee with the Serpent necklace.\"");
		UcSay;
	labelFunc04B6_06F0:
		UI_remove_answer_0D("reward");
	labelFunc04B6_06F7:
		cmps("quest");
		UcMessage("\"Thou art the only one that can hope to save the land from tearing itself apart, Avatar.\"");
		UcSay;
		UcMessage("\"I do not know what thou must do... I only know that thou must possess the Serpent Necklace before thou hast hope of succeeding.\"");
		UcSay;
		UcMessage("\"But first, thou must free us.\"");
		UcSay;
		UI_remove_answer_0D("quest");
		UI_add_answer_0C("free");
	labelFunc04B6_0719:
		cmps("free");
		UcMessage("\"Although it was Rabindrinath's spell that trapped us within the Dream Realm, it is the Dream Crystal that keeps us from leaving.\"");
		UcSay;
		UcMessage("\"It is also the Crystal that traps any who enter the swamp.\"");
		UcSay;
		if(!var0003) goto labelFunc04B6_0736;
		UcMessage("\"If thou wilt give me the Dream Crystal, we will all be freed.\"");
		UcSay;
		goto labelFunc04B6_073A;
	labelFunc04B6_0736:
		UcMessage("\"Bring to me the Dream Crystal and we will all be freed.\"");
		UcSay;
	labelFunc04B6_073A:
		UI_remove_answer_0D("free");
		UI_add_answer_0C("Dream Crystal");
	labelFunc04B6_0748:
		cmps("Dream Crystal");
		if(!var0003) goto labelFunc04B6_0765;
		UcMessage("\"Before thou didst slay Rabindrinath, thou hadst seen a small part of the whole...\"");
		UcSay;
		UcMessage("\"The crystal that Edrin wears is a shard of the Dream Crystal. That is how I was able to speak with him.\"");
		UcSay;
		UcMessage("\"The entire crystal is what thou didst find in Rabindrinath's Keep when thou didst kill him.\"");
		UcSay;
		goto labelFunc04B6_0774;
	labelFunc04B6_0765:
		UcMessage("\"Thou hast already seen a small part of the whole... The crystal that Edrin wears is a shard of the Dream Crystal. That is how I was able to speak with him.\"");
		UcSay;
		UcMessage("\"To find the Dream Crystal, thou must venture into Rabindrinath's Keep somewhere within the Dream Realm.\"");
		UcSay;
		UI_add_answer_0C("Rabindrinath's Keep");
	labelFunc04B6_0774:
		UI_remove_answer_0D("Dream Crystal");
	labelFunc04B6_077B:
		cmps("Rabindrinath's Keep");
		UcMessage("\"I would go with thee, if I could. But I am all that keeps Rabindrinath's madness at bay. Without mine opposition, all our souls would have been destroyed long ago.\" *\"Rabindrinath will have the Crystal well-hidden, and I doubt that thou canst take it from his keep without killing him. Be wary, Avatar. He is quite mad.\"");
		UcSay;
		UI_remove_answer_0D("Rabindrinath's Keep");
	labelFunc04B6_078E:
		cmps("Rabindrinath");
		UcMessage("\"Rabindrinath was a haughty mage who moved into our town shortly after I became the healer there. He was very angry when we did not immediately name him to the village Council.\" *\"Rabindrinath stormed back to his keep, swearing that we would soon see that he was no one to trifle with. I wish I had understood what he was planning when he began collecting the crystals.\"");
		UcSay;
		UI_remove_answer_0D("Rabindrinath");
		UI_add_answer_0C("crystals");
	labelFunc04B6_07A8:
		cmps("crystals");
		UcMessage("\"Rabindrinath bought a vast quantity of Dream Crystals. I thought them harmless...\" *\"Small Dream Crystals were often exchanged by lovers. So that they might see each other in their dreams. I had no idea that he could pervert them so.\"");
		UcSay;
		UI_remove_answer_0D("crystals");
		UI_add_answer_0C("pervert");
	labelFunc04B6_07C2:
		cmps("pervert");
		UcMessage("\"I am no mage, Avatar. The Dream Crystals were little more than hedge magic. I had no idea that Rabindrinath could use them for anything sinister.\" *\"Else I would have brought him before the Judicar... And had his powers riven from him.\"");
		UcSay;
		UI_remove_answer_0D("pervert");
	labelFunc04B6_07D5:
		cmps("evil spell");
		UcMessage("\"Rabindrinath thought to harness the villager's dreams, hoping to gain great power. He intended to use that power to make the village submit to his rule.\" *\"But his spell went awry...\"");
		UcSay;
		UI_remove_answer_0D("evil spell");
		UI_add_answer_0C("awry");
	labelFunc04B6_07EF:
		cmps("awry");
		UcMessage("\"I do not know if Rabindrinath thought that he would tap our dreams and exploit what we feared. Or if he planned to steal some of our essence while we lay dreaming.\" *\"Whatever his true plans, when he cast his spell the power was so great that a rift opened into the Dream Realm. The people of Gorlab, including the spellcaster himself, were trapped within this land of altered reality.\"");
		UcSay;
		UI_remove_answer_0D("awry");
		UI_add_answer_0C("trapped");
	labelFunc04B6_0809:
		cmps("trapped");
		UcMessage("\"We became trapped here, unable to return to our bodies that still lay within the village. Most of the villagers quickly went insane here -- where things that are not, are.\"");
		UcSay;
		UcMessage("\"Those who resisted initially soon joined their neighbors in insanity when their bodies died. I have done what I can for them. But I cannot cure insanity.\"");
		UcSay;
		if(!var001A) goto labelFunc04B6_0826;
		UcMessage("\"And it was all I could do to keep Rabindrinath's insanity from destroying us.\"");
		UcSay;
		goto labelFunc04B6_082A;
	labelFunc04B6_0826:
		UcMessage("\"And I can do little more than keep Rabindrinath's insanity from destroying us.\"");
		UcSay;
	labelFunc04B6_082A:
		UI_remove_answer_0D("trapped");
		UI_add_answer_0C("destroying");
	labelFunc04B6_0838:
		cmps("destroying");
		UcMessage("\"Rabindrinath soon discovered that he could alter the Dream Realm by will alone. I repulsed his attacks until his body at last died too. And with this, what little sanity he had departed.\"");
		UcSay;
		UcMessage("\"Rabindrinath blamed the people of Gorlab and swore to destroy us all...\" *\"Our bodies are long moldered away, and our souls remain bound here. If any of us should die here, we will be lost forever.\"");
		UcSay;
		if(!var0003) goto labelFunc04B6_0948;
		UcMessage("\"Wilt thou give to me the Dream Crystal so that we may at last find peace?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B6_0934;
		var0016 = Func0996(0xFE9C, 0xFF4A, 0xFE99, 0x0289, 0xFE99, 0x000A, true);
		UcMessage("\"After all these centuries of waiting... I had almost given up hope.\" *\"But there is one that I must see one last time, before our paths forever separate.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0017 = UI_get_object_position_20(0xFF4A);
		var0017[0x0001] = (var0017[0x0001] + 0x0002);
		UI_move_object_4B(0xFFF0, var0017);
		UI_sprite_effect_68(0x0007, var0017[0x0001], var0017[0x0002], var0017[0x0003], 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFFF0, 0x000F);
		UI_set_schedule_type_25(0xFF4A, 0x000F);
		var0018 = UI_find_direction_22(0xFFF0, 0xFF4A);
		var0019 = UI_find_direction_22(0xFF4A, 0xFFF0);
		var0006 = UI_execute_usecode_array_01(0xFFF0, [0x23, 0x59, var0018, 0x6A]);
		var0006 = UI_execute_usecode_array_01(0xFF4A, [0x23, 0x59, var0019, 0x6A]);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x04B6], 0x000F);
		abrt();
		goto labelFunc04B6_0945;
	labelFunc04B6_0934:
		UcMessage("\"Edrin hath thought thee kind... I see that he was misled.\"");
		UcSay;
		UcMessage("\"Without thine aid we are doomed to eternal limbo, not dead and never to be alive again. Trapped forever in insanity.\"");
		UcSay;
		UcMessage("\"Return if thou dost reconsider... I doubt that thou canst finish thine own quest without mine aid.\"");
		UcSay;
		var001B = true;
		abrt();
	labelFunc04B6_0945:
		goto labelFunc04B6_0976;
	labelFunc04B6_0948:
		UcMessage("\"Wilt thou bring me the Dream Crystal so that we may at last find peace? I fear that soon my strength will fail, and the people of Gorlab and I will be far worse than dead.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04B6_0969;
		UcMessage("\"Thou art truly as brave as Edrin pictured thee! I can tell thee how to defeat Rabindrinath...\"");
		UcSay;
		UI_remove_answer_0D("destroying");
		UI_add_answer_0C("defeat");
		goto labelFunc04B6_0976;
	labelFunc04B6_0969:
		UcMessage("\"Edrin hath thought thee brave... I see that he was misled.\" *\"Without thine aid we are doomed to eternal limbo, not dead and never to be alive again. Trapped forever in insanity.\"");
		UcSay;
		UcMessage("\"Return if thou dost reconsider... I doubt that thou canst finish thine own quest without mine aid.\"");
		UcSay;
		var001B = true;
		abrt();
	labelFunc04B6_0976:
		cmps("defeat");
		UcMessage("\"Rabindrinath hath styled himself a god here. He cannot be killed as thou wouldst a normal man. He can only be overpowered by the application of Truth, Love and Courage.\"");
		UcSay;
		UcMessage("\"In order to do this, thou must be armed with three artifacts... the Artifact of Courage, the Artifact of Love, and the Artifact of Truth.\"");
		UcSay;
		UcMessage("\"Bring to me the Dream Crystal from Rabindrinath's keep and we shall at last be free!\"");
		UcSay;
		gflags[020E] = true;
		gflags[020F] = true;
		gflags[0210] = true;
		abrt();
	labelFunc04B6_0997:
		goto labelFunc04B6_060C;
	labelFunc04B6_099A:
		end_conv();
	labelFunc04B6_099B:
		return;
}
Func04B7 0x4B7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc04B7_0012;
	UI_item_say_4D(0xFF49, "@Dammit, I need water!@");
	labelFunc04B7_0012:
		if(!((event == 0x0009) || (event == 0x0000))) goto labelFunc04B7_0059;
		var0000 = UI_die_roll_17(0x0001, 0x0003);
		var0001 = ["Just a drop!", "Water, dammit!", "I have to have water!!!"];
		var0002 = var0001[var0000];
		UI_item_say_4D(0xFF49, var0002);
		UI_set_schedule_type_25(0xFF49, 0x0007);
	labelFunc04B7_0059:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04B8 0x4B8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_npc_id_BC(0xFF48);
	var0001 = Func0954();
	var0002 = Func0953();
	if(!(event == 0x0001)) goto labelFunc04B8_004C;
	UI_item_say_4D(0xFE9C, "@May we speak?@");
	0xFF48;
	calle();
	Func097F(0xFF48, (("@Yes, " + var0001) + "?@"), 0x0002);
	UI_set_schedule_type_25(0xFF48, 0x0003);
	labelFunc04B8_004C:
		if(!(event == 0x0009)) goto labelFunc04B8_0083;
		UI_run_schedule_B7(0xFF48);
		UI_show_npc_face0_05(0xFF48, 0x0000);
		UcMessage("\"What... hath... happened? Where... am I? Who am I?\"");
		UcSay;
		UcMessage("\"I remember! I am Number 7!\"");
		UcSay;
		UcMessage("\"Oh, foul betrayal! Number 4 murdered me and took the key!\"");
		UcSay;
		UcMessage("\"He must not be allowed to hold the hallowed key!!\"");
		UcSay;
		Func097F(item, "@Stop him!@", 0x0000);
		UI_remove_npc_face0_07();
	labelFunc04B8_0083:
		return;
}
// externs
extern Func0809 0x809 ();

Func04B9 0x4B9 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04B9_000F;
	Func0809();
	abrt();
	labelFunc04B9_000F:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func09AD 0x9AD (var var0000);

Func04BA 0x4BA (var var0000)
{
	var var0001;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04BA_000F;
	Func0809();
	abrt();
	labelFunc04BA_000F:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFF46) != 0x000F))) goto labelFunc04BA_0066;
		UI_item_say_4D(0xFE9C, "@Hello!@");
		0xFF46;
		calle();
		Func097F(0xFF46, "@Intruder!@", 0x0005);
		0xFF46;
		calle();
		UI_set_schedule_type_25(0xFF46, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF46, [0x23, 0x55, 0x04BA], 0x000A);
	labelFunc04BA_0066:
		if(!(event == 0x0002)) goto labelFunc04BA_00E8;
		if(!(item != UI_get_npc_object_23(0xFF46))) goto labelFunc04BA_00B0;
		Func097F(0xFF46, "@Intruder!@", 0x0005);
		0xFF46;
		calle();
		UI_set_schedule_type_25(0xFF46, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF46, [0x23, 0x55, 0x04BA], 0x000A);
		goto labelFunc04BA_00E8;
	labelFunc04BA_00B0:
		UI_clear_item_say_4E(0xFF46);
		UI_run_schedule_B7(0xFF46);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"These doors have been sealed by the Serpent of Order, and none shall enter. By approaching thus far, thou hath shown thyself to be mine enemy.\"");
		UcSay;
		UcMessage("\"Now I must kill thee, lest the Serpent judge me unworthy. Bless my blade, master!\"");
		UcSay;
		Func097F(0xFF46, "@I shall prevail!@", 0x0000);
		Func09AD(0xFF46);
		Func09AD(0xFF45);
	labelFunc04BA_00E8:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func04BA 0x4BA (var var0000);

Func04BB 0x4BB (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04BB_000F;
	Func0809();
	abrt();
	labelFunc04BB_000F:
		item;
		calle();
		return;
}
// externs
extern Func0809 0x809 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func09AD 0x9AD (var var0000);

Func04BC 0x4BC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04BC_000F;
	Func0809();
	abrt();
	labelFunc04BC_000F:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFF44) != 0x000F))) goto labelFunc04BC_0066;
		UI_item_say_4D(0xFE9C, "@Greetings!@");
		0xFF44;
		calle();
		Func097F(0xFF44, "@Keep away!@", 0x0005);
		0xFF44;
		calle();
		UI_set_schedule_type_25(0xFF44, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF44, [0x23, 0x55, 0x04BC], 0x000A);
	labelFunc04BC_0066:
		if(!(event == 0x0002)) goto labelFunc04BC_00DB;
		if(!(item != UI_get_npc_object_23(0xFF44))) goto labelFunc04BC_00B0;
		Func097F(0xFF44, "@Keep Away!@", 0x0005);
		0xFF44;
		calle();
		UI_set_schedule_type_25(0xFF44, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF44, [0x23, 0x55, 0x04BC], 0x000A);
		goto labelFunc04BC_00DB;
	labelFunc04BC_00B0:
		UI_clear_item_say_4E(0xFF44);
		UI_set_schedule_type_25(0xFF44, 0x0009);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Thou art not permitted here. It is dangerous here. The forces beyond these doors are not of mortal understanding.\"");
		UcSay;
		Func097F(0xFF44, "@Be on thy way!@", 0x0000);
	labelFunc04BC_00DB:
		if(!(event == 0x0000)) goto labelFunc04BC_0138;
		var0001 = UI_get_random_00(0x000A);
		if(!(var0001 == 0x0006)) goto labelFunc04BC_010A;
		Func097F(0xFF44, "@I asked nicely...@", 0x0000);
		Func09AD(0xFF44);
		abrt();
	labelFunc04BC_010A:
		if(!(var0001 < 0x0006)) goto labelFunc04BC_0138;
		var0002 = ["@Move on!@", "@Dangers lurk here.@", "@Thou must go!@", "@I beg thee to go...@", "@Please leave.@"];
		Func097F(0xFF44, var0002[var0001], 0x0000);
	labelFunc04BC_0138:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);

Func04BD 0x4BD (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04BD_000F;
	Func0809();
	abrt();
	labelFunc04BD_000F:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFF43) != 0x000F))) goto labelFunc04BD_0045;
		UI_item_say_4D(0xFE9C, "@Hello!@");
		0xFF43;
		calle();
		Func097F(0xFF43, "@Die, fool!@", 0x0005);
		Func09AD(0xFF43);
	labelFunc04BD_0045:
		if(!(event == 0x0002)) goto labelFunc04BD_006B;
		if(!(item != UI_get_npc_object_23(0xFF43))) goto labelFunc04BD_006B;
		Func097F(0xFF43, "@Die, intruder!@", 0x0005);
		Func09AD(0xFF43);
	labelFunc04BD_006B:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern var Func0955 0x955 ();
extern var Func0954 0x954 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func09AD 0x9AD (var var0000);

Func04BE 0x4BE (var var0000)
{
	var var0001;
	var var0002;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04BE_000F;
	Func0809();
	abrt();
	labelFunc04BE_000F:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(0xFF42) != 0x000F))) goto labelFunc04BE_0066;
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		0xFF42;
		calle();
		Func097F(0xFF42, "@Hold!@", 0x0005);
		0xFF42;
		calle();
		UI_set_schedule_type_25(0xFF42, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF42, [0x23, 0x55, 0x04BE], 0x000A);
	labelFunc04BE_0066:
		if(!(event == 0x0002)) goto labelFunc04BE_0141;
		if(!(item != UI_get_npc_object_23(0xFF42))) goto labelFunc04BE_00B0;
		Func097F(0xFF42, "@Hold!@", 0x0005);
		0xFF42;
		calle();
		UI_set_schedule_type_25(0xFF42, 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(0xFF42, [0x23, 0x55, 0x04BE], 0x000A);
		goto labelFunc04BE_0141;
	labelFunc04BE_00B0:
		UI_clear_item_say_4E(0xFF42);
		UI_run_schedule_B7(0xFF42);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UcMessage("\"Thou art not permitted here! I and my kind are the only beings allowed to prowl these tunnels. We are here to maintain Order.\"");
		UcSay;
		UcMessage("\"Unless thou canst show me thy Medallion of Order, I shall have to slay thee. Dost thou have one?\"");
		UcSay;
		if(!Func0955()) goto labelFunc04BE_012B;
		var0000 = (("@But " + Func0954()) + ", we have no such thing!@");
		var0001 = Func0992(0x0001, var0000, 0x0000, false);
		if(!(var0001 != 0xFE9C)) goto labelFunc04BE_0118;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Aha! Then die, Spawn of Chaos!\"");
		UcSay;
		Func097F(0xFF42, "@To battle!@", 0x0000);
		goto labelFunc04BE_0128;
	labelFunc04BE_0118:
		UcMessage("\"Thou dost lie! Now I must certainly slay thee.\"");
		UcSay;
		Func097F(0xFF42, "@Die, Spawn of Chaos!@", 0x0000);
	labelFunc04BE_0128:
		goto labelFunc04BE_013B;
	labelFunc04BE_012B:
		UcMessage("\"Then die, Spawn of Chaos!\"");
		UcSay;
		Func097F(0xFF42, "@To battle!@", 0x0000);
	labelFunc04BE_013B:
		Func09AD(0xFF42);
	labelFunc04BE_0141:
		return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04BF 0x4BF (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Stefano";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C0 0x4C0 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Mortegro";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C1 0x4C1 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Seminarium";
	var0001 = 0x0002;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C2 0x4C2 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Pothos";
	var0001 = 0x0007;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0809 0x809 ();

Func04C5 0x4C5 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04C5_000F;
	Func0809();
	abrt();
	labelFunc04C5_000F:
		return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C6 0x4C6 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Rocco";
	var0001 = 0x0008;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C7 0x4C7 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Rocco";
	var0001 = 0x0009;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04C8 0x4C8 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Rocco";
	var0001 = 0x000A;
	Func0808(var0000, var0001);
	return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04C9 0x4C9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_item_flag_A3(0xFF37, 0x001C);
	if(!(event == 0x0007)) goto labelFunc04C9_005C;
	UI_show_npc_face0_05(0xFFC0, 0x0000);
	UcMessage("\"Why dost thou attack me? Do thine eyes deceive thee so?\" *\"Slay the foul bane that wishes to devour me instead! If it is not stopped, it will destroy us all!\" *\"I can stand this nightmare no more...\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0001 = UI_get_object_position_20(item);
	UI_play_sound_effect_16(0x0074);
	UI_sprite_effect_68(0x001B, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_npc_4C(0xFF37);
	labelFunc04C9_005C:
		if(!(event == 0x0000)) goto labelFunc04C9_00C9;
		var0002 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0002 == 0x0001)) goto labelFunc04C9_0087;
		Func097F(0xFF37, "@Make it stop!@", 0x0000);
	labelFunc04C9_0087:
		if(!(var0002 == 0x0002)) goto labelFunc04C9_009D;
		Func097F(0xFF37, "@It will kill me!@", 0x0000);
	labelFunc04C9_009D:
		if(!(var0002 == 0x0003)) goto labelFunc04C9_00B3;
		Func097F(0xFF37, "@Canst thou not see it!@", 0x0000);
	labelFunc04C9_00B3:
		if(!(var0002 == 0x0004)) goto labelFunc04C9_00C9;
		Func097F(0xFF37, "@It is pure evil!@", 0x0000);
	labelFunc04C9_00C9:
		if(!(event == 0x0001)) goto labelFunc04C9_0120;
		if(!(var0000 != true)) goto labelFunc04C9_0103;
		UI_show_npc_face0_05(0xFFC0, 0x0000);
		UcMessage("\"Iieeeee.... Help me!\" ~\"I cannot escape...\" ~\"It will catch and devour me!\" *\"Canst thou not see it? Please, help me!\"");
		UcSay;
		UI_set_item_flag_A4(0xFF37, 0x001C);
		UI_remove_npc_face0_07();
		UI_set_schedule_type_25(0xFF37, 0x001D);
		abrt();
		goto labelFunc04C9_0120;
	labelFunc04C9_0103:
		UI_show_npc_face0_05(0xFFC0, 0x0000);
		UcMessage("\"Art thou blind! Canst thou not see the foul beast?\" *\"Have mercy! I beg thee to slay such an horror! Please, thou must kill it before it takes me!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_schedule_type_25(0xFF37, 0x001D);
		abrt();
	labelFunc04C9_0120:
		return;
}
// externs
extern Func0809 0x809 ();
extern Func0924 0x924 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04CA 0x4CA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04CA_000F;
	Func0809();
	abrt();
	labelFunc04CA_000F:
		var0000 = UI_get_item_flag_A3(0xFF36, 0x001C);
		if(!(event == 0x0001)) goto labelFunc04CA_03B4;
		UI_clear_item_say_4E(0xFF36);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		if(!(!var0000)) goto labelFunc04CA_0050;
		UcMessage("\"Halt! Only a true follower of Order may pass this portal. Art thou such a disciple?\"");
		UcSay;
		UI_add_answer_0C(["I follow Order", "I follow Chaos"]);
		goto labelFunc04CA_0085;
	labelFunc04CA_0050:
		if(!gflags[0251]) goto labelFunc04CA_0071;
		UcMessage("\"'Tis good to see thee again, scholar of Order.\"");
		UcSay;
		UcMessage("\"I surmise thou didst come across with the others.\"");
		UcSay;
		UI_add_answer_0C(["door locked", "others", "bye"]);
		goto labelFunc04CA_0085;
	labelFunc04CA_0071:
		UcMessage("\"Oh, 'tis only thee. I hope that thou hast become more learned in the ways of Order, lest thou wilt not be permitted to enter the grand shrine.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test", "grand shrine", "bye"]);
	labelFunc04CA_0085:
		UcAsk;
		cmps("I follow Order");
		UI_remove_answer_0D(["I follow Order", "I follow Chaos"]);
		UcMessage("\"That may be, but I must test thy knowledge before I permit thee access to the grand shrine.\"");
		UcSay;
		UI_add_answer_0C(["test", "grand shrine", "bye"]);
	labelFunc04CA_00B1:
		cmps("test");
		UI_remove_answer_0D("test");
		UcMessage("\"Though I doubt one such as thee would attempt to deceive me, many 'followers' of late do not appear to truly be devoted to Order.\"");
		UcSay;
		UcMessage("\"In truth, I believe them to be impostors, though they did answer the question I put to them.\"");
		UcSay;
		UI_add_answer_0C(["impostors", "question"]);
	labelFunc04CA_00D5:
		cmps("question");
		UI_remove_answer_0D("question");
		UcMessage("\"To insure that thou art a true student of Order, I will ask thee to complete a line from one of our greatest books and thou must name the book.\"");
		UcSay;
		UcMessage("\"Only a devout student of Order would know the answer.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test"]);
	labelFunc04CA_00F6:
		cmps("Give me the test");
		UI_remove_answer_0D("Give me the test");
		UcMessage("\"Which book tells us, ~'Being sincere and fair in all of thy transactions will provide thee with more power than thou ever hadst.'\"*");
		UcSay;
		UcMessage("\"'Thou wert strong, thou wilt be stronger. Thy strength will be exalted in truth.'\"");
		UcSay;
		UI_push_answers_0E();
		UI_add_answer_0C(["Strength Though Ethics", "Guidelines of Life", "Tenets of Discipline"]);
		if(!gflags[0252]) goto labelFunc04CA_0134;
		UI_add_answer_0C(["The Structure of Order"]);
		goto labelFunc04CA_013E;
	labelFunc04CA_0134:
		UI_add_answer_0C(["The Joy of Order"]);
	labelFunc04CA_013E:
		cmps("Strength Though Ethics");
		UI_pop_answers_0F();
		UcMessage("\"An excellent book, one that can guide a disciple of Order to new consciousness. I would recommend that thou readest it. Then thou wouldst realize that the answer thou didst give was incorrect.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test"]);
	labelFunc04CA_0158:
		cmps("Tenets of Discipline");
		UI_pop_answers_0F();
		UcMessage("\"Shushuro was a great man indeed. If only mine hollow head could be so enlightened. But at least I realize my quote was not from that book's pages. Mayhap thou shouldst return to the city and examine thy books further.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test"]);
	labelFunc04CA_0172:
		cmps("Guidelines of Life");
		UI_pop_answers_0F();
		UcMessage("\"A masterpiece! Indeed, its words of wisdom could educate thee very well. Then thou wouldst be enlightened to learn that the book thou didst name doth not contain any such quote.\"");
		UcSay;
		UcMessage("\"Mayhap thou dost need to study more at the Hierophant's library. 'Tis a wondrous place full of the wisdom of Order.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test"]);
	labelFunc04CA_0190:
		cmps("The Joy of Order");
		UI_pop_answers_0F();
		UcMessage("\"Curious, I have never heard of that book. Methinks that thou art trying to deceive me. Please, do us both a service and return thou to the library for further study.\"");
		UcSay;
		UI_add_answer_0C(["Give me the test"]);
	labelFunc04CA_01AA:
		cmps("The Structure of Order");
		UI_remove_answer_0D("The Structure of Order");
		UI_pop_answers_0F();
		UcMessage("\"Ah, so thou art a true accolyte of Order. I will permit thee to enter the Grand Shrine.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0001 = UI_find_nearby_41(item, 0x0314, 0x001E, 0x0000);
		enum();
	labelFunc04CA_01D7:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc04CA_023B);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x0000)) goto labelFunc04CA_0221;
		var0006 = UI_set_item_quality_1D(var0004, 0x0096);
		gflags[0251] = true;
		var0007 = UI_get_object_position_20(var0004);
		UI_play_sound_effect_16(0x001E);
		Func0924(var0004, 0x0001);
	labelFunc04CA_0221:
		if(!(var0005 == 0x0078)) goto labelFunc04CA_0238;
		var0006 = UI_set_item_quality_1D(var0004, 0x0093);
	labelFunc04CA_0238:
		goto labelFunc04CA_01D7;
	labelFunc04CA_023B:
		var0001 = UI_find_nearby_41(item, 0x036C, 0x0014, 0x0000);
		enum();
	labelFunc04CA_024D:
		for (var000A in var0001 with var0008 to var0009 atend labelFunc04CA_0268);
		var0006 = UI_set_item_quality_1D(var000A, 0x0093);
		goto labelFunc04CA_024D;
	labelFunc04CA_0268:
		var0001 = UI_find_nearby_41(item, 0x03A7, 0x0014, 0x0000);
		enum();
	labelFunc04CA_027A:
		for (var000A in var0001 with var000B to var000C atend labelFunc04CA_02C3);
		var0006 = UI_set_item_quality_1D(var000A, 0x0093);
		var0001 = UI_find_nearby_41(item, 0x0314, 0x0014, 0x0000);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x0093)) goto labelFunc04CA_02C0;
		Func0924(var0004, 0x0000);
	labelFunc04CA_02C0:
		goto labelFunc04CA_027A;
	labelFunc04CA_02C3:
		Func097F(0xFF36, "@Seek Order.@", 0x0003);
		abrt();
	labelFunc04CA_02D0:
		cmps("grand shrine");
		UI_remove_answer_0D("grand shrine");
		UcMessage("\"At the end of this corridor lies the grand shrine of Order. That is where the Hierophant performs the ceremony to open the Wall of Lights.\"");
		UcSay;
	labelFunc04CA_02E3:
		cmps("impostors");
		UI_remove_answer_0D("impostors");
		UcMessage("\"Though I should not speak such, they appeared to be, shall we say, less than intelligent. They seemed to have great difficulty with answering the most modest of my queries.\"");
		UcSay;
		UcMessage("\"One of their number even threatened to tear me limb from limb if I failed to open this portal. But it was the large one who answered all the questions correctly. He alone was no dolt.\"");
		UcSay;
		UI_add_answer_0C(["large one"]);
	labelFunc04CA_0304:
		cmps("others");
		UI_remove_answer_0D("others");
		UcMessage("\"The others that I spoke about earlier. Or did I mention them? I thought that I mentioned that the 'disciples' of late do not appear to be truly devout.\"*");
		UcSay;
		UcMessage("\"In truth, I believed them to be impostors, though they passed the test I put upon them.\"");
		UcSay;
		UI_add_answer_0C(["impostors"]);
	labelFunc04CA_0325:
		cmps("large one");
		UI_remove_answer_0D("large one");
		UcMessage("\"He was an impressive man, in both size and intellect. He appeared to have the combined intellect that the rest of the party lacked.\"*");
		UcSay;
		UcMessage("\"He answered my questions easily, though in truth I cannot remember what I asked of him.\"");
		UcSay;
	labelFunc04CA_033C:
		cmps("door locked");
		UI_remove_answer_0D("door locked");
		UcMessage("\"I am truly sorry, but I can only operate these doors. I know nothing about any other doors in this place.\"");
		UcSay;
	labelFunc04CA_034F:
		cmps("I follow Chaos");
		UI_remove_answer_0D("I follow Chaos");
		UcMessage("\"Then thou shalt not pass.\"");
		UcSay;
		Func097F(0xFF36, "@Duty.@", 0x0003);
		UI_set_schedule_type_25(0xFF36, 0x001D);
		goto labelFunc04CA_03B3;
	labelFunc04CA_037B:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFE9C, "@I have heard enough.@", 0x0000);
		Func097F(0xFF36, "@Always follow Order.@", 0x0003);
		UI_set_schedule_type_25(0xFF36, 0x001D);
		goto labelFunc04CA_03B3;
	labelFunc04CA_03B0:
		goto labelFunc04CA_0085;
	labelFunc04CA_03B3:
		end_conv();
	labelFunc04CA_03B4:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func0919 0x919 (var var0000);

Func04CB 0x4CB (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04CB_001C;
	UI_item_say_4D(0xFE9C, "Excuse me...");
	0xFF35;
	calle();
	Func0919(item);
	labelFunc04CB_001C:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc04CB_0044;
		UI_clear_item_flag_A5(item, 0x001D);
		UI_reduce_health_87(item, 0x0032, 0x0000);
		Func0919(item);
	labelFunc04CB_0044:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc04CB_005A;
		UI_set_schedule_type_25(item, 0x000F);
	labelFunc04CB_005A:
		if(!(event == 0x0002)) goto labelFunc04CB_006C;
		0xFF35;
		calle();
		Func0919(item);
	labelFunc04CB_006C:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func0919 0x919 (var var0000);

Func04CC 0x4CC (var var0000)
{
	if(!(event == 0x0001)) goto labelFunc04CC_001C;
	UI_item_say_4D(0xFE9C, "Excuse me...");
	0xFF34;
	calle();
	Func0919(item);
	labelFunc04CC_001C:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc04CC_0044;
		Func0919(item);
		UI_clear_item_flag_A5(item, 0x001D);
		UI_reduce_health_87(item, 0x0032, 0x0000);
	labelFunc04CC_0044:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func09AD 0x9AD (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func04CD 0x4CD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	if(!(event == 0x0001)) goto labelFunc04CD_0031;
	UI_item_say_4D(0xFE9C, "Could we speak?");
	0xFF33;
	calle();
	Func09AD(0xFF33);
	labelFunc04CD_0031:
		if(!(event == 0x0000)) goto labelFunc04CD_0104;
		var0003 = UI_get_distance_21(0xFF33, 0xFE9C);
		if(!(UI_get_random_00(0x000C) > var0003)) goto labelFunc04CD_0067;
		Func097F(item, "@'Tis him!@", 0x0005);
		Func09AD(0xFF33);
		goto labelFunc04CD_0104;
	labelFunc04CD_0067:
		if(!(UI_UNKNOWN_38() != 0x000C)) goto labelFunc04CD_0082;
		UI_play_music_39(0x000C, Func09A0(0x0005, 0x0001));
	labelFunc04CD_0082:
		var0004 = UI_get_random_00(0x0006);
		if(!(var0004 == 0x0001)) goto labelFunc04CD_00A0;
		UI_item_say_4D(0xFF33, "@I am hungry!@");
	labelFunc04CD_00A0:
		if(!(var0004 == 0x0002)) goto labelFunc04CD_00B4;
		UI_item_say_4D(0xFF33, "@Where is the food?@");
	labelFunc04CD_00B4:
		if(!(var0004 == 0x0003)) goto labelFunc04CD_00C8;
		UI_item_say_4D(0xFF33, "@Nothing but dust...@");
	labelFunc04CD_00C8:
		if(!(var0004 == 0x0004)) goto labelFunc04CD_00DC;
		UI_item_say_4D(0xFF33, "@Must eat...@");
	labelFunc04CD_00DC:
		if(!(var0004 == 0x0005)) goto labelFunc04CD_00F0;
		UI_item_say_4D(0xFF33, "@There must be food!@");
	labelFunc04CD_00F0:
		if(!(var0004 == 0x0006)) goto labelFunc04CD_0104;
		UI_item_say_4D(0xFF33, "@So hungry!@");
	labelFunc04CD_0104:
		if(!((event == 0x0007) && UI_get_item_flag_A3(item, 0x001D))) goto labelFunc04CD_011D;
		UI_clear_item_flag_A5(item, 0x001D);
	labelFunc04CD_011D:
		return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04CE 0x4CE (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Ducio";
	var0001 = 0x000B;
	Func0808(var0000, var0001);
	return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0994 0x994 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func08F8 0x8F8 (var var0000, var var0001, var var0002);
extern var Func08B6 0x8B6 ();
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern var Func084E 0x84E (var var0000, var var0001);
extern var Func0955 0x955 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func08FC 0x8FC ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func08FE 0x8FE ();
extern Func08FA 0x8FA ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08F5 0x8F5 (var var0000);

Func04CF 0x4CF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = "son";
	var0003 = Func0994();
	var0004 = "his";
	if(!UI_is_pc_female_6F()) goto labelFunc04CF_002C;
	var0004 = "her";
	labelFunc04CF_002C:
		if(!var0001) goto labelFunc04CF_0038;
		var0002 = "daughter";
	labelFunc04CF_0038:
		var0005 = Func0953();
		if(!(event == 0x0002)) goto labelFunc04CF_011C;
		if(!gflags[02FD]) goto labelFunc04CF_00D0;
		UI_item_say_4D(0xFF31, "@What a wonder!@");
		0xFF31;
		calle();
		UI_show_npc_face0_05(0xFF31, 0x0000);
		UcMessage("\"I am honored to have been present for such a miracle! Even I had not expected anything this momentous.");
		UcSay;
		if(!gflags[0004]) goto labelFunc04CF_0085;
		UcMessage("\"Now that the Tree of Balance thrives in this hallowed glade, it's strong roots shall begin healing the wrents in our land.");
		UcSay;
		UcMessage("\"Once thou hast restored Balance to our world, who knows what miracles may occur? I have even heard it said that the souls of the dead shall be returned to life once Balance is restored.");
		UcSay;
		UcMessage("\"Only time shall tell. But now, my ");
		UcMessage(var0002);
		UcMessage(", it is time that I return thee to thy quest.\"");
		UcSay;
		goto labelFunc04CF_0099;
	labelFunc04CF_0085:
		UcMessage("\"With the Tree of Balance firmly rooted in this hallowed glade, thy task of restoring Balance to the world will be much easier, my ");
		UcMessage(var0002);
		UcMessage(".");
		UcSay;
		UcMessage("\"Now, my ");
		UcMessage(var0002);
		UcMessage(", it is time that you return to thy quest.\"");
		UcSay;
	labelFunc04CF_0099:
		UI_remove_npc_face0_07();
		var0006 = UI_get_object_position_20(0xFF31);
		UI_sprite_effect_68(0x001A, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF31);
		goto labelFunc04CF_011C;
	labelFunc04CF_00D0:
		UI_item_say_4D(0xFF31, (("@Well done, my " + var0002) + "!@"));
		0xFF31;
		calle();
		UI_show_npc_face0_05(0xFF31, 0x0000);
		UcMessage("\"Thou hast found the Silver Seed! Now all that remains is for thee to plant it here in this hallowed glade.");
		UcSay;
		UcMessage("\"Xenka's prophecies spoke of the Hero restoring the Tree of Balance. But even Xenka herself could not say where the seed of such a tree could be found.");
		UcSay;
		UcMessage("\"When the Forest Master first entered our world we thought that perhaps he was to be the Hero from Another World. But we learned that the seed he possessed had been warped by his passage through the Void. It will never grow...\"");
		UcSay;
		UcMessage("\"Until Miggim found the Amulet of Balance, we had not even considered that the Ophidians knew anything of the Tree of Balance.");
		UcSay;
		UcMessage("\"Plant it here in this dark patch of rich ground in front of the waterfall, my ");
		UcMessage(var0002);
		UcMessage(". It looks just large enough for the seed, as if it were the seed's very own cradle. The water here will nourish it well.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF31, "@Plant it now.@", 0x0002);
	labelFunc04CF_011C:
		if(!(event == 0x0001)) goto labelFunc04CF_0161;
		if(!(UI_get_npc_id_BC(0xFF31) != 0x0000)) goto labelFunc04CF_0133;
		abrt();
	labelFunc04CF_0133:
		UI_item_say_4D(0xFE9C, "@Pardon me...@");
		0xFF31;
		calle();
		Func097F(0xFF31, (("@Yes, my " + var0002) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF31, 0x0003);
	labelFunc04CF_0161:
		if(!(event == 0x0000)) goto labelFunc04CF_01AD;
		if(!((UI_get_item_quality_1C(Func09A0(0x0005, 0x0001)) == 0x000A) && (!UI_get_item_flag_A3(0xFF29, 0x001C)))) goto labelFunc04CF_01AD;
		UI_set_schedule_type_25(0xFF31, 0x000F);
		var0007 = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0003), [0x23, 0x55, 0x0109]);
	labelFunc04CF_01AD:
		if(!(event == 0x0009)) goto labelFunc04CF_0B92;
		UI_run_schedule_B7(0xFF31);
		UI_clear_item_say_4E(0xFF31);
		UI_show_npc_face0_05(0xFF31, 0x0000);
		var0008 = UI_get_item_flag_A3(0xFF31, 0x001C);
		var0009 = false;
		if(!(UI_get_npc_id_BC(0xFF31) == 0x001F)) goto labelFunc04CF_04A2;
		UI_set_npc_id_BD(0xFF31, 0x0000);
		UcMessage("\"The bells are signaling the return of Xenka!\"");
		UcSay;
		UcMessage("\"Thou art the Hero from Another World. It is for thee that she doth return. We must hurry!\"");
		UcSay;
		var000A = UI_get_object_position_20(0xFE9C);
		if(!Func08F8(var000A, [0x0950, 0x0470], [0x097E, 0x0486])) goto labelFunc04CF_0227;
		UcMessage("\"Prepare yourselves for the coming of Xenka!\"");
		UcSay;
	labelFunc04CF_0227:
		UI_remove_npc_face0_07();
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var000B = Func08B6();
		var000B = [0xFE9C, var000B];
		var000C = [0x0967, 0x047C, 0x0000];
		var000D = [0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001];
		var000E = [Dupre, Dupre, Dupre, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000];
		var000F = 0x0001;
		UI_sprite_effect_68(0x0007, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		enum();
	labelFunc04CF_02C5:
		for (var0012 in var000B with var0010 to var0011 atend labelFunc04CF_03EF);
		if(!(!UI_get_item_flag_A3(var0012, 0x001E))) goto labelFunc04CF_02E8;
		UI_set_schedule_type_25(var0012, 0x001F);
	labelFunc04CF_02E8:
		UI_set_temperature_BA(var0012, 0x0000);
		UI_clear_item_flag_A5(var0012, 0x0001);
		UI_clear_item_flag_A5(var0012, 0x0002);
		UI_clear_item_flag_A5(var0012, 0x0003);
		UI_clear_item_flag_A5(var0012, 0x0004);
		UI_clear_item_flag_A5(var0012, 0x0007);
		UI_clear_item_flag_A5(var0012, 0x0008);
		UI_clear_item_flag_A5(var0012, 0x0010);
		var0013 = Func095C(var0012, 0x0000);
		var0014 = Func095C(var0012, 0x0003);
		if(!(var0013 > var0014)) goto labelFunc04CF_0370;
		var0015 = (var0013 - var0014);
		Func095E(var0012, 0x0003, var0015);
	labelFunc04CF_0370:
		var0016 = Func095C(var0012, 0x0009);
		var0017 = (0x001F - var0016);
		Func095E(var0012, 0x0009, var0017);
		var0018 = [(var000C[0x0001] + var000D[var000F]), (var000C[0x0002] + var000E[var000F]), var000C[0x0003]];
		UI_move_object_4B(var0012, var0018);
		UI_halt_scheduled_71(var0012);
		UI_clear_item_say_4E(var0012);
		var0007 = UI_execute_usecode_array_01(var0012, [0x59, 0x0000]);
		var000F = (var000F + 0x0001);
		goto labelFunc04CF_02C5;
	labelFunc04CF_03EF:
		var000C = [];
		var0018 = [];
		var000D = [];
		var000E = [];
		var0019 = [0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2B, 0xFF2A, 0xFF30, 0xFF2E];
		var001A = 0x000A;
		enum();
	labelFunc04CF_042C:
		for (var0012 in var0019 with var001B to var001C atend labelFunc04CF_0489);
		var001D = Func084E(var0012, var001A);
		UI_move_object_4B(var0012, var001D);
		UI_set_new_schedules_B6(var0012, 0x0000, 0x000F, var001D);
		UI_run_schedule_B7(var0012);
		UI_set_schedule_type_25(var0012, 0x000F);
		var0007 = UI_execute_usecode_array_01(var0012, [0x59, 0x0000, 0x61, 0x6F, 0x6B]);
		goto labelFunc04CF_042C;
	labelFunc04CF_0489:
		var0007 = UI_execute_usecode_array_01(Func09A0(0x0002, 0x0001), [0x55, 0x0109]);
		abrt();
	labelFunc04CF_04A2:
		if(!(!UI_get_item_flag_A3(0xFF31, 0x001C))) goto labelFunc04CF_04DB;
		UcMessage("\"I am Karnax, a Xenkan monk. Please forgive our previous meeting, my ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"I have nothing against thee, but I fear that Thoxa's willful interference shall be the undoing of all for which we have prepared.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF31, 0x001C);
		UI_add_answer_0C(["previous meeting", "Thoxa", "interference"]);
		goto labelFunc04CF_0575;
	labelFunc04CF_04DB:
		if(!((gflags[0267] == true) && (!gflags[0274]))) goto labelFunc04CF_054F;
		UcMessage("\"Hast thou returned with the scroll?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04CF_0544;
		UcMessage("\"Very good! Now, if I may see it, I may be able to unlock the secret to restoring thy lady friend.\"");
		UcSay;
		var001E = Func097D(0xFE9B, 0x0001, 0x02C3, 0x0050, 0xFE99);
		if(!(var001E == true)) goto labelFunc04CF_053D;
		var0007 = UI_remove_party_items_34(0x0001, 0x02C3, 0x0050, 0x0000, 0x0000);
		gflags[0274] = true;
		UcMessage("\"I have it now.\"");
		UcSay;
		UI_add_answer_0C("the secret");
		goto labelFunc04CF_0541;
	labelFunc04CF_053D:
		UcMessage("\"Thou dost not have the serpent scroll!\"");
		UcSay;
	labelFunc04CF_0541:
		goto labelFunc04CF_054C;
	labelFunc04CF_0544:
		UcMessage("\"Without access to that scroll I can be of no further use to thee. Dost thou not remember what I told thee?\"");
		UcSay;
		UcMessage("\"Fedabiblio had something he referred to as the Scroll of the Serpent. I believe that it may have the information I need to help restore thy lady friend. Bring it to me, and I will aid thee as I can.\"");
		UcSay;
	labelFunc04CF_054C:
		goto labelFunc04CF_0559;
	labelFunc04CF_054F:
		UcMessage("\"Time grows short, my ");
		UcMessage(var0002);
		UcMessage(". I shall aid thee as I can.\"");
		UcSay;
	labelFunc04CF_0559:
		if(!(gflags[0274] == true)) goto labelFunc04CF_0568;
		UI_add_answer_0C("the secret");
	labelFunc04CF_0568:
		UI_add_answer_0C(["prophecies", "Thoxa"]);
	labelFunc04CF_0575:
		var000B = Func08B6();
		var000B = [0xFE9C, var000B];
		enum();
	labelFunc04CF_0588:
		for (var0012 in var000B with var001F to var0020 atend labelFunc04CF_05A0);
		UI_clear_item_flag_A5(var0012, 0x0001);
		goto labelFunc04CF_0588;
	labelFunc04CF_05A0:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		if(!(gflags[0274] && (!gflags[0220]))) goto labelFunc04CF_05BC;
		UI_add_answer_0C("the secret");
	labelFunc04CF_05BC:
		if(!gflags[0262]) goto labelFunc04CF_05C9;
		UI_add_answer_0C("Gwenno");
	labelFunc04CF_05C9:
		if(!gflags[026F]) goto labelFunc04CF_05D9;
		UI_add_answer_0C("leave Monk Isle");
		goto labelFunc04CF_05E3;
	labelFunc04CF_05D9:
		UI_add_answer_0C(["bye"]);
	labelFunc04CF_05E3:
		if(!Func08FC()) goto labelFunc04CF_05F8;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be...\"");
		UcSay;
		UcMessage("\"If thou art ready to see thy friend again, ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc04CF_05F8:
		if(!(gflags[02DD] && (!gflags[0267]))) goto labelFunc04CF_060A;
		UI_add_answer_0C("Bane of Chaos");
	labelFunc04CF_060A:
		if(!(!gflags[02FB])) goto labelFunc04CF_0625;
		UcMessage("\"Lest I forget... We have recently made a discovery which I believe shall aid thee, my ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UI_add_answer_0C("discovery");
		goto labelFunc04CF_062C;
	labelFunc04CF_0625:
		UI_add_answer_0C("Amulet of Balance");
	labelFunc04CF_062C:
		UcAsk;
		cmps("discovery");
		UI_remove_answer_0D("discovery");
		UcMessage("\"While searching for more materials for the library, Miggim discovered an ancient chest in the passages beneath our abbey, near the Serpent gate.");
		UcSay;
		UcMessage("\"Within this chest was a strange amulet and a scrap of decaying scroll. The scroll indicated that this is the Amulet of Balance. It is our thought that this amulet was meant for thee, my ");
		UcMessage(var0002);
		UcMessage(".");
		UcSay;
		UcMessage("\"I shall caution thee that we do not know what powers it has, for the scroll disintegrated before Miggim could fully translate it.");
		UcSay;
		UcMessage("\"But I am certain it is connected to the Serpent ruins in some manner. Perhaps if thou dost use it near the Serpent gate thou wilt trigger its power.\"");
		UcSay;
		var0007 = Func099B(0xFE9C, 0x0001, 0x03BB, 0x0000, 0x0009, 0x0000, true);
		var0021 = Func09A0(0x0000, 0x0001);
		var0007 = UI_execute_usecode_array_01(var0021, [0x23, 0x55, 0x0612]);
		gflags[02FB] = true;
	labelFunc04CF_0691:
		cmps("Amulet of Balance");
		UI_remove_answer_0D("Amulet of Balance");
		var0007 = Func097D(0xFE9B, 0x0001, 0x03BB, 0x0000, 0x0009);
		if(!var0007) goto labelFunc04CF_06CC;
		UcMessage("\"We are searching all of our references for further information on thy Amulet, my ");
		UcMessage(var0002);
		UcMessage(". But, as of yet, we have discovered nothing more than what I have already told thee...");
		UcSay;
		UcMessage("\"It was used at the Serpent gates, but we know not what it does.\"");
		UcSay;
		goto labelFunc04CF_06DA;
	labelFunc04CF_06CC:
		UcMessage("\"If thou hast lost the Amulet, my ");
		UcMessage(var0002);
		UcMessage(", I know not how to aid thee. As far as any of us know, there was but one... The one I gave thee.");
		UcSay;
		UcMessage("\"I am sorry. Thou must needs search for it thyself. I fear I cannot aid thee in this.\"");
		UcSay;
	labelFunc04CF_06DA:
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04CF_06EC:
		cmps("leave Monk Isle");
		Func08FA();
	labelFunc04CF_06F7:
		cmps("previous meeting");
		UI_remove_answer_0D("previous meeting");
		UcMessage("\"When I came to try to dissuade Thoxa from aiding thee directly it was not an attack against thee.\"");
		UcSay;
		UcMessage("\"The prophecies state that those seeking to be thy friends shall bring about the downfall of thy quest. That is not why we have dedicated our lives.\"");
		UcSay;
		UI_add_answer_0C(["dissuade", "prophecies", "dedicated"]);
	labelFunc04CF_071E:
		cmps("dissuade");
		UI_remove_answer_0D("dissuade");
		UcMessage("\"I sought to win her away from her foolishness by rational argument. Regrettably, it became a test of magics.\"");
		UcSay;
		UcMessage("\"As thou canst see, Thoxa and I are both skilled enough that we both yet live.\"");
		UcSay;
		UI_add_answer_0C(["magics", "skilled"]);
	labelFunc04CF_0742:
		cmps("magics");
		UI_remove_answer_0D("magics");
		UcMessage("\"Unlike the unenlightened Mages of Moonshade, our powers come not from moldering reagents.\"");
		UcSay;
		UcMessage("\"The power of a Xenkan monk comes from a connection to the limitless Void that surrounds the universe.\"");
		UcSay;
		UI_add_answer_0C(["Mages", "Void"]);
	labelFunc04CF_0766:
		cmps("Mages");
		UI_remove_answer_0D("Mages");
		UcMessage("\"The Mages of Moonshade are but mere children playing at the arts they have not the patience to learn.\"");
		UcSay;
		UcMessage("\"True magic comes after long years of meditation and self-sacrifice.\"");
		UcSay;
	labelFunc04CF_077D:
		cmps("Void");
		UI_remove_answer_0D("Void");
		UcMessage("\"Consider the Void to be the frame within which our Cosmos is bound. It is the source of unimagined power...\"");
		UcSay;
		UcMessage("\"Power that thou mayest draw upon freely, if thou hast forged a gateway into it through long meditation.\"");
		UcSay;
	labelFunc04CF_0794:
		cmps("skilled");
		UI_remove_answer_0D("skilled");
		UcMessage("\"Unlike the silent novices that thou dost see among us, Thoxa and I have both forged gateways into the power of the Void.\"");
		UcSay;
		UcMessage("\"By tapping into this stream, any confirmed Xenkan monk can surmount his or her own death. But there are still some things that remain beyond any one monk's power and require the concerted effort of us all.\"");
		UcSay;
		UI_add_answer_0C("some things");
	labelFunc04CF_07B2:
		cmps("some things");
		UI_remove_answer_0D("some things");
		UcMessage("\"Manipulation of time and space requires more power than one monk can channel.\"");
		UcSay;
		UcMessage("\"So teleportation and resurrection require that all the monks conjoin their power.\"");
		UcSay;
	labelFunc04CF_07C9:
		cmps("prophecies");
		UI_remove_answer_0D("prophecies");
		UcMessage("\"Xenka was given visions of the ending of our world.\"");
		UcSay;
		UcMessage("\"However, she was barely literate, and needed others to act as scribes for her convoluted visions.\"");
		UcSay;
		UI_add_answer_0C(["ending of the world", "Xenka"]);
	labelFunc04CF_07ED:
		cmps("ending of the world");
		UI_remove_answer_0D("ending of the world");
		UcMessage("\"Xenka foresaw that people would turn from their basic goodness until the very land itself would rise up in revolt against their twisted ways.\"");
		UcSay;
		var0022 = Func0992(0x0001, "@Grim tidings, indeed.@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Even now the storms flay the land. Soon the earthquakes will unleash the fire that will engulf the world.\"");
		UcSay;
		UI_add_answer_0C(["storms", "earthquakes"]);
	labelFunc04CF_0828:
		cmps("storms");
		UI_remove_answer_0D("storms");
		UcMessage("\"The storms are what conveyed thee here, my ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Doth natural lightning do aught but kill? Doth normal lightning transport an item thousands of leagues from where once it stood?\"");
		UcSay;
		UcMessage("\"And the storms are growing more frequent and fierce with each passing day.\"");
		UcSay;
	labelFunc04CF_0849:
		cmps("earthquakes");
		UI_remove_answer_0D("earthquakes");
		UcMessage("\"The land is a living entity, my ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Have no doubt that it will convulse as death draws near, even as a man.\"");
		UcSay;
		UcMessage("\"And where will we insignificant mortals be once the land which nurtures us heaves its last, explosive breath?\"");
		UcSay;
	labelFunc04CF_086A:
		cmps("Xenka");
		UI_remove_answer_0D("Xenka");
		UcMessage("\"Xenka was a cross farm-wife who saw her visions as a means to have others do her work for her.\"");
		UcSay;
		UcMessage("\"Yet despite her human failings, her visions are true... Thou art here, even if she is not.\"");
		UcSay;
		UI_add_answer_0C("she is not");
	labelFunc04CF_0888:
		cmps("she is not");
		UI_remove_answer_0D("she is not");
		UcMessage("\"Xenka disappeared quite some time ago. Many think that she will return to deliver the final key to saving our doomed world.\"");
		UcSay;
		UcMessage("\"I think that her visions had left her and she slunk quietly away to die in obscurity.\"");
		UcSay;
		gflags[026B] = true;
	labelFunc04CF_08A3:
		cmps("dedicated");
		UI_remove_answer_0D("dedicated");
		UcMessage("\"Those that live within this abbey believe that Xenka's prophecies hold the key to diverting the fiery end that awaits the world.\"");
		UcSay;
		UcMessage("\"Our numbers have decreased with time, for even Xenkan monks die from age. And few of the youths are willing to serve such a nihilistic prophecy.\"");
		UcSay;
		UI_add_answer_0C("the key");
	labelFunc04CF_08C1:
		cmps("the key");
		UI_remove_answer_0D("the key");
		UcMessage("\"I do not know if Xenka's visions were full of diverse images or if she couched them in such terms out of peevishness.\"");
		UcSay;
		UcMessage("\"Whatever the case may be, her prophecies run round the edge of what must be known and it can take years to decipher the meaning of a single vision.\"");
		UcSay;
	labelFunc04CF_08D8:
		cmps("Thoxa");
		UI_remove_answer_0D("Thoxa");
		UcMessage("\"Thoxa is a very bright young woman, who would like to feel that she hath single-handedly saved the world.\"");
		UcSay;
		UcMessage("\"It doth go against the grain of her youth to sit and wait for each event to come to pass. What is worse though, is that she hath pulled Miggim into her rashness as well.\"");
		UcSay;
		UI_add_answer_0C("Miggim");
	labelFunc04CF_08F6:
		cmps("Miggim");
		UI_remove_answer_0D("Miggim");
		UcMessage("\"Miggim is by nature a quiet young man, not given to impetuousness. He is ideally suited to be our librarian.\"");
		UcSay;
		UcMessage("\"His greatest desire is to be helpful, as well as ordered. In fact, it was he who divined the passage that foretold of thy coming.\"");
		UcSay;
		UI_add_answer_0C("librarian");
	labelFunc04CF_0914:
		cmps("librarian");
		UI_remove_answer_0D("librarian");
		UcMessage("\"He hath taken the chaos of our library and turned it into a vastly more organized area.\"");
		UcSay;
		UcMessage("\"In fact, I believe that we have the most concise collection of Ophidian books and scrolls that still exists.\"");
		UcSay;
		UcMessage("\"Of course, it helps that we have the Lens of Translating.\"");
		UcSay;
		UI_add_answer_0C(["Ophidian", "Lens"]);
	labelFunc04CF_093C:
		cmps("Ophidian");
		UI_remove_answer_0D("Ophidian");
		UcMessage("\"The Ophidians are commonly referred to as the Serpent people because of the embossed serpents found within the ruins of their cities.\"");
		UcSay;
		UcMessage("\"They had a fully-developed civilization here long before our forefathers fled from the invader British. I believe that they destroyed themselves in a bloody civil war.\"");
		UcSay;
		UI_add_answer_0C(["invader British", "civil war"]);
	labelFunc04CF_0960:
		cmps("invader British");
		UI_remove_answer_0D("invader British");
		UcMessage("\"Our records are incomplete concerning the time of the resettlement. For that, thou shouldst see Fedabiblio in Moonshade.\"");
		UcSay;
		UcMessage("\"Thou shouldst bear in mind that their accounts are likely to be highly biased in their own favor.\"");
		UcSay;
		UI_add_answer_0C("Fedabiblio");
	labelFunc04CF_097E:
		cmps("Fedabiblio");
		UI_remove_answer_0D("Fedabiblio");
		UcMessage("\"Fedabiblio is the master archivist in the city of Mages. He is also a teacher, and will be able to help thee.\"");
		UcSay;
	labelFunc04CF_0991:
		cmps("civil war");
		UI_remove_answer_0D("civil war");
		UcMessage("\"I believe that the Ophidian government disintegrated and their society split into two opposing groups.\"");
		UcSay;
		UcMessage("\"In the end, one faction apparently slaughtered the other. But all traces of the victors disappear soon after the final battle took place. It is a mystery where they went.\"");
		UcSay;
	labelFunc04CF_09A8:
		cmps("interference");
		UI_remove_answer_0D("interference");
		UcMessage("\"It was determined by all monks that the time for the Hero from Another World was at hand.\"");
		UcSay;
		UcMessage("\"It was also decided that we would take no direct action to influence the Hero in any way...\"");
		UcSay;
		UcMessage("\"Thoxa overstepped her bounds by giving thee the Hourglass of Fate.\"");
		UcSay;
		UI_add_answer_0C(["Hero", "Hourglass"]);
	labelFunc04CF_09D0:
		cmps("Hero");
		UI_remove_answer_0D("Hero");
		UcMessage("\"All references to the one who can alter the course of destiny allude to the Hero from Another World.\"");
		UcSay;
		UcMessage("\"Art thou from this land, from New Sosaria?\"");
		UcSay;
		if(!(Func0955() == false)) goto labelFunc04CF_09F6;
		UcMessage("\"Dost thou see? When taken with the other signs, it points to thee as the one who alone can save our land.\"");
		UcSay;
		goto labelFunc04CF_09FE;
	labelFunc04CF_09F6:
		UcMessage("\"Hmmm. Perhaps we have misinterpreted the passage.\"");
		UcSay;
		UcMessage("\"I shall meditate further on this matter.\"");
		UcSay;
	labelFunc04CF_09FE:
		cmps("Hourglass");
		UI_remove_answer_0D("Hourglass");
		UcMessage("\"The damage hath been done. It is now thine to keep.\"");
		UcSay;
		UcMessage("\"It was designed so that we might be able to gauge when certain events were nigh. Perhaps it will serve thee better. I do not know.\"");
		UcSay;
	labelFunc04CF_0A15:
		cmps("Lens");
		UI_remove_answer_0D("Lens");
		UcMessage("\"It is the large device that stands in the center of the library. Anyone using it is able to decipher the cryptic Ophidian writing for a short period of time.\"");
		UcSay;
	labelFunc04CF_0A28:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		if(!gflags[025F]) goto labelFunc04CF_0A70;
		if(!gflags[026A]) goto labelFunc04CF_0A4A;
		UcMessage("\"I share thy grief over the loss of Goodwife Gwenno. I am sure that we can resurrect her, if thou dost wish.\"");
		UcSay;
		goto labelFunc04CF_0A6D;
	labelFunc04CF_0A4A:
		if(!(!UI_get_item_flag_A3(0xFF6B, 0x001E))) goto labelFunc04CF_0A65;
		UcMessage("\"It hath been quite a pleasure having Gwenno here, ");
		UcMessage(var0000);
		UcMessage(". She is quite knowledgeable, and shares her wisdom willingly.\"");
		UcSay;
		goto labelFunc04CF_0A6D;
	labelFunc04CF_0A65:
		UcMessage("\"Thy concern for this young woman is well warranted, I fear.\"");
		UcSay;
		UcMessage("\"Something hath sorely affected her, for I do not believe that she could be so disturbed otherwise.\"");
		UcSay;
	labelFunc04CF_0A6D:
		goto labelFunc04CF_0A7A;
	labelFunc04CF_0A70:
		UcMessage("\"Gwenno was our last visitor here, ");
		UcMessage(var0000);
		UcMessage(". After she departed, the storms made travel to our island impossible. I was not able to speak with her as much as I wished. She spent quite a bit of time within our library.\"");
		UcSay;
	labelFunc04CF_0A7A:
		cmps("Bane of Chaos");
		UI_remove_answer_0D("Bane of Chaos");
		UcMessage("\"Curious, the Bane of Chaos is an Ophidian term.\"");
		UcSay;
		UcMessage("\"Fedabiblio had something he referred to as the Scroll of the Serpent. I believe that it may have the information I need to help restore thy lady friend. Bring it to me, and I will aid thee as I can.\"");
		UcSay;
		gflags[0267] = true;
	labelFunc04CF_0A95:
		cmps("the secret");
		UI_remove_answer_0D("the secret");
		UcMessage("\"It all becomes clear!\"");
		UcSay;
		UcMessage("\"The Ophidians based all their beliefs on six virtues. And the consequences of an imbalance of these virtues are very dire...\"");
		UcSay;
		UcMessage("\"In fact, it sounds as if they could destroy the world!\"");
		UcSay;
		UI_add_answer_0C(["six virtues", "consequences"]);
	labelFunc04CF_0ABD:
		cmps("six virtues");
		UI_remove_answer_0D("six virtues");
		UcMessage("\"The virtues are: Tolerance, Ethicality, Enthusiasm, Discipline, Emotion and Logic.\"");
		UcSay;
		UcMessage("\"The anti-virtues -- when there is no balance -- are: Amorality, Wantonness, Insanity, Prejudice, Apathy, and Ruthlessness.\"");
		UcSay;
		var0009 = Func097D(0xFE9B, 0x0001, 0x031D, 0x0082, 0xFE99);
		if(!(var0009 == false)) goto labelFunc04CF_0B15;
		UcMessage("\"I will draw thee a chart, so that it might be more clear.\"");
		UcSay;
		var0007 = Func099B(0xFE9C, 0x0001, 0x031D, 0x0082, 0x0000, 0x0000, true);
		var0009 = true;
		goto labelFunc04CF_0B19;
	labelFunc04CF_0B15:
		UcMessage("\"Thou dost have the chart in thy possession that will explain this further.\"");
		UcSay;
	labelFunc04CF_0B19:
		cmps("consequences");
		UI_remove_answer_0D("consequences");
		UcMessage("\"Eventually the world will destroy itself... Much like what is happening now.\"");
		UcSay;
		UcMessage("\"Within a person, like thy friend Gwenno, the lack of Discipline would produce Wantonness... Much like the behavior she is exhibiting now.\"");
		UcSay;
		UcMessage("\"There does seem to be a cure, however.\"");
		UcSay;
		UI_add_answer_0C("cure");
	labelFunc04CF_0B3B:
		cmps("cure");
		UI_remove_answer_0D("cure");
		UcMessage("\"According to this, thou shouldst have the victim drink the water from the temple dedicated to that virtue which the person lacks.\"");
		UcSay;
		UcMessage("\"It sounds as though thou shouldst bring water from one of the temples... I think that Miggim doth have a book with maps of those ancient temples.\"");
		UcSay;
		gflags[0269] = true;
	labelFunc04CF_0B56:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Many thanks!@", 0x0000);
		Func097F(item, "@Good luck!@", 0x0002);
		goto labelFunc04CF_0B7E;
	labelFunc04CF_0B7B:
		goto labelFunc04CF_062C;
	labelFunc04CF_0B7E:
		end_conv();
		if(!gflags[026F]) goto labelFunc04CF_0B92;
		UI_show_npc_face0_05(0xFF31, 0x0000);
		Func08FA();
	labelFunc04CF_0B92:
		if(!(event == 0x0007)) goto labelFunc04CF_0BA0;
		Func08F5(0xFF31);
	labelFunc04CF_0BA0:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04D0 0x4D0 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc04D0_00A2;
	UI_set_schedule_type_25(0xFF30, 0x0014);
	var0000 = UI_find_nearby_41(0xFF30, 0x00FA, 0x000A, 0x0000);
	if(!in(UI_get_npc_object_23(0xFF2A), var0000)) goto labelFunc04D0_0043;
	var0000 = Func0988(UI_get_npc_object_23(0xFF2A), var0000);
	labelFunc04D0_0043:
		if(!in(UI_get_npc_object_23(0xFF30), var0000)) goto labelFunc04D0_0061;
		var0000 = Func0988(UI_get_npc_object_23(0xFF30), var0000);
	labelFunc04D0_0061:
		if(!in(UI_get_npc_object_23(0xFF2E), var0000)) goto labelFunc04D0_007F;
		var0000 = Func0988(UI_get_npc_object_23(0xFF2E), var0000);
	labelFunc04D0_007F:
		if(!var0000) goto labelFunc04D0_00A2;
		var0001 = var0000[UI_get_random_00(UI_get_array_size_73(var0000))];
		Func097F(var0001, "@She hath made a vow.@", 0x0000);
	labelFunc04D0_00A2:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0994 0x994 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08FC 0x8FC ();
extern Func08FE 0x8FE ();
extern var Func0942 0x942 (var var0000);
extern Func08F5 0x8F5 (var var0000);

Func04D1 0x4D1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0994();
	var0003 = "son";
	if(!var0001) goto labelFunc04D1_0025;
	var0003 = "daughter";
	labelFunc04D1_0025:
		var0004 = Func0953();
		if(!(event == 0x0001)) goto labelFunc04D1_007A;
		if(!(UI_get_npc_id_BC(0xFF31) != 0x0000)) goto labelFunc04D1_004C;
		UI_item_say_4D(0xFF2F, "@Be silent...@");
		abrt();
	labelFunc04D1_004C:
		UI_item_say_4D(0xFE9C, "@A moment, monk!@");
		0xFF2F;
		calle();
		Func097F(0xFF2F, (("@Yes, my " + var0003) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF2F, 0x0003);
	labelFunc04D1_007A:
		if(!(event == 0x0009)) goto labelFunc04D1_0489;
		UI_run_schedule_B7(0xFF2F);
		UI_clear_item_say_4E(0xFF2F);
		UI_show_npc_face0_05(0xFF2F, 0x0000);
		var0005 = UI_get_item_flag_A3(0xFF2F, 0x001C);
		if(!(var0002 == 0x0009)) goto labelFunc04D1_00D6;
		UcMessage("\"My name is Miggim. I am the librarian on Monk Isle.\"");
		UcSay;
		UcMessage("\"I have been awaiting thine arrival...\"");
		UcSay;
		UI_set_item_flag_A4(0xFF2F, 0x001C);
		UI_add_answer_0C(["librarian", "Monk Isle", "arrival"]);
		goto labelFunc04D1_0114;
	labelFunc04D1_00D6:
		if(!(var0005 == false)) goto labelFunc04D1_0103;
		UcMessage("\"So, thou art the one whose arrival we have been awaiting.\"");
		UcSay;
		UcMessage("\"I am Miggim, the librarian here on Monk Isle.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF2F, 0x001C);
		UI_add_answer_0C(["arrival", "librarian", "Monk Isle"]);
		goto labelFunc04D1_0114;
	labelFunc04D1_0103:
		UcMessage("\"Welcome to Monk Isle, ");
		UcMessage(var0004);
		UcMessage(". Feel free to visit me in the library whilst thou art here.\"");
		UcSay;
		UI_add_answer_0C("library");
	labelFunc04D1_0114:
		if(!((!gflags[0038]) && (gflags[002D] && (!gflags[00A5])))) goto labelFunc04D1_012F;
		UcMessage("\"I have this strange foreboding...\"");
		UcSay;
		UI_add_answer_0C("foreboding");
	labelFunc04D1_012F:
		if(!Func08FC()) goto labelFunc04D1_0144;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be...\"");
		UcSay;
		UcMessage("\"If thou art ready to see thy friend again, thou hast merely to ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc04D1_0144:
		UI_add_answer_0C("Amulet of Balance");
		UI_add_answer_0C(["aid", "bye"]);
	labelFunc04D1_0158:
		UcAsk;
		cmps("Amulet of Balance");
		UI_remove_answer_0D("Amulet of Balance");
		UcMessage("\"It was quite a find, ");
		UcMessage(var0000);
		UcMessage("! I have been uncovering many small things over the years in the passages beneath the abbey. But this is the first time I have found something as large as a chest.");
		UcSay;
		UcMessage("\"It was a pity that the scroll that accompanied the Amulet was so fragile. It was one of the oldest I have yet found. All I was able to make out before it disintegrated was the name of the amulet and that it was used near the Serpent gates.");
		UcSay;
		UcMessage("\"Perhaps this means that there is more yet to be discovered. I shall certainly continue my search.\"");
		UcSay;
	labelFunc04D1_017C:
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04D1_018E:
		cmps("aid");
		UI_remove_answer_0D("aid");
		if(!(!gflags[0078])) goto labelFunc04D1_01B5;
		UcMessage("\"I must be cautious in aiding thee, ");
		UcMessage(var0000);
		UcMessage(". But I can say that thou shouldst strive to keep thy three stalwart companions at thy side.\"");
		UcSay;
		UcMessage("\"Thy friend -- the master of song and mirth -- must be found before thou dost venture on.\"");
		UcSay;
		goto labelFunc04D1_01BF;
	labelFunc04D1_01B5:
		UcMessage("\"I must be cautious in aiding thee, ");
		UcMessage(var0000);
		UcMessage(". But rest assured that I will prompt thee as much as possible.\"");
		UcSay;
	labelFunc04D1_01BF:
		cmps("foreboding");
		UI_remove_answer_0D("foreboding");
		UcMessage("\"I see that thou hast earned the enmity of the leader of warriors, ");
		UcMessage(var0000);
		UcMessage(". Without his favor, and the might of Monitor, thou canst not hope to further thy quest.\"");
		UcSay;
		UcMessage("\"Only by renouncing thy friend and patron, the ruler who sent thee here, canst thou hope to continue on.\"");
		UcSay;
		if(!Func0942(Dupre)) goto labelFunc04D1_020A;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Why, that is unthinkable! I have never heard of such a preposterous thing!\"");
		UcSay;
		UI_remove_npc_face1_08();
		Func097F(Dupre, "@Rubbish!@", 0x0000);
		UI_set_conversation_slot_09(0x0000);
	labelFunc04D1_020A:
		cmps("librarian");
		UI_remove_answer_0D("librarian");
		UcMessage("\"'Tis my duty to transcribe and care for the prophecies of Xenka.\"");
		UcSay;
		UcMessage("\"It was I that found the passages that told of thy coming.\"");
		UcSay;
		UI_add_answer_0C(["Xenka", "passage"]);
	labelFunc04D1_022E:
		cmps("Xenka");
		UI_remove_answer_0D("Xenka");
		UcMessage("\"She was a very wise woman, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"She foretold the storms that brought thee to our land, and saw the end of the world.\"");
		UcSay;
		UcMessage("\"Those who believed in her visions banded together to study her words so that we might help avert the fate she foresaw.\"");
		UcSay;
		UI_add_answer_0C(["end of the world"]);
	labelFunc04D1_0259:
		cmps("end of the world");
		UI_remove_answer_0D("end of the world");
		UcMessage("\"Within Xenka's holy writings is the passage -- 'When at last the great scales unhinge, the overburdened world shall be torn asunder by the opposing forces.'\"");
		UcSay;
		UI_add_answer_0C(["great scales", "opposing forces"]);
	labelFunc04D1_0279:
		cmps("great scales");
		UI_remove_answer_0D("great scales");
		UcMessage("\"It could mean anything, ");
		UcMessage(var0004);
		UcMessage(". Music scales, map scales, snake scales, or weight scales...\"");
		UcSay;
	labelFunc04D1_0292:
		cmps("opposing forces");
		UI_remove_answer_0D("opposing forces");
		UcMessage("\"I know not... Though I would hazard a guess that it refers to the forces of good and evil.\"");
		UcSay;
	labelFunc04D1_02A5:
		cmps("passage");
		UI_remove_answer_0D("passage");
		UcMessage("\"Alas, Xenka's writings follow no order and are convoluted and vague.\"");
		UcSay;
		UcMessage("\"We have spent the years since her disappearance trying to decide if some passage hath already happened or if one event will follow another.\"");
		UcSay;
		UI_add_answer_0C(["disappearance", "event"]);
	labelFunc04D1_02C9:
		cmps("disappearance");
		UI_remove_answer_0D("disappearance");
		UcMessage("\"Xenka was not a young woman, ");
		UcMessage(var0004);
		UcMessage(". After she disappeared from our midst, we found a freshly-inked passage that promised her return when the end was near.\"");
		UcSay;
		UcMessage("\"I always thought that she had discovered some way to ensure that she would live to see her prophecies revealed. Though I know not how.\"");
		UcSay;
	labelFunc04D1_02E6:
		cmps("event");
		UI_remove_answer_0D("event");
		UcMessage("\"The events in the prophecies are wild and connected by no frame that we have been able to discover...\"");
		UcSay;
		UcMessage("\"'Great storms, the containers of hope smashed, lost love forgiven and restored' -- we still seek their meanings.\"");
		UcSay;
	labelFunc04D1_02FD:
		cmps("Monk Isle");
		UI_remove_answer_0D("Monk Isle");
		UcMessage("\"Monk Isle is where the followers of Xenka dwell, ");
		UcMessage(var0004);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Only a few believers remain to study and contemplate the mystery of her words. Few are now willing to devote their life to waiting on events that may take centuries to unfold. Faith is not an	easy thing...\"");
		UcSay;
	labelFunc04D1_031A:
		cmps("arrival");
		UI_remove_answer_0D("arrival");
		UcMessage("\"Yes, ");
		UcMessage(var0004);
		UcMessage(", 'tis written that a hero from another world will come to right the disorder in our land. That is thee...\"");
		UcSay;
		if(!(var0002 == 0x0009)) goto labelFunc04D1_034C;
		UcMessage("\"'Tis also written that treachery will stalk thy steps at the beginning of thy quest. That is why I am here...\"");
		UcSay;
		UcMessage("\"Not all of Xenka's followers believe that we should take direct action in aiding thee. However, Thoxa and I disagree.\"");
		UcSay;
		UI_add_answer_0C("action");
	labelFunc04D1_034C:
		cmps("action");
		UI_remove_answer_0D("action");
		UcMessage("\"I believe that an attempt will be made on thy life soon. Perhaps, by being forewarned, thou wilt be able to avoid it.\"");
		UcSay;
		UcMessage("\"I cannot tell thee who to avoid here, ");
		UcMessage(var0004);
		UcMessage(". I arrived here only a few days ago and have remained in the barn for much of the time. I thought it wise to attract as little notice as possible.\"");
		UcSay;
		UcMessage("\"But, now that thou art here, feel assured that I will remain vigilant against anything that would deter thee from thy destiny.\"");
		UcSay;
		UI_add_answer_0C("destiny");
	labelFunc04D1_0374:
		cmps("destiny");
		UI_remove_answer_0D("destiny");
		UcMessage("\"I am not in power to tell thee more of the quest that lies before thee. If I were to tell thee, thou mightest be prejudiced by my words and overlook a crucial event.\"");
		UcSay;
	labelFunc04D1_0387:
		cmps("library");
		UI_remove_answer_0D("library");
		UcMessage("\"We have quite a collection of diverse books and scrolls -- all meant to help us aid thee on thy quest.\"");
		UcSay;
		UcMessage("\"Feel free to look at anything in the library, even if I am attending to my chores.\"");
		UcSay;
		UI_add_answer_0C(["diverse books and scrolls", "chores"]);
	labelFunc04D1_03AB:
		cmps("diverse books and scrolls");
		UI_remove_answer_0D("diverse books and scrolls");
		UcMessage("\"Poetry, astronomical observations, tide charts, and maps... Everything that might provide some insight into the meaning of the prophecies.\"");
		UcSay;
		if(!(gflags[0269] && (!gflags[0220]))) goto labelFunc04D1_03D0;
		UI_add_answer_0C("maps");
	labelFunc04D1_03D0:
		cmps("maps");
		UI_remove_answer_0D("maps");
		var0006 = UI_find_nearby_41(0xFE9C, 0x0282, 0x000A, 0x0000);
		if(!var0006) goto labelFunc04D1_0407;
		UcMessage("\"We have no maps to aid thee, I fear. But I know that there is a book describing the old temples here in the abbey.\"");
		UcSay;
		UcMessage("\"It is written in the Ophidian runes, of course. But thou canst use the Lens of Translating to aid thee in reading it.\"");
		UcSay;
		UcMessage("\"Go thou and find it. I am certain that it will help thee.\"");
		UcSay;
		goto labelFunc04D1_0413;
	labelFunc04D1_0407:
		UcMessage("\"We have no maps to aid thee, I fear. But I know that there is a book describing the old temples in the abbey.\"");
		UcSay;
		UcMessage("\"It is written in the Ophidian runes, of course. But thou canst use the Lens of Translating to aid thee in reading it.\"");
		UcSay;
		UcMessage("\"Go thou and find it. I am certain that it will help thee.\"");
		UcSay;
	labelFunc04D1_0413:
		UI_add_answer_0C("Lens of Translating");
	labelFunc04D1_041A:
		cmps("Lens of Translating");
		UI_remove_answer_0D("Lens of Translating");
		UcMessage("\"It is the large device that stands in the center of the library. Using it will allow thee to decipher the difficult Ophidian runes, but only for a short period of time.\"");
		UcSay;
	labelFunc04D1_042D:
		cmps("chores");
		UI_remove_answer_0D("chores");
		UcMessage("\"We are a self-sufficient community, ");
		UcMessage(var0004);
		UcMessage(". We share the work in growing all that we need to eat. So I am as often in the field as I am in the library.\"");
		UcSay;
		UI_add_answer_0C("growing");
	labelFunc04D1_044D:
		cmps("growing");
		UI_remove_answer_0D("growing");
		UcMessage("\"We have berries, pumpkins and other vegetables. Thou mayest take some, if thou dost wish.\"");
		UcSay;
	labelFunc04D1_0460:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@So long!@", 0x0000);
		Func097F(item, "@Fare thee well!@", 0x0002);
		goto labelFunc04D1_0488;
	labelFunc04D1_0485:
		goto labelFunc04D1_0158;
	labelFunc04D1_0488:
		end_conv();
	labelFunc04D1_0489:
		if(!(event == 0x0007)) goto labelFunc04D1_0497;
		Func08F5(0xFF2F);
	labelFunc04D1_0497:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04D2 0x4D2 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc04D2_00A2;
	UI_set_schedule_type_25(0xFF2E, 0x0014);
	var0000 = UI_find_nearby_41(0xFF2E, 0x00FA, 0x000A, 0x0000);
	if(!in(UI_get_npc_object_23(0xFF2A), var0000)) goto labelFunc04D2_0043;
	var0000 = Func0988(UI_get_npc_object_23(0xFF2A), var0000);
	labelFunc04D2_0043:
		if(!in(UI_get_npc_object_23(0xFF30), var0000)) goto labelFunc04D2_0061;
		var0000 = Func0988(UI_get_npc_object_23(0xFF30), var0000);
	labelFunc04D2_0061:
		if(!in(UI_get_npc_object_23(0xFF2E), var0000)) goto labelFunc04D2_007F;
		var0000 = Func0988(UI_get_npc_object_23(0xFF2E), var0000);
	labelFunc04D2_007F:
		if(!var0000) goto labelFunc04D2_00A2;
		var0001 = var0000[UI_get_random_00(UI_get_array_size_73(var0000))];
		Func097F(var0001, "@He is deaf.@", 0x0000);
	labelFunc04D2_00A2:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08F8 0x8F8 (var var0000, var var0001, var var0002);
extern Func086D 0x86D ();
extern var Func08FC 0x8FC ();
extern Func08FE 0x8FE ();
extern var Func0942 0x942 (var var0000);
extern Func08F5 0x8F5 (var var0000);

Func04D3 0x4D3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0994();
	var0003 = "son";
	var0004 = Func09A0(0x0002, 0x0001);
	var0005 = UI_get_npc_object_23(0xFF2D);
	var0006 = UI_get_item_flag_A3(0xFF2D, 0x001C);
	if(!var0001) goto labelFunc04D3_0048;
	var0003 = "daughter";
	labelFunc04D3_0048:
		var0007 = Func0953();
		if(!(event == 0x0001)) goto labelFunc04D3_009D;
		if(!(UI_get_npc_id_BC(0xFF31) != 0x0000)) goto labelFunc04D3_006F;
		UI_item_say_4D(0xFF2D, "@Not now...@");
		abrt();
	labelFunc04D3_006F:
		UI_item_say_4D(0xFE9C, "@Excuse me...@");
		0xFF2D;
		calle();
		Func097F(0xFF2D, (("@Yes, my " + var0003) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF2D, 0x0003);
	labelFunc04D3_009D:
		if(!(event == 0x0009)) goto labelFunc04D3_048E;
		UI_run_schedule_B7(0xFF2D);
		UI_clear_item_say_4E(0xFF2D);
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		if(!((var0002 == 0x000D) && (gflags[0060] && (!gflags[0061])))) goto labelFunc04D3_0147;
		UcMessage("\"It is written that 'The Hero from Another World shall face the end as the beginning'! Thou didst enter our land with thy three companions, they must be present at the final moment to forestall disaster!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF2D, "@I shall pray for thee!@", 0x0000);
		UI_move_object_4B(0xFF2D, [0x05FA, 0x078F, 0x0000]);
		var0008 = [Iolo, Shamino, Dupre];
		enum();
	labelFunc04D3_0107:
		for (var000B in var0008 with var0009 to var000A atend labelFunc04D3_0146);
		if(!(!UI_npc_nearby_3A(var000B))) goto labelFunc04D3_0143;
		var000C = UI_approach_avatar_BF(var000B, 0x0050, 0x0028);
		if(!(!(UI_get_schedule_type_24(var000B) == 0x001F))) goto labelFunc04D3_0143;
		UI_add_to_party_26(var000B);
	labelFunc04D3_0143:
		goto labelFunc04D3_0107;
	labelFunc04D3_0146:
		abrt();
	labelFunc04D3_0147:
		UI_set_conversation_slot_09(0x0000);
		var000D = UI_get_object_position_20(0xFF2D);
		if(!Func08F8(var000D, [0x0914, 0x01BB], [0x0939, 0x01D9])) goto labelFunc04D3_0197;
		UcMessage("\"Thou must not enter this door without thy three stalwart companions, Hero from Another World!\"");
		UcSay;
		UcMessage("\"It matters not if any others venture with thee, but through this portal the four must pass!\"");
		UcSay;
		UcMessage("\"I shall act as a channel for the power to restore thy group as it should be.\"");
		UcSay;
		Func086D();
		var000C = UI_execute_usecode_array_01(var0005, [0x23, 0x55, 0x0363]);
		abrt();
	labelFunc04D3_0197:
		UcMessage("\"We meet again. Thy destiny draws near quickly... How may I be of service to thee?\"");
		UcSay;
		if(!Func08FC()) goto labelFunc04D3_01AF;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be... [\"If thou art ready to see thy friend again, merely ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
		goto labelFunc04D3_01E0;
	labelFunc04D3_01AF:
		if(!((var0002 == 0x0002) && (!var0006))) goto labelFunc04D3_01E0;
		UcMessage("\"Welcome to Monk Isle, my ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Thou mayest tarry with us for as long as thou dost wish, but remember... The Sands of Time wait for no one, not even thee.\"");
		UcSay;
		UcMessage("\"Whilst thou art here, thou wilt learn that the life of a monk is governed by the bells. Not all of our membership may speak to thee, the novices are bound by a vow of silence to help them better contemplate the mysteries.\"");
		UcSay;
		UI_add_answer_0C(["Sands of Time", "bells", "mysteries"]);
	labelFunc04D3_01E0:
		if(!(gflags[0279] && (!gflags[022B]))) goto labelFunc04D3_0213;
		UcMessage("\"I see... Thou hast made great progress in thy quest, my ");
		UcMessage(var0003);
		UcMessage(". But before thou canst continue, thou must seek the wisdom of the last child of Chaos. He alone holds the key to the location of the Chaos Hierophant.\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFF68, 0x001C)) goto labelFunc04D3_020F;
		UcMessage("\"Thou didst meet him in his imprisonment, my ");
		UcMessage(var0003);
		UcMessage(". Yet he remains a prisoner out of time. Seek him within the Shrine that is his home.\"");
		UcSay;
		goto labelFunc04D3_0213;
	labelFunc04D3_020F:
		UcMessage("\"He remains a prisoner out of time, imprisoned within the Shrine that is his home.\"");
		UcSay;
	labelFunc04D3_0213:
		UI_add_answer_0C("bye");
	labelFunc04D3_021A:
		UcAsk;
		cmps("return");
		UI_remove_answer_0D("return");
		UcMessage("\"Xenka disappeared several centuries ago. No one knows where she went.\"");
		UcSay;
		UcMessage("\"However, in her writings, Xenka hath promised to return to us when the end is near. She will then guide us once more.\"");
		UcSay;
	labelFunc04D3_0234:
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04D3_0246:
		cmps("Sands of Time");
		UI_remove_answer_0D("Sands of Time");
		UcMessage("\"Within the Hourglass of Fate lie the Sands of Time. As each grain doth fall, so doth another moment hasten us to our doom.\"");
		UcSay;
		UI_add_answer_0C("doom");
	labelFunc04D3_0260:
		cmps("doom");
		UI_remove_answer_0D("doom");
		if(!gflags[0004]) goto labelFunc04D3_027C;
		UcMessage("\"If thou dost fail in thy quest, our world will end... ripped apart by the storms and earthquakes that doth now plague it.\"");
		UcSay;
		goto labelFunc04D3_0280;
	labelFunc04D3_027C:
		UcMessage("\"If thou dost fail in thy quest, our world will end... ripped apart by the earthquakes that will soon plague it.\"");
		UcSay;
	labelFunc04D3_0280:
		cmps("bells");
		UI_remove_answer_0D("bells");
		UcMessage("\"They toll, though no one rings them. And it is said that when all the bells toll it will signal Xenka's return. Until then, they signal the order of our daily life. From Chapel to field, from field to the library, and so on.\"");
		UcSay;
		UI_add_answer_0C(["return", "Chapel", "field", "library"]);
	labelFunc04D3_02A6:
		cmps("Chapel");
		UI_remove_answer_0D("Chapel");
		UcMessage("\"The Chapel is where we go to meditate. It is also where all the monks gather to perform resurrections. The book of Xenka's prophecies rests on the altar for all to see.\"");
		UcSay;
	labelFunc04D3_02B9:
		cmps("field");
		UI_remove_answer_0D("field");
		UcMessage("\"Since we are so secluded from the rest of the land, we grow our own food. And as food concerns us all, we all share the tasks of tending to the garden and orchard.\"");
		UcSay;
		UI_add_answer_0C("garden and orchard");
	labelFunc04D3_02D3:
		cmps("garden and orchard");
		UI_remove_answer_0D("garden and orchard");
		UcMessage("\"Thou art welcome to take what thou dost need from our fields. We would gladly share with thee the bounty of the land that thou art striving to save.\"");
		UcSay;
	labelFunc04D3_02E6:
		cmps("library");
		UI_remove_answer_0D("library");
		UcMessage("\"Over the years we have gathered many books and scrolls that we thought would help us give light to the meaning within Xenka's prophecies. Only recently hath Miggim undertaken the task of trying to set the library to rights. It is he that helps any visitors that come to us seeking information.\"");
		UcSay;
		UI_add_answer_0C(["books and scrolls", "visitors", "information"]);
	labelFunc04D3_0309:
		cmps("books and scrolls");
		UI_remove_answer_0D("books and scrolls");
		UcMessage("\"I fear that I do not know all we possess. Thou art free to look, of course. But if thou hast specific questions, thou shouldst direct them to Miggim.\"");
		UcSay;
	labelFunc04D3_031C:
		cmps("visitors");
		UI_remove_answer_0D("visitors");
		if(!Func0942(0xFF6B)) goto labelFunc04D3_0350;
		if(!(!UI_get_item_flag_A3(0xFF6B, 0x001E))) goto labelFunc04D3_0349;
		UcMessage("\"Such visitors are rare, for the journey here is not an easy one. As I remember it, Gwenno was our last visitor.\"");
		UcSay;
		goto labelFunc04D3_034D;
	labelFunc04D3_0349:
		UcMessage("\"Such visitors are rare, for the journey here is not an easy one. As I remember it, our last visitor was poor Gwenno.\"");
		UcSay;
	labelFunc04D3_034D:
		goto labelFunc04D3_0354;
	labelFunc04D3_0350:
		UcMessage("\"Such visitors are rare, for the journey here is not an easy one. As I remember it, our last visitor was that woman, Gwenno.\"");
		UcSay;
	labelFunc04D3_0354:
		UI_add_answer_0C("Gwenno");
	labelFunc04D3_035B:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		if(!Func0942(0xFF6B)) goto labelFunc04D3_039D;
		if(!(!UI_get_item_flag_A3(0xFF6B, 0x001E))) goto labelFunc04D3_0392;
		UcMessage("\"It is a pleasure having her here, my ");
		UcMessage(var0003);
		UcMessage(", now that her proper state of mind hath been restored.\"");
		UcSay;
		UcMessage("\"I hope to speak with Gwenno about her time with the Ice People. It would be most instructive, I am sure.\"");
		UcSay;
		goto labelFunc04D3_039A;
	labelFunc04D3_0392:
		UcMessage("\"'Tis a pity to see her so undone. I hope that thou canst find a way to restore her to her proper state of mind soon.\"");
		UcSay;
		UcMessage("\"I had hoped to be able to speak with her about her time with the Ice People. It would be most instructive, I am sure.\"");
		UcSay;
	labelFunc04D3_039A:
		goto labelFunc04D3_03A1;
	labelFunc04D3_039D:
		UcMessage("\"She stayed with us for a short period of time. I think that she was seeking information concerning the Ice People of the north. But thou shouldst speak with Miggim... Gwenno spent most of her time within the library.\"");
		UcSay;
	labelFunc04D3_03A1:
		UI_add_answer_0C("Ice People");
	labelFunc04D3_03A8:
		cmps("Ice People");
		UI_remove_answer_0D("Ice People");
		UcMessage("\"I know very little about the Ice People, my ");
		UcMessage(var0003);
		UcMessage(". I know only that they are not like me and thee, but are covered in a thick hide -- like that of a bear, only white.\"");
		UcSay;
	labelFunc04D3_03C1:
		cmps("information");
		UI_remove_answer_0D("information");
		UcMessage("\"They used to come to us for everything from healing arts to weather predictions. Of course, that was before the storms began.\"");
		UcSay;
	labelFunc04D3_03D4:
		cmps("mysteries");
		UI_remove_answer_0D("mysteries");
		UcMessage("\"Xenka's prophecies are very unclear, my ");
		UcMessage(var0003);
		UcMessage(". Lacking Xenka's heavenly insight, we must struggle to wrest the meaning from each passage. Some devote their entire lives to finding the meaning of only a handful of passages.\"");
		UcSay;
	labelFunc04D3_03ED:
		cmps("bye");
		if(!(var0002 == 0x0002)) goto labelFunc04D3_041C;
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(item, "@Fortune!@", 0x0002);
		goto labelFunc04D3_048D;
	labelFunc04D3_041C:
		UcMessage("\"I must return to Monk Isle.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var000D = UI_get_object_position_20(0xFF2D);
		var000D[0x0001] = (var000D[0x0001] - (var000D[0x0003] / 0x0002));
		var000D[0x0002] = (var000D[0x0002] - (var000D[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0007, var000D[0x0001], var000D[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_remove_npc_4C(0xFF2D);
		abrt();
	labelFunc04D3_048A:
		goto labelFunc04D3_021A;
	labelFunc04D3_048D:
		end_conv();
	labelFunc04D3_048E:
		if(!(event == 0x0007)) goto labelFunc04D3_049C;
		Func08F5(0xFF2D);
	labelFunc04D3_049C:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0994 0x994 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern var Func08FC 0x8FC ();
extern Func08FE 0x8FE ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08F5 0x8F5 (var var0000);

Func04D4 0x4D4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = "son";
	var0004 = Func0994();
	if(!var0001) goto labelFunc04D4_002B;
	var0003 = "daughter";
	labelFunc04D4_002B:
		if(!(event == 0x0002)) goto labelFunc04D4_0218;
		if(!gflags[0004]) goto labelFunc04D4_010E;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2C, 0x0000);
		UcMessage("\"Well done, my ");
		UcMessage(var0003);
		UcMessage(". I shall take Yelinda back to her rightful place.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Oh, thank thee, kind monk!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"As for thee, ");
		UcMessage(var0002);
		UcMessage(", thou must continue toward thine union with the Powers...\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(item, "@Peace.@", 0x0002);
		var0005 = UI_get_object_position_20(0xFF2C);
		UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0003), (var0005[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_get_object_position_20(0xFFC9);
		UI_sprite_effect_68(0x0007, (var0006[0x0001] - 0x0003), (var0006[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF2C);
		Func09AC(0xFFC9, 0x0404, 0x06B8, 0x000C);
		UI_play_sound_effect_16(0x0051);
		goto labelFunc04D4_0217;
	labelFunc04D4_010E:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2C, 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UcMessage("\"We mourn with thee, Hero From Another World, for this purposeless death of the girl once known as Cantra.\"");
		UcSay;
		UcMessage("\"We shall take her lifeless body to Monk Isle, where perhaps we can restore life where death doth now reign.\"");
		UcSay;
		UcMessage("\"Continue on thy quest. Trouble not thyself for this girl, as we shall do all that is possible for her.\"");
		UcSay;
		var0007 = UI_remove_party_items_34(0xFE99, 0x019E, 0xFE99, 0x0015, 0x0000);
		if(!(!var0007)) goto labelFunc04D4_01B5;
		var0008 = UI_find_nearby_41(item, 0x019E, 0x001E, 0x0000);
		enum();
	labelFunc04D4_0161:
		for (var000B in var0008 with var0009 to var000A atend labelFunc04D4_01B5);
		if(!(UI_get_item_frame_1A(var000B) == 0x0015)) goto labelFunc04D4_01B2;
		var0005 = UI_get_object_position_20(var000B);
		UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0003), (var0005[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var000B);
	labelFunc04D4_01B2:
		goto labelFunc04D4_0161;
	labelFunc04D4_01B5:
		var0005 = UI_get_object_position_20(0xFF2C);
		UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0003), (var0005[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF2C);
		UI_clear_item_flag_A5(0xFFC0, 0x0004);
		Func09AC(0xFFC0, 0x097D, 0x0469, 0x000C);
		UI_set_item_flag_A4(0xFFC0, 0x001E);
		UI_play_sound_effect_16(0x0051);
	labelFunc04D4_0217:
		abrt();
	labelFunc04D4_0218:
		if(!(event == 0x0001)) goto labelFunc04D4_0267;
		if(!(UI_get_npc_id_BC(0xFF31) != 0x0000)) goto labelFunc04D4_0239;
		UI_item_say_4D(0xFF2C, "@Not now...@");
		abrt();
	labelFunc04D4_0239:
		UI_item_say_4D(0xFE9C, "@Excuse me...@");
		0xFF2C;
		calle();
		Func097F(0xFF2C, (("@Yes, my " + var0003) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF2C, 0x0003);
	labelFunc04D4_0267:
		if(!(event == 0x0009)) goto labelFunc04D4_0511;
		UI_run_schedule_B7(0xFF2C);
		UI_clear_item_say_4E(0xFF2C);
		UI_show_npc_face0_05(0xFF2C, 0x0000);
		UcMessage("\"I am but a humble monk. I can be of no help to thee in any way, I fear.\"");
		UcSay;
		var000C = false;
		var000D = false;
		if(!(gflags[00DE] && (!gflags[00DB]))) goto labelFunc04D4_02A5;
		UI_add_answer_0C("Mandrake Root");
	labelFunc04D4_02A5:
		if(!gflags[026B]) goto labelFunc04D4_02B2;
		UI_add_answer_0C("Xenka");
	labelFunc04D4_02B2:
		if(!gflags[026E]) goto labelFunc04D4_02BF;
		UI_add_answer_0C("salt tides");
	labelFunc04D4_02BF:
		if(!Func08FC()) goto labelFunc04D4_02D4;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be...\"");
		UcSay;
		UcMessage("\"If thou art ready to see thy friend again, thou dost have but to ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc04D4_02D4:
		UI_add_answer_0C(["name", "duties", "bye"]);
	labelFunc04D4_02E4:
		UcAsk;
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04D4_02F9:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"I no longer believe in names. Doth the corn in the field have a name? Canst thou hear the cry of the corn?\"");
		UcSay;
		var000E = Func0992(Iolo, (("@" + var0000) + ", this monk is a mystical man indeed...@"), 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UI_add_answer_0C(["beliefs", "corn"]);
	labelFunc04D4_0338:
		cmps("beliefs");
		UI_remove_answer_0D("beliefs");
		UcMessage("\"There are unseen energies which permeate the worlds. A monk within the Order of Xenka seeks to attune himself with these ethereal vapors.\"");
		UcSay;
		UcMessage("\"In mine own case -- I being but the least of these, my brethren -- I can draw upon the Power of the Void to foster the growth of plants.\"");
		UcSay;
		if(!gflags[0270]) goto labelFunc04D4_035C;
		UcMessage("\"Xenka the Seer is the greatest of us all.\"");
		UcSay;
		goto labelFunc04D4_0360;
	labelFunc04D4_035C:
		UcMessage("\"Xenka was the greatest of us all.\"");
		UcSay;
	labelFunc04D4_0360:
		gflags[026B] = true;
		if(!(!var000C)) goto labelFunc04D4_0372;
		UI_add_answer_0C("Xenka");
	labelFunc04D4_0372:
		cmps("Xenka");
		UI_remove_answer_0D("Xenka");
		UcMessage("\"It was she who mastered the Energies of the Void, until at last she was no longer of this world.\"");
		UcSay;
		UcMessage("\"Xenka is our exemplar -- we all would harness	the Powers as she did.\"");
		UcSay;
		UcMessage("\"I am unable to speak further -- I am incapable of expressing all that Xenka is and was.\"");
		UcSay;
		var000C = true;
		if(!gflags[0270]) goto labelFunc04D4_039E;
		UcMessage("\"And now she hath returned! The Seer hath come back from beyond the Void.\"");
		UcSay;
		goto labelFunc04D4_03A2;
	labelFunc04D4_039E:
		UcMessage("\"Thou shouldst speak to Monk Draxta, if thou desirest to perceive the mystery of Xenka.\"");
		UcSay;
	labelFunc04D4_03A2:
		cmps("corn");
		UI_remove_answer_0D("corn");
		UcMessage("\"Corn is at the center of the kingdom of vegetables.\"");
		UcSay;
		UcMessage("\"Corn is tall and green, king of the grasses, and its fruit is sweet when roasted.\"");
		UcSay;
		UcMessage("\"I seek to find union with the corn. I am a Child of the Corn.\"");
		UcSay;
		var000E = Func0992(Iolo, (("@As I said, " + var0000) + "...@"), 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc04D4_03DC:
		cmps("duties");
		UI_remove_answer_0D("duties");
		UcMessage("\"In order to become one with the soil, I have been granted the task of nurturing the crops.\"");
		UcSay;
		UI_add_answer_0C("crops");
	labelFunc04D4_03F6:
		cmps("crops");
		UI_remove_answer_0D("crops");
		UcMessage("\"Our harvest is varied. There are ochre berries in the spring, corn in the summer, and walnuts in the fall.\"");
		UcSay;
		UcMessage("\"We also nurture many root crops, and make flour from their tubers.\"");
		UcSay;
		if(!gflags[0004]) goto labelFunc04D4_041A;
		UcMessage("\"Now the fields are dying, as the blight spreads throughout the land. The storms leach the life from the land, and the crops fail.\"");
		UcSay;
		goto labelFunc04D4_041E;
	labelFunc04D4_041A:
		UcMessage("\"But the crops have not been healthy, not since the strange storms afflicted the island.\"");
		UcSay;
	labelFunc04D4_041E:
		UcMessage("\"Thou mayest partake of any of the fruits and vegetables on this island, so long as thou dost not indulge in gluttony.\"");
		UcSay;
	labelFunc04D4_0422:
		cmps("Mandrake Root");
		UI_remove_answer_0D("Mandrake Root");
		UcMessage("\"Thou art not the first to come to this isle in search of the Mandrakes, for the plant is the source of powerful magic.\"");
		UcSay;
		UcMessage("\"There is a supply of roots in mine hut, if thou needest any.\"");
		UcSay;
		UcMessage("\"Please take all that thou needest, for Mandrakes grow only in the swamps, and are exceedingly rare elsewhere.\"");
		UcSay;
		UI_add_answer_0C(["swamps", "rare"]);
	labelFunc04D4_044A:
		cmps("swamps");
		UI_remove_answer_0D("swamps");
		UcMessage("\"The Mandrakes are only found in the swamplands, and only when the salt tides are right.\"");
		UcSay;
		UcMessage("\"I have only dried roots in my supply -- if thou desirest fresh roots, thou must go into the swamp when the tides are right.\"");
		UcSay;
		if(!(gflags[026E] == false)) goto labelFunc04D4_0470;
		UI_set_timer_7B(0x0001);
	labelFunc04D4_0470:
		gflags[026E] = true;
		UI_add_answer_0C("salt tides");
	labelFunc04D4_047B:
		cmps("salt tides");
		UI_remove_answer_0D("salt tides");
		if(!((UI_get_timer_7A(0x0001) > 0x0003) && (!gflags[026D]))) goto labelFunc04D4_04A8;
		UcMessage("\"The tides are in convergence. If thou desirest Mandrake Roots, thou must hasten to the swamplands.\"");
		UcSay;
		gflags[026C] = true;
		goto labelFunc04D4_04C1;
	labelFunc04D4_04A8:
		if(!gflags[026D]) goto labelFunc04D4_04B5;
		UcMessage("\"The tides have gone. It will be many days	before the roots can again be gathered.\"");
		UcSay;
		goto labelFunc04D4_04C1;
	labelFunc04D4_04B5:
		UcMessage("\"The Mandrake Roots only appear when the tides are right -- otherwise, they lay beneath the mud and cannot be seen.\"");
		UcSay;
		UcMessage("\"Now is not the time, but the tides will soon be in -- precisely when, I cannot predict.\"");
		UcSay;
		UcMessage("\"I could tell thee when the tides were right, if thou dost ask later.\"");
		UcSay;
	labelFunc04D4_04C1:
		var000D = true;
	labelFunc04D4_04C5:
		cmps("rare");
		UI_remove_answer_0D("rare");
		UcMessage("\"Mandrakes grow only in certain swamps, of which there is one on this isle.\"");
		UcSay;
		UcMessage("\"Due to the dangers of the magical storms, the ships no longer come.\"");
		UcSay;
		UcMessage("\"Only thou, the Stranger from Another World, canst visit us now.\"");
		UcSay;
		UcMessage("\"Therefore, no one can take the Mandrake Roots to the mages of Moonshade.\"");
		UcSay;
		UcMessage("\"There is certain to be a grave shortage of reagents in that city soon.\"");
		UcSay;
	labelFunc04D4_04E8:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell@", 0x0000);
		Func097F(item, "@Peace.@", 0x0002);
		goto labelFunc04D4_0510;
	labelFunc04D4_050D:
		goto labelFunc04D4_02E4;
	labelFunc04D4_0510:
		end_conv();
	labelFunc04D4_0511:
		if(!(event == 0x0007)) goto labelFunc04D4_051F;
		Func08F5(0xFF31);
	labelFunc04D4_051F:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern var Func08FC 0x8FC ();
extern var Func0825 0x825 ();
extern Func08FE 0x8FE ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern Func08F5 0x8F5 (var var0000);

Func04D5 0x4D5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = "my son";
	var0004 = "his";
	if(!var0001) goto labelFunc04D5_0031;
	var0003 = "my daughter";
	var0004 = "her";
	labelFunc04D5_0031:
		if(!(event == 0x0000)) goto labelFunc04D5_0179;
		var0005 = UI_find_nearby_41(0xFF2B, Dupre, 0x0014, 0x0008);
		var0006 = [];
		enum();
	labelFunc04D5_0053:
		for (var0009 in var0005 with var0007 to var0008 atend labelFunc04D5_0079);
		if(!(UI_get_schedule_type_24(var0009) == 0x0004)) goto labelFunc04D5_0076;
		var0006 = (var0006 & var0009);
	labelFunc04D5_0076:
		goto labelFunc04D5_0053;
	labelFunc04D5_0079:
		if(!(var0006 == [])) goto labelFunc04D5_0084;
		abrt();
	labelFunc04D5_0084:
		UI_clear_item_say_4E(0xFF2B);
		var000A = var0006[UI_get_random_00(UI_get_array_size_73(var0006))];
		UI_clear_item_say_4E(var000A);
		var000B = UI_get_random_00(0x0006);
		if(!(var000B == 0x0001)) goto labelFunc04D5_00CD;
		UI_item_say_4D(0xFF2B, "@Do not falter!@");
		Func097F(var000A, "@Pardon, Draxta.@", 0x0003);
	labelFunc04D5_00CD:
		if(!(var000B == 0x0002)) goto labelFunc04D5_00ED;
		UI_item_say_4D(0xFF2B, "@Rhythm is pure!@");
		Func097F(var000A, "@Walk in Rhythm.@", 0x0003);
	labelFunc04D5_00ED:
		if(!(var000B == 0x0003)) goto labelFunc04D5_010D;
		UI_item_say_4D(var000A, "@May we stop?@");
		Func097F(0xFF2B, "@It is not time...@", 0x0003);
	labelFunc04D5_010D:
		if(!(var000B == 0x0004)) goto labelFunc04D5_012D;
		UI_item_say_4D(0xFF2B, "@With vigor!@");
		Func097F(var000A, "@Vigor is good.@", 0x0003);
	labelFunc04D5_012D:
		if(!(var000B == 0x0005)) goto labelFunc04D5_014D;
		UI_item_say_4D(0xFF2B, "@Do not fail Xenka!@");
		Func097F(var000A, "@I am weak...@", 0x0003);
	labelFunc04D5_014D:
		if(!(var000B == 0x0006)) goto labelFunc04D5_0179;
		UI_item_say_4D(0xFF2B, "@Xenka is pleased!@");
		Func097F(var000A, "@Hail the Prophetess!@", 0x0005);
		Func097F(0xFF2B, "@Peace to all.@", 0x000A);
	labelFunc04D5_0179:
		if(!(event == 0x0001)) goto labelFunc04D5_01C8;
		if(!(UI_get_npc_id_BC(0xFF31) != 0x0000)) goto labelFunc04D5_019A;
		UI_item_say_4D(0xFF2B, "@Hush...@");
		abrt();
	labelFunc04D5_019A:
		UI_item_say_4D(0xFE9C, "@Might we speak?@");
		0xFF2B;
		calle();
		Func097F(0xFF2B, (("@Yes, " + var0003) + "?@"), 0x0002);
		UI_set_schedule_type_25(0xFF2B, 0x0003);
	labelFunc04D5_01C8:
		if(!(event == 0x0009)) goto labelFunc04D5_061D;
		UI_run_schedule_B7(0xFF2B);
		UI_clear_item_say_4E(0xFF2B);
		UI_show_npc_face0_05(0xFF2B, 0x0000);
		var000C = UI_get_item_flag_A3(0xFF2B, 0x001C);
		if(!(var000C == false)) goto labelFunc04D5_021E;
		UI_set_item_flag_A4(0xFF2B, 0x001C);
		UcMessage("\"I tremble before the Hero from Another World! Thou art even as Xenka said!\"");
		UcSay;
		UI_add_answer_0C(["name", "Hero From Another World", "Xenka"]);
		goto labelFunc04D5_0232;
	labelFunc04D5_021E:
		UcMessage("\"Welcome again, Hero from Another World! Thy destiny hath again brought thee to the place of Xenka's wisdom!\"");
		UcSay;
		UI_add_answer_0C(["Hero From Another World", "Xenka", "destiny"]);
	labelFunc04D5_0232:
		if(!(gflags[02DD] && UI_get_item_flag_A3(0xFF6B, 0x001E))) goto labelFunc04D5_024A;
		UI_add_answer_0C("Gwenno");
	labelFunc04D5_024A:
		if(!Func08FC()) goto labelFunc04D5_025B;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be... If thou art ready to see thy friend again, simply ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc04D5_025B:
		if(!Func0825()) goto labelFunc04D5_0268;
		UI_add_answer_0C("vision");
	labelFunc04D5_0268:
		UI_add_answer_0C(["bye"]);
	labelFunc04D5_0272:
		UcAsk;
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04D5_0287:
		cmps("name");
		UI_remove_answer_0D("name");
		UcMessage("\"My name is insignificant, oh great one. I am but a shadow in thy destiny and the glory of Xenka.\"");
		UcSay;
		var000A = Func0992(0x0001, "@Another mystic...@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"But, if thou wilt suffer to call me by name, I am Draxta.\"");
		UcSay;
		UI_add_answer_0C("destiny");
	labelFunc04D5_02BC:
		cmps("destiny");
		UI_remove_answer_0D("destiny");
		UcMessage("\"Xenka saw the destinies of every man, woman and child! They are written in her blessed book. I cannot tell thee thy destiny, for I am sworn not to interfere, but thou mayest look within Xenka's wisdom of thine own accord, as any may.\"");
		UcSay;
		UI_add_answer_0C(["blessed book", "not interfere"]);
	labelFunc04D5_02DC:
		cmps("blessed book");
		UI_remove_answer_0D("blessed book");
		UcMessage("\"A work of divine wisdom, certainly! It is where Xenka inscribed all of her visions.\"");
		UcSay;
		var000A = Func0992(0x0001, "@Such wisdom might aid thee in thy quest, Avatar.@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		if(!UI_find_nearby_41(item, 0x03E6, 0x000F, 0x0000)) goto labelFunc04D5_031E;
		UcMessage("\"Thou mayest find the book here in the Chapel, upon the altar.\"");
		UcSay;
		goto labelFunc04D5_032F;
	labelFunc04D5_031E:
		UcMessage("\"Thou mayest find the book upon the altar within the Chapel.\"");
		UcSay;
		UI_add_answer_0C(["altar", "Chapel"]);
	labelFunc04D5_032F:
		cmps("altar");
		UI_remove_answer_0D("altar");
		UcMessage("\"Look for the ankh, the ancient symbol of life. It is only fitting that Xenka's words rest before the symbol of all that her divinely-inspired words shall save!\"");
		UcSay;
	labelFunc04D5_0342:
		cmps("Chapel");
		UI_remove_answer_0D("Chapel");
		UcMessage("\"The Chapel is where we meditate. It is the central chamber of the abbey. This is where we gather to ponder the mystery of Xenka's prophecies.\"");
		UcSay;
	labelFunc04D5_0355:
		cmps("not interfere");
		UI_remove_answer_0D("not interfere");
		UcMessage("\"It is written that 'The friends of the Hero from Another World shall become ");
		UcMessage(var0004);
		UcMessage(" enemies.'\"");
		UcSay;
		UcMessage("\"I shall not seek to befriend thee, as I have no wish to bring about the end of the world!\"");
		UcSay;
		UI_add_answer_0C("end of the world");
	labelFunc04D5_0379:
		cmps("end of the world");
		UI_remove_answer_0D("end of the world");
		UcMessage("\"Xenka's visions were of the world's end, oh great one.\"");
		UcSay;
		UcMessage("\"It is written that 'If the Hero from Another World doth fail, the world shall shudder unto death.'\"");
		UcSay;
	labelFunc04D5_0390:
		cmps("Hero From Another World");
		UI_remove_answer_0D("Hero From Another World");
		UcMessage("\"Xenka saw that the one hope for our world was that A Hero from Another World would sail a ship upon dry land.\"");
		UcSay;
		UcMessage("\"Thoxa hath told us that thy ship was found beyond the shore. And thou wert accompanied by three fine companions, as foretold.\"");
		UcSay;
		UI_add_answer_0C(["Thoxa", "three fine companions"]);
	labelFunc04D5_03B4:
		cmps("Thoxa");
		UI_remove_answer_0D("Thoxa");
		UcMessage("\"Thoxa is another follower of the wondrous Xenka, although she would not be content to sit and wait for thine arrival. She would seek to be thy friend and take thee the Hourglass of Fate. I hope that it is not she that turns against thee.\"");
		UcSay;
		UI_add_answer_0C("Hourglass of Fate");
	labelFunc04D5_03CE:
		cmps("Hourglass of Fate");
		UI_remove_answer_0D("Hourglass of Fate");
		UcMessage("\"The sands within the glass are the life's blood of our land. Each grain falls closer and closer to its doom if thou shouldst fail in thy quest.\"");
		UcSay;
	labelFunc04D5_03E1:
		cmps("three fine companions");
		UI_remove_answer_0D("three fine companions");
		UcMessage("\"It is written that -- 'The Hero from Another World must have the Three to fulfill ");
		UcMessage(var0004);
		UcMessage(" quest.'\"");
		UcSay;
	labelFunc04D5_03FA:
		cmps("Xenka");
		UI_remove_answer_0D("Xenka");
		UcMessage("\"Xenka was a very wise woman, oh great one. Divine visions came to her to warn us of the end of our world.\"");
		UcSay;
		UcMessage("\"It was she who foresaw thy coming in the Place of Visions. Though she never told us that she foresaw leaving us...\"");
		UcSay;
		UI_add_answer_0C(["Place of Visions", "leaving"]);
	labelFunc04D5_041E:
		cmps("Place of Visions");
		UI_remove_answer_0D("Place of Visions");
		if(!Func0825()) goto labelFunc04D5_043A;
		UcMessage("\"This is the Place of Visions, Hero. Thou dost stand on hallowed ground.\"");
		UcSay;
		goto labelFunc04D5_0460;
	labelFunc04D5_043A:
		UcMessage("\"The Place of Visions is upon the very north-western edge of the fields, oh great one. Thou wilt know it by the benches placed before the great wall.\"");
		UcSay;
		UcMessage("\"I recall the last night we ever saw Xenka... I was there for her last three visions. Wouldst thou like me to show thee a vision?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04D5_0455;
		UcMessage("\"Journey to the Place of Visions, and I shall meet thee there.\"");
		UcSay;
		gflags[0273] = true;
		goto labelFunc04D5_0459;
	labelFunc04D5_0455:
		UcMessage("\"As thou wishest. But bear in mind that the visions may be of aid to thee.\"");
		UcSay;
	labelFunc04D5_0459:
		UI_add_answer_0C("visions");
	labelFunc04D5_0460:
		cmps("visions");
		UI_remove_answer_0D("visions");
		UcMessage("\"From the first vision Xenka said, 'The Hero from Another World must triumph -- even in ");
		UcMessage(var0004);
		UcMessage(" dreams.' I can tell that thou shalt succeed. The very voice of the universe sings as thou dost move through it.\"");
		UcSay;
		UcMessage("\"After the second vision Xenka said, 'The Hero from Another World must cast aside ");
		UcMessage(var0004);
		UcMessage(" prejudice and follow those of The Fellowship into the Truth of Beauty.'");
		UcSay;
		UcMessage("\"Following the third vision Xenka said, 'The Hero from Another World shall need a thief and a braggart as ");
		UcMessage(var0004);
		UcMessage(" ally.' I must admit, I find that hard to believe.\"");
		UcSay;
	labelFunc04D5_048D:
		cmps("leaving");
		UI_remove_answer_0D("leaving");
		UcMessage("\"It was a dreadful blow, oh great one, when we could not find her in any place we searched.\"");
		UcSay;
		UcMessage("\"But I believe that some great event, some great crisis will bring forth the prophetess and her psychic wisdom to save this floundering world.\"");
		UcSay;
		gflags[026B] = true;
		UI_add_answer_0C("floundering");
	labelFunc04D5_04AF:
		cmps("floundering");
		UI_remove_answer_0D("floundering");
		UcMessage("\"Thou hast already survived the strange storms that lash our land. Wouldst thou not agree that we are floundering beneath their fierce beatings?\"");
		UcSay;
	labelFunc04D5_04C2:
		cmps("Gwenno");
		UI_remove_answer_0D("Gwenno");
		UcMessage("\"Thy friend Gwenno doth not seem right, oh great one.\"");
		UcSay;
		var000A = Func0992(0x0001, "@She is a fine one to talk...@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Karnax could divine what ails her, to be certain.\"");
		UcSay;
		UI_add_answer_0C("Karnax");
	labelFunc04D5_04F7:
		cmps("Karnax");
		UI_remove_answer_0D("Karnax");
		UcMessage("\"Karnax is a proud fellow, oh great one. But not so proud that he would interfere with thy quest. He knows much of the history of the land. He will be a great help to thee, if thou dost ask. But only if thou dost ask.\"");
		UcSay;
		UI_add_answer_0C(["proud", "history"]);
	labelFunc04D5_0517:
		cmps("proud");
		UI_remove_answer_0D("proud");
		UcMessage("\"Karnax's ability to divine is second only to Xenka herself. He can be a bit acerbic if he doth not feel that he is being given the proper respect.\"");
		UcSay;
	labelFunc04D5_052A:
		cmps("history");
		UI_remove_answer_0D("history");
		UcMessage("\"Karnax hath made an exhaustive study of the history of the Serpent people. He can tell thee most anything about them.\"");
		UcSay;
		UI_add_answer_0C("Serpent people");
	labelFunc04D5_0544:
		cmps("Serpent people");
		UI_remove_answer_0D("Serpent people");
		UcMessage("\"The Serpent people dwelt in this land long before our forefathers settled here. I do not know what happened to them, but Karnax might.\"");
		UcSay;
	labelFunc04D5_0557:
		cmps("vision");
		UI_remove_answer_0D("vision");
		UcMessage("\"Silence, please! We shall now listen to the song of the Void, which whispers of events both past and present...\"");
		UcSay;
		var000D = UI_find_nearest_15(0xFF2B, 0x0308, 0x0014);
		if(!var000D) goto labelFunc04D5_05E3;
		var000E = UI_get_object_position_20(var000D);
		var000F = ((0x0008 * (var000E[0x0001] - 0x0920)) + 0x0064);
		var0010 = ((0x0008 * (var000E[0x0002] - 0x0420)) + 0x0028);
		UI_obj_sprite_effect_91(var000D, 0x0035, var000F, var0010, 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFF2B, "@Behold, the vision!@", 0x0007);
		gflags[0273] = false;
		goto labelFunc04D5_05F3;
	labelFunc04D5_05E3:
		UcMessage("\"Let us move closer to the great wall...\"");
		UcSay;
		Func097F(0xFF2B, "@To the wall...@", 0x0000);
	labelFunc04D5_05F3:
		abrt();
	labelFunc04D5_05F4:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Fare well!@", 0x0000);
		Func097F(item, "@Xenka's blessings!@", 0x0002);
		goto labelFunc04D5_061C;
	labelFunc04D5_0619:
		goto labelFunc04D5_0272;
	labelFunc04D5_061C:
		end_conv();
	labelFunc04D5_061D:
		if(!(event == 0x0007)) goto labelFunc04D5_062B;
		Func08F5(0xFF2B);
	labelFunc04D5_062B:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04D6 0x4D6 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0001)) goto labelFunc04D6_00A2;
	UI_set_schedule_type_25(0xFF2A, 0x0014);
	var0000 = UI_find_nearby_41(0xFF2A, 0x00FA, 0x000A, 0x0000);
	if(!in(UI_get_npc_object_23(0xFF2A), var0000)) goto labelFunc04D6_0043;
	var0000 = Func0988(UI_get_npc_object_23(0xFF2A), var0000);
	labelFunc04D6_0043:
		if(!in(UI_get_npc_object_23(0xFF30), var0000)) goto labelFunc04D6_0061;
		var0000 = Func0988(UI_get_npc_object_23(0xFF30), var0000);
	labelFunc04D6_0061:
		if(!in(UI_get_npc_object_23(0xFF2E), var0000)) goto labelFunc04D6_007F;
		var0000 = Func0988(UI_get_npc_object_23(0xFF2E), var0000);
	labelFunc04D6_007F:
		if(!var0000) goto labelFunc04D6_00A2;
		var0001 = var0000[UI_get_random_00(UI_get_array_size_73(var0000))];
		Func097F(var0001, "@He cannot speak.@", 0x0000);
	labelFunc04D6_00A2:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08FC 0x8FC ();
extern Func08FE 0x8FE ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func04D7 0x4D7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_item_flag_A3(0xFF29, 0x001C);
	if(!(event == 0x0001)) goto labelFunc04D7_004E;
	UI_item_say_4D(0xFE9C, "Most honored one...");
	0xFF29;
	calle();
	Func097F(0xFF29, "@What?@", 0x0002);
	UI_set_schedule_type_25(0xFF29, 0x0003);
	labelFunc04D7_004E:
		if(!((event == 0x0009) || (event == 0x0002))) goto labelFunc04D7_0436;
		UI_set_schedule_type_25(0xFF29, 0x000A);
		UI_show_npc_face0_05(0xFF29, 0x0000);
		if(!var0003) goto labelFunc04D7_0083;
		UcMessage("\"We meet again, ");
		UcMessage(var0002);
		UcMessage(".  How may I aid thee?\"");
		UcSay;
		goto labelFunc04D7_00A3;
	labelFunc04D7_0083:
		UI_set_item_flag_A4(0xFF29, 0x001C);
		UcMessage("\"Let the bells ring... for Xenka hath returned!!!\"");
		UcSay;
		UcMessage("\"So, ");
		UcMessage(var0002);
		UcMessage(", thou art the one who hath caused me all this grief...\"");
		UcSay;
		UcMessage("\"And you, my rock-brained monks! Is this how you serve my visions?! You cannot even take the words down properly!\"");
		UcSay;
		UcMessage("\"I knew that thou wouldst need me to unravel the mess that these monks have made of my prophecies.\"");
		UcSay;
	labelFunc04D7_00A3:
		UI_add_answer_0C(["returned", "grief", "unravel the mess"]);
		if(!(!gflags[0279])) goto labelFunc04D7_00C1;
		UI_add_answer_0C("instructions");
	labelFunc04D7_00C1:
		if(!(gflags[022B] && (!gflags[025E]))) goto labelFunc04D7_00D3;
		UI_add_answer_0C("journey");
	labelFunc04D7_00D3:
		if(!(gflags[0278] && (!gflags[01F9]))) goto labelFunc04D7_00E5;
		UI_add_answer_0C("Staff of the Serpent");
	labelFunc04D7_00E5:
		if(!(gflags[01F9] && (gflags[025E] && (gflags[022B] && (!gflags[0242]))))) goto labelFunc04D7_00FF;
		UI_add_answer_0C("sacrifice");
	labelFunc04D7_00FF:
		if(!gflags[0276]) goto labelFunc04D7_011A;
		UcMessage("\"There is no time left! Go to Sunrise Isle!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func097F(0xFF29, "@Hurry!@", 0x0002);
		abrt();
	labelFunc04D7_011A:
		if(!gflags[0061]) goto labelFunc04D7_0127;
		UI_add_answer_0C("final task");
	labelFunc04D7_0127:
		if(!Func08FC()) goto labelFunc04D7_013C;
		UcMessage("\"Oh! One of thy friends hath met an untimely end. This should not be...\"");
		UcSay;
		UcMessage("\"If thou art ready to see thy friend again, simply ask and I will return them to thee.\"");
		UcSay;
		UI_add_answer_0C("resurrection");
	labelFunc04D7_013C:
		UI_add_answer_0C(["bye"]);
	labelFunc04D7_0146:
		UcAsk;
		cmps("resurrection");
		UI_remove_answer_0D("resurrection");
		Func08FE();
	labelFunc04D7_015B:
		cmps("returned");
		UI_remove_answer_0D("returned");
		UcMessage("\"I knew that if I did not promise to return that these laggard monks would drift away from the task I set them.\"");
		UcSay;
		UcMessage("\"As it is, they have nearly brought disaster upon us all... including thee, Hero from Another World.\"");
		UcSay;
		UI_remove_answer_0D(["task", "disaster", "Hero"]);
	labelFunc04D7_0182:
		cmps("task");
		UI_remove_answer_0D("task");
		UcMessage("\"They were to watch for thine arrival, oh mighty Hero, and prepare the people for the approaching danger.\"");
		UcSay;
		UI_add_answer_0C("danger");
	labelFunc04D7_019C:
		cmps("danger");
		UI_remove_answer_0D("danger");
		UcMessage("\"I think that magical storms and earthquakes qualify as ample danger, but then I am not a Hero.\"");
		UcSay;
	labelFunc04D7_01AF:
		cmps("disaster");
		UI_remove_answer_0D("disaster");
		UcMessage("\"By hopelessly miring my visions in the bog of high and mighty language, they have delayed thee until it is nearly too late.\"");
		UcSay;
		UI_add_answer_0C(["miring my visions", "too late"]);
	labelFunc04D7_01CF:
		cmps("miring my visions");
		UI_remove_answer_0D("miring my visions");
		UcMessage("\"I am a blunt, plain-spoken woman, noble Hero. Too plain for those who wanted to feel that they followed the words of some holy sage.\"");
		UcSay;
		UcMessage("\"So my visions became cryptic puzzles and poor poetry, like that of some half-witted gleeman. And worse upon worse, they forgot the true meaning behind their flowery words!\"");
		UcSay;
	labelFunc04D7_01E6:
		cmps("too late");
		UI_remove_answer_0D("too late");
		UcMessage("\"The world is a heavy thing, Hero. Once it gathers enough force to try and shake those who sicken it from its skin, dost thou think that turning back will be easy?\"");
		UcSay;
		UcMessage("\"Better to try and stand beneath a falling boulder and command it to stop.\"");
		UcSay;
	labelFunc04D7_01FD:
		cmps("Hero");
		UI_remove_answer_0D("Hero");
		UcMessage("\"Do not thy companions dear to thine heart call thee Avatar?\"");
		UcSay;
		UcMessage("\"Art thou not from a strange land that thou dost call Earth?\"");
		UcSay;
		UcMessage("\"I think then that thou dost indeed fit the title of Hero from Another World.\"");
		UcSay;
		UI_add_answer_0C("Earth");
	labelFunc04D7_021F:
		cmps("Earth");
		UI_remove_answer_0D("Earth");
		UcMessage("\"I have never seen this wondrous land. I have only felt its presence upon the edge of the Void.\"");
		UcSay;
		UcMessage("\"But I have felt great tides of power being directed toward it.\"");
		UcSay;
		UI_add_answer_0C(["Void", "power"]);
	labelFunc04D7_0243:
		cmps("Void");
		UI_remove_answer_0D("Void");
		UcMessage("\"I cannot explain how it was that I got there, or even that it is not empty...\"");
		UcSay;
		UcMessage("\"Thou couldst not grasp it. For it encompasses countless worlds and draws power from the life-forces of each one. It is... amazing!\"");
		UcSay;
	labelFunc04D7_025A:
		cmps("power");
		UI_remove_answer_0D("power");
		UcMessage("\"I have no name for what that power was. I know not if the intent was hostile or good.\"");
		UcSay;
		UcMessage("\"I only felt the power move, as a swimmer feels the currents within a stream.\"");
		UcSay;
	labelFunc04D7_0271:
		cmps("grief");
		UI_remove_answer_0D("grief");
		UcMessage("\"I was a wife, and a mother, Hero. I did not ask to become a prophetess.\"");
		UcSay;
		UcMessage("\"My poor husband took me before the great Mages of Moonshade when these visions came upon me. And those wise men dismissed me saying, 'She is crazy.'\"");
		UcSay;
		UcMessage("\"Mine husband, my children... even my children's children are long gone to dust. While I remain alive, enslaved to visions I never asked for!\"");
		UcSay;
		UI_add_answer_0C(["Mages of Moonshade", "visions"]);
	labelFunc04D7_0299:
		cmps("Mages of Moonshade");
		UI_remove_answer_0D("Mages of Moonshade");
		UcMessage("\"Arrogant manipulators! Never once did they attempt to divine if my visions were true!\"");
		UcSay;
		UcMessage("\"Never once did they offer to try and cure my supposed madness, for we were too poor to pay their fees.\"");
		UcSay;
		UcMessage("\"Is it any wonder that they could not stand to live within the rule of an honest man?!\"");
		UcSay;
		UI_add_answer_0C("honest man");
	labelFunc04D7_02BB:
		cmps("honest man");
		UI_remove_answer_0D("honest man");
		UcMessage("\"Surely thou knowest of whom I speak... For he is the ruler that sent thee to meet thy fate here.\"");
		UcSay;
		UcMessage("\"Thy Lord British demanded honesty of the rogues that call themselves Mages. And when that sat ill in their bellies, they fled to where they could cheat people in peace!\"");
		UcSay;
	labelFunc04D7_02D2:
		cmps("visions");
		UI_remove_answer_0D("visions");
		UcMessage("\"At first they were but nightmares... Until I feared to close mine eyes. And then the death and destruction I saw followed mine every waking move.\"");
		UcSay;
		UcMessage("\"The people of my village bade mine husband to cast me out, for they feared that my madness might spread. So I came to this island to be free of the whispers and stares.\"");
		UcSay;
	labelFunc04D7_02E9:
		cmps("unravel the mess");
		UI_remove_answer_0D("unravel the mess");
		UcMessage("\"I can see that thou art unsure of how to progress, great Hero... That is why I am here.\"");
		UcSay;
		UcMessage("\"Return here if thou art unsure of how to proceed. I shall guide thee in some small fashion.\"");
		UcSay;
	labelFunc04D7_0300:
		cmps("instructions");
		UI_remove_answer_0D("instructions");
		if(!(!gflags[024C])) goto labelFunc04D7_033A;
		UcMessage("\"Take this Serpent's Tooth... Thou must seek the Dead on the Isle of Crypts.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x022F, 0xFE99, 0x0006, 0x0000, true);
		gflags[024C] = true;
		goto labelFunc04D7_033E;
	labelFunc04D7_033A:
		UcMessage("\"Use the tooth that I have given thee! Seek the Dead on the Isle of Crypts.\"");
		UcSay;
	labelFunc04D7_033E:
		cmps("journey");
		UI_remove_answer_0D("journey");
		if(!Func097D(0xFE9B, 0x0001, 0x022F, 0xFE99, 0x0000)) goto labelFunc04D7_0369;
		UcMessage("\"Good, thou hast the tooth that will take thee to Sunrise Isle!\"");
		UcSay;
		goto labelFunc04D7_036D;
	labelFunc04D7_0369:
		UcMessage("\"Thou must journey to the frozen wastelands and speak with those considered savage. They hold the means to further thy quest with the Serpent Tooth thou dost lack.\"");
		UcSay;
	labelFunc04D7_036D:
		cmps("Staff of the Serpent");
		UI_remove_answer_0D("Staff of the Serpent");
		UcMessage("\"Without the proper armaments, thou canst not seek the wisdom of the dead. Seek the Staff of the Serpent within the bowels of Furnace.\"");
		UcSay;
	labelFunc04D7_0380:
		cmps("sacrifice");
		UI_remove_answer_0D("sacrifice");
		if(!gflags[0061]) goto labelFunc04D7_03AC;
		UcMessage("\"I share thy sorrow at the loss of thy friend, ");
		UcMessage(var0002);
		UcMessage(". Take comfort that his ashes shall be the glue which shall bind the sundered pieces of our land together once more.\"");
		UcSay;
		UcMessage("\"But we must hurry... Only a few grains remain to fall. Time is fleeing. Take thy friend's ashes with thee, ");
		UcMessage(var0002);
		UcMessage(", for the Three must be with thee at the Chaos Shrine deep within the heart of Skullcrusher.\"");
		UcSay;
		goto labelFunc04D7_03CD;
	labelFunc04D7_03AC:
		if(!gflags[0060]) goto labelFunc04D7_03B9;
		UcMessage("\"Do not tarry overlong in thy goodbyes to thy friends, Hero. Our land has little time left for sentiment.\"");
		UcSay;
		goto labelFunc04D7_03CD;
	labelFunc04D7_03B9:
		UcMessage("\"As I had feared, the imbalance hath grown too powerful...\"");
		UcSay;
		UcMessage("\"Only the final sacrifice of one who is in balance can aid thee now. For this, only thy three companions, the lady Gwenno and thyself doth qualify.\"");
		UcSay;
		UcMessage("\"Thou must draw straws to see who the Monitor crematorium awaits.\"");
		UcSay;
		gflags[0060] = true;
		UcMessage("\"I am sorry, Hero. Thou hast drawn the shortest straw. Take comfort that thine ashes shall bind the wounds of the land. Go quickly for the Hourglass is nearly empty.\"");
		UcSay;
	labelFunc04D7_03CD:
		cmps("final task");
		UI_remove_answer_0D("final task");
		UcMessage("\"Thy time is at hand, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"Thy destiny and our fate shall be found upon the island known as Sunrise Isle. Take this Serpent Sword as my final aid to thee... I can do no more.\"");
		UcSay;
		var0004 = Func099B(0xFE9C, 0x0001, 0x02C6, 0x0000, 0x0000, 0x0000, true);
		gflags[0276] = true;
		UcMessage("\"Go quickly! The end is at hand!\"");
		UcSay;
	labelFunc04D7_040B:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Goodbye!@", 0x0000);
		Func097F(0xFF29, "@Fulfill thy destiny!@", 0x0002);
		goto labelFunc04D7_0435;
	labelFunc04D7_0432:
		goto labelFunc04D7_0146;
	labelFunc04D7_0435:
		end_conv();
	labelFunc04D7_0436:
		return;
}
// externs
extern Func0808 0x808 (var var0000, var var0001);

Func04D8 0x4D8 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = "Pothos";
	var0001 = 0x0007;
	Func0808(var0000, var0001);
	return;
}
Func04D9 0x4D9 (var var0000)
{
	var var0001;
	var var0002;

	UI_clear_item_say_4E(0xFF27);
	var0000 = UI_direction_from_A2(0xFF27, 0xFE9C);
	var0001 = UI_execute_usecode_array_01(0xFF27, [0x62, 0x59, var0000, 0x27, 0x0002, 0x52, "@Lead me to my nightmare.@", 0x27, 0x000F, 0x52, "@I beg of thee...@"]);
	UI_set_alignment_4A(0xFF27, 0x0000);
	UI_set_schedule_type_25(0xFF27, 0x0009);
	return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0957 0x957 (var var0000);
extern Func09B0 0x9B0 (var var0000);
extern var Func0955 0x955 ();

Func04DA 0x4DA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	var0002 = Func0953();
	var0003 = UI_get_item_flag_A3(0xFFD9, 0x001C);
	if(!(event == 0x0007)) goto labelFunc04DA_006F;
	UI_show_npc_face0_05(0xFFD9, 0x0000);
	UcMessage("\"Art thou insane? Why art thou attacking me? This is my dream!\" *\"If I had a two-handed sword, I would make mincemeat of thee!\" *\"I must awaken...\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0004 = UI_get_object_position_20(item);
	UI_play_sound_effect_16(0x004C);
	UI_sprite_effect_68(0x0007, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_npc_4C(0xFF26);
	labelFunc04DA_006F:
		if(!(event == 0x0001)) goto labelFunc04DA_00A5;
		UI_item_say_4D(0xFE9C, "@Hail, minstrel!@");
		0xFF26;
		calle();
		Func097F(0xFF26, (("@Greetings, " + var0000) + "!@"), 0x0005);
		UI_set_schedule_type_25(0xFF26, 0x0003);
	labelFunc04DA_00A5:
		if(!(event == 0x0009)) goto labelFunc04DA_05FB;
		UI_set_schedule_type_25(0xFF26, 0x000C);
		UI_show_npc_face0_05(0xFFD9, 0x0000);
		if(!(var0003 == true)) goto labelFunc04DA_00D0;
		UcMessage("\"I had wondered when I would encounter thee here, Avatar.\" ~\"I expect that thou wouldst like some answers, no doubt.\" *\"Or perhaps I could sing thee a song to ease thy way.\"");
		UcSay;
		goto labelFunc04DA_00D4;
	labelFunc04DA_00D0:
		UcMessage("\"Welcome, fellow dreamer!\" ~\"I am Byrin, a gleeman by trade.\" *\"Thou dost look perplexed. I'll warrant that thou wouldst like some answers.\" ~\"Or perhaps I could sing thee a song to ease thy way.\"");
		UcSay;
	labelFunc04DA_00D4:
		UI_add_answer_0C(["answers", "song", "bye"]);
	labelFunc04DA_00E4:
		UcAsk;
		cmps("answers");
		UcMessage("\"Thou mayest find that the answers only give rise to more questions.\" ~\"But I shall do my best to help thee.\" *\"First thou shouldst know that thou dost walk in the land of dreamers.\" ~\"There are only two ways to enter or exit here.\"");
		UcSay;
		UI_remove_answer_0D("answers");
		UI_add_answer_0C("two ways");
	labelFunc04DA_0101:
		cmps("two ways");
		UcMessage("\"The first way to enter this realm is from the safety of thy bed...\" ~\"In thy nightly slumber.\" *\"The second way to enter here is far more perilous...\" ~\"By falling prey to the enchantments in Gorlab Swamp.\"");
		UcSay;
		UI_remove_answer_0D("two ways");
		UI_add_answer_0C("Gorlab Swamp");
	labelFunc04DA_011B:
		cmps("Gorlab Swamp");
		UcMessage("\"Long ago -- even before the serpent people made this land their home -- a sorceror named Rabindrinath swore to destroy the peaceful town of Gorlab.\" ~\"But the town healer, Siranush, opposed him and the evil spell went awry.\" *\"The inhabitants of the town were not destroyed, but were instead trapped	within the realm of dreams...\" ~\"Along with the mad sorceror...\" ~\"And any who dare enter the environs of Gorlab.\"");
		UcSay;
		UI_remove_answer_0D("Gorlab Swamp");
		UI_add_answer_0C(["Rabindrinath", "Siranush"]);
	labelFunc04DA_013B:
		cmps("Rabindrinath");
		UcMessage("\"Rabindrinath hath struggled mightily against Siranush across the span of time.\" ~\"Each of his attacks have been repelled...\" ~\"Much to his displeasure.\"");
		UcSay;
		UI_remove_answer_0D("Rabindrinath");
		UI_add_answer_0C("displeasure");
	labelFunc04DA_0155:
		cmps("displeasure");
		UcMessage("\"Rabindrinath releases his anger by troubling the thoughts of those who venture here within their dreams.\"");
		UcSay;
		UI_remove_answer_0D("displeasure");
	labelFunc04DA_0168:
		cmps("Siranush");
		UcMessage("\"Siranush is a strong-willed woman who hath repelled all of Rabindrinath's attacks on her people.\" ~\"She is no sorceror, and I fear that her strength will one day fail her.\" *\"Were Siranush to be vanquished, I am sure that Rabindrinath would turn his evil intent on the wandering dreamers.\" ~\"Without Siranush's guidance, those who enter here might never leave.\"");
		UcSay;
		UI_remove_answer_0D("Siranush");
		UI_add_answer_0C("leave");
	labelFunc04DA_0182:
		cmps("leave");
		UcMessage("\"As I said before, there are two ways to enter the land of dreamers.\" ~\"If thou didst come here from the comfort of thy bed, thou canst simply awaken and thou wilt return to the land of waking men.\" *\"But, if thou didst come here through the enchantments in the Swamp, thou must die here to return to thy body.\"");
		UcSay;
		UI_remove_answer_0D("leave");
		UI_add_answer_0C("die");
	labelFunc04DA_019C:
		cmps("die");
		UcMessage("\"By die, I do not mean that thou must cease living.\" ~\"I mean that thy perceived life here must end...\" *\"Thy death here returns thee to thy body.\" ~\"So long as Siranush prevails and thy body lives, thou canst return to the world of waking men.\" *\"But if Siranush should fall, or thy body die...\" ~\"thou shalt remain trapped here for all time.\"");
		UcSay;
		UI_remove_answer_0D("die");
	labelFunc04DA_01AF:
		cmps("song");
		UcMessage("\"I know many songs...\" ~\"Dost thou wish to hear one I have already sung?\" ~\"Or dost thou wish to hear a new song?\"");
		UcSay;
		var0005 = [];
		if(!(Func0957(["old song", "new song"]) == 0x0001)) goto labelFunc04DA_0243;
		if(!(gflags[01D3] == true)) goto labelFunc04DA_01E6;
		var0005 = (var0005 & 0x0001);
	labelFunc04DA_01E6:
		if(!(gflags[01D4] == true)) goto labelFunc04DA_01F8;
		var0005 = (var0005 & 0x0002);
	labelFunc04DA_01F8:
		if(!(gflags[01D5] == true)) goto labelFunc04DA_020A;
		var0005 = (var0005 & 0x0003);
	labelFunc04DA_020A:
		if(!(gflags[01D6] == true)) goto labelFunc04DA_021C;
		var0005 = (var0005 & 0x0004);
	labelFunc04DA_021C:
		if(!(gflags[01D7] == true)) goto labelFunc04DA_022E;
		var0005 = (var0005 & 0x0005);
	labelFunc04DA_022E:
		if(!(gflags[01D8] == true)) goto labelFunc04DA_0240;
		var0005 = (var0005 & 0x0006);
	labelFunc04DA_0240:
		goto labelFunc04DA_02AF;
	labelFunc04DA_0243:
		if(!(gflags[01D3] == false)) goto labelFunc04DA_0255;
		var0005 = (var0005 & 0x0001);
	labelFunc04DA_0255:
		if(!(gflags[01D4] == false)) goto labelFunc04DA_0267;
		var0005 = (var0005 & 0x0002);
	labelFunc04DA_0267:
		if(!(gflags[01D5] == false)) goto labelFunc04DA_0279;
		var0005 = (var0005 & 0x0003);
	labelFunc04DA_0279:
		if(!(gflags[01D6] == false)) goto labelFunc04DA_028B;
		var0005 = (var0005 & 0x0004);
	labelFunc04DA_028B:
		if(!(gflags[01D7] == false)) goto labelFunc04DA_029D;
		var0005 = (var0005 & 0x0005);
	labelFunc04DA_029D:
		if(!(gflags[01D8] == false)) goto labelFunc04DA_02AF;
		var0005 = (var0005 & 0x0006);
	labelFunc04DA_02AF:
		if(!(var0005 == [])) goto labelFunc04DA_02C0;
		UcMessage("\"I'm sorry... ~Thou hast heard all of my songs.\"");
		UcSay;
		goto labelFunc04DA_02DD;
	labelFunc04DA_02C0:
		var0006 = UI_get_random_00(UI_get_array_size_73(var0005));
		var0007 = var0005[var0006];
		Func09B0(var0007);
	labelFunc04DA_02DD:
		cmps("tales");
		UcMessage("\"For those with an adventurous spirit, I can tell thee of the northern savages.\"");
		UcSay;
		UcMessage("\"For those who wish to hear of a lost civilization, I can tell thee of the people who left the ruins on this continent.\"");
		UcSay;
		UcMessage("\"For those who would hear a tale of bitter bravery, I can tell thee of the lost king.\"");
		UcSay;
		UI_remove_answer_0D("tales");
		UI_add_answer_0C(["northern savages", "lost culture", "lost king"]);
	labelFunc04DA_0308:
		cmps("northern savages");
		UcMessage("\"Once thou leavest the warm lands of Man, thou dost come into the realm of the northern savages.\" ~\"These creatures have faces that strongly resemble that of a normal man, but they are covered head to foot in a shaggy fur pelt.\"");
		UcSay;
		UcMessage("\"Some say that these creatures are some lost tribe of Man that hath adapted to the cold.\" ~\"Still others claim that the savages are a mage-created race that guards some great, mystical secret.\"");
		UcSay;
		UcMessage("\"None can say if they are intelligent.\" ~\"They build no structures and speak no recognizable language.\"");
		UcSay;
		if(!(gflags[01D5] == false)) goto labelFunc04DA_0341;
		UcMessage("\"There is also a song about the northern savages. ~Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_033D;
		UcMessage("\"All right, then...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_0341;
	labelFunc04DA_033D:
		UcMessage("\"Perhaps some other time, then.\"");
		UcSay;
	labelFunc04DA_0341:
		UI_remove_answer_0D("northern savages");
	labelFunc04DA_0348:
		cmps("lost culture");
		UcMessage("\"Long ago, before any of the cities thou knowest today were built, there was a race of Man who worshipped three great elemental serpents.\" ~\"Some followed one of fire. Others followed one of ice. And still others followed one of earth.\"");
		UcSay;
		UcMessage("\"As only the serpent of earth could withstand both the fire and the ice of the other serpents, it did possess the most power.\" ~\"The fire and ice serpents were violently opposed to each other, but were held in check by the serpent of earth.\"");
		UcSay;
		UcMessage("\"Then the serpent of earth lost power. The fire and ice serpents warred for supremacy.\" ~\"When the battle ended, it mattered not which serpent had won...\" ~\"for the land was destroyed and all the worshippers lay dead.\"");
		UcSay;
		UI_remove_answer_0D("lost culture");
	labelFunc04DA_0363:
		cmps("lost king");
		UcMessage("\"To the north of here stand two castles, seemingly empty from the ravages of time.\" ~\"But neither is truly empty, for they both hold the ghosts of trust betrayed.\"");
		UcSay;
		UcMessage("\"In one majestic castle a lady waits for her faithless lover who pledged his love and never returned.\" ~\"In the other, a father and ruler, driven mad by the loss of daughter and erstwhile friend, took his people beyond the cares of time.\"");
		UcSay;
		UcMessage("\"All the trapped souls await the return of the one whose desertion forever changed the land he had sworn to protect.\" ~\"All wait for the return of the lost king... and revenge!\"");
		UcSay;
		if(!(gflags[01D3] == false)) goto labelFunc04DA_039C;
		UcMessage("\"There is a song about the lady.\" ~\"Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_0398;
		UcMessage("\"It is a sad ballad indeed...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_039C;
	labelFunc04DA_0398:
		UcMessage("\"Another time, then.\"");
		UcSay;
	labelFunc04DA_039C:
		if(!(gflags[01D8] == false)) goto labelFunc04DA_03C1;
		UcMessage("\"There is a song about the other castle, as well.\" ~\"Wouldst thou care to hear it?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_03BD;
		UcMessage("\"Prepare thyselves...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_03C1;
	labelFunc04DA_03BD:
		UcMessage("\"Another time, then.\"");
		UcSay;
	labelFunc04DA_03C1:
		UI_remove_answer_0D("lost king");
	labelFunc04DA_03C8:
		cmps("tunes");
		if(!(gflags[003E] == true)) goto labelFunc04DA_0408;
		if(!(var0001 == true)) goto labelFunc04DA_03F4;
		UcMessage("\"For thee, brave lady, I would sing of dreams, or perhaps of tragedy.\" ~\"Of course, although I sing to entertain others, I hope for some small token of appreciation...\" ~\"if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["dreams", "tragedy"]);
		goto labelFunc04DA_0405;
	labelFunc04DA_03F4:
		UcMessage("\"For thee, noble sir, I would sing a heart-rending ballad, or perhaps long-lost lore.\" ~\"Of course, although I sing to entertain others, I hope for some small token of appreciation...\" ~\"if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["ballad", "lore"]);
	labelFunc04DA_0405:
		goto labelFunc04DA_0419;
	labelFunc04DA_0408:
		UcMessage("\"I sense that thou dost like adventure.\" ~\"For thee I would sing of strange beings and strange places.\" ~\"Of course, although I sing to entertain others, I hope for some small token of appreciation...\" ~\"if possible. Singing is thirsty business.\"");
		UcSay;
		UI_add_answer_0C(["strange beings", "strange places"]);
	labelFunc04DA_0419:
		UI_remove_answer_0D("tunes");
	labelFunc04DA_0420:
		cmps("dreams");
		if(!(gflags[01D7] == true)) goto labelFunc04DA_0457;
		UcMessage("\"I believe that thou hast already heard that one.\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_0449;
		UcMessage("\"My pleasure...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_0454;
	labelFunc04DA_0449:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_0454:
		goto labelFunc04DA_0461;
	labelFunc04DA_0457:
		UcMessage("\"I hope thou dost enjoy it...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_0461:
		UI_remove_answer_0D("dreams");
	labelFunc04DA_0468:
		cmps("tragedy");
		if(!(gflags[01D8] == true)) goto labelFunc04DA_049F;
		UcMessage("\"I seem to remember singing this for thee before...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_0491;
		UcMessage("\"One more time, then...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_049C;
	labelFunc04DA_0491:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_049C:
		goto labelFunc04DA_04A9;
	labelFunc04DA_049F:
		UcMessage("\"Relax and be at ease...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_04A9:
		UI_remove_answer_0D("tragedy");
	labelFunc04DA_04B0:
		cmps("ballad");
		if(!(gflags[01D3] == true)) goto labelFunc04DA_04E7;
		UcMessage("\"I'm certain that thou hast before...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_04D9;
		UcMessage("\"As thou wishest...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_04E4;
	labelFunc04DA_04D9:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_04E4:
		goto labelFunc04DA_04F1;
	labelFunc04DA_04E7:
		UcMessage("\"I do hope I remember it...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_04F1:
		UI_remove_answer_0D("ballad");
	labelFunc04DA_04F8:
		cmps("lore");
		if(!(gflags[01D4] == true)) goto labelFunc04DA_052F;
		UcMessage("\"I fear that thou dost already know this one...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_0521;
		UcMessage("\"Thou canst sing along if thou wishest...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_052C;
	labelFunc04DA_0521:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_052C:
		goto labelFunc04DA_0539;
	labelFunc04DA_052F:
		UcMessage("\"I think I am in the right key...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_0539:
		UI_remove_answer_0D("lore");
	labelFunc04DA_0540:
		cmps("strange beings");
		if(!(gflags[01D5] == true)) goto labelFunc04DA_0577;
		UcMessage("\"I have done this one for thee before...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_0569;
		UcMessage("\"Very well...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_0574;
	labelFunc04DA_0569:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_0574:
		goto labelFunc04DA_0581;
	labelFunc04DA_0577:
		UcMessage("\"Thou wilt like the tempo on this one...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_0581:
		UI_remove_answer_0D("strange beings");
	labelFunc04DA_0588:
		cmps("strange places");
		if(!(gflags[01D6] == true)) goto labelFunc04DA_05BF;
		UcMessage("\"Thou knowest this one...\" ~\"Wouldst thou like to hear it again?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc04DA_05B1;
		UcMessage("\"I am cheered in that thou dost like it...\"");
		UcSay;
		Func09B0(0x0001);
		goto labelFunc04DA_05BC;
	labelFunc04DA_05B1:
		UcMessage("\"Perhaps I could find another song for thee...\"");
		UcSay;
		UI_add_answer_0C("song");
	labelFunc04DA_05BC:
		goto labelFunc04DA_05C9;
	labelFunc04DA_05BF:
		UcMessage("\"Listen carefully...\"");
		UcSay;
		Func09B0(0x0001);
	labelFunc04DA_05C9:
		UI_remove_answer_0D("strange places");
	labelFunc04DA_05D0:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell, gleeman!@", 0x0000);
		Func097F(0xFFD9, "@May thy path be smooth!@", 0x0005);
		goto labelFunc04DA_05FA;
	labelFunc04DA_05F7:
		goto labelFunc04DA_00E4;
	labelFunc04DA_05FA:
		end_conv();
	labelFunc04DA_05FB:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04DB 0x4DB (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_item_flag_A3(0xFFAF, 0x001C);
	if(!(event == 0x0009)) goto labelFunc04DB_00FF;
	UI_show_npc_face0_05(0xFFAF, 0x0000);
	if(!(var0000 == true)) goto labelFunc04DB_0044;
	UcMessage("\"Do not interfere with me, Avatar!\" ~\"I am the MageLord now...");
	UcSay;
	UcMessage("\"Thou dost know that Filbercio is lower than swine...\" ~\"He doth deserve to be tortured for all the ill that he hath done.\"");
	UcSay;
	UI_show_npc_face1_06(0xFFEE, 0x0000);
	UcMessage("\"Help me, Please! I beseech thee...\" *\"I cannot survive much more of this...\" *\"Uunnggghhh!\"");
	UcSay;
	UI_remove_npc_face1_08();
	goto labelFunc04DB_005E;
	labelFunc04DB_0044:
		UcMessage("\"Do not meddle in that which thou dost not understand, hero!\" ~\"I am the MageLord, and this man is evil.\"");
		UcSay;
		UcMessage("\"He hath destroyed the lives of many.\" ~\"He doth deserve to be tortured for all the ill that he hath done.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFEE, 0x0000);
		UcMessage("\"Help me, Please! I beseech thee... It is he who is evil, not I.\" *\"I cannot survive much more of this torture...\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc04DB_005E:
		UI_show_npc_face0_05(0xFFAF, 0x0000);
		UcMessage("Ha, ha, ha, ha, ha!");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_schedule_type_25(0xFF25, 0x000A);
		var0001 = UI_get_object_position_20(0xFF25);
		UI_sprite_effect_68(0x0004, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_get_object_position_20(0xFF24);
		UI_sprite_effect_68(0x0004, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
		Func097F(0xFF25, "@Ha, ha, ha!@", 0x0000);
		Func097F(0xFF24, "@Have mercy!@", 0x0000);
		UI_remove_npc_4C(0xFF25);
		UI_remove_npc_4C(0xFF24);
		UI_remove_item_84(item);
		abrt();
	labelFunc04DB_00FF:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func04DE 0x4DE (var var0000)
{
	if(!((event == 0x0007) && UI_get_item_flag_A3(0xFF22, 0x001D))) goto labelFunc04DE_00A6;
	UI_clear_item_flag_A5(0xFF22, 0x001D);
	UI_reduce_health_87(0xFF22, 0x0032, 0x0000);
	if(!UI_get_item_flag_A3(0xFF58, 0x0006)) goto labelFunc04DE_0044;
	UI_set_schedule_type_25(0xFF58, 0x001F);
	goto labelFunc04DE_009A;
	labelFunc04DE_0044:
		UI_set_new_schedules_B6(0xFF58, [0x0000, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x001A, 0x000C, 0x001A, 0x0004], [0x09A7, 0x0778, 0x08C7, 0x0714, 0x099F, 0x078F, 0x08BE, 0x0707, 0x08B6, 0x070C]);
		UI_set_schedule_type_25(0xFF58, 0x0003);
	labelFunc04DE_009A:
		Func097F(0xFF58, "@I am saved!@", 0x0000);
	labelFunc04DE_00A6:
		return;
}
// externs
extern Func0809 0x809 ();

Func04E4 0x4E4 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04E4_000F;
	Func0809();
	abrt();
	labelFunc04E4_000F:
		return;
}
// externs
extern Func0809 0x809 ();

Func04E5 0x4E5 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04E5_000F;
	Func0809();
	abrt();
	labelFunc04E5_000F:
		return;
}
// externs
extern Func0809 0x809 ();

Func04E6 0x4E6 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04E6_000F;
	Func0809();
	abrt();
	labelFunc04E6_000F:
		return;
}
// externs
extern Func0809 0x809 ();

Func04E7 0x4E7 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04E7_000F;
	Func0809();
	abrt();
	labelFunc04E7_000F:
		return;
}
// externs
extern Func0809 0x809 ();

Func04E8 0x4E8 (var var0000)
{
	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc04E8_000F;
	Func0809();
	abrt();
	labelFunc04E8_000F:
		return;
}
Func0506 0x506 (var var0000)
{
	UI_show_npc_face0_05(0xFEFA, 0x0000);
	UcMessage("\"Avatar, when next we meet I shall wear thine eyeballs for earrings!\"");
	UcSay;
	return;
}
Func0507 0x507 (var var0000)
{
	UI_show_npc_face0_05(0xFEF9, 0x0000);
	UcMessage("\"Avatar, when our paths cross once more I shall chop thee into little pieces and feed them to the dogs!\"");
	UcSay;
	return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0924 0x924 (var var0000, var var0001);

Func0510 0x510 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0008)) goto labelFunc0510_0010;
	UI_set_polymorph_B3(item, 0x01F5);
	labelFunc0510_0010:
		if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc0510_0040;
		UI_set_schedule_type_25(0xFEF0, 0x000F);
		var0000 = UI_execute_usecode_array_01(0xFEF0, [0x23, 0x6C, 0x6D, 0x52, "@To serve thee!@"]);
	labelFunc0510_0040:
		if(!((event == 0x0002) && ((gflags[0007] == false) && (gflags[0254] == false)))) goto labelFunc0510_0088;
		gflags[0254] = true;
		UI_move_object_4B(0xFEF0, [0x08AF, 0x02C6, 0x0000]);
		UI_si_path_run_usecode_C1(0xFEF0, [0x08A2, 0x02C6, 0x0000], 0x000A, 0xFEF0, 0x0510, true);
	labelFunc0510_0088:
		if(!((event == 0x0002) && gflags[0007])) goto labelFunc0510_00B5;
		gflags[0007] = false;
		UI_si_path_run_usecode_C1(0xFEF0, [0x08B2, 0x02C8, 0x0000], 0x000B, 0xFEF0, 0x0510, true);
	labelFunc0510_00B5:
		if(!(event == 0x000A)) goto labelFunc0510_0101;
		UI_show_npc_face0_05(0xFEEF, 0x0000);
		UcMessage("\"To meet at last the false hero! To serve my master and to avenge the death of many of my people thou didst slay in ancient times.\" *\"To see thy bones with thy skin burned from thy body! To smell thy flesh as it is eaten away by fire and flame!\" *\"To avenge and to serve my master! To thy death, false hero!\"");
		UcSay;
		UI_remove_npc_face1_08();
		gflags[0007] = true;
		Func097F(0xFEF0, "@To kill thee!@", 0x0000);
		Func097F(0xFE9C, "@Stop!@", 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0510], 0x0002);
		abrt();
	labelFunc0510_0101:
		if(!((event == 0x000B) || (event == 0x000E))) goto labelFunc0510_0158;
		var0001 = UI_find_nearby_41(item, 0x0314, 0x0028, 0x0000);
		enum();
	labelFunc0510_0121:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0510_014C);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x0091)) goto labelFunc0510_0149;
		Func0924(var0004, 0xFE99);
	labelFunc0510_0149:
		goto labelFunc0510_0121;
	labelFunc0510_014C:
		UI_remove_npc_4C(0xFEF0);
		gflags[0257] = true;
		abrt();
	labelFunc0510_0158:
		return;
}
// externs
extern Func09AA 0x9AA ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func09AD 0x9AD (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0526 0x526 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	if(!(event == 0x0001)) goto labelFunc0526_03D3;
	labelFunc0526_0008:
		Func09AA();
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Why hast thou disturbed my slumber?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Back, creature of the undead! Thou art a thing of evil!\"");
		UcSay;
		var0000 = UI_get_item_flag_A3(Iolo, 0x0006);
		var0001 = UI_get_item_flag_A3(Shamino, 0x0006);
		var0002 = UI_get_item_flag_A3(Dupre, 0x0006);
		var0003 = Func097D(0xFE9B, 0x0001, 0x00E7, 0xFE99, 0xFE99);
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And thou art the cattle upon which I prey!\" *\"Who sent thee to destroy Vasculio? Was it those rotting worms of Moonshade?\" *\"I know it was! Soon I shall have my vengeance for what they have done to me!\" *\"Who sent thee? Filbercio?! Mortegro?! Gustacio?! Torrissio?!\"");
		UcSay;
		UI_add_answer_0C(["Filbercio", "Mortegro", "Gustacio", "Torrissio", "vengeance"]);
	labelFunc0526_0088:
		UcAsk;
		cmps("bye");
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Foolish mortal! The time hath come to relieve thee of the burden of thy life for it is also my time to feed!\"");
		UcSay;
		Func09AD(0xFEDA);
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
	labelFunc0526_00BC:
		cmps("Filbercio");
		UI_remove_answer_0D("Mortegro");
		UI_remove_answer_0D("Gustacio");
		UI_remove_answer_0D("Torrissio");
		UI_remove_answer_0D("Filbercio");
		UcMessage("\"Do not mention the wretched name of Filbercio in my presence! He is the one who sentenced me to die!\" *\"If that swine ever comes near me, I assure thee he will pay, and pay dearly.\"");
		UcSay;
		var0004 = true;
	labelFunc0526_00E8:
		cmps("Mortegro");
		UI_remove_answer_0D("Filbercio");
		UI_remove_answer_0D("Gustacio");
		UI_remove_answer_0D("Torrissio");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"That despicable interloper Mortegro interfered with mine experiments, and betrayed me to the Council of Mages!\"");
		UcSay;
		var0005 = true;
	labelFunc0526_0114:
		cmps("Gustacio");
		UI_remove_answer_0D("Filbercio");
		UI_remove_answer_0D("Torrissio");
		UI_remove_answer_0D("Gustacio");
		UI_remove_answer_0D("Mortegro");
		UcMessage("\"I always hated that insufferable Gustacio! Always flaunting his influence, willing to betray any ideal to preserve his false sense of dignity!\"");
		UcSay;
		var0006 = true;
	labelFunc0526_0140:
		cmps("Torrissio");
		UI_remove_answer_0D("Filbercio");
		UI_remove_answer_0D("Gustacio");
		UI_remove_answer_0D("Mortegro");
		UI_remove_answer_0D("Torrissio");
		UcMessage("\"Ha! He is the most despised one of all! He broke our alliance and betrayed me to the Council of Mages!\"");
		UcSay;
		var0007 = true;
	labelFunc0526_016C:
		if(!(var0007 || (var0006 || (var0005 || var0004)))) goto labelFunc0526_0192;
		UcMessage("\"Bah! They concern me not!\"");
		UcSay;
		var0007 = false;
		var0006 = false;
		var0005 = false;
		var0004 = false;
	labelFunc0526_0192:
		cmps("vengeance");
		UI_remove_answer_0D("vengeance");
		UI_add_answer_0C("bye");
		if(!var0003) goto labelFunc0526_02A3;
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Ah! But thou dost have the Magebane! I will make thee a deal then, Avatar. In exchange for thy blue sword I shall teach thee my greatest spell, one that can dispatch any foe. Dost thou agree?\"");
		UcSay;
		if(!var0000) goto labelFunc0526_01D4;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Avatar, do not trust him!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_01D4:
		if(!var0001) goto labelFunc0526_01EC;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Do not bargain with this devil, Avatar!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_01EC:
		if(!var0002) goto labelFunc0526_0204;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Avatar, thou must refuse!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_0204:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Avatar, ignore the whimperings of thy companions! I will trade thee thy sword for a scroll that can let thee strike men dead! What sayest thou to the bargain?\"");
		UcSay;
		var0008 = Func0955();
		if(!var0008) goto labelFunc0526_027F;
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"I knew thou couldst not resist a chance at such power!\" *\"Take this scroll. It will vanquish any foe who threatens thee.\"");
		UcSay;
		var0009 = Func099B(0xFE9C, 0x0001, 0x02CB, 0x0041, 0xFE99, 0x0000, true);
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Fool! Now I have the weapon that thou couldst have slain me with! Thou hast sealed thy fate for no mere mortal can defeat me! Prepare to die, foolish mortal!\"");
		UcSay;
		var0009 = UI_remove_party_items_34(0x0001, 0x00E7, 0xFE99, 0xFE99, 0x0000);
		Func09AD(0xFEDA);
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
		goto labelFunc0526_02A0;
	labelFunc0526_027F:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Then thou dost leave me no choice!\"");
		UcSay;
		Func09AD(0xFEDA);
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
	labelFunc0526_02A0:
		goto labelFunc0526_03BC;
	labelFunc0526_02A3:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"Thou hast sealed thy fate for no mere mortal can defeat me! Prepare for thy death!\"");
		UcSay;
		if(!(var0000 || (var0001 || var0002))) goto labelFunc0526_03BC;
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"But I can be merciful. I will spare thee, Avatar, if thou wilt give me one of thy companions. I hunger for fresh blood. Dost thou accept mine offer?\"");
		UcSay;
		if(!var0000) goto labelFunc0526_02E5;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"The Avatar will not accept thine offer, foul fiend!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_02E5:
		if(!var0001) goto labelFunc0526_02FD;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Thou art wasting thy fetid breath making the Avatar such an offer!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_02FD:
		if(!var0002) goto labelFunc0526_0315;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"Thou wilt not accept this ghoul's offer, wilt thou, Avatar?\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_0315:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"So, Avatar, wilt thou listen to the whimperings of thy companions, or trade their life for thine own?\"");
		UcSay;
		UcMessage("\"True, they do not compare to thee, but I am not too selective in my tastes. One flesh is as good as another when one hungers.\"");
		UcSay;
		var000A = Func0955();
		if(!var000A) goto labelFunc0526_039B;
		if(!var0000) goto labelFunc0526_034B;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"Well, I certainly do not intend to go along with this at all!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_034B:
		if(!var0001) goto labelFunc0526_0363;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"Avatar, how couldst thou?! Thou canst forget all about this idea!\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc0526_0363:
		if(!var0002) goto labelFunc0526_0377;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"This is not funny in the least, Avatar.\"");
		UcSay;
	labelFunc0526_0377:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"A pity! Then what I do not receive willingly, I will have to take by force!\"");
		UcSay;
		Func09AD(0xFEDA);
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
		goto labelFunc0526_03BC;
	labelFunc0526_039B:
		UI_show_npc_face0_05(0xFEF8, 0x0000);
		UcMessage("\"A pity! Then what I do not receive willingly, I will have to take by force!\"");
		UcSay;
		Func09AD(0xFEDA);
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
	labelFunc0526_03BC:
		Func09AD(0xFEDA);
		Func097F(0xFEDA, "@Enjoy thy death!@", 0x0000);
		abrt();
	labelFunc0526_03CF:
		goto labelFunc0526_0088;
	labelFunc0526_03D2:
		end_conv();
	labelFunc0526_03D3:
		if(!(event == 0x0002)) goto labelFunc0526_0518;
		if(!(UI_get_item_shape_18(item) == 0x024C)) goto labelFunc0526_03F6;
		Func097F(0xFEDA, "@Back to the pit!@", 0x0001);
		goto labelFunc0526_0518;
	labelFunc0526_03F6:
		if(!(UI_get_item_shape_18(item) == 0x00F3)) goto labelFunc0526_0433;
		var000B = UI_get_object_position_20(0xFE9C);
		if(!(!gflags[0248])) goto labelFunc0526_0430;
		gflags[0248] = true;
		var000C = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0005, 0x55, 0x0526]);
	labelFunc0526_0430:
		goto labelFunc0526_0518;
	labelFunc0526_0433:
		var000D = UI_get_object_position_20(0xFE9C);
		var000E = UI_find_nearby_41(0xFE9C, 0x00F3, 0x0028, 0x0000);
		if(!var000E) goto labelFunc0526_050C;
		var000B = UI_get_object_position_20(var000E);
		if(!(UI_get_item_frame_1A(var000E) == 0x0000)) goto labelFunc0526_04C5;
		UI_play_sound_effect_16(0x0077);
		UI_obj_sprite_effect_91(var000E, 0x003D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var000C = UI_execute_usecode_array_01(var000E, [0x46, 0x0003, 0x27, 0x0002, 0x46, 0x0001]);
		var000C = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0526], 0x0012);
		abrt();
	labelFunc0526_04C5:
		if(!(UI_get_item_frame_1A(var000E) == 0x0001)) goto labelFunc0526_0509;
		UI_play_sound_effect_16(0x002A);
		var000B[0x0002] = (var000B[0x0002] + 0x0002);
		UI_move_object_4B(0xFEDA, var000B);
		var000C = UI_execute_usecode_array_01(0xFEDA, [0x59, 0x0004]);
		goto labelFunc0526_0008;
	labelFunc0526_0509:
		goto labelFunc0526_0518;
	labelFunc0526_050C:
		Func097F(0xFE9C, "@Spooky place.@", 0x0001);
	labelFunc0526_0518:
		return;
}
Func0600 0x600 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = (UI_get_item_quality_1C(item) - 0x0001);
	var0001 = UI_set_item_quality_1D(item, var0000);
	if(!(var0000 == 0x0000)) goto labelFunc0600_008D;
	UI_halt_scheduled_71(item);
	var0002 = UI_get_item_shape_18(item);
	if(!(var0002 == 0x0152)) goto labelFunc0600_0040;
	UI_set_item_shape_14(item, 0x03E5);
	labelFunc0600_0040:
		if(!(var0002 == 0x02BD)) goto labelFunc0600_005D;
		UI_set_item_shape_14(item, 0x0253);
		var0001 = UI_set_item_quality_1D(item, 0x00FF);
	labelFunc0600_005D:
		if(!(var0002 == 0x01B3)) goto labelFunc0600_0083;
		var0003 = UI_get_item_frame_1A(item);
		UI_set_item_shape_14(item, 0x01E1);
		UI_set_item_frame_1B(item, (var0003 + 0x0002));
	labelFunc0600_0083:
		UI_play_sound_effect_16(0x0041);
		goto labelFunc0600_00A0;
	labelFunc0600_008D:
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x0600], 0x0032);
	labelFunc0600_00A0:
		return;
}
// externs
extern Func089F 0x89F ();
extern Func089E 0x89E ();

Func0601 0x601 (var var0000)
{
	var var0001;

	if(!(event == 0x0002)) goto labelFunc0601_003D;
	if(!UI_in_gump_mode_9B()) goto labelFunc0601_0013;
	UI_close_gumps_98();
	labelFunc0601_0013:
		var0000 = UI_get_barge_6D(0xFE9C);
		var0000 = UI_get_object_position_20(var0000);
		if(!(var0000[0x0003] > 0x0001)) goto labelFunc0601_003A;
		Func089F();
		goto labelFunc0601_003D;
	labelFunc0601_003A:
		Func089E();
	labelFunc0601_003D:
		return;
}
// externs
extern Func095D 0x95D (var var0000);
extern Func0883 0x883 ();
extern Func0882 0x882 ();

Func0602 0x602 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x00C9)) goto labelFunc0602_008E;
	if(!(UI_get_item_frame_1A(item) == 0x0007)) goto labelFunc0602_008E;
	if(!(gflags[02EB] && gflags[02EC])) goto labelFunc0602_008B;
	Func095D(0x0064);
	UI_play_sound_effect_16(0x0043);
	UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	gflags[02EA] = true;
	var0001 = UI_find_nearby_41(item, 0x00C8, 0x000A, 0x0010);
	UI_remove_item_84(var0001);
	var0002 = UI_find_nearby_41(item, 0x037F, 0x000A, 0x0000);
	UI_remove_item_84(var0002);
	Func0883();
	goto labelFunc0602_008E;
	labelFunc0602_008B:
		Func0882();
	labelFunc0602_008E:
		if(!(var0000 == 0x00CA)) goto labelFunc0602_0112;
		if(!(UI_get_item_frame_1A(item) == 0x0007)) goto labelFunc0602_010F;
		if(!(gflags[02EC] && (!gflags[02EA]))) goto labelFunc0602_010C;
		Func095D(0x0064);
		gflags[02EB] = true;
		UI_play_sound_effect_16(0x0043);
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_find_nearby_41(item, 0x00C8, 0x000A, 0x0010);
		UI_remove_item_84(var0001);
		var0002 = UI_find_nearby_41(item, 0x037F, 0x000A, 0x0000);
		UI_remove_item_84(var0002);
	labelFunc0602_010C:
		goto labelFunc0602_0112;
	labelFunc0602_010F:
		Func0882();
	labelFunc0602_0112:
		if(!(var0000 == 0x00CB)) goto labelFunc0602_0197;
		if(!(UI_get_item_frame_1A(item) == 0x0009)) goto labelFunc0602_0194;
		if(!((!gflags[02EB]) && (!gflags[02EA]))) goto labelFunc0602_0191;
		Func095D(0x0064);
		gflags[02EC] = true;
		UI_play_sound_effect_16(0x0043);
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_find_nearby_41(item, 0x00C8, 0x000A, 0x0010);
		UI_remove_item_84(var0001);
		var0002 = UI_find_nearby_41(item, 0x037F, 0x000A, 0x0000);
		UI_remove_item_84(var0002);
	labelFunc0602_0191:
		goto labelFunc0602_0197;
	labelFunc0602_0194:
		Func0882();
	labelFunc0602_0197:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0603 0x603 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0002)) goto labelFunc0603_0132;
	UI_close_gumps_98();
	var0000 = UI_find_nearby_41(0xFE9C, 0x03BE, 0x0028, 0x0000);
	if(!var0000) goto labelFunc0603_0132;
	var0001 = UI_find_nearby_41(0xFE9C, 0x02D8, 0x000A, 0x0000);
	if(!var0001) goto labelFunc0603_0132;
	enum();
	labelFunc0603_003F:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0603_0092);
		if(!(UI_get_item_frame_1A(var0004) == 0x0000)) goto labelFunc0603_008F;
		var0005 = UI_get_object_position_20(var0004);
		UI_play_sound_effect_16(0x0021);
		UI_sprite_effect_68(0x001E, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0004);
	labelFunc0603_008F:
		goto labelFunc0603_003F;
	labelFunc0603_0092:
		var0006 = Func097D(0xFE9B, 0x0001, 0x02C3, 0x007C, 0xFE99);
		if(!var0006) goto labelFunc0603_00C6;
		var0007 = UI_remove_party_items_34(0x0001, 0x02C3, 0x007C, 0xFE99, 0x0000);
		goto labelFunc0603_0132;
	labelFunc0603_00C6:
		var0008 = UI_find_nearby_41(Func09A0(0x0000, 0x0001), 0x02C3, 0x001E, 0x0000);
		enum();
	labelFunc0603_00E0:
		for (var000B in var0008 with var0009 to var000A atend labelFunc0603_0132);
		var000C = UI_get_item_quality_1C(var000B);
		if(!(var000C == 0x007C)) goto labelFunc0603_012F;
		var000D = UI_get_object_position_20(var000B);
		UI_sprite_effect_68(0x0015, var000D[0x0001], var000D[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var000B);
	labelFunc0603_012F:
		goto labelFunc0603_00E0;
	labelFunc0603_0132:
		return;
}
Func0605 0x605 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_find_nearby_41(item, 0x01B2, 0x0050, 0x0000);
	enum();
	labelFunc0605_0012:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0605_00C3);
		var0004 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0004) goto labelFunc0605_00C0;
		if(!(UI_get_item_quality_1C(var0004) == 0x00D2)) goto labelFunc0605_00C0;
		var0005 = UI_get_object_position_20(var0003);
		UI_remove_item_84(var0003);
		if(!(!gflags[02FE])) goto labelFunc0605_007F;
		var0006 = [(var0005[0x0001] + 0x0008), var0005[0x0002], var0005[0x0003]];
		gflags[02FE] = true;
		goto labelFunc0605_009F;
	labelFunc0605_007F:
		var0006 = [(var0005[0x0001] - 0x0008), var0005[0x0002], var0005[0x0003]];
		gflags[02FE] = false;
	labelFunc0605_009F:
		var0007 = UI_create_new_object_2C(0x01B2);
		if(!var0007) goto labelFunc0605_00C0;
		UI_play_sound_effect_16(0x0069);
		var0008 = UI_update_last_created_2F(var0006);
	labelFunc0605_00C0:
		goto labelFunc0605_0012;
	labelFunc0605_00C3:
		return;
}
Func0606 0x606 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_object_position_20(item);
	var0001 = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0002 = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	var0001 = (var0001 - 0x0003);
	var0002 = (var0002 - 0x0004);
	UI_sprite_effect_68(0x0009, var0001, var0002, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0030);
	return;
}
Func0607 0x607 (var var0000)
{
	var var0001;

	var0000 = (UI_get_lift_50(item) + 0x0001);
	UI_set_lift_51(item, var0000);
	return;
}
Func0609 0x609 (var var0000)
{
	var var0001;

	var0000 = (UI_get_lift_50(item) - 0x0001);
	UI_set_lift_51(item, var0000);
	return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func060A 0x60A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = [0x06A7, 0x0BC5, 0x0000];
	var0001 = UI_find_nearby_41(item, 0x032C, 0x0005, 0x0000);
	enum();
	labelFunc060A_0021:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc060A_0078);
		var0005 = UI_get_item_frame_1A(var0004);
		if(!(var0005 == 0x0001)) goto labelFunc060A_004B;
		UI_set_item_frame_1B(var0004, 0x0000);
		abrt();
	labelFunc060A_004B:
		if(!(var0005 == 0x0000)) goto labelFunc060A_0075;
		Func090D(item, [0x0001, 0x0000], [0x0000, 0x0001], Dupre, 0x060A, item, 0x000B);
	labelFunc060A_0075:
		goto labelFunc060A_0021;
	labelFunc060A_0078:
		if(!(event == 0x000B)) goto labelFunc060A_00F3;
		UI_set_item_frame_1B(var0001, 0x0001);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9B, var0000);
		var0006 = UI_get_party_list_2B();
		enum();
	labelFunc060A_00A9:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc060A_00CB);
		var000A = UI_execute_usecode_array_01(var0009, [0x23, 0x59, 0x0000]);
		goto labelFunc060A_00A9;
	labelFunc060A_00CB:
		gflags[0314] = false;
		var000B = Func09A0(0x0000, 0x0001);
		var000A = UI_delayed_execute_usecode_array_02(var000B, [0x23, 0x55, 0x060D], 0x0001);
		abrt();
	labelFunc060A_00F3:
		return;
}
// externs
extern Func08E6 0x8E6 ();

Func060B 0x60B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;
	var var0025;
	var var0026;

	var0000 = false;
	var0001 = false;
	var0002 = false;
	var0003 = false;
	var0004 = false;
	var0005 = false;
	var0006 = false;
	var0007 = false;
	var0008 = false;
	var0009 = false;
	var000A = false;
	var000B = false;
	var000C = false;
	var000D = false;
	var000E = false;
	var000F = UI_get_item_frame_1A(item);
	var0010 = UI_get_item_quality_1C(item);
	var0011 = UI_find_nearby_41(item, 0x0313, 0x000A, 0x00B0);
	if(!(var0010 == 0x0001)) goto labelFunc060B_0155;
	enum();
	labelFunc060B_0068:
		for (var0014 in var0011 with var0012 to var0013 atend labelFunc060B_00DE);
		var0015 = UI_get_item_quality_1C(var0014);
		var0016 = UI_get_item_frame_1A(var0014);
		if(!(var0015 == 0x00DD)) goto labelFunc060B_00A3;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_00A3;
		var0000 = true;
	labelFunc060B_00A3:
		if(!(var0015 == 0x00DE)) goto labelFunc060B_00BF;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_00BF;
		var0001 = true;
	labelFunc060B_00BF:
		if(!(var0015 == 0x00DF)) goto labelFunc060B_00DB;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_00DB;
		var0002 = true;
	labelFunc060B_00DB:
		goto labelFunc060B_0068;
	labelFunc060B_00DE:
		if(!(var0000 && (var0001 && var0002))) goto labelFunc060B_0152;
		var0017 = UI_find_nearby_41(item, 0x010E, 0x000F, 0x00B0);
		enum();
	labelFunc060B_00FE:
		for (var001A in var0017 with var0018 to var0019 atend labelFunc060B_014F);
		if(!(UI_get_item_quality_1C(var001A) == 0x00F1)) goto labelFunc060B_014C;
		var001B = UI_get_object_position_20(var001A);
		UI_remove_item_84(var001A);
		var001C = UI_create_new_object_2C(0x0178);
		if(!var001C) goto labelFunc060B_014C;
		var001D = UI_update_last_created_2F(var001B);
		UI_set_item_frame_1B(var001C, 0x000C);
	labelFunc060B_014C:
		goto labelFunc060B_00FE;
	labelFunc060B_014F:
		goto labelFunc060B_0155;
	labelFunc060B_0152:
		Func08E6();
	labelFunc060B_0155:
		if(!(var0010 == 0x0002)) goto labelFunc060B_028D;
		enum();
	labelFunc060B_0160:
		for (var0014 in var0011 with var001E to var001F atend labelFunc060B_020E);
		var0015 = UI_get_item_quality_1C(var0014);
		var0016 = UI_get_item_frame_1A(var0014);
		if(!(var0015 == 0x00E0)) goto labelFunc060B_019B;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_019B;
		var0003 = true;
	labelFunc060B_019B:
		if(!(var0015 == 0x00E1)) goto labelFunc060B_01B7;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_01B7;
		var0004 = true;
	labelFunc060B_01B7:
		if(!(var0015 == 0x00E2)) goto labelFunc060B_01D3;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_01D3;
		var0005 = true;
	labelFunc060B_01D3:
		if(!(var0015 == 0x00E3)) goto labelFunc060B_01EF;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_01EF;
		var0006 = true;
	labelFunc060B_01EF:
		if(!(var0015 == 0x00E4)) goto labelFunc060B_020B;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_020B;
		var0007 = true;
	labelFunc060B_020B:
		goto labelFunc060B_0160;
	labelFunc060B_020E:
		if(!(var0003 && (var0004 && (var0005 && (var0006 && var0007))))) goto labelFunc060B_028A;
		var0017 = UI_find_nearby_41(item, 0x010E, 0x000F, 0x00B0);
		enum();
	labelFunc060B_0236:
		for (var001A in var0017 with var0020 to var0021 atend labelFunc060B_0287);
		if(!(UI_get_item_quality_1C(var001A) == 0x00F1)) goto labelFunc060B_0284;
		var001B = UI_get_object_position_20(var001A);
		UI_remove_item_84(var001A);
		var001C = UI_create_new_object_2C(0x0178);
		if(!var001C) goto labelFunc060B_0284;
		var001D = UI_update_last_created_2F(var001B);
		UI_set_item_frame_1B(var001C, 0x000C);
	labelFunc060B_0284:
		goto labelFunc060B_0236;
	labelFunc060B_0287:
		goto labelFunc060B_028D;
	labelFunc060B_028A:
		Func08E6();
	labelFunc060B_028D:
		if(!(var0010 == 0x0003)) goto labelFunc060B_0405;
		enum();
	labelFunc060B_0298:
		for (var0014 in var0011 with var0022 to var0023 atend labelFunc060B_037E);
		var0015 = UI_get_item_quality_1C(var0014);
		var0016 = UI_get_item_frame_1A(var0014);
		if(!(var0015 == 0x00E5)) goto labelFunc060B_02D3;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_02D3;
		var0008 = true;
	labelFunc060B_02D3:
		if(!(var0015 == 0x00E6)) goto labelFunc060B_02EF;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_02EF;
		var0009 = true;
	labelFunc060B_02EF:
		if(!(var0015 == 0x00E7)) goto labelFunc060B_030B;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_030B;
		var000A = true;
	labelFunc060B_030B:
		if(!(var0015 == 0x00E8)) goto labelFunc060B_0327;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_0327;
		var000B = true;
	labelFunc060B_0327:
		if(!(var0015 == 0x00E9)) goto labelFunc060B_0343;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_0343;
		var000C = true;
	labelFunc060B_0343:
		if(!(var0015 == 0x00EA)) goto labelFunc060B_035F;
		if(!((var0016 % 0x0002) == 0x0000)) goto labelFunc060B_035F;
		var000D = true;
	labelFunc060B_035F:
		if(!(var0015 == 0x00EB)) goto labelFunc060B_037B;
		if(!((var0016 % 0x0002) == 0x0001)) goto labelFunc060B_037B;
		var000E = true;
	labelFunc060B_037B:
		goto labelFunc060B_0298;
	labelFunc060B_037E:
		if(!(var0008 && (var0009 && (var000A && (var000B && (var000C && (var000D && var000E))))))) goto labelFunc060B_0402;
		var0017 = UI_find_nearby_41(item, 0x010E, 0x000F, 0x00B0);
		enum();
	labelFunc060B_03AE:
		for (var001A in var0017 with var0024 to var0025 atend labelFunc060B_03FF);
		if(!(UI_get_item_quality_1C(var001A) == 0x00F1)) goto labelFunc060B_03FC;
		var001B = UI_get_object_position_20(var001A);
		UI_remove_item_84(var001A);
		var001C = UI_create_new_object_2C(0x0178);
		if(!var001C) goto labelFunc060B_03FC;
		var001D = UI_update_last_created_2F(var001B);
		UI_set_item_frame_1B(var001C, 0x000C);
	labelFunc060B_03FC:
		goto labelFunc060B_03AE;
	labelFunc060B_03FF:
		goto labelFunc060B_0405;
	labelFunc060B_0402:
		Func08E6();
	labelFunc060B_0405:
		return;
}
// externs
extern Func08F6 0x8F6 ();
extern var Func0994 0x994 ();
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func060C 0x60C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = false;
	Func08F6();
	var0001 = Func0994();
	UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	UI_clear_item_flag_A5(0xFE9C, 0x0025);
	var0002 = UI_get_party_list2_AA();
	var0002 = [0xFE9C, var0002];
	var0003 = [0x0AA7, 0x0AF3, 0x0000];
	var0004 = [0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001];
	var0005 = [Dupre, Dupre, Dupre, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000];
	var0006 = 0x0001;
	enum();
	labelFunc060C_008F:
		for (var0009 in var0002 with var0007 to var0008 atend labelFunc060C_01C5);
		UI_halt_scheduled_71(var0009);
		UI_clear_item_say_4E(var0009);
		if(!(!UI_get_item_flag_A3(var0009, 0x001E))) goto labelFunc060C_00C0;
		UI_set_schedule_type_25(var0009, 0x001F);
	labelFunc060C_00C0:
		UI_set_temperature_BA(var0009, 0x0000);
		UI_clear_item_flag_A5(var0009, 0x0001);
		UI_clear_item_flag_A5(var0009, 0x0002);
		UI_clear_item_flag_A5(var0009, 0x0003);
		UI_clear_item_flag_A5(var0009, 0x0004);
		UI_clear_item_flag_A5(var0009, 0x0005);
		UI_clear_item_flag_A5(var0009, 0x0007);
		UI_clear_item_flag_A5(var0009, 0x0008);
		UI_clear_item_flag_A5(var0009, 0x0010);
		if(!(Func095C(var0009, 0x0000) > Func095C(var0009, 0x0003))) goto labelFunc060C_0152;
		var000A = (Func095C(var0009, 0x0000) - Func095C(var0009, 0x0003));
		Func095E(var0009, 0x0003, var000A);
	labelFunc060C_0152:
		var000A = Func095C(var0009, 0x0009);
		var000A = (0x001F - var000A);
		Func095E(var0009, 0x0009, var000A);
		var000A = [(var0003[0x0001] + var0004[var0006]), (var0003[0x0002] + var0005[var0006]), var0003[0x0003]];
		UI_move_object_4B(var0009, var000A);
		var000A = UI_execute_usecode_array_01(var0009, [0x61, 0x59, 0x0002]);
		var0006 = (var0006 + 0x0001);
		goto labelFunc060C_008F;
	labelFunc060C_01C5:
		var000B = Func09A0(0x0000, 0x0001);
		var000C = UI_find_nearby_41(var000B, 0x03B2, 0x003C, 0x0000);
		if(!var000C) goto labelFunc060C_0284;
		enum();
	labelFunc060C_01EB:
		for (var000F in var000C with var000D to var000E atend labelFunc060C_0284);
		var0010 = [0x0AA7, 0x0AEF, 0x0000];
		UI_move_object_4B(var000F, var0010);
		UI_clear_item_flag_A5(var000F, 0x0001);
		UI_clear_item_flag_A5(var000F, 0x0002);
		UI_clear_item_flag_A5(var000F, 0x0003);
		UI_clear_item_flag_A5(var000F, 0x0004);
		UI_clear_item_flag_A5(var000F, 0x0005);
		UI_clear_item_flag_A5(var000F, 0x0007);
		UI_clear_item_flag_A5(var000F, 0x0008);
		UI_clear_item_flag_A5(var000F, 0x0010);
		UI_set_schedule_type_25(var000F, 0x0003);
		var000A = UI_execute_usecode_array_01(var000F, [0x59, 0x0004, 0x61, 0x6F, 0x70]);
		goto labelFunc060C_01EB;
	labelFunc060C_0284:
		var000B = Func09A0(0x0000, 0x0003);
		var000A = UI_execute_usecode_array_01(var000B, [0x23, 0x55, 0x060D]);
		return;
}
Func060D 0x60D (var var0000)
{
	UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
	return;
}
Func060E 0x60E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;

	var0000 = false;
	var0001 = false;
	var0002 = false;
	var0003 = false;
	var0004 = false;
	var0005 = false;
	var0006 = false;
	var0007 = false;
	var0008 = false;
	var0009 = false;
	var000A = UI_get_item_frame_1A(item);
	var000B = UI_get_item_quality_1C(item);
	var000C = UI_find_nearby_41(item, 0x0314, 0x0064, 0x00B0);
	if(!(var000B == 0x00ED)) goto labelFunc060E_021B;
	enum();
	labelFunc060E_0054:
		for (var000F in var000C with var000D to var000E atend labelFunc060E_018E);
		var0010 = UI_get_item_quality_1C(var000F);
		var0011 = UI_get_item_frame_1A(var000F);
		if(!(var0010 == 0x00DD)) goto labelFunc060E_008F;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_008F;
		var0000 = true;
	labelFunc060E_008F:
		if(!(var0010 == 0x00DE)) goto labelFunc060E_00AB;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_00AB;
		var0001 = true;
	labelFunc060E_00AB:
		if(!(var0010 == 0x00DF)) goto labelFunc060E_00C7;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_00C7;
		var0002 = true;
	labelFunc060E_00C7:
		if(!(var0010 == 0x00E0)) goto labelFunc060E_00E3;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_00E3;
		var0003 = true;
	labelFunc060E_00E3:
		if(!(var0010 == 0x00E1)) goto labelFunc060E_00FF;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_00FF;
		var0004 = true;
	labelFunc060E_00FF:
		if(!(var0010 == 0x00E2)) goto labelFunc060E_011B;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_011B;
		var0005 = true;
	labelFunc060E_011B:
		if(!(var0010 == 0x00E3)) goto labelFunc060E_0137;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_0137;
		var0006 = true;
	labelFunc060E_0137:
		if(!(var0010 == 0x00E4)) goto labelFunc060E_0153;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_0153;
		var0007 = true;
	labelFunc060E_0153:
		if(!(var0010 == 0x00E5)) goto labelFunc060E_016F;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_016F;
		var0008 = true;
	labelFunc060E_016F:
		if(!(var0010 == 0x00E6)) goto labelFunc060E_018B;
		if(!((var0011 % 0x0002) == 0x0000)) goto labelFunc060E_018B;
		var0009 = true;
	labelFunc060E_018B:
		goto labelFunc060E_0054;
	labelFunc060E_018E:
		if(!(var0000 && (var0001 && (var0002 && (var0003 && (var0004 && (var0005 && (var0006 && (var0007 && (var0008 && var0009)))))))))) goto labelFunc060E_021B;
		var0012 = UI_find_nearby_41(item, 0x010E, 0x0064, 0x00B0);
		enum();
	labelFunc060E_01CA:
		for (var0015 in var0012 with var0013 to var0014 atend labelFunc060E_021B);
		if(!(UI_get_item_quality_1C(var0015) == 0x00F1)) goto labelFunc060E_0218;
		var0016 = UI_get_object_position_20(var0015);
		UI_remove_item_84(var0015);
		var0017 = UI_create_new_object_2C(0x0178);
		if(!var0017) goto labelFunc060E_0218;
		var0018 = UI_update_last_created_2F(var0016);
		UI_set_item_frame_1B(var0017, 0x000C);
	labelFunc060E_0218:
		goto labelFunc060E_01CA;
	labelFunc060E_021B:
		return;
}
Func060F 0x60F (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_object_position_20(item);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0011, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, 0x0001);
	UI_play_sound_effect_16(0x0074);
	UI_UNKNOWN_72();
	var0001 = UI_apply_damage_76(UI_get_npc_prop_28(item, 0x0000), 0x000C, 0x0003, item);
	return;
}
Func0611 0x611 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_item_shape_18(item);
	if(!(var0000 == 0x0203)) goto labelFunc0611_0021;
	var0001 = 0x0366;
	var0002 = 0x0007;
	goto labelFunc0611_002D;
	labelFunc0611_0021:
		var0001 = 0x0203;
		var0002 = 0xFFF9;
	labelFunc0611_002D:
		var0003 = UI_get_object_position_20(item);
		var0003[0x0002] = (var0003[0x0002] + var0002);
		UI_set_item_shape_14(item, var0001);
		if(!UI_set_last_created_2E(item)) goto labelFunc0611_005F;
		var0004 = UI_update_last_created_2F(var0003);
	labelFunc0611_005F:
		return;
}
Func0612 0x612 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	if(!(event == 0x0002)) goto labelFunc0612_0257;
	var0000 = [0x03B1, 0x03F7, 0x03B2, 0x03B3, 0x03CF, 0x03BD, 0x03D2];
	var0001 = [0x001E, 0x000C, 0x0008, 0x0018, 0x001E, 0x0017, 0x001E];
	var0002 = [0x001E, 0x000F, 0x000C, 0x0010, 0x001E, 0x001E, 0x0014];
	var0003 = [0x0014, 0x0019, 0x001C, 0x000A, 0x001E, 0x000D, 0x001E];
	var0004 = [0x001E, 0x000D, 0x000B, 0x0012, 0x001E, 0x0012, 0x001E];
	var0005 = [0x001E, 0x000C, 0x0008, 0x0018, 0x0032, 0x0017, 0x001E];
	var0006 = [0x0A79, 0x0A25, 0x0AB0, 0x0AB0, 0x0BE0, 0x09C6, 0x0120];
	var0007 = [0x0ACC, 0x0BA9, 0x0AE9, 0x0BDE, 0x0B4B, 0x0A45, 0x0BD0];
	var0008 = [0x0010, 0x0015, 0x000B, 0x000B, 0x0004, 0x001D, 0x000A];
	var0009 = 0x0000;
	enum();
	labelFunc0612_0102:
		for (var000C in var0000 with var000A to var000B atend labelFunc0612_0257);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object2_2D(var000C, [var0006[var0009], var0007[var0009], 0x0000]);
		if(!var000D) goto labelFunc0612_024D;
		UI_clear_item_flag_A5(var000D, 0x0012);
		UI_set_alignment_4A(var000D, 0x0000);
		UI_set_schedule_type_25(var000D, var0008[var0009]);
		UI_set_npc_id_BD(var000D, 0x0000);
		var000E = UI_get_npc_prop_28(var000D, 0x0000);
		var000F = (var0001[var0009] - var000E);
		var0010 = UI_set_npc_prop_29(var000D, 0x0000, var000F);
		var000E = UI_get_npc_prop_28(var000D, 0x0001);
		var000F = (var0002[var0009] - var000E);
		var0010 = UI_set_npc_prop_29(var000D, 0x0001, var000F);
		var000E = UI_get_npc_prop_28(var000D, 0x0002);
		var000F = (var0003[var0009] - var000E);
		var0010 = UI_set_npc_prop_29(var000D, 0x0002, var000F);
		var000E = UI_get_npc_prop_28(var000D, 0x0004);
		var000F = (var0004[var0009] - var000E);
		var0010 = UI_set_npc_prop_29(var000D, 0x0004, var000F);
		var000E = UI_get_npc_prop_28(var000D, 0x0003);
		var000F = (var0005[var0009] - var000E);
		var0010 = UI_set_npc_prop_29(var000D, 0x0003, var000F);
		if(!(var000C == 0x03B1)) goto labelFunc0612_024A;
		UI_set_item_flag_A4(var000D, 0x001D);
	labelFunc0612_024A:
		goto labelFunc0612_0254;
	labelFunc0612_024D:
		UI_error_message_40("Error! Silver Seed Installation.");
	labelFunc0612_0254:
		goto labelFunc0612_0102;
	labelFunc0612_0257:
		return;
}
Func0614 0x614 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_speech_track_7E();
	if(!((var0000 >= 0x0000) && (var0000 < 0x0015))) goto labelFunc0614_006C;
	var0001 = UI_get_readied_BE(0xFE9C, 0x0007);
	var0001 = (var0001 & UI_get_readied_BE(0xFE9C, 0x0008));
	var0002 = 0xFED4;
	enum();
	labelFunc0614_003E:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0614_006C);
		if(!((UI_get_item_shape_18(var0005) == 0x0377) && (UI_get_item_frame_1A(var0005) == 0x0002))) goto labelFunc0614_0069;
		var0002 = 0xFED9;
	labelFunc0614_0069:
		goto labelFunc0614_003E;
	labelFunc0614_006C:
		if(!(var0000 == 0x0000)) goto labelFunc0614_008C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Hasten! The Imbalance grows stronger...\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_008C:
		if(!(var0000 == 0x0001)) goto labelFunc0614_00AC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"His mission here is finished. He may now depart for the Void.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_00AC:
		if(!(var0000 == 0x0002)) goto labelFunc0614_00CC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Look into the Moons' Eye.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_00CC:
		if(!(var0000 == 0x0003)) goto labelFunc0614_00EC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Thou hast forgotten something.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_00EC:
		if(!(var0000 == 0x0004)) goto labelFunc0614_010C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Place the Staff, Armour, and Crown on the Altar.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_010C:
		if(!(var0000 == 0x0005)) goto labelFunc0614_012C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Return when thou hast the Three Artifacts of the Great Hierophant: Staff, Armour, and Crown.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_012C:
		if(!(var0000 == 0x0006)) goto labelFunc0614_014C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"The Blackrock Serpents... thou must have the three Serpents of Blackrock.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_014C:
		if(!(var0000 == 0x0007)) goto labelFunc0614_016C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Thou art in Balance, having mastered both Chaos and Order. I declare thee worthy to bear the emblems of the Great Hierophant of Balance.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_016C:
		if(!(var0000 == 0x0008)) goto labelFunc0614_018C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Now place the Eyes of the Serpent before my statue.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_018C:
		if(!(var0000 == 0x0009)) goto labelFunc0614_01AC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Slay me! Slay me with the Serpent Sword, and send my soul back into the Void!\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_01AC:
		if(!(var0000 == 0x000A)) goto labelFunc0614_01CC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Seek the Temple, and within it, the Eye of the Moon.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_01CC:
		if(!(var0000 == 0x000B)) goto labelFunc0614_01EC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Free Gwenno... free her from the ice!\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_01EC:
		if(!(var0000 == 0x000C)) goto labelFunc0614_020C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Time is short. Move on.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_020C:
		if(!(var0000 == 0x000D)) goto labelFunc0614_022C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"The wizard... the key is the dead wizard... thou must vanquish him.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_022C:
		if(!(var0000 == 0x000E)) goto labelFunc0614_024C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"The ashes... place the Ashes on the altar.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_024C:
		if(!(var0000 == 0x000F)) goto labelFunc0614_026C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Bane of Chaos... Chaos Bane... twisted her soul...\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_026C:
		if(!(var0000 == 0x0010)) goto labelFunc0614_028C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"A new Hero has entered this world... am I dreaming, or is he real?\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_028C:
		if(!(var0000 == 0x0011)) goto labelFunc0614_02AC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Who art thou, stranger? Why can't I see thee? Curse this Imbalance which veils my mind...\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_02AC:
		if(!(var0000 == 0x0012)) goto labelFunc0614_02CC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"I know that we have met before, Stranger. Dost thou not recall?\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_02CC:
		if(!(var0000 == 0x0013)) goto labelFunc0614_02EC;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Hero from Another World! Know that it is I, the Great Earth Serpent, whom thou liberated from imprisonment in the days of Exodus the Destroyer. If only thou couldst help me now, Avatar.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_02EC:
		if(!(var0000 == 0x0014)) goto labelFunc0614_030C;
		UI_show_npc_face_03(var0002, 0x0000);
		UcMessage("\"Seek the Horn... the Gwani Horn... seek it in the depths beneath the Skullcrusher Mountains.\"");
		UcSay;
		UI_remove_npc_face_04(var0002);
		exit2();
	labelFunc0614_030C:
		if(!(var0000 == 0x0015)) goto labelFunc0614_0330;
		UI_show_npc_face_03(0xFED8, 0x0000);
		UcMessage("\"Pleasant dreams, Avatar...\"");
		UcSay;
		UcMessage("\"Ha ha hah hah!\"");
		UcSay;
		UI_remove_npc_face_04(0xFED8);
		exit2();
	labelFunc0614_0330:
		if(!(var0000 == 0x0016)) goto labelFunc0614_0354;
		UI_show_npc_face_03(0xFED8, 0x0000);
		UcMessage("\"See how I reward those who fail me!\"");
		UcSay;
		UcMessage("\"Hah hah hah hah!\"");
		UcSay;
		UI_remove_npc_face_04(0xFED8);
		exit2();
	labelFunc0614_0354:
		if(!(var0000 == 0x0017)) goto labelFunc0614_0374;
		UI_show_npc_face_03(0xFF00, 0x0000);
		UcMessage("\"Hah hah hah hah!\"");
		UcSay;
		UI_remove_npc_face_04(0xFF00);
		exit2();
	labelFunc0614_0374:
		if(!(var0000 == 0x0018)) goto labelFunc0614_0394;
		UI_show_npc_face_03(0xFF00, 0x0000);
		UcMessage("\"I have paid my debt to thee, and our bargain is concluded. I shall not aid thee again. Beware the Banes of Chaos, Avatar!\"");
		UcSay;
		UI_remove_npc_face_04(0xFF00);
		exit2();
	labelFunc0614_0394:
		if(!(var0000 == 0x0019)) goto labelFunc0614_03B4;
		UI_show_npc_face_03(0xFEDB, 0x0000);
		UcMessage("\"Avatar! It is I, Dupre! My soul has been fused with the Serpent of Chaos. I am keeping it from attacking thee, but I do not know how much longer I can hold out! Quickly! Thou must go to Sunrise Isle!\"");
		UcSay;
		UI_remove_npc_face_04(0xFEDB);
		exit2();
	labelFunc0614_03B4:
		if(!(var0000 == 0x001A)) goto labelFunc0614_03D4;
		UI_show_npc_face_03(0xFEDA, 0x0000);
		UcMessage("\"Dost thou think that thou canst chain the Serpent of Order within a prison of Balance? Never! Servants of Order, attack!\"");
		UcSay;
		UI_remove_npc_face_04(0xFEDA);
		exit2();
	labelFunc0614_03D4:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099F 0x99F (var var0000, var var0001, var var0002);
extern Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0615 0x615 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_click_on_item_3F();
	if(!(!var0000)) goto labelFunc0615_000F;
	abrt();
	labelFunc0615_000F:
		if(!(!UI_is_npc_3D(var0000))) goto labelFunc0615_001B;
		abrt();
	labelFunc0615_001B:
		if(!(!UI_get_item_flag_A3(var0000, 0x0006))) goto labelFunc0615_002A;
		abrt();
	labelFunc0615_002A:
		if(!(UI_get_npc_prop_28(var0000, 0x0009) > 0x0018)) goto labelFunc0615_00A2;
		var0001 = UI_die_roll_17(0x0001, 0x0005);
		UI_clear_item_say_4E(var0000);
		if(!((var0001 == 0x0001) || (var0001 == 0x0002))) goto labelFunc0615_006D;
		Func097F(var0000, "@No thank thee.@", 0x0000);
	labelFunc0615_006D:
		if(!((var0001 == 0x0003) || (var0001 == 0x0004))) goto labelFunc0615_008B;
		Func097F(var0000, "@I am quite full.@", 0x0000);
	labelFunc0615_008B:
		if(!(var0001 == 0x0005)) goto labelFunc0615_00A1;
		Func097F(var0000, "@I hunger not.@", 0x0000);
	labelFunc0615_00A1:
		abrt();
	labelFunc0615_00A2:
		event = 0x0008;
		var0002 = [0x0004, 0x0006, 0x0002, 0x0005, 0x0006, 0x0006, 0x0001, 0x000C, 0x0018, 0x0010, 0x0018, 0x0018, 0x0004, 0x0008, 0x0010, 0x000A, 0x0002, 0x0003, 0x0002, 0x0001, 0x0004, 0x0003, 0x0001, 0x0018, 0x0003, 0x0001, 0x0009, 0x0002, 0x0014, 0x0008, 0x0006, 0x001F];
		var0003 = Func099F(0x0179, 0xFE99, 0xFE99);
	labelFunc0615_011B:
		if(!var0003) goto labelFunc0615_0153;
		var0004 = var0002[(UI_get_item_frame_1A(var0003) + 0x0001)];
		Func08AD(var0003, var0004, 0x0026, var0000);
		var0003 = Func099F(0x0179, 0xFE99, 0xFE99);
		goto labelFunc0615_011B;
	labelFunc0615_0153:
		var0002 = [0x000F, 0x000C, 0x0008, 0x000E, 0x0014, 0x0004, 0x0004, 0x0004, 0x0004];
		var0003 = Func099F(0x0194, 0xFE99, 0xFE99);
	labelFunc0615_0183:
		if(!var0003) goto labelFunc0615_01BB;
		var0004 = var0002[(UI_get_item_frame_1A(var0003) + 0x0001)];
		Func08AD(var0003, var0004, 0x0026, var0000);
		var0003 = Func099F(0x0194, 0xFE99, 0xFE99);
		goto labelFunc0615_0183;
	labelFunc0615_01BB:
		var0003 = Func099F(0x0268, 0xFE99, 0xFE99);
	labelFunc0615_01CA:
		if(!var0003) goto labelFunc0615_01F1;
		Func08AD(var0003, 0x0001, 0x0026, var0000);
		var0003 = Func099F(0x0268, 0xFE99, 0xFE99);
		goto labelFunc0615_01CA;
	labelFunc0615_01F1:
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@No more food.@", 0x0000);
		if(!Func097D(0xFE9B, 0x0001, 0x034A, 0xFE99, 0x0004)) goto labelFunc0615_0225;
		Func097F(0xFE9C, "@Except for some garlic.@", 0x0011);
	labelFunc0615_0225:
		return;
}
Func0616 0x616 (var var0000)
{
	if(!(event == 0x0002)) goto labelFunc0616_000C;
	gflags[026F] = false;
	labelFunc0616_000C:
		return;
}
Func0618 0x618 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0002) && ((gflags[0007] == false) && ((gflags[0008] == false) && ((gflags[0009] == false) && (gflags[000A] == false)))))) goto labelFunc0618_00B4;
	var0000 = [0x0238, 0x0BCA, 0x0000];
	UI_sprite_effect_68(0x0011, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0028);
	var0001 = UI_create_new_object_2C(0x03FF);
	if(!var0001) goto labelFunc0618_00AF;
	UI_set_item_frame_1B(var0001, 0x0000);
	var0002 = UI_update_last_created_2F(var0000);
	var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x0618], 0x0014);
	labelFunc0618_00AF:
		gflags[0008] = true;
		abrt();
	labelFunc0618_00B4:
		if(!((event == 0x0002) && (gflags[0008] == true))) goto labelFunc0618_015F;
		UI_remove_item_84(item);
		var0000 = [0x0238, 0x0BCA, 0x0000];
		UI_sprite_effect_68(0x0011, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
		var0001 = UI_create_new_object_2C(0x03FF);
		if(!var0001) goto labelFunc0618_0156;
		UI_set_item_frame_1B(var0001, 0x0001);
		var0002 = UI_update_last_created_2F(var0000);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x0618], 0x0014);
	labelFunc0618_0156:
		gflags[0008] = false;
		gflags[0009] = true;
		abrt();
	labelFunc0618_015F:
		if(!((event == 0x0002) && (gflags[0009] == true))) goto labelFunc0618_028B;
		UI_remove_item_84(item);
		UI_sprite_effect_68(0x0011, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0001 = UI_create_new_object_2C(0x03FF);
		if(!var0001) goto labelFunc0618_01E4;
		UI_set_item_frame_1B(var0001, 0x0002);
		var0002 = UI_update_last_created_2F([0x0238, 0x0BCA, 0x0000]);
	labelFunc0618_01E4:
		var0001 = UI_create_new_object_2C(0x03FF);
		if(!var0001) goto labelFunc0618_0211;
		UI_set_item_frame_1B(var0001, 0x0003);
		var0002 = UI_update_last_created_2F([0x0235, 0x0BCC, 0x0005]);
	labelFunc0618_0211:
		var0001 = UI_create_new_object_2C(0x03FF);
		if(!var0001) goto labelFunc0618_023E;
		UI_set_item_frame_1B(var0001, 0x0004);
		var0002 = UI_update_last_created_2F([0x023A, 0x0BC5, 0x0005]);
	labelFunc0618_023E:
		var0001 = UI_create_new_object_2C(0x03FF);
		if(!var0001) goto labelFunc0618_026B;
		UI_set_item_frame_1B(var0001, 0x0005);
		var0002 = UI_update_last_created_2F([0x0233, 0x0BC5, 0x0005]);
	labelFunc0618_026B:
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x0618], 0x0019);
		gflags[0009] = false;
		gflags[000A] = true;
		abrt();
	labelFunc0618_028B:
		if(!((event == 0x0002) && (gflags[000A] == true))) goto labelFunc0618_0391;
		UI_set_weather_53(0x0000);
		UI_item_say_4D(0xFE9C, "@By Lord British's Beard!@");
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"Look at how quickly it has grown! It looks as if it has been here for decades!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x04CF]);
		gflags[000A] = false;
		var0003 = UI_get_npc_prop_28(0xFE9C, 0x0008);
		if(!(var0003 <= 0x0320)) goto labelFunc0618_02FA;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x0320);
		abrt();
	labelFunc0618_02FA:
		if(!(var0003 <= 0x0640)) goto labelFunc0618_0315;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x0640);
		abrt();
	labelFunc0618_0315:
		if(!(var0003 <= 0x0C80)) goto labelFunc0618_0330;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x0C80);
		abrt();
	labelFunc0618_0330:
		if(!(var0003 <= 0x1900)) goto labelFunc0618_034B;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x1900);
		abrt();
	labelFunc0618_034B:
		if(!(var0003 <= 0x3200)) goto labelFunc0618_0366;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x3200);
		abrt();
	labelFunc0618_0366:
		if(!(var0003 <= 0x6400)) goto labelFunc0618_0381;
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0x6400);
		abrt();
	labelFunc0618_0381:
		var0002 = UI_set_npc_prop_29(0xFE9C, 0x0008, 0xC800);
	labelFunc0618_0391:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0955 0x955 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0619 0x619 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = false;
	var0001 = UI_get_npc_id_BC(item);
	if(!(var0001 == 0x000B)) goto labelFunc0619_001A;
	var0000 = true;
	labelFunc0619_001A:
		if(!(event == 0x0002)) goto labelFunc0619_020D;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEC6, 0x0000);
		if(!(!gflags[0310])) goto labelFunc0619_0057;
		UcMessage("\"Well, now, sweet cakes. It's about time ye showed up. I was beginnin' to get tired a waitin'. Me name's Drusilla.");
		UcSay;
		UcMessage("\"Ye aren't what I expected. But who am I to know what a pawn of prophecy looks like?\"");
		UcSay;
		gflags[0310] = true;
		UI_set_npc_id_BD(item, 0x000B);
		goto labelFunc0619_00BF;
	labelFunc0619_0057:
		UcMessage("\"Hey ho! It's good to see ye again! Found yer way out of that there maze, huh? Somethin' tricky, weren't it?\"");
		UcSay;
		if(!Func097D(0xFE9B, 0x0001, 0x03F5, 0xFE99, 0x0000)) goto labelFunc0619_007B;
		UcMessage("\"An' ye got that there fancy helm, too! Good for ye!");
		UcSay;
		UcMessage("\"Never saw any use fer it meself. I kin make me own light... Wit'out mussin' up me hair! Ha!\"");
		UcSay;
		goto labelFunc0619_008A;
	labelFunc0619_007B:
		UcMessage("\"Not that I want ye to think that I'm an ol' busybody, or anythin' like that... But I think ye might want ta go back an' search that there maze, deary.");
		UcSay;
		UcMessage("\"I think ye missed somethin' ye might find real helpful-like.\"");
		UcSay;
		UI_add_answer_0C("something helpful");
	labelFunc0619_008A:
		if(!Func097D(0xFE9B, 0x0001, 0x01C2, 0xFE99, 0x0009)) goto labelFunc0619_00AA;
		UcMessage("\"Looks like ye talked wit' that there kitty person, too. He didn't want ta talk wit' me, hmmph!");
		UcSay;
		UcMessage("\"Never did get on too well wit' cats...\"");
		UcSay;
		goto labelFunc0619_00BF;
	labelFunc0619_00AA:
		UcMessage("\"Ah, deary, I hate ta sound like I'm meddlin'... But ye left somethin' real important back there in that there maze.");
		UcSay;
		UcMessage("\"I think ye might want ta talk wit' that there cat critter. He needs a friend, unless I miss my guess.\"");
		UcSay;
		UI_add_answer_0C(["something important", "cat critter"]);
	labelFunc0619_00BF:
		UI_add_answer_0C(["waiting", "pawn of prophecy", "bye"]);
	labelFunc0619_00CF:
		UcAsk;
		cmps("waiting");
		UI_remove_answer_0D("waiting");
		UcMessage("\"Why else would I be a standin' here, deary? This isn't exactly the hotbed of excitement, iffin ye know what I mean.");
		UcSay;
		UcMessage("\"Ye might say that I'm a part o' yer prophecy... One o' yer guides like.\"");
		UcSay;
		UI_add_answer_0C("guides");
	labelFunc0619_00F0:
		cmps("guides");
		UI_remove_answer_0D("guides");
		UcMessage("\"Well now, deary, ye seem ta need some help, iffin ye don't mind my sayin' so. Ye look a little lost, if ye ask me.");
		UcSay;
		UcMessage("\"So here I am! I kin give ye three hints ta help ye on yer way. So listen well.\"");
		UcSay;
		UI_add_answer_0C("hints");
	labelFunc0619_010E:
		cmps("hints");
		UI_remove_answer_0D("hints");
		UcMessage("\"Got yer attention now, do I? Ha! Thought so...");
		UcSay;
		UcMessage("\"What lies beyond this 'ere gate is a magical-type o' maze, sweet cakes. Now ye listen good to ol' Drusilla, fer only one person kin enter this 'ere maze at a time else all become confused an' die!");
		UcSay;
		UcMessage("\"I'll tell ye straight on that it'd be easier iffin ye turned an went back to that there keep right now. So do ye want yer hints or not?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0619_0146;
		UcMessage("\"Stubborn cuss, aren't ye? All right, heed me well then...");
		UcSay;
		UcMessage("\"Iffin ye find yerself trapped, do not despair lest madness overtake ye. Know that death is the only way any of us will ever win free o' this 'ere world.");
		UcSay;
		UcMessage("\"Keep careful track of yer turnin's, fer ye may pass through a room more than once. An' sometimes ye'll have ta turn back on yer heels afore ye can find yer way.");
		UcSay;
		UcMessage("\"Yer third, an' final, hint is that once ye have found yer path, that section of the maze shall remain clear ta ye forever more. Do not be distracted from yer path.");
		UcSay;
		UcMessage("\"An' now, before I let ye go, deary, I'll warn ye again... Do not take anyone inta that there maze wit' ye. No two see this place the same.\"");
		UcSay;
		goto labelFunc0619_014A;
	labelFunc0619_0146:
		UcMessage("\"Well now, perhaps ye be more wise than ol' Drusilla gave ye credit for. Go back ta the keep. This is no place fer ye.\"");
		UcSay;
	labelFunc0619_014A:
		cmps("pawn of prophecy");
		UI_remove_answer_0D("pawn of prophecy");
		UcMessage("\"Why look so surprised, sweet cakes? Ye can't tell me that this is the first time someone has told ye that ye are marked...");
		UcSay;
		UcMessage("\"Why even those benighted idiots, the Ophidians, knew ta expect ye. So it can't be such a shock ta ye.\"");
		UcSay;
		UI_add_answer_0C("benighted idiots");
	labelFunc0619_0168:
		cmps("benighted idiots");
		UI_remove_answer_0D("benighted idiots");
		UcMessage("\"Well now, perhaps I shouldn't have been so harsh, not in front of ye.");
		UcSay;
		UcMessage("\"Suffice it to say that not all people in this 'ere world are so addled as ta believe that wisdom is found in the hissing o' serpents... especially serpents no one kin see.");
		UcSay;
		UcMessage("\"I follow the Guide, meself, an' it's enough that I be 'ere ta meet ye ta tell ol' Drusilla whose pot is cracked an' whose isn't.\"");
		UcSay;
		UI_add_answer_0C("Guide");
	labelFunc0619_018A:
		cmps("Guide");
		UI_remove_answer_0D("Guide");
		UcMessage("\"Full o' questions, aren't ye? Well now, deary, ol' Drusilla has more ta do than ta stand an' talk philosophy wit' ye. An' ye should be about yer business as well.");
		UcSay;
		UcMessage("\"Those what follow the Guide don't seek no converts. We've enough ta do. Iffin ye finish yer own tasks an' still want ta talk, well now, perhaps there will be time fer that later.\"");
		UcSay;
	labelFunc0619_01A1:
		cmps("something helpful");
		UI_remove_answer_0D("something helpful");
		UcMessage("\"Well now, deary, iffin I told ye what it were I'd jus' take the fun outta it fer ye. So ye go back an' have a look see fer yerself.\"");
		UcSay;
	labelFunc0619_01B4:
		cmps("something important");
		UI_remove_answer_0D("something important");
		UcMessage("\"I can't go a tellin' ye ever'thing, deary. Iffin yer ta be this 'ere pawn of prophecy ye'll jus' have ta figger it out yerself.\"");
		UcSay;
	labelFunc0619_01C7:
		cmps("cat critter");
		UI_remove_answer_0D("cat critter");
		UcMessage("\"I can't see how ye could have missed 'im. Poor thing is scared half ta death... an' hungry too, I'll wager. Ye kin afford to be friendly like to such a pitiful critter.\"");
		UcSay;
	labelFunc0619_01DA:
		cmps("bye");
		UcMessage("\"Mercy! This has taken far longer than I thought! Ye should be on yer way now...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_item_say_4D(0xFE9C, "@Goodbye!@");
		Func097F(item, "@Be off wit' ye!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		goto labelFunc0619_020C;
	labelFunc0619_0209:
		goto labelFunc0619_00CF;
	labelFunc0619_020C:
		end_conv();
	labelFunc0619_020D:
		return;
}
// externs
extern var Func0955 0x955 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func061A 0x61A (var var0000)
{
	var var0001;
	var var0002;

	var0000 = false;
	var0001 = UI_get_npc_id_BC(item);
	if(!(var0001 == 0x000C)) goto labelFunc061A_001A;
	var0000 = true;
	labelFunc061A_001A:
		if(!(event == 0x0002)) goto labelFunc061A_0253;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEC8, 0x0000);
		if(!(!gflags[030F])) goto labelFunc061A_0057;
		UcMessage("\"Didst thy mother never tell thee not to speak with strange women then? Hmmmph!");
		UcSay;
		UcMessage("\"A fine one thou art to be wasting Rieya's time. Thou shouldst watch thy step, my bonny pawn of prophecy, lest I forget the aid that I was meant to give thee.\"");
		UcSay;
		gflags[030F] = true;
		UI_set_npc_id_BD(item, 0x000C);
		goto labelFunc061A_005B;
	labelFunc061A_0057:
		UcMessage("\"Don't tell me that thou hast come back to Rieya looking for more aid! I've helped thee all I may, pawn of prophecy. Thou needs must look elsewhere...\"");
		UcSay;
	labelFunc061A_005B:
		UI_add_answer_0C(["Rieya", "pawn of prophecy", "aid", "bye"]);
	labelFunc061A_006E:
		UcAsk;
		cmps("Rieya");
		UI_remove_answer_0D("Rieya");
		UcMessage("\"Rieya is my name... And I'll thank thee not to smirk so! Thy name is just as strange to me, I assure thee!");
		UcSay;
		UcMessage("\"Thou shouldst mind thy manners, else -- Guide or no -- I'll not aid thee!\"");
		UcSay;
		UI_add_answer_0C("Guide");
	labelFunc061A_008F:
		cmps("Guide");
		UI_remove_answer_0D("Guide");
		UcMessage("\"I shouldn't wonder that thou hadst never heard of the Guide before. Thou art scarcely fit to be the pawn of prophecy. Why clutter up thy mind with other possibilities...");
		UcSay;
		UcMessage("Oh, never mind! Thou wouldst not understand!\"");
		UcSay;
		UI_add_answer_0C(["scarcely fit", "other possibilities"]);
	labelFunc061A_00B3:
		cmps("scarcely fit");
		UI_remove_answer_0D("scarcely fit");
		UcMessage("\"Look at thee! Thou hast no idea what is going on! Thou art as willing to listen to me as to those fools in the keep!");
		UcSay;
		UcMessage("\"How canst thou be so trusting? How hast thou lived so long?\"");
		UcSay;
		UI_add_answer_0C(["What is going on?", "fools in the keep"]);
	labelFunc061A_00D7:
		cmps("What is going on?");
		UI_remove_answer_0D("What is going on?");
		UcMessage("\"What is going on?! Listen to thee! Dunce, there is a war going on!");
		UcSay;
		UcMessage("\"People are killing each other over a difference in philosophies! And thou art parading about as if no one wouldst make thee a target!\"");
		UcSay;
	labelFunc061A_00EE:
		cmps("fools in the keep");
		UI_remove_answer_0D("fools in the keep");
		UcMessage("\"Aye, they're fools. They follow the @wisdom@ of beings they have never seen, and believe that extermination of all opposing philosophies will restore Balance!");
		UcSay;
		UcMessage("\"I tell thee that they are fools! Fools! This world is doomed. They should let it die and move on...");
		UcSay;
		UcMessage("\"Ah well, I can't expect thee to understand. Never mind.\"");
		UcSay;
	labelFunc061A_0109:
		cmps("other possibilities");
		UI_remove_answer_0D("other possibilities");
		UcMessage("\"Not all follow the Teachings of the Serpents, friend. Some believe that it is pointless to hope for Balance on this flawed world.");
		UcSay;
		UcMessage("\"But those in the keep refuse to acknowledge that there are others that follow other paths. Fools!\"");
		UcSay;
	labelFunc061A_0120:
		cmps("pawn of prophecy");
		UI_remove_answer_0D("pawn of prophecy");
		UcMessage("\"The pawn of prophecy is thou, needle head! Thou dost wear the Amulet of Balance, which -- according to those fools in the keep -- makes thee the Champion of Balance.\"");
		UcSay;
		UI_add_answer_0C(["Amulet of Balance", "Champion of Balance"]);
	labelFunc061A_0140:
		cmps("Amulet of Balance");
		UI_remove_answer_0D("Amulet of Balance");
		UcMessage("\"Dost thou not know what that bauble is yet? Are all those Ophidians asleep?! How could they not have told thee?");
		UcSay;
		UcMessage("\"I'll tell thee, this is service above and beyond the call! Oh well, I shall have to do their job for them.");
		UcSay;
		UcMessage("\"The Amulet of Balance once belonged to the Great Hierophant who used it to enforce Balance upon the Ophidians. It is a magical pendant that none but the Champion of Balance may wear, or so it is said.\"");
		UcSay;
		UI_add_answer_0C(["Ophidians", "Great Hierophant"]);
	labelFunc061A_0168:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"Oooh, thine cup is a bit shy of full, isn't it?");
		UcSay;
		UcMessage("\"Ophidians are those who follow the Teachings of the Serpents.\"");
		UcSay;
		UI_add_answer_0C("Teachings of the Serpents");
	labelFunc061A_0186:
		cmps("Teachings of the Serpents");
		UI_remove_answer_0D("Teachings of the Serpents");
		UcMessage("\"I can't believe I am telling thee this! I should send thee back to the keep, I should!");
		UcSay;
		UcMessage("\"The Ophidians worship the Great Earth Serpent, and the Order and Chaos serpents, which supposedly dwell within the Void.");
		UcSay;
		UcMessage("\"And before thou dost ask, I cannot explain the Void to thee. Thou shouldst ask those idiots at the keep.");
		UcSay;
		UcMessage("\"The values of the Ophidians are called the Teachings. Got it?\"");
		UcSay;
	labelFunc061A_01A5:
		cmps("Great Hierophant");
		UI_remove_answer_0D("Great Hierophant");
		UcMessage("\"Who would have thought a pawn of prophecy could be so stupid?!");
		UcSay;
		UcMessage("\"The Ophidians considered the Great Hierophant to be the Voice of the Great Earth Serpent. Whatever he was, he kept them from killilng each other...");
		UcSay;
		UcMessage("\"Until they murdered him that is. THEN they started killing each other. Have to do things right, I guess...\"");
		UcSay;
		UI_add_answer_0C("murdered");
	labelFunc061A_01C7:
		cmps("murdered");
		UI_remove_answer_0D("murdered");
		UcMessage("\"Chaos said Order was responsible. Order said Chaos did it.");
		UcSay;
		UcMessage("\"Who knows? Who cares? They've been trying to destroy each other ever since.\"");
		UcSay;
	labelFunc061A_01DE:
		cmps("Champion of Balance");
		UI_remove_answer_0D("Champion of Balance");
		UcMessage("\"The Champion of Balance was the muscle behind the Great Hierophant. Guess the Great Hierophant couldn't get his hands dirty... Who knows?");
		UcSay;
		UcMessage("\"It was the Champion's job to pound any dissenters of the Teachings into submission. Brute force will do it every time. Guess that explains the lack of brains...\"");
		UcSay;
	labelFunc061A_01F5:
		cmps("aid");
		UI_remove_answer_0D("aid");
		UcMessage("\"I never said that thou needs must like me. I said that I had to aid thee. Dost thou wish to hear it or not?\"");
		UcSay;
		if(!Func0955()) goto labelFunc061A_021D;
		UcMessage("\"Take all the help thou canst get, right? Hmmph!");
		UcSay;
		UcMessage("\"Beyond this gate lies a room that will block thy progress and try to kill thee. In this room thou shalt find three buttons.");
		UcSay;
		UcMessage("\"Press first the middle button, and then the top button. Press the south button last and thou shalt be free.\"");
		UcSay;
		goto labelFunc061A_0222;
	labelFunc061A_021D:
		UcMessage("\"Then why dost thou waste my time?! Go back to those fool Ophidians, where thou dost belong!\"");
		UcSay;
		abrt();
	labelFunc061A_0222:
		cmps("bye");
		UI_remove_npc_face0_07();
		UI_set_schedule_type_25(item, 0x000B);
		Func097F(0xFE9C, "@Good riddance!@", 0x0000);
		Func097F(item, "@Pea brain!@", 0x0002);
		goto labelFunc061A_0252;
	labelFunc061A_024F:
		goto labelFunc061A_006E;
	labelFunc061A_0252:
		end_conv();
	labelFunc061A_0253:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func061B 0x61B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_is_pc_female_6F();
	var0001 = "handsome";
	if(!var0000) goto labelFunc061B_0019;
	var0001 = "beautiful";
	labelFunc061B_0019:
		var0002 = false;
		var0003 = UI_get_npc_id_BC(item);
		if(!(var0003 == 0x000D)) goto labelFunc061B_0033;
		var0002 = true;
	labelFunc061B_0033:
		if(!(event == 0x0002)) goto labelFunc061B_02A2;
		UI_set_schedule_type_25(item, 0x000A);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFEC7, 0x0000);
		if(!(!gflags[0311])) goto labelFunc061B_0072;
		UcMessage("\"Well hello, ");
		UcMessage(var0001);
		UcMessage(". I'm glad I did not give up on thee. Thou art worth the wait, assuredly.\"");
		UcSay;
		gflags[0311] = true;
		UI_set_npc_id_BD(item, 0x000D);
		goto labelFunc061B_007C;
	labelFunc061B_0072:
		UcMessage("\"Nice to see thee again, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc061B_007C:
		UI_add_answer_0C(["Give up on me?", "wait", "bye"]);
	labelFunc061B_008C:
		UcAsk;
		cmps("Give up on me?");
		UI_remove_answer_0D("Give up on me?");
		UcMessage("\"Well, I would not have done that, really. After all, it's not often a girl gets the chance to play a part in prophecy.");
		UcSay;
		UcMessage("\"If I had given up, how would I have been able to help thee?\"");
		UcSay;
		UI_add_answer_0C(["prophecy", "help"]);
	labelFunc061B_00B3:
		cmps("prophecy");
		UI_remove_answer_0D("prophecy");
		UcMessage("\"Thy coming was foretold long ago, ");
		UcMessage(var0001);
		UcMessage("... though thou wert expected much earlier. I fear that the task before thee shall be much more difficult now.\"");
		UcSay;
		UI_add_answer_0C(["foretold", "task"]);
	labelFunc061B_00D9:
		cmps("foretold");
		UI_remove_answer_0D("foretold");
		UcMessage("\"I suppose that the Ophidians learned of it through their Hierophants. We were told by our Guide...");
		UcSay;
		UcMessage("\"I was told to await thee here. And so I have waited... Thou hast been quite tardy, thou knowest, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_add_answer_0C(["Ophidians", "Hierophants", "Guide"]);
	labelFunc061B_0106:
		cmps("Ophidians");
		UI_remove_answer_0D("Ophidians");
		UcMessage("\"Thou dost not know who the Ophidians are? How strange.");
		UcSay;
		UcMessage("\"They are the people that hold the keep. Quite warlike, really. I don't have much to do with them...\"");
		UcSay;
	labelFunc061B_011D:
		cmps("Hierophants");
		UI_remove_answer_0D("Hierophants");
		UcMessage("\"At least I think that is what they are called.");
		UcSay;
		UcMessage("\"The Hierophants are the holy men -- and women -- of the Ophidians. I understand that they are also the political leaders...");
		UcSay;
		UcMessage("\"Personally, I think that anyone possessing that much power is a bad idea.\"");
		UcSay;
	labelFunc061B_0138:
		cmps("Guide");
		UI_remove_answer_0D("Guide");
		UcMessage("\"The Guide is who I follow, ");
		UcMessage(var0001);
		UcMessage(". I would love to stand and tell thee all about it, but thou shouldst really be on thy way... Thou art quite late, thou knowest.\"");
		UcSay;
		UI_add_answer_0C("late");
	labelFunc061B_0158:
		cmps("late");
		UI_remove_answer_0D("late");
		UcMessage("\"The Ophidian's war has gone on for many years now, ");
		UcMessage(var0001);
		UcMessage(". I don't think that Chaos will be able to hold off Order much longer.");
		UcSay;
		UcMessage("\"If thou art going to restore Balance thou wilt have to act quickly.\"");
		UcSay;
	labelFunc061B_0175:
		cmps("task");
		UI_remove_answer_0D("task");
		UcMessage("\"The task of the pawn of prophecy -- or, as the Ophidians call thee, the Champion of Balance -- is to restore Balance to the world.");
		UcSay;
		UcMessage("\"I fear that the tide of battle may have turned so far that even thou canst not pull it back. If Order destroys Chaos, there will be nothing to bring Balance to, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_add_answer_0C("destroys Chaos");
	labelFunc061B_0199:
		cmps("destroys Chaos");
		UI_remove_answer_0D("destroys Chaos");
		UcMessage("\"The Ophidians who follow Order believe that those who follow Chaos are responsible for the murder of one of their holy men. They have sworn to rid the world of Chaos...");
		UcSay;
		UcMessage("\"And now that they have created the automatons, they may succeed.\"");
		UcSay;
		UI_add_answer_0C("automatons");
	labelFunc061B_01B7:
		cmps("automatons");
		UI_remove_answer_0D("automatons");
		UcMessage("\"Thou canst not miss seeing them anywhere near the keep, ");
		UcMessage(var0001);
		UcMessage(". They are the men of metal that does swell the ranks of Order.");
		UcSay;
		UcMessage("\"With the added strength of the automatons, Order shall swiftly overcome Chaos... Thy time to complete thy task grows short, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
	labelFunc061B_01DA:
		cmps("help");
		UI_remove_answer_0D("help");
		UcMessage("\"I have been charged with the task of aiding thee, ");
		UcMessage(var0001);
		UcMessage(". Beyond this gate lies a threat to thee. It is I who must give thee the key to escaping its snare.\"");
		UcSay;
		UI_add_answer_0C("key");
	labelFunc061B_01FA:
		cmps("key");
		UI_remove_answer_0D("key");
		UcMessage("\"Not a physical key, ");
		UcMessage(var0001);
		UcMessage(", but a hint... if thou wilt.");
		UcSay;
		UcMessage("\"Thou shalt come to a room in which thy passage is blocked. To win thy freedom, thou shalt have to know which of the many levers must be moved.");
		UcSay;
		UcMessage("\"Pull every other lever down to break free of the trap.\"");
		UcSay;
	labelFunc061B_021B:
		cmps("wait");
		UI_remove_answer_0D("wait");
		UcMessage("\"It has been quite a while... But it does not matter, now that thou art here, ");
		UcMessage(var0001);
		UcMessage(".");
		UcSay;
		UcMessage("\"Perhaps, after thou hast completed thy task, I couldst think of a way for thee to make it up to me.\"");
		UcSay;
		UI_add_answer_0C(["think of a way", "make it up to thee"]);
	labelFunc061B_0245:
		cmps("think of a way");
		UI_remove_answer_0D("think of a way");
		UcMessage("\"Let us just say that thou dost inspire me... I can promise thee that I shall be... creative.\"");
		UcSay;
	labelFunc061B_0258:
		cmps("make it up to thee");
		UI_remove_answer_0D("make it up to thee");
		UcMessage("\"Oh, do not tempt me, ");
		UcMessage(var0001);
		UcMessage("! We have duties yet to fulfill, thou and I. Perhaps we can find time later, in a more... romantic spot, shall we say?\"");
		UcSay;
	labelFunc061B_0271:
		cmps("bye");
		UI_remove_npc_face0_07();
		Func097F(0xFE9C, "@Farewell!@", 0x0000);
		Func097F(item, "@Take care!@", 0x0002);
		UI_set_schedule_type_25(item, 0x000B);
		goto labelFunc061B_02A1;
	labelFunc061B_029E:
		goto labelFunc061B_008C;
	labelFunc061B_02A1:
		end_conv();
	labelFunc061B_02A2:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func061D 0x61D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0002)) goto labelFunc061D_01C1;
	UI_show_npc_face0_05(0xFE9C, 0x0000);
	UcMessage("\"Quickly! Surround Batlin!\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0000 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
	if(!var0000) goto labelFunc061D_003F;
	Func097F(var0000, "@Stay back!@", 0x000A);
	labelFunc061D_003F:
		var0001 = UI_find_nearby_41(0xFE9C, 0x025F, 0x0028, 0x0010);
		var0002 = 0x0000;
		enum();
	labelFunc061D_0059:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc061D_01A5);
		var0006 = UI_get_item_frame_1A(var0005);
		if(!(var0006 == 0x0014)) goto labelFunc061D_00B7;
		var0007 = UI_get_distance_21(0xFE9C, var0005);
		UI_si_path_run_usecode_C1(0xFE9C, UI_get_object_position_20(var0005), 0x000A, var0005, 0x061D, true);
		var0008 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x59, 0x32], (var0007 + 0x0002));
	labelFunc061D_00B7:
		if(!(var0006 == 0x0015)) goto labelFunc061D_0100;
		var0007 = UI_get_distance_21(Iolo, var0005);
		UI_si_path_run_usecode_C1(Iolo, UI_get_object_position_20(var0005), 0x000A, var0005, 0x061D, true);
		var0008 = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x59, 0x30], (var0007 + 0x0002));
	labelFunc061D_0100:
		if(!(var0006 == 0x0016)) goto labelFunc061D_0149;
		var0007 = UI_get_distance_21(Shamino, var0005);
		UI_si_path_run_usecode_C1(Shamino, UI_get_object_position_20(var0005), 0x000A, var0005, 0x061D, true);
		var0008 = UI_delayed_execute_usecode_array_02(Shamino, [0x23, 0x59, 0x30], (var0007 + 0x0002));
	labelFunc061D_0149:
		if(!(var0006 == 0x0017)) goto labelFunc061D_0192;
		var0007 = UI_get_distance_21(Dupre, var0005);
		UI_si_path_run_usecode_C1(Dupre, UI_get_object_position_20(var0005), 0x000A, var0005, 0x061D, true);
		var0008 = UI_delayed_execute_usecode_array_02(Dupre, [0x23, 0x59, 0x36], (var0007 + 0x0002));
	labelFunc061D_0192:
		if(!(var0007 > var0002)) goto labelFunc061D_01A2;
		var0002 = var0007;
	labelFunc061D_01A2:
		goto labelFunc061D_0059;
	labelFunc061D_01A5:
		var0008 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x073B], (var0002 + 0x0019));
		abrt();
	labelFunc061D_01C1:
		if(!((event == 0x000A) || (event == 0x000E))) goto labelFunc061D_0244;
		var0009 = UI_get_object_position_20(item);
		UI_play_sound_effect_16(0x0082);
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0011, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000A = ["@I'm frozen!@", "@I can't move!@", "@What's wrong?@"];
		UI_item_say_4D(item, var000A[UI_die_roll_17(0x0001, 0x0003)]);
	labelFunc061D_0244:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func061E 0x61E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!gflags[01EC]) goto labelFunc061E_0007;
	abrt();
	labelFunc061E_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		if(!((event == 0x0002) && ((var0000[0x0001] > 0x0010) && ((var0000[0x0001] < 0x004F) && ((var0000[0x0002] > 0x0660) && (var0000[0x0002] < 0x067A)))))) goto labelFunc061E_0109;
		var0001 = false;
		var0002 = [0x0130, 0x02FE, 0x01D5, 0x0378];
		if(!(!(UI_get_schedule_type_24(0xFF54) == 0x0004))) goto labelFunc061E_0074;
		var0002 = (var0002 & 0x028C);
	labelFunc061E_0074:
		var0003 = ["@Help us!@", "@Press the right button!@", "@Free us with the right button!@", "@Be kind...@", "@Do not force us!@", "@Damn the buttons!@"];
		enum();
	labelFunc061E_008D:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc061E_00D3);
		var0007 = UI_find_nearby_41(0xFE9C, var0006, 0x0014, 0x0000);
		if(!var0007) goto labelFunc061E_00D0;
		Func097F(var0007, var0003[UI_get_random_00(UI_get_array_size_73(var0003))], UI_get_random_00(0x000A));
		var0001 = true;
	labelFunc061E_00D0:
		goto labelFunc061E_008D;
	labelFunc061E_00D3:
		if(!var0001) goto labelFunc061E_0109;
		var0008 = UI_die_roll_17(0x0028, 0x0050);
		var0007 = Func09A0(0x0000, 0x0001);
		var0009 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x061E], var0008);
	labelFunc061E_0109:
		return;
}
Func061F 0x61F (var var0000)
{
	UI_clear_item_flag_A5(item, 0x000F);
	return;
}
Func0620 0x620 (var var0000)
{
	UI_set_item_flag_A4(item, 0x000F);
	return;
}
// externs
extern var Func098D 0x98D ();
extern var Func0880 0x880 (var var0000);
extern Func0624 0x624 (var var0000);
extern Func0986 0x986 (var var0000, var var0001);
extern Func0881 0x881 ();
extern var Func0988 0x988 (var var0000, var var0001);

Func0622 0x622 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	if(!(event == 0x0001)) goto labelFunc0622_01E7;
	var0000 = UI_get_party_list_2B();
	var0001 = UI_get_array_size_73(UI_get_party_list_2B());
	if(!(var0001 == 0x0001)) goto labelFunc0622_0038;
	labelFunc0622_0024:
		var0002 = (0x0006 + UI_die_roll_17(0x0000, 0x0009));
		goto labelFunc0622_0101;
	labelFunc0622_0038:
		var0003 = UI_get_npc_name_30(0xFE9C);
		if(!(var0001 > 0x0002)) goto labelFunc0622_0055;
		var0004 = "we";
		goto labelFunc0622_005B;
	labelFunc0622_0055:
		var0004 = "I";
	labelFunc0622_005B:
		var0005 = Func098D();
		enum();
	labelFunc0622_0062:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0622_0088);
		if(!(UI_npc_nearby_3A(var0008) && UI_get_item_flag_A3(var0008, 0x0006))) goto labelFunc0622_0085;
		goto labelFunc0622_008B;
	labelFunc0622_0085:
		goto labelFunc0622_0062;
	labelFunc0622_0088:
		goto labelFunc0622_0024;
	labelFunc0622_008B:
		UI_show_npc_face0_05(var0008, 0x0000);
		UcMessage("\"In how many hours shall ");
		UcMessage(var0004);
		UcMessage(" awaken thee, ");
		UcMessage(var0003);
		UcMessage("?\"");
		UcSay;
		var0002 = UI_input_numeric_value_13(0x0000, 0x000C, 0x0001, 0x0008);
		if(!(var0002 == 0x0000)) goto labelFunc0622_00F9;
		UcMessage("\"Cease thy jesting, Avatar! We have serious work to do!!\"");
		UcSay;
		UI_remove_npc_face0_07();
		if(!Func0880(item)) goto labelFunc0622_00D5;
		item;
		calle();
	labelFunc0622_00D5:
		enum();
	labelFunc0622_00D6:
		for (var000B in var0000 with var0009 to var000A atend labelFunc0622_00EE);
		UI_set_schedule_type_25(var000B, 0x001F);
		goto labelFunc0622_00D6;
	labelFunc0622_00EE:
		UI_clear_item_flag_A5(0xFE9C, 0x0001);
		exit2();
	labelFunc0622_00F9:
		UcMessage("\"Pleasant dreams.\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc0622_0101:
		UI_fade_palette_A9(0x000C, 0x0001, 0x0000);
		var000C = (var0002 * 0x05DC);
		Func0986(var0002, item);
		var000D = [0x004A, 0x00B8, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x000B];
		enum();
	labelFunc0622_0144:
		for (var0010 in var000D with var000E to var000F atend labelFunc0622_0181);
		enum();
	labelFunc0622_0150:
		for (var0013 in var0000 with var0011 to var0012 atend labelFunc0622_017E);
		var0014 = UI_find_object_32(var0013, 0x0281, var0010, 0xFE99);
		if(!var0014) goto labelFunc0622_017B;
		UI_remove_item_84(var0014);
	labelFunc0622_017B:
		goto labelFunc0622_0150;
	labelFunc0622_017E:
		goto labelFunc0622_0144;
	labelFunc0622_0181:
		Func0881();
		var0000 = Func0988(UI_get_npc_object_23(0xFE9C), var0000);
		enum();
	labelFunc0622_0195:
		for (var000B in var0000 with var0015 to var0016 atend labelFunc0622_01AD);
		UI_set_schedule_type_25(var000B, 0x000B);
		goto labelFunc0622_0195;
	labelFunc0622_01AD:
		var0017 = UI_execute_usecode_array_01(0xFE9C, [0x27, 0x0022, 0x6E, 0x27, 0x0003]);
		var0017 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0622, 0x55, 0x0623], 0x0021);
		UI_advance_time_8E(var000C);
	labelFunc0622_01E7:
		if(!(event == 0x0002)) goto labelFunc0622_01FC;
		UI_fade_palette_A9(0x000C, 0x0001, 0x0001);
	labelFunc0622_01FC:
		return;
}
// externs
extern Func094A 0x94A (var var0000);
extern Func0624 0x624 (var var0000);

Func0623 0x623 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0002)) goto labelFunc0623_0080;
	var0000 = UI_get_party_list_2B();
	if(!(UI_get_array_size_73(var0000) > 0x0001)) goto labelFunc0623_0035;
	var0001 = UI_get_npc_name_30(0xFE9C);
	Func094A((("Arise, " + var0001) + ". 'Tis time to continue the quest."));
	labelFunc0623_0035:
		enum();
	labelFunc0623_0036:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0623_004E);
		UI_set_schedule_type_25(var0004, 0x001F);
		goto labelFunc0623_0036;
	labelFunc0623_004E:
		UI_set_item_flag_A4(0xFE9C, 0x0001);
		UI_clear_item_flag_A5(0xFE9C, 0x0001);
		if(!((UI_get_item_shape_18(item) == 0x03F3) && (UI_get_item_frame_1A(item) == 0x0015))) goto labelFunc0623_0080;
		event = 0x0001;
		item;
		calle();
	labelFunc0623_0080:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0624 0x624 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0624_0074;
	UI_close_gumps_98();
	var0000 = [Dupre, Dupre, Dupre, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001, 0x0001];
	var0001 = [0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre, 0x0001, 0x0000, Dupre];
	UI_halt_scheduled_71(0xFE9C);
	Func090D(item, var0000, var0001, Dupre, 0x0624, item, 0x000A);
	UI_set_path_failure_A7(0x0624, item, 0x0002);
	labelFunc0624_0074:
		if(!(event == 0x0002)) goto labelFunc0624_008C;
		UI_set_item_shape_14(item, 0x0247);
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc0624_008C:
		if(!(event == 0x000A)) goto labelFunc0624_00CD;
		UI_close_gumps_98();
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x30, 0x6C, 0x27, 0x0001, 0x61]);
		if(!var0002) goto labelFunc0624_00CD;
		var0002 = UI_execute_usecode_array_01(item, [0x27, 0x0002, 0x55, 0x0624]);
	labelFunc0624_00CD:
		return;
}
// externs
extern var Func0994 0x994 ();
extern var Func0955 0x955 ();
extern var Func087E 0x87E (var var0000, var var0001);
extern var Func0906 0x906 (var var0000);
extern var Func090A 0x90A (var var0000);
extern Func087D 0x87D ();

Func0625 0x625 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;

	if(!(event == 0x0001)) goto labelFunc0625_033C;
	var0000 = UI_get_item_shape_18(item);
	if(!UI_get_npc_prop_28(item, 0x000A)) goto labelFunc0625_002A;
	var0001 = "her";
	var0002 = "she";
	goto labelFunc0625_0036;
	labelFunc0625_002A:
		var0001 = "his";
		var0002 = "he";
	labelFunc0625_0036:
		if(!(var0000 == 0x00E4)) goto labelFunc0625_004D;
		UI_show_npc_face_03(0xFEED, 0x0000);
		goto labelFunc0625_00CB;
	labelFunc0625_004D:
		if(!((var0000 == 0x012A) || (var0000 == 0x0210))) goto labelFunc0625_0064;
		UI_attack_avatar_92();
		exit2();
	labelFunc0625_0064:
		if(!((var0000 == 0x01CD) || (var0000 == 0x0103))) goto labelFunc0625_0083;
		UI_show_npc_face_03(0xFEEE, 0x0000);
		goto labelFunc0625_00CB;
	labelFunc0625_0083:
		if(!(var0000 == 0x02EB)) goto labelFunc0625_009A;
		UI_show_npc_face_03(0xFED6, 0x0000);
		goto labelFunc0625_00CB;
	labelFunc0625_009A:
		if(!((var0000 == 0x017D) || (var0000 == 0x02D0))) goto labelFunc0625_00B9;
		UI_show_npc_face_03(0xFEF3, 0x0000);
		goto labelFunc0625_00CB;
	labelFunc0625_00B9:
		var0003 = UI_get_npc_number_47(item);
		UI_show_npc_face_03(var0003, 0x0000);
	labelFunc0625_00CB:
		if(!(var0003 == 0xFFDC)) goto labelFunc0625_00DA;
		UcMessage("\"Please, I beg thee to stop this or thou wilt anger my master....\"");
		UcSay;
		exit2();
	labelFunc0625_00DA:
		var0004 = 0x0284;
		if(!(Func0994() == 0x000D)) goto labelFunc0625_00F0;
		var0004 = 0x03B7;
	labelFunc0625_00F0:
		if(!(Func0994() == 0x000E)) goto labelFunc0625_0100;
		var0004 = 0x03B8;
	labelFunc0625_0100:
		if(!(Func0994() == 0x0003)) goto labelFunc0625_0110;
		var0004 = 0x03B4;
	labelFunc0625_0110:
		var0005 = UI_count_objects_31(0xFE9B, var0004, 0xFE99, 0xFE99);
		if(!((UI_die_roll_17(0x0001, 0x0002) == 0x0001) && var0005)) goto labelFunc0625_0263;
		UcMessage("\"Cease and desist immediately!\"~~\"Dost thou wish to avoid the unpleasantries of a lengthy trial?\"");
		UcSay;
		var0006 = Func0955();
		if(!var0006) goto labelFunc0625_0260;
		UcMessage("\"What is thy liberty worth?\"");
		UcSay;
		if(!Func087E(var0005, var0004)) goto labelFunc0625_015E;
		goto labelFunc0625_016E;
		goto labelFunc0625_025D;
	labelFunc0625_015E:
		UcMessage("The guard looks unimpressed by your paltry offer. \"Our jail is populated by some unsavory knaves. Thy freedom should be worth more than that...\"");
		UcSay;
		if(!Func087E(var0005, var0004)) goto labelFunc0625_025A;
	labelFunc0625_016E:
		if(!UI_is_pc_female_6F()) goto labelFunc0625_017E;
		var0007 = "woman";
		goto labelFunc0625_0184;
	labelFunc0625_017E:
		var0007 = "man";
	labelFunc0625_0184:
		if(!(Func0994() == 0x000D)) goto labelFunc0625_019A;
		var0008 = [0x02D0, 0x00E4];
	labelFunc0625_019A:
		if(!(Func0994() == 0x0003)) goto labelFunc0625_01B0;
		var0008 = [0x02D0, 0x017D];
	labelFunc0625_01B0:
		if(!(Func0994() == 0x000E)) goto labelFunc0625_01C9;
		var0008 = [0x02D0, 0x0103, 0x01CD];
	labelFunc0625_01C9:
		var0009 = [];
		enum();
	labelFunc0625_01D0:
		for (var000C in var0008 with var000A to var000B atend labelFunc0625_01F3);
		var0009 = (var0009 & UI_find_nearby_41(item, var000C, 0x001E, 0x0000));
		goto labelFunc0625_01D0;
	labelFunc0625_01F3:
		enum();
	labelFunc0625_01F4:
		for (var000F in var0009 with var000D to var000E atend labelFunc0625_020C);
		UI_set_schedule_type_25(var000F, 0x000C);
		goto labelFunc0625_01F4;
	labelFunc0625_020C:
		var0010 = UI_find_nearby_41(item, 0xFE99, 0x0041, 0x0008);
		enum();
	labelFunc0625_021E:
		for (var0013 in var0010 with var0011 to var0012 atend labelFunc0625_0244);
		if(!(UI_get_schedule_type_24(var0013) == 0x0000)) goto labelFunc0625_0241;
		UI_set_schedule_type_25(var0013, 0x000C);
	labelFunc0625_0241:
		goto labelFunc0625_021E;
	labelFunc0625_0244:
		UcMessage("\"I am pleased to see that thou art a thinking ");
		UcMessage(var0007);
		UcMessage(". I will take care of this disturbance.\"");
		UcSay;
		UI_play_music_39(0x00FF, item);
		abrt();
		goto labelFunc0625_025D;
	labelFunc0625_025A:
		goto labelFunc0625_031E;
	labelFunc0625_025D:
		goto labelFunc0625_0263;
	labelFunc0625_0260:
		goto labelFunc0625_031E;
	labelFunc0625_0263:
		UcMessage("\"Cease and desist immediately, ruffian!\"");
		UcSay;
		UcMessage("\"Wilt thou come quietly?\"");
		UcSay;
		UI_add_answer_0C(["Yes", "No"]);
		var0014 = UI_get_party_list_2B();
		enum();
	labelFunc0625_0280:
		for (var0017 in var0014 with var0015 to var0016 atend labelFunc0625_02B1);
		var0018 = UI_find_object_32(var0017, 0x031D, 0x00BB, 0xFE99);
		if(!var0018) goto labelFunc0625_02AE;
		UI_add_answer_0C("certificate");
		goto labelFunc0625_02B1;
	labelFunc0625_02AE:
		goto labelFunc0625_0280;
	labelFunc0625_02B1:
		UcAsk;
		cmps("Yes");
		UcMessage("\"Very well. Thou shalt remain in prison until we see fit to release thee.\"");
		UcSay;
		var0010 = UI_find_nearby_41(item, 0xFE99, 0x0041, 0x0008);
		enum();
	labelFunc0625_02D2:
		for (var0013 in var0010 with var0019 to var001A atend labelFunc0625_02F8);
		if(!(UI_get_schedule_type_24(var0013) == 0x0000)) goto labelFunc0625_02F5;
		UI_set_schedule_type_25(var0013, 0x000C);
	labelFunc0625_02F5:
		goto labelFunc0625_02D2;
	labelFunc0625_02F8:
		UI_UNKNOWN_93();
		var001B = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0625, 0x6E], 0x0002);
		abrt();
	labelFunc0625_0316:
		cmps("No");
	labelFunc0625_031E:
		UcMessage("\"An unfortunate decision, my friend.\"");
		UcSay;
		UI_attack_avatar_92();
		exit2();
	labelFunc0625_0327:
		cmps("certificate");
		UcMessage("\"Oh, I see. Carry on, carry on.\"");
		UcSay;
		UI_UNKNOWN_93();
		exit2();
	labelFunc0625_0338:
		goto labelFunc0625_02B1;
	labelFunc0625_033B:
		end_conv();
	labelFunc0625_033C:
		if(!(event == 0x0002)) goto labelFunc0625_0421;
		var0014 = UI_get_party_list_2B();
		enum();
	labelFunc0625_034C:
		for (var001E in var0014 with var001C to var001D atend labelFunc0625_036E);
		UI_set_schedule_type_25(var001E, 0x001F);
		UI_set_item_frame_1B(var001E, 0x0000);
		goto labelFunc0625_034C;
	labelFunc0625_036E:
		if(!(Func0994() == 0x000D)) goto labelFunc0625_0387;
		var001F = [0x0427, 0x09D8, 0x0000];
	labelFunc0625_0387:
		if(!(Func0994() == 0x0003)) goto labelFunc0625_03A0;
		var001F = [0x03E0, 0x0620, 0x0000];
	labelFunc0625_03A0:
		if(!(Func0994() == 0x000E)) goto labelFunc0625_03B9;
		var001F = [0x0931, 0x073A, 0x0000];
	labelFunc0625_03B9:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_music_39(0x00FF, item);
		UI_move_object_4B(0xFE9B, var001F);
		var0020 = UI_find_nearby_41(0xFE9C, 0x033C, 0x000A, 0x0000);
		if(!(var0020 && (Func0906(var0020) == 0x0001))) goto labelFunc0625_0405;
		var001B = Func090A(var0020);
	labelFunc0625_0405:
		Func087D();
		var001B = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x0001, 0x55, 0x063C]);
	labelFunc0625_0421:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func0989 0x989 (var var0000, var var0001);
extern var Func097E 0x97E (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08A1 0x8A1 ();
extern Func02C0 0x2C0 (var var0000);

Func0626 0x626 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	if(!((event == 0x0002) && gflags[000A])) goto labelFunc0626_00A1;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	gflags[000A] = false;
	gflags[0009] = true;
	UI_play_sound_effect_16(0x0027);
	var0000 = UI_get_object_position_20(0xFE9C);
	UI_sprite_effect_68(0x0028, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0005, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
	var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0626], 0x000F);
	Func097F(0xFE9C, "@Ooouch!@", 0x0004);
	abrt();
	labelFunc0626_00A1:
		if(!((event == 0x0002) && gflags[0009])) goto labelFunc0626_012C;
		gflags[0009] = false;
		gflags[0008] = true;
		UI_play_sound_effect_16(0x0029);
		var0000 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0029, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001E, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0626], 0x000A);
		abrt();
	labelFunc0626_012C:
		if(!((event == 0x0002) && gflags[0008])) goto labelFunc0626_01C3;
		gflags[0008] = false;
		gflags[0007] = true;
		UI_play_sound_effect_16(0x002A);
		var0000 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x002B, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001B, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0626], 0x0012);
		Func097F(0xFE9C, "@Aaargh!@", 0x0004);
		abrt();
	labelFunc0626_01C3:
		if(!((event == 0x0002) && gflags[0007])) goto labelFunc0626_02C9;
		gflags[0007] = false;
		UI_set_polymorph_B3(0xFE9C, 0x00EF);
		UI_play_sound_effect_16(0x0074);
		var0000 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x002B, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001E, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001B, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001C, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0004, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0626], 0x001E);
		abrt();
	labelFunc0626_02C9:
		if(!(event == 0x0002)) goto labelFunc0626_02EE;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_run_endgame_8B(true);
		abrt();
	labelFunc0626_02EE:
		var0002 = UI_get_item_shape_18(item);
		if(!(var0002 == 0x0206)) goto labelFunc0626_03FB;
		UI_UNKNOWN_90();
		var0003 = Func0988(item, UI_find_nearby_41(item, 0x0206, 0x0006, 0x0000));
		var0004 = [];
		enum();
	labelFunc0626_0320:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0626_033D);
		var0004 = (var0004 & UI_get_distance_21(var0007, item));
		goto labelFunc0626_0320;
	labelFunc0626_033D:
		var0003 = Func0989(var0003, var0004);
		var0008 = UI_get_object_position_20(item);
		var0009 = 0x0001;
		enum();
	labelFunc0626_0358:
		for (var0007 in var0003 with var000A to var000B atend labelFunc0626_03ED);
		var000C = UI_get_object_position_20(var0007);
		var000D = 0x0001;
	labelFunc0626_0373:
		if(!(var000D <= var0009)) goto labelFunc0626_03EA;
		var000E = (((var000D - 0x0001) * 0x0003) + 0x0001);
		if(!((Func097E((var000C[0x0001] - var0008[var000E])) <= 0x0002) && (Func097E((var000C[0x0002] - var0008[(var000E + 0x0001)])) <= 0x0002))) goto labelFunc0626_03DD;
		UI_remove_item_84(var0007);
		var0008 = (var0008 & var000C);
		var0009 = (var0009 + 0x0001);
		goto labelFunc0626_03EA;
	labelFunc0626_03DD:
		var000D = (var000D + 0x0001);
		goto labelFunc0626_0373;
	labelFunc0626_03EA:
		goto labelFunc0626_0358;
	labelFunc0626_03ED:
		UI_play_sound_effect2_A1(0x005F, item);
		UI_remove_item_84(item);
		exit2();
	labelFunc0626_03FB:
		if(!((var0002 == 0x0350) || (var0002 == 0x010C))) goto labelFunc0626_0434;
		if(!(!(UI_get_item_frame_1A(item) == 0x0002))) goto labelFunc0626_0433;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x005F, 0x01, 0x46, 0x0002]);
	labelFunc0626_0433:
		exit2();
	labelFunc0626_0434:
		if(!(var0002 == 0x02E7)) goto labelFunc0626_050A;
		var000F = UI_get_weapon_5D(0xFE9C);
		if(!(var000F != 0x02C6)) goto labelFunc0626_0453;
		abrt();
	labelFunc0626_0453:
		var0010 = UI_get_object_position_20(item);
		var0001 = UI_set_last_created_2E(item);
		if(!var0001) goto labelFunc0626_050A;
		var0011 = UI_create_new_object_2C(0x0371);
		if(!var0011) goto labelFunc0626_050A;
		UI_play_sound_effect_16(0x002A);
		var0001 = UI_update_last_created_2F(var0010);
		if(!var0001) goto labelFunc0626_050A;
		var0001 = UI_delayed_execute_usecode_array_02(var0011, [0x23, 0x46, 0x0001, 0x27, 0x0002, 0x46, 0x0002, 0x27, 0x0002, 0x46, 0x0003, 0x27, 0x0002, 0x46, 0x0004, 0x27, 0x0002, 0x46, 0x0005, 0x27, 0x0002, 0x46, 0x0006, 0x27, 0x0002, 0x46, 0x0007], 0x0003);
		var0012 = Func09A0(0x0000, 0x0003);
		var0001 = UI_delayed_execute_usecode_array_02(var0012, [0x23, 0x55, 0x0626], 0x0019);
		gflags[000A] = true;
	labelFunc0626_050A:
		if(!(var0002 == 0x0220)) goto labelFunc0626_0517;
		Func08A1();
	labelFunc0626_0517:
		if(!(UI_get_item_shape_18(item) == 0x01DF)) goto labelFunc0626_0571;
		var0013 = UI_get_item_frame_1A(item);
		if(!(var0013 == 0x0003)) goto labelFunc0626_0570;
		UI_set_item_frame_1B(item, 0x0004);
		var0001 = UI_create_new_object_2C(0x022F);
		if(!var0001) goto labelFunc0626_0570;
		UI_set_item_frame_1B(var0001, 0x0001);
		var0014 = UI_set_item_quality_1D(var0001, 0x0001);
		var0014 = UI_update_last_created_2F(UI_get_object_position_20(item));
	labelFunc0626_0570:
		abrt();
	labelFunc0626_0571:
		if(!((var0002 == 0x020A) && (UI_get_item_quality_1C(item) == 0x00FF))) goto labelFunc0626_058A;
		item;
		calle();
		abrt();
	labelFunc0626_058A:
		UI_remove_item_84(item);
		return;
}
// externs
extern Func0949 0x949 (var var0000);

Func0628 0x628 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_create_new_object_2C(0x0390);
	if(!var0000) goto labelFunc0628_0153;
	UI_set_item_flag_A4(var0000, 0x0012);
	UI_set_item_frame_1B(var0000, UI_die_roll_17(0x000C, 0x000F));
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_find_nearby_41(item, 0x032A, 0x0002, 0x0000);
	enum();
	labelFunc0628_0045:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0628_00C2);
		var0006 = UI_get_object_position_20(var0005);
		if(!((var0006[0x0001] == (var0001[0x0001] - 0x0001)) && ((var0006[0x0002] == (var0001[0x0002] + 0x0001)) && (var0006[0x0003] == var0001[0x0003])))) goto labelFunc0628_00BF;
		if(!(UI_get_item_frame_1A(var0005) == 0x0000)) goto labelFunc0628_00BF;
		UI_set_item_frame_1B(var0005, 0x0004);
		UI_halt_scheduled_71(item);
		var0007 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x0628], 0x0010);
		exit2();
	labelFunc0628_00BF:
		goto labelFunc0628_0045;
	labelFunc0628_00C2:
		var0001[0x0001] = (var0001[0x0001] - UI_die_roll_17(0x0001, 0x0003));
		var0001[0x0002] = (var0001[0x0002] + UI_die_roll_17(0x0001, 0x0002));
		var0007 = UI_update_last_created_2F(var0001);
		var0008 = UI_die_roll_17(0x0001, 0x0002);
		if(!(var0008 == 0x0001)) goto labelFunc0628_0117;
		Func0949("@Turn it off!@");
	labelFunc0628_0117:
		if(!(var0008 == 0x0002)) goto labelFunc0628_0127;
		Func0949("@Thou art wasting it!@");
	labelFunc0628_0127:
		if(!UI_npc_nearby_3A(Dupre)) goto labelFunc0628_013B;
		UI_item_say_4D(Dupre, "@That is perfectly good beer!@");
	labelFunc0628_013B:
		UI_halt_scheduled_71(item);
		var0007 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x0628], 0x0010);
	labelFunc0628_0153:
		return;
}
// externs
extern Func0949 0x949 (var var0000);

Func0629 0x629 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_create_new_object_2C(0x0390);
	if(!var0000) goto labelFunc0629_013F;
	UI_set_item_flag_A4(var0000, 0x0012);
	UI_set_item_frame_1B(var0000, UI_die_roll_17(0x0014, 0x0017));
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_find_nearby_41(item, 0x032A, 0x0002, 0x0000);
	enum();
	labelFunc0629_0045:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0629_00C2);
		var0006 = UI_get_object_position_20(var0005);
		if(!((var0006[0x0001] == (var0001[0x0001] + 0x0001)) && ((var0006[0x0002] == (var0001[0x0002] - 0x0001)) && (var0006[0x0003] == var0001[0x0003])))) goto labelFunc0629_00BF;
		if(!(UI_get_item_frame_1A(var0005) == 0x0000)) goto labelFunc0629_00BF;
		UI_set_item_frame_1B(var0005, 0x0003);
		UI_halt_scheduled_71(item);
		var0007 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x0629], 0x0010);
		exit2();
	labelFunc0629_00BF:
		goto labelFunc0629_0045;
	labelFunc0629_00C2:
		var0001[0x0001] = (var0001[0x0001] + UI_die_roll_17(0x0001, 0x0002));
		var0001[0x0002] = (var0001[0x0002] - UI_die_roll_17(0x0000, 0x0002));
		var0007 = UI_update_last_created_2F(var0001);
		var0008 = UI_die_roll_17(0x0001, 0x0002);
		if(!(var0008 == 0x0001)) goto labelFunc0629_0117;
		Func0949("@Turn it off!@");
	labelFunc0629_0117:
		if(!(var0008 == 0x0002)) goto labelFunc0629_0127;
		Func0949("@Thou art wasting it!@");
	labelFunc0629_0127:
		UI_halt_scheduled_71(item);
		var0007 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x0629], 0x0010);
	labelFunc0629_013F:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func062A 0x62A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc062A_015E;
	UI_play_sound_effect2_A1(0x005E, item);
	UI_book_mode_6A(item);
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x00D5)) goto labelFunc062A_0043;
	UcMessage("~~ ~~MY LIFE AND MY BELIEFS~~ ~~by Svenjaja~~");
	UcSay;
	UcMessage("I do not have much time left. I hope it will be enough time to write everything down, before THEY come to take me. And THEY will come...~");
	UcSay;
	UcMessage("I came here to this Temple full of love and inspiration. All I wanted was to read the writings of artistic truth. The wise men would talk to me and I wanted to listen to them. But then it happened...~");
	UcSay;
	UcMessage("I did everything right, I followed the rules, but I still got confused. After fasting for two days in the meditation room and staring at the red and black floor, I was still waiting for a sign. A sign which would show me the right path to follow.~");
	UcSay;
	UcMessage("And finally, I could rejoice. I found my calling and I was taken to the Pool of Dedication. But then the soldiers came and destroyed everything. They killed the Great Hierophant of Chaos in the garden. Somehow the people could save the Sceptre of Enlightenment. They were able to hide it beneath the lectern...~");
	UcSay;
	UcMessage("I hope for the safety of my brother Sethys, for he doth have the key to the Altar of Tolerance. The Great Hierophant had entrusted him with the key, moments before the soldiers arrived...");
	UcSay;
	UcMessage("I cannot hope for mine own safety, for I am sitting here now, awaiting my death. The Order fanatics will come soon and with them my death is arriving...");
	UcSay;
	labelFunc062A_0043:
		if(!(var0000 == 0x00DC)) goto labelFunc062A_0051;
		UcMessage("~True follower of Order do not despair! The Hierophant hath led us to a new world via passage through the Wall of Lights! Though thou wert not here to make the passage, fear not. Some day thou too wilt join us. *If thou wishest to enter into the Temple of the Hierophant thou must merely place the symbols of Order upon the pedestal indicated by the plaque. ~Once the three artifacts have been placed one at a time, the door will swing wide. *If thou art a true disciple thou wilt have read the scrolls that contain the words of wisdom that thou needest to decipher the plaque's meaning. The sacred Library of the Hierophant shall remain secure from those who art not of Order. For if thou art not true, thou wilt never enter into the Hierophant's temple.");
		UcSay;
	labelFunc062A_0051:
		if(!(var0000 == 0x00F1)) goto labelFunc062A_015E;
		var0001 = 0x0000;
		var0002 = 0x0000;
		var0003 = UI_find_nearby_41(0xFE9C, 0x0113, 0x0005, 0x0010);
		if(!var0003) goto labelFunc062A_008A;
		var0001 = UI_get_item_quality_1C(var0003);
	labelFunc062A_008A:
		var0004 = UI_find_nearby_41(var0003, 0x032C, 0x0007, 0x0000);
		if(!(((var0001 == 0x0096) || (var0001 == 0x0098)) && var0004)) goto labelFunc062A_015A;
		UcMessage("Behold! Thou art worthy to cross to the Temple of Balance!");
		UcSay;
		var0005 = Func09A0(0x0000, 0x0001);
		var0006 = UI_set_item_quality_1D(var0005, var0001);
		var0006 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x0722], 0x0005);
		UI_close_gumps_98();
		enum();
	labelFunc062A_00EC:
		for (var0009 in var0004 with var0007 to var0008 atend labelFunc062A_0156);
		var0006 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x032C], 0x0002);
		var0006 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x032C], 0x0004);
		var0006 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x032C], 0x0006);
		var0006 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x032C], 0x0008);
		goto labelFunc062A_00EC;
	labelFunc062A_0156:
		abrt();
		goto labelFunc062A_015E;
	labelFunc062A_015A:
		UcMessage("Within my pages lie the bridges to the great chasms. When thou dost reach the great pillars, stand between them and read my words once more.");
		UcSay;
	labelFunc062A_015E:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func062B 0x62B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x000A)) goto labelFunc062B_0170;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x6C, 0x61]);
	var0001 = UI_get_object_position_20(0xFE9C);
	var0002 = UI_get_item_frame_1A(item);
	var0003 = UI_get_item_quality_1C(item);
	if(!(var0003 > 0x0000)) goto labelFunc062B_0052;
	UI_close_gumps_98();
	var0004 = Func0992(Shamino, "@'Tis difficult to acquire! Thou shouldst save it.@", "@'Tis difficult to acquire! Mayhaps I should save it.@", false);
	abrt();
	labelFunc062B_0052:
		if(!(var0002 < 0x0006)) goto labelFunc062B_0064;
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc062B_0064:
		if(!((var0002 == 0x0001) || (var0002 == 0x0006))) goto labelFunc062B_00AB;
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc062B_00AB;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(var0005, UI_die_roll_17(0x0010, 0x0013));
		var0005 = UI_update_last_created_2F(var0001);
	labelFunc062B_00AB:
		if(!(var0002 == 0x0002)) goto labelFunc062B_00EA;
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc062B_00EA;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(var0005, UI_die_roll_17(0x0000, 0x0003));
		var0005 = UI_update_last_created_2F(var0001);
	labelFunc062B_00EA:
		if(!(var0002 == 0x0003)) goto labelFunc062B_0129;
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc062B_0129;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(var0005, UI_die_roll_17(0x0014, 0x0017));
		var0005 = UI_update_last_created_2F(var0001);
	labelFunc062B_0129:
		if(!((var0002 == 0x0004) || (var0002 == 0x0005))) goto labelFunc062B_0170;
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc062B_0170;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(var0005, UI_die_roll_17(0x000C, 0x000F));
		var0005 = UI_update_last_created_2F(var0001);
	labelFunc062B_0170:
		return;
}
// externs
extern Func088C 0x88C ();
extern Func088B 0x88B (var var0000, var var0001);
extern Func0889 0x889 (var var0000);
extern Func088A 0x88A (var var0000);

Func062C 0x62C (var var0000)
{
	var var0001;

	if(!(event == 0x000A)) goto labelFunc062C_0025;
	UI_close_gumps_98();
	var0000 = UI_get_container_83(item);
	if(!(!var0000)) goto labelFunc062C_0025;
	Func088C();
	Func088B(item, 0x062C);
	labelFunc062C_0025:
		if(!((event == 0x0002) || var0000)) goto labelFunc062C_0048;
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc062C_0044;
		Func0889(item);
		goto labelFunc062C_0048;
	labelFunc062C_0044:
		Func088A(item);
	labelFunc062C_0048:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func094A 0x94A (var var0000);

Func062D 0x62D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x000A)) goto labelFunc062D_0085;
	var0000 = UI_get_container_83(item);
	if(!(!var0000)) goto labelFunc062D_0081;
	var0001 = Func090C(0xFE9C, item);
	var0002 = UI_get_object_position_20(item);
	var0003 = UI_set_last_created_2E(item);
	if(!var0003) goto labelFunc062D_007D;
	var0003 = UI_give_last_created_42(0xFE9C);
	if(!(!var0003)) goto labelFunc062D_005D;
	var0003 = UI_update_last_created_2F(var0002);
	UI_flash_mouse_7F(0x0004);
	abrt();
	goto labelFunc062D_007A;
	labelFunc062D_005D:
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0001, 0x01, 0x6C, 0x61, 0x55, 0x062D]);
	labelFunc062D_007A:
		goto labelFunc062D_007E;
	labelFunc062D_007D:
		exit2();
	labelFunc062D_007E:
		goto labelFunc062D_0085;
	labelFunc062D_0081:
		UI_close_gumps_98();
	labelFunc062D_0085:
		if(!((event == 0x0002) || var0000)) goto labelFunc062D_00F1;
		var0004 = UI_click_on_item_3F();
		var0005 = UI_get_item_shape_18(var0004);
		if(!(var0005 == 0x028B)) goto labelFunc062D_00E5;
		var0006 = [0x0001, 0x0001];
		var0007 = [0x0000, 0x0000];
		var0008 = Dupre;
		Func090D(var0004, var0006, var0007, var0008, 0x028B, var0004, 0x000A);
		goto labelFunc062D_00F1;
	labelFunc062D_00E5:
		var0009 = "@Why dost thou not spin that wool into thread?@";
		Func094A(var0009);
	labelFunc062D_00F1:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func094A 0x94A (var var0000);

Func062E 0x62E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x000A)) goto labelFunc062E_0085;
	var0000 = UI_get_container_83(item);
	if(!(!var0000)) goto labelFunc062E_0081;
	var0001 = Func090C(0xFE9C, item);
	var0002 = UI_get_object_position_20(item);
	var0003 = UI_set_last_created_2E(item);
	if(!var0003) goto labelFunc062E_007D;
	var0003 = UI_give_last_created_42(0xFE9C);
	if(!(!var0003)) goto labelFunc062E_005D;
	var0003 = UI_update_last_created_2F(var0002);
	UI_flash_mouse_7F(0x0004);
	abrt();
	goto labelFunc062E_007A;
	labelFunc062E_005D:
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0001, 0x01, 0x6C, 0x61, 0x55, 0x062E]);
	labelFunc062E_007A:
		goto labelFunc062E_007E;
	labelFunc062E_007D:
		exit2();
	labelFunc062E_007E:
		goto labelFunc062E_0085;
	labelFunc062E_0081:
		UI_close_gumps_98();
	labelFunc062E_0085:
		if(!((event == 0x0002) || var0000)) goto labelFunc062E_00F7;
		var0004 = UI_click_on_item_3F();
		var0005 = UI_get_item_shape_18(var0004);
		if(!(var0005 == 0x0105)) goto labelFunc062E_00EB;
		var0006 = [0x0000, Dupre, Shamino];
		var0007 = [0x0001, 0x0001, 0x0001];
		var0008 = Dupre;
		Func090D(var0004, var0006, var0007, var0008, 0x0105, var0004, 0x000A);
		goto labelFunc062E_00F7;
	labelFunc062E_00EB:
		var0009 = "@Why dost thou not weave cloth with that thread on the loom?@";
		Func094A(var0009);
	labelFunc062E_00F7:
		return;
}
// externs
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func062F 0x62F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0002)) goto labelFunc062F_006C;
	var0000 = UI_die_roll_17(0x0001, 0x000A);
	var0001 = UI_die_roll_17(0x0001, 0x000A);
	if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc062F_003D;
	var0001 = (0x0000 - var0001);
	labelFunc062F_003D:
		var0002 = [0x0A22, 0x0AB7];
		UI_set_schedule_type_25(item, 0x000F);
		Func09AC(item, (var0002[0x0001] + var0000), (var0002[0x0002] + var0001), 0x000F);
	labelFunc062F_006C:
		return;
}
// externs
extern var Func089D 0x89D (var var0000);
extern Func09BE 0x9BE (var var0000, var var0001);

Func0631 0x631 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x000A)) goto labelFunc0631_00C0;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x0366, 0x000F, 0x0000);
	var0002 = UI_find_nearby_41(item, 0x0203, 0x000F, 0x0000);
	var0001 = (var0001 & var0002);
	var0002 = [];
	enum();
	labelFunc0631_0043:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0631_0069);
		if(!(UI_get_item_quality_1C(var0005) == var0000)) goto labelFunc0631_0066;
		var0002 = (var0002 & var0005);
	labelFunc0631_0066:
		goto labelFunc0631_0043;
	labelFunc0631_0069:
		if(!Func089D(var0002)) goto labelFunc0631_00BB;
		var0006 = UI_execute_usecode_array_01(item, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0004]);
		var0006 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0006, 0x01, 0x6C, 0x61, 0x0B, Shamino, 0x0002]);
		if(!(var0000 == 0x00B5)) goto labelFunc0631_00BA;
		gflags[0215] = true;
	labelFunc0631_00BA:
		exit2();
	labelFunc0631_00BB:
		Func09BE(item, true);
	labelFunc0631_00C0:
		if(!(event == 0x0002)) goto labelFunc0631_00CD;
		Func09BE(item, true);
	labelFunc0631_00CD:
		return;
}
// externs
extern Func07D2 0x7D2 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0632 0x632 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = UI_is_pc_female_6F();
	var0001 = "he";
	var0002 = "him";
	var0003 = "his";
	if(!var0000) goto labelFunc0632_0031;
	var0001 = "she";
	var0002 = "her";
	var0003 = "her";
	labelFunc0632_0031:
		if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc0632_0169;
		var0004 = [0x0A3B, 0x0A25, 0x0A3B, 0x0A28, 0x0A3E, 0x0A27];
		var0005 = 0x0001;
	labelFunc0632_005D:
		if(!(var0005 <= 0x0003)) goto labelFunc0632_00FC;
		var0006 = (var0005 * 0x0002);
		var0007 = UI_create_new_object2_2D(0x0151, [var0004[(var0006 - 0x0001)], var0004[var0006], 0x0000]);
		if(!var0007) goto labelFunc0632_00F9;
		UI_set_schedule_type_25(var0007, 0x000F);
		var0005 = (var0005 + 0x0001);
		UI_sprite_effect_68(0x001A, var0004[(var0006 - 0x0001)], var0004[var0006], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0007;
		calle();
		UI_set_alignment_4A(var0007, 0x0002);
		UI_set_item_flag_A4(var0007, 0x0012);
		UI_clear_item_flag_A5(var0007, 0x001D);
	labelFunc0632_00F9:
		goto labelFunc0632_005D;
	labelFunc0632_00FC:
		var0008 = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0009, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		gflags[0007] = true;
		var0009 = Func09A0(0x0000, 0x0001);
		var000A = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x0632], 0x0014);
		abrt();
	labelFunc0632_0169:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc0632_027E;
		gflags[0007] = false;
		UI_show_npc_face0_05(0xFEC6, 0x0000);
		UcMessage("\"Blast! The Amulet seems to be protecting ");
		UcMessage(var0002);
		UcMessage("! This shall not be as easy as we were led to believe!\"");
		UcSay;
		UI_show_npc_face0_05(0xFEC8, 0x0000);
		UcMessage("\"Then we shall have to work together...\"");
		UcSay;
		UI_show_npc_face1_06(0xFEC7, 0x0000);
		UcMessage("\"The Guide shall make our aim true! The Guide shall lead the way to our truly perfect world!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UI_remove_npc_face1_08();
		UcMessage("\"Let us be done with this! Once this pathetic pawn is dead we can cross into the new world, and let this decaying husk die as it was meant to!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var000B = ["@Attack!@", "@Die, Dog of Prophecy!@", "@Ha ha ha ha!@"];
		var000C = 0x0001;
		var0009 = Func09A0(0x0005, 0x0001);
		var000D = UI_find_nearby_41(var0009, 0x0299, 0x0014, 0x0000);
		enum();
	labelFunc0632_01F3:
		for (var0010 in var000D with var000E to var000F atend labelFunc0632_0232);
		UI_set_schedule_type_25(var0010, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0010);
		Func097F(var0010, var000B[var000C], (var000C * 0x0002));
		var000C = (var000C + 0x0001);
		goto labelFunc0632_01F3;
	labelFunc0632_0232:
		var0009 = Func09A0(0x0005, 0x0002);
		var0011 = UI_find_nearby_41(var0009, 0x0151, 0x001E, 0x0000);
		enum();
	labelFunc0632_0252:
		for (var0014 in var0011 with var0012 to var0013 atend labelFunc0632_027E);
		UI_set_schedule_type_25(var0014, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0014);
		var000C = (var000C + 0x0001);
		goto labelFunc0632_0252;
	labelFunc0632_027E:
		return;
}
// externs
extern Func063A 0x63A (var var0000);
extern var Func0983 0x983 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func0633 0x633 (var var0000)
{
	var var0001;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc0633_0128;
	if(!gflags[000E]) goto labelFunc0633_001C;
	UI_UNKNOWN_90();
	gflags[000E] = false;
	labelFunc0633_001C:
		exit2();
		item;
		calle();
		if(!(UI_die_roll_17(0x0001, 0x0008) == 0x0001)) goto labelFunc0633_0128;
		if(!(UI_get_item_flag_A3(Dupre, 0x0006) && Func0983(Dupre))) goto labelFunc0633_0084;
		UI_clear_item_say_4E(Dupre);
		Func097F(Dupre, "@I am leaving!@", 0x0000);
		UI_remove_from_party_27(Dupre);
		var0000 = UI_get_object_position_20(Dupre);
		Func09AC(Dupre, var0000[0x0001], var0000[0x0002], 0x000C);
		gflags[02D4] = true;
		exit2();
	labelFunc0633_0084:
		if(!(UI_get_item_flag_A3(Shamino, 0x0006) && Func0983(Shamino))) goto labelFunc0633_00D6;
		UI_clear_item_say_4E(Shamino);
		Func097F(Shamino, "@I am leaving!@", 0x0000);
		gflags[02D5] = true;
		UI_remove_from_party_27(Shamino);
		var0000 = UI_get_object_position_20(Shamino);
		Func09AC(Shamino, var0000[0x0001], var0000[0x0002], 0x000C);
		exit2();
	labelFunc0633_00D6:
		if(!(UI_get_item_flag_A3(Iolo, 0x0006) && Func0983(Iolo))) goto labelFunc0633_0128;
		UI_clear_item_say_4E(Iolo);
		Func097F(Iolo, "@I am leaving!@", 0x0000);
		gflags[02D3] = true;
		UI_remove_from_party_27(Iolo);
		var0000 = UI_get_object_position_20(Iolo);
		Func09AC(Iolo, var0000[0x0001], var0000[0x0002], 0x000C);
		exit2();
	labelFunc0633_0128:
		return;
}
// externs
extern var Func088F 0x88F (var var0000);
extern Func0918 0x918 (var var0000);

Func0634 0x634 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_barge_6D(item);
	if(!var0000) goto labelFunc0634_0064;
	var0001 = Func088F(item);
	if(!(var0001 == 0x0316)) goto labelFunc0634_0041;
	UI_clear_item_flag_A5(0xFE9C, 0x0014);
	UI_set_item_flag_A4(0x0001, 0x000A);
	UI_set_item_flag_A4(UI_get_barge_6D(0xFE9C), 0x001A);
	labelFunc0634_0041:
		if(!(var0001 == 0x00C7)) goto labelFunc0634_0064;
		var0002 = UI_get_item_flag_A3(0xFE9C, 0x0014);
		if(!var0002) goto labelFunc0634_0064;
		Func0918(var0002);
	labelFunc0634_0064:
		return;
}
// externs
extern Func0949 0x949 (var var0000);

Func0635 0x635 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc0635_0063;
	var0000 = UI_find_nearby_41(item, 0x035F, 0x0000, 0x0000);
	var0001 = UI_get_item_frame_1A(var0000);
	if(!((var0001 > 0x000F) && (var0001 < 0x0013))) goto labelFunc0635_0063;
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0635], 0x003C);
	if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc0635_0063;
	Func0949("@Do not thou overcook it!@");
	labelFunc0635_0063:
		if(!(event == 0x0002)) goto labelFunc0635_00F6;
		var0003 = UI_get_object_position_20(item);
		var0004 = UI_find_nearby_41(item, 0x033F, 0x0002, 0x0000);
		if(!(UI_get_array_size_73(var0004) > 0x0000)) goto labelFunc0635_00F6;
		UI_remove_item_84(item);
		var0005 = UI_create_new_object_2C(0x0179);
		if(!var0005) goto labelFunc0635_00F6;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(item, 0x0000);
		var0002 = UI_update_last_created_2F(var0003);
		if(!var0002) goto labelFunc0635_00F6;
		var0006 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0006 == 0x0001)) goto labelFunc0635_00E6;
		Func0949("@I believe the bread is ready.@");
	labelFunc0635_00E6:
		if(!(var0006 == 0x0002)) goto labelFunc0635_00F6;
		Func0949("@Mmm... 'Tis a wonderful aroma.@");
	labelFunc0635_00F6:
		return;
}
Func0636 0x636 (var var0000)
{
	var var0001;

	UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
	if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc0636_006E;
	var0000 = UI_get_object_position_20(item);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0636_006E:
		return;
}
Func0637 0x637 (var var0000)
{
	UI_clear_item_flag_A5(item, 0x001A);
	UI_set_camera_AE(0xFE9C);
	return;
}
Func0638 0x638 (var var0000)
{
	var var0001;

	if(!(event != 0x0001)) goto labelFunc0638_0009;
	exit2();
	labelFunc0638_0009:
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		var0000 = UI_get_item_quality_1C(item);
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		if(!(var0000 == 0x0078)) goto labelFunc0638_00D1;
		UcMessage("SHIP'S LOGBOOK*");
		UcSay;
		UcMessage("Day 24:   Still looking for the miser's treasure.");
		UcSay;
		UcMessage("			   Fair wind and weather all day. The men are as excited as ever.");
		UcSay;
		UcMessage("			   Plundered a passing ship, appropriated some gold and wine.");
		UcSay;
		UcMessage("			   Lost one man in the fight.");
		UcSay;
		UcMessage("Day 31:   Very stormy weather and worse at night.");
		UcSay;
		UcMessage("			   No encounter.");
		UcSay;
		UcMessage("Day 32:   Uneventful except for repairs from last night's storm.");
		UcSay;
		UcMessage("Day 40:	This hideout is not easy to find. The men are becoming nervous.");
		UcSay;
		UcMessage("Day 41:	Ice filling the horizon! Temperature hath dropped.");
		UcSay;
		UcMessage("				We are freezing. The men complain they have never seen");
		UcSay;
		UcMessage("				such weather this time of the year.");
		UcSay;
		UcMessage("				Burning more and more oil to stay warm. Our provisions are");
		UcSay;
		UcMessage("				diminishing rapidly.");
		UcSay;
		UcMessage("Day 45:   Strange how ice magnifies all.");
		UcSay;
		UcMessage("				Leaden sky is upon us. On the word of a pirate, we will");
		UcSay;
		UcMessage("				pierce through this as a sword through soft bellies!");
		UcSay;
		UcMessage("				A day of dead calm.");
		UcSay;
		UcMessage("Day 54:	Was forced to hang a brace of men who stole some food from the cook.");
		UcSay;
		UcMessage("				The weather combined with our disappointing search for the");
		UcSay;
		UcMessage("				miser's base hath created an unbearable atmosphere.");
		UcSay;
		UcMessage("				Ice is surrounding us and it feels as though we are imprisoned in");
		UcSay;
		UcMessage("				this place.");
		UcSay;
		UcMessage("Day 55:	We had a storm last night. Two men were found frozen on");
		UcSay;
		UcMessage("				the quarter-deck. One man missing. He most likely went overboard due");
		UcSay;
		UcMessage("				to the dense and damp fog, in that cold, inky black night.");
		UcSay;
		UcMessage("				This treasure hunt is costing us too many men, and might");
		UcSay;
		UcMessage("				cost us even more...");
		UcSay;
		UcMessage("Day 56:	We are wedged in by an icefloe. Food is running low.");
		UcSay;
		UcMessage("				Frozen land all around us, the ship is trapped.");
		UcSay;
		UcMessage("				And so are we.");
		UcSay;
		UcMessage("Day 57		Much arguing about rations.");
		UcSay;
		UcMessage("				We are down to our last portion. We are but a few survivors,");
		UcSay;
		UcMessage("				bundled in our rags. The terror of the seas, HA!");
		UcSay;
		UcMessage("				We would not scare a mouse these days.");
		UcSay;
		UcMessage("Day 58:   Finishing each other is what we have been doing for");
		UcSay;
		UcMessage("				the last twenty-four hours. Such a waste! 'Tis only the");
		UcSay;
		UcMessage(" 			two of us now and a portion of food, a single portion of food.");
		UcSay;
		UcMessage("				Yet I shall not give in!");
		UcSay;
	labelFunc0638_00D1:
		if(!(var0000 == 0x0079)) goto labelFunc0638_019B;
		UcMessage("JOURNAL~~*");
		UcSay;
		UcMessage("Day 17 -- Everyone is overjoyed that we have actually ");
		UcSay;
		UcMessage("				reached the northern marches, including myself.");
		UcSay;
		UcMessage("				I look forward to setting camp and finding treasure!*");
		UcSay;
		UcMessage("Day 22 -- We were forced to kill a pair of wolves near the encampment.");
		UcSay;
		UcMessage("Day 28 -- The men are upset that no gold hath been found...");
		UcSay;
		UcMessage("				However, I remain confident of our venture.*");
		UcSay;
		UcMessage("Day 40 -- Finding more wolves than gold.");
		UcSay;
		UcMessage("Day 41 -- Gold. At last!");
		UcSay;
		UcMessage("Day 45 -- Women and children are finding gold nuggets.");
		UcSay;
		UcMessage("				How exciting! This is fabulous!");
		UcSay;
		UcMessage("				'Tis finally paying.*");
		UcSay;
		UcMessage("Day 69 -- More have been eaten alive.");
		UcSay;
		UcMessage("				Wolves. More wolves.");
		UcSay;
		UcMessage("				Men behaving like wolves. Worse than wolves.");
		UcSay;
		UcMessage("				They are after our gold.");
		UcSay;
		UcMessage("				For them, life is suddenly worthless.");
		UcSay;
		UcMessage("				How could they value a nugget more than its");
		UcSay;
		UcMessage("				true worth?*");
		UcSay;
		UcMessage("Day 108 -- No one can be trusted.");
		UcSay;
		UcMessage("				Who will be the next target?");
		UcSay;
		UcMessage("				Hopefully, I will survive and my gold will not");
		UcSay;
		UcMessage("				be stolen.*");
		UcSay;
		UcMessage("Day 121 -- Something horrible happened to Hamlin.");
		UcSay;
		UcMessage("				He was found with his throat slit and, ");
		UcSay;
		UcMessage("				of course, his gold was missing.");
		UcSay;
		UcMessage("				This worthless gold that he hath");
		UcSay;
		UcMessage("				painstakingly gathered killed him.");
		UcSay;
		UcMessage("				So, this is what it hath come to...");
		UcSay;
		UcMessage("				Goldthirsty and bloodthirsty bastards.*");
		UcSay;
		UcMessage("Day 127 -- I have finally found a vein of gold, from whence");
		UcSay;
		UcMessage("				I retrieved a small quantity with");
		UcSay;
		UcMessage("				my pick.*");
		UcSay;
		UcMessage("Day 148-149 --  I lay awake on my bedroll all night ");
		UcSay;
		UcMessage("				until dawn, cannot seem to be able to sleep.");
		UcSay;
		UcMessage("				Too many angry thoughts disturbing my mind.");
		UcSay;
		UcMessage("				At daybreak, I rose in a state of exhaustion.*");
		UcSay;
		UcMessage("Day 167 -- More men are fighting amongst themselves.");
		UcSay;
		UcMessage("				I am so weary.");
		UcSay;
		UcMessage("				Is this what I wanted?");
		UcSay;
		UcMessage("				The encampment is split into factions.");
		UcSay;
		UcMessage("				Now, I will cease writing and rest by the");
		UcSay;
		UcMessage("			   fire, gathering much needed strength for");
		UcSay;
		UcMessage("				tomorrow.*");
		UcSay;
		UcMessage("Day 183 -- Draygan betrayed us. Who would have thought it?");
		UcSay;
		UcMessage("				 I think bitterly of his treachery.");
		UcSay;
		UcMessage("				 The ship is burnt. We are doomed.");
		UcSay;
		UcMessage("				 The howling is getting closer...");
		UcSay;
	labelFunc0638_019B:
		if(!(var0000 == 0x007A)) goto labelFunc0638_01B1;
		UcMessage("HAZARD'S LEDGER");
		UcSay;
		UcMessage("~~PELTS~Sales by customer~Expressed in monetari*");
		UcSay;
		UcMessage("...Summer~~Glendor, 3 pelts - 90~~Miri, 1 pelt - 50~~Tranch, 6 pelts - 180 ~~Falco, 3 pelts - 90*Autumn~~Cellia of Monitor, 4 pelts - 88~~Voldin of Fawn, 2 pelts - 90~~ *Early Winter~~Tornaldo of Moonshade, 3 pelts - 1035~~Yelinda of Fawn, 4 pelts - 138~~Jorvin of Fawn, 1 pelt - 34 *Hard freeze~~Marsten of Monitor, 4 pelts - 88~~Brendann of Monitor, 2 pelts - 69~~Fedabiblio of Moonshade, 1 pelt - 34 *Late Winter~~Cellia of Monitor, 2 pelts - 63~~Torrissio of Moonshade, 4 pelts - 140*Early Spring~~Cellia of Monitor, 1 pelt - 35 *Late Spring~~Karl of Monitor, 1 pelt - 25~~Garth of Fawn, 2 pelts - 79~~Marnok, 1 pelt - 35");
		UcSay;
	labelFunc0638_01B1:
		if(!(var0000 == 0x007B)) goto labelFunc0638_020B;
		UcMessage("~~ ~~ ~~BRIGGIO'S BOOK OF ASTONISHING THINGS");
		UcSay;
		UcMessage("~~A compiled volume of items of interest both magical and mundane~~by Briggio of Moonshade*");
		UcSay;
		UcMessage("     In this volume, compiled for easy reference, are some of the many fascinating constructions I have found during my researches. These items range from interesting uses for mundane items to fascinating miscarriages of magic.*");
		UcSay;
		UcMessage("Wands: A trio of terrible weaponry.~");
		UcSay;
		UcMessage("     The three identified varieties of magical wand all seem to have been made for the express purpose of changing the combat-weak spellcaster into a battle-ready automaton. And, for those with the ability to keep them from losing their potency (no small feat of magic, mind thee, but simple for anyone capable of crafting the wand in the first place), they are perhaps the most formidable weapons of their size.~~");
		UcSay;
		UcMessage("Fire Wand: This wand releases a bolt of flaming death. According to all known texts on the subject, the carnage was called \"amazing.\"~");
		UcSay;
		UcMessage("Lightning Wand: The effect of a bolt of lightning as it bursts forth from the wand is as devastating as its counterpart, the fire wand. However, according to one of its proponents, \"the corpses look and smell much less offensive.\"~");
		UcSay;
		UcMessage("Magician's Wand: While only slightly more lethal than the typical bow, this wand is rendered quite effective due to two interesting facets: Its damage is of a most magical nature and more than powerful against monsters with a predilection for challenging mages, and, it NEVER ceases to function. If thou art interested in power and duration, this is the wand for thee.*");
		UcSay;
		UcMessage("FireDoom Staff: Lethality itself.~");
		UcSay;
		UcMessage("This staff, which hurls exploding fireballs that actually seek out a target, is perhaps the most lethal of all magical weapons created in the era of human-gargoyle cooperation. But, as with most of the more powerful magic weapons, its limited life means it may fail thee at the worst of times.*");
		UcSay;
		UcMessage("Glass Swords : A historical legacy of death.~");
		UcSay;
		UcMessage("These single-use swords will almost always kill any creature in a single blow, but they are seldom useful for a second opponent.*");
		UcSay;
		UcMessage("Other Miscellaneous Magical Weaponry.~");
		UcSay;
		UcMessage("As a general case, any person with a modicum of magical talent can identify magical weapons, armour and other apparatus by their pulsating glow. Often, however, the color indicates even more about the item than merely the existence of the enchantment. For example, a green field often denotes a poisoning weapon.~~");
		UcSay;
		UcMessage("Burst Arrows: An arrow of myriad targets.~");
		UcSay;
		UcMessage("The arrow functions as a normal arrow, but upon impact, explodes into a thousand flying shards of death.~~");
		UcSay;
		UcMessage("Venom Dagger : The assassin's tool.~");
		UcSay;
		UcMessage("This shimmering green dagger is actually the enchanted tooth of a poisonous sea serpent, joined to the hilt of a normal dagger. Its envenomed blade injects a slow poison into its victim, but it frequently breaks. It is the perfect assassination weapon (see Alagner's History, Assassination of Baron Johann IV (page 54)).*");
		UcSay;
		UcMessage("Stone Harpy: Unnatural beast.~");
		UcSay;
		UcMessage("The stone harpy is the creation of the twisted mind of the magus. It is reputed to be magically triggered by the close approach of any creature.");
		UcSay;
	labelFunc0638_020B:
		if(!(var0000 == 0x007C)) goto labelFunc0638_02A9;
		UcMessage("~~ ~~ ~~DRINKING SONGS DUPRE TAUGHT ME~~ ~~Volume One*");
		UcSay;
		UcMessage("MAIDS IN TRADES");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("Come all of ye trades and ye tradesmen,");
		UcSay;
		UcMessage("and let ye be wise that are fools.");
		UcSay;
		UcMessage("But remember each day that your trade would decay");
		UcSay;
		UcMessage("if a maid did not look to your tools.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("The blacksmith, the smokey old blacksmith,");
		UcSay;
		UcMessage("'tis known as a jolly old fellow.");
		UcSay;
		UcMessage("But his iron would burn old,");
		UcSay;
		UcMessage("and his fire would grow cold,");
		UcSay;
		UcMessage("If a maid did not blow up the bellows.");
		UcSay;
		UcMessage("And then there's the candlestick maker,");
		UcSay;
		UcMessage("he works up the tallow so quick.");
		UcSay;
		UcMessage("But his craft would be marred,");
		UcSay;
		UcMessage("and the works not get hard,");
		UcSay;
		UcMessage("If a maid did not hold up the wick.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("The ploughman, the jolly old ploughman,");
		UcSay;
		UcMessage("he follows the plow in the silt.");
		UcSay;
		UcMessage("But 'tis ne'er a clod turned,");
		UcSay;
		UcMessage("if a maid had not learned him,");
		UcSay;
		UcMessage("To drive the blade up to the hilt.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("The brewer, the jolly old brewer,");
		UcSay;
		UcMessage("he maketh a very fine ale.");
		UcSay;
		UcMessage("But his brew would be waste,");
		UcSay;
		UcMessage("if there's no maid to taste,");
		UcSay;
		UcMessage("And make sure that it doesn't grow stale.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("So come all ye journeymen, craftsmen,");
		UcSay;
		UcMessage("and all that are apprenticed to trade.");
		UcSay;
		UcMessage("For 'tis ne'er a screw");
		UcSay;
		UcMessage("or a nut would be turned,");
		UcSay;
		UcMessage("If it weren't for the help of a maid!");
		UcSay;
	labelFunc0638_02A9:
		if(!(var0000 == 0x007D)) goto labelFunc0638_033B;
		UcMessage("~~ ~~ ~~DRINKING SONGS DUPRE TAUGHT ME~~ ~~Volume Two*");
		UcSay;
		UcMessage("ROLL THY LEG OVER");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were little white rabbits,");
		UcSay;
		UcMessage("I'd be a hare, and teach them bad habits!");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("Refrain:");
		UcSay;
		UcMessage("Roll thy leg over,");
		UcSay;
		UcMessage("roll thy leg over,");
		UcSay;
		UcMessage("Roll thy leg over");
		UcSay;
		UcMessage("the man in the moon.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were bricks in a pile,");
		UcSay;
		UcMessage("I'd be a mason and lay them in style!");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were cocks in the hay,");
		UcSay;
		UcMessage("I'd be a hen, and I'd have a good lay.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were bats in a steeple,");
		UcSay;
		UcMessage("and I were a bat, there'd be more bats than people.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were bells in a tower,");
		UcSay;
		UcMessage("and I were a clapper, I'd ring every hour!");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were doors of stout wood,");
		UcSay;
		UcMessage("and I were a knocker, I'd bang them up good!");
		UcSay;
		UcMessage("If all the young ladies were stones in a mill,");
		UcSay;
		UcMessage("and I were some grain between them, I'd spill...");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were coconuts sweet,");
		UcSay;
		UcMessage("I'd suck out their juices and chew on their meat.");
		UcSay;
		UcMessage(" ");
		UcSay;
		UcMessage("If all the young ladies were birds in their nests,");
		UcSay;
		UcMessage("I'd be an egg and lie under their breasts.");
		UcSay;
	labelFunc0638_033B:
		if(!(var0000 == 0x007F)) goto labelFunc0638_0359;
		UcMessage("~~ ~~VETRON'S GUIDE TO WEAPONS AND ARMOUR~~ ~~Their effectiveness and value*");
		UcSay;
		UcMessage("Here are listed, for easy comparison, various weapons and their effects upon opponents. Consider them to be rated on a scale of 1 to 100, with the lower valued weapons being less effective upon thine adversary: ~~Axe, two-handed: 10~~Blowgun: 1, causes enemy to fall asleep and be poisoned~~ Bow: 8~~Cannon: 90~~Club 2~~Crossbow: 10~~Dagger: 1~~Halberd: 10~~ Hammer: 4~~Hammer, two-handed: 9~~Knife: 2~~Mace: 5~~Main gauche: 2~~ Morningstar: 5~~Powder keg: 16~~Sling: 3~~Sword: 6~~Sword, two-handed: 11~~ Throwing axe: 4~~Torch: 3~~Whip: 4*");
		UcSay;
		UcMessage("Armour and shields and their protection effectiveness are described here to permit the informed soldier the opportunity to select the armour best suited to his or her fighting style:~~Buckler: 1~~ Chain armour: 2~~Chain coif: 2~~Chain leggings: 2~~Crested helm: 3~~ Curved heater: 3~~Gauntlets: 2~~Gorget: 3~~Great helm: 4~~Greaves: 2~~ Kidney belt: 1~~Leather armour: 1~~Leather boots: 1~~Leather collar: 1~~ Leather gloves: 1~~Leather helm: 1~~Leather leggings: 1~~Plate armour: 4~~ Plate leggings: 3~~Scale armour: 2~~Spiked shield: 2~~Wooden shield: 2*");
		UcSay;
		UcMessage("Here is a list of the better-known enchanted weapons:~~Magic arrow: 4~~Magic axe: 8, can be thrown~~ Magic bow: 12~~Magic sword: 7, very accurate~~Glass sword: 127, breaks*");
		UcSay;
		UcMessage("Enchanted armour:~~Magic armour: 5,~~Magic gauntlets: 3,~~Magic gorget: 4,~~Magic helm: 5,~~Magic leggings: 4,~~Magic shield: 4*");
		UcSay;
	labelFunc0638_0359:
		if(!(var0000 == 0x008A)) goto labelFunc0638_036F;
		UcMessage("~~ ~~THE ART OF FIELD DRESSING~~ ~~by Harnna*");
		UcSay;
		UcMessage("     Though I personally advocate the use of healing herbs and more cleanly bandaging environments, the steps told in this treatise will suffice until better healing care becomes available. Follow these steps carefully, and thou wilt have no trouble forming a reliable, if not perfect, way to prevent serious blood-loss. Remember, however, that there is no care as good as clean sheets, a sturdy bed, and proper attention!~~");
		UcSay;
		UcMessage("     As long as one doth have shears, cloth, and a conscious mind, thou wilt have little fear of bleeding to death on the corpse-littered fields of battle. Simply cut the cloth into strips and bandages. Quickly placing the center of the bandage over the wound, wrap the strip around and around the bleeding area. As the cloth begins to soak with blood, it will combine with the natural healing aspects of the body to staunch the flow of blood and to quicken the healing process. In no time, thou wilt be ready to travel again (though I advise this travel be to the house of a competent healer!).");
		UcSay;
	labelFunc0638_036F:
		if(!(var0000 == 0x008D)) goto labelFunc0638_03A1;
		UcMessage("MY NOTEBOOK~~    Anonymous~~");
		UcSay;
		UcMessage("     The observations enclosed herein are based on mine experiments.");
		UcSay;
		UcMessage("Reader, for thy sake and thy thirst for knowledge, I have decided to provide thee with the following accounts.");
		UcSay;
		UcMessage("Long ago, when I accidentally landed on this world, the primitive sentients living here erected a temple to me and my 'chariot.' But they were boring and impetuous!");
		UcSay;
		UcMessage("Soon, the cats emerged as a more likeable group than any other creatures. Thereafter, I was to begin some experiments on them. Quite successful indeed. My liking for these cats caused me to contemplate how to widen and strengthen their intelligences.");
		UcSay;
		UcMessage("Thereupon, I set out to modify the Power Generator. Thus began the experiments. The Generator provided the felines with a more obdurate life energy, one which was most difficult to suppress -- the cats die, yet with stubborn energy return once again to life! The side effect is that strange glow which surrounds them.");
		UcSay;
		UcMessage("After several manipulations I was successful in increasing their lives up to nine times. Thus no one would be able to truly defeat them until their ninth life.");
		UcSay;
		UcMessage("The source of all extra life resides in the Power Generator.");
		UcSay;
		UcMessage("Dear reader, make of mine experiments what thou wilt.");
		UcSay;
		gflags[0298] = true;
	labelFunc0638_03A1:
		if(!(var0000 == 0x0096)) goto labelFunc0638_0437;
		UcMessage("~MINE EXPERIMENTS~~ by Teldrono*");
		UcSay;
		UcMessage("~This book belongs to Teldrono~The Mage*");
		UcSay;
		UcMessage("	For thee,  bright reader, I have been deep in the heart of darkness");
		UcSay;
		UcMessage("in search of the Way. The Way to reverse or even negate the effects");
		UcSay;
		UcMessage("of Bloodspawn hath been my quest. Stoneheart is also on my mind, thou");
		UcSay;
		UcMessage("art right, so right... By the way, dear reader, if thou shouldst know how to obtain");
		UcSay;
		UcMessage("some, contact me immediately. I thank thee in advance for thy kindness.");
		UcSay;
		UcMessage("Let us begin, for I am losing track of what thou art interested in.");
		UcSay;
		UcMessage("Thou art not afraid of dying, art thou?  Well, then I shall proceed");
		UcSay;
		UcMessage("and tell thee what all this truly concerns.");
		UcSay;
		UcMessage("The more I would experiment with it, the closer I would come to success.");
		UcSay;
		UcMessage("That was mine intuition. Well, I must admit it did not work.");
		UcSay;
		UcMessage("Bloodspawn is bound to have some side effects. I do not know which yet.*");
		UcSay;
		UcMessage("The heart of the matter, if I may say so dear reader, is that thou art");
		UcSay;
		UcMessage("about to take possession of a secret. Darkness may fall upon thee at the very same time. I recommend thou beest extremely careful, a fatal accident is easily triggered when manipulating those forces.");
		UcSay;
		UcMessage("In the heart of the mountain, I found the red-orange mineral. I collected samples and, after many a transformation, I turned it into the Forbidden Reagent. Thou art certain, dearest reader,");
		UcSay;
		UcMessage("that thou fearest death no more? I want to make it clear this is nothing like what thou hast seen before... Many a mage's life was taken away.*");
		UcSay;
		UcMessage("		How did I turn it into a powerful magical reagent, thou askest?");
		UcSay;
		UcMessage("Yes, indeed, how? Oh! I remember, thou hast only to crush it into a fine powder.");
		UcSay;
		UcMessage("Then, thou dost combine the powder with fresh human blood. 'Tis just so!");
		UcSay;
		UcMessage("		This powerful reagent, too powerful for my fellow mages who were fools enough to lose their lives, enables thee to create some spells.");
		UcSay;
		UcMessage("It might make possible the spells to flay men's minds, or set swords into dancing death, or to decimate entire cities.");
		UcSay;
		UcMessage("Mass death. Well, think of it, thou mayest be able to make matter disintegrate, and ");
		UcSay;
		UcMessage("even call lightning to thy service, if I recall correctly mine experiments. These are the powers of Bloodspawn.*");
		UcSay;
		UcMessage("		Dear reader, thou art now ready to experiment, or ready to lose thy life.");
		UcSay;
		UcMessage("Remember how careful thou shouldst be when carrying it. Finding safe means to");
		UcSay;
		UcMessage("avoid the Bloodspawn's side effects is of primary concern.");
		UcSay;
		UcMessage("Herein, I did give thee all thou wilt ever need to know.");
		UcSay;
		UcMessage("Thou mightest want to be prepared for fits. Experimenting with Bloodspawn");
		UcSay;
		UcMessage("and Stoneheart will trigger numerous disorders. Many a time did I attempt");
		UcSay;
		UcMessage("to delay the onset of the fits, all in vain, alas. The future doth not");
		UcSay;
		UcMessage("seem to be a long shining path. I even wonder how long I will");
		UcSay;
		UcMessage("remain sane. Thou art the reason why I wrote such a book, dear reader, it");
		UcSay;
		UcMessage("is for thee to read and for thee to take our place once I be gone.");
		UcSay;
		UcMessage("This powerful knowledge painfully extracted from the heart of darkness must outlive us. Thou shalt continue!");
		UcSay;
	labelFunc0638_0437:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func063A 0x63A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	exit2();
	var0000 = UI_die_roll_17(0x0001, 0x0004);
	if(!(var0000 == 0x0001)) goto labelFunc063A_001E;
	var0001 = "@Art thou sure of thine actions, Avatar?@";
	labelFunc063A_001E:
		if(!(var0000 == 0x0002)) goto labelFunc063A_002E;
		var0001 = "@Must we do this?@";
	labelFunc063A_002E:
		if(!(var0000 == 0x0003)) goto labelFunc063A_003E;
		var0001 = "@Is that virtuous?@";
	labelFunc063A_003E:
		if(!(var0000 > 0x0003)) goto labelFunc063A_0056;
		var0001 = (("@" + Func0953()) + "?!@");
	labelFunc063A_0056:
		var0002 = Func0992(0x0001, var0001, 0x0000, false);
		exit2();
		return;
}
Func063B 0x63B (var var0000)
{
	var var0001;
	var var0002;

	if(!(event != 0x0001)) goto labelFunc063B_0009;
	exit2();
	labelFunc063B_0009:
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		var0000 = UI_get_item_quality_1C(item);
		UI_play_sound_effect2_A1(0x005E, item);
		UI_book_mode_6A(item);
		if(!(var0000 == 0x00B6)) goto labelFunc063B_004D;
		UcMessage("~OBSERVATIONS OF PAIN~~ by MageLord Filbercio*");
		UcSay;
		UcMessage("I. Introduction");
		UcSay;
		UcMessage("~~     We have always thought of \"pain\" as the unpleasant reaction of a being's nervous	system to certain environmental stimuli. But through my recent studies, I believe that I have come to understand pain as a state of mind, rather than a simple physical reaction.");
		UcSay;
		UcMessage("     It is very easy to inflict physical pain on someone. A casual look about my laboratory will prove that. Iron maidens, thumbscrews, and racks are all useful for this purpose, but what should be done for the person who can literally accept and even ignore physical pain? In this case, a test of one's mental faculties shall be necessary. Research thy subject carefully, and discover what tears into his soul. Understand his psyche, and use what thou dost discover to help augment the physical torture.");
		UcSay;
		UcMessage("     We will look now at a few examples. Suppose thou dost want to cause a harpsichordist pain. Thumbscrews are the obvious choice, but why not add to his experience by playing the blissful tune \"Sea Shanty\"? This should produce some very good results. Similarly, if the subject is a writer, strapping him to \"the rack\" and reading from the dismal \"Sir Trout's Plot Guide\" will have him writhing.");
		UcSay;
		UcMessage("     Throughout these pages, thou wilt find even more insidious ways to produce pain. Read them well, and thou wilt never be disappointed with the results.");
		UcSay;
	labelFunc063B_004D:
		if(!(var0000 == 0x00B8)) goto labelFunc063B_0077;
		UcMessage("~POETRY FOR THE ROMANTIC LUTE~~ by Sir D. Dey*");
		UcSay;
		UcMessage("\"Soliloquy\"~~~");
		UcSay;
		UcMessage("I gave my love a chicken");
		UcSay;
		UcMessage("   that had no bone");
		UcSay;
		UcMessage("I gave my love a cherry");
		UcSay;
		UcMessage("   that had no stone");
		UcSay;
		UcMessage("I wrote my love a story");
		UcSay;
		UcMessage("   that had no end...");
		UcSay;
	labelFunc063B_0077:
		if(!(var0000 == 0x00C9)) goto labelFunc063B_0121;
		UcMessage("~~ ~~ NOTES~~ ~~by Erstam*");
		UcSay;
		UcMessage("Decade 1:");
		UcSay;
		UcMessage("This is a new era for me. This newfound land is marvelous!");
		UcSay;
		UcMessage("A great destiny awaits our people and thee, Erstam!");
		UcSay;
		UcMessage("So much to learn from this land, I am overcome with joy. So much to learn about its fauna and flora, I must start early in the morning.");
		UcSay;
		UcMessage("Tonight sleep is not to be found. I must go out, explore and meet the creatures of the night.");
		UcSay;
		UcMessage("2nd Year of Third Decade:");
		UcSay;
		UcMessage("Last night I decided to explore the catacombs of the city. I left as fast as I went in. This is not for a man of mine age. The place was filled with creatures unknown to me at this point. My mind doth not know how to describe them. The best description I can conjure is to say that they were some sort of monster, half-man half-rat.*");
		UcSay;
		UcMessage("4th Decade, 1st Year:");
		UcSay;
		UcMessage("I am still amazed at the variety and abundance of wildlife.");
		UcSay;
		UcMessage("Thy grip on nature is always fragile at first, Erstam, remember?");
		UcSay;
		UcMessage("As often as not, I would run into a monster or an unknown species.");
		UcSay;
		UcMessage("I vividly remember, dear reader, the strange cat I encountered");
		UcSay;
		UcMessage("tonight. It was eerie. The cat glowed like a spell. I left in great haste fearing for my life. Such a cat must have a strange effect upon us. I wonder what deranged mind created such a danger.");
		UcSay;
		UcMessage("5th Decade, Third Year:");
		UcSay;
		UcMessage("Found some ruins not too far from here.");
		UcSay;
		UcMessage("Interesting discovery of a jawbone and large fangs. A relic from an ancient culture?*");
		UcSay;
		UcMessage("7th Decade, 4th Year:");
		UcSay;
		UcMessage("Today, I encountered a strange white-haired creature from the icy lands; it seemed to be a cross between Man and Beast.");
		UcSay;
		UcMessage("Found the clue to how the Ophidians stepped from place to place without travelling through the space between. The answer lies in the Void!");
		UcSay;
		UcMessage("2nd Year of the Eighth Decade:");
		UcSay;
		UcMessage("That was the most frightening time so far. Dearest reader, thou wilt not believe me, but let me assure thee of the veracity of this tale. I was wandering in the forest at the northeast edge of town, when I heard this stentorian noise, this growl. I was petrified. Directly in front of me, a terrifying predator, the beast stood erect on its feet, towering well over mine height. Its huge claws and sharp teeth sent a chill down my poor old spine. I still shiver thinking of it when writing these words.");
		UcSay;
		UcMessage("The creature lunged for my backpack, tore it asunder and devoured all of the honey jars I had saved for the outing.*");
		UcSay;
		UcMessage("6th Year of Eighth Decade:");
		UcSay;
		UcMessage("Those jealous mages stole some secrets and powers from me.");
		UcSay;
		UcMessage("They want the Teeth, I am certain of it! I shall have to take up residence on some isle, where they cannot find me...");
		UcSay;
		UcMessage("3rd Year of Ninth Decade:");
		UcSay;
		UcMessage("I stood all night working on a few formulas.");
		UcSay;
		UcMessage("Dawn already. What a chill bleak morning.");
		UcSay;
		UcMessage("Need to throw more wood in the fire.");
		UcSay;
		UcMessage("4th Year of Ninth Decade:");
		UcSay;
		UcMessage("Today, icy blew the winds from beyond the Frozen Lands.");
		UcSay;
		UcMessage("If this lasts I will have to make more dried meat.");
		UcSay;
		UcMessage("Food is low. Need more firewood.");
		UcSay;
		UcMessage("6th Year of Ninth Decade:");
		UcSay;
		UcMessage("The day passed rather rapidly, uneventfully.");
		UcSay;
		UcMessage("8th Year of the Ninth Decade:");
		UcSay;
		UcMessage("What a beautiful sunrise!");
		UcSay;
		UcMessage("I can almost taste the salt breeze from the sea.");
		UcSay;
		UcMessage("How invigorating!");
		UcSay;
	labelFunc063B_0121:
		if(!(var0000 == 0x00D1)) goto labelFunc063B_01EB;
		UcMessage("~~ ~~A SHORT TREATISE ON COMBAT TACTICS & HABILIMENTS OF WAR*");
		UcSay;
		UcMessage("~Introduction~");
		UcSay;
		UcMessage("	~Trusty and well-beloved adventurer, I greet thee well and thank thee for reading this short treatise.  Herein, combat tactics will be described for thy benefit in setting forth, dearest adventurer.");
		UcSay;
		UcMessage("Thou wilt learn how to read a book and how to fight intelligently in our worlds.");
		UcSay;
		UcMessage("	Thy safety is important for the worlds are vast enough for thee to roam freely about. Restless warrior, I know thou hast oft crisscrossed the land and oft the swamps, so think how easy a prey an injured man would be for the creatures who inhabit these realms.");
		UcSay;
		UcMessage("~	The basic rule of safety in combat and in unknown territories is not to think of thyself as over-mighty. Thou mayest be witty and subtle in thy speech, but thou must be even more alert and aware of thy combat environment. Adapt to thine opponent, to the weather and to the terrain.*");
		UcSay;
		UcMessage(" 	Know thyself, know thine opponent. Thou shalt know thy limits. Thou shalt identify as quickly as possible what kind of creature thou art faced with so that thou canst use the most appropriate strategy.");
		UcSay;
		UcMessage("	For example, know that herbivores will flee quite oft.");
		UcSay;
		UcMessage("On the other hand, carnivorous creatures attack the weakest opponent.");
		UcSay;
		UcMessage("Some creatures will attack at random or toward the weakest party member.");
		UcSay;
		UcMessage("Thou shouldst expect militiamen and guards to use tactically accurate strategies. The weakest member will be attacked, flanking will be used, as well as tactical retreats, and so forth...*");
		UcSay;
		UcMessage("		Always use logic. Creatures from the Icy Lands will be more susceptible to fire, for example, and swamp creatures are immune to poison.");
		UcSay;
		UcMessage("When attacking foes, a good strategy is easily available to thee: thou canst always hide and shoot. Or thou canst flank and protect thyself quite well. When flanking, it is best to use some long range type of habiliment. For example, a crossbow could be given to an ally who is flanking. Make sure the ally who is flanking does not hurt any of the other members in thy group. Caution is strongly advised.");
		UcSay;
		UcMessage("		Use thine habiliment of war well. A bow always requires arrows. Ensure thou art not short of ammunition or wielding a useless weapon.");
		UcSay;
		UcMessage("		Use thy surroundings to slow thine opponents. For example, thou mayest lay down caltrops on thine enemy's path.");
		UcSay;
		UcMessage("		Most of all, always maintain a good balance between ranged and non-ranged habiliment of war within thy travelling group.*");
		UcSay;
		UcMessage("		Upon leaving a town for thine adventures in the wilderness, do stop by the various shoppes to purchase a backpack and fill it with many a variety of foods. Long trips without food will leave thee weak and more susceptible to wounds from thine enemies' attacks. Thou shalt not bypass a trainer's hall. Thou shouldst train hard to become a better warrior. Visit trainers and learn from them. Those hours spent training with masters may save thy life.*");
		UcSay;
		UcMessage("		While it is necessary to use armour wisely, I recommend to thee to buy armour as soon as possible. In doing so take into consideration the following qualities: weight, sturdiness, protection.");
		UcSay;
		UcMessage("Armour may be divided into the two types appearing hereunder:");
		UcSay;
		UcMessage("	- antique");
		UcSay;
		UcMessage("	- magic");
		UcSay;
		UcMessage("The magic armour type is almost twice as effective in protecting thee as the antique one.");
		UcSay;
		UcMessage("Antique armour includes leather, metal scales, chain mail and metal plates. The sturdier the material, the greater the protection.");
		UcSay;
		UcMessage("Leather armour, boots, collar, gloves and helm offer the least protection. On the other hand, they will be the lightest.");
		UcSay;
		UcMessage("Scale armour and chain armour, chain coif and chain leggings are a bit better than leather, but not overmuch.*");
		UcSay;
		UcMessage("Shields: a buckler or a wooden shield will provide thee with the least amount of protection in this category. A brass shield or a curved heater will provide thee with the most protection. By protection, thou shouldst understand that thine attacker will be deflected away from thee.");
		UcSay;
		UcMessage("Amongst helms, thy choice is great and the best protection comes from the magic helm. The great helm is nearly as efficient, though. The crested helm and the caddelite helm do offer the same amount of safety.");
		UcSay;
		UcMessage("Chain armour, chain coif, and chain leggings will decrease very little the impact of enemy blows. ");
		UcSay;
		UcMessage("Thou wilt need a gorget and some greaves for those exposed vital areas. A kidney belt could be useful but, I must needs warn thee, of little protection.");
		UcSay;
		UcMessage("Plate armour offers solid protection for thy money. I would recommend a pair of plate leggings as well.");
		UcSay;
		UcMessage("The ultimate protection, in matters of armour, at this point in time, is as follows: a magic helm, a magic shield, a magic gorget, a pair of magic leggings and some magic gauntlets.*");
		UcSay;
		UcMessage("		Dearest fighter, for thine ease I will divide weapons into groups. Thus, at one glance, thou mayest easily remember their efficiency. I will begin with the least damaging weapons:");
		UcSay;
		UcMessage("	Blowguns, boomerangs, daggers, slings, pitchforks, picks and whips have very little effect.");
		UcSay;
		UcMessage(" A magic axe, a mace, a morning star, a two-handed axe, a spear, a shovel or a sword are of limited effect upon thine opponent.");
		UcSay;
		UcMessage(" A scythe, a bow, a fire sword, a musket, or a two handed hammer are slightly more damaging.");
		UcSay;
		UcMessage(" Crossbows (my favorite), halberds, lightning whips, magic bows, fire wands and fire bolts are very powerful weapons.");
		UcSay;
		UcMessage("Find the best weapon and armour thou canst obtain.");
		UcSay;
		UcMessage("Remember all weapons ought to be kept ready for immediate use.");
		UcSay;
		UcMessage("One more word of wisdom:");
		UcSay;
		UcMessage("Do not neglect thy sleeping time. Sleeping frequently will give thee the rest fighters need. An eight hour sleep will restore full strength for thee and thine allies.*");
		UcSay;
		UcMessage("	If thou hast weak allies, thou shouldst know the most suitable and productive method of combat is to prompt them to attack the weakest enemy or encourage them to flee. In order to protect a weak ally, thou shouldst bestow the protection halo on them. In addition to that, thou mayest put the strongest member in thy group in charge of protecting the weakest.");
		UcSay;
		UcMessage("	When attacking foes, a good strategy is easily available to thee: thou canst always hide and shoot. Or thou canst flank and protect thyself quite well. When flanking, it is best to use long range type of habiliments, for example, a crossbow. Be sure the member of thy group who is flanking doth not hurt any of thine other allies. Caution is strongly advised.");
		UcSay;
		UcMessage("	Thy band members armed with heavy weapons should be swift to attack the strongest opponent. Other members should follow thy guidance and attack the weakest enemies.");
		UcSay;
		UcMessage("		When reading a book, look for useful information and memorize it or jot it down, for thou mayest have need of it later. Read quickly, but read all pages. I cannot emphasize enough the importance of reading all of the pages of a book.*");
		UcSay;
		UcMessage("Conclusion");
		UcSay;
		UcMessage("~	Dearest adventurer, I beseech thee to thoroughly consider the aforesaid cautions and advice.");
		UcSay;
		UcMessage("The reason that I wrote such a treatise is to sharpen thy fighting skills, but thou canst tell that is not a goal in itself.");
		UcSay;
		UcMessage("My goal in using my quill is truly to convince thee with all mine heart and all mine expertise to hasten home safely once thy quest hath been completed and thy thirst for adventuring quenched.");
		UcSay;
	labelFunc063B_01EB:
		if(!(var0000 == 0x00D3)) goto labelFunc063B_01FD;
		UcMessage("~~ ~~THE SLEEPING SOLDIER~~ ~~Registry*");
		UcSay;
		UcMessage("    ~ ~Gwenno~ ~Alinda of Monitor~ ~Batlin the Sage~ ~Draygan~~Peter of Monitor");
		UcSay;
	labelFunc063B_01FD:
		if(!(var0000 == 0x00D4)) goto labelFunc063B_021B;
		UcMessage("~~ ~~A TREATISE ON TORTURE~~by Evad, Royal Servant to the~~King of the White Dragon*");
		UcSay;
		UcMessage("    I have been given the privilege of chronicling the King's romp through madness. As a reward, I will be slain quickly. His Majesty began with a commoner named Patric, stretching him on the rack. By his own hands, His Majesty turned the man to a babbling wretch over the course of twelve hours.");
		UcSay;
		UcMessage("   ...After boiling the flesh from a family of farmers, His Majesty became inspired. He restrained a noble, a guest at the great banquet, upon the torture table and applied tourniquets to each of his limbs. One by one the limbs became useless strands of dead flesh. He showed mercy on the victim by killing him only five hours later by opening numerous small wounds on his person and letting him bleed to death.*");
		UcSay;
		UcMessage("The King of the White Dragon killed his own wife by slaying a bull, slitting open the carcass, and placing her, tied securely, into the opening. He then sewed the opening shut such that naught but her head protruded.");
		UcSay;
		UcMessage("He sat outside and watched as the carcass decayed around her and vultures and other carrion beasts picked apart the meat -- the bull's and hers...");
		UcSay;
	labelFunc063B_021B:
		if(!(var0000 == 0x00D5)) goto labelFunc063B_0245;
		UcMessage("~~ ~~PRINCIPLES OF ECONOMICS~~ ~~By Hyle*");
		UcSay;
		UcMessage("    Economics is, simply put, the study of how an entity could most efficiently allocate its limited resources. I use the word \"Entity\" because these principles, moderately adjusted, may be applied on different levels.*");
		UcSay;
		UcMessage("    From the largest, and consequently least detailed, level -- that of a worldwide market in which the intricacies of trade and specialization are most emphasized, to an individual business's or, smaller still, an individual's struggle to gain maximum utility from the limited funds provided by that person's livelihood.*");
		UcSay;
		UcMessage("    Let us begin by defining some simple, underlying theories which may dictate the behavior of our target, which, for the purposes of this book, will focus on the economy as a whole. I intend later to publish a separate document on the wholly different level of business and/or individual-level economic fundamentals.*");
		UcSay;
		UcMessage("    As is the case in any science, one must first be given a foundation upon which to build his knowledge; in this particular instance, I will refer to the \"Tower of Economic Understanding.\"*");
		UcSay;
		UcMessage("    The market is the basis of my study. A market is not a tangible thing -- not like the marketplace at which one might trade with merchants for needs or wants (these I will define further into the book), although a marketplace is a part of the market.*");
		UcSay;
		UcMessage("    Rather, the market consists of the consumer (the entity purchasing the resource) and the seller (the entity offering the resource for sale or trade). For example, at the aforementioned marketplace, the baker, offering a loaf of bread, would be the seller, and an entity interested in purchasing the loaf would be the consumer.*");
		UcSay;
		UcMessage("    A market exists when there is a resource to be exchanged. A resource, in simplest terms, can be either a good or a service. A good is a tangible item -- examples include water, diamonds, and false beards. A service is something which is performed by an entity; e.g. the service a cargo ship supplies or even governmental bodies such as a standing garrison of soldiers...");
		UcSay;
	labelFunc063B_0245:
		if(!(var0000 == 0x00D6)) goto labelFunc063B_025F;
		UcMessage("~~ ~~THE DWELLERS OF SERPENT ISLE~~  ~~By Byman*");
		UcSay;
		UcMessage("    One quarter of a millennium ago, the man-daemon Lord British impressed upon the citizens of Sosaria his Eight Virtues. Most of the citizens were deluded into believing that his way of life was just and fair. Some were strong enough to oppose his rule and fled to begin their own civilization, free of the oppressive autocracy.*");
		UcSay;
		UcMessage("    These brave folk, led by a mage whose bravery is now sadly forgotten, ventured out to sea, with little idea as to their destination; only a firm belief that Lord British was a tyrant whose rule was not to be tolerated. Erstam led them to a large island, which was instantly christened \"New Sosaria.\" The land's name was changed shortly thereafter to \"Serpent Isle,\" after the strange ruins found there.*");
		UcSay;
		UcMessage("    There were three principal groups who left Sosaria -- the Mages of Moon, the chivalrous folk of the Two Montors, and the folk of the port city of Fawn. Each had their own reasons for joining in the emigration: the mages because they felt that certain of Lord British's virtues were unrealistic; the Fawnese because Lord British had failed to acknowledge a ninth virtue -- Beauty; and the brave folk of Monitor because of their belief that Courage ranked above all else...");
		UcSay;
	labelFunc063B_025F:
		if(!(var0000 == 0x00D7)) goto labelFunc063B_0281;
		UcMessage("~~ ~~COURAGEOUS DEEDS~~ ~~By Andrew of Monitor*");
		UcSay;
		UcMessage("~~ CHAPTER ONE~~  ~~The tale of Kosric and Pedigar*");
		UcSay;
		UcMessage("	The brothers Kosric and Pedigar sailed with the original expedition to Serpent Isle, when the land was more unknown and mysterious than it is today. Each brother was the Lord of one of the two Montors on Sosaria, and, not content to settle for Lord British's uncompromising and misguided rule, convinced their people to set sail with the mages of Moon and the people of Fawn to the new land.*");
		UcSay;
		UcMessage("	Lost in the history books of the other two cities, however, is the tale of what happened when the tired sojourners first set foot on this new land. The leader, a mage who went by the name Erstam (it surely could not be the same mad Erstam who performs intolerable experiments today), was given the honor of stepping first on Serpent Isle. It was then up to the leaders of the individual groups to decide who would next trod upon the unknown isle. Kosric and Pedigar claimed the right, as their group were the finest warriors among them. The Fawnese claimed it also, arguing that their beauty should mingle with the beauty of the new island before anyone else. The Moonshadian mages, being untrustworthy, teleported themselves onto the island while the other two groups were engaged in discussion, stealing the honor.*");
		UcSay;
		UcMessage("	The greatest honor gone, the Fawnese and Monitorians descended the gangplank together. The Moonshadians scattered themselves like the four winds before they could be reprimanded, and the Fawnese ran to explore the beauty of the island. At that moment, emerging from the hills and woodlands, trolls began an assault on the intrepid band. Were it not for Kosric and Pedigar and their Monitorian soldiers, the expedition would have failed then and there, for the Fawnese and Moonshadians were caught unawares. However, the two launched themselves at the foes, Kosric wielding his hammer, \"Thunderbolt,\" and Pedigar with his greatsword, and brought doom upon the foul trolls.*");
		UcSay;
		UcMessage("	When the battle was over, a score of courageous Monitorians lay dead beside the bodies of twice that number of trolls. Let it not be forgotten, brave Monitorian, that it was thine ancestors who led the way for all civilized life on this island.");
		UcSay;
	labelFunc063B_0281:
		if(!(var0000 == 0x00D8)) goto labelFunc063B_0297;
		UcMessage("~~ ~~RECIPE BOOK~~ ~~By Petra*");
		UcSay;
		UcMessage("Apple Way~ ~ 2 apples, peeled and sliced~ 1 cup sugar~ 2 tablespoons of corn starch~ 2 tablespoons of butter~ 1 teaspoon cinnamon~ 1 double pie crust*");
		UcSay;
		UcMessage("Place the apples, sugar, cornstarch, and cinnamon into a large bowl and combine them. Put the mixture into the bottom pie crust with the butter. Put on top pie crust and cut slits for steam to escape. Bake in 350 degree oven for about 45 minutes.");
		UcSay;
	labelFunc063B_0297:
		if(!(var0000 == 0x00D9)) goto labelFunc063B_02BD;
		UcMessage("~~ ~~RECIPE BOOK~~ ~~By Petra*");
		UcSay;
		UcMessage("Sweet Muffins~ ~ 3/4 cup milk~ 1/2 cup sugar~ 2 teaspoons salt~ 1/2 cup butter~ 1/2 cup warm water~ 5 ounces of yeast~ 1 egg~ 4 cups unsifted flour~*");
		UcSay;
		UcMessage("Scald milk, stir in sugar, salt, and butter. Cool to lukewarm. Measure warm water into a large warm bowl. Add yeast and stir until dissolved. Stir in lukewarm milk mixture, egg, and half of the flour, and beat until smooth. Stir in remaining flour to make a stiff batter. Cover the bowl tightly with waxed paper. Refrigerate the dough at least two hours.*");
		UcSay;
		UcMessage("Divide dough into two halves and roll each piece into a 9 by 14 inch rectangle. Brush lightly with melted butter.");
		UcSay;
		UcMessage("Filling:~ Sprinkle the rectangle with a mixture of 3/4 cup sugar, 1 teaspoon cinnamon, and 1/3 cup raisins and pecans. Roll the rectangles so that they are 9 inches long (like a jelly roll).  Make sure the edges are firmly sealed.*");
		UcSay;
		UcMessage("Cut each roll into nine equal pieces and place them in a greased pan (leave enough room for the pieces to expand). Cover the pan and let the dough rise in a warm place until the rolls have doubled in size. Bake at a moderate temperature (350 F degrees) for about 30 minutes.*");
		UcSay;
		UcMessage("Frosting:~ Frost with a mixture of confectioner's sugar (1 1/2 cup) and 5 teaspoons of milk.");
		UcSay;
	labelFunc063B_02BD:
		if(!(var0000 == 0x00DD)) goto labelFunc063B_02D7;
		UcMessage("~~ ~~FIGHTING IS AN ART~~ ~~By Johnson*");
		UcSay;
		UcMessage("~  Lesson One: ~   In fighting, thou must never lose, no matter what thou must do. Anyone fighting thee is an enemy. An enemy must be destroyed. ~	During battle thou wilt be confronted by thine enemy. Thou must defeat him, or thou wilt bring disgrace upon thyself, thy clan, and thy trainer. ~    Battles are always on the horizon. Thou must train hard, and work thyself hard. Thou must think battle, eat battle, sleep battle if thou dost expect to be victorious. Those warriors who do not think they can do this should contemplate another line of work.");
		UcSay;
		UcMessage("~   Knowing thy weapon is the greatest value. Be it sword, mace, or bow, thou must train with it until mastery if thou dost want to be a true warrior. If thou hast not the time or the mind to train in this fashion then thou shouldst perhaps train with the shovel and the carrying of animal wastes from the fields instead. It is better for thee to serve thy clan as best as thou canst, though it be a less than knight-worthy post, than for thee to run in battle and endanger thy comrades.");
		UcSay;
		UcMessage("	 Anyone caught running away from a battle should be put to the sword immediately, lest others feel that they may let their womanish fears prevail. The true knight is not he who fights battles, but he who relishes in the spilling of blood. He who is enthralled with the smell of a bowel split wide, or the sight of anothers' blood staining his sword and armour, should be praised above all. This is what a true knight seeks. He is a true master in the arts of fighting.");
		UcSay;
	labelFunc063B_02D7:
		if(!(var0000 == 0x00DE)) goto labelFunc063B_0311;
		UcMessage("~~ ~~ Lord British's Tyrannical Adventure ~~ ~~by Anon *");
		UcSay;
		UcMessage("~Lord British was a monarch who was haughty and vain ~And especially proud of his despotic reign. ~But conceit of this sort isn't proper at all ~And soon the old tyrant was doomed for a fall. ~One day as he viewed his subjects from on high, ~A voluptuous young wench caught his tired old eye.*");
		UcSay;
		UcMessage("~Bending over to see, that oversexed goat ~Let his gold crown slip and fall into the moat. ~With a cry of sheer terror he jumped like a fool, ~he rushed to his ditch (it reeked like a cesspool).*");
		UcSay;
		UcMessage("~He leaped in kersplash! and sank like a stone. ~(Everyone hoped for a new heir to the throne.) ~But alas he came up and staggered from the sewer, ~his robes smelled of offal, his breath like manure.*");
		UcSay;
		UcMessage("~\"Why did I do that? What possessed me today? ~I'm as daft as old Iolo, and now I smell like Dupre.\" ~\"And if anyone sees me, oh what a disgrace, ~I had better leave if I want to save face!\"");
		UcSay;
		UcMessage("~But a crowd had assembled and stared, amazed, ~the sight confused them, the stench left them dazed. ~Then with a shriek a young boy began to laugh, ~giggling and pointing at the king's fecal bath.*");
		UcSay;
		UcMessage("~Becoming enraged, the monarch suddenly turned wild, ~He looked like he wanted to strangle the child! ~His hand turned to fist, he struck lightning fast, ~but the old poop missed, and fell on his ass.");
		UcSay;
		UcMessage("~Not holding back, the crowd soon roared, ~The laughter was deafening. It grew till it soared. ~But the king found no humor and called for his men. ~The arrival of the guard quickly silenced the din.*");
		UcSay;
		UcMessage("~\"For all of you who found humor in my sorrow and misfortune ~Will soon find the rack! And pain! And contortion! ~Then I will cackle as you stew and boil, ~in a pot full of lard and bubbling oil.*");
		UcSay;
		UcMessage("~And for those who survive this (they'd liefer be dead), ~I'll pluck out their eyes, and chop off their head! ~Finally in the wind their bodies will swing, ~Then you fools will be sorry for laughing at this king!\"*");
		UcSay;
		UcMessage("~Then all were led away at the point of a sword, ~While old Lord Brit took a dip in a ford. ~Then he laughed at the cries that screamed through the night, ~He chuckled at their anguish, he cackled at their plight.*");
		UcSay;
		UcMessage("~In Britannia today no one openly tells this tale, ~lest they find themselves thrown in tyrant's darkest jail. ~But here in our new homeland this song can be sung, ~the tale of how British acquired his faint smell of dung.");
		UcSay;
	labelFunc063B_0311:
		if(!(var0000 == 0x00DF)) goto labelFunc063B_0327;
		UcMessage("~~ ~~The Crying Lute ~~ ~~By Gannt*");
		UcSay;
		UcMessage("~The lute in mine hands as I softly strum, ~cries for it knows the hollow man I have become, ~of my tragedy, of my sorrow, of my lonely despair. ~Only my lute listens, alone, only it cares. ~ ~Though I am a knight, ~and mine emotions I hide, ~I still feel the soul-eating darkness inside. ~I am a man of armour and a man of the sword, ~but the blackness I feel I cannot ward.*");
		UcSay;
		UcMessage("~The green swine came, silent coward attacks, ~with bow and arrow, with sword and axe. ~They came for our blood, for our flesh to eat, ~We hacked them to death, our blades flaying their meat. ~ ~Though I have loved her, she still left this life, ~her pale white skin pierced by a goblin's bloody knife. ~But I am left here, an empty shell of a man. ~I cannot speak, the sorrow is more than I can stand. ~ ~Others drink themselves blind, but I cannot partake ~The others	celebrate, but smiles I can't fake. ~I will sit here by the fire and softly strum, ~only my lute knows the hollow man I have finally become.");
		UcSay;
	labelFunc063B_0327:
		if(!(var0000 == 0x00E0)) goto labelFunc063B_0341;
		UcMessage("~~ ~~The House of the Unicorn ~~ ~~By Gannt*");
		UcSay;
		UcMessage("~Come! Enter into the rich house of the Unicorn. ~Open your ears and minds, ~Absorb the magic of the steed's fair horn! ~We are not now, ~nor never have we been ~Children of the Unicorn. ~But if we give in to ourselves, ~and listen to music of the elves ~one day soon we will be with the Unicorn.*");
		UcSay;
		UcMessage("~On the day of thy birth ~came forth a new ray of sun to our earth ~Providing warmth and green riches ~to drive away the sorcery of witches. ~And we all take part in the gifts of the harvest moon, ~and give ourselves to the lute and the tune ~and drink the wealth of the early morning dew ~and savor the pleasure held by the precious chosen few.*");
		UcSay;
		UcMessage("~Oh, to belong to the chosen of the Unicorn, ~The wealth of spirit, no fear of the forlorn. ~We can dance in the meadows by the whispering wonders, ~and ride forth on lightning and command the thunder. ~Oh, great steed, thou magical beast, ~in thine honor we break bread and feast. ~We raise our cups high in twilight's last never ~We are in the House of the Unicorn where we will dwell forever.");
		UcSay;
	labelFunc063B_0341:
		if(!(var0000 == 0x00E1)) goto labelFunc063B_0357;
		UcMessage("~~ ~~No Such Thing as Fairies ~~ ~~By Gannt*");
		UcSay;
		UcMessage("~In our childhood years we learn that fairies glow, ~and this is good as everyone knows. ~But we partake the juice of the dark berries ~though we know there are no such thing as fairies... ~ ~We cry, though we rarely let it show, ~our tears fall like melting mountain snow. ~But still the fairies float like smoke rings though the night. ~stealing us blind with their mythical magical sight.*");
		UcSay;
		UcMessage("~And with the fortune to seize priceless treasures, ~and the subsequent Moonshadian pleasures ~and as we grow older and bolder and drawn, ~the fairies visit us less till, alas, they are gone. ~ ~But for our offspring the fairies will still glow, ~and this is good as every child knows. ~But we keep partaking in the juice of the dark berries ~for we know that there are no such things as fairies...");
		UcSay;
	labelFunc063B_0357:
		if(!(var0000 == 0x00E2)) goto labelFunc063B_0381;
		UcMessage("~~ ~~DEVRA'S RECIPES~~ ~~*");
		UcSay;
		UcMessage("Chicken and Rice~ ~ 2 cups rice~ 1 1/2 cups coarsely chopped green pepper~ 3/4 cup thinly sliced onions~ 3 tablespoons salad oil~ 1/4 cup cornstarch~ 2 cups chicken stock~ 3 tablespoons soy sauce~ 2 cups slivered cooked chicken~ 3 ripe tomatoes, cut in thin wedges~ ~ Cook green pepper and onions in oil till tender. Blend cornstarch and a little chicken stock. Add remaining stock and soy sauce. Gently stir chicken and stock into vegetables. Cook and stir until sauce is clear and thickened. Add tomatoes and cook just until heated. Serve over rice. Serves six.*");
		UcSay;
		UcMessage("Broccoli Casserole~ ~ 1/2 stick butter~ 1 cup of rice, cooked~ 1 cup chopped onions~ 1 bunch broccoli, chopped~ 6 ounces of cream of mushroom soup~ 4 ounces of melted cheese~ ~ Melt butter in skillet; add chopped onion and saute until clear. Add the chopped broccoli. Stir thoroughly. Add the cream of mushroom soup. Stir and simmer a few minutes. Add 1 cup cooked rice; stir and simmer. If too thick, add a small amount of water and cook 25 to 30 minutes at 350 degrees.*");
		UcSay;
		UcMessage("Apple Nut Squares~ ~ 3 eggs~ 1 3/4 cups sugar~ 1 cup cooking oil~ 2 teaspoons vanilla~ 2 cups flour~ 1 teaspoon salt~ 1 teaspoon baking soda~ 1 1/2 teaspoons cinnamon~ 2 cups peeled, diced apples~ 1/2 cup chopped pecans~ ~ Heat the oven to 325 degrees. Lightly grease a 9 by 13 inch pan. In large mixing bowl, combine first 8 ingredients; beat rapidly for 3 minutes (about 150 strokes). Stir in apples and pecans. Pour into prepared pan. Bake 50 to 60 minutes until toothpick inserted in center comes out clean. Serve with whipped	topping, ice cream, or as is, dusted with powdered sugar. Serves 12 to 15.*");
		UcSay;
		UcMessage("Teatime Tassies~ ~ 3 ounces cream cheese~ 1/2 cup butter~ 1 cup sifted flour~ 3/4 cup brown sugar~ 1 tablespoon soft butter~ 1 teaspoon vanilla~ 1 egg~ dash of salt~ 2/3 cup broken almonds, or other nuts~ ~ Blend cream cheese and butter. Stir in flour. Chill 1 hour. Shape in 2 dozen 1\" balls. Form dough on bottom and sides of cups or muffin tins. Beat remaining ingredients together except nuts. Divide half of the nuts among the cups. Add egg mixture to top with remaining nuts. Bake at 325 degrees for 25 minutes.*");
		UcSay;
		UcMessage("Saucy Franks~ ~ 1 lb. franks~ 2 tablespoons butter~ 10 3/4 oz. tomato soup~ 1/4 cup brown sugar~ 1/4 cup water~ 3 tablespoons vinegar~ 1 tablespoon worcestershire sauce~ 1/2 lemon, thinly sliced~ 1/2 onion, thinly sliced~ 1/4 cup chopped green pepper~ ~ ~ Score franks in corkscrew fashion. In skillet, brown franks lightly in butter. Add remaining ingredients except green pepper. Simmer covered 10 minutes. Add green pepper and cook 5 minutes longer.*");
		UcSay;
		UcMessage("Peanut Butter Fudge~ ~ 2 cups sugar~ dash of salt~ 2/3 cup milk~ 1 tablespoon light syrup~ 2 tablespoons butter~ 1 cup peanut butter~ 1 teaspoon vanilla~ ~ ~ Mix first 4 ingredients and cook until soft ball stage. Add remaining ingredients and blend. Pour quickly into greased pan and cut into squares.*");
		UcSay;
		UcMessage("Noodles~ ~ ~ 1 egg, beaten~ 1 teaspoon soft butter~ 1/2 teaspoon salt~ 2 tablespoons milk~ 1 teaspoon cider vinegar~ 1 cup flour~ ~ ~ Combine egg, butter, salt, milk, and vinegar. Add enough flour to make a stiff dough. Roll out very thin on floured surface. Let dough stand about 2 hours, until dried. Cut into strips. Drop noodles in salted water or broth. Cook for 10 minutes. Makes 3 cups of uncooked noodles.");
		UcSay;
	labelFunc063B_0381:
		if(!(var0000 == 0x00E3)) goto labelFunc063B_0397;
		UcMessage("~~ ~~TROUT SURPRISE~~ ~~By Jendon*");
		UcSay;
		UcMessage("Pan Fried Whole Trout~ ~ Trout, 2 to 3 lbs. cleaned~ 2 tsp. salt~ 1/2 tsp. ground pepper~ 1/2 cup yellow cornmeal~ 1/2 cup flour~ 3 tbsp. butter~ 8 tbsp. vegetable oil~ 1 lemon, cut into wedges~*");
		UcSay;
		UcMessage("Wash trout under cold water; pat dry with a towel. Sprinkle with salt and pepper. Mix cornmeal and flour. In heavy skillet, melt butter in oil over moderate heat. When the foam begins to subside, roll trout in cornmeal/flour mixture, shake off excess and put in skillet. Fry 4-5 minutes on each side, until golden brown and flaky. Serve with lemon wedges.");
		UcSay;
	labelFunc063B_0397:
		if(!(var0000 == 0x00E4)) goto labelFunc063B_03D1;
		UcMessage("~~ ~~GUIDE TO KNIGHTHOOD~~ ~~By Graeme of Monitor~~");
		UcSay;
		UcMessage("Courage is in thine heart; if thine heart is not in danger of being pierced by a blade, then thou canst not fight with courage.*");
		UcSay;
		UcMessage("Courageous men choose as weapons the sword, hammer, mace, and axe. Be wary of those who wield these weapons well, for they are fierce foes.~");
		UcSay;
		UcMessage("Be also wary of those who weave spells, for they have no courage, and the cowardly weave webs of deceit, lies, and trickery.");
		UcSay;
		UcMessage("Courage manifests itself on a battlefield, and the side whose courage is greatest, regardless of numbers, shall emerge victorious.~");
		UcSay;
		UcMessage("A courageous man knows that one can leave the battlefield only two ways: By eliminating all of the enemies or in death.");
		UcSay;
		UcMessage("A man whose life thou hast saved, or who hath saved thine, can be trusted the rest of thy life.~");
		UcSay;
		UcMessage("A knight must never work toward personal goals in lieu of the goals of his Lord.~");
		UcSay;
		UcMessage("Courage is not only taking sword up against his foe; it is the courage to admit to and remedy his own shortcomings, and if it happens that the knight is wrong, he must have the courage to admit as much.*");
		UcSay;
		UcMessage("A knight must know, beyond the martial skills of the weapon of his fancy, the art of tactics, as it may some day come to him that the lives of his fellow knights may be decided by his tactical decisions.~");
		UcSay;
		UcMessage("Any knight who betrays another will never be allowed to take up arms again. A knight who perpetrates such a wrongdoing is no knight; he is like unto the goblins he once warred against.~");
		UcSay;
		UcMessage("Courage is separate from stupidity; there comes a time to run and regroup in some battles, but only those which are unwinnable.~");
		UcSay;
	labelFunc063B_03D1:
		if(!(var0000 == 0x00E5)) goto labelFunc063B_03F3;
		UcMessage("~~ ~~WARRIORS OF FORTUNE QUARTERLY~~ ~~The Adventurer's Guidebook~~ ");
		UcSay;
		UcMessage("~	For you men who are stern of heart and gifted in the ways of weapons of steel, fortunes more mightier than you can dream of lie in your near future. All you must do is read the secrets held within these pages and you will be on the way to riches. Enter into mysteries that have baffled men through the ages, with rewards greater than those of today's kingdoms. Come, adventure and gold are on your horizon.*");
		UcSay;
		UcMessage("~This issue offers the stern-hearted adventurer a chance to be the first to a miser's treasure! With more gold than ten ships can carry! Read on, and learn the history and the location of one of the world's richest lost lairs. Couldst thou be the first to find it? ~	Many hundreds of years ago there was a miser named Triphako who had accumulated a massive fortune by swindling the local natives and by hiring pirates to attack his competitor's ships and cargo.*");
		UcSay;
		UcMessage("~	One night after he had a vivid dream about losing his vast wealth, Triphako consulted a great wizard. The sage forewarned that the miser was about to lose all of his wealth in the near future and that nothing that he could do would prevent this. Thinking that he could avoid the prophecy, the miser took all of his gold to a cave in the northern icy reaches for safe storage. He hired the wizard to create a series of tunnels in the rear of the cave that no one could find their way through without a magical map. ~	When all was finished, the wizard conjured an Ice Dragon to guard the mouth of the cave that led to the riches. On the voyage back to the palace, the miser, fearing that the wizard would allow his secret to be known, killed the wizard by pushing him into the sea.");
		UcSay;
		UcMessage("~	Unfortunately for him, upon the wizard's death, the magical map disappeared in a puff of blue smoke. Fearing that the prophecy had come true, the miser returned to the cave and tried to find the route to his riches. True to the wizard's warning, the miser never did reach his riches. Most say that he lies somewhere within the frozen caverns, for he never returned.");
		UcSay;
		UcMessage("~	To this day no one hath survived the tunnels and reached the lair of the Ice Dragon. Some have attempted to face the Ice Dragons at the mouth of their cave, but all have either fled, or become permanent fixtures in the ice surrounding the cavern's mouth. ~	If thou beest brave, and sure of thy skills in battle, thou mayest find the secret way into the lair of Triphako and to his riches untold.");
		UcSay;
	labelFunc063B_03F3:
		if(!(var0000 == 0x00E6)) goto labelFunc063B_0415;
		UcMessage("~~ ~~THE RITES OF CREMATION~~ ~~by Tolbert~~");
		UcSay;
		UcMessage("~	Let this book serve as a guide to those who follow me in the honorable profession of cremator to the finest warriors in all the lands known to mankind, the fine fighters of Monitor!");
		UcSay;
		UcMessage("	Most of this will become known during thine apprenticeship, but these written words will serve to bolster that which thy predecessor will be teaching thee.~");
		UcSay;
		UcMessage("	The most important thing thou canst learn of thy profession is this: being a cremator is no less honorable or worthy a duty than taking up sword and shield and doing battle with goblins, trolls, and all the other uncivilized fiends that populate our land. I put to any doubters this question: where would a warrior be if he knew that, should he die valiantly in battle, his body would not be brought back to receive a proper cremation? That his body, primed and trained for war in life, should feed the carrion cowards who would rather flee than fight, or perhaps a meal for the wives of those foul beings who struck him down? He would be in the rear of the force, hoping that he returns home; worried more for his life than guiding his blade through the hearts of his enemies.*");
		UcSay;
		UcMessage("	I have shown thee the worth of thy profession; now I will reveal to thee the import of burning one's body, as opposed to the primitive practice of burial. Thou hast known from the day thy first words were spoken that there is mystical power in the ashes of the dead. 'Tis true, and thou dost know this from thy Test of Knighthood. Ashes are the soul of a man; his spirit is locked within the remains of his lifeless body, and burning it releases the spirit from its imprisonment. If this is not done, the spirit will go insane and rise up as a monster -- lifeless, yet hateful and vengeful and animated. The spirit is in torment. This is no way for a courageous knight to spend eternity. For such a reason, the cremator is a respected and honored member of our stout city.~");
		UcSay;
		UcMessage("	The question arises that, after the body is cremated (the method is described in detail in a later chapter), where must the ashes be stored? Fortune and wisdom on the part of our forefathers have placed us in a land whereby an opening in the great mountains to the west can serve as catacombs; a tomb for the courageous dead. It seems that these were once daemon lands, as evidenced by the ruins in the northwest, but more definitively by the catacombs. Therein, coffins and dusty tapestries hold their unburned dead. No doubt the place is naught but ruins because the maddened corpses did rise up and wreak their vengeance on the fools...");
		UcSay;
	labelFunc063B_0415:
		if(!(var0000 == 0x00E7)) goto labelFunc063B_042B;
		UcMessage("~~TEMPLES OF CHAOS~ Translated by Miggim*");
		UcSay;
		UcMessage("~Xenka's prophecies mention the ancient Ophidian temples of Chaos as somehow being important to the Hero From Another World. Though I have not been able to decipher the true meaning of Xenka's visions regarding these temples, I feel that the Hero From Another World shall surely need some information regarding their location. I have translated a brief description of the Chaos temples from Ophidian script into Runic.*");
		UcSay;
		UcMessage("The Temple of Emotion was carved from the living rock of Skullcrusher. To find the Temple of Emotion thou shouldst look for a small lake. The temple's entrance is a small distance south of this lake. The Temple of Enthusiasm lies along the coast, north of the great Spinebreaker mountains. The Temple of Tolerance was built near the coast at the northern end of the snowy valley between the Spinebreaker and Skullcrusher mountains.");
		UcSay;
	labelFunc063B_042B:
		if(!(var0000 == 0x00FA)) goto labelFunc063B_0453;
		UcMessage("~~ ~~Great Practical Jokes~~  ~~*");
		UcSay;
		UcMessage("Chapter One: Exploding Books *");
		UcSay;
		UcMessage("Heh, heh, heh.");
		UcSay;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x02C0]);
	labelFunc063B_0453:
		return;
}
Func063C 0x63C (var var0000)
{
	var var0001;
	var var0002;

	UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
	var0000 = UI_find_nearby_41(0xFE9C, 0x0178, 0x0006, 0x0000);
	if(!var0000) goto labelFunc063C_0042;
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x010E, 0x46, 0x0006], 0x0001);
	labelFunc063C_0042:
		return;
}
// externs
extern var Func089B 0x89B ();

Func063D 0x63D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0001) || (event == 0x0002))) goto labelFunc063D_0057;
	var0000 = UI_get_npc_number_47(item);
	if(!(var0000 < 0x0100)) goto labelFunc063D_0057;
	UI_show_npc_face_03(var0000, 0x0000);
	var0001 = 0x0000;
	labelFunc063D_0030:
		if(!(var0001 < 0x000A)) goto labelFunc063D_0057;
		var0002 = Func089B();
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("\"");
		UcSay;
		var0001 = (var0001 + 0x0001);
		goto labelFunc063D_0030;
	labelFunc063D_0057:
		if(!(event == 0x0000)) goto labelFunc063D_0067;
		UI_item_say_4D(item, "@Oink@");
	labelFunc063D_0067:
		return;
}
Func063E 0x63E (var var0000)
{
	UI_error_message_40("Busted usable called! Rewrite this one!\\n");
	return;
}
// externs
extern var Func098E 0x98E ();
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func063F 0x63F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	if(!(event == 0x0002)) goto labelFunc063F_012E;
	var0000 = Func098E();
	enum();
	labelFunc063F_000F:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc063F_0044);
		if(!UI_npc_nearby_3A(var0003)) goto labelFunc063F_0041;
		var0004 = UI_direction_from_A2(var0003, item);
		var0005 = UI_execute_usecode_array_01(var0003, [0x59, var0004]);
	labelFunc063F_0041:
		goto labelFunc063F_000F;
	labelFunc063F_0044:
		var0006 = [0x55, 0x063F];
		var0004 = UI_direction_from_A2(item, 0xFE9C);
		var0007 = UI_execute_usecode_array_01(item, [0x59, var0004]);
		var0008 = [0x0000, 0x0002, 0x0002, 0x0002, 0x0000, Shamino, Shamino, Shamino];
		var0009 = [Shamino, Shamino, 0x0000, 0x0002, 0x0002, 0x0002, 0x0000, Shamino];
		var000A = (var0008 & var0008);
		var000B = (var0009 & var0009);
		var0004 = (UI_find_direction_22(item, 0xFE9C) + 0x0001);
		var000C = 0x0001;
		var000D = var000A[var0004];
		var000E = var000B[var0004];
	labelFunc063F_00E1:
		if(!(var000C < 0x0008)) goto labelFunc063F_011A;
		var000D = (var000D & var000A[(var0004 + var000C)]);
		var000E = (var000E & var000B[(var0004 + var000C)]);
		var000C = (var000C + 0x0001);
		goto labelFunc063F_00E1;
	labelFunc063F_011A:
		Func090D(item, var000D, var000E, Dupre, 0x063F, item, 0x000A);
	labelFunc063F_012E:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0640 0x640 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc0640_0053;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Mani Ylem@");
	if(!Func0951()) goto labelFunc0640_003B;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0039, 0x66, 0x65, 0x67, 0x55, 0x0640]);
	goto labelFunc0640_0053;
	labelFunc0640_003B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0640_0053:
		if(!(event == 0x0002)) goto labelFunc0640_00B6;
		var0001 = UI_get_party_list_2B();
		enum();
	labelFunc0640_0063:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0640_00B6);
		var0005 = UI_get_object_position_20(var0004);
		var0006 = UI_create_new_object_2C(0x0179);
		if(!var0006) goto labelFunc0640_00B3;
		var0007 = UI_die_roll_17(0x0001, 0x001E);
		UI_set_item_frame_1B(var0006, var0007);
		UI_set_item_flag_A4(var0006, 0x0012);
		var0000 = UI_update_last_created_2F(var0005);
	labelFunc0640_00B3:
		goto labelFunc0640_0063;
	labelFunc0640_00B6:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0641 0x641 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0641_00A9;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@An Nox@");
	if(!Func0951()) goto labelFunc0641_008C;
	if(!UI_is_npc_3D(var0000)) goto labelFunc0641_006C;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0040, 0x66, 0x65, 0x67]);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0641], 0x0006);
	goto labelFunc0641_0089;
	labelFunc0641_006C:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0641_0089:
		goto labelFunc0641_00A9;
	labelFunc0641_008C:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0641_00A9:
		if(!(event == 0x0002)) goto labelFunc0641_00C9;
		UI_clear_item_flag_A5(item, 0x0008);
		UI_clear_item_flag_A5(item, 0x0007);
		UI_clear_item_flag_A5(item, 0x0024);
	labelFunc0641_00C9:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);

Func0642 0x642 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x0001)) goto labelFunc0642_00F4;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Wis Jux@");
	if(!Func0951()) goto labelFunc0642_00DE;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0043, 0x65, 0x67]);
	var0001 = Func0941(0xFE9C);
	var0002 = (0x0015 + var0001);
	var0003 = UI_find_nearby_41(item, 0x00C8, var0002, 0x00B0);
	enum();
	labelFunc0642_0056:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0642_007B);
		var0000 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x0642], 0x0005);
		goto labelFunc0642_0056;
	labelFunc0642_007B:
		var0007 = UI_find_nearby_41(item, 0x0320, var0002, 0x00B0);
		var0008 = UI_find_nearby_41(item, 0x020A, var0002, 0x00B0);
		var0009 = (var0007 & var0008);
		enum();
	labelFunc0642_00A8:
		for (var0006 in var0009 with var000A to var000B atend labelFunc0642_00DB);
		if(!(UI_get_item_quality_1C(var0006) >= 0x00FA)) goto labelFunc0642_00D8;
		var0000 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x0642], 0x0005);
	labelFunc0642_00D8:
		goto labelFunc0642_00A8;
	labelFunc0642_00DB:
		goto labelFunc0642_00F4;
	labelFunc0642_00DE:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0642_00F4:
		if(!((event == 0x0002) || (event == 0x0003))) goto labelFunc0642_011C;
		UI_obj_sprite_effect_91(item, 0x0010, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0642_011C:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0643 0x643 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x0001)) goto labelFunc0643_00CB;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas An Flam@");
	if(!Func0951()) goto labelFunc0643_00B3;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x66, 0x65, 0x67]);
	var0001 = 0x0019;
	var0002 = [0x02BD, 0x020E, 0x0152, 0x01B3];
	enum();
	labelFunc0643_0047:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0643_00B0);
		var0006 = UI_find_nearby_41(item, var0005, var0001, 0x0000);
		enum();
	labelFunc0643_0064:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0643_00AD);
		var000A = UI_get_item_shape_18(var0009);
		var000B = ((UI_get_distance_21(item, var0009) / 0x0003) + 0x0002);
		UI_telekenesis_B1(var000A);
		var0000 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, var000A], var000B);
		goto labelFunc0643_0064;
	labelFunc0643_00AD:
		goto labelFunc0643_0047;
	labelFunc0643_00B0:
		goto labelFunc0643_00CB;
	labelFunc0643_00B3:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0643_00CB:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0644 0x644 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x0001)) goto labelFunc0644_00CB;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas In Flam@");
	if(!Func0951()) goto labelFunc0644_00B3;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67]);
	var0001 = 0x0019;
	var0002 = [0x0253, 0x0379, 0x0150, 0x01E1];
	enum();
	labelFunc0644_0047:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0644_00B0);
		var0006 = UI_find_nearby_41(item, var0005, var0001, 0x0000);
		enum();
	labelFunc0644_0064:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0644_00AD);
		var000A = UI_get_item_shape_18(var0009);
		var000B = ((UI_get_distance_21(item, var0009) / 0x0003) + 0x0002);
		UI_telekenesis_B1(var000A);
		var0000 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, var000A], var000B);
		goto labelFunc0644_0064;
	labelFunc0644_00AD:
		goto labelFunc0644_0047;
	labelFunc0644_00B0:
		goto labelFunc0644_00CB;
	labelFunc0644_00B3:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0644_00CB:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0645 0x645 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0645_004F;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Lor@");
	if(!Func0951()) goto labelFunc0645_0039;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0039, 0x65, 0x67, 0x55, 0x0645]);
	goto labelFunc0645_004F;
	labelFunc0645_0039:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0645_004F:
		if(!(event == 0x0002)) goto labelFunc0645_005E;
		UI_cause_light_6C(0x029A);
	labelFunc0645_005E:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0994 0x994 ();

Func0646 0x646 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0646_0053;
	UI_item_say_4D(item, "@In Wis@");
	if(!Func0951()) goto labelFunc0646_003B;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0082, 0x6D, 0x61, 0x6F, 0x27, 0x0004, 0x55, 0x0646]);
	goto labelFunc0646_0053;
	labelFunc0646_003B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x55, 0x0606]);
	labelFunc0646_0053:
		if(!(event == 0x0002)) goto labelFunc0646_025F;
		var0001 = Func0994();
		var0002 = "We must be lost.";
		if(!(var0001 == Dupre)) goto labelFunc0646_0077;
		var0002 = "the Wilderness";
	labelFunc0646_0077:
		if(!(var0001 == 0x000E)) goto labelFunc0646_0087;
		var0002 = "Moonshade";
	labelFunc0646_0087:
		if(!(var0001 == 0x0000)) goto labelFunc0646_0097;
		var0002 = "Castle of the White Dragon";
	labelFunc0646_0097:
		if(!(var0001 == 0x0001)) goto labelFunc0646_00A7;
		var0002 = "Claw";
	labelFunc0646_00A7:
		if(!(var0001 == 0x0002)) goto labelFunc0646_00B7;
		var0002 = "Monk Isle";
	labelFunc0646_00B7:
		if(!(var0001 == 0x0003)) goto labelFunc0646_00C7;
		var0002 = "Fawn";
	labelFunc0646_00C7:
		if(!(var0001 == 0x0004)) goto labelFunc0646_00D7;
		var0002 = "Furnace";
	labelFunc0646_00D7:
		if(!(var0001 == 0x0005)) goto labelFunc0646_00E7;
		var0002 = "Glacier Mountains";
	labelFunc0646_00E7:
		if(!(var0001 == 0x0006)) goto labelFunc0646_00F7;
		var0002 = "Grand Shrine";
	labelFunc0646_00F7:
		if(!(var0001 == 0x0007)) goto labelFunc0646_0107;
		var0002 = "Great Northern Forest";
	labelFunc0646_0107:
		if(!(var0001 == 0x0008)) goto labelFunc0646_0117;
		var0002 = "Ice Plains";
	labelFunc0646_0117:
		if(!(var0001 == 0x0009)) goto labelFunc0646_0127;
		var0002 = "Inn of the Sleeping Bull";
	labelFunc0646_0127:
		if(!(var0001 == 0x000A)) goto labelFunc0646_0137;
		var0002 = "Isle of Crypts";
	labelFunc0646_0137:
		if(!(var0001 == 0x000B)) goto labelFunc0646_0147;
		var0002 = "Isles of the Mad Mage";
	labelFunc0646_0147:
		if(!(var0001 == 0x000C)) goto labelFunc0646_0157;
		var0002 = "Knight's Test";
	labelFunc0646_0157:
		if(!(var0001 == 0x000D)) goto labelFunc0646_0167;
		var0002 = "Monitor";
	labelFunc0646_0167:
		if(!(var0001 == 0x000F)) goto labelFunc0646_0177;
		var0002 = "Mountains of Freedom";
	labelFunc0646_0177:
		if(!(var0001 == 0x0010)) goto labelFunc0646_0187;
		var0002 = "Shamino's Castle";
	labelFunc0646_0187:
		if(!(var0001 == 0x0011)) goto labelFunc0646_0197;
		var0002 = "Temple of Discipline";
	labelFunc0646_0197:
		if(!(var0001 == 0x0012)) goto labelFunc0646_01A7;
		var0002 = "Temple of Emotion";
	labelFunc0646_01A7:
		if(!(var0001 == 0x0013)) goto labelFunc0646_01B7;
		var0002 = "Temple of Enthusiasm";
	labelFunc0646_01B7:
		if(!(var0001 == 0x0014)) goto labelFunc0646_01C7;
		var0002 = "Temple of Ethicality";
	labelFunc0646_01C7:
		if(!(var0001 == 0x0015)) goto labelFunc0646_01D7;
		var0002 = "Temple of Logic";
	labelFunc0646_01D7:
		if(!(var0001 == 0x0016)) goto labelFunc0646_01E7;
		var0002 = "Temple of Tolerance";
	labelFunc0646_01E7:
		if(!(var0001 == 0x0017)) goto labelFunc0646_01F7;
		var0002 = "Skullcrusher Mountains";
	labelFunc0646_01F7:
		if(!(var0001 == 0x0018)) goto labelFunc0646_0207;
		var0002 = "Spinebreaker Mountains";
	labelFunc0646_0207:
		if(!(var0001 == 0x0019)) goto labelFunc0646_0217;
		var0002 = "Sunrise Isle";
	labelFunc0646_0217:
		if(!(var0001 == 0x001A)) goto labelFunc0646_0227;
		var0002 = "Gorlab Swamp";
	labelFunc0646_0227:
		if(!(var0001 == 0x001C)) goto labelFunc0646_0237;
		var0002 = "Western Forest";
	labelFunc0646_0237:
		if(!(var0001 == 0x001D)) goto labelFunc0646_0247;
		var0002 = "Village of the Gwani";
	labelFunc0646_0247:
		if(!(var0001 == 0x001E)) goto labelFunc0646_0257;
		var0002 = "Isle of Programmers";
	labelFunc0646_0257:
		UI_item_say_4D(item, var0002);
	labelFunc0646_025F:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0647 0x647 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc0647_0096;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	if(!(var0000[0x0001] == 0x0000)) goto labelFunc0647_0022;
	exit2();
	labelFunc0647_0022:
		var0001 = Func0979(var0000);
		UI_item_say_4D(item, "@Ort Por Ylem@");
		if(!(Func0951() && ((!UI_is_npc_3D(var0000)) && (var0000[0x0001] != 0x0000)))) goto labelFunc0647_007B;
		var0002 = UI_projectile_effect_4F(item, var0000, 0x01BB);
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0082, 0x65, 0x67, 0x7A]);
		goto labelFunc0647_0096;
	labelFunc0647_007B:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0647_0096:
		if(!(event == 0x0004)) goto labelFunc0647_0122;
		var0003 = [0x0105, 0x028E, 0x028B, 0x028D, 0x032A, 0x01AF, 0x0102, 0x01B2, 0x01D6, 0x0369, 0x0247, 0x02B8, 0x03F3];
		var0004 = [0x03B5, 0x03B6, 0x0314, 0x0313];
		var0005 = UI_get_item_shape_18(item);
		if(!in(var0005, var0004)) goto labelFunc0647_0100;
		var0002 = UI_execute_usecode_array_01(item, [0x55, var0005]);
		exit2();
	labelFunc0647_0100:
		if(!(!in(var0005, var0003))) goto labelFunc0647_0122;
		UI_telekenesis_B1(var0005);
		var0002 = UI_execute_usecode_array_01(item, [0x55, var0005]);
	labelFunc0647_0122:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern Func0948 0x948 (var var0000);

Func0648 0x648 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0648_0086;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@An Zu@");
	if(!(Func0951() && (var0000[0x0001] != 0x0000))) goto labelFunc0648_006B;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0040, 0x65, 0x67]);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0648], 0x0005);
	goto labelFunc0648_0086;
	labelFunc0648_006B:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0648_0086:
		if(!(event == 0x0002)) goto labelFunc0648_00A7;
		if(!UI_is_npc_3D(item)) goto labelFunc0648_00A1;
		UI_clear_item_flag_A5(item, 0x0001);
		goto labelFunc0648_00A7;
	labelFunc0648_00A1:
		Func0948(0x003C);
	labelFunc0648_00A7:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);

Func0649 0x649 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!(event == 0x0001)) goto labelFunc0649_0158;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Jux@");
	if(!Func0951()) goto labelFunc0649_0140;
	var0002 = (0x0005 + Func0941(0xFE9C));
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6A]);
	var0004 = UI_find_nearby_41(var0000, 0x00C8, var0002, 0x00B0);
	enum();
	labelFunc0649_0064:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0649_00C0);
		var0000 = UI_get_object_position_20(var0007);
		var0003 = UI_set_last_created_2E(var0007);
		if(!var0003) goto labelFunc0649_00BD;
		var0003 = UI_update_last_created_2F(0xFE9A);
		UI_halt_scheduled_71(var0007);
		UI_obj_sprite_effect_91(var0007, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0043);
	labelFunc0649_00BD:
		goto labelFunc0649_0064;
	labelFunc0649_00C0:
		var0008 = UI_find_nearby_41(var0000, 0x0320, var0002, 0x00B0);
		var0009 = UI_find_nearby_41(var0000, 0x020A, var0002, 0x00B0);
		var000A = (var0008 & var0009);
		enum();
	labelFunc0649_00F1:
		for (var0007 in var000A with var000B to var000C atend labelFunc0649_013D);
		if(!(UI_get_item_quality_1C(var0007) >= 0x00FA)) goto labelFunc0649_013A;
		var0003 = UI_set_item_quality_1D(var0007, 0x0000);
		UI_obj_sprite_effect_91(var0007, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0043);
	labelFunc0649_013A:
		goto labelFunc0649_00F1;
	labelFunc0649_013D:
		goto labelFunc0649_0158;
	labelFunc0649_0140:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0649_0158:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func064A 0x64A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc064A_0094;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	var0003 = [0x0284, 0x03B4, 0x03B7, 0x03B8];
	UI_item_say_4D(item, "@Rel Ylem@");
	if(!(Func0951() && in(var0001, var0003))) goto labelFunc064A_007C;
	var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x6F, 0x70, 0x6A]);
	var0004 = UI_execute_usecode_array_01(var0000, [0x55, 0x064A]);
	goto labelFunc064A_0094;
	labelFunc064A_007C:
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc064A_0094:
		if(!(event == 0x0002)) goto labelFunc064A_0107;
		var0005 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_item_shape_18(item);
		var0006 = UI_get_item_quantity_1E(item, var0001);
		var0007 = 0x0000;
	labelFunc064A_00BF:
		if(!(var0007 < 0x0005)) goto labelFunc064A_0107;
		var0007 = (var0007 + 0x0001);
		var0008 = UI_create_new_object_2C(var0001);
		if(!var0008) goto labelFunc064A_0104;
		UI_set_item_flag_A4(var0008, 0x0012);
		var0004 = UI_set_item_quantity_1F(var0008, var0006);
		var0004 = UI_update_last_created_2F(var0005);
	labelFunc064A_0104:
		goto labelFunc064A_00BF;
	labelFunc064A_0107:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func064B 0x64B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc064B_0082;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Vas Frio@");
	if(!Func0951()) goto labelFunc064B_0065;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x0358);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x6F, 0x70, 0x6A, 0x6A, 0x7A, 0x61]);
	goto labelFunc064B_0082;
	labelFunc064B_0065:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc064B_0082:
		return;
}
// externs
extern var Func0951 0x951 ();

Func064C 0x64C (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc064C_004F;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Lor@");
	if(!Func0951()) goto labelFunc064C_0039;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0039, 0x65, 0x67, 0x55, 0x064C]);
	goto labelFunc064C_004F;
	labelFunc064C_0039:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc064C_004F:
		if(!(event == 0x0002)) goto labelFunc064C_005E;
		UI_cause_light_6C(0x1388);
	labelFunc064C_005E:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func064D 0x64D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc064D_008F;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Mani@");
	if(!(Func0951() && UI_is_npc_3D(var0000))) goto labelFunc064D_006E;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6D, 0x58, 0x0040, 0x61, 0x66, 0x65, 0x67]);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x064D], 0x0005);
	goto labelFunc064D_008F;
	labelFunc064D_006E:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6D, 0x61, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc064D_008F:
		if(!(event == 0x0002)) goto labelFunc064D_00D3;
		var0003 = UI_get_npc_prop_28(item, 0x0000);
		var0004 = UI_get_npc_prop_28(item, 0x0003);
		if(!(var0004 <= var0003)) goto labelFunc064D_00D3;
		var0005 = ((var0003 - var0004) / 0x0002);
		var0002 = UI_set_npc_prop_29(item, 0x0003, var0005);
	labelFunc064D_00D3:
		return;
}
// externs
extern var Func0951 0x951 ();

Func064E 0x64E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc064E_006D;
	UI_halt_scheduled_71(item);
	UI_obj_sprite_effect_91(item, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	UI_item_say_4D(item, "@Vas An Nox@");
	if(!Func0951()) goto labelFunc064E_0055;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x66, 0x65, 0x67, 0x58, 0x0040, 0x55, 0x064E]);
	goto labelFunc064E_006D;
	labelFunc064E_0055:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc064E_006D:
		if(!(event == 0x0002)) goto labelFunc064E_00B3;
		var0001 = UI_get_party_list_2B();
		var0001 = (var0001 & 0xFE9C);
		enum();
	labelFunc064E_0087:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc064E_00B3);
		UI_clear_item_flag_A5(var0004, 0x0008);
		UI_clear_item_flag_A5(var0004, 0x0007);
		UI_clear_item_flag_A5(var0004, 0x0024);
		goto labelFunc064E_0087;
	labelFunc064E_00B3:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func064F 0x64F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc064F_00AB;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Uus Sanct@");
	if(!(Func0951() && UI_is_npc_3D(var0000))) goto labelFunc064F_008E;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x005A, 0x6F, 0x65, 0x6A]);
	var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x064F], 0x0005);
	var0004 = UI_get_object_position_20(var0000);
	UI_obj_sprite_effect_91(item, 0x000D, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	goto labelFunc064F_00AB;
	labelFunc064F_008E:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x65, 0x6A, 0x55, 0x0606]);
	labelFunc064F_00AB:
		if(!(event == 0x0002)) goto labelFunc064F_00BB;
		UI_set_item_flag_A4(item, 0x0009);
	labelFunc064F_00BB:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0650 0x650 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0650_0052;
	UI_item_say_4D(item, "@Rel Frio Mani@");
	if(!Func0951()) goto labelFunc0650_0038;
	UI_halt_scheduled_71(item);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0650]);
	goto labelFunc0650_0052;
	labelFunc0650_0038:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc0650_0052:
		if(!(event == 0x0002)) goto labelFunc0650_00BB;
		UI_play_sound_effect_16(0x005A);
		var0001 = Func0941(0xFE9C);
		var0002 = (0x07D0 + (var0001 * 0x00C8));
		UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Iolo);
		gflags[01FC] = true;
		var0003 = Func09A0(0x0007, 0x0002);
		var0000 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x2C, 0x55, 0x068A], var0002);
	labelFunc0650_00BB:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0651 0x651 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0651_0083;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Des Sanct@");
	if(!(Func0951() && (var0000[0x0001] != 0x0000))) goto labelFunc0651_0066;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x0119);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0082, 0x65, 0x70, 0x6A, 0x7A]);
	goto labelFunc0651_0083;
	labelFunc0651_0066:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0651_0083:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0652 0x652 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = [0x02D2, 0x02D3];
	var0001 = [0x022C, 0x01A1];
	if(!(event == 0x0001)) goto labelFunc0652_00A9;
	UI_halt_scheduled_71(item);
	var0002 = UI_click_on_item_3F();
	var0003 = UI_get_item_shape_18(var0002);
	var0004 = Func0979(var0002);
	UI_item_say_4D(item, "@Ort Ylem@");
	if(!(Func0951() && in(var0003, var0000))) goto labelFunc0652_008C;
	var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0004, 0x58, 0x0082, 0x66, 0x65, 0x67]);
	var0005 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x0652], 0x0004);
	goto labelFunc0652_00A9;
	labelFunc0652_008C:
		var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0004, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0652_00A9:
		if(!(event == 0x0002)) goto labelFunc0652_00E7;
		var0006 = 0x0000;
		enum();
	labelFunc0652_00B8:
		for (var0009 in var0000 with var0007 to var0008 atend labelFunc0652_00E7);
		var0006 = (var0006 + 0x0001);
		if(!(var0009 == UI_get_item_shape_18(item))) goto labelFunc0652_00E4;
		UI_set_item_shape_14(item, var0001[var0006]);
	labelFunc0652_00E4:
		goto labelFunc0652_00B8;
	labelFunc0652_00E7:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0653 0x653 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc0653_0103;
	UI_halt_scheduled_71(item);
	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = [0x00C8, 0x0113];
	var0002 = [];
	UI_item_say_4D(item, "@Wis Jux Ylem@");
	if(!Func0951()) goto labelFunc0653_00EB;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0082, 0x65, 0x66, 0x67]);
	var0004 = 0x000F;
	enum();
	labelFunc0653_0056:
		for (var0007 in var0001 with var0005 to var0006 atend labelFunc0653_007B);
		var0002 = (var0002 & UI_find_nearby_41(var0000, var0007, var0004, 0x0010));
		goto labelFunc0653_0056;
	labelFunc0653_007B:
		if(!(UI_get_array_size_73(var0002) > 0x0000)) goto labelFunc0653_00CE;
		enum();
	labelFunc0653_008A:
		for (var0007 in var0002 with var0008 to var0009 atend labelFunc0653_00CB);
		var0003 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x065D], 0x0005);
		UI_obj_sprite_effect_91(var0007, 0x000D, Dupre, Dupre, 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc0653_008A;
	labelFunc0653_00CB:
		goto labelFunc0653_00E8;
	labelFunc0653_00CE:
		UI_obj_sprite_effect_91(item, 0x000D, Dupre, Dupre, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0653_00E8:
		goto labelFunc0653_0103;
	labelFunc0653_00EB:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0653_0103:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0654 0x654 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc0654_0052;
	UI_item_say_4D(item, "@Vas Uus Sanct@");
	if(!Func0951()) goto labelFunc0654_0038;
	UI_halt_scheduled_71(item);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0654]);
	goto labelFunc0654_0052;
	labelFunc0654_0038:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc0654_0052:
		if(!(event == 0x0002)) goto labelFunc0654_00A5;
		UI_play_sound_effect_16(0x005A);
		UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_get_party_list_2B();
		var0001 = (var0001 & 0xFE9C);
		enum();
	labelFunc0654_008D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0654_00A5);
		UI_set_item_flag_A4(var0004, 0x0009);
		goto labelFunc0654_008D;
	labelFunc0654_00A5:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0655 0x655 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc0655_0084;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Por@");
	if(!(Func0951() && (var0000[0x0001] != 0x0000))) goto labelFunc0655_0069;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x0198);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x67, 0x7A, 0x61]);
	goto labelFunc0655_0084;
	labelFunc0655_0069:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0655_0084:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0656 0x656 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0656_007E;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Zu@");
	if(!(Func0951() && (var0000[0x0001] != 0x0000))) goto labelFunc0656_0063;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x00EA);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x67, 0x7A, 0x61]);
	goto labelFunc0656_007E;
	labelFunc0656_0063:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0656_007E:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0657 0x657 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0657_0084;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Rel Wis@");
	if(!Func0951()) goto labelFunc0657_006E;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x67, 0x61]);
	UI_set_item_flag_A4(0xFE9C, 0x0022);
	var0001 = 0x2710;
	var0002 = Func09A0(0x0003, 0x0001);
	if(!var0002) goto labelFunc0657_006B;
	var0003 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x2C, 0x55, 0x0657], var0001);
	labelFunc0657_006B:
		goto labelFunc0657_0084;
	labelFunc0657_006E:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0657_0084:
		if(!(event == 0x0002)) goto labelFunc0657_0096;
		UI_clear_item_flag_A5(0xFE9C, 0x0022);
	labelFunc0657_0096:
		return;
}
Func0658 0x658 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0658_002D;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Rel Por@");
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x69, 0x65, 0x55, 0x0606]);
	labelFunc0658_002D:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0980 0x980 (var var0000);

Func0659 0x659 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc0659_00D8;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Xen Jux@");
	if(!Func0951()) goto labelFunc0659_00BE;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x6A, 0x69, 0x58, 0x0043]);
	var0001 = UI_get_npc_object_23(0xFE9C);
	UI_obj_sprite_effect_91(var0001, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0002 = 0x0019;
	var0003 = Func0980(var0002);
	enum();
	labelFunc0659_006B:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0659_00BB);
		var0002 = UI_get_distance_21(item, var0006);
		var0002 = ((var0002 / 0x0004) + 0x0004);
		if(!(!(UI_die_roll_17(0x0001, 0x0003) == 0x0001))) goto labelFunc0659_00B8;
		var0000 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x0659], var0002);
	labelFunc0659_00B8:
		goto labelFunc0659_006B;
	labelFunc0659_00BB:
		goto labelFunc0659_00D8;
	labelFunc0659_00BE:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x6A, 0x69, 0x55, 0x0606]);
	labelFunc0659_00D8:
		if(!(event == 0x0002)) goto labelFunc0659_0119;
		var0007 = UI_get_npc_number_47(item);
		if(!(!in(var0007, [0xFE9C]))) goto labelFunc0659_0119;
		var0008 = UI_get_alignment_49(0xFE9C);
		if(!var0008) goto labelFunc0659_0111;
		UI_set_item_flag_A4(item, 0x0002);
		goto labelFunc0659_0119;
	labelFunc0659_0111:
		UI_clear_item_flag_A5(item, 0x0002);
	labelFunc0659_0119:
		return;
}
// externs
extern var Func0951 0x951 ();

Func065A 0x65A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = UI_get_npc_object_23(0xFE9C);
	if(!(event == 0x0001)) goto labelFunc065A_0083;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Vas Lor@");
	if(!Func0951()) goto labelFunc065A_006B;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x69, 0x66, 0x6A, 0x58, 0x0043, 0x55, 0x065A]);
	UI_obj_sprite_effect_91(var0001, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	goto labelFunc065A_0083;
	labelFunc065A_006B:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x69, 0x66, 0x6A, 0x55, 0x0606]);
	labelFunc065A_0083:
		if(!(event == 0x0002)) goto labelFunc065A_02AA;
		UI_obj_sprite_effect_91(var0001, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
		var0003 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
		var0004 = UI_get_party_list_2B();
		var0005 = 0x000C;
		var0006 = UI_get_item_flag_A3(item, 0x0006);
		enum();
	labelFunc065A_00D1:
		for (var0009 in var0003 with var0007 to var0008 atend labelFunc065A_02AA);
		if(!((!var0006) || (!in(var0009, var0004)))) goto labelFunc065A_02A7;
		var000A = 0x0000;
		var000B = "";
	labelFunc065A_00F8:
		if(!(var000A < var0005)) goto labelFunc065A_0293;
		var000C = UI_die_roll_17(0x0000, 0x0008);
		if(!(var000C == 0x0000)) goto labelFunc065A_0131;
		var000D = [0x6D, 0x6C, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0131:
		if(!(var000C == 0x0001)) goto labelFunc065A_0153;
		var000D = [0x6D, 0x61, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0153:
		if(!(var000C == 0x0002)) goto labelFunc065A_0175;
		var000D = [0x6C, 0x6E, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0175:
		if(!(var000C == 0x0003)) goto labelFunc065A_0197;
		var000D = [0x61, 0x61, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0197:
		if(!(var000C == 0x0004)) goto labelFunc065A_01B9;
		var000D = [0x6D, 0x64, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_01B9:
		if(!(var000C == 0x0005)) goto labelFunc065A_01DB;
		var000D = [0x64, 0x6D, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_01DB:
		if(!(var000C == 0x0006)) goto labelFunc065A_0214;
		var000E = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000D = [0x59, var000E, 0x6C, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0214:
		if(!(var000C == 0x0007)) goto labelFunc065A_024D;
		var000E = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000D = [0x59, var000E, 0x6D, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_024D:
		if(!(var000C == 0x0008)) goto labelFunc065A_0286;
		var000E = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000D = [0x59, var000E, 0x64, 0x61];
		var000B = [var000B, var000D];
	labelFunc065A_0286:
		var000A = (var000A + 0x0001);
		goto labelFunc065A_00F8;
	labelFunc065A_0293:
		UI_halt_scheduled_71(var0009);
		var0002 = UI_execute_usecode_array_01(var0009, var000B);
	labelFunc065A_02A7:
		goto labelFunc065A_00D1;
	labelFunc065A_02AA:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func065B 0x65B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc065B_009B;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = UI_get_item_frame_1A(var0000);
	var0003 = Func0979(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Mani Ex@");
	if(!(Func0951() && ((var0001 == 0x01BD) && (var0002 == 0x0000)))) goto labelFunc065B_0081;
	var0004 = UI_execute_usecode_array_01(item, [0x23, 0x67, 0x61, 0x67, 0x61, 0x58, 0x0043]);
	var0004 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x065B], 0x0006);
	goto labelFunc065B_009B;
	labelFunc065B_0081:
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x67, 0x61, 0x67, 0x61, 0x55, 0x0606]);
	labelFunc065B_009B:
		if(!(event == 0x0002)) goto labelFunc065B_00CD;
		var0005 = UI_get_object_position_20(item);
		var0004 = UI_set_last_created_2E(item);
		UI_set_item_frame_1B(item, 0x0001);
		UI_clear_item_flag_A5(item, 0x0012);
		var0004 = UI_update_last_created_2F(var0005);
	labelFunc065B_00CD:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0980 0x980 (var var0000);

Func065C 0x65C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc065C_00E8;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Des Sanct@");
	if(!Func0951()) goto labelFunc065C_00CE;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x58, 0x0014, 0x70, 0x6F, 0x6A]);
	var0001 = 0x001E;
	var0002 = Func0980(var0001);
	var0003 = UI_get_party_list_2B();
	var0003 = (var0003 & 0xFE9C);
	enum();
	labelFunc065C_0070:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc065C_00CB);
		if(!(!in(var0006, var0003))) goto labelFunc065C_00C8;
		if(!(!(UI_die_roll_17(0x0001, 0x0003) == 0x0001))) goto labelFunc065C_00C8;
		var0001 = UI_get_distance_21(item, var0006);
		var0001 = ((var0001 / 0x0003) + 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x065C], var0001);
	labelFunc065C_00C8:
		goto labelFunc065C_0070;
	labelFunc065C_00CB:
		goto labelFunc065C_00E8;
	labelFunc065C_00CE:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc065C_00E8:
		if(!(event == 0x0002)) goto labelFunc065C_00F8;
		UI_set_item_flag_A4(item, 0x0003);
	labelFunc065C_00F8:
		return;
}
// externs
extern var Func0951 0x951 ();

Func065D 0x65D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	if(!(event == 0x0001)) goto labelFunc065D_01B3;
	UI_halt_scheduled_71(item);
	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = [];
	UI_item_say_4D(item, "@Wis Quas@");
	if(!Func0951()) goto labelFunc065D_019B;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0082, 0x65, 0x66, 0x67]);
	var0003 = UI_get_object_position_20(item);
	var0004 = [0xFFF1, 0xFFF1, 0xFFF1, 0xFFFB, 0xFFFB, 0xFFFB, 0x0005, 0x0005, 0x0005, 0x000F, 0x000F, 0x000F];
	var0005 = [0xFFF9, 0x0002, 0x000B, 0xFFF9, 0x0002, 0x000B, 0xFFF9, 0x0002, 0x000B, 0xFFF9, 0x0002, 0x000B];
	var0006 = 0x0007;
	var0007 = 0x0000;
	labelFunc065D_00AB:
		if(!(var0007 != 0x000C)) goto labelFunc065D_0133;
		var0007 = (var0007 + 0x0001);
		var0008 = (var0000[0x0001] + var0004[var0007]);
		var0009 = (var0000[0x0002] + var0005[var0007]);
		var0003 = [var0008, var0009, 0x0000];
		var000A = UI_find_nearby_41(var0003, 0xFE99, var0006, 0x0020);
		enum();
	labelFunc065D_0102:
		for (var000D in var000A with var000B to var000C atend labelFunc065D_0130);
		if(!(UI_get_item_flag_A3(var000D, 0x0000) && (!in(var000D, var0001)))) goto labelFunc065D_012D;
		var0001 = (var0001 & var000D);
	labelFunc065D_012D:
		goto labelFunc065D_0102;
	labelFunc065D_0130:
		goto labelFunc065D_00AB;
	labelFunc065D_0133:
		if(!var0001) goto labelFunc065D_017E;
		enum();
	labelFunc065D_013A:
		for (var000D in var0001 with var000E to var000F atend labelFunc065D_017B);
		var0002 = UI_delayed_execute_usecode_array_02(var000D, [0x23, 0x55, 0x065D], 0x0005);
		UI_obj_sprite_effect_91(var000D, 0x000D, Dupre, Dupre, 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc065D_013A;
	labelFunc065D_017B:
		goto labelFunc065D_0198;
	labelFunc065D_017E:
		UI_obj_sprite_effect_91(item, 0x000D, Dupre, Dupre, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc065D_0198:
		goto labelFunc065D_01B3;
	labelFunc065D_019B:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc065D_01B3:
		if(!(event == 0x0002)) goto labelFunc065D_01C3;
		UI_clear_item_flag_A5(item, 0x0000);
	labelFunc065D_01C3:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func065E 0x65E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc065E_00B2;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = Func0979(item);
	UI_halt_scheduled_71(item);
	var0003 = UI_find_object_32(0xFE9B, 0x02F9, 0xFE99, 0xFE99);
	UI_item_say_4D(item, "@Rel Ort Wis@");
	if(!(Func0951() && ((var0001 == 0x02CB) && var0003))) goto labelFunc065E_009B;
	var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x58, 0x0043]);
	var0004 = UI_delayed_execute_usecode_array_02(var0000[0x0001], [0x2D], 0x0004);
	var0005 = UI_get_item_quality_1C(var0000);
	var0004 = UI_add_spell_66(var0005, 0x0000, var0003);
	goto labelFunc065E_00B2;
	labelFunc065E_009B:
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x55, 0x0606]);
	labelFunc065E_00B2:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern Func091D 0x91D ();

Func065F 0x65F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc065F_00DF;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = Func0979(item);
	UI_halt_scheduled_71(item);
	var0003 = [0x010E, 0x0178, 0x01B0, 0x01B1, 0x034D, 0x033C];
	var0004 = [0x01B0, 0x01B1, 0x010E, 0x0178];
	UI_item_say_4D(item, "@Ex Por@");
	if(!Func0951()) goto labelFunc065F_00C2;
	if(!(!in(var0001, var0003))) goto labelFunc065F_006B;
	goto labelFunc065F_00C2;
	labelFunc065F_006B:
		var0005 = UI_get_item_frame_1A(var0000);
		if(!(!(((var0005 + 0x0001) % 0x0004) == 0x0000))) goto labelFunc065F_008B;
		goto labelFunc065F_00C2;
	labelFunc065F_008B:
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x66, 0x65, 0x67, 0x58, 0x0043]);
		var0006 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x065F], 0x0006);
		goto labelFunc065F_00DF;
	labelFunc065F_00C2:
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc065F_00DF:
		if(!(event == 0x0002)) goto labelFunc065F_0104;
		var0005 = UI_get_item_frame_1A(item);
		var0007 = (var0005 - 0x0003);
		UI_set_item_frame_1B(item, var0007);
		Func091D();
	labelFunc065F_0104:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);

Func0660 0x660 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc0660_0053;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Kal Xen@");
	if(!Func0951()) goto labelFunc0660_003B;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x65, 0x66, 0x67, 0x55, 0x0660]);
	goto labelFunc0660_0053;
	labelFunc0660_003B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0660_0053:
		if(!(event == 0x0002)) goto labelFunc0660_0108;
		var0001 = [0x02CC, 0x032B, 0x020B, 0x01FE, 0x01F6, 0x0219, 0x012E];
		var0002 = UI_get_array_size_73(var0001);
		var0003 = Func0941(0xFE9C);
		if(!(var0003 > var0002)) goto labelFunc0660_0099;
		var0003 = var0002;
	labelFunc0660_0099:
		if(!(var0003 < 0x0002)) goto labelFunc0660_00A9;
		var0003 = 0x0002;
	labelFunc0660_00A9:
		var0004 = (var0003 / 0x0002);
		if(!(var0004 < 0x0001)) goto labelFunc0660_00C3;
		var0004 = 0x0001;
	labelFunc0660_00C3:
		var0005 = UI_die_roll_17(var0004, var0003);
	labelFunc0660_00D0:
		if(!(var0005 > 0x0000)) goto labelFunc0660_0108;
		var0005 = (var0005 - 0x0001);
		var0006 = UI_die_roll_17(var0004, var0003);
		var0007 = var0001[var0006];
		var0008 = UI_summon_55(var0007, false);
		goto labelFunc0660_00D0;
	labelFunc0660_0108:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0661 0x661 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0661_00BB;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	var0002 = [0x0300, 0x037F, 0x0231, 0x0384, 0x0386];
	UI_item_say_4D(item, "@An Grav@");
	if(!Func0951()) goto labelFunc0661_009E;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x59, var0001, 0x6F, 0x70, 0x6A]);
	enum();
	labelFunc0661_005E:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc0661_009B);
		if(!(var0006 == UI_get_item_shape_18(var0000))) goto labelFunc0661_0098;
		var0003 = UI_set_last_created_2E(var0000);
		if(!var0003) goto labelFunc0661_0098;
		var0003 = UI_update_last_created_2F(0xFE9A);
		UI_halt_scheduled_71(var0000);
	labelFunc0661_0098:
		goto labelFunc0661_005E;
	labelFunc0661_009B:
		goto labelFunc0661_00BB;
	labelFunc0661_009E:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0661_00BB:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0662 0x662 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc0662_0082;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Vas Frio Hur@");
	if(!Func0951()) goto labelFunc0662_0065;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x0020);
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x6F, 0x70, 0x67, 0x67, 0x7A, 0x61]);
	goto labelFunc0662_0082;
	labelFunc0662_0065:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x67, 0x55, 0x0606]);
	labelFunc0662_0082:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0663 0x663 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc0663_00A2;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(var0000);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Vas Mani@");
	if(!Func0951()) goto labelFunc0663_0085;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x66, 0x65, 0x67, 0x58, 0x0040]);
	if(!UI_is_npc_3D(var0000)) goto labelFunc0663_0082;
	var0003 = UI_get_npc_prop_28(var0000, 0x0000);
	var0004 = UI_get_npc_prop_28(var0000, 0x0003);
	var0005 = UI_set_npc_prop_29(var0000, 0x0003, (var0003 - var0004));
	labelFunc0663_0082:
		goto labelFunc0663_00A2;
	labelFunc0663_0085:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0663_00A2:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0664 0x664 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0664_007F;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Sanct Lor@");
	if(!Func0951()) goto labelFunc0664_0062;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0082, 0x6F, 0x70, 0x6A]);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0664], 0x0004);
	goto labelFunc0664_007F;
	labelFunc0664_0062:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0664_007F:
		if(!(event == 0x0002)) goto labelFunc0664_008F;
		UI_set_item_flag_A4(item, 0x0000);
	labelFunc0664_008F:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0665 0x665 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0665_0075;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Zu@");
	if(!Func0951()) goto labelFunc0665_0059;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x61, 0x65, 0x6F, 0x67, 0x6A, 0x55, 0x0665]);
	goto labelFunc0665_0075;
	labelFunc0665_0059:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x61, 0x65, 0x6F, 0x67, 0x6A, 0x55, 0x0606]);
	labelFunc0665_0075:
		if(!(event == 0x0002)) goto labelFunc0665_00C6;
		var0001 = 0x0019;
		var0002 = UI_find_nearby_41(item, Dupre, var0001, 0x0004);
		var0003 = UI_get_party_list_2B();
		enum();
	labelFunc0665_009C:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc0665_00C6);
		if(!(!in(var0006, var0003))) goto labelFunc0665_00C3;
		UI_halt_scheduled_71(var0006);
		UI_set_item_flag_A4(var0006, 0x0001);
	labelFunc0665_00C3:
		goto labelFunc0665_009C;
	labelFunc0665_00C6:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0666 0x666 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	if(!(event == 0x0001)) goto labelFunc0666_028C;
	var0000 = true;
	var0001 = 0x0000;
	var0002 = UI_get_object_position_20(0xFE9C);
	var0003 = var0002[0x0001];
	var0004 = var0002[0x0002];
	var0005 = 0x0000;
	var0006 = 0x0000;
	var0007 = Func0979(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Kal Wis Corp@");
	if(!Func0951()) goto labelFunc0666_0275;
	var0008 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0007, 0x58, 0x0043]);
	var0005 = 0x0000;
	var0006 = 0x0000;
	var0009 = UI_find_nearby_41(item, 0x01FB, 0x000F, 0x00B0);
	enum();
	labelFunc0666_0089:
		for (var000C in var0009 with var000A to var000B atend labelFunc0666_00AB);
		if(!(UI_get_item_quality_1C(var000C) == 0x000D)) goto labelFunc0666_00A8;
		var0001 = var000C;
	labelFunc0666_00A8:
		goto labelFunc0666_0089;
	labelFunc0666_00AB:
		if(!((0x0927 < var0003) && (var0003 < 0x0947))) goto labelFunc0666_00C3;
		var0005 = 0x0001;
	labelFunc0666_00C3:
		if(!((0x012B < var0004) && (var0004 < 0x013F))) goto labelFunc0666_00DB;
		var0006 = 0x0001;
	labelFunc0666_00DB:
		var000D = Func097D(0xFE9B, 0x0001, 0x00D1, 0xFE99, 0x0009);
		if(!((var0005 == 0x0001) && ((var0006 == 0x0001) && ((var000D == true) && (var0001 != 0x0000))))) goto labelFunc0666_0142;
		var0008 = UI_set_item_quality_1D(var0001, 0x0000);
		var000E = UI_get_object_position_20(var0001);
		var000F = UI_create_new_object2_2D(0x0355, var000E);
		UI_set_schedule_type_25(var000F, 0x0003);
		var0000 = false;
	labelFunc0666_0142:
		var0005 = 0x0000;
		var0006 = 0x0000;
		if(!((0x0B45 < var0003) && (var0003 < 0x0B53))) goto labelFunc0666_0166;
		var0005 = 0x0001;
	labelFunc0666_0166:
		if(!((0x07C6 < var0004) && (var0004 < 0x07D5))) goto labelFunc0666_017E;
		var0006 = 0x0001;
	labelFunc0666_017E:
		var0010 = Func097D(0xFE9B, 0x0001, 0x0280, 0xFE99, 0x0000);
		var0011 = Func097D(0xFE9B, 0x0001, 0x027E, 0xFE99, 0x0000);
		var0012 = Func097D(0xFE9B, 0x0001, 0x03EC, 0xFE99, 0x0002);
		var000D = false;
		if(!((var0010 == true) || ((var0011 == true) || (var0012 == true)))) goto labelFunc0666_01D9;
		var000D = true;
	labelFunc0666_01D9:
		var0013 = UI_find_nearby_41(item, 0x00F3, 0x000F, 0x00B0);
		enum();
	labelFunc0666_01EB:
		for (var0016 in var0013 with var0014 to var0015 atend labelFunc0666_020B);
		if(!(UI_get_item_quality_1C(var0016) == 0x0001)) goto labelFunc0666_0208;
		var0017 = true;
	labelFunc0666_0208:
		goto labelFunc0666_01EB;
	labelFunc0666_020B:
		if(!((var0005 == 0x0001) && ((var0006 == 0x0001) && ((var000D != false) && (var0017 == true))))) goto labelFunc0666_0267;
		UI_set_item_frame_1B(var0016, 0x0005);
		var000E = [0x0B4D, 0x07D0, 0x0005];
		var000F = UI_create_new_object2_2D(0x0175, var000E);
		UI_set_npc_id_BD(var000F, 0x0001);
		UI_set_schedule_type_25(var000F, 0x0003);
		var0000 = false;
	labelFunc0666_0267:
		if(!(var0000 == true)) goto labelFunc0666_0272;
		goto labelFunc0666_0275;
	labelFunc0666_0272:
		goto labelFunc0666_028C;
	labelFunc0666_0275:
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0007, 0x55, 0x0606]);
	labelFunc0666_028C:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0667 0x667 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc0667_00B0;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Ex Por@");
	if(!Func0951()) goto labelFunc0667_0098;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6A, 0x67, 0x69, 0x58, 0x0014, 0x27, 0x0005, 0x55, 0x0667]);
	var0001 = UI_find_nearby_41(item, 0xFE99, 0x001E, 0x0008);
	var0002 = UI_get_party_list_2B();
	enum();
	labelFunc0667_0056:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0667_0095);
		if(!(!in(var0005, var0002))) goto labelFunc0667_0092;
		var0006 = (UI_get_distance_21(item, var0005) + 0x000F);
		var0000 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x0667], var0006);
	labelFunc0667_0092:
		goto labelFunc0667_0056;
	labelFunc0667_0095:
		goto labelFunc0667_00B0;
	labelFunc0667_0098:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6A, 0x67, 0x69, 0x55, 0x0606]);
	labelFunc0667_00B0:
		if(!(event == 0x0002)) goto labelFunc0667_01F4;
		if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc0667_0197;
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, Iolo, Iolo, 0x0004, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0x0000, 0xFFFC, 0x0004, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0x0003, Iolo, 0x0003, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0xFFFC, 0x0000, 0x0002, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0x0004, 0x0000, 0x0001, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, Iolo, 0x0003, 0x0003, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0x0000, 0x0004, 0x0001, 0x0019);
		UI_obj_sprite_effect_91(item, 0x0003, 0x0000, 0x0000, 0x0003, 0x0003, 0x0001, 0x0019);
		goto labelFunc0667_01F4;
	labelFunc0667_0197:
		var0007 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0007 == 0x0001)) goto labelFunc0667_01C6;
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_attack_mode_59(item, 0x0007);
		UI_set_opponent_5B(item, 0xFE9C);
	labelFunc0667_01C6:
		if(!(var0007 == 0x0002)) goto labelFunc0667_01DD;
		UI_halt_scheduled_71(item);
		UI_set_item_flag_A4(item, 0x0001);
	labelFunc0667_01DD:
		if(!(var0007 == 0x0003)) goto labelFunc0667_01F4;
		UI_halt_scheduled_71(item);
		UI_set_item_flag_A4(item, 0x0008);
	labelFunc0667_01F4:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0668 0x668 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0668_0078;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Xen Ex@");
	if(!Func0951()) goto labelFunc0668_005B;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x001F);
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0039, 0x65, 0x70, 0x6A, 0x7A]);
	goto labelFunc0668_0078;
	labelFunc0668_005B:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0668_0078:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0669 0x669 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0669_00B1;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Quas@");
	if(!Func0951()) goto labelFunc0669_009B;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x67, 0x6A, 0x58, 0x0043]);
	var0001 = UI_find_nearby_41(item, 0x0097, 0x0019, 0x00B0);
	var0001 = (var0001 & UI_find_nearby_41(item, 0x0098, 0x0019, 0x00B0));
	var0001 = (var0001 & UI_find_nearby_41(item, 0x0212, 0x0019, 0x00B0));
	if(!var0001) goto labelFunc0669_0098;
	enum();
	labelFunc0669_0073:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0669_0098);
		var0000 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x0669], 0x0006);
		goto labelFunc0669_0073;
	labelFunc0669_0098:
		goto labelFunc0669_00B1;
	labelFunc0669_009B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x67, 0x6A, 0x55, 0x0606]);
	labelFunc0669_00B1:
		if(!(event == 0x0002)) goto labelFunc0669_013A;
		var0005 = [0x0212];
		var0006 = UI_get_item_shape_18(item);
		if(!in(var0006, var0005)) goto labelFunc0669_010E;
		if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0669_010B;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x2D], 0x0006);
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0669_010B:
		goto labelFunc0669_013A;
	labelFunc0669_010E:
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x2D], 0x0006);
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0669_013A:
		return;
}
// externs
extern var Func0951 0x951 ();

Func066A 0x66A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc066A_005B;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Quas Wis@");
	if(!Func0951()) goto labelFunc066A_003F;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x6D, 0x61, 0x66, 0x65, 0x67, 0x55, 0x066A]);
	goto labelFunc066A_005B;
	labelFunc066A_003F:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x66, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc066A_005B:
		if(!(event == 0x0002)) goto labelFunc066A_00C5;
		var0001 = UI_find_nearby_41(item, 0xFE99, 0x0019, 0x0008);
		var0002 = UI_get_party_list_2B();
		enum();
	labelFunc066A_007C:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc066A_00C5);
		if(!(!in(var0005, var0002))) goto labelFunc066A_00C2;
		if(!(UI_get_npc_prop_28(var0005, 0x0002) > 0x0005)) goto labelFunc066A_00C2;
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_attack_mode_59(var0005, 0x0007);
		UI_set_opponent_5B(var0005, UI_get_avatar_ref_2A());
	labelFunc066A_00C2:
		goto labelFunc066A_007C;
	labelFunc066A_00C5:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func066B 0x66B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc066B_00E6;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Frio Grav@");
	if(!Func0951()) goto labelFunc066B_00C9;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x59, var0001, 0x65, 0x66, 0x67]);
	var0003 = UI_create_new_object_2C(0x0231);
	if(!var0003) goto labelFunc066B_00C6;
	var0004 = (var0000[0x0002] + 0x0001);
	var0005 = (var0000[0x0003] + 0x0001);
	var0006 = var0000[0x0004];
	var0007 = [var0004, var0005, var0006];
	var0008 = UI_update_last_created_2F(var0007);
	if(!var0008) goto labelFunc066B_00C6;
	var0009 = 0x0064;
	var0008 = UI_set_item_quality_1D(var0003, var0009);
	UI_set_item_flag_A4(var0003, 0x0012);
	var0008 = UI_delayed_execute_usecode_array_02(var0003, 0x2D, var0009);
	labelFunc066B_00C6:
		goto labelFunc066B_00E6;
	labelFunc066B_00C9:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc066B_00E6:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func066C 0x66C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0001)) goto labelFunc066C_01A6;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Kal Frio Grav@");
	if(!Func0951()) goto labelFunc066C_0189;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x66, 0x67, 0x65]);
	var0003 = [Dupre, 0x0000, 0x0001, 0x0002, 0x0002, 0x0002, 0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino];
	var0004 = [Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0002, 0x0002, 0x0002, 0x0001, 0x0000, Dupre];
	var0005 = 0x0000;
	labelFunc066C_00A2:
		if(!(var0005 < 0x000C)) goto labelFunc066C_0186;
		var0005 = (var0005 + 0x0001);
		var0006 = (var0000[0x0002] + var0003[var0005]);
		var0007 = (var0000[0x0003] + var0004[var0005]);
		var0008 = var0000[0x0004];
		var0009 = [var0006, var0007, var0008];
		var000A = [var0006, var0007, (var0008 + 0x0001)];
		if(!(!UI_is_not_blocked_A0(var0009, 0x026D, 0x0000))) goto labelFunc066C_0118;
		var0009 = var000A;
	labelFunc066C_0118:
		if(!UI_is_not_blocked_A0(var0009, 0x026D, 0x0000)) goto labelFunc066C_0183;
		var000B = UI_create_new_object_2C(0x026D);
		if(!var000B) goto labelFunc066C_0183;
		UI_set_item_flag_A4(var000B, 0x0012);
		UI_set_item_flag_A4(var000B, 0x0000);
		var0002 = UI_update_last_created_2F(var0009);
		if(!var0002) goto labelFunc066C_0183;
		var0002 = UI_set_npc_prop_29(var000B, 0x0003, 0x0001);
		var0002 = UI_delayed_execute_usecode_array_02(var000B, [0x23, 0x55, 0x066C], var0005);
	labelFunc066C_0183:
		goto labelFunc066C_00A2;
	labelFunc066C_0186:
		goto labelFunc066C_01A6;
	labelFunc066C_0189:
		var000C = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x66, 0x67, 0x65, 0x55, 0x0606]);
	labelFunc066C_01A6:
		if(!(event == 0x0002)) goto labelFunc066C_0223;
		var0009 = UI_get_object_position_20(item);
		var0002 = UI_set_last_created_2E(item);
		if(!var0002) goto labelFunc066C_01CE;
		var0002 = UI_update_last_created_2F(0xFE9A);
	labelFunc066C_01CE:
		var000B = UI_create_new_object_2C(0x0231);
		if(!var000B) goto labelFunc066C_0223;
		UI_set_item_flag_A4(var000B, 0x0012);
		var0002 = UI_update_last_created_2F(var0009);
		if(!var0002) goto labelFunc066C_0223;
		var000D = 0x001E;
		var000D = (var000D + UI_die_roll_17(0x0001, 0x0005));
		var0002 = UI_delayed_execute_usecode_array_02(var000B, [0x23, 0x2D], var000D);
	labelFunc066C_0223:
		return;
}
// externs
extern var Func0980 0x980 (var var0000);
extern var Func0951 0x951 ();

Func066D 0x66D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0001)) goto labelFunc066D_010A;
	var0000 = 0x0019;
	UI_halt_scheduled_71(item);
	var0001 = Func0980(var0000);
	UI_item_say_4D(item, "@Vas In Frio Grav@");
	if(!Func0951()) goto labelFunc066D_00EE;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x6C, 0x6D, 0x6C, 0x70, 0x6A]);
	enum();
	labelFunc066D_0047:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc066D_00EB);
		var0006 = UI_get_object_position_20(var0005);
		var0007 = var0006[0x0001];
		var0008 = var0006[0x0002];
		var0009 = var0006[0x0003];
		var000A = [var0007, var0008, 0x0000];
		var000B = UI_create_new_object_2C(0x0231);
		if(!var000B) goto labelFunc066D_00E8;
		var0002 = UI_update_last_created_2F(var000A);
		if(!var0002) goto labelFunc066D_00E8;
		var000C = UI_die_roll_17(0x0001, 0x000F);
		var000D = (0x001E + var000C);
		var0002 = UI_set_item_quality_1D(var000B, var000D);
		UI_set_item_flag_A4(var000B, 0x0012);
		var0002 = UI_delayed_execute_usecode_array_02(var000B, [0x23, 0x2D], var000D);
	labelFunc066D_00E8:
		goto labelFunc066D_0047;
	labelFunc066D_00EB:
		goto labelFunc066D_010A;
	labelFunc066D_00EE:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x6C, 0x6D, 0x6C, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc066D_010A:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0941 0x941 (var var0000);

Func066E 0x66E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc066E_0075;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Hur Sanct@");
	if(!Func0951()) goto labelFunc066E_005B;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6C, 0x70, 0x6C, 0x70, 0x58, 0x0043]);
	var0001 = Func09A0(0x0000, 0x0004);
	var0000 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x066E], 0x000A);
	goto labelFunc066E_0075;
	labelFunc066E_005B:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6C, 0x70, 0x6C, 0x70, 0x55, 0x0606]);
	labelFunc066E_0075:
		if(!(event == 0x0002)) goto labelFunc066E_013F;
		var0002 = UI_count_objects_31(0xFE9B, 0x0255, 0xFE99, 0xFE99);
		var0003 = UI_count_objects_31(0xFE9B, 0x025E, 0xFE99, 0xFE99);
		var0004 = UI_count_objects_31(0xFE9B, 0x0256, 0xFE99, 0xFE99);
		var0002 = (var0002 + var0003);
		var0005 = 0x02D2;
		if(!(var0004 > var0002)) goto labelFunc066E_00D6;
		var0005 = 0x02D3;
	labelFunc066E_00D6:
		var0001 = UI_create_new_object_2C(var0005);
		if(!var0001) goto labelFunc066E_013F;
		var0006 = UI_get_object_position_20(0xFE9C);
		var0007 = (Func0941(0xFE9C) * 0x0008);
		var0008 = UI_die_roll_17(var0007, (var0007 + 0x0014));
		if(!(var0008 > 0x0063)) goto labelFunc066E_011E;
		var0008 = 0x0063;
	labelFunc066E_011E:
		UI_set_item_flag_A4(var0001, 0x0012);
		var0000 = UI_set_item_quantity_1F(var0001, var0008);
		var0000 = UI_update_last_created_2F(var0006);
	labelFunc066E_013F:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func066F 0x66F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc066F_0150;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = UI_get_item_frame_1A(var0000);
	var0003 = UI_get_object_position_20(var0000);
	var0004 = Func0979(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Ort Xen@");
	if(!Func0951()) goto labelFunc066F_0150;
	if(!(((var0001 == 0x02FA) && ((var0002 == 0x001B) || (var0002 == 0x001C))) || ((var0001 == 0x0190) && (var0002 == 0x001E)))) goto labelFunc066F_0150;
	var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0004, 0x68, 0x61, 0x65, 0x6D, 0x61, 0x58, 0x0043]);
	UI_obj_sprite_effect_91(var0000[0x0001], 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	var0005 = UI_get_body_npc_65(var0000);
	if(!(var0005 != Dupre)) goto labelFunc066F_012F;
	var0006 = UI_resurrect_63(var0000);
	if(!var0006) goto labelFunc066F_010B;
	var0007 = UI_get_object_position_20(0xFE9C);
	Func09AC(var0005, var0007[0x0001], var0007[0x0002], 0x000C);
	UI_set_alignment_4A(var0005, 0x0000);
	UI_set_item_flag_A4(var0005, 0x001E);
	goto labelFunc066F_012C;
	labelFunc066F_010B:
		var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0004, 0x68, 0x61, 0x65, 0x6D, 0x61, 0x55, 0x0606]);
	labelFunc066F_012C:
		goto labelFunc066F_0150;
	labelFunc066F_012F:
		var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0004, 0x68, 0x61, 0x65, 0x6D, 0x61, 0x55, 0x0606]);
	labelFunc066F_0150:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0670 0x670 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = false;
	if(!(event == 0x0001)) goto labelFunc0670_0100;
	UI_halt_scheduled_71(item);
	var0001 = UI_click_on_item_3F();
	UI_item_say_4D(item, "@In Sanct Grav@");
	var0002 = (var0001[0x0002] + 0x0001);
	var0003 = (var0001[0x0003] + 0x0001);
	var0004 = var0001[0x0004];
	var0005 = [var0002, var0003, var0004];
	var0006 = UI_is_not_blocked_A0(var0005, 0x0300, 0x0000);
	if(!(Func0951() && var0006)) goto labelFunc0670_00DC;
	var0007 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67]);
	var0008 = UI_create_new_object_2C(0x0300);
	if(!var0008) goto labelFunc0670_00D5;
	var0009 = UI_update_last_created_2F(var0005);
	if(!var0009) goto labelFunc0670_00CE;
	UI_set_item_flag_A4(var0008, 0x0012);
	var000A = 0x00C8;
	var0009 = UI_set_item_quality_1D(var0008, var000A);
	var0009 = UI_delayed_execute_usecode_array_02(var0008, 0x2D, var000A);
	goto labelFunc0670_00D2;
	labelFunc0670_00CE:
		var0000 = true;
	labelFunc0670_00D2:
		goto labelFunc0670_00D9;
	labelFunc0670_00D5:
		var0000 = true;
	labelFunc0670_00D9:
		goto labelFunc0670_00E0;
	labelFunc0670_00DC:
		var0000 = true;
	labelFunc0670_00E0:
		if(!(0x0606 == true)) goto labelFunc0670_0100;
		var0007 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0670_0100:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0671 0x671 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0671_007C;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@In Hur Grav Ylem@");
	if(!Func0951()) goto labelFunc0671_005D;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x018F);
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x6F, 0x70, 0x6F, 0x6A, 0x7A]);
	goto labelFunc0671_007C;
	labelFunc0671_005D:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc0671_007C:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0672 0x672 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0672_00A6;
	var0000 = UI_get_object_position_20(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas An Zu@");
	if(!Func0951()) goto labelFunc0672_0090;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0039, 0x65, 0x67]);
	var0002 = 0x0019;
	var0003 = UI_find_nearby_41(item, Dupre, var0002, 0x0004);
	enum();
	labelFunc0672_006B:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0672_008D);
		var0001 = UI_execute_usecode_array_01(var0006, [0x23, 0x55, 0x0672]);
		goto labelFunc0672_006B;
	labelFunc0672_008D:
		goto labelFunc0672_00A6;
	labelFunc0672_0090:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0672_00A6:
		if(!(event == 0x0002)) goto labelFunc0672_00BB;
		UI_halt_scheduled_71(item);
		UI_clear_item_flag_A5(item, 0x0001);
	labelFunc0672_00BB:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0673 0x673 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc0673_00B7;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@In Vas Por@");
	if(!Func0951()) goto labelFunc0673_009D;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x58, 0x0040, 0x70, 0x6F, 0x6A, 0x55, 0x0673]);
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc0673_005C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0673_009A);
		var0005 = UI_get_distance_21(item, var0004);
		var0005 = ((var0005 / 0x0003) + 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x0673], var0005);
		goto labelFunc0673_005C;
	labelFunc0673_009A:
		goto labelFunc0673_00B7;
	labelFunc0673_009D:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc0673_00B7:
		if(!(event == 0x0002)) goto labelFunc0673_00C7;
		UI_set_item_flag_A4(item, 0x000C);
	labelFunc0673_00C7:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0674 0x674 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0001)) goto labelFunc0674_00BE;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@In Hur Nox@");
	if(!Func0951()) goto labelFunc0674_00A1;
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x005B, 0x65, 0x66, 0x67]);
	var0003 = UI_create_new_object_2C(0x0384);
	if(!var0003) goto labelFunc0674_009E;
	var0004 = (var0000[0x0002] + 0x0001);
	var0005 = (var0000[0x0003] + 0x0001);
	var0006 = var0000[0x0004];
	var0007 = [var0004, var0005, var0006];
	UI_set_item_flag_A4(var0003, 0x0012);
	var0002 = UI_update_last_created_2F(var0007);
	labelFunc0674_009E:
		goto labelFunc0674_00BE;
	labelFunc0674_00A1:
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0674_00BE:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0675 0x675 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0675_0103;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Mani@");
	if(!Func0951()) goto labelFunc0675_00EB;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x70, 0x6A, 0x58, 0x0040]);
	var0001 = UI_get_party_list2_AA();
	enum();
	labelFunc0675_003B:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0675_00E8);
		UI_obj_sprite_effect_91(var0004, 0x000D, Dupre, Dupre, 0x0000, 0x0000, 0x0000, Dupre);
		UI_clear_item_flag_A5(var0004, 0x0007);
		UI_clear_item_flag_A5(var0004, 0x0008);
		UI_clear_item_flag_A5(var0004, 0x0001);
		var0005 = UI_get_npc_prop_28(var0004, 0x0000);
		var0006 = UI_get_npc_prop_28(var0004, 0x0003);
		if(!(var0006 < 0x0001)) goto labelFunc0675_00B4;
		var0000 = UI_set_npc_prop_29(var0004, 0x0003, var0005);
	labelFunc0675_00B4:
		var0006 = UI_get_npc_prop_28(var0004, 0x0003);
		if(!(var0006 < 0x0000)) goto labelFunc0675_00D1;
		var0006 = 0x0001;
	labelFunc0675_00D1:
		var0000 = UI_set_npc_prop_29(var0004, 0x0003, (var0005 - var0006));
		goto labelFunc0675_003B;
	labelFunc0675_00E8:
		goto labelFunc0675_0103;
	labelFunc0675_00EB:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0675_0103:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0676 0x676 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0676_00AA;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = Func0979(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Ex Por@");
	if(!(Func0951() && (UI_is_npc_3D(var0000) && ((var0000[0x0001] != 0x0000) && (var0001 != 0x02D1))))) goto labelFunc0676_0089;
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x68, 0x69, 0x65, 0x66, 0x6A, 0x58, 0x0043]);
	var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0676], 0x000A);
	goto labelFunc0676_00AA;
	labelFunc0676_0089:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x68, 0x69, 0x65, 0x66, 0x6A, 0x55, 0x0606]);
	labelFunc0676_00AA:
		if(!(event == 0x0002)) goto labelFunc0676_01B1;
		var0004 = UI_get_cont_items_33(item, 0xFE99, 0xFE99, 0xFE99);
		if(!UI_get_array_size_73(var0004)) goto labelFunc0676_01B1;
		var0005 = UI_set_last_created_2E(var0004[0x0001]);
		if(!var0005) goto labelFunc0676_01B1;
		var0006 = UI_get_object_position_20(item);
		var0003 = UI_update_last_created_2F(var0006);
		if(!(!var0003)) goto labelFunc0676_0119;
		var0003 = UI_update_last_created_2F([(var0006[0x0001] - 0x0002), var0006[0x0002], var0006[0x0003]]);
	labelFunc0676_0119:
		if(!(!var0003)) goto labelFunc0676_0140;
		var0003 = UI_update_last_created_2F([var0006[0x0001], (var0006[0x0002] - 0x0002), var0006[0x0003]]);
	labelFunc0676_0140:
		if(!(!var0003)) goto labelFunc0676_0167;
		var0003 = UI_update_last_created_2F([(var0006[0x0001] + 0x0002), var0006[0x0002], var0006[0x0003]]);
	labelFunc0676_0167:
		if(!(!var0003)) goto labelFunc0676_018E;
		var0003 = UI_update_last_created_2F([var0006[0x0001], (var0006[0x0002] + 0x0002), var0006[0x0003]]);
	labelFunc0676_018E:
		if(!(!var0003)) goto labelFunc0676_019F;
		UI_remove_item_84(var0005);
		goto labelFunc0676_01B1;
	labelFunc0676_019F:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0676]);
	labelFunc0676_01B1:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0677 0x677 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc0677_0086;
	var0000 = UI_click_on_item_3F();
	UI_halt_scheduled_71(item);
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Ort Grav@");
	if(!Func0951()) goto labelFunc0677_0067;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x0327);
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x6F, 0x58, 0x0014, 0x70, 0x6A, 0x6A, 0x7A, 0x61]);
	goto labelFunc0677_0086;
	labelFunc0677_0067:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0677_0086:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0678 0x678 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = false;
	if(!(event == 0x0001)) goto labelFunc0678_00E3;
	UI_halt_scheduled_71(item);
	var0001 = UI_click_on_item_3F();
	UI_item_say_4D(item, "@In Sanct Grav@");
	var0002 = (var0001[0x0002] + 0x0001);
	var0003 = (var0001[0x0003] + 0x0001);
	var0004 = var0001[0x0004];
	var0005 = [var0002, var0003, var0004];
	if(!Func0951()) goto labelFunc0678_00BF;
	var0006 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67]);
	var0007 = UI_create_new_object_2C(0x037E);
	if(!var0007) goto labelFunc0678_00B8;
	UI_set_item_frame_1B(var0007, 0x0009);
	var0006 = UI_update_last_created_2F(var0005);
	if(!var0006) goto labelFunc0678_00B1;
	UI_set_item_flag_A4(var0007, 0x0012);
	var0006 = UI_delayed_execute_usecode_array_02(var0007, 0x2D, 0x00C8);
	goto labelFunc0678_00B5;
	labelFunc0678_00B1:
		var0000 = true;
	labelFunc0678_00B5:
		goto labelFunc0678_00BC;
	labelFunc0678_00B8:
		var0000 = true;
	labelFunc0678_00BC:
		goto labelFunc0678_00C3;
	labelFunc0678_00BF:
		var0000 = true;
	labelFunc0678_00C3:
		if(!(0x0606 == true)) goto labelFunc0678_00E3;
		var0008 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x66, 0x67, 0x55, 0x0606]);
	labelFunc0678_00E3:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();
extern Func0982 0x982 (var var0000, var var0001);

Func0679 0x679 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!((event == 0x0001) || ((event == 0x0004) && (UI_get_npc_number_47(item) == 0xFE9C)))) goto labelFunc0679_008C;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@Corp Por@");
	if(!Func0951()) goto labelFunc0679_006D;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x020F);
	var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x58, 0x0014, 0x70, 0x6F, 0x6A, 0x7A]);
	goto labelFunc0679_008C;
	labelFunc0679_006D:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x70, 0x6F, 0x6A, 0x55, 0x0606]);
	labelFunc0679_008C:
		if(!((event == 0x0004) && (item != 0xFE9C))) goto labelFunc0679_0115;
		if(!UI_is_npc_3D(item)) goto labelFunc0679_00BD;
		var0003 = UI_get_npc_prop_28(0xFE9C, 0x0002);
		var0004 = UI_get_npc_prop_28(item, 0x0002);
		goto labelFunc0679_00C9;
	labelFunc0679_00BD:
		var0003 = 0x0000;
		var0004 = 0x0001;
	labelFunc0679_00C9:
		var0005 = UI_get_item_flag_A3(item, 0x000E);
		if(!((var0003 > var0004) && (var0005 == false))) goto labelFunc0679_00F8;
		var0006 = (var0003 - var0004);
		Func0982(item, var0006);
		goto labelFunc0679_0115;
	labelFunc0679_00F8:
		var0006 = (var0004 - var0003);
		var0007 = UI_get_npc_object_23(0xFE9C);
		Func0982(var0007, var0006);
	labelFunc0679_0115:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func067A 0x67A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0001)) goto labelFunc067A_0135;
	var0000 = false;
	UI_halt_scheduled_71(item);
	var0001 = UI_click_on_item_3F();
	var0002 = Func0979(var0001);
	var0003 = [var0001[0x0002], var0001[0x0003], var0001[0x0004]];
	UI_item_say_4D(item, "@Tym Vas Flam@");
	if(!Func0951()) goto labelFunc067A_010C;
	var0004 = UI_create_new_object_2C(0x026D);
	if(!var0004) goto labelFunc067A_0105;
	UI_set_item_flag_A4(var0004, 0x0012);
	UI_set_item_flag_A4(var0004, 0x0000);
	var0005 = UI_update_last_created_2F(var0003);
	if(!var0005) goto labelFunc067A_00FE;
	var0005 = UI_set_npc_prop_29(var0004, 0x0003, 0x0001);
	var0005 = UI_projectile_effect_4F(item, var0004, 0x026D);
	var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x7A], 0x000C);
	var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x2D], 0x000E);
	var0005 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0002, 0x58, 0x0014, 0x6A, 0x70, 0x6F]);
	UI_obj_sprite_effect_91(var0001[0x0001], 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	goto labelFunc067A_0102;
	labelFunc067A_00FE:
		var0000 = true;
	labelFunc067A_0102:
		goto labelFunc067A_0109;
	labelFunc067A_0105:
		var0000 = true;
	labelFunc067A_0109:
		goto labelFunc067A_0110;
	labelFunc067A_010C:
		var0000 = true;
	labelFunc067A_0110:
		if(!var0000) goto labelFunc067A_0135;
		var0005 = UI_execute_usecode_array_01(var0004, [0x23, 0x59, var0002, 0x6A, 0x70, 0x6F, 0x55, 0x0606]);
	labelFunc067A_0135:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func067B 0x67B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc067B_009A;
	var0000 = UI_click_on_item_3F();
	var0001 = UI_get_item_shape_18(var0000);
	var0002 = UI_get_item_usability_19(var0000);
	var0003 = Func0979(item);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Frio Xen Ex@");
	if(!(Func0951() && ((var0002 < 0x0002) && (var0002 > 0x0000)))) goto labelFunc067B_0083;
	var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0003, 0x58, 0x0043]);
	var0004 = UI_set_last_created_2E(var0000);
	if(!var0004) goto labelFunc067B_0080;
	var0004 = UI_update_last_created_2F(UI_get_object_position_20(item));
	labelFunc067B_0080:
		goto labelFunc067B_009A;
	labelFunc067B_0083:
		var0004 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0003, 0x55, 0x0606]);
	labelFunc067B_009A:
		return;
}
// externs
extern var Func0951 0x951 ();

Func067C 0x67C (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc067C_005B;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "Kal Frio Xen");
	if(!Func0951()) goto labelFunc067C_003F;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x70, 0x6A, 0x58, 0x0014, 0x55, 0x067C]);
	goto labelFunc067C_005B;
	labelFunc067C_003F:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc067C_005B:
		if(!(event == 0x0002)) goto labelFunc067C_006E;
		var0000 = UI_summon_55(0x02FB, true);
	labelFunc067C_006E:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func07D7 0x7D7 (var var0000);

Func067D 0x67D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc067D_00A0;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Frio Xen Ex@");
	if(!(Func0951() && (!UI_get_item_flag_A3(0xFE9C, 0x0023)))) goto labelFunc067D_007E;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x68, 0x69, 0x6A, 0x69, 0x61, 0x6D, 0x6E, 0x6E, 0x55, 0x07D6, 0x58, 0x0043]);
	var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x2C, 0x55, 0x067D], 0x012C);
	UI_set_polymorph_B3(UI_get_npc_object_23(0xFE9C), 0x0212);
	goto labelFunc067D_00A0;
	labelFunc067D_007E:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x68, 0x69, 0x6A, 0x69, 0x61, 0x6D, 0x6E, 0x6E, 0x55, 0x0606]);
	labelFunc067D_00A0:
		if(!(event == 0x0002)) goto labelFunc067D_014F;
		var0001 = UI_get_object_position_20(item);
		var0002 = ((var0001[0x0001] + 0x0002) & ((var0001[0x0002] + 0x0002) & var0001[0x0003]));
		var0003 = false;
		if(!((var0001[0x0001] > 0x0550) && ((var0001[0x0001] < 0x0573) && ((var0001[0x0002] > 0x01EA) && (var0001[0x0002] < 0x0212))))) goto labelFunc067D_0105;
		var0003 = true;
	labelFunc067D_0105:
		if(!((var0003 == false) && UI_is_not_blocked_A0(var0002, 0x02D1, 0x0001))) goto labelFunc067D_0130;
		UI_set_polymorph_B3(UI_get_npc_object_23(0xFE9C), 0x02D1);
		item;
		calle();
		goto labelFunc067D_014F;
	labelFunc067D_0130:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x2C, 0x55, 0x067D], 0x000A);
	labelFunc067D_014F:
		return;
}
Func067E 0x67E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc067E_00C2;
	var0000 = (UI_get_object_position_20(0xFE9C) & (0x0096 & 0x001F));
	var0001 = UI_find_nearby_41(var0000, 0x025F, 0x0050, 0x0010);
	enum();
	labelFunc067E_002E:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc067E_00C2);
		var0005 = UI_get_item_quality_1C(var0004);
		var0006 = UI_get_item_frame_1A(var0004);
		if(!((var0005 == 0x0096) && (var0006 == 0x001F))) goto labelFunc067E_00AA;
		var0007 = UI_get_object_position_20(UI_get_npc_object_23(0xFE9C));
		var0008 = (var0007[0x0003] + 0x0001);
		var0008 = (var0008 / 0x0002);
		UI_obj_sprite_effect_91(0xFE9C, 0x0009, var0008, var0008, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		goto labelFunc067E_00BF;
	labelFunc067E_00AA:
		var0009 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07E9], 0x0001);
	labelFunc067E_00BF:
		goto labelFunc067E_002E;
	labelFunc067E_00C2:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func067F 0x67F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0001) || (event == 0x0004))) goto labelFunc067F_008A;
	UI_halt_scheduled_71(item);
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_item_say_4D(item, "@In Jux Por Ylem@");
	if(!Func0951()) goto labelFunc067F_0069;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x011F);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x65, 0x61, 0x6F, 0x61, 0x67, 0x6A, 0x7A, 0x61]);
	goto labelFunc067F_008A;
	labelFunc067F_0069:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x65, 0x61, 0x6F, 0x61, 0x6A, 0x55, 0x0606]);
	labelFunc067F_008A:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);
extern var Func0951 0x951 ();

Func0680 0x680 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0001)) goto labelFunc0680_0074;
	var0000 = UI_click_on_item_3F();
	var0001 = Func0979(var0000);
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Corp Hur@");
	if(!Func0951()) goto labelFunc0680_0059;
	var0002 = UI_projectile_effect_4F(item, var0000, 0x027F);
	var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x58, 0x0014, 0x6F, 0x67, 0x7A]);
	goto labelFunc0680_0074;
	labelFunc0680_0059:
		var0002 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0001, 0x6F, 0x67, 0x55, 0x0606]);
	labelFunc0680_0074:
		return;
}
// externs
extern var Func0951 0x951 ();
extern Func0982 0x982 (var var0000, var var0001);

Func0681 0x681 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!(event == 0x0001)) goto labelFunc0681_0120;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Corp@");
	if(!Func0951()) goto labelFunc0681_0106;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x0014, 0x6D, 0x61, 0x6F, 0x70, 0x58, 0x0082]);
	var0001 = 0x0019;
	var0002 = UI_find_nearby_41(item, Dupre, var0001, 0x0004);
	var0003 = UI_get_party_list2_AA();
	var0004 = false;
	enum();
	labelFunc0681_0077:
		for (var0007 in var0002 with var0005 to var0006 atend labelFunc0681_00CB);
		if(!(!in(var0007, var0003))) goto labelFunc0681_00C8;
		var0001 = UI_get_distance_21(item, var0007);
		var0001 = ((var0001 / 0x0003) + 0x0005);
		UI_halt_scheduled_71(var0007);
		var0000 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x0681], var0001);
		var0004 = true;
	labelFunc0681_00C8:
		goto labelFunc0681_0077;
	labelFunc0681_00CB:
		if(!(var0004 == true)) goto labelFunc0681_0103;
		var0003 = UI_get_party_list_2B();
		enum();
	labelFunc0681_00DB:
		for (var000A in var0003 with var0008 to var0009 atend labelFunc0681_0103);
		var000B = UI_get_npc_prop_28(var000A, 0x0003);
		Func0982(var000A, (var000B - 0x0002));
		goto labelFunc0681_00DB;
	labelFunc0681_0103:
		goto labelFunc0681_0120;
	labelFunc0681_0106:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x70, 0x55, 0x0606]);
	labelFunc0681_0120:
		if(!(event == 0x0002)) goto labelFunc0681_0158;
		var000C = UI_get_item_flag_A3(item, 0x000E);
		if(!(var000C == false)) goto labelFunc0681_0158;
		var000B = UI_get_npc_prop_28(item, 0x0003);
		Func0982(item, (var000B - 0x0002));
		Func0982(item, 0x0032);
	labelFunc0681_0158:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0682 0x682 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0001)) goto labelFunc0682_00B6;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Vas Sact Lor@");
	if(!Func0951()) goto labelFunc0682_009A;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x58, 0x0082, 0x61, 0x6F, 0x61, 0x6A]);
	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc0682_0059:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0682_0097);
		var0005 = UI_get_distance_21(item, var0004);
		var0005 = ((var0005 / 0x0003) + 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x0682], var0005);
		goto labelFunc0682_0059;
	labelFunc0682_0097:
		goto labelFunc0682_00B6;
	labelFunc0682_009A:
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x61, 0x6F, 0x61, 0x6A, 0x55, 0x0606]);
	labelFunc0682_00B6:
		if(!(event == 0x0002)) goto labelFunc0682_00C6;
		UI_set_item_flag_A4(item, 0x0000);
	labelFunc0682_00C6:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);
extern var Func0980 0x980 (var var0000);

Func0683 0x683 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0001)) goto labelFunc0683_0322;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "Uus Vas Jux Ylem@");
	if(!Func0951()) goto labelFunc0683_0306;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x68, 0x68, 0x6A, 0x69, 0x58, 0x0043]);
	var0001 = (Func0941(0xFE9C) + UI_die_roll_17(0x0001, 0x0004));
	if(!(var0001 > 0x0008)) goto labelFunc0683_012C;
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0005);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0006);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0007);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0008);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0009);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000A);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000B);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000C);
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000D);
	labelFunc0683_012C:
		if(!(var0001 == 0x0008)) goto labelFunc0683_01DE;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0006);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0007);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0008);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0009);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000A);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000B);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000C);
	labelFunc0683_01DE:
		if(!(var0001 == 0x0007)) goto labelFunc0683_027B;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0006);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0007);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0008);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0009);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000A);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000B);
	labelFunc0683_027B:
		if(!(var0001 < 0x0007)) goto labelFunc0683_0303;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0006);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0007);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0008);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x0009);
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0683], 0x000A);
	labelFunc0683_0303:
		goto labelFunc0683_0322;
	labelFunc0683_0306:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x68, 0x68, 0x6A, 0x69, 0x55, 0x0606]);
	labelFunc0683_0322:
		if(!(event == 0x0002)) goto labelFunc0683_0379;
		var0002 = 0x0019;
		var0003 = Func0980(var0002);
		var0004 = UI_get_array_size_73(var0003);
		if(!var0003) goto labelFunc0683_0379;
		var0005 = UI_get_random_00(var0004);
		var0006 = var0003[var0005];
		var0007 = UI_projectile_effect_4F(item, var0006, 0x0327);
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x7A]);
	labelFunc0683_0379:
		return;
}
// externs
extern var Func0951 0x951 ();

Func0684 0x684 (var var0000)
{
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0684_005C;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@Rel Hur@");
	if(!Func0951()) goto labelFunc0684_0046;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x58, 0x0039]);
	if(!(UI_get_weather_52() != 0x0003)) goto labelFunc0684_0043;
	UI_set_weather_53(0x0000);
	labelFunc0684_0043:
		goto labelFunc0684_005C;
	labelFunc0684_0046:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x67, 0x55, 0x0606]);
	labelFunc0684_005C:
		return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0977 0x977 (var var0000);

Func0685 0x685 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0001)) goto labelFunc0685_005B;
	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "Kal Vas Xen");
	if(!Func0951()) goto labelFunc0685_003F;
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x70, 0x6A, 0x58, 0x0014, 0x55, 0x0685]);
	goto labelFunc0685_005B;
	labelFunc0685_003F:
		var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6D, 0x61, 0x6F, 0x70, 0x6A, 0x55, 0x0606]);
	labelFunc0685_005B:
		if(!(event == 0x0002)) goto labelFunc0685_015D;
		var0001 = [0x0210, 0x0151, 0x0215, 0x01F5, 0x0202, 0x0295, 0x02C2];
		var0002 = [0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005, 0x0005];
		var0003 = [0x0005, 0x0005, 0x0001, 0x0002, 0x0003, 0x0005, 0x0002];
		var0004 = Func0977(var0001);
	labelFunc0685_00BD:
		var0005 = UI_die_roll_17(0x0001, var0004);
		var0006 = UI_die_roll_17(0x0001, 0x0064);
		if(!(var0002[var0005] < var0006)) goto labelFunc0685_00E7;
		goto labelFunc0685_00BD;
	labelFunc0685_00E7:
		var0007 = var0003[var0005];
		var0008 = (var0007 / 0x0002);
		if(!(var0008 < 0x0001)) goto labelFunc0685_010A;
		var0008 = 0x0001;
	labelFunc0685_010A:
		var0009 = UI_die_roll_17(0x0001, var0008);
		if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc0685_0132;
		var0009 = (Dupre * var0009);
	labelFunc0685_0132:
		var0007 = (var0007 + var0009);
	labelFunc0685_013C:
		if(!var0007) goto labelFunc0685_015D;
		var0000 = UI_summon_55(var0001[var0005], true);
		var0007 = (var0007 - 0x0001);
		goto labelFunc0685_013C;
	labelFunc0685_015D:
		return;
}
Func0686 0x686 (var var0000)
{
	var var0001;

	UI_halt_scheduled_71(item);
	UI_item_say_4D(item, "@An Tym@");
	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x6A, 0x70, 0x55, 0x0606]);
	return;
}
// externs
extern var Func0951 0x951 ();
extern var Func0941 0x941 (var var0000);

Func0687 0x687 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0001)) goto labelFunc0687_011F;
	UI_halt_scheduled_71(item);
	var0000 = UI_get_object_position_20(item);
	UI_item_say_4D(item, "@Ex Por@");
	if(!Func0951()) goto labelFunc0687_0103;
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, Iolo, Iolo, 0x0000, Dupre);
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0003, Iolo, 0x0000, Dupre);
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, 0x0003, 0x0003, 0x0000, Dupre);
	UI_obj_sprite_effect_91(item, 0x0007, Shamino, Shamino, Iolo, 0x0003, 0x0000, Dupre);
	UI_obj_sprite_effect_91(item, 0x001A, Shamino, Shamino, 0x0000, 0x0000, 0x0000, Dupre);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x69, 0x6D, 0x6D, 0x69, 0x58, 0x0043]);
	var0002 = (0x000F + Func0941(0xFE9C));
	labelFunc0687_00CE:
		if(!(var0002 != 0x0000)) goto labelFunc0687_0100;
		var0002 = (var0002 - 0x0001);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0688], (var0002 + 0x000A));
		goto labelFunc0687_00CE;
	labelFunc0687_0100:
		goto labelFunc0687_011F;
	labelFunc0687_0103:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x65, 0x69, 0x6D, 0x6D, 0x69, 0x55, 0x0606]);
	labelFunc0687_011F:
		return;
}
// externs
extern var Func0941 0x941 (var var0000);

Func0688 0x688 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = [];
	var0001 = (0x000A + Func0941(0xFE9C));
	var0002 = UI_find_nearby_41(item, 0xFE99, var0001, 0x0008);
	var0003 = UI_get_party_list_2B();
	var0004 = [];
	enum();
	labelFunc0688_0032:
		for (var0007 in var0002 with var0005 to var0006 atend labelFunc0688_0055);
		if(!(!in(var0007, var0003))) goto labelFunc0688_0052;
		var0004 = (var0004 & var0007);
	labelFunc0688_0052:
		goto labelFunc0688_0032;
	labelFunc0688_0055:
		var0008 = UI_get_array_size_73(var0004);
		var0009 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0009 == 0x0001)) goto labelFunc0688_00C3;
		var000A = UI_get_object_position_20(0xFE9C);
		var000B = (var000A[0x0001] + UI_die_roll_17(0xFFF4, 0x000C));
		var000C = (var000A[0x0002] + UI_die_roll_17(0xFFF4, 0x000C));
		var000D = var000A[0x0003];
		var0000 = [var000B, var000C, 0x0000];
		goto labelFunc0688_0111;
	labelFunc0688_00C3:
		if(!(var0008 != 0x0000)) goto labelFunc0688_0111;
		var000E = UI_die_roll_17(0x0001, var0008);
		var000A = UI_get_object_position_20(var0004[var000E]);
		var000B = var000A[0x0001];
		var000C = var000A[0x0002];
		var000D = var000A[0x0003];
		var0000 = [var000B, var000C, var000D];
	labelFunc0688_0111:
		if(!(var0000 != [])) goto labelFunc0688_01B9;
		var000F = UI_die_roll_17(0x0001, 0x0005);
		var0010 = 0x0000;
		if(!((var000F == 0x0001) || (var000F == 0x0002))) goto labelFunc0688_014A;
		var0010 = UI_create_new_object_2C(0x037F);
	labelFunc0688_014A:
		if(!((var000F == 0x0003) || (var000F == 0x0004))) goto labelFunc0688_0166;
		var0010 = UI_create_new_object_2C(0x0231);
	labelFunc0688_0166:
		if(!var0010) goto labelFunc0688_01B9;
		var000F = UI_update_last_created_2F(var0000);
		if(!var000F) goto labelFunc0688_01B9;
		var0011 = UI_die_roll_17(0x0005, 0x000F);
		var000F = UI_set_item_quality_1D(var0010, var0011);
		UI_set_item_flag_A4(var0010, 0x0012);
		var000F = UI_delayed_execute_usecode_array_02(var0010, [0x23, 0x55, 0x0688, 0x2D], var0011);
	labelFunc0688_01B9:
		return;
}
Func068A 0x68A (var var0000)
{
	UI_obj_sprite_effect_91(item, 0x001A, Iolo, 0xFFFC, 0x0000, 0x0000, 0x0000, Iolo);
	gflags[01FC] = false;
	return;
}
Func068B 0x68B (var var0000)
{
	UI_show_npc_face0_05(0xFE9C, 0x0000);
	UcMessage("\"Fascinating. This key refuses to be added to the key ring.\"");
	UcSay;
	UI_remove_npc_face0_07();
	return;
}
Func068C 0x68C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	if(!(gflags[0004] == true)) goto labelFunc068C_014F;
	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = [0x0125, 0x0351, 0x0274, 0x02CD, 0x0222, 0x019F, 0x012C, 0x01A5, 0x021A, 0x017A, 0x01A6];
	UI_move_object_4B(0xFE9C, [0x0880, 0x0680, 0x0000]);
	enum();
	labelFunc068C_004D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc068C_007B);
		var0005 = UI_find_nearby_avatar_3C(var0004);
		enum();
	labelFunc068C_0063:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc068C_0078);
		UI_remove_item_84(var0008);
		goto labelFunc068C_0063;
	labelFunc068C_0078:
		goto labelFunc068C_004D;
	labelFunc068C_007B:
		UI_move_object_4B(0xFE9C, [0x0980, 0x0680, 0x0000]);
		enum();
	labelFunc068C_008F:
		for (var0004 in var0001 with var0009 to var000A atend labelFunc068C_00BD);
		var0005 = UI_find_nearby_avatar_3C(var0004);
		enum();
	labelFunc068C_00A5:
		for (var0008 in var0005 with var000B to var000C atend labelFunc068C_00BA);
		UI_remove_item_84(var0008);
		goto labelFunc068C_00A5;
	labelFunc068C_00BA:
		goto labelFunc068C_008F;
	labelFunc068C_00BD:
		UI_move_object_4B(0xFE9C, [0x0880, 0x0780, 0x0000]);
		enum();
	labelFunc068C_00D1:
		for (var0004 in var0001 with var000D to var000E atend labelFunc068C_00FF);
		var0005 = UI_find_nearby_avatar_3C(var0004);
		enum();
	labelFunc068C_00E7:
		for (var0008 in var0005 with var000F to var0010 atend labelFunc068C_00FC);
		UI_remove_item_84(var0008);
		goto labelFunc068C_00E7;
	labelFunc068C_00FC:
		goto labelFunc068C_00D1;
	labelFunc068C_00FF:
		UI_move_object_4B(0xFE9C, [0x0980, 0x0780, 0x0000]);
		enum();
	labelFunc068C_0113:
		for (var0004 in var0001 with var0011 to var0012 atend labelFunc068C_0141);
		var0005 = UI_find_nearby_avatar_3C(var0004);
		enum();
	labelFunc068C_0129:
		for (var0008 in var0005 with var0013 to var0014 atend labelFunc068C_013E);
		UI_remove_item_84(var0008);
		goto labelFunc068C_0129;
	labelFunc068C_013E:
		goto labelFunc068C_0113;
	labelFunc068C_0141:
		UI_move_object_4B(0xFE9C, var0000);
		gflags[0318] = true;
	labelFunc068C_014F:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func06A4 0x6A4 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc06A4_000E;
	Func094A("Damn! I've stepped on an egg! Egg 0, to be precise!");
	labelFunc06A4_000E:
		return;
}
// externs
extern Func0998 0x998 (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func06A5 0x6A5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0003) && (!gflags[021C]))) goto labelFunc06A5_011E;
	var0000 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
	if(!var0000) goto labelFunc06A5_004F;
	var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x55, 0x0178]);
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x46, 0x000E], 0x0002);
	labelFunc06A5_004F:
		var0002 = UI_find_nearby_41(item, 0x0331, 0x000A, 0x0000);
		var0003 = UI_find_nearby_41(item, 0x0314, 0x0014, 0x0000);
		if(!var0002) goto labelFunc06A5_0080;
		Func0998(var0002, 0x037F);
	labelFunc06A5_0080:
		if(!var0003) goto labelFunc06A5_008F;
		Func0998(var0003, 0x037F);
	labelFunc06A5_008F:
		if(!var0002) goto labelFunc06A5_011E;
		UI_set_npc_id_BD(var0002, 0x0000);
		var0001 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x06A6], 0x0005);
		var0001 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x06A6], 0x0014);
		var0001 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x06A6], 0x002D);
		var0001 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x06A6], 0x003C);
		var0004 = Func09A0(0x0000, 0x0001);
		var0001 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x07D9], 0x005A);
	labelFunc06A5_011E:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func06A6 0x6A6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0002)) goto labelFunc06A6_00AE;
	var0000 = UI_get_npc_id_BC(item);
	if(!(var0000 == 0x0000)) goto labelFunc06A6_002A;
	var0001 = UI_execute_usecode_array_01(item, [0x52, "@Help me!@"]);
	labelFunc06A6_002A:
		if(!(var0000 == 0x0001)) goto labelFunc06A6_0044;
		var0001 = UI_execute_usecode_array_01(item, [0x52, "@The button! Press the button!@"]);
	labelFunc06A6_0044:
		if(!(var0000 == 0x0002)) goto labelFunc06A6_005E;
		var0001 = UI_execute_usecode_array_01(item, [0x52, "@The flames -- burning me!@"]);
	labelFunc06A6_005E:
		if(!(var0000 == 0x0003)) goto labelFunc06A6_0078;
		var0001 = UI_execute_usecode_array_01(item, [0x52, "@Please!@"]);
	labelFunc06A6_0078:
		if(!(var0000 == 0x0004)) goto labelFunc06A6_00A2;
		var0002 = Func09A0(0x0000, 0x0001);
		var0001 = UI_execute_usecode_array_01(var0002, [0x23, 0x55, 0x07D9]);
	labelFunc06A6_00A2:
		UI_set_npc_id_BD(item, (var0000 + 0x0001));
	labelFunc06A6_00AE:
		return;
}
Func06A7 0x6A7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = [0x03B4, 0x03B8, 0x03B7, 0x0284, 0x0285, 0x0286, 0x02F8];
	enum();
	labelFunc06A7_001C:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06A7_00C0);
		var0004 = UI_find_nearby_41(item, var0003, 0x0001, 0x0000);
		if(!var0004) goto labelFunc06A7_00BD;
		UI_play_sound_effect_16(0x0039);
		var0005 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0001), (var0005[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_die_roll_17(0x0001, 0x000A);
		var0007 = (0x0000 - UI_die_roll_17(0x0001, 0x000A));
		var0008 = UI_set_last_created_2E(var0004);
		if(!var0008) goto labelFunc06A7_00BD;
		var0008 = UI_update_last_created_2F([(0x0A21 + var0006), (0x037A + var0007), 0x0000]);
	labelFunc06A7_00BD:
		goto labelFunc06A7_001C;
	labelFunc06A7_00C0:
		return;
}
Func06A8 0x6A8 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0003)) goto labelFunc06A8_004B;
	var0000 = UI_execute_usecode_array_01(item, [0x55, 0x0636]);
	var0001 = UI_find_nearby_41(item, 0x02EB, 0x0005, 0x0000);
	if(!var0001) goto labelFunc06A8_0047;
	var0000 = UI_delayed_execute_usecode_array_02(var0001, [0x55, 0x0464], 0x0002);
	goto labelFunc06A8_004B;
	labelFunc06A8_0047:
		gflags[0007] = false;
	labelFunc06A8_004B:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func099C 0x99C (var var0000);

Func06A9 0x6A9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	if(!(event == 0x0003)) goto labelFunc06A9_017A;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000A]);
	UI_obj_sprite_effect_91(0xFE9C, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0039);
	var0001 = Func097D(0xFE9C, 0x0001, 0x02B0, 0xFE99, 0x0004);
	if(!var0001) goto labelFunc06A9_00CF;
	var0002 = UI_find_nearby_41(item, 0x0320, 0x0014, 0x0000);
	enum();
	labelFunc06A9_006C:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc06A9_00B4);
		if(!(!Func097D(var0005, 0x0001, 0x02B0, 0xFE99, 0x0004))) goto labelFunc06A9_00B1;
		var0006 = UI_create_new_object_2C(0x02B0);
		if(!var0006) goto labelFunc06A9_00B1;
		UI_set_item_frame_1B(var0006, 0x0004);
		var0000 = UI_give_last_created_42(var0005);
	labelFunc06A9_00B1:
		goto labelFunc06A9_006C;
	labelFunc06A9_00B4:
		Func099C(0x02B0);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x55, 0x07DA], 0x000A);
	labelFunc06A9_00CF:
		var0007 = false;
		var0008 = [0x03B4, 0x03B8, 0x03B7, 0x0284, 0x0285, 0x0286, 0x02F8];
		enum();
	labelFunc06A9_00EF:
		for (var000B in var0008 with var0009 to var000A atend labelFunc06A9_0116);
		if(!Func097D(0xFE9C, 0x0001, var000B, 0xFE99, 0xFE99)) goto labelFunc06A9_0113;
		var0007 = true;
	labelFunc06A9_0113:
		goto labelFunc06A9_00EF;
	labelFunc06A9_0116:
		var000C = UI_find_nearby_41(item, 0x00C8, 0x00A0, 0x0010);
		if(!var0007) goto labelFunc06A9_0154;
		enum();
	labelFunc06A9_012E:
		for (var000F in var000C with var000D to var000E atend labelFunc06A9_0151);
		var0000 = UI_execute_usecode_array_01(var000F, [0x49, 0x0002, 0x0005]);
		goto labelFunc06A9_012E;
	labelFunc06A9_0151:
		goto labelFunc06A9_017A;
	labelFunc06A9_0154:
		enum();
	labelFunc06A9_0155:
		for (var000F in var000C with var0010 to var0011 atend labelFunc06A9_017A);
		var0000 = UI_execute_usecode_array_01(var000F, [0x23, 0x49, 0x0007, 0x0005]);
		goto labelFunc06A9_0155;
	labelFunc06A9_017A:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func06AA 0x6AA (var var0000)
{
	if(!Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x0000)) goto labelFunc06AA_001E;
	gflags[00FD] = true;
	UI_remove_item_84(item);
	labelFunc06AA_001E:
		return;
}
Func06AB 0x6AB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc06AB_0065;
	var0000 = UI_find_nearby_41(item, 0x0113, 0x0014, 0x0010);
	enum();
	labelFunc06AB_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06AB_0065);
		var0004 = UI_get_item_frame_1A(var0003);
		if(!(var0004 == 0x0000)) goto labelFunc06AB_0062;
		var0005 = UI_execute_usecode_array_01(var0003, [0x23, 0x48]);
		var0005 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06AB], 0x0005);
		abrt();
	labelFunc06AB_0062:
		goto labelFunc06AB_001A;
	labelFunc06AB_0065:
		if(!(event == 0x0002)) goto labelFunc06AB_00B8;
		var0006 = UI_find_nearby_41(item, 0x0215, 0x0014, 0x0000);
		if(!var0006) goto labelFunc06AB_00B8;
		UI_set_npc_id_BD(var0006[0x0001], 0x0001);
		UI_set_item_flag_A4(var0006[0x0001], 0x001D);
		UI_set_npc_id_BD(var0006[0x0002], 0x0002);
		UI_set_item_flag_A4(var0006[0x0002], 0x001D);
	labelFunc06AB_00B8:
		return;
}
Func06AC 0x6AC (var var0000)
{
	var var0001;

	if(!((event == 0x0002) || (event == 0x0003))) goto labelFunc06AC_0042;
	var0000 = UI_find_nearby_41(item, 0x0280, 0x0001, 0x0000);
	if(!(!var0000)) goto labelFunc06AC_0042;
	gflags[01F9] = true;
	if(!(!((item == UI_get_npc_object_23(0xFE9C)) || (item == 0xFE9C)))) goto labelFunc06AC_0042;
	UI_remove_item_84(item);
	labelFunc06AC_0042:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func06AD 0x6AD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0003)) goto labelFunc06AD_00A1;
	if(!(!gflags[00C8])) goto labelFunc06AD_0010;
	abrt();
	labelFunc06AD_0010:
		var0000 = UI_find_nearby_41(item, 0x0268, 0x0001, 0x0000);
		enum();
	labelFunc06AD_0022:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06AD_004A);
		if(!(UI_get_item_frame_1A(var0003) != 0x0007)) goto labelFunc06AD_0047;
		var0000 = Func0988(var0003, var0000);
	labelFunc06AD_0047:
		goto labelFunc06AD_0022;
	labelFunc06AD_004A:
		if(!(UI_get_array_size_73(var0000) == 0x0000)) goto labelFunc06AD_00A1;
		gflags[0045] = true;
		UI_set_alignment_4A(0xFFB4, 0x0003);
		UI_set_item_flag_A4(0xFFB4, 0x001D);
		var0004 = Func0992(0x0001, "@A clue...@", "@A clue...@", true);
		if(!(var0004 != 0xFE9C)) goto labelFunc06AD_00A1;
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x06AD], 0x000A);
	labelFunc06AD_00A1:
		if(!(event == 0x0002)) goto labelFunc06AD_0128;
		var0006 = UI_find_nearby_41(item, 0x0113, 0x0014, 0x0010);
		enum();
	labelFunc06AD_00BB:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc06AD_00DE);
		if(!(UI_get_item_frame_1A(var0009) == 0x0007)) goto labelFunc06AD_00DB;
		UI_remove_item_84(var0009);
	labelFunc06AD_00DB:
		goto labelFunc06AD_00BB;
	labelFunc06AD_00DE:
		var0004 = UI_get_npc_number_47(item);
		if(!(UI_get_item_shape_18(var0004) == 0x02EB)) goto labelFunc06AD_0101;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		goto labelFunc06AD_010B;
	labelFunc06AD_0101:
		UI_show_npc_face0_05(var0004, 0x0000);
	labelFunc06AD_010B:
		if(!gflags[00B8]) goto labelFunc06AD_0120;
		UcMessage("\"Avatar! This bottle is identical to the one from which thou didst drink at the inn in Monitor!\"");
		UcSay;
		UcMessage("\"'Tis a bottle of Fawnish ale.\"");
		UcSay;
		gflags[005F] = true;
		goto labelFunc06AD_0128;
	labelFunc06AD_0120:
		UcMessage("\"I cannot help but think that this strange bottle must be a clue as to the identity of Monitor's traitor.\"");
		UcSay;
		UcMessage("\"Perhaps if we can find whom this bottle doth belong to, we shall find our traitor!\"");
		UcSay;
	labelFunc06AD_0128:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06AE 0x6AE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = UI_find_nearby_41(item, 0x0212, 0x0014, 0x0000);
	var0001 = UI_find_nearby_41(item, 0x0373, 0x0014, 0x0000);
	var0002 = UI_find_nearby_41(item, 0x01FB, 0x0014, 0x0000);
	if(!(event == 0x0003)) goto labelFunc06AE_0118;
	if(!var0000) goto labelFunc06AE_005E;
	var0003 = Func0992(Iolo, 0x0000, 0x0000, false);
	UI_item_say_4D(var0003, "@Snakes!@");
	goto labelFunc06AE_00E7;
	labelFunc06AE_005E:
		if(!var0001) goto labelFunc06AE_0081;
		var0003 = Func0992(Shamino, 0x0000, 0x0000, false);
		UI_item_say_4D(var0003, "@Hmmm...@");
		goto labelFunc06AE_00E7;
	labelFunc06AE_0081:
		if(!var0002) goto labelFunc06AE_00E6;
		var0003 = Func0992(Dupre, 0x0000, 0x0000, false);
		UI_item_say_4D(var0003, "@Damned bones!@");
		var0004 = UI_find_nearby_41(item, 0x0113, 0x000F, 0x0010);
		var0005 = 0x0000;
		enum();
	labelFunc06AE_00B9:
		for (var0008 in var0004 with var0006 to var0007 atend labelFunc06AE_00DB);
		if(!(UI_get_item_frame_1A(var0008) == 0x0000)) goto labelFunc06AE_00D8;
		var0005 = var0008;
	labelFunc06AE_00D8:
		goto labelFunc06AE_00B9;
	labelFunc06AE_00DB:
		if(!(!var0005)) goto labelFunc06AE_00E3;
		abrt();
	labelFunc06AE_00E3:
		goto labelFunc06AE_00E7;
	labelFunc06AE_00E6:
		abrt();
	labelFunc06AE_00E7:
		if(!((var0003 != 0xFE9C) && ((var0003 != 0xFED3) && (var0003 != 0xFED6)))) goto labelFunc06AE_0118;
		var0009 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x06AE], 0x0007);
	labelFunc06AE_0118:
		if(!(event == 0x0002)) goto labelFunc06AE_0257;
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(UI_get_npc_number_47(item), 0x0000);
		if(!((!var0000) && ((!var0001) && (!var0002)))) goto labelFunc06AE_0151;
		UcMessage("\"Oh, mindest thou not.\"");
		UcSay;
		Func097F(item, "@I am so confused...@", 0x0000);
		abrt();
	labelFunc06AE_0151:
		if(!var0000) goto labelFunc06AE_0172;
		UcMessage("\"Snakes! Why did it have to be snakes? Why could not Lord British have sent thee somewhere akin to 'Daisy Isle' instead?\"");
		UcSay;
		Func097F(item, "@Why me?@", 0x0000);
		Func097F(0xFE9C, "@Oh, desist...@", 0x0005);
		abrt();
	labelFunc06AE_0172:
		var0004 = UI_find_nearby_41(item, 0x0113, 0x000F, 0x0010);
		var0005 = 0x0000;
		enum();
	labelFunc06AE_018A:
		for (var0008 in var0004 with var000A to var000B atend labelFunc06AE_01AC);
		if(!(UI_get_item_frame_1A(var0008) == 0x0000)) goto labelFunc06AE_01A9;
		var0005 = var0008;
	labelFunc06AE_01A9:
		goto labelFunc06AE_018A;
	labelFunc06AE_01AC:
		if(!(var0002 && var0005)) goto labelFunc06AE_0207;
		UcMessage("\"Skeletons! The foul things! At least they are not moving about and terrorizing the living! Let those who have died rest, and not bother those of us that live on...\"");
		UcSay;
		var0009 = UI_delayed_execute_usecode_array_02(var0005, [0x48], 0x0003);
		var000C = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x001A, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Perhaps thou didst speak too soon, my friend...\"");
		UcSay;
		UI_remove_npc_face1_08();
	labelFunc06AE_0207:
		if(!var0001) goto labelFunc06AE_0252;
		var000D = [Iolo, Shamino, Dupre, 0xFF6B];
		if(!in(UI_get_npc_number_47(item), var000D)) goto labelFunc06AE_0244;
		UcMessage("\"A hall of sleeping gargoyles...\"");
		UcSay;
		UcMessage("\"'Tis reminiscent of the problems that are occurring in Britannia this very instant!\"");
		UcSay;
		Func097F(item, "@The emps...@", 0x0000);
		gflags[0206] = true;
		goto labelFunc06AE_0252;
	labelFunc06AE_0244:
		UcMessage("\"A hall of sleeping Daemons...\"");
		UcSay;
		Func097F(item, "@Let us go...@", 0x0000);
	labelFunc06AE_0252:
		UI_remove_npc_face0_07();
		abrt();
	labelFunc06AE_0257:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0993 0x993 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0982 0x982 (var var0000, var var0001);

Func06AF 0x6AF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0003)) goto labelFunc06AF_003C;
	var0000 = Func09A0(0x0007, 0x0003);
	if(!var0000) goto labelFunc06AF_003C;
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x06AF], 0x012C);
	var0001 = UI_set_item_quality_1D(var0000, 0x00FA);
	labelFunc06AF_003C:
		if(!(event == 0x0002)) goto labelFunc06AF_01AC;
		var0002 = UI_get_object_position_20(0xFE9C);
		var0003 = var0002[0x0001];
		var0004 = var0002[0x0002];
		if(!((var0003 > 0x000D) && ((var0003 < 0x00AB) && ((var0004 > 0x061F) && (var0004 < 0x067B))))) goto labelFunc06AF_00A1;
		var0001 = UI_set_item_quality_1D(item, 0x00FA);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x06AF], 0x00FA);
		abrt();
	labelFunc06AF_00A1:
		var0005 = Func0993(var0002);
		if(!(var0005 == 0x0004)) goto labelFunc06AF_01AC;
		if(!(!gflags[01FC])) goto labelFunc06AF_018E;
		var0006 = ["@'Tis hot!@", "@Yow!@", "@It feels like a steambath.@", "@I am drenched.@", "@Doth anyone have ice?@", "@Blistering heat...@", "@Dost thou possess any cold spells, Avatar?@", "@I am roasting!@", "@Think cool thoughts.@", "@'Sblood, 'tis hot.@", "@Britannia for a fan!@", "@Uugghh. I am hot.@", "@Damn this heat!@"];
		var0007 = UI_get_party_list_2B();
		enum();
	labelFunc06AF_00F0:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc06AF_014B);
		var000B = UI_die_roll_17(0x0001, 0x0002);
		if(!(var000B == 0x0001)) goto labelFunc06AF_013B;
		var000C = UI_die_roll_17(0x0001, 0x000D);
		var000D = UI_die_roll_17(0x0001, 0x0006);
		Func097F(var000A, var0006[var000C], var000D);
	labelFunc06AF_013B:
		Func0982(UI_get_npc_object_23(var000A), 0x0001);
		goto labelFunc06AF_00F0;
	labelFunc06AF_014B:
		var000D = UI_get_item_quality_1C(item);
		var000D = (var000D / 0x0002);
		if(!(var000D < 0x000F)) goto labelFunc06AF_016D;
		var000D = 0x000F;
	labelFunc06AF_016D:
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x06AF], var000D);
		var0001 = UI_set_item_quality_1D(item, var000D);
		goto labelFunc06AF_01AC;
	labelFunc06AF_018E:
		var0001 = UI_set_item_quality_1D(item, 0x00FA);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x06AF], 0x00FA);
	labelFunc06AF_01AC:
		return;
}
Func06B0 0x6B0 (var var0000)
{
	var var0001;
	var var0002;

	if(!(gflags[021B] == true)) goto labelFunc06B0_004B;
	var0000 = UI_find_nearby_41(item, 0x02CA, 0x000A, 0x0000);
	if(!var0000) goto labelFunc06B0_0029;
	UI_set_item_frame_1B(var0000, 0x0000);
	labelFunc06B0_0029:
		var0001 = UI_find_nearby_41(item, 0x019C, 0x000A, 0x0000);
		if(!var0001) goto labelFunc06B0_004A;
		UI_set_item_frame_1B(var0001, 0x0001);
	labelFunc06B0_004A:
		abrt();
	labelFunc06B0_004B:
		return;
}
Func06B1 0x6B1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!gflags[0004]) goto labelFunc06B1_008D;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_npc_object_23((0x0000 - var0000));
	if(!var0001) goto labelFunc06B1_0088;
	if(!(UI_get_distance_21(var0001, item) < 0x001E)) goto labelFunc06B1_003B;
	UI_kill_npc_57(var0001);
	goto labelFunc06B1_0088;
	labelFunc06B1_003B:
		if(!(!UI_get_item_flag_A3(var0001, 0x0004))) goto labelFunc06B1_0088;
		var0002 = UI_get_object_position_20(item);
		var0003 = UI_get_object_position_20(var0001);
		UI_error_message_40(["Trying to kill npc#", var0000, ". Teleporting him to", var0002, ". He was at ", var0003, "."]);
		UI_move_object_4B(var0001, var0002);
		UI_kill_npc_57(var0001);
	labelFunc06B1_0088:
		UI_remove_item_84(item);
	labelFunc06B1_008D:
		return;
}
Func06B2 0x6B2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(gflags[0004] != 0x0000)) goto labelFunc06B2_0072;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x0113, 0x000A, 0x0010);
	enum();
	labelFunc06B2_0024:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06B2_0072);
		if(!((UI_get_item_frame_1A(var0004) == 0x0000) || (UI_get_item_frame_1A(var0004) == 0x0004))) goto labelFunc06B2_006F;
		var0005 = UI_die_roll_17(0x0001, var0000);
		if(!(var0005 < var0000)) goto labelFunc06B2_006F;
		var0006 = UI_execute_usecode_array_01(var0004, [0x48]);
	labelFunc06B2_006F:
		goto labelFunc06B2_0024;
	labelFunc06B2_0072:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func08B5 0x8B5 ();
extern var Func08B6 0x8B6 ();
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D6 0x7D6 (var var0000);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func06B3 0x6B3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;

	var0000 = Func09A0(0x0002, 0x0001);
	if(!gflags[0211]) goto labelFunc06B3_0018;
	UI_remove_item_84(item);
	abrt();
	labelFunc06B3_0018:
		if(!(event == 0x0003)) goto labelFunc06B3_0054;
		var0001 = Func0992(0x0001, "@I feel sleepy@", "@I feel sleepy@", true);
		var0001 = UI_set_item_quality_1D(var0000, 0x0000);
		var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06B3], 0x000F);
	labelFunc06B3_0054:
		if(!(event == 0x0002)) goto labelFunc06B3_04CE;
		var0002 = UI_get_item_quality_1C(var0000);
		if(!(var0002 == 0x0000)) goto labelFunc06B3_00A4;
		var0001 = Func0992(0x0001, "@Mine eyes are closing...@", "@I can go no further...@", true);
		var0001 = UI_set_item_quality_1D(var0000, 0x0001);
		var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06B3], 0x000F);
	labelFunc06B3_00A4:
		if(!(var0002 == 0x0001)) goto labelFunc06B3_0144;
		var0001 = Func0992(0x0001, "@I can go no further...@", "@Mine eyes are closing...@", true);
		var0003 = Func08B5();
		if(!var0003) goto labelFunc06B3_0105;
		var0004 = UI_get_npc_object_23(var0003);
		UI_set_item_flag_A4(var0004, 0x0001);
		UI_set_schedule_type_25(var0004, 0x000E);
		var0005 = UI_get_object_position_20(var0003);
		UI_set_new_schedules_B6(var0003, 0x0000, 0x000E, var0005);
		goto labelFunc06B3_012D;
	labelFunc06B3_0105:
		var0001 = UI_set_item_quality_1D(var0000, 0x0002);
		UI_clear_item_say_4E(0xFE9C);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_set_schedule_type_25(0xFE9C, 0x000E);
	labelFunc06B3_012D:
		var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06B3], 0x000F);
	labelFunc06B3_0144:
		if(!(var0002 == 0x0002)) goto labelFunc06B3_01C9;
		var0001 = Func0992(0x0001, 0x0000, 0x0000, false);
		UI_show_npc_face0_05(var0001, 0x0000);
		if(!(var0001 == 0xFE9C)) goto labelFunc06B3_0179;
		UcMessage("\"I must stay awake...\"");
		UcSay;
		goto labelFunc06B3_017D;
	labelFunc06B3_0179:
		UcMessage("\"We must stay awake...\"");
		UcSay;
	labelFunc06B3_017D:
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6C, 0x6D, 0x6B, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x6E, 0x27, 0x0005]);
		var0001 = UI_set_item_quality_1D(var0000, 0x0003);
		var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06B3], 0x0005);
	labelFunc06B3_01C9:
		if(!(var0002 == 0x0003)) goto labelFunc06B3_0331;
		var0006 = Func08B6();
		var0007 = UI_get_npc_object_23(0xFE9C);
		var0008 = Func0988(var0007, var0006);
		enum();
	labelFunc06B3_01F0:
		for (var000B in var0008 with var0009 to var000A atend labelFunc06B3_0268);
		var000C = UI_get_npc_object_23(var000B);
		UI_set_schedule_type_25(var000C, 0x000F);
		var000D = UI_die_roll_17(Shamino, 0x0002);
		var000E = UI_die_roll_17(Shamino, 0x0002);
		UI_move_object_4B(var000C, [(0x05B4 + var000D), (0x0652 + var000E), 0x0000]);
		UI_set_new_schedules_B6(var000C, 0x0000, 0x000E, [(0x05B4 + var000D), (0x0652 + var000E), 0x0000]);
		goto labelFunc06B3_01F0;
	labelFunc06B3_0268:
		item;
		calle();
		var000F = UI_die_roll_17(0x0001, 0x0004);
		var0010 = [0x0011, 0x05CE, 0x0000];
		if(!(var000F == 0x0001)) goto labelFunc06B3_02A1;
		var0010 = [0x00AF, 0x056B, 0x0000];
	labelFunc06B3_02A1:
		if(!(var000F == 0x0002)) goto labelFunc06B3_02BA;
		var0010 = [0x008B, 0x0459, 0x0000];
	labelFunc06B3_02BA:
		if(!(var000F == 0x0003)) goto labelFunc06B3_02D3;
		var0010 = [0x0B53, 0x0463, 0x0000];
	labelFunc06B3_02D3:
		if(!(var000F == 0x0004)) goto labelFunc06B3_02EC;
		var0010 = [0x0011, 0x05CE, 0x0000];
	labelFunc06B3_02EC:
		UI_clear_item_flag_A5(0xFE9C, 0x0008);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, var0010);
		var0001 = UI_set_item_quality_1D(var0000, 0x0004);
		var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06B3], 0x000F);
	labelFunc06B3_0331:
		if(!(var0002 == 0x0004)) goto labelFunc06B3_04CE;
		UI_clear_item_flag_A5(0xFE9C, 0x0000);
		var0011 = 0x0000;
		var0012 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc06B3_035E:
		if(!(var0011 < 0x0002)) goto labelFunc06B3_03ED;
		enum();
	labelFunc06B3_0369:
		for (var0015 in var0012 with var0013 to var0014 atend labelFunc06B3_03CD);
		if(!(Func09A6(var0015) || (var0011 == 0x0001))) goto labelFunc06B3_03CA;
		var0001 = UI_get_item_shape_18(var0015);
		if(!(!((var0001 == 0x01E6) || (var0001 == 0x025F)))) goto labelFunc06B3_03CA;
		if(!(!UI_set_last_created_2E(var0015))) goto labelFunc06B3_03B6;
		Func092F(0xFE9C, 0x0011);
	labelFunc06B3_03B6:
		if(!(!UI_give_last_created_43(0xFF1B))) goto labelFunc06B3_03CA;
		Func092F(0xFE9C, 0x0012);
	labelFunc06B3_03CA:
		goto labelFunc06B3_0369;
	labelFunc06B3_03CD:
		var0011 = (var0011 + 0x0001);
		var0012 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc06B3_035E;
	labelFunc06B3_03ED:
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0000);
		if(!Func097D(0xFF1B, 0x0001, 0x0289, 0xFE99, 0x0003)) goto labelFunc06B3_0434;
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0289, 0xFE99, 0x0003, 0x0000);
	labelFunc06B3_0434:
		if(!Func097D(0xFF1B, 0x0001, 0x017F, 0xFE99, 0x0001)) goto labelFunc06B3_0462;
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x017F, 0xFE99, 0x0001, 0x0000);
	labelFunc06B3_0462:
		if(!Func097D(0xFF1B, 0x0001, 0x0289, 0xFE99, 0x000B)) goto labelFunc06B3_0490;
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0289, 0xFE99, 0x000B, 0x0000);
	labelFunc06B3_0490:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_play_music_39(0x0018, Func09A0(0x0005, 0x0001));
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		var0001 = UI_set_item_quality_1D(var0000, 0x0000);
	labelFunc06B3_04CE:
		return;
}
// externs
extern Func0922 0x922 (var var0000);

Func06B4 0x6B4 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc06B4_000E;
	Func0922(0x0002);
	labelFunc06B4_000E:
		return;
}
Func06B5 0x6B5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!gflags[00C0]) goto labelFunc06B5_004D;
	if(!(!gflags[00C8])) goto labelFunc06B5_004D;
	var0000 = UI_create_new_object_2C(0x0268);
	if(!var0000) goto labelFunc06B5_004D;
	UI_set_item_frame_1B(var0000, 0x0009);
	UI_clear_item_flag_A5(var0000, 0x0012);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_update_last_created_2F(var0001);
	if(!var0002) goto labelFunc06B5_004D;
	gflags[00C8] = true;
	labelFunc06B5_004D:
		return;
}
// externs
extern var Func0977 0x977 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06B6 0x6B6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	if(!(event == 0x0003)) goto labelFunc06B6_02F3;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = [];
	var0002 = [];
	if(!(var0000 == 0x0001)) goto labelFunc06B6_003E;
	var0001 = [0x06B1, 0x0751];
	var0002 = [0x002D, 0x001D];
	labelFunc06B6_003E:
		if(!(var0000 == 0x0002)) goto labelFunc06B6_0060;
		var0001 = [0x07F0, 0x073F];
		var0002 = [0x001A, 0x0017];
	labelFunc06B6_0060:
		var0003 = [0x0000, 0x0000, 0x0000];
		var0004 = UI_get_party_list_2B();
		var0005 = UI_die_roll_17(0x0001, Func0977(var0004));
		var0006 = var0004[var0005];
		var0003 = UI_get_object_position_20(var0006);
		var0007 = true;
	labelFunc06B6_009D:
		if(!var0007) goto labelFunc06B6_00EE;
		var0003[0x0001] = (var0001[0x0001] + UI_die_roll_17(0x0000, var0002[0x0001]));
		var0003[0x0002] = (var0001[0x0002] + UI_die_roll_17(0x0000, var0002[0x0002]));
		if(!UI_is_not_blocked_A0(var0003, 0x02D1, 0x0000)) goto labelFunc06B6_00EB;
		var0007 = false;
	labelFunc06B6_00EB:
		goto labelFunc06B6_009D;
	labelFunc06B6_00EE:
		UI_move_object_4B(var0006, var0003);
		var0008 = ["@Whoa!@", "@Huh?@", "@What happened?@", "@Magic!@", "@Whoops...@", "@Watch out!@", "@Help!@"];
		var0009 = var0008[UI_get_random_00(UI_get_array_size_73(var0008))];
		Func097F(var0006, var0009, 0x0014);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000A = UI_find_nearby_41(item, 0x0113, 0x001E, 0x0010);
		if(!var000A) goto labelFunc06B6_01E7;
		enum();
	labelFunc06B6_0167:
		for (var000D in var000A with var000B to var000C atend labelFunc06B6_01E7);
		if(!(UI_get_item_quality_1C(var000D) == var0000)) goto labelFunc06B6_01E4;
		var0003[0x0001] = (var0001[0x0001] + UI_die_roll_17(0x0000, var0002[0x0001]));
		var0003[0x0002] = (var0001[0x0002] + UI_die_roll_17(0x0000, var0002[0x0002]));
		UI_sprite_effect_68(0x002F, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0030);
		UI_move_object_4B(var000D, var0003);
	labelFunc06B6_01E4:
		goto labelFunc06B6_0167;
	labelFunc06B6_01E7:
		if(!(var0000 == 0x0001)) goto labelFunc06B6_02F3;
		var000E = UI_find_nearby_avatar_3C(0x0202);
		var000F = UI_get_array_size_73(var000E);
		if(!(var000F < 0x0003)) goto labelFunc06B6_02F3;
		var0003[0x0001] = (var0001[0x0001] + UI_die_roll_17(0x0000, var0002[0x0001]));
		var0003[0x0002] = (var0001[0x0002] + UI_die_roll_17(0x0000, var0002[0x0002]));
		var0010 = UI_create_new_object2_2D(0x0202, var0003);
		UI_set_alignment_4A(var0010, 0x0002);
		UI_set_schedule_type_25(var0010, 0x0000);
		UI_set_opponent_5B(var0010, UI_get_npc_object_23(0xFE9C));
		UI_set_item_flag_A4(var0010, 0x001D);
		UI_set_item_flag_A4(var0010, 0x0012);
		UI_set_npc_id_BD(var0010, 0x0001);
		var0011 = UI_get_npc_prop_28(var0010, 0x0003);
		var0007 = UI_set_npc_prop_29(var0010, 0x0003, (0x0001 - var0011));
		var0011 = UI_get_npc_prop_28(var0010, 0x0000);
		var0007 = UI_set_npc_prop_29(var0010, 0x0000, (0x0000 - var0011));
		var0011 = UI_get_npc_prop_28(var0010, 0x0001);
		var0007 = UI_set_npc_prop_29(var0010, 0x0001, (0x0005 - var0011));
	labelFunc06B6_02F3:
		return;
}
// externs
extern Func08EE 0x8EE (var var0000);

Func06B7 0x6B7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(!gflags[0004])) goto labelFunc06B7_0008;
	abrt();
	labelFunc06B7_0008:
		var0000 = UI_get_object_position_20(item);
		var0001 = UI_get_item_quality_1C(item);
		if(!(var0001 > 0x0064)) goto labelFunc06B7_0030;
		var0001 = (0x0000 - (var0001 - 0x0064));
	labelFunc06B7_0030:
		var0002 = UI_get_item_quantity_1E(item, 0x0000);
		if(!(var0002 > 0x0064)) goto labelFunc06B7_0053;
		var0002 = (0x0000 - (var0002 - 0x0064));
	labelFunc06B7_0053:
		var0003 = (var0001 / 0x0004);
		var0004 = (var0002 / 0x0004);
		var0005 = 0x0000;
	labelFunc06B7_006D:
		if(!(var0005 < 0x0004)) goto labelFunc06B7_00E2;
		var0006 = UI_create_new_object_2C(0x0390);
		if(!var0006) goto labelFunc06B7_00C1;
		UI_set_item_frame_1B(var0006, var0005);
		var0007 = UI_update_last_created_2F([(var0000[0x0001] + var0001), (var0000[0x0002] + var0002), 0x0000]);
		if(!(!var0007)) goto labelFunc06B7_00C1;
		UI_error_message_40(" failed to create blood");
		abrt();
	labelFunc06B7_00C1:
		var0001 = (var0001 - var0003);
		var0002 = (var0002 - var0004);
		var0005 = (var0005 + 0x0001);
		goto labelFunc06B7_006D;
	labelFunc06B7_00E2:
		Func08EE(var0000);
		UI_remove_item_84(item);
		return;
}
// externs
extern Func08EE 0x8EE (var var0000);

Func06B8 0x6B8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(!gflags[0004])) goto labelFunc06B8_0008;
	abrt();
	labelFunc06B8_0008:
		var0000 = UI_get_object_position_20(item);
		if(!(UI_get_item_quality_1C(item) == 0x000D)) goto labelFunc06B8_00E6;
		var0001 = [0x0000, 0x0000, Shamino, 0x0002, 0x0000];
		var0002 = [0x0002, Shamino, 0x0000, 0x0000, 0x0000];
		var0003 = 0x0001;
		enum();
	labelFunc06B8_004D:
		for (var0006 in var0001 with var0004 to var0005 atend labelFunc06B8_00B5);
		var0007 = UI_create_new_object_2C(0x00E0);
		if(!var0007) goto labelFunc06B8_00A8;
		UI_set_item_frame_1B(var0007, var0003);
		var0008 = UI_update_last_created_2F([(var0000[0x0001] + var0006), (var0000[0x0002] + var0002[var0003]), var0000[0x0003]]);
		if(!(!var0008)) goto labelFunc06B8_00A8;
		UI_error_message_40(" failed to create a burn mark!");
		abrt();
	labelFunc06B8_00A8:
		var0003 = (var0003 + 0x0001);
		goto labelFunc06B8_004D;
	labelFunc06B8_00B5:
		var0009 = UI_create_new_object_2C(0x0339);
		if(!var0009) goto labelFunc06B8_00E6;
		var000A = UI_die_roll_17(0x0004, 0x0006);
		UI_set_item_frame_1B(var0009, var000A);
		var0008 = UI_update_last_created_2F(var0000);
	labelFunc06B8_00E6:
		var0001 = [0x0003, 0x0003, 0x0003, 0x0003, 0x0003, 0x0003, 0x0002, 0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0002];
		var0002 = [Dupre, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0003, 0x0002, 0x0001, 0x0000, Dupre, Dupre, Dupre, Dupre, Dupre];
		var000B = UI_die_roll_17(0x0001, 0x0014);
		Func08EE([(var0000[0x0001] + var0001[var000B]), (var0000[0x0002] + var0002[var000B]), var0000[0x0003]]);
		UI_remove_item_84(item);
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);

Func06B9 0x6B9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_find_nearby_41(item, 0x02EB, 0x0014, 0x0000);
	enum();
	labelFunc06B9_0012:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06B9_0039);
		if(!UI_get_item_flag_A3(var0003, 0x001E)) goto labelFunc06B9_0036;
		var0000 = Func0988(var0003, var0000);
	labelFunc06B9_0036:
		goto labelFunc06B9_0012;
	labelFunc06B9_0039:
		if(!var0000) goto labelFunc06B9_005F;
		var0004 = (UI_get_npc_number_47(var0000) + 0x0400);
		var0005 = UI_execute_usecode_array_01(item, [0x23, 0x55, var0004]);
	labelFunc06B9_005F:
		return;
}
Func06BA 0x6BA (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0003)) goto labelFunc06BA_0066;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc06BA_0052;
	UI_clear_item_flag_A5(0xFE9C, 0x0025);
	var0001 = UI_get_temperature_B8(0xFE9C);
	var0001 = (var0001 - 0x0005);
	if(!(var0001 < 0x0000)) goto labelFunc06BA_0048;
	var0001 = 0x0000;
	labelFunc06BA_0048:
		UI_set_temperature_BA(0xFE9C, var0001);
	labelFunc06BA_0052:
		if(!(var0000 == 0x0001)) goto labelFunc06BA_0066;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc06BA_0066:
		return;
}
// externs
extern var Func089D 0x89D (var var0000);

Func06BB 0x6BB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc06BB_0061;
	if(!(gflags[0174] || (gflags[0173] || gflags[0175]))) goto labelFunc06BB_0034;
	var0000 = UI_find_nearby_avatar_3C(0x0366);
	if(!UI_get_array_size_73(var0000)) goto labelFunc06BB_0033;
	var0001 = Func089D(var0000);
	labelFunc06BB_0033:
		abrt();
	labelFunc06BB_0034:
		var0000 = UI_find_nearby_avatar_3C(0x0366);
		var0002 = UI_find_nearby_avatar_3C(0x0203);
		var0000 = (var0000 & var0002);
		var0002 = [];
		var0001 = Func089D(var0000);
	labelFunc06BB_0061:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0940 0x940 (var var0000, var var0001);
extern Func093E 0x93E (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06BC 0x6BC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = Func09A0(0x0002, 0x0001);
	var0001 = 0x0006;
	if(!(event == 0x0003)) goto labelFunc06BC_008A;
	if(!gflags[0190]) goto labelFunc06BC_0025;
	UI_remove_item_84(item);
	labelFunc06BC_0025:
		var0002 = UI_get_item_quality_1C(item);
		if(!((!gflags[018C]) && Func0942(Iolo))) goto labelFunc06BC_008A;
		UI_play_music_39(0x0017, Func09A0(0x0005, 0x0001));
		var0003 = UI_set_item_quality_1D(var0000, 0x0000);
		gflags[018C] = true;
		UI_set_weather_53(0x0002);
		var0004 = Func0992(0x0001, "@Looks like a storm coming...@", 0x0000, true);
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x001E);
	labelFunc06BC_008A:
		if(!(event == 0x0002)) goto labelFunc06BC_043E;
		var0002 = UI_get_item_quality_1C(var0000);
		if(!(var0002 < var0001)) goto labelFunc06BC_015F;
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x000A);
		var0003 = UI_set_item_quality_1D(var0000, (var0002 + 0x0001));
		var0005 = Func0940(UI_get_object_position_20(0xFE9C), 0x000F);
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0015, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0029, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func093E(var0005);
		var0006 = ("@Run!@" & ("@'Tis a magic storm!@" & ("@Help!@" & ("@That almost hit me!@" & ("@Whoa!@" & "@I wish I were home!@")))));
		var0004 = Func0992(0x0001, var0006[UI_get_random_00(UI_get_array_size_73(var0006))], 0x0000, true);
		abrt();
	labelFunc06BC_015F:
		if(!(var0002 == var0001)) goto labelFunc06BC_028D;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0007 = UI_create_new_object_2C(0x02B4);
		if(!var0007) goto labelFunc06BC_0275;
		UI_set_item_frame_1B(var0007, 0x0002);
		var0008 = UI_get_object_position_20(Iolo);
		var0008[0x0002] = (var0008[0x0002] + 0x0001);
		var0003 = UI_update_last_created_2F(var0008);
		if(!var0003) goto labelFunc06BC_025B;
		var0008[0x0001] = (var0008[0x0001] - (var0008[0x0003] / 0x0002));
		var0008[0x0002] = (var0008[0x0002] - (var0008[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0015, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0009 = UI_find_direction_22(Iolo, var0007);
		var0003 = UI_execute_usecode_array_01(Iolo, [0x23, 0x27, 0x0001, 0x59, var0009, 0x52, "@Look, Avatar!@", 0x27, 0x0005, 0x6C, 0x27, 0x0009, 0x55, 0x06BC]);
		var0003 = UI_set_item_quality_1D(var0000, (var0002 + 0x0001));
		UI_set_weather_53(0x0000);
		goto labelFunc06BC_0272;
	labelFunc06BC_025B:
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x000A);
	labelFunc06BC_0272:
		goto labelFunc06BC_028C;
	labelFunc06BC_0275:
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x000A);
	labelFunc06BC_028C:
		abrt();
	labelFunc06BC_028D:
		if(!(var0002 == (var0001 + 0x0001))) goto labelFunc06BC_0323;
		var0007 = UI_find_nearby_41(Iolo, 0x02B4, 0x0019, 0x0000);
		if(!var0007) goto labelFunc06BC_02D4;
		UI_remove_item_84(var0007);
		var0003 = Func099B(Iolo, 0x0001, 0x02B4, 0x0000, 0x0002, 0x0000, false);
	labelFunc06BC_02D4:
		var0003 = UI_execute_usecode_array_01(Iolo, [0x23, 0x61]);
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x0003);
		var0003 = UI_set_item_quality_1D(var0000, (var0002 + 0x0001));
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		Func097F(Iolo, "@A lute!@", 0x0000);
	labelFunc06BC_0323:
		if(!(var0002 == (var0001 + 0x0002))) goto labelFunc06BC_03A2;
		var0003 = UI_set_item_quality_1D(var0000, (var0002 + 0x0001));
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x043A], 0x002D);
		var0003 = UI_approach_avatar_BF(0xFFD0, 0x0078, 0x0028);
		if(!var0003) goto labelFunc06BC_038B;
		UI_set_schedule_type_25(0xFFD0, 0x0009);
		Func097F(0xFFD0, "@The storm is over!@", 0x0000);
	labelFunc06BC_038B:
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x000A);
	labelFunc06BC_03A2:
		if(!(var0002 == (var0001 + 0x0003))) goto labelFunc06BC_0404;
		var0003 = UI_set_item_quality_1D(var0000, (var0002 + 0x0001));
		var0003 = UI_approach_avatar_BF(0xFFCB, 0x0078, 0x0028);
		if(!var0003) goto labelFunc06BC_03ED;
		UI_set_schedule_type_25(0xFFCB, 0x0009);
		Func097F(0xFFCB, "@All is safe now!@", 0x0000);
	labelFunc06BC_03ED:
		var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x06BC], 0x000A);
	labelFunc06BC_0404:
		if(!(var0002 == (var0001 + 0x0004))) goto labelFunc06BC_043E;
		var0003 = UI_approach_avatar_BF(Kylista, 0x0078, 0x0028);
		if(!var0003) goto labelFunc06BC_043E;
		UI_set_schedule_type_25(Kylista, 0x0009);
		Func097F(Kylista, "@Praise Beauty!@", 0x0000);
	labelFunc06BC_043E:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);

Func06BF 0x6BF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc06BF_003C;
	var0000 = UI_is_pc_female_6F();
	var0001 = Func0942(0xFFC3);
	if(!(var0000 && (gflags[003E] && (!var0001)))) goto labelFunc06BF_003C;
	var0002 = UI_summon_55(0x017D, false);
	UI_set_schedule_type_25(var0002, 0x0009);
	labelFunc06BF_003C:
		return;
}
Func06C0 0x6C0 (var var0000)
{
	var var0001;
	var var0002;

	if(!gflags[0004]) goto labelFunc06C0_000C;
	UI_remove_item_84(item);
	abrt();
	labelFunc06C0_000C:
		var0000 = UI_part_of_day_48();
		if(!((event == 0x0003) && ((var0000 > 0x0001) && (var0000 < 0x0006)))) goto labelFunc06C0_019E;
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x54, 0x001A], 0x0005);
		if(!(!UI_is_dead_44(0xFFC8))) goto labelFunc06C0_0095;
		UI_move_object_4B(0xFFC8, [0x0498, 0x0765, 0x0000]);
		UI_set_item_frame_1B(0xFFC8, 0x0010);
		UI_set_schedule_type_25(0xFFC8, 0x000B);
		var0001 = UI_execute_usecode_array_01(0xFFC8, [0x23, 0x27, 0x0018, 0x52, "@Go in Unity!@", 0x27, 0x0030, 0x52, "@Come again@"]);
	labelFunc06C0_0095:
		if(!(!UI_is_dead_44(0xFFC7))) goto labelFunc06C0_00D6;
		UI_move_object_4B(0xFFC7, [0x0493, 0x076A, 0x0000]);
		UI_set_schedule_type_25(0xFFC7, 0x000B);
		var0001 = UI_execute_usecode_array_01(0xFFC7, [0x23, 0x27, 0x0010, 0x52, "@Very uplifting...@"]);
	labelFunc06C0_00D6:
		if(!(!UI_is_dead_44(0xFFC5))) goto labelFunc06C0_0117;
		UI_move_object_4B(0xFFC5, [0x0496, 0x076B, 0x0000]);
		UI_set_schedule_type_25(0xFFC5, 0x000B);
		var0001 = UI_execute_usecode_array_01(0xFFC5, [0x23, 0x27, 0x0020, 0x52, "@The Fellowship is the way...@"]);
	labelFunc06C0_0117:
		if(!(!UI_is_dead_44(0xFFC4))) goto labelFunc06C0_0158;
		UI_move_object_4B(0xFFC4, [0x049B, 0x0769, 0x0000]);
		UI_set_schedule_type_25(0xFFC4, 0x000B);
		var0001 = UI_execute_usecode_array_01(Kylista, [0x23, 0x27, 0x0040, 0x52, "@Good sermon, Leon...@"]);
	labelFunc06C0_0158:
		if(!(!UI_is_dead_44(0xFFD2))) goto labelFunc06C0_0199;
		UI_move_object_4B(0xFFD2, [0x049C, 0x076F, 0x0000]);
		UI_set_schedule_type_25(0xFFD2, 0x000B);
		var0001 = UI_execute_usecode_array_01(0xFFD2, [0x23, 0x27, 0x0030, 0x52, "@His words are truth!@"]);
	labelFunc06C0_0199:
		UI_remove_item_84(item);
	labelFunc06C0_019E:
		return;
}
// externs
extern Func00F9 0xF9 (var var0000);

Func06C1 0x6C1 (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc06C1_0033;
	if(!(!gflags[0170])) goto labelFunc06C1_002F;
	var0000 = UI_game_hour_45();
	if(!((var0000 > 0x0006) && (var0000 < 0x0014))) goto labelFunc06C1_002C;
	item;
	calle();
	labelFunc06C1_002C:
		goto labelFunc06C1_0033;
	labelFunc06C1_002F:
		item;
		calle();
	labelFunc06C1_0033:
		return;
}
Func06C2 0x6C2 (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc06C2_001C;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x0437]);
	labelFunc06C2_001C:
		if(!(event == 0x0002)) goto labelFunc06C2_0038;
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x0437]);
	labelFunc06C2_0038:
		return;
}
Func06C3 0x6C3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_find_nearby_avatar_3C(0x00E4);
	if(!(UI_get_array_size_73(var0000) > 0x0000)) goto labelFunc06C3_0019;
	abrt();
	labelFunc06C3_0019:
		var0001 = 0x04C1;
		var0002 = 0x04CE;
		var0003 = 0x0841;
		var0004 = 0x084E;
		var0005 = UI_get_object_position_20(0xFE9C);
		var0006 = UI_get_object_position_20(item);
		if(!((var0005[0x0001] > var0001) && ((var0005[0x0001] < var0002) && ((var0005[0x0002] > var0003) && (var0005[0x0002] < var0004))))) goto labelFunc06C3_0081;
		var0006[0x0002] = (var0006[0x0002] + 0x001E);
	labelFunc06C3_0081:
		var0007 = false;
		var0008 = 0x0000;
	labelFunc06C3_008B:
		if(!(var0008 < 0x0008)) goto labelFunc06C3_018B;
		if(!(var0008 < 0x0003)) goto labelFunc06C3_00DA;
		var0009 = UI_create_new_object2_2D(0x00E4, [(var0006[0x0001] + var0008), (var0006[0x0002] + var0008), 0x0000]);
		UI_set_item_flag_A4(var0009, 0x0012);
		UI_set_schedule_type_25(var0009, 0x0007);
		goto labelFunc06C3_0174;
	labelFunc06C3_00DA:
		if(!(var0008 < 0x0005)) goto labelFunc06C3_0134;
		if(!var0007) goto labelFunc06C3_0103;
		var0009 = UI_create_new_object2_2D(0x00E4, [0x04CA, 0x0846, 0x0006]);
		goto labelFunc06C3_011D;
	labelFunc06C3_0103:
		var0009 = UI_create_new_object2_2D(0x00E4, [0x04C9, 0x084C, 0x0006]);
		var0007 = true;
	labelFunc06C3_011D:
		UI_set_item_flag_A4(var0009, 0x0012);
		UI_set_schedule_type_25(var0009, 0x000E);
		goto labelFunc06C3_0174;
	labelFunc06C3_0134:
		var0009 = UI_create_new_object2_2D(0x00E4, [(var0006[0x0001] - (var0008 / 0x0002)), (var0006[0x0002] - (var0008 / 0x0002)), 0x0000]);
		UI_set_item_flag_A4(var0009, 0x0012);
		UI_set_schedule_type_25(var0009, 0x000C);
	labelFunc06C3_0174:
		UI_set_npc_id_BD(var0009, 0x0001);
		var0008 = (var0008 + 0x0001);
		goto labelFunc06C3_008B;
	labelFunc06C3_018B:
		return;
}
// externs
extern Func0862 0x862 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func06C4 0x6C4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = UI_get_item_flag_A3(0xFFD4, 0x0006);
	if(!gflags[01EA]) goto labelFunc06C4_00B9;
	if(!var0000) goto labelFunc06C4_0065;
	UI_show_npc_face0_05(0xFFD4, 0x0000);
	UcMessage("\"We are attacked again! Now that we have the gold, I think that it is time for me to use my Blink Ring to escape.\"");
	UcSay;
	UcMessage("\"I shall see thee at the inn!\"");
	UcSay;
	var0001 = UI_get_object_position_20(0xFFD4);
	UI_sprite_effect_68(0x0007, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_from_party_27(0xFFD4);
	Func0862();
	UI_remove_npc_4C(0xFFD4);
	labelFunc06C4_0065:
		UI_set_new_schedules_B6(0xFFD3, [0x0000, 0x0003, 0x0004, 0x0005, 0x0007], [0x000E, 0x001A, 0x0007, 0x000C, 0x001A], [0x0516, 0x08F7, 0x04F7, 0x08CC, 0x050D, 0x08B6, 0x0516, 0x08A2, 0x04F7, 0x08CC]);
		UI_run_schedule_B7(0xFFD3);
		abrt();
	labelFunc06C4_00B9:
		var0002 = Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0x0002);
		var0003 = UI_find_nearby_41(0xFFD4, 0x0202, 0x001E, 0x0000);
		if(!var0002) goto labelFunc06C4_00EB;
		gflags[01E6] = true;
	labelFunc06C4_00EB:
		if(!(var0002 && var0000)) goto labelFunc06C4_01E9;
		if(!(UI_get_item_shape_18(item) == 0x0113)) goto labelFunc06C4_0106;
		UI_remove_item_84(item);
	labelFunc06C4_0106:
		if(!var0003) goto labelFunc06C4_012C;
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x06C4], 0x0021);
		goto labelFunc06C4_01E9;
	labelFunc06C4_012C:
		var0005 = UI_get_object_position_20(0xFE9C);
		var0005[0x0002] = (var0005[0x0002] - 0x0014);
		var0006 = UI_create_new_object2_2D(0x0202, var0005);
		if(!var0006) goto labelFunc06C4_0170;
		UI_set_polymorph_B3(var0006, 0x0202);
		UI_reduce_health_87(var0006, 0x0032, 0x0000);
	labelFunc06C4_0170:
		Func097F(0xFFD4, "@Oh, my!@", 0x0000);
		gflags[01EA] = true;
		var0004 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x06C4], 0x0007);
		var0007 = [0xFF23, 0xFF21, 0xFF20, 0xFF1F, 0xFF1E, 0xFF1D];
		enum();
	labelFunc06C4_01B6:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc06C4_01E9);
		var0004 = UI_approach_avatar_BF(var000A, 0x0078, 0x0028);
		Func09AD(var000A);
		Func09AC(var000A, Dupre, 0x0000, 0x0000);
		goto labelFunc06C4_01B6;
	labelFunc06C4_01E9:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func06C5 0x6C5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearest_15(item, 0x03B5, 0x0014);
	var0001 = UI_find_nearby_41(item, 0x01C2, 0x0001, 0x0000);
	if(!(UI_get_array_size_73(var0001) > 0x0000)) goto labelFunc06C5_00B7;
	enum();
	labelFunc06C5_002E:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06C5_00B4);
		if(!(var0000 && (UI_get_item_quality_1C(var0000) == 0x00C8))) goto labelFunc06C5_00B1;
		var0005 = UI_get_item_frame_1A(var0004);
		if(!(var0005 == 0x0001)) goto labelFunc06C5_0083;
		var0006 = UI_set_item_quality_1D(var0000, 0x00CB);
		UI_play_sound_effect_16(0x0039);
		UI_play_music_39(0x0010, Func09A0(0x0005, 0x0001));
	labelFunc06C5_0083:
		if(!(var0005 == 0x0002)) goto labelFunc06C5_00B1;
		var0006 = UI_set_item_quality_1D(var0000, 0x00C9);
		UI_play_sound_effect_16(0x0039);
		UI_play_music_39(0x0017, Func09A0(0x0005, 0x0001));
	labelFunc06C5_00B1:
		goto labelFunc06C5_002E;
	labelFunc06C5_00B4:
		goto labelFunc06C5_00D1;
	labelFunc06C5_00B7:
		if(!var0000) goto labelFunc06C5_00D1;
		UI_set_weather_53(0x0000);
		var0006 = UI_set_item_quality_1D(var0000, 0x00C8);
	labelFunc06C5_00D1:
		return;
}
// externs
extern Func0922 0x922 (var var0000);

Func06C6 0x6C6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0001)) goto labelFunc06C6_0018;
	var0001 = 0x03A1;
	labelFunc06C6_0018:
		if(!(var0000 == 0x0002)) goto labelFunc06C6_0028;
		var0001 = 0x01C8;
	labelFunc06C6_0028:
		if(!(var0000 == 0x0003)) goto labelFunc06C6_0038;
		var0001 = 0x022B;
	labelFunc06C6_0038:
		if(!(var0000 == 0x0004)) goto labelFunc06C6_0048;
		var0001 = 0x022F;
	labelFunc06C6_0048:
		if(!(var0000 == 0x0005)) goto labelFunc06C6_0058;
		var0001 = 0x0289;
	labelFunc06C6_0058:
		var0002 = UI_find_nearby_41(item, var0001, 0x0001, 0x0000);
		if(!(UI_get_array_size_73(var0002) == 0x0000)) goto labelFunc06C6_00EC;
		if(!(var0000 == 0x0001)) goto labelFunc06C6_008A;
		gflags[023D] = true;
		UI_remove_item_84(item);
	labelFunc06C6_008A:
		if(!(var0000 == 0x0002)) goto labelFunc06C6_009D;
		gflags[023C] = true;
		UI_remove_item_84(item);
	labelFunc06C6_009D:
		if(!(var0000 == 0x0003)) goto labelFunc06C6_00B0;
		gflags[01BD] = true;
		UI_remove_item_84(item);
	labelFunc06C6_00B0:
		if(!(var0000 == 0x0004)) goto labelFunc06C6_00D3;
		UI_error_message_40(["WARNING: remove this egg at ", UI_get_object_position_20(item)]);
		abrt();
		gflags[025E] = true;
		UI_remove_item_84(item);
	labelFunc06C6_00D3:
		if(!(var0000 == 0x0005)) goto labelFunc06C6_00EC;
		UI_remove_item_84(item);
		Func0922(0x000B);
		gflags[02E1] = true;
	labelFunc06C6_00EC:
		return;
}
Func06C7 0x6C7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(gflags[026C] || (UI_get_timer_7A(0x0001) > 0x0005))) goto labelFunc06C7_0062;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_create_new_object_2C(0x034A);
	if(!var0001) goto labelFunc06C7_0062;
	UI_set_item_frame_1B(var0001, 0x0003);
	UI_clear_item_flag_A5(var0001, 0x0012);
	var0001 = UI_set_item_quantity_1F(var0001, UI_get_item_quality_1C(item));
	var0002 = UI_update_last_created_2F(var0000);
	if(!var0002) goto labelFunc06C7_0062;
	UI_remove_item_84(item);
	labelFunc06C7_0062:
		return;
}
Func06C8 0x6C8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_array_size_73(UI_find_nearby_41(item, 0x0113, 0x0005, 0x0010));
	if(!(var0000 < 0x0002)) goto labelFunc06C8_0057;
	var0001 = UI_find_nearby_41(item, 0x034A, 0x0001, 0x0000);
	enum();
	labelFunc06C8_0031:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06C8_004E);
		if(!(UI_get_item_frame_1A(var0004) == 0x0003)) goto labelFunc06C8_004B;
		abrt();
	labelFunc06C8_004B:
		goto labelFunc06C8_0031;
	labelFunc06C8_004E:
		gflags[026D] = true;
		UI_remove_item_84(item);
	labelFunc06C8_0057:
		return;
}
Func06C9 0x6C9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_game_hour_45();
	var0002 = UI_get_object_position_20(item);
	if(!(gflags[0120] == false)) goto labelFunc06C9_0152;
	var0003 = 0x0001;
	var0004 = UI_find_nearest_15(item, 0x0103, 0x0050);
	enum();
	labelFunc06C9_0034:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc06C9_0056);
		if(!(UI_get_npc_id_BC(var0007) == 0x0001)) goto labelFunc06C9_0053;
		var0003 = 0x0000;
	labelFunc06C9_0053:
		goto labelFunc06C9_0034;
	labelFunc06C9_0056:
		if(!((var0001 < 0x0007) && ((var0000 == 0x0001) && var0003))) goto labelFunc06C9_0097;
		var0008 = UI_create_new_object2_2D(0x0103, var0002);
		UI_set_schedule_type_25(var0008, 0x000E);
		UI_set_npc_id_BD(var0008, 0x0001);
		UI_set_item_flag_A4(var0008, 0x001D);
	labelFunc06C9_0097:
		if(!((var0001 > 0x0007) && ((var0001 < 0x000F) && var0003))) goto labelFunc06C9_00D8;
		var0008 = UI_create_new_object2_2D(0x0103, var0002);
		UI_set_schedule_type_25(var0008, 0x0007);
		UI_set_npc_id_BD(var0008, 0x0001);
		UI_set_item_flag_A4(var0008, 0x001D);
	labelFunc06C9_00D8:
		if(!((var0001 > 0x0010) && ((var0001 < 0x0014) && var0003))) goto labelFunc06C9_0119;
		var0008 = UI_create_new_object2_2D(0x0103, var0002);
		UI_set_schedule_type_25(var0008, 0x001D);
		UI_set_npc_id_BD(var0008, 0x0001);
		UI_set_item_flag_A4(var0008, 0x001D);
	labelFunc06C9_0119:
		if(!((var0001 > 0x0013) && var0003)) goto labelFunc06C9_0152;
		var0008 = UI_create_new_object2_2D(0x0103, var0002);
		UI_set_schedule_type_25(var0008, 0x0007);
		UI_set_npc_id_BD(var0008, 0x0001);
		UI_set_item_flag_A4(var0008, 0x001D);
	labelFunc06C9_0152:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func06CA 0x6CA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;

	var0000 = UI_get_object_position_20(item);
	var0001 = var0000[0x0001];
	var0002 = var0000[0x0002];
	var0003 = UI_find_nearby_41(item, 0x01DB, 0x000C, 0x00B0);
	var0003 = (var0003 & UI_find_nearby_41(item, 0x02D8, 0x000C, 0x00B0));
	var0004 = [0x0000, 0x0000, 0x0000, 0x0000];
	var0005 = [0x0000, 0x0000, 0x0000, 0x0000];
	enum();
	labelFunc06CA_0065:
		for (var0008 in var0003 with var0006 to var0007 atend labelFunc06CA_0113);
		var0009 = UI_get_object_position_20(var0008);
		var000A = var0009[0x0001];
		var000B = var0009[0x0002];
		var000C = (var000A - var0001);
		var000D = (var000B - var0002);
		if(!(var000D < 0xFFFB)) goto labelFunc06CA_00BC;
		var0004[0x0001] = 0x0001;
		var0005[0x0001] = var0008;
	labelFunc06CA_00BC:
		if(!(var000C > 0x0005)) goto labelFunc06CA_00D8;
		var0004[0x0002] = 0x0001;
		var0005[0x0002] = var0008;
	labelFunc06CA_00D8:
		if(!(var000D > 0x0005)) goto labelFunc06CA_00F4;
		var0004[0x0003] = 0x0001;
		var0005[0x0003] = var0008;
	labelFunc06CA_00F4:
		if(!(var000C < 0xFFFB)) goto labelFunc06CA_0110;
		var0004[0x0004] = 0x0001;
		var0005[0x0004] = var0008;
	labelFunc06CA_0110:
		goto labelFunc06CA_0065;
	labelFunc06CA_0113:
		var000E = UI_find_nearby_41(item, 0x0216, 0x000C, 0x00B0);
		var000F = [0x0000, 0x0000, 0x0000, 0x0000];
		var0010 = [0x0000, 0x0000, 0x0000, 0x0000];
		enum();
	labelFunc06CA_0149:
		for (var0013 in var000E with var0011 to var0012 atend labelFunc06CA_01F7);
		var0014 = UI_get_object_position_20(var0013);
		var000A = var0014[0x0001];
		var000B = var0014[0x0002];
		var000C = (var000A - var0001);
		var000D = (var000B - var0002);
		if(!(var000D < 0xFFFB)) goto labelFunc06CA_01A0;
		var000F[0x0001] = 0x0001;
		var0010[0x0001] = var0013;
	labelFunc06CA_01A0:
		if(!(var000C > 0x0005)) goto labelFunc06CA_01BC;
		var000F[0x0002] = 0x0001;
		var0010[0x0002] = var0013;
	labelFunc06CA_01BC:
		if(!(var000D > 0x0005)) goto labelFunc06CA_01D8;
		var000F[0x0003] = 0x0001;
		var0010[0x0003] = var0013;
	labelFunc06CA_01D8:
		if(!(var000C < 0xFFFB)) goto labelFunc06CA_01F4;
		var000F[0x0004] = 0x0001;
		var0010[0x0004] = var0013;
	labelFunc06CA_01F4:
		goto labelFunc06CA_0149;
	labelFunc06CA_01F7:
		var0015 = UI_get_item_quality_1C(item);
		var0016 = 0x0000;
		var0017 = 0x0000;
		if(!((var0015 == 0x0001) || ((var0015 == 0x0003) || ((var0015 == 0x0005) || ((var0015 == 0x0007) || ((var0015 == 0x0009) || ((var0015 == 0x000B) || ((var0015 == 0x000D) || (var0015 == 0x000F))))))))) goto labelFunc06CA_02F6;
		if(!(var0004[0x0001] == 0x0000)) goto labelFunc06CA_02B3;
		UI_remove_item_84(var0010[0x0001]);
		UI_play_sound_effect_16(0x0025);
		var0018 = UI_create_new_object_2C(0x02D8);
		UI_set_item_frame_1B(var0018, 0x0004);
		UI_clear_item_flag_A5(var0018, 0x0012);
		var0016 = 0x0002;
		var0017 = 0xFFF8;
		var0019 = UI_update_last_created_2F([(var0001 + var0016), (var0002 + var0017), 0x0000]);
		goto labelFunc06CA_02F6;
	labelFunc06CA_02B3:
		UI_remove_item_84(var0005[0x0001]);
		var001A = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var001A, 0x0000);
		UI_clear_item_flag_A5(var001A, 0x0012);
		var0019 = UI_update_last_created_2F([(var0001 + 0x0002), (var0002 - 0x0008), 0x0000]);
	labelFunc06CA_02F6:
		if(!((var0015 == 0x0002) || ((var0015 == 0x0003) || ((var0015 == 0x0006) || ((var0015 == 0x0007) || ((var0015 == 0x000A) || ((var0015 == 0x000B) || ((var0015 == 0x000E) || (var0015 == 0x000F))))))))) goto labelFunc06CA_03E1;
		if(!(var0004[0x0002] == 0x0000)) goto labelFunc06CA_039E;
		UI_remove_item_84(var0010[0x0002]);
		UI_play_sound_effect_16(0x0025);
		var0018 = UI_create_new_object_2C(0x01DB);
		UI_set_item_frame_1B(var0018, 0x000A);
		UI_clear_item_flag_A5(var0018, 0x0012);
		var0016 = 0x0008;
		var0017 = 0x0002;
		var0019 = UI_update_last_created_2F([(var0001 + var0016), (var0002 + var0017), 0x0000]);
		goto labelFunc06CA_03E1;
	labelFunc06CA_039E:
		UI_remove_item_84(var0005[0x0002]);
		var001A = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var001A, 0x0000);
		UI_clear_item_flag_A5(var001A, 0x0012);
		var0019 = UI_update_last_created_2F([(var0001 + 0x0008), (var0002 + 0x0002), 0x0000]);
	labelFunc06CA_03E1:
		if(!((var0015 == 0x0004) || ((var0015 == 0x0005) || ((var0015 == 0x0006) || ((var0015 == 0x0007) || ((var0015 == 0x000C) || ((var0015 == 0x000D) || ((var0015 == 0x000E) || (var0015 == 0x000F))))))))) goto labelFunc06CA_04CC;
		if(!(var0004[0x0003] == 0x0000)) goto labelFunc06CA_0489;
		UI_remove_item_84(var0010[0x0003]);
		UI_play_sound_effect_16(0x0025);
		var0018 = UI_create_new_object_2C(0x02D8);
		UI_set_item_frame_1B(var0018, 0x0004);
		UI_clear_item_flag_A5(var0018, 0x0012);
		var0016 = 0x0002;
		var0017 = 0x0008;
		var0019 = UI_update_last_created_2F([(var0001 + var0016), (var0002 + var0017), 0x0000]);
		goto labelFunc06CA_04CC;
	labelFunc06CA_0489:
		UI_remove_item_84(var0005[0x0003]);
		var001A = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var001A, 0x0000);
		UI_clear_item_flag_A5(var001A, 0x0012);
		var001B = UI_update_last_created_2F([(var0001 + 0x0002), (var0002 + 0x0008), 0x0000]);
	labelFunc06CA_04CC:
		if(!((var0015 == 0x0008) || ((var0015 == 0x0009) || ((var0015 == 0x000A) || ((var0015 == 0x000B) || ((var0015 == 0x000C) || ((var0015 == 0x000D) || ((var0015 == 0x000E) || (var0015 == 0x000F))))))))) goto labelFunc06CA_05B7;
		if(!(var0004[0x0004] == 0x0000)) goto labelFunc06CA_0574;
		UI_remove_item_84(var0010[0x0004]);
		UI_play_sound_effect_16(0x0025);
		var0018 = UI_create_new_object_2C(0x01DB);
		UI_set_item_frame_1B(var0018, 0x000A);
		UI_clear_item_flag_A5(var0018, 0x0012);
		var0016 = 0xFFF8;
		var0017 = 0x0002;
		var0019 = UI_update_last_created_2F([(var0001 + var0016), (var0002 + var0017), 0x0000]);
		goto labelFunc06CA_05B7;
	labelFunc06CA_0574:
		UI_remove_item_84(var0005[0x0004]);
		var001A = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var001A, 0x0000);
		UI_clear_item_flag_A5(var001A, 0x0012);
		var001B = UI_update_last_created_2F([(var0001 - 0x0008), (var0002 + 0x0002), 0x0000]);
	labelFunc06CA_05B7:
		var0003 = UI_find_nearby_41(item, 0x01DB, 0x000C, 0x00B0);
		var0003 = (var0003 & UI_find_nearby_41(item, 0x02D8, 0x000C, 0x00B0));
		var0004 = [0x0000, 0x0000, 0x0000, 0x0000];
		enum();
	labelFunc06CA_05F0:
		for (var0008 in var0003 with var001C to var001D atend labelFunc06CA_067A);
		var0009 = UI_get_object_position_20(var0008);
		var000A = var0009[0x0001];
		var000B = var0009[0x0002];
		var000C = (var000A - var0001);
		var000D = (var000B - var0002);
		if(!(var000D < 0xFFFB)) goto labelFunc06CA_063E;
		var0004[0x0001] = 0x0001;
	labelFunc06CA_063E:
		if(!(var000C > 0x0005)) goto labelFunc06CA_0651;
		var0004[0x0002] = 0x0001;
	labelFunc06CA_0651:
		if(!(var000D > 0x0005)) goto labelFunc06CA_0664;
		var0004[0x0003] = 0x0001;
	labelFunc06CA_0664:
		if(!(var000C < 0xFFFB)) goto labelFunc06CA_0677;
		var0004[0x0004] = 0x0001;
	labelFunc06CA_0677:
		goto labelFunc06CA_05F0;
	labelFunc06CA_067A:
		if(!((var0004[0x0001] == 0x0001) && ((var0004[0x0002] == 0x0001) && ((var0004[0x0003] == 0x0001) && (var0004[0x0004] == 0x0001))))) goto labelFunc06CA_06B8;
		UI_play_music_39(0x0004, Func09A0(0x0005, 0x0001));
	labelFunc06CA_06B8:
		return;
}
Func06CB 0x6CB (var var0000)
{
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	UI_end_conversation_86();
	UI_set_polymorph_B3(0xFE9C, 0x00EF);
	UI_remove_item_84(item);
	return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func06CC 0x6CC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0003)) goto labelFunc06CC_0086;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_create_new_object2_2D(0x02FB, var0000);
	if(!var0001) goto labelFunc06CC_0057;
	Func09AD(var0001);
	var0002 = UI_create_new_object_2C(0x034A);
	if(!var0002) goto labelFunc06CC_0057;
	UI_set_item_frame_1B(var0002, 0x000A);
	UI_set_item_flag_A4(var0002, 0x000B);
	var0003 = UI_give_last_created_42(var0001);
	labelFunc06CC_0057:
		var0004 = UI_get_item_quality_1C(item);
		var0004 = (var0004 - 0x0001);
		if(!(var0004 > 0x0001)) goto labelFunc06CC_0081;
		var0003 = UI_set_item_quality_1D(item, var0004);
		goto labelFunc06CC_0086;
	labelFunc06CC_0081:
		UI_remove_item_84(item);
	labelFunc06CC_0086:
		return;
}
Func06CD 0x6CD (var var0000)
{
	var var0001;
	var var0002;

	if(!gflags[0004]) goto labelFunc06CD_0041;
	var0000 = UI_create_new_object_2C(0x03E6);
	if(!var0000) goto labelFunc06CD_0041;
	UI_clear_item_flag_A5(var0000, 0x0012);
	UI_set_item_frame_1B(var0000, 0x0006);
	var0001 = UI_update_last_created_2F(UI_get_object_position_20(item));
	if(!var0001) goto labelFunc06CD_0041;
	UI_remove_item_84(item);
	labelFunc06CD_0041:
		return;
}
// externs
extern Func09A3 0x9A3 (var var0000);
extern Func09AD 0x9AD (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0971 0x971 (var var0000);
extern Func07D2 0x7D2 (var var0000);

Func06CE 0x6CE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	if(!(event == 0x0003)) goto labelFunc06CE_0328;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc06CE_00D6;
	var0001 = UI_find_nearby_41(item, 0x01FB, 0x0014, 0x0000);
	enum();
	labelFunc06CE_002C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06CE_0098);
		var0005 = UI_get_object_position_20(var0004);
		var0005[0x0001] = (var0005[0x0001] - (var0005[0x0003] / 0x0002));
		var0005[0x0002] = (var0005[0x0002] - (var0005[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0004, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		goto labelFunc06CE_002C;
	labelFunc06CE_0098:
		enum();
	labelFunc06CE_0099:
		for (var0004 in var0001 with var0006 to var0007 atend labelFunc06CE_00CA);
		var0005 = UI_get_object_position_20(var0004);
		Func09A3(var0004);
		var0008 = UI_create_new_object2_2D(0x0210, var0005);
		Func09AD(var0008);
		goto labelFunc06CE_0099;
	labelFunc06CE_00CA:
		Func097F(0xFE9C, "@Uh-oh...@", 0x0005);
	labelFunc06CE_00D6:
		if(!(var0000 == 0x0001)) goto labelFunc06CE_019C;
		var0009 = UI_find_nearby_41(item, 0x03D1, 0x0014, 0x0000);
		enum();
	labelFunc06CE_00F2:
		for (var000C in var0009 with var000A to var000B atend labelFunc06CE_015E);
		var0005 = UI_get_object_position_20(var000C);
		var0005[0x0001] = (var0005[0x0001] - (var0005[0x0003] / 0x0002));
		var0005[0x0002] = (var0005[0x0002] - (var0005[0x0003] / 0x0002));
		UI_sprite_effect_68(0x001A, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0077);
		goto labelFunc06CE_00F2;
	labelFunc06CE_015E:
		enum();
	labelFunc06CE_015F:
		for (var000C in var0009 with var000D to var000E atend labelFunc06CE_0190);
		var0005 = UI_get_object_position_20(var000C);
		Func0971(var000C);
		var000F = UI_create_new_object2_2D(0x02F2, var0005);
		Func09AD(var000F);
		goto labelFunc06CE_015F;
	labelFunc06CE_0190:
		Func097F(0xFE9C, "@By the Virtues!@", 0x0005);
	labelFunc06CE_019C:
		if(!(var0000 == 0x0002)) goto labelFunc06CE_0268;
		var0001 = UI_find_nearby_41(item, 0x0356, 0x001E, 0x0000);
		enum();
	labelFunc06CE_01B8:
		for (var0004 in var0001 with var0010 to var0011 atend labelFunc06CE_0224);
		var0005 = UI_get_object_position_20(var0004);
		var0005[0x0001] = (var0005[0x0001] - (var0005[0x0003] / 0x0002));
		var0005[0x0002] = (var0005[0x0002] - (var0005[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0015, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x005F);
		goto labelFunc06CE_01B8;
	labelFunc06CE_0224:
		enum();
	labelFunc06CE_0225:
		for (var0004 in var0001 with var0012 to var0013 atend labelFunc06CE_025C);
		var0005 = UI_get_object_position_20(var0004);
		Func09A3(var0004);
		var0008 = UI_create_new_object2_2D(0x0226, var0005);
		Func09AD(var0008);
		var0008;
		calle();
		goto labelFunc06CE_0225;
	labelFunc06CE_025C:
		Func097F(0xFE9C, "@By the Virtues!@", 0x0005);
	labelFunc06CE_0268:
		if(!(var0000 == 0x0003)) goto labelFunc06CE_0328;
		var0001 = UI_find_nearby_41(item, 0x0356, 0x0008, 0x0000);
		enum();
	labelFunc06CE_0284:
		for (var0004 in var0001 with var0014 to var0015 atend labelFunc06CE_02F0);
		var0005 = UI_get_object_position_20(var0004);
		var0005[0x0001] = (var0005[0x0001] - (var0005[0x0003] / 0x0002));
		var0005[0x0002] = (var0005[0x0002] - (var0005[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0015, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x005F);
		goto labelFunc06CE_0284;
	labelFunc06CE_02F0:
		enum();
	labelFunc06CE_02F1:
		for (var0004 in var0001 with var0016 to var0017 atend labelFunc06CE_0328);
		var0005 = UI_get_object_position_20(var0004);
		Func09A3(var0004);
		var0008 = UI_create_new_object2_2D(0x0226, var0005);
		Func09AD(var0008);
		var0008;
		calle();
		goto labelFunc06CE_02F1;
	labelFunc06CE_0328:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06CF 0x6CF (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc06CF_0029;
	UI_item_say_4D(0xFED9, "@Help me...@");
	var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06CF], 0x000A);
	labelFunc06CF_0029:
		if(!(event == 0x0002)) goto labelFunc06CF_00C1;
		UI_show_npc_face0_05(0xFEDF, 0x0000);
		UcMessage("\"Oh, the pain... The end is near...\"");
		UcSay;
		UI_add_answer_0C(["Who art thou?", "What happened?"]);
	labelFunc06CF_004C:
		UcAsk;
		cmps("Who art thou?");
		UcMessage("\"Me name's Fitch. Me and me mates were trappers for Hazard.\"");
		UcSay;
		UI_remove_answer_0D("Who art thou?");
	labelFunc06CF_0062:
		cmps("What happened?");
		UcMessage("\"Several days ago we were camped in a nearby cave when we were attacked by a terrible sorceress.\"");
		UcSay;
		UcMessage("Evil she was, striking men dead before we knew what was upon us. We slew her, though she took many men with her even as she fell. Only I survived, though I fear not for long.\"");
		UcSay;
		UI_remove_answer_0D("What happened?");
		UI_add_answer_0C("Rest easy.");
	labelFunc06CF_0080:
		cmps("Rest easy.");
		UcMessage("\"I am glad thou didst find me. I'd have hated to have died out here alone...\"");
		UcSay;
		Func097F(0xFED9, "@The pain!@", 0x0000);
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		var0000 = UI_delayed_execute_usecode_array_02(0xFED9, [0x23, 0x78, 0x0032, 0x0000], 0x0005);
		goto labelFunc06CF_00C0;
	labelFunc06CF_00BD:
		goto labelFunc06CF_004C;
	labelFunc06CF_00C0:
		end_conv();
	labelFunc06CF_00C1:
		return;
}
// externs
extern Func0922 0x922 (var var0000);

Func06D0 0x6D0 (var var0000)
{
	if(!UI_get_item_flag_A3(0xFEDA, 0x0004)) goto labelFunc06D0_0015;
	UI_remove_item_84(item);
	goto labelFunc06D0_001F;
	labelFunc06D0_0015:
		Func0922(0x000D);
		gflags[02DF] = true;
	labelFunc06D0_001F:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06D1 0x6D1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc06D1_0033;
	if(!(!gflags[0000])) goto labelFunc06D1_0010;
	abrt();
	labelFunc06D1_0010:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x06D1], 0x0005);
		UI_remove_item_84(item);
		abrt();
	labelFunc06D1_0033:
		if(!(event == 0x0002)) goto labelFunc06D1_017F;
		var0001 = UI_get_object_position_20(0xFE9C);
		var0000 = UI_find_nearby_41(0xFE9C, 0x019E, 0x001E, 0x0000);
		var0002 = false;
		enum();
	labelFunc06D1_005D:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc06D1_007F);
		if(!(UI_get_item_frame_1A(var0005) == 0x0015)) goto labelFunc06D1_007C;
		var0002 = var0005;
	labelFunc06D1_007C:
		goto labelFunc06D1_005D;
	labelFunc06D1_007F:
		var0006 = 0x0064;
		if(!var0002) goto labelFunc06D1_0098;
		var0006 = UI_get_distance_21(var0002, 0xFE9C);
	labelFunc06D1_0098:
		if(!((var0001[0x0003] > 0x0005) && ((var0006 < 0x0006) || Func097D(0xFE9B, 0xFE99, 0x019E, 0xFE99, 0x0015)))) goto labelFunc06D1_0162;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		var0001 = UI_get_object_position_20(0xFE9C);
		var0001[0x0001] = (var0001[0x0001] + 0x0005);
		UI_sprite_effect_68(0x0007, (var0001[0x0001] - 0x0003), (var0001[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFF2C, var0001);
		UI_play_sound_effect_16(0x0051);
		0xFF2C;
		calle();
		0xFF2C;
		calle();
		Func097F(0xFF2C, "@Hero...@", 0x0002);
		UI_play_music_39(0x003F, Func09A0(0x0005, 0x0001));
		var0000 = UI_delayed_execute_usecode_array_02(0xFF2C, [0x23, 0x55, 0x04D4], 0x000E);
		goto labelFunc06D1_017F;
	labelFunc06D1_0162:
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x06D1], 0x0002);
	labelFunc06D1_017F:
		return;
}
Func06D2 0x6D2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(item, 0x0151, 0x0019, 0x0000);
	if(!var0000) goto labelFunc06D2_0018;
	abrt();
	labelFunc06D2_0018:
		var0001 = UI_get_object_position_20(item);
		var0002 = 0x0004;
	labelFunc06D2_0026:
		if(!(var0002 > 0x0000)) goto labelFunc06D2_0090;
		var0001[0x0001] = ((var0001[0x0001] - 0x0008) + (var0002 * 0x0002));
		var0003 = UI_create_new_object2_2D(0x0151, var0001);
		if(!var0003) goto labelFunc06D2_0083;
		UI_set_schedule_type_25(var0003, 0x000B);
		UI_set_alignment_4A(var0003, 0x0000);
		UI_set_item_flag_A4(var0003, 0x001D);
		UI_set_npc_id_BD(var0003, var0002);
	labelFunc06D2_0083:
		var0002 = (var0002 - 0x0001);
		goto labelFunc06D2_0026;
	labelFunc06D2_0090:
		if(!var0003) goto labelFunc06D2_00A0;
		UI_set_schedule_type_25(var0003, 0x001D);
	labelFunc06D2_00A0:
		return;
}
Func06D3 0x6D3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(item, 0x0151, 0x0019, 0x0000);
	var0001 = UI_get_item_quality_1C(item);
	if(!var0000) goto labelFunc06D3_0020;
	abrt();
	labelFunc06D3_0020:
		var0002 = UI_get_object_position_20(item);
		var0003 = UI_create_new_object2_2D(0x0151, var0002);
		if(!var0003) goto labelFunc06D3_0059;
		UI_set_schedule_type_25(var0003, 0x000B);
		UI_set_alignment_4A(var0003, 0x0000);
		UI_set_npc_id_BD(var0003, var0001);
	labelFunc06D3_0059:
		return;
}
Func06D4 0x6D4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = (UI_find_nearby_avatar_3C(0x010F) & UI_find_nearby_avatar_3C(0x0110));
	enum();
	labelFunc06D4_0013:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06D4_00A4);
		var0004 = UI_get_object_position_20(var0003);
		UI_sprite_effect_68(0x0015, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!(var0004[0x0003] < 0x0001)) goto labelFunc06D4_007C;
		var0005 = UI_execute_usecode_array_01(var0003, [0x0607, 0x0B, Dupre, 0x0006, 0x27, 0x0014, 0x0609, 0x0B, Dupre, 0x0006]);
	labelFunc06D4_007C:
		if(!(var0004[0x0003] > 0x0005)) goto labelFunc06D4_00A1;
		var0005 = UI_execute_usecode_array_01(var0003, [0x0609, 0x0B, Dupre, 0x0006]);
	labelFunc06D4_00A1:
		goto labelFunc06D4_0013;
	labelFunc06D4_00A4:
		return;
}
Func06D5 0x6D5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!gflags[0000]) goto labelFunc06D5_00CB;
	var0000 = UI_find_nearby_41(item, 0x012D, 0x000F, 0x0000);
	enum();
	labelFunc06D5_0018:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06D5_008F);
		var0004 = UI_get_object_position_20(var0003);
		var0004[0x0002] = (var0004[0x0002] + 0x0002);
		UI_remove_item_84(var0003);
		var0005 = UI_create_new_object_2C(0x0121);
		if(!var0005) goto labelFunc06D5_0068;
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0006 = UI_update_last_created_2F(var0004);
	labelFunc06D5_0068:
		var0005 = UI_create_new_object_2C(0x00E0);
		if(!var0005) goto labelFunc06D5_008C;
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0006 = UI_update_last_created_2F(var0004);
	labelFunc06D5_008C:
		goto labelFunc06D5_0018;
	labelFunc06D5_008F:
		var0005 = UI_create_new_object_2C(0x0192);
		if(!var0005) goto labelFunc06D5_00C6;
		UI_set_item_frame_1B(var0005, 0x0004);
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0006 = UI_update_last_created_2F([0x0750, 0x0416, 0x0000]);
	labelFunc06D5_00C6:
		UI_remove_item_84(item);
	labelFunc06D5_00CB:
		return;
}
// externs
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func06D6 0x6D6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;
	var var0025;
	var var0026;
	var var0027;
	var var0028;
	var var0029;
	var var002A;
	var var002B;
	var var002C;
	var var002D;
	var var002E;
	var var002F;

	if(!(event == 0x0003)) goto labelFunc06D6_0B4B;
	if(!gflags[0004]) goto labelFunc06D6_0815;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0001)) goto labelFunc06D6_0815;
	var0001 = UI_find_nearby_41(item, 0x03C2, 0x0050, 0x0000);
	enum();
	labelFunc06D6_0032:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06D6_0262);
		var0005 = UI_get_object_position_20(var0004);
		if(!((var0005[0x0001] == 0x03E7) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_008A;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_008A;
		UI_set_item_frame_1B(var0006, 0x0004);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_008A:
		if(!((var0005[0x0001] == 0x03EB) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_00CD;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_00CD;
		UI_set_item_frame_1B(var0006, 0x0003);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_00CD:
		if(!((var0005[0x0001] == 0x03EF) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_0110;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_0110;
		UI_set_item_frame_1B(var0006, 0x0000);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0110:
		if(!((var0005[0x0001] == 0x03EF) && (var0005[0x0002] == 0x0A0B))) goto labelFunc06D6_0153;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_0153;
		UI_set_item_frame_1B(var0006, 0x0002);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0153:
		if(!((var0005[0x0001] == 0x03D3) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_0196;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_0196;
		UI_set_item_frame_1B(var0006, 0x0004);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0196:
		if(!((var0005[0x0001] == 0x03D7) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_01D9;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_01D9;
		UI_set_item_frame_1B(var0006, 0x0006);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_01D9:
		if(!((var0005[0x0001] == 0x03DB) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_021C;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_021C;
		UI_set_item_frame_1B(var0006, 0x0003);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_021C:
		if(!((var0005[0x0001] == 0x03DF) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_025F;
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00DF);
		if(!var0006) goto labelFunc06D6_025F;
		UI_set_item_frame_1B(var0006, 0x0006);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_025F:
		goto labelFunc06D6_0032;
	labelFunc06D6_0262:
		var0008 = UI_find_nearby_41(item, 0x038D, 0x0050, 0x0000);
		enum();
	labelFunc06D6_0274:
		for (var000B in var0008 with var0009 to var000A atend labelFunc06D6_04E7);
		var0005 = UI_get_object_position_20(var000B);
		if(!((var0005[0x0001] == 0x03E8) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_02CC;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_02CC;
		UI_set_item_frame_1B(var000C, 0x0008);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_02CC:
		if(!((var0005[0x0001] == 0x03EA) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_030F;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_030F;
		UI_set_item_frame_1B(var000C, 0x000D);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_030F:
		if(!((var0005[0x0001] == 0x03EC) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_0352;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_0352;
		UI_set_item_frame_1B(var000C, 0x0009);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0352:
		if(!((var0005[0x0001] == 0x03EE) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_0395;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_0395;
		UI_set_item_frame_1B(var000C, 0x000A);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0395:
		if(!((var0005[0x0001] == 0x03D2) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_03D8;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_03D8;
		UI_set_item_frame_1B(var000C, 0x000A);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_03D8:
		if(!((var0005[0x0001] == 0x03D4) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_041B;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_041B;
		UI_set_item_frame_1B(var000C, 0x000D);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_041B:
		if(!((var0005[0x0001] == 0x03DA) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_045E;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_045E;
		UI_set_item_frame_1B(var000C, 0x000D);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_045E:
		if(!((var0005[0x0001] == 0x03DC) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_04A1;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_04A1;
		UI_set_item_frame_1B(var000C, 0x0008);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_04A1:
		if(!((var0005[0x0001] == 0x03DE) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_04E4;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038D);
		if(!var000C) goto labelFunc06D6_04E4;
		UI_set_item_frame_1B(var000C, 0x000D);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_04E4:
		goto labelFunc06D6_0274;
	labelFunc06D6_04E7:
		var0008 = UI_find_nearby_41(item, 0x038E, 0x0050, 0x0000);
		enum();
	labelFunc06D6_04F9:
		for (var000B in var0008 with var000D to var000E atend labelFunc06D6_0597);
		var0005 = UI_get_object_position_20(var000B);
		if(!((var0005[0x0001] == 0x03EF) && (var0005[0x0002] == 0x0A0D))) goto labelFunc06D6_0551;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038E);
		if(!var000C) goto labelFunc06D6_0551;
		UI_set_item_frame_1B(var000C, 0x000C);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0551:
		if(!((var0005[0x0001] == 0x03EF) && (var0005[0x0002] == 0x0A0F))) goto labelFunc06D6_0594;
		UI_remove_item_84(var000B);
		var000C = UI_create_new_object_2C(0x038E);
		if(!var000C) goto labelFunc06D6_0594;
		var0007 = UI_update_last_created_2F(var0005);
		UI_set_item_frame_1B(var000C, 0x0009);
	labelFunc06D6_0594:
		goto labelFunc06D6_04F9;
	labelFunc06D6_0597:
		var000F = 0x0000;
		var0010 = UI_find_nearby_41(item, 0x02A3, 0x000A, 0x0000);
		enum();
	labelFunc06D6_05AF:
		for (var0013 in var0010 with var0011 to var0012 atend labelFunc06D6_05D1);
		if(!(UI_get_item_quality_1C(var0013) == 0x0001)) goto labelFunc06D6_05CE;
		var000F = 0x0001;
	labelFunc06D6_05CE:
		goto labelFunc06D6_05AF;
	labelFunc06D6_05D1:
		if(!(var000F == 0x0000)) goto labelFunc06D6_0815;
		var0007 = Func09AB(0x02A3, 0x0000, 0x0001, false, item);
		var0014 = UI_find_nearby_41(item, 0x01B0, 0x0050, 0x0000);
		enum();
	labelFunc06D6_05FE:
		for (var0017 in var0014 with var0015 to var0016 atend labelFunc06D6_0613);
		UI_remove_item_84(var0017);
		goto labelFunc06D6_05FE;
	labelFunc06D6_0613:
		var0014 = UI_find_nearby_41(item, 0x0178, 0x0050, 0x0000);
		enum();
	labelFunc06D6_0625:
		for (var0017 in var0014 with var0018 to var0019 atend labelFunc06D6_063A);
		UI_remove_item_84(var0017);
		goto labelFunc06D6_0625;
	labelFunc06D6_063A:
		var001A = 0x0001;
		var001B = [0x03D0, 0x03D2, 0x03D4, 0x03D2, 0x03D8, 0x03DA, 0x03DC, 0x03DE, 0x03DA, 0x03DC, 0x03D6, 0x03E3, 0x03F5, 0x03F5, 0x03F5, 0x03DB, 0x03D2, 0x03E8, 0x03EA, 0x03EC, 0x03EC, 0x03EA];
		var001C = [0x0A11, 0x0A11, 0x0A11, 0x0A13, 0x0A11, 0x0A11, 0x0A11, 0x0A11, 0x0A13, 0x0A13, 0x0A15, 0x0A13, 0x0A0E, 0x0A14, 0x0A16, 0x0A10, 0x0A10, 0x0A11, 0x0A11, 0x0A11, 0x0A13, 0x0A13];
		var001D = [0x0003, 0x0005, 0x0004, 0x0001, 0x0003, 0x0005, 0x0005, 0x0004, 0x0001, 0x0001, 0x0000, 0x0000, 0x0000, 0x0002, 0x0001, 0x0004, 0x0006, 0x0003, 0x0005, 0x0005, 0x0001, 0x0001];
	labelFunc06D6_0718:
		if(!(var001A < 0x0017)) goto labelFunc06D6_076B;
		var001E = UI_create_new_object_2C(0x00E0);
		if(!var001E) goto labelFunc06D6_075E;
		UI_set_item_frame_1B(var001E, var001D[var001A]);
		var0005 = [var001B[var001A], var001C[var001A], 0x0000];
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_075E:
		var001A = (var001A + 0x0001);
		goto labelFunc06D6_0718;
	labelFunc06D6_076B:
		var001A = 0x0001;
		var001B = [0x03F5, 0x03F4, 0x03EB, 0x03E2, 0x03DC, 0x03D9, 0x03D2];
		var001C = [0x0A15, 0x0A0D, 0x0A10, 0x0A12, 0x0A10, 0x0A10, 0x0A10];
		var001D = [0x0005, 0x0004, 0x0005, 0x0006, 0x0005, 0x0006, 0x0005];
	labelFunc06D6_07C2:
		if(!(var001A < 0x0008)) goto labelFunc06D6_0815;
		var001E = UI_create_new_object_2C(0x0339);
		if(!var001E) goto labelFunc06D6_0808;
		UI_set_item_frame_1B(var001E, var001D[var001A]);
		var0005 = [var001B[var001A], var001C[var001A], 0x0000];
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0808:
		var001A = (var001A + 0x0001);
		goto labelFunc06D6_07C2;
	labelFunc06D6_0815:
		if(!(var0000 == 0x0002)) goto labelFunc06D6_0B4B;
		var001F = UI_get_object_position_20(item);
		var001A = 0x0000;
	labelFunc06D6_082D:
		if(!(var001A < 0x0002)) goto labelFunc06D6_08EC;
		var0020 = UI_die_roll_17(0x0001, 0x0028);
		var0020 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0022 = UI_die_roll_17(0x0000, 0x000F);
		var0023 = UI_create_new_object_2C(0x0222);
		if(!var0023) goto labelFunc06D6_08E9;
		UI_set_item_frame_1B(var0023, var0022);
		var0005 = [((var001F[0x0001] - 0x0028) + (var0020 * 0x0002)), ((var001F[0x0002] - 0x0028) + (var0021 * 0x0002)), 0x0000];
		var0024 = UI_is_not_blocked_A0(var0005, 0x0222, var0022);
		if(!var0024) goto labelFunc06D6_08E9;
		var0007 = UI_update_last_created_2F(var0005);
		var001A = (var001A + 0x0001);
	labelFunc06D6_08E9:
		goto labelFunc06D6_082D;
	labelFunc06D6_08EC:
		var001A = 0x0000;
	labelFunc06D6_08F2:
		if(!(var001A < 0x0002)) goto labelFunc06D6_09B1;
		var0020 = UI_die_roll_17(0x0001, 0x0028);
		var0025 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0022 = UI_die_roll_17(0x0000, 0x001F);
		var0023 = UI_create_new_object_2C(0x019F);
		if(!var0023) goto labelFunc06D6_09AE;
		UI_set_item_frame_1B(var0023, var0022);
		var0005 = [((var001F[0x0001] - 0x0028) + (var0020 * 0x0002)), ((var001F[0x0002] - 0x0028) + (var0021 * 0x0002)), 0x0000];
		var0024 = UI_is_not_blocked_A0(var0005, 0x019F, var0022);
		if(!var0024) goto labelFunc06D6_09AE;
		var0007 = UI_update_last_created_2F(var0005);
		var001A = (var001A + 0x0001);
	labelFunc06D6_09AE:
		goto labelFunc06D6_08F2;
	labelFunc06D6_09B1:
		var001A = 0x0000;
	labelFunc06D6_09B7:
		if(!(var001A < 0x0002)) goto labelFunc06D6_0A5F;
		var0020 = UI_die_roll_17(0x0001, 0x0028);
		var0025 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0021 = UI_die_roll_17(0x0001, 0x0028);
		var0023 = UI_create_new_object_2C(0x00E0);
		if(!var0023) goto labelFunc06D6_0A5C;
		var0005 = [((var001F[0x0001] - 0x0028) + (var0020 * 0x0002)), ((var001F[0x0002] - 0x0028) + (var0021 * 0x0002)), 0x0000];
		var0024 = UI_is_not_blocked_A0(var0005, 0x00E0, 0x0000);
		if(!var0024) goto labelFunc06D6_0A5C;
		var0007 = UI_update_last_created_2F(var0005);
		var001A = (var001A + 0x0001);
	labelFunc06D6_0A5C:
		goto labelFunc06D6_09B7;
	labelFunc06D6_0A5F:
		var0026 = UI_find_nearby_avatar_3C(0x012C);
		enum();
	labelFunc06D6_0A6A:
		for (var0007 in var0026 with var0027 to var0028 atend labelFunc06D6_0A7F);
		UI_remove_item_84(var0007);
		goto labelFunc06D6_0A6A;
	labelFunc06D6_0A7F:
		var0029 = UI_find_nearby_41(item, 0x0369, 0x0050, 0x0000);
		enum();
	labelFunc06D6_0A91:
		for (var002C in var0029 with var002A to var002B atend labelFunc06D6_0AF2);
		var0005 = UI_get_object_position_20(var002C);
		UI_remove_item_84(var002C);
		if(!(UI_die_roll_17(0x0001, 0x0003) == 0x0002)) goto labelFunc06D6_0AEF;
		var0022 = UI_die_roll_17(0x0014, 0x0017);
		var002D = UI_create_new_object_2C(0x0369);
		if(!var002D) goto labelFunc06D6_0AEF;
		UI_set_item_frame_1B(var002D, var0022);
		var0007 = UI_update_last_created_2F(var0005);
	labelFunc06D6_0AEF:
		goto labelFunc06D6_0A91;
	labelFunc06D6_0AF2:
		var002E = UI_die_roll_17(0x0000, 0x0063);
		if(!(var002E < 0x0021)) goto labelFunc06D6_0B14;
		var0007 = UI_summon_55(0x012E, item);
	labelFunc06D6_0B14:
		if(!((var002E > 0x0021) && (var002E < 0x0042))) goto labelFunc06D6_0B31;
		var0007 = UI_summon_55(0x0219, item);
	labelFunc06D6_0B31:
		if(!(var002E > 0x0042)) goto labelFunc06D6_0B46;
		var0007 = UI_summon_55(0x02F2, item);
	labelFunc06D6_0B46:
		UI_remove_item_84(item);
	labelFunc06D6_0B4B:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func06D7 0x6D7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x000A)) goto labelFunc06D7_0018;
	var0000 = Func0992(0x0001, "@Let us leave here.@", "@Unusual place...@", true);
	labelFunc06D7_0018:
		if(!(event == 0x0003)) goto labelFunc06D7_0178;
		var0001 = UI_get_item_quality_1C(item);
		var0002 = UI_get_object_position_20(item);
		if(!(var0001 == 0x0001)) goto labelFunc06D7_00C1;
		UI_sprite_effect_68(0x0004, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0003 = Iolo;
	labelFunc06D7_0066:
		if(!(var0003 < 0x0002)) goto labelFunc06D7_00C1;
		var0004 = [(var0002[0x0001] + var0003), var0002[0x0002], 0x0000];
		var0005 = UI_create_new_object2_2D(0x0373, var0004);
		UI_set_alignment_4A(var0005, 0x0002);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_opponent_5B(0xFE9C, var0005);
		var0003 = (var0003 + 0x0002);
		goto labelFunc06D7_0066;
	labelFunc06D7_00C1:
		if(!(var0001 == 0x0002)) goto labelFunc06D7_0103;
		UI_sprite_effect_68(0x001A, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0004 = [0x0A26, 0x001A, 0x0000];
		UI_move_object_4B(0xFE9B, var0004);
	labelFunc06D7_0103:
		if(!(var0001 == 0x0003)) goto labelFunc06D7_0178;
		var0006 = UI_get_object_position_20(0xFE9C);
		if(!(var0006[0x0003] < 0x0003)) goto labelFunc06D7_0178;
		UI_sprite_effect_68(0x001A, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFE9B, [0x0508, 0x062F, 0x0000]);
		var0007 = [0x0508, 0x0636, 0x0000];
		var0000 = UI_path_run_usecode_94(var0007, 0x06D7, 0xFE9C, 0x000A);
	labelFunc06D7_0178:
		return;
}
Func06D8 0x6D8 (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc06D8_001F;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x78, 0x0032, 0x0000]);
	labelFunc06D8_001F:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern Func09A4 0x9A4 (var var0000);
extern Func09A3 0x9A3 (var var0000);
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func06D9 0x6D9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;

	if(!(event == 0x0003)) goto labelFunc06D9_05CE;
	var0000 = UI_get_skin_colour_A6();
	var0001 = UI_is_pc_female_6F();
	var0002 = UI_get_item_quality_1C(item);
	var0003 = UI_get_object_position_20(item);
	if(!(var0002 == 0x0001)) goto labelFunc06D9_0052;
	var0004 = UI_find_nearby_41(item, 0x00E4, 0x0014, 0x0000);
	if(!var0004) goto labelFunc06D9_0051;
	UI_set_npc_id_BD(var0004, 0x000F);
	labelFunc06D9_0051:
		abrt();
	labelFunc06D9_0052:
		if(!(var0002 == 0x00DE)) goto labelFunc06D9_00AF;
		var0004 = UI_find_nearby_41(item, 0x00E4, 0x0014, 0x0000);
		if(!var0004) goto labelFunc06D9_00AE;
		UI_clear_item_say_4E(var0004);
		UI_show_npc_face0_05(0xFEED, 0x0000);
		UcMessage("\"Aaargh! I cannot keep pace with thee! My chest feels as though it shall soon explode!\"");
		UcSay;
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x78, 0x0032, 0x0000], 0x0008);
		Func097F(var0004, "@Mine heart!!!@", 0x0001);
	labelFunc06D9_00AE:
		abrt();
	labelFunc06D9_00AF:
		if(!(var0002 == 0x0002)) goto labelFunc06D9_0125;
		UI_play_sound_effect_16(0x0051);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x000C, Iolo);
		UI_move_object_4B(0xFF4E, var0003);
		UI_set_schedule_type_25(0xFF4E, 0x000A);
		Func097F(0xFF4E, "@Avatar!@", 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0403], 0x0008);
		var0005 = UI_set_item_quality_1D(item, 0x00FF);
		0xFF4E;
		calle();
	labelFunc06D9_0125:
		if(!(var0002 == 0x0003)) goto labelFunc06D9_0157;
		UI_remove_item_84(item);
		var0003 = [0x0061, 0x0644, 0x0000];
		UI_set_schedule_type_25(0xFF4E, 0x0014);
		UI_move_object_4B(0xFF4E, var0003);
	labelFunc06D9_0157:
		if(!(var0002 == 0x0004)) goto labelFunc06D9_01CD;
		UI_play_sound_effect_16(0x0051);
		UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x000C, Iolo);
		UI_move_object_4B(0xFF2D, var0003);
		UI_set_schedule_type_25(0xFF2D, 0x000A);
		0xFF2D;
		calle();
		Func097F(0xFF2D, "@Avatar!@", 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0363], 0x000A);
		var0005 = UI_set_item_quality_1D(item, 0x00FF);
	labelFunc06D9_01CD:
		if(!(var0002 == 0x0005)) goto labelFunc06D9_01E3;
		UI_remove_npc_4C(0xFF2D);
		UI_remove_item_84(item);
	labelFunc06D9_01E3:
		if(!(var0002 == 0x0006)) goto labelFunc06D9_0202;
		UI_set_schedule_type_25(0xFF25, 0x0003);
		var0005 = UI_set_item_quality_1D(item, 0x00FF);
	labelFunc06D9_0202:
		if(!(var0002 == 0x0007)) goto labelFunc06D9_021F;
		UI_remove_npc_4C(0xFF25);
		UI_remove_npc_4C(0xFF24);
		UI_remove_item_84(item);
	labelFunc06D9_021F:
		if(!(var0002 == 0x0008)) goto labelFunc06D9_0355;
		var0006 = UI_create_new_object2_2D(0x013E, var0003);
		UI_set_schedule_type_25(var0006, 0x0000);
		UI_set_alignment_4A(var0006, 0x0003);
		Func09A4(var0006);
		var0007 = [(var0003[0x0001] + 0x0009), var0003[0x0002], var0003[0x0003]];
		var0008 = UI_create_new_object2_2D(0x012E, var0007);
		UI_set_schedule_type_25(var0008, 0x0000);
		UI_set_alignment_4A(var0008, 0x0002);
		Func09A4(var0008);
		UI_set_opponent_5B(var0006, var0008);
		UI_set_opponent_5B(var0008, var0006);
		UI_set_oppressor_5E(var0006, var0008);
		UI_set_oppressor_5E(var0008, var0006);
		UI_set_item_flag_A4(var0006, 0x001D);
		UI_set_item_flag_A4(var0008, 0x001D);
		UI_set_polymorph_B3(var0008, 0x02D1);
		UI_play_sound_effect_16(0x0051);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x000C, Iolo);
		UI_sprite_effect_68(0x0007, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x000C, Iolo);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x013E], 0x001E);
		var0005 = UI_set_item_quality_1D(item, 0x00FF);
		var0005 = UI_add_cont_items_36(var0006, 0x0001, 0x02C6, 0x0000, 0x0000, false);
	labelFunc06D9_0355:
		if(!(var0002 == 0x0010)) goto labelFunc06D9_04BD;
		var0009 = UI_find_nearby_41(item, 0x012E, 0x0028, 0x0000);
		enum();
	labelFunc06D9_0371:
		for (var000C in var0009 with var000A to var000B atend labelFunc06D9_0479);
		var000D = UI_get_object_position_20(var000C);
		UI_set_polymorph_B3(var000C, 0x012E);
		Func09A3(var000C);
		var000E = 0x0190;
		var000F = 0x0001;
		var0010 = UI_find_nearby_41(item, 0x013E, 0x0014, 0x0000);
		enum();
	labelFunc06D9_03B4:
		for (var0013 in var0010 with var0011 to var0012 atend labelFunc06D9_03D6);
		UI_set_alignment_4A(var0013, 0x0001);
		UI_set_schedule_type_25(var0013, 0x0004);
		goto labelFunc06D9_03B4;
	labelFunc06D9_03D6:
		if(!var0001) goto labelFunc06D9_0421;
		if(!(var0000 == 0x0000)) goto labelFunc06D9_03F2;
		var000E = 0x0190;
		var000F = 0x0002;
	labelFunc06D9_03F2:
		if(!(var0000 == 0x0001)) goto labelFunc06D9_0408;
		var000E = 0x019E;
		var000F = 0x001F;
	labelFunc06D9_0408:
		if(!(var0000 > 0x0001)) goto labelFunc06D9_041E;
		var000E = 0x019E;
		var000F = 0x001D;
	labelFunc06D9_041E:
		goto labelFunc06D9_0463;
	labelFunc06D9_0421:
		if(!(var0000 == 0x0000)) goto labelFunc06D9_0437;
		var000E = 0x0190;
		var000F = 0x0001;
	labelFunc06D9_0437:
		if(!(var0000 == 0x0001)) goto labelFunc06D9_044D;
		var000E = 0x019E;
		var000F = 0x001E;
	labelFunc06D9_044D:
		if(!(var0000 > 0x0001)) goto labelFunc06D9_0463;
		var000E = 0x019E;
		var000F = 0x001C;
	labelFunc06D9_0463:
		var0005 = Func09AB(var000E, var000F, 0x0000, true, var000D);
		goto labelFunc06D9_0371;
	labelFunc06D9_0479:
		Func097F(var0013, "@Die, Avatar!@", 0x0003);
		Func097F(var0013, "@Nothing can stop me now!@", 0x0014);
		Func097F(var0013, "@The universe is mine!@", 0x0020);
		var0005 = UI_set_item_quality_1D(item, 0x0009);
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06D9], 0x0028);
	labelFunc06D9_04BD:
		if(!(var0002 == 0x0009)) goto labelFunc06D9_05CE;
		var0010 = UI_find_nearby_41(item, 0x013E, 0x001E, 0x0000);
		enum();
	labelFunc06D9_04D9:
		for (var0013 in var0010 with var0014 to var0015 atend labelFunc06D9_051D);
		var0003 = UI_get_object_position_20(var0013);
		Func09A3(var0013);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		goto labelFunc06D9_04D9;
	labelFunc06D9_051D:
		var0016 = UI_find_nearby_41(item, 0x019E, 0x0014, 0x0000);
		enum();
	labelFunc06D9_052F:
		for (var000C in var0016 with var0017 to var0018 atend labelFunc06D9_0573);
		var0003 = UI_get_object_position_20(var000C);
		Func09A3(var000C);
		UI_play_sound_effect_16(0x004C);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc06D9_052F;
	labelFunc06D9_0573:
		var0016 = UI_find_nearby_41(item, 0x0190, 0x0014, 0x0000);
		enum();
	labelFunc06D9_0585:
		for (var000C in var0016 with var0019 to var001A atend labelFunc06D9_05C9);
		var0003 = UI_get_object_position_20(var000C);
		Func09A3(var000C);
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc06D9_0585;
	labelFunc06D9_05C9:
		UI_remove_item_84(item);
	labelFunc06D9_05CE:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);

Func06DA 0x6DA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0003)) goto labelFunc06DA_0100;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0001)) goto labelFunc06DA_0072;
	var0001 = Func0992(0xFE9C, "@A Software Pirate!@", 0x0000, true);
	if(!UI_npc_nearby_3A(Iolo)) goto labelFunc06DA_0040;
	Func097F(Iolo, "@Kill him quickly!@", 0x0010);
	labelFunc06DA_0040:
		if(!UI_npc_nearby_3A(Shamino)) goto labelFunc06DA_0056;
		Func097F(Shamino, "@Format his hard drive!@", 0x0020);
	labelFunc06DA_0056:
		if(!UI_npc_nearby_3A(Dupre)) goto labelFunc06DA_006C;
		Func097F(Dupre, "@Die, Wares-thief!@", 0x0030);
	labelFunc06DA_006C:
		Func09AD(0xFF3D);
	labelFunc06DA_0072:
		if(!(var0000 == 0x0002)) goto labelFunc06DA_0088;
		Func097F(0xFE9C, "@Look at the bones!@", 0x0000);
	labelFunc06DA_0088:
		if(!(var0000 == 0x0003)) goto labelFunc06DA_00C4;
		Func097F(0xFE9C, "@Where are we?@", 0x0000);
		var0002 = Func0992(0x0001, 0x0000, 0x0000, true);
		if(!(var0002 != 0xFE9C)) goto labelFunc06DA_00C4;
		Func097F(var0002, "@We are lost, Avatar.@", 0x0020);
	labelFunc06DA_00C4:
		if(!(var0000 == 0x0004)) goto labelFunc06DA_00DA;
		Func097F(0xFE9C, "@I don't like this place...@", 0x0000);
	labelFunc06DA_00DA:
		if(!(var0000 == 0x0005)) goto labelFunc06DA_0100;
		var0003 = "Batlin must be opening the Wall of Lights!";
		var0004 = "Make haste! Batlin must be opening the Wall of Lights!";
		var0002 = Func0992(0x0001, var0004, var0003, false);
	labelFunc06DA_0100:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06DB 0x6DB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc06DB_01D0;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 > 0x0064)) goto labelFunc06DB_0082;
	var0001 = UI_get_object_position_20(0xFE9C);
	var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06DB], 0x0010);
	var0002 = UI_set_item_quality_1D(item, (var0000 - 0x0064));
	if(!(var0000 == 0x0065)) goto labelFunc06DB_005C;
	UI_item_say_4D(0xFE9C, "@I have a bad feeling...@");
	labelFunc06DB_005C:
		UI_play_sound_effect_16(0x0082);
		UI_obj_sprite_effect_91(0xFE9C, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, Dupre);
		goto labelFunc06DB_01D0;
	labelFunc06DB_0082:
		if(!(var0000 == 0x0001)) goto labelFunc06DB_009B;
		var0003 = [0x0027, 0x03E1, 0x0000];
	labelFunc06DB_009B:
		if(!(var0000 == 0x0002)) goto labelFunc06DB_00B4;
		var0003 = [0x0037, 0x03B1, 0x0000];
	labelFunc06DB_00B4:
		if(!(var0000 == 0x0003)) goto labelFunc06DB_00CD;
		var0003 = [0x0037, 0x031E, 0x0000];
	labelFunc06DB_00CD:
		if(!(var0000 == 0x0004)) goto labelFunc06DB_00E6;
		var0003 = [0x0067, 0x02DE, 0x0000];
	labelFunc06DB_00E6:
		if(!(var0000 == 0x0005)) goto labelFunc06DB_010B;
		var0003 = [0x00A8, 0x02DD, 0x0000];
		Func097F(0xFE9C, "By the Virtues!", 0x0005);
	labelFunc06DB_010B:
		if(!(var0000 == 0x0006)) goto labelFunc06DB_0124;
		var0003 = [0x03A7, 0x00C6, 0x0000];
	labelFunc06DB_0124:
		if(!(var0000 == 0x0007)) goto labelFunc06DB_0149;
		var0003 = [0x03C6, 0x0116, 0x0000];
		Func097F(0xFE9C, "I have a bad feeling...", 0x0005);
	labelFunc06DB_0149:
		if(!(var0000 == 0x0008)) goto labelFunc06DB_0162;
		var0003 = [0x03A7, 0x00C6, 0x0000];
	labelFunc06DB_0162:
		if(!(var0000 == 0x0009)) goto labelFunc06DB_017B;
		var0003 = [0x0346, 0x00F6, 0x0000];
	labelFunc06DB_017B:
		if(!(var0000 == 0x000A)) goto labelFunc06DB_0194;
		var0003 = [0x035F, 0x0126, 0x0000];
	labelFunc06DB_0194:
		var0002 = UI_set_item_quality_1D(item, (var0000 + 0x0064));
		UI_move_object_4B(0xFE9B, var0003);
		UI_play_sound_effect_16(0x0077);
		UI_obj_sprite_effect_91(0xFE9C, 0x002F, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc06DB_01D0:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06DC 0x6DC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;

	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_find_nearby_41(item, 0xFE99, 0x0002, 0x0000);
	enum();
	labelFunc06DC_0022:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc06DC_035C);
		var0006 = UI_get_item_shape_18(var0005);
		if(!((var0001 == 0x0001) && (var0006 == 0x02C3))) goto labelFunc06DC_0106;
		var0000 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x000D, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0005), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0015, (var0000[0x0001] - 0x0005), (var0000[0x0002] - 0x0003), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0028);
		UI_remove_item_84(var0005);
		var0007 = UI_set_item_quality_1D(item, 0x0002);
		var0008 = UI_find_nearby_41(item, 0x02C5, 0x0005, 0x0000);
		enum();
	labelFunc06DC_00D2:
		for (var000B in var0008 with var0009 to var000A atend labelFunc06DC_00ED);
		var0007 = UI_set_item_quality_1D(var000B, 0x0097);
		goto labelFunc06DC_00D2;
	labelFunc06DC_00ED:
		Func097F(0xFE9C, "@The plaque!@", 0x0000);
		Func097F(0xFE9C, "@It hath changed!@", 0x0010);
		abrt();
	labelFunc06DC_0106:
		if(!((var0001 == 0x0002) && (var0006 == 0x027C))) goto labelFunc06DC_01C9;
		var0000 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x000D, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0005), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0015, (var0000[0x0001] - 0x0005), (var0000[0x0002] - 0x0003), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
		UI_remove_item_84(var0005);
		var0007 = UI_set_item_quality_1D(item, 0x0003);
		Func097F(0xFE9C, "@The plaque hath changed!@", 0x0002);
		var0008 = UI_find_nearby_41(item, 0x02C5, 0x0005, 0x0000);
		enum();
	labelFunc06DC_01AD:
		for (var000E in var0008 with var000C to var000D atend labelFunc06DC_01C8);
		var0007 = UI_set_item_quality_1D(var000E, 0x0098);
		goto labelFunc06DC_01AD;
	labelFunc06DC_01C8:
		abrt();
	labelFunc06DC_01C9:
		if(!((var0001 == 0x0003) && (var0006 == 0x00D1))) goto labelFunc06DC_02DE;
		var0000 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x000D, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0005), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0015, (var0000[0x0001] - 0x0005), (var0000[0x0002] - 0x0003), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_remove_item_84(var0005);
		var0007 = UI_set_item_quality_1D(item, 0x0004);
		Func097F(0xFE9C, "@The door opened!@", 0x0005);
		var000F = UI_find_nearby_41(item, 0x0178, 0x0014, 0x0000);
		enum();
	labelFunc06DC_0270:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc06DC_02DD);
		var0000 = UI_get_object_position_20(var0012);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), var0000[0x0003], 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0012);
		var0013 = UI_create_new_object_2C(0x010E);
		if(!var0013) goto labelFunc06DC_02DA;
		UI_set_item_frame_1B(var0013, 0x0014);
		var0007 = UI_update_last_created_2F(var0000);
	labelFunc06DC_02DA:
		goto labelFunc06DC_0270;
	labelFunc06DC_02DD:
		abrt();
	labelFunc06DC_02DE:
		if(!((var0001 == 0x0005) && (var0006 == 0x039E))) goto labelFunc06DC_0359;
		var0014 = false;
		var0000 = [0x08F7, 0x0263, 0x0001];
		UI_move_object_4B(0xFE9B, var0000);
		UI_play_sound_effect_16(0x0051);
		Func097F(0xFE9C, "@By the Virtues!@", 0x0005);
		UI_obj_sprite_effect_91(0xFE9C, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_obj_sprite_effect_91(0xFE9C, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc06DC_0359:
		goto labelFunc06DC_0022;
	labelFunc06DC_035C:
		var0014 = false;
		var0002 = UI_find_nearby_41(item, 0xFE99, 0x0002, 0x0000);
		enum();
	labelFunc06DC_0372:
		for (var0017 in var0002 with var0015 to var0016 atend labelFunc06DC_03AD);
		var0000 = UI_get_object_position_20(var0017);
		var0018 = UI_get_object_position_20(item);
		var0007 = UI_get_item_shape_18(var0017);
		if(!(var0000[0x0003] >= 0x0004)) goto labelFunc06DC_03AA;
		var0014 = true;
	labelFunc06DC_03AA:
		goto labelFunc06DC_0372;
	labelFunc06DC_03AD:
		if(!var0014) goto labelFunc06DC_0418;
		var0019 = UI_die_roll_17(0x0001, 0x0006);
		if(!(var0019 == 0x0001)) goto labelFunc06DC_03D6;
		Func097F(0xFE9C, "@That did nothing...@", 0x0002);
	labelFunc06DC_03D6:
		if(!(var0019 == 0x0002)) goto labelFunc06DC_03EC;
		Func097F(0xFE9C, "@'Twas not it...@", 0x0001);
	labelFunc06DC_03EC:
		if(!(var0019 == 0x0003)) goto labelFunc06DC_0402;
		Func097F(0xFE9C, "@Wrong item...@", 0x0001);
	labelFunc06DC_0402:
		if(!(var0019 == 0x0004)) goto labelFunc06DC_0418;
		Func097F(0xFE9C, "@Maybe something else?@", 0x0001);
	labelFunc06DC_0418:
		abrt();
		return;
}
Func06DD 0x6DD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc06DD_0063;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc06DD_0025;
	var0001 = UI_set_item_quality_1D(item, 0x0001);
	labelFunc06DD_0025:
		if(!(var0000 == 0x0001)) goto labelFunc06DD_0063;
		var0002 = UI_find_nearby_41(item, 0x00C8, 0x0014, 0x0010);
		enum();
	labelFunc06DD_0041:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc06DD_005E);
		var0001 = UI_execute_usecode_array_01(var0005, [0x48]);
		goto labelFunc06DD_0041;
	labelFunc06DD_005E:
		UI_remove_item_84(item);
	labelFunc06DD_0063:
		if(!(var0000 == 0x0002)) goto labelFunc06DD_0071;
		gflags[0253] = true;
	labelFunc06DD_0071:
		return;
}
Func06DE 0x6DE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0003)) goto labelFunc06DE_00D8;
	if(!(gflags[0004] && (!UI_is_dead_44(0xFEFA)))) goto labelFunc06DE_00D8;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_create_new_object2_2D(0x00F7, var0001);
	UI_set_schedule_type_25(var0002, 0x0000);
	UI_set_alignment_4A(var0002, 0x0002);
	UI_set_opponent_5B(0xFE9C, var0002);
	var0003 = UI_die_roll_17(0x0000, 0x001E);
	var0004 = UI_add_cont_items_36(var0002, 0x0001, 0x019F, 0x0000, var0003, false);
	UI_sprite_effect_68(0x001E, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0029);
	if(!(var0000 > 0x0000)) goto labelFunc06DE_00D3;
	var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06DE], 0x000F);
	var0000 = (var0000 - 0x0001);
	var0004 = UI_set_item_quality_1D(item, var0000);
	goto labelFunc06DE_00D8;
	labelFunc06DE_00D3:
		UI_remove_item_84(item);
	labelFunc06DE_00D8:
		return;
}
Func06DF 0x6DF (var var0000)
{
	var var0001;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 < 0x0001)) goto labelFunc06DF_001F;
	UI_set_item_flag_A4(0xFE9C, 0x0025);
	goto labelFunc06DF_0029;
	labelFunc06DF_001F:
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
	labelFunc06DF_0029:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08AC 0x8AC (var var0000);
extern Func09AD 0x9AD (var var0000);

Func06E0 0x6E0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc06E0_006A;
	var0000 = UI_get_object_position_20(0xFE9C);
	if(!(var0000[0x0003] < 0x0002)) goto labelFunc06E0_006A;
	gflags[01A6] = true;
	Func097F(0xFFCD, "@Ah, 'tis thee...@", 0x0000);
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	UI_clear_item_flag_A5(0xFFCD, 0x001D);
	var0001 = UI_execute_usecode_array_01(0xFFCD, [0x61, 0x01, 0x59, 0x0000, 0x27, 0x0007, 0x23, 0x55, 0x06E0]);
	UI_remove_item_84(item);
	labelFunc06E0_006A:
		if(!(event == 0x0002)) goto labelFunc06E0_00D8;
		UI_clear_item_say_4E(0xFFCD);
		var0002 = Func08AC(false);
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Kylista, the levers have been set, and the traitor's fate is sealed...\"");
		UcSay;
		UcMessage("\"Wait, thou art not Kylista!\"");
		UcSay;
		UcMessage("\"So, thou hast found out our little scheme, hast thou?\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc06E0_00B0;
		UcMessage("\"I'm certain that thou hadst help from thy companions to come this far, girl.\"");
		UcSay;
		Func097F(0xFFCD, "@Die, wench!@", 0x0000);
		goto labelFunc06E0_00C4;
	labelFunc06E0_00B0:
		UcMessage("\"Thou shouldst have understood -- a woman cannot be left to control a city! They have not the brains for such matters!\"");
		UcSay;
		UcMessage("\"But thou hast no doubt been swayed by the ploys of a woman... Did Alyssand give her favors willingly, or did she force thee to bargain for them?\"");
		UcSay;
		Func097F(0xFFCD, "@Ha ha ha!@", 0x0000);
	labelFunc06E0_00C4:
		UcMessage("\"Of course, I can never allow thee to leave this chamber alive...\"");
		UcSay;
		Func09AD(0xFFCD);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc06E0_00D8:
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern Func0907 0x907 (var var0000, var var0001);

Func06E1 0x6E1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = UI_get_object_position_20(item);
	if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E1_00AC;
	if(!(gflags[0004] == true)) goto labelFunc06E1_00AC;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	var0002 = UI_get_object_position_20(item);
	var0002[0x0002] = (var0002[0x0002] - 0x0007);
	var0003 = UI_create_new_object2_2D(0x0151, var0002);
	if(!var0003) goto labelFunc06E1_0090;
	UI_set_schedule_type_25(var0003, 0x000F);
	var0004 = UI_execute_usecode_array_01(var0003, [0x23, 0x59, 0x34]);
	UI_play_sound_effect_16(0x0053);
	labelFunc06E1_0090:
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06E1], 0x000A);
		UI_remove_item_84(item);
	labelFunc06E1_00AC:
		if(!(event == 0x0002)) goto labelFunc06E1_0234;
		var0005 = UI_get_party_list_2B();
		var0003 = UI_find_nearby_41(item, 0x0151, 0x000A, 0x0000);
		if(!in(Shamino, var0005)) goto labelFunc06E1_00F5;
		if(!var0003) goto labelFunc06E1_00F2;
		UI_show_npc_face0_05(0xFEEB, 0x0002);
		UcMessage("\"Traitor! Foul murderer! Thou didst kill my Beatrix, faithless liar!\"");
		UcSay;
		UcMessage("\"Thou shalt see the power of the King of the White Dragon!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc06E1_00F2:
		goto labelFunc06E1_0111;
	labelFunc06E1_00F5:
		if(!var0003) goto labelFunc06E1_0111;
		UI_show_npc_face0_05(0xFEEB, 0x0002);
		UcMessage("\"I am the King of the White Dragon!\"");
		UcSay;
		UcMessage("\"I shall protect thee... I shall take thee beyond all mortal concerns -- into my kingdom of death!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc06E1_0111:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		if(!var0003) goto labelFunc06E1_0234;
		var0002 = UI_get_object_position_20(var0003);
		var0002[0x0001] = (var0002[0x0001] - (var0002[0x0003] / 0x0002));
		var0002[0x0002] = (var0002[0x0002] - (var0002[0x0003] / 0x0002));
		UI_sprite_effect_68(0x000C, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		var0002 = UI_get_object_position_20(var0003);
		var0006 = UI_find_nearby_41(item, 0x0113, 0x000A, 0x0010);
		enum();
	labelFunc06E1_019B:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc06E1_01CF);
		var000A = UI_get_item_frame_1A(var0009);
		if(!(var000A == 0x0000)) goto labelFunc06E1_01CC;
		var0004 = UI_delayed_execute_usecode_array_02(var0009, [0x48], 0x0005);
	labelFunc06E1_01CC:
		goto labelFunc06E1_019B;
	labelFunc06E1_01CF:
		UI_remove_item_84(var0003);
		var000B = UI_find_nearby_41(item, 0x01B0, 0x0014, 0x0000);
		var000C = UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000);
		if(!var000B) goto labelFunc06E1_0216;
		enum();
	labelFunc06E1_01FF:
		for (var000F in var000B with var000D to var000E atend labelFunc06E1_0216);
		Func0907(var000F, 0x0000);
		goto labelFunc06E1_01FF;
	labelFunc06E1_0216:
		if(!var000C) goto labelFunc06E1_0234;
		enum();
	labelFunc06E1_021D:
		for (var000F in var000C with var0010 to var0011 atend labelFunc06E1_0234);
		Func0907(var000F, 0x0000);
		goto labelFunc06E1_021D;
	labelFunc06E1_0234:
		return;
}
Func06E2 0x6E2 (var var0000)
{
	var var0001;
	var var0002;

	if(!(gflags[0004] == true)) goto labelFunc06E2_003D;
	var0000 = UI_create_new_object_2C(0x031D);
	if(!var0000) goto labelFunc06E2_0038;
	var0001 = UI_update_last_created_2F([0x0707, 0x05C0, 0x0000]);
	var0001 = UI_set_item_quality_1D(var0000, 0x003E);
	labelFunc06E2_0038:
		UI_remove_item_84(item);
	labelFunc06E2_003D:
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09B8 0x9B8 ();
extern Func09AD 0x9AD (var var0000);

Func06E3 0x6E3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	if(!gflags[00D5]) goto labelFunc06E3_0007;
	abrt();
	labelFunc06E3_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E3_013C;
		var0002 = UI_get_item_quality_1C(item);
		if(!(var0002 == 0x0000)) goto labelFunc06E3_00B0;
		UI_sprite_effect_68(0x0015, 0x071E, 0x05A6, 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFEFA, [0x071E, 0x05A6, 0x0000]);
		UI_set_schedule_type_25(0xFEFA, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, 0x32]);
		var0003 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06E3], 0x000A);
		UI_remove_item_84(item);
		abrt();
	labelFunc06E3_00B0:
		if(!(var0002 == 0x0001)) goto labelFunc06E3_013C;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		Func097F(0xFE9C, "@What...?@", 0x0005);
		Func097F(0xFE9C, "@NO!@", 0x0028);
		var0004 = UI_find_nearby_41(item, 0x010C, 0x000F, 0x0000);
		var0004 = (var0004 & UI_find_nearby_41(item, 0x0350, 0x000F, 0x0000));
		enum();
	labelFunc06E3_0103:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc06E3_011B);
		UI_set_item_frame_1B(var0007, 0x0004);
		goto labelFunc06E3_0103;
	labelFunc06E3_011B:
		var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06E3], 0x0014);
		gflags[0007] = true;
		UI_remove_item_84(item);
		abrt();
	labelFunc06E3_013C:
		if(!(event == 0x0002)) goto labelFunc06E3_038F;
		if(!((gflags[0007] == false) && (gflags[0008] == false))) goto labelFunc06E3_0168;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Come and see the freak show, Avatar!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func09B8();
		abrt();
	labelFunc06E3_0168:
		if(!(gflags[0007] == true)) goto labelFunc06E3_01D6;
		var0004 = UI_find_nearby_41(item, 0x010C, 0x000F, 0x0000);
		var0004 = (var0004 & UI_find_nearby_41(item, 0x0350, 0x000F, 0x0000));
		enum();
	labelFunc06E3_0197:
		for (var0007 in var0004 with var0008 to var0009 atend labelFunc06E3_01AF);
		UI_set_item_frame_1B(var0007, 0x0005);
		goto labelFunc06E3_0197;
	labelFunc06E3_01AF:
		UI_play_sound_effect_16(0x005F);
		var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06E3], 0x0014);
		gflags[0007] = false;
		gflags[0008] = true;
		abrt();
	labelFunc06E3_01D6:
		if(!(gflags[0008] == true)) goto labelFunc06E3_038F;
		var0004 = UI_find_nearby_41(item, 0x010C, 0x000F, 0x0000);
		enum();
	labelFunc06E3_01F0:
		for (var0007 in var0004 with var000A to var000B atend labelFunc06E3_02AC);
		var000C = UI_get_object_position_20(var0007);
		var000C[0x0001] = (var000C[0x0001] - (var000C[0x0003] / 0x0002));
		var000C[0x0002] = (var000C[0x0002] - (var000C[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0009, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000C = UI_get_object_position_20(var0007);
		var000D = UI_create_new_object2_2D(0x014E, var000C);
		if(!var000D) goto labelFunc06E3_02A9;
		var0003 = UI_set_npc_prop_29(var000D, 0x0002, 0x0014);
		UI_set_polymorph_B3(var000D, 0x02D1);
		var0003 = UI_execute_usecode_array_01(var000D, [0x23, 0x59, 0x32]);
		Func09AD(var000D);
		UI_remove_item_84(var0007);
	labelFunc06E3_02A9:
		goto labelFunc06E3_01F0;
	labelFunc06E3_02AC:
		var0004 = UI_find_nearby_41(item, 0x0350, 0x000F, 0x0000);
		enum();
	labelFunc06E3_02BE:
		for (var0007 in var0004 with var000E to var000F atend labelFunc06E3_037A);
		var000C = UI_get_object_position_20(var0007);
		var000C[0x0001] = (var000C[0x0001] - (var000C[0x0003] / 0x0002));
		var000C[0x0002] = (var000C[0x0002] - (var000C[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0009, var000C[0x0001], var000C[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000C = UI_get_object_position_20(var0007);
		var000D = UI_create_new_object2_2D(0x014E, var000C);
		if(!var000D) goto labelFunc06E3_0377;
		var0003 = UI_set_npc_prop_29(var000D, 0x0002, 0x0014);
		UI_set_polymorph_B3(var000D, 0x02D1);
		var0003 = UI_execute_usecode_array_01(var000D, [0x23, 0x59, 0x34]);
		Func09AD(var000D);
		UI_remove_item_84(var0007);
	labelFunc06E3_0377:
		goto labelFunc06E3_02BE;
	labelFunc06E3_037A:
		UI_play_sound_effect_16(0x0052);
		gflags[0008] = false;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc06E3_038F:
		return;
}
// externs
extern var Func09BA 0x9BA ();
extern var Func097E 0x97E (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09B8 0x9B8 ();

Func06E4 0x6E4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!Func09BA()) goto labelFunc06E4_0007;
	abrt();
	labelFunc06E4_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E4_00D4;
		UI_sprite_effect_68(0x0015, 0x06D8, 0x0591, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x06D8, 0x0591, 0x0000]);
		UI_set_schedule_type_25(0xFEFA, 0x000F);
		var0002 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, 0x34]);
		var0002 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06E4], 0x000A);
		var0003 = UI_find_nearby_41(item, 0x010E, 0x0006, 0x0000);
		if(!var0003) goto labelFunc06E4_00CA;
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x55, 0x010E]);
	labelFunc06E4_00CA:
		gflags[0007] = false;
		UI_remove_item_84(item);
		abrt();
	labelFunc06E4_00D4:
		if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc06E4_0140;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Want to try some spinning...\"* \"...and dying, Avatar?\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0004 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
		if(!var0004) goto labelFunc06E4_0115;
		UI_set_item_frame_1B(var0004, 0x0002);
	labelFunc06E4_0115:
		gflags[0007] = true;
		var0005 = Func09A0(0x0000, 0x0001);
		if(!var0005) goto labelFunc06E4_013F;
		var0002 = UI_execute_usecode_array_01(var0005, [0x23, 0x55, 0x06E4]);
	labelFunc06E4_013F:
		abrt();
	labelFunc06E4_0140:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc06E4_01A6;
		var0006 = UI_find_nearby_41(item, 0x00C8, 0x001E, 0x0010);
		enum();
	labelFunc06E4_0160:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc06E4_019F);
		var000A = UI_get_item_frame_1A(var0009);
		if(!((var000A > 0x0001) && (var000A < 0x0006))) goto labelFunc06E4_019C;
		var0002 = UI_execute_usecode_array_01(var0009, [0x49, 0x0002, 0x000F]);
	labelFunc06E4_019C:
		goto labelFunc06E4_0160;
	labelFunc06E4_019F:
		Func09B8();
		gflags[0007] = false;
	labelFunc06E4_01A6:
		return;
}
// externs
extern var Func09BA 0x9BA ();
extern var Func097E 0x97E (var var0000);
extern Func09B8 0x9B8 ();

Func06E5 0x6E5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!Func09BA()) goto labelFunc06E5_0007;
	abrt();
	labelFunc06E5_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E5_01D0;
		UI_sprite_effect_68(0x0015, 0x06F2, 0x05A5, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x06F2, 0x05A5, 0x0000]);
		UI_set_schedule_type_25(0xFEFA, 0x000F);
		var0002 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, 0x30]);
		var0002 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06E5], 0x000A);
		var0003 = UI_find_nearby_41(item, 0x02B1, 0x000F, 0x0000);
		if(!var0003) goto labelFunc06E5_00CD;
		var0002 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x02B1], 0x0005);
	labelFunc06E5_00CD:
		var0004 = UI_find_nearby_41(item, 0x02B4, 0x0014, 0x0000);
		if(!var0004) goto labelFunc06E5_00FB;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x02B4], 0x0019);
	labelFunc06E5_00FB:
		var0005 = UI_find_nearby_41(item, 0x02B2, 0x000F, 0x0000);
		if(!var0005) goto labelFunc06E5_0129;
		var0002 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x02B2], 0x002D);
	labelFunc06E5_0129:
		var0006 = UI_find_nearby_41(item, 0x02E9, 0x000F, 0x0000);
		if(!var0006) goto labelFunc06E5_0157;
		var0002 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x02E9], 0x0041);
	labelFunc06E5_0157:
		var0007 = UI_find_nearby_41(item, 0x02B5, 0x0014, 0x0000);
		if(!var0007) goto labelFunc06E5_0185;
		var0002 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x02B5], 0x0055);
	labelFunc06E5_0185:
		var0008 = UI_find_nearby_41(item, 0x0113, 0x0014, 0x0010);
		enum();
	labelFunc06E5_0197:
		for (var000B in var0008 with var0009 to var000A atend labelFunc06E5_01CB);
		var000C = UI_get_item_frame_1A(var000B);
		if(!(var000C == 0x0000)) goto labelFunc06E5_01C8;
		var0002 = UI_delayed_execute_usecode_array_02(var000B, [0x48], 0x0064);
	labelFunc06E5_01C8:
		goto labelFunc06E5_0197;
	labelFunc06E5_01CB:
		UI_remove_item_84(item);
	labelFunc06E5_01D0:
		if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc06E5_01F3;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Want to sing an opera, Avatar?\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func09B8();
	labelFunc06E5_01F3:
		return;
}
// externs
extern var Func09BA 0x9BA ();
extern var Func097E 0x97E (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09B8 0x9B8 ();
extern var Func09A1 0x9A1 (var var0000);

Func06E6 0x6E6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!Func09BA()) goto labelFunc06E6_0007;
	abrt();
	labelFunc06E6_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E6_0489;
		var0002 = UI_get_item_quality_1C(item);
		var0003 = 0x0000;
		var0004 = 0x0000;
		var0005 = [0xFEFA, 0xFEF8, 0xFEF9];
		var0006 = var0005[UI_die_roll_17(0x0001, 0x0003)];
		if(!(var0002 == 0x0000)) goto labelFunc06E6_00DA;
		UI_sprite_effect_68(0x0015, 0x0715, 0x0582, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x0715, 0x0582, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x34]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_00DA;
		var0007 = UI_set_item_quality_1D(var0004, 0x0000);
	labelFunc06E6_00DA:
		if(!(var0002 == 0x0001)) goto labelFunc06E6_014B;
		UI_sprite_effect_68(0x0015, 0x06F1, 0x0582, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x06F1, 0x0582, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x32]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_014B;
		var0007 = UI_set_item_quality_1D(var0004, 0x0001);
	labelFunc06E6_014B:
		if(!(var0002 == 0x0002)) goto labelFunc06E6_01BC;
		UI_sprite_effect_68(0x0015, 0x06C6, 0x0566, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x06C6, 0x0566, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x34]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_01BC;
		var0007 = UI_set_item_quality_1D(var0004, 0x0002);
	labelFunc06E6_01BC:
		if(!(var0002 == 0x0003)) goto labelFunc06E6_022D;
		UI_sprite_effect_68(0x0015, 0x06D1, 0x0555, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x06D1, 0x0555, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x32]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_022D;
		var0007 = UI_set_item_quality_1D(var0004, 0x0003);
	labelFunc06E6_022D:
		if(!(var0002 == 0x0004)) goto labelFunc06E6_029E;
		UI_sprite_effect_68(0x0015, 0x0705, 0x0571, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x0705, 0x0571, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x36]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_029E;
		var0007 = UI_set_item_quality_1D(var0004, 0x0004);
	labelFunc06E6_029E:
		if(!(var0002 == 0x0005)) goto labelFunc06E6_030F;
		UI_sprite_effect_68(0x0015, 0x0731, 0x0569, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x0731, 0x0569, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x32]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_030F;
		var0007 = UI_set_item_quality_1D(var0004, 0x0005);
	labelFunc06E6_030F:
		if(!(var0002 == 0x0006)) goto labelFunc06E6_0380;
		UI_sprite_effect_68(0x0015, 0x0726, 0x0573, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x0726, 0x0573, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x34]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_0380;
		var0007 = UI_set_item_quality_1D(var0004, 0x0006);
	labelFunc06E6_0380:
		if(!(var0002 == 0x0007)) goto labelFunc06E6_03F1;
		UI_sprite_effect_68(0x0015, 0x09A1, 0x0050, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x09A1, 0x0050, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x34]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_03F1;
		var0007 = UI_set_item_quality_1D(var0004, 0x0007);
	labelFunc06E6_03F1:
		if(!(var0002 == 0x0008)) goto labelFunc06E6_0462;
		UI_sprite_effect_68(0x0015, 0x09C0, 0x0058, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(var0006, [0x09C0, 0x0058, 0x0000]);
		var0007 = UI_execute_usecode_array_01(var0006, [0x23, 0x61, 0x59, 0x32]);
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_0462;
		var0007 = UI_set_item_quality_1D(var0004, 0x0008);
	labelFunc06E6_0462:
		UI_set_schedule_type_25(var0006, 0x000F);
		var0007 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x06E6], 0x000A);
		UI_remove_item_84(item);
		abrt();
	labelFunc06E6_0489:
		if(!(event == 0x0002)) goto labelFunc06E6_066C;
		var0006 = UI_get_npc_number_47(item);
		var0008 = "";
		var0004 = Func09A0(0x0000, 0x0001);
		if(!var0004) goto labelFunc06E6_04BB;
		var0002 = UI_get_item_quality_1C(var0004);
	labelFunc06E6_04BB:
		if(!(var0002 == 0x0000)) goto labelFunc06E6_04CB;
		var0008 = "Dost thou like to read, Avatar? I have some hot new titles for thee.";
	labelFunc06E6_04CB:
		if(!(var0002 == 0x0001)) goto labelFunc06E6_04DB;
		var0008 = "Come in and relax, Avatar.";
	labelFunc06E6_04DB:
		if(!(var0002 == 0x0002)) goto labelFunc06E6_04EB;
		var0008 = "Come and meet the sweet ladies, Avatar.";
	labelFunc06E6_04EB:
		if(!(var0002 == 0x0003)) goto labelFunc06E6_04FB;
		var0008 = "Wilt thou watch the children for me, Avatar?";
	labelFunc06E6_04FB:
		if(!(var0002 == 0x0004)) goto labelFunc06E6_050B;
		var0008 = "Come and dance a jig with these fine fellows, Avatar.";
	labelFunc06E6_050B:
		if(!(var0002 == 0x0005)) goto labelFunc06E6_058A;
		var0009 = UI_part_of_day_48();
		if(!((var0009 == 0x0000) || (var0009 == 0x0001))) goto labelFunc06E6_0534;
		var000A = "a late night morsel";
	labelFunc06E6_0534:
		if(!((var0009 == 0x0002) || (var0009 == 0x0003))) goto labelFunc06E6_054C;
		var000A = "breakfast";
	labelFunc06E6_054C:
		if(!((var0009 == 0x0004) || (var0009 == 0x0005))) goto labelFunc06E6_0564;
		var000A = "lunch";
	labelFunc06E6_0564:
		if(!((var0009 == 0x0006) || (var0009 == 0x0007))) goto labelFunc06E6_057C;
		var000A = "dinner";
	labelFunc06E6_057C:
		var0008 = (("Thou'rt just in time for " + var000A) + ", Avatar.");
	labelFunc06E6_058A:
		if(!(var0002 == 0x0006)) goto labelFunc06E6_059A;
		var0008 = "Come in, come in, Avatar. I have cooked something special for thee.";
	labelFunc06E6_059A:
		if(!(var0002 == 0x0007)) goto labelFunc06E6_05AA;
		var0008 = "So, thou hast found my playroom...";
	labelFunc06E6_05AA:
		if(!(var0002 == 0x0008)) goto labelFunc06E6_05D0;
		var0008 = "Thou'rt almost there, Avatar.";
		var0004 = Func09A0(0x0000, 0x0001);
		UI_play_music_39(0x0033, var0004);
	labelFunc06E6_05D0:
		if(!(var0006 == 0xFEFA)) goto labelFunc06E6_05E4;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
	labelFunc06E6_05E4:
		if(!(var0006 == 0xFEF9)) goto labelFunc06E6_05F8;
		UI_show_npc_face0_05(0xFEE6, 0x0000);
	labelFunc06E6_05F8:
		if(!(var0006 == 0xFEF8)) goto labelFunc06E6_060C;
		UI_show_npc_face0_05(0xFEF4, 0x0000);
	labelFunc06E6_060C:
		UcMessage(var0008);
		UcMessage("");
		UcSay;
		UI_remove_npc_face0_07();
		var000B = UI_get_object_position_20(var0006);
		Func09B8();
		if(!(var0002 == 0x0006)) goto labelFunc06E6_066C;
		var000C = UI_create_new_object2_2D(0x0151, var000B);
		if(!var000C) goto labelFunc06E6_0663;
		UI_set_alignment_4A(var000C, 0x0002);
		UI_set_schedule_type_25(var000C, 0x0000);
		UI_set_opponent_5B(var0007, UI_get_npc_object_23(0xFE9C));
	labelFunc06E6_0663:
		var0007 = Func09A1(0x0151);
	labelFunc06E6_066C:
		return;
}
// externs
extern var Func09BA 0x9BA ();
extern var Func097E 0x97E (var var0000);
extern Func09B8 0x9B8 ();

Func06E7 0x6E7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!Func09BA()) goto labelFunc06E7_0007;
	abrt();
	labelFunc06E7_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E7_00C5;
		UI_sprite_effect_68(0x0015, 0x06C9, 0x0588, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x06C9, 0x0588, 0x0000]);
		var0002 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, 0x34]);
		var0002 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06E7], 0x000A);
		var0003 = UI_find_nearby_41(item, 0x010E, 0x0006, 0x0000);
		if(!var0003) goto labelFunc06E7_00C0;
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x55, 0x010E]);
	labelFunc06E7_00C0:
		UI_remove_item_84(item);
	labelFunc06E7_00C5:
		if(!(event == 0x0002)) goto labelFunc06E7_0164;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Welcome to mine own private shooting gallery, Avatar.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func09B8();
		var0004 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
		if(!var0004) goto labelFunc06E7_0103;
		UI_set_item_frame_1B(var0004, 0x0002);
	labelFunc06E7_0103:
		var0005 = UI_find_nearby_41(item, 0x00C8, 0x001E, 0x0010);
		enum();
	labelFunc06E7_0115:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc06E7_0164);
		var0009 = UI_get_item_frame_1A(var0008);
		if(!(((var0009 > 0x0001) && (var0009 < 0x0006)) || ((var0009 > 0x0008) && (var0009 < 0x000D)))) goto labelFunc06E7_0161;
		var0002 = UI_execute_usecode_array_01(var0008, [0x49, 0x0002, 0x000F]);
	labelFunc06E7_0161:
		goto labelFunc06E7_0115;
	labelFunc06E7_0164:
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern Func09B8 0x9B8 ();

Func06E8 0x6E8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = UI_get_object_position_20(item);
	if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06E8_006C;
	var0002 = UI_find_nearby_41(item, 0x00C8, 0x0028, 0x0010);
	enum();
	labelFunc06E8_0041:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc06E8_0064);
		var0006 = UI_execute_usecode_array_01(var0005, [0x49, 0x0002, 0x000F]);
		goto labelFunc06E8_0041;
	labelFunc06E8_0064:
		Func09B8();
		UI_remove_item_84(item);
	labelFunc06E8_006C:
		return;
}
// externs
extern var Func09B9 0x9B9 (var var0000, var var0001);

Func06E9 0x6E9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0003)) goto labelFunc06E9_01F2;
	var0000 = UI_find_nearby_41(item, 0x00C8, 0x0082, 0x0010);
	enum();
	labelFunc06E9_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06E9_005B);
		var0004 = UI_get_item_frame_1A(var0003);
		if(!(((var0004 > 0x0002) && (var0004 < 0x0007)) || ((var0004 > 0x0008) && (var0004 < 0x000D)))) goto labelFunc06E9_0058;
		UI_remove_item_84(var0003);
	labelFunc06E9_0058:
		goto labelFunc06E9_001A;
	labelFunc06E9_005B:
		var0005 = UI_get_object_position_20(item);
		var0006 = 0x0000;
		UI_play_sound_effect_16(0x002C);
	labelFunc06E9_0070:
		if(!(var0006 < 0x000E)) goto labelFunc06E9_0121;
		var0007 = UI_die_roll_17(0x0001, 0x0002);
		if(!(UI_die_roll_17(0x0000, 0x0001) == 0x0000)) goto labelFunc06E9_00A2;
		var0007 = (var0007 * Dupre);
	labelFunc06E9_00A2:
		var0008 = (var0006 + var0007);
		var0009 = UI_create_new_object_2C(0x037F);
		if(!var0009) goto labelFunc06E9_00E0;
		UI_set_item_flag_A4(var0009, 0x0012);
		var000A = UI_update_last_created_2F(Func09B9(var0005[0x0001], (var0005[0x0002] + var0008)));
	labelFunc06E9_00E0:
		var000B = UI_create_new_object_2C(0x037F);
		if(!var000B) goto labelFunc06E9_0114;
		UI_set_item_flag_A4(var000B, 0x0012);
		var000A = UI_update_last_created_2F(Func09B9(var0005[0x0001], (var0005[0x0002] - var0008)));
	labelFunc06E9_0114:
		var0006 = (var0006 + 0x0001);
		goto labelFunc06E9_0070;
	labelFunc06E9_0121:
		var0006 = 0x0000;
		UI_play_sound_effect_16(0x002C);
	labelFunc06E9_012E:
		if(!(var0006 < 0x000F)) goto labelFunc06E9_01ED;
		var0005 = UI_get_object_position_20(item);
		var000C = UI_die_roll_17(0x0001, 0x0008);
		var000D = UI_die_roll_17(0x0001, 0x0008);
		if(!(UI_die_roll_17(0x0000, 0x0001) == 0x0000)) goto labelFunc06E9_0175;
		var000C = (var000C * Dupre);
	labelFunc06E9_0175:
		if(!(UI_die_roll_17(0x0000, 0x0001) == 0x0000)) goto labelFunc06E9_0190;
		var000D = (var000D * Dupre);
	labelFunc06E9_0190:
		var0005[0x0001] = (var0005[0x0001] + var000C);
		var0005[0x0002] = (var0005[0x0002] + var000D);
		var0009 = UI_create_new_object_2C(0x037F);
		if(!var0009) goto labelFunc06E9_01E0;
		UI_set_item_flag_A4(var0009, 0x0012);
		var000A = UI_update_last_created_2F(Func09B9(var0005[0x0001], var0005[0x0002]));
	labelFunc06E9_01E0:
		var0006 = (var0006 + 0x0001);
		goto labelFunc06E9_012E;
	labelFunc06E9_01ED:
		UI_remove_item_84(item);
	labelFunc06E9_01F2:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func06EA 0x6EA (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc06EA_00B1;
	if(!(!gflags[00D5])) goto labelFunc06EA_0021;
	UI_show_npc_face0_05(0xFEE0, 0x0000);
	UcMessage("\"I had almost tired of waiting for thee, Avatar. Thou'rt some hero... it	took thee long enough.\"");
	UcSay;
	UI_remove_npc_face0_07();
	labelFunc06EA_0021:
		var0000 = [0xFEFA, 0xFEF9, 0xFEF8];
		if(!(!gflags[00D5])) goto labelFunc06EA_005B;
		UI_set_item_flag_A4(0xFEFA, 0x001D);
		UI_set_alignment_4A(0xFEFA, 0x0002);
		UI_set_schedule_type_25(0xFEFA, 0x0000);
		Func09AD(0xFEFA);
	labelFunc06EA_005B:
		if(!(!gflags[00D3])) goto labelFunc06EA_0086;
		UI_set_item_flag_A4(0xFEF9, 0x001D);
		UI_set_alignment_4A(0xFEF9, 0x0002);
		UI_set_schedule_type_25(0xFEF9, 0x0000);
		Func09AD(0xFEF9);
	labelFunc06EA_0086:
		if(!(!gflags[00D4])) goto labelFunc06EA_00B1;
		UI_set_item_flag_A4(0xFEF8, 0x001D);
		UI_set_alignment_4A(0xFEF8, 0x0002);
		UI_set_schedule_type_25(0xFEF8, 0x0000);
		Func09AD(0xFEF8);
	labelFunc06EA_00B1:
		return;
}
// externs
extern Func09B8 0x9B8 ();

Func06EB 0x6EB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(event == 0x0003)) goto labelFunc06EB_012D;
	var0000 = UI_find_nearby_41(item, 0x0113, 0x000F, 0x0010);
	var0001 = 0x0000;
	enum();
	labelFunc06EB_0020:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc06EB_0048);
		var0005 = UI_get_item_frame_1A(var0004);
		if(!(var0005 == 0x0000)) goto labelFunc06EB_0045;
		var0001 = var0004;
	labelFunc06EB_0045:
		goto labelFunc06EB_0020;
	labelFunc06EB_0048:
		if(!var0001) goto labelFunc06EB_00B0;
		UI_sprite_effect_68(0x0015, 0x09B3, 0x0027, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x09B3, 0x0027, 0x0000]);
		var0006 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, 0x32]);
		var0006 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06EB], 0x000A);
		goto labelFunc06EB_012D;
	labelFunc06EB_00B0:
		var0007 = UI_find_nearby_41(item, 0x0370, 0x0014, 0x0000);
		var0007 = (var0007 & UI_find_nearby_41(item, 0x038A, 0x0014, 0x0000));
		var0007 = (var0007 & UI_find_nearby_41(item, 0x013D, 0x0014, 0x0000));
		enum();
	labelFunc06EB_00EC:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc06EB_012A);
		var000B = UI_get_object_position_20(var000A);
		UI_sprite_effect_68(0x001A, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		goto labelFunc06EB_00EC;
	labelFunc06EB_012A:
		Func09B8();
	labelFunc06EB_012D:
		if(!(event == 0x0002)) goto labelFunc06EB_019F;
		var0000 = UI_find_nearby_41(item, 0x0113, 0x000F, 0x0010);
		var0001 = 0x0000;
		enum();
	labelFunc06EB_014D:
		for (var0004 in var0000 with var000C to var000D atend labelFunc06EB_0184);
		var0005 = UI_get_item_frame_1A(var0004);
		if(!(var0005 == 0x0000)) goto labelFunc06EB_0181;
		var0006 = UI_execute_usecode_array_01(var0004, [0x48]);
		var0001 = var0004;
	labelFunc06EB_0181:
		goto labelFunc06EB_014D;
	labelFunc06EB_0184:
		if(!var0001) goto labelFunc06EB_019C;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Hurry, Avatar, I am waiting for thee...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc06EB_019C:
		Func09B8();
	labelFunc06EB_019F:
		return;
}
// externs
extern var Func09BA 0x9BA ();
extern var Func097E 0x97E (var var0000);
extern Func09B8 0x9B8 ();

Func06EC 0x6EC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!Func09BA()) goto labelFunc06EC_0007;
	abrt();
	labelFunc06EC_0007:
		var0000 = UI_get_object_position_20(0xFE9C);
		var0001 = UI_get_object_position_20(item);
		if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc06EC_018F;
		if(!(!gflags[0259])) goto labelFunc06EC_0186;
		var0002 = 0x0000;
		var0003 = UI_get_item_quality_1C(item);
		if(!(var0003 == 0x0000)) goto labelFunc06EC_008D;
		UI_sprite_effect_68(0x0015, 0x09A0, 0x0027, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x09A0, 0x0027, 0x0000]);
		var0004 = 0x32;
	labelFunc06EC_008D:
		if(!(var0003 == 0x0001)) goto labelFunc06EC_00CF;
		UI_sprite_effect_68(0x0015, 0x09C1, 0x0024, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x09C1, 0x0024, 0x0000]);
		var0004 = 0x34;
	labelFunc06EC_00CF:
		if(!(var0003 == 0x0002)) goto labelFunc06EC_0111;
		UI_sprite_effect_68(0x0015, 0x099F, 0x0035, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x099F, 0x0035, 0x0000]);
		var0004 = 0x32;
	labelFunc06EC_0111:
		if(!(var0003 == 0x0003)) goto labelFunc06EC_0153;
		UI_sprite_effect_68(0x0015, 0x09C7, 0x0031, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFEFA, [0x09C7, 0x0031, 0x0000]);
		var0004 = 0x34;
	labelFunc06EC_0153:
		if(!0xFEFA) goto labelFunc06EC_0186;
		var0005 = UI_execute_usecode_array_01(0xFEFA, [0x23, 0x61, 0x59, var0004]);
		var0005 = UI_delayed_execute_usecode_array_02(0xFEFA, [0x23, 0x55, 0x06EC], 0x000A);
	labelFunc06EC_0186:
		gflags[0259] = true;
		UI_remove_item_84(item);
	labelFunc06EC_018F:
		if(!(event == 0x0002)) goto labelFunc06EC_01AC;
		UI_show_npc_face0_05(0xFEE0, 0x0000);
		UcMessage("\"Thou'rt not here to sleep, Avatar.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func09B8();
	labelFunc06EC_01AC:
		return;
}
// externs
extern Func0949 0x949 (var var0000);

Func06ED 0x6ED (var var0000)
{
	var var0001;

	var0000 = UI_execute_usecode_array_01(item, [0x23, 0x58, 0x001E, 0x27, 0x000F, 0x0B, 0xFFFC, 0x0003]);
	Func0949(["@An alarm bell!", "They know that we are here.@"]);
	return;
}
// externs
extern Func0907 0x907 (var var0000, var var0001);
extern var Func090A 0x90A (var var0000);
extern var Func090B 0x90B (var var0000);

Func06EE 0x6EE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(item, 0x0106, 0x0002, 0x0000);
	event = 0x0001;
	if(!var0000) goto labelFunc06EE_007F;
	var0000 = UI_find_nearby_41(item, 0x033C, 0x0019, 0x0000);
	enum();
	labelFunc06EE_002D:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06EE_004D);
		Func0907(var0003, 0x0000);
		var0004 = Func090A(var0003);
		goto labelFunc06EE_002D;
	labelFunc06EE_004D:
		var0000 = UI_find_nearby_41(item, 0x034D, 0x0019, 0x0000);
		enum();
	labelFunc06EE_005F:
		for (var0003 in var0000 with var0005 to var0006 atend labelFunc06EE_007F);
		Func0907(var0003, 0x0000);
		var0004 = Func090B(var0003);
		goto labelFunc06EE_005F;
	labelFunc06EE_007F:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func06EF 0x6EF (var var0000)
{
	if(!Func097D(0xFE9B, 0x0001, 0x0106, 0xFE99, 0x0002)) goto labelFunc06EF_0028;
	UI_move_object_4B(0xFE9B, [0x01B2, 0x03AD, 0x0000]);
	labelFunc06EF_0028:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func010E 0x10E (var var0000);
extern Func0178 0x178 (var var0000);
extern Func01B1 0x1B1 (var var0000);
extern Func01B0 0x1B0 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);

Func06F0 0x6F0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	var0000 = false;
	var0001 = UI_find_nearby_41(item, 0x02B0, 0x0002, 0x0000);
	if(!var0001) goto labelFunc06F0_003C;
	enum();
	labelFunc06F0_001C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06F0_003C);
		if(!(UI_get_item_frame_1A(var0004) == 0x0004)) goto labelFunc06F0_0039;
		var0000 = true;
	labelFunc06F0_0039:
		goto labelFunc06F0_001C;
	labelFunc06F0_003C:
		if(!(!var0000)) goto labelFunc06F0_016C;
		event = 0x0001;
		var0004 = UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000);
		enum();
	labelFunc06F0_0059:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc06F0_007A);
		if(!(Func0906(var0007) == 0x0001)) goto labelFunc06F0_0077;
		var0007;
		calle();
	labelFunc06F0_0077:
		goto labelFunc06F0_0059;
	labelFunc06F0_007A:
		var0004 = UI_find_nearby_41(item, 0x0178, 0x0014, 0x0000);
		enum();
	labelFunc06F0_008C:
		for (var0007 in var0004 with var0008 to var0009 atend labelFunc06F0_00AD);
		if(!(Func0906(var0007) == 0x0001)) goto labelFunc06F0_00AA;
		var0007;
		calle();
	labelFunc06F0_00AA:
		goto labelFunc06F0_008C;
	labelFunc06F0_00AD:
		var0004 = UI_find_nearby_41(item, 0x01B1, 0x0014, 0x0000);
		enum();
	labelFunc06F0_00BF:
		for (var0007 in var0004 with var000A to var000B atend labelFunc06F0_00E0);
		if(!(Func0906(var0007) == 0x0001)) goto labelFunc06F0_00DD;
		var0007;
		calle();
	labelFunc06F0_00DD:
		goto labelFunc06F0_00BF;
	labelFunc06F0_00E0:
		var0004 = UI_find_nearby_41(item, 0x01B0, 0x0014, 0x0000);
		enum();
	labelFunc06F0_00F2:
		for (var0007 in var0004 with var000C to var000D atend labelFunc06F0_0113);
		if(!(Func0906(var0007) == 0x0001)) goto labelFunc06F0_0110;
		var0007;
		calle();
	labelFunc06F0_0110:
		goto labelFunc06F0_00F2;
	labelFunc06F0_0113:
		var0004 = (UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000) & (UI_find_nearby_41(item, 0x0178, 0x0014, 0x0000) & (UI_find_nearby_41(item, 0x01B1, 0x0014, 0x0000) & UI_find_nearby_41(item, 0x01B0, 0x0014, 0x0000))));
		enum();
	labelFunc06F0_0152:
		for (var0007 in var0004 with var000E to var000F atend labelFunc06F0_0169);
		Func0907(var0007, 0x0002);
		goto labelFunc06F0_0152;
	labelFunc06F0_0169:
		goto labelFunc06F0_01CF;
	labelFunc06F0_016C:
		var0004 = (UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000) & (UI_find_nearby_41(item, 0x0178, 0x0014, 0x0000) & (UI_find_nearby_41(item, 0x01B1, 0x0014, 0x0000) & UI_find_nearby_41(item, 0x01B0, 0x0014, 0x0000))));
		enum();
	labelFunc06F0_01AB:
		for (var0007 in var0004 with var0010 to var0011 atend labelFunc06F0_01CF);
		if(!(Func0906(var0007) == 0x0002)) goto labelFunc06F0_01CC;
		Func0907(var0007, 0x0000);
	labelFunc06F0_01CC:
		goto labelFunc06F0_01AB;
	labelFunc06F0_01CF:
		var0012 = UI_find_nearby_41(item, 0x00C8, 0x003C, 0x00B0);
		enum();
	labelFunc06F0_01E1:
		for (var0015 in var0012 with var0013 to var0014 atend labelFunc06F0_0231);
		if(!(UI_get_item_frame_1A(var0015) == 0x0001)) goto labelFunc06F0_022E;
		if(!(!var0000)) goto labelFunc06F0_0219;
		var0016 = UI_execute_usecode_array_01(var0015, [0x49, 0x0002, 0x0014]);
		goto labelFunc06F0_022E;
	labelFunc06F0_0219:
		var0016 = UI_execute_usecode_array_01(var0015, [0x49, 0x0007, 0x0000]);
	labelFunc06F0_022E:
		goto labelFunc06F0_01E1;
	labelFunc06F0_0231:
		return;
}
Func06F1 0x6F1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = false;
	var0001 = UI_find_nearby_41(item, 0x02B0, 0x000A, 0x0000);
	if(!var0001) goto labelFunc06F1_00CD;
	enum();
	labelFunc06F1_001C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06F1_0070);
		if(!(UI_get_item_frame_1A(var0004) == 0x0004)) goto labelFunc06F1_006D;
		var0005 = UI_get_object_position_20(var0004);
		var0006 = UI_get_object_position_20(item);
		if(!((var0006[0x0002] == var0005[0x0002]) && ((var0006[0x0001] + 0x0008) == var0005[0x0001]))) goto labelFunc06F1_006D;
		var0000 = true;
	labelFunc06F1_006D:
		goto labelFunc06F1_001C;
	labelFunc06F1_0070:
		if(!var0000) goto labelFunc06F1_00CD;
		var0001 = UI_find_nearby_41(item, 0x02C3, 0x0003, 0x0000);
		enum();
	labelFunc06F1_0088:
		for (var0004 in var0001 with var0007 to var0008 atend labelFunc06F1_00CD);
		if(!(UI_get_item_quality_1C(var0004) == 0x003D)) goto labelFunc06F1_00CA;
		var0009 = UI_get_party_list_2B();
		enum();
	labelFunc06F1_00A9:
		for (var000C in var0009 with var000A to var000B atend labelFunc06F1_00CA);
		UI_move_object_4B(var000C, [0x00D3, 0x036E, 0x0000]);
		goto labelFunc06F1_00A9;
	labelFunc06F1_00CA:
		goto labelFunc06F1_0088;
	labelFunc06F1_00CD:
		return;
}
Func06F3 0x6F3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!gflags[0004]) goto labelFunc06F3_000C;
	UI_remove_item_84(item);
	abrt();
	labelFunc06F3_000C:
		var0000 = UI_find_nearby_41(item, 0x00E4, 0x001E, 0x0000);
		enum();
	labelFunc06F3_001E:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06F3_003B);
		if(!(UI_get_npc_id_BC(var0003) == 0x0009)) goto labelFunc06F3_0038;
		abrt();
	labelFunc06F3_0038:
		goto labelFunc06F3_001E;
	labelFunc06F3_003B:
		var0004 = UI_get_object_position_20(item);
		var0005 = UI_create_new_object2_2D(0x00E4, var0004);
		var0006 = UI_get_cont_items_33(var0005, 0x025B, 0xFE99, 0xFE99);
		enum();
	labelFunc06F3_0064:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc06F3_0087);
		if(!(UI_get_item_shape_18(var0009) == 0x025B)) goto labelFunc06F3_0084;
		UI_remove_item_84(var0009);
	labelFunc06F3_0084:
		goto labelFunc06F3_0064;
	labelFunc06F3_0087:
		var000A = UI_add_cont_items_36(var0005, 0x0001, 0x0259, 0x0000, 0x0000, true);
		var000A = UI_set_npc_prop_29(var0005, 0x0002, 0x000A);
		UI_set_npc_id_BD(var0005, 0x0009);
		UI_set_schedule_type_25(var0005, 0x0000);
		UI_set_schedule_type_25(var0005, 0x0010);
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func06F4 0x6F4 (var var0000)
{
	var var0001;

	if(!gflags[0045]) goto labelFunc06F4_000B;
	UI_remove_item_84(item);
	labelFunc06F4_000B:
		if(!gflags[00C0]) goto labelFunc06F4_0021;
		var0000 = Func0992(0x0001, "@Wait! A bottle!@", "@This bottle could be a clue...@", true);
	labelFunc06F4_0021:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06F5 0x6F5 (var var0000)
{
	var var0001;

	if(!((!gflags[0060]) || (gflags[0061] || (UI_npc_nearby_3A(Shamino) && (UI_npc_nearby_3A(Dupre) && UI_npc_nearby_3A(Iolo)))))) goto labelFunc06F5_0024;
	abrt();
	labelFunc06F5_0024:
		var0000 = UI_approach_avatar_BF(0xFF2D, 0x0050, 0x0028);
		UI_play_sound_effect_16(0x0051);
		Func097F(0xFF2D, "@Avatar!@", 0x0005);
		UI_set_schedule_type_25(0xFF2D, 0x0003);
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func06F6 0x6F6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_object_position_20(item);
	if(!(event == 0x0003)) goto labelFunc06F6_016F;
	var0001 = UI_get_item_quality_1C(item);
	UI_sprite_effect_68(0x000D, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	if(!(var0001 == 0x0000)) goto labelFunc06F6_0048;
	UI_error_message_40("Egg quality not set.");
	labelFunc06F6_0048:
		if(!(var0001 == 0x0001)) goto labelFunc06F6_0089;
		var0002 = UI_create_new_object2_2D(0x016B, var0000);
		if(!var0002) goto labelFunc06F6_006B;
		Func09AD(var0002);
	labelFunc06F6_006B:
		var0002 = UI_set_item_quality_1D(item, 0x0003);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x06F6], 0x000A);
	labelFunc06F6_0089:
		if(!(var0001 == 0x0002)) goto labelFunc06F6_00C4;
		var0003 = UI_create_new_object2_2D(0x01F5, var0000);
		if(!var0003) goto labelFunc06F6_00C4;
		UI_set_alignment_4A(var0003, 0x0002);
		UI_set_schedule_type_25(var0003, 0x0000);
		UI_set_opponent_5B(var0003, 0xFE9C);
	labelFunc06F6_00C4:
		if(!(var0001 == 0x0003)) goto labelFunc06F6_011B;
		var0000[0x0002] = (var0000[0x0002] - 0x000A);
		UI_sprite_effect_68(0x000D, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_create_new_object2_2D(0x016B, var0000);
		if(!var0002) goto labelFunc06F6_0116;
		Func09AD(var0002);
	labelFunc06F6_0116:
		UI_remove_item_84(item);
	labelFunc06F6_011B:
		var0002 = UI_find_nearby_41(item, 0x025F, 0x0014, 0x0010);
		if(!var0002) goto labelFunc06F6_016F;
		var0000 = UI_get_object_position_20(var0002);
		UI_sprite_effect_68(0x000D, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_execute_usecode_array_01(var0002, [0x23, 0x52, "@Kal Xen!@"]);
	labelFunc06F6_016F:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func06F7 0x6F7 (var var0000)
{
	var var0001;

	if(!((event == 0x0003) && UI_get_item_flag_A3(Shamino, 0x0006))) goto labelFunc06F7_003B;
	Func097F(Shamino, "@I know this place!@", 0x0002);
	UI_remove_item_84(item);
	var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x06F7], 0x000C);
	labelFunc06F7_003B:
		if(!(event == 0x0002)) goto labelFunc06F7_0096;
		UI_clear_item_say_4E(Shamino);
		UI_show_npc_face0_05(Shamino, 0x0000);
		UcMessage("\"I never thought to see this again!\"");
		UcSay;
		UcMessage("\"Avatar, this castle thou dost see before thee was once mine home. This was once my kingdom -- And once, so long ago that mine heart alone remembers, within these walls dwelt the fairest lady who ever lived... Oh, my poor Beatrix! Left alone so very long ago...\"");
		UcSay;
		UcMessage("\"But such remorse doth do us no good now... She is long since dust, I fear, and our peril now is real. If thou wishest, I can draw thee a map of mine home, as once I knew it.\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc06F7_0086;
		UcMessage("\"I do not know what changes were made after I left, Avatar. But perhaps this will help.\"");
		UcSay;
		var0000 = Func099B(0xFE9C, 0x0001, 0x00B2, 0xFE99, 0x0004, false, true);
		goto labelFunc06F7_008A;
	labelFunc06F7_0086:
		UcMessage("\"'Tis just as well... I do not know what changes were made after I left. It probably would not help.\"");
		UcSay;
	labelFunc06F7_008A:
		UcMessage("\"I seem to recall that there was a secret entrance to the west...\"");
		UcSay;
		UcMessage("\"But that was a long time ago. I doubt that the two great trees near the illusionary mountain entrance are still there. The secret entrance would be most difficult to find should its landmarks be gone.\"");
		UcSay;
		UcMessage("\"'Tis a pity that so much hath changed without my being here...\"");
		UcSay;
	labelFunc06F7_0096:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func06FA 0x6FA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	if(!(event == 0x0003)) goto labelFunc06FA_02EB;
	var0000 = (UI_find_nearby_41(0xFE9C, 0x010F, 0x0064, 0x0000) & UI_find_nearby_41(0xFE9C, 0x0110, 0x0064, 0x0000));
	var0001 = false;
	enum();
	labelFunc06FA_0031:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc06FA_005A);
		var0005 = UI_get_object_position_20(var0004);
		if(!(var0005[0x0003] != 0x0000)) goto labelFunc06FA_0057;
		var0001 = true;
	labelFunc06FA_0057:
		goto labelFunc06FA_0031;
	labelFunc06FA_005A:
		if(!var0001) goto labelFunc06FA_02E2;
		var0006 = (UI_find_nearby_41(0xFE9C, 0x0114, 0x003C, 0x0000) & UI_find_nearby_41(0xFE9C, 0x0115, 0x003C, 0x0000));
		var0007 = (UI_find_nearby_41(0xFE9C, 0x010F, 0x003C, 0x0000) & UI_find_nearby_41(0xFE9C, 0x0110, 0x003C, 0x0000));
		enum();
	labelFunc06FA_00A9:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc06FA_0205);
		var000B = UI_get_lift_50(var000A);
		if(!(var000B == 0x0001)) goto labelFunc06FA_0109;
		var000C = UI_execute_usecode_array_01(var000A, [0x23, 0x58, 0x0059, 0x55, 0x0609]);
		enum();
	labelFunc06FA_00E2:
		for (var000F in var0006 with var000D to var000E atend labelFunc06FA_0109);
		var000C = UI_execute_usecode_array_01(var000F, [0x23, 0x46, 0x0002, 0x46, 0x0003]);
		goto labelFunc06FA_00E2;
	labelFunc06FA_0109:
		if(!(var000B == 0x0002)) goto labelFunc06FA_015C;
		var000C = UI_execute_usecode_array_01(var000A, [0x23, 0x58, 0x0059, 0x55, 0x0609, 0x0B, 0xFFFB, 0x0002]);
		enum();
	labelFunc06FA_0135:
		for (var000F in var0006 with var0010 to var0011 atend labelFunc06FA_015C);
		var000C = UI_execute_usecode_array_01(var000F, [0x23, 0x46, 0x0002, 0x46, 0x0003]);
		goto labelFunc06FA_0135;
	labelFunc06FA_015C:
		if(!(var000B == 0x0003)) goto labelFunc06FA_01AA;
		var000C = UI_execute_usecode_array_01(var000A, [0x23, 0x58, 0x0059, 0x55, 0x0609, 0x0B, 0xFFFB, 0x0003]);
		enum();
	labelFunc06FA_0188:
		for (var000F in var0006 with var0012 to var0013 atend labelFunc06FA_01AA);
		var000C = UI_execute_usecode_array_01(var000F, [0x23, 0x46, 0x0003]);
		goto labelFunc06FA_0188;
	labelFunc06FA_01AA:
		if(!(var000B == 0x0004)) goto labelFunc06FA_01D5;
		var000C = UI_execute_usecode_array_01(var000A, [0x23, 0x58, 0x0059, 0x55, 0x0609, 0x0B, 0xFFFB, 0x0003]);
	labelFunc06FA_01D5:
		enum();
	labelFunc06FA_01D6:
		for (var000F in var0006 with var0014 to var0015 atend labelFunc06FA_0202);
		var000C = UI_execute_usecode_array_01(var000F, [0x23, 0x46, 0x0002, 0x46, 0x0001, 0x46, 0x0000]);
		goto labelFunc06FA_01D6;
	labelFunc06FA_0202:
		goto labelFunc06FA_00A9;
	labelFunc06FA_0205:
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x06FA], 0x000A);
		var0016 = Func0992(0x0001, "@Look -- the gates!@", "@The gates are closing!@", true);
		UI_set_alignment_4A(0xFFAB, 0x0002);
		UI_set_item_flag_A4(0xFFAB, 0x001D);
		UI_move_object_4B(0xFFAB, [0x0723, 0x0A65]);
		UI_set_schedule_type_25(0xFFAB, 0x000F);
		UI_set_alignment_4A(0xFFA9, 0x0002);
		UI_set_item_flag_A4(0xFFA9, 0x001D);
		UI_move_object_4B(0xFFA9, [0x074C, 0x0A67]);
		UI_set_schedule_type_25(0xFFA9, 0x000F);
		UI_set_alignment_4A(0xFFA4, 0x0002);
		UI_set_item_flag_A4(0xFFA4, 0x001D);
		UI_move_object_4B(0xFFA4, [0x071B, 0x0A66]);
		UI_set_schedule_type_25(0xFFA4, 0x000F);
		UI_set_alignment_4A(0xFFA3, 0x0002);
		UI_set_item_flag_A4(0xFFA3, 0x001D);
		UI_move_object_4B(0xFFA3, [0x0754, 0x0A64]);
		UI_set_schedule_type_25(0xFFA3, 0x000F);
	labelFunc06FA_02E2:
		gflags[0208] = true;
		UI_remove_item_84(item);
	labelFunc06FA_02EB:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func06FB 0x6FB (var var0000)
{
	var var0001;

	UI_play_music_39(0x0012, Func09A0(0x0005, 0x0001));
	UI_move_object_4B(0xFF35, [0x0762, 0x03ED, 0x0000]);
	UI_set_new_schedules_B6(0xFF35, 0x0000, 0x000C, [0x0762, 0x03ED]);
	UI_si_path_run_usecode_C1(0xFF35, [0x0762, 0x03F1, 0x0000], 0x000D, UI_get_npc_object_23(0xFF35), 0x04CB, false);
	UI_set_path_failure_A7(0x04CB, UI_get_npc_object_23(0xFF35), 0x000E);
	var0000 = UI_delayed_execute_usecode_array_02(0xFF35, [0x23, 0x2B, 0x000A, 0x52, "@I will steal this!@", 0x27, 0x000E, 0x59, 0x0002, 0x52, "@'Tis the Avatar!@", 0x27, 0x000A, 0x55, 0x04CB], 0x0008);
	UI_move_object_4B(0xFF34, [0x076C, 0x03E7, 0x0000]);
	UI_set_new_schedules_B6(0xFF34, 0x0000, 0x000C, [0x076C, 0x03E7]);
	UI_run_schedule_B7(0xFF34);
	Func097F(0xFF34, "@I be bored.@", 0x0003);
	UI_move_object_4B(0xFEDB, [0x0767, 0x03E4, 0x0001]);
	UI_set_schedule_type_25(0xFEDB, 0x000F);
	var0000 = UI_execute_usecode_array_01(0xFEDB, [0x23, 0x59, 0x0004]);
	return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func06FC 0x6FC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!gflags[025C]) goto labelFunc06FC_000C;
	UI_remove_item_84(item);
	abrt();
	labelFunc06FC_000C:
		if(!(!UI_npc_nearby_3A(Shamino))) goto labelFunc06FC_0018;
		abrt();
	labelFunc06FC_0018:
		UI_play_music_39(0x0038, Func09A0(0x0005, 0x0001));
		var0000 = UI_create_new_object2_2D(0x01E2, UI_get_object_position_20(item));
		UI_set_alignment_4A(var0000, 0x0001);
		UI_play_sound_effect_16(0x0039);
		var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x01A8, 0x0005, 0xFE99, 0x0012);
		var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x0359, 0x0002, 0xFE99, 0x0012);
		var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x02A4, 0x0005, 0xFE99, 0x0012);
		var0002 = UI_get_item_quality_1C(item);
		UI_remove_item_84(item);
		UI_show_npc_face0_05(0xFEE2, 0x0000);
		if(!(var0002 == 0x0000)) goto labelFunc06FC_00CC;
		UcMessage("\"So, thou didst finally think to return, King? It is too late! All are dead, the Goblins conquered all...\"");
		UcSay;
		var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x52, "@Too late!@"]);
	labelFunc06FC_00CC:
		if(!(var0002 == 0x0001)) goto labelFunc06FC_00F2;
		UcMessage("\"Here is where my body did lie, until the Goblins pillaged the tomb...\"");
		UcSay;
		UcMessage("\"I died of a broken heart, waiting for thy return...\"");
		UcSay;
		var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x52, "@Betrayer!@"]);
	labelFunc06FC_00F2:
		if(!(var0002 == 0x0002)) goto labelFunc06FC_0114;
		UcMessage("\"To think I loved thee once! I wrote thee notes of love, letters of trust -- but thou didst remember me no more, when Lord British summoned thee to his aid!\"");
		UcSay;
		var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x52, "@Damn British!@"]);
	labelFunc06FC_0114:
		if(!(var0002 > 0x0002)) goto labelFunc06FC_0136;
		UcMessage("\"Welcome to the Castle of King Shamino, the Betrayer! Let me greet thee...\"");
		UcSay;
		var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x52, "@Die, King!@"]);
	labelFunc06FC_0136:
		UI_set_alignment_4A(var0000, 0x0002);
		UI_set_schedule_type_25(var0000, 0x0000);
		UI_set_oppressor_5E(var0000, Shamino);
		UI_set_opponent_5B(var0000, 0xFE9C);
		UI_set_item_flag_A4(var0000, 0x001D);
		UI_set_item_flag_A4(var0000, 0x0012);
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x01E2], 0x0014);
		UI_set_item_flag_A4(Shamino, 0x001D);
		gflags[025B] = true;
		return;
}
// externs
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func06FD 0x6FD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x000E)) goto labelFunc06FD_0010;
	UI_set_schedule_type_25(item, 0x000C);
	labelFunc06FD_0010:
		if(!(event == 0x000D)) goto labelFunc06FD_0075;
		UI_set_schedule_type_25(0xFFAC, 0x000F);
		var0000 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFAC, [0x0722, 0x0273, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x0722, 0x0273, 0x0000, 0x0000, 0x000F, Iolo);
	labelFunc06FD_0075:
		if(!(event == 0x0002)) goto labelFunc06FD_00F1;
		var0000 = UI_get_object_position_20(item);
		if(!((UI_get_schedule_type_24(item) == 0x000F) || (UI_get_schedule_type_24(item) == 0x0018))) goto labelFunc06FD_009C;
		abrt();
	labelFunc06FD_009C:
		UI_set_schedule_type_25(0xFFAC, 0x000F);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFFAC, [0x0722, 0x0273, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x0722, 0x0273, 0x0000, 0x0000, 0x000F, Iolo);
	labelFunc06FD_00F1:
		if(!(event == 0x0003)) goto labelFunc06FD_0253;
		var0001 = UI_find_nearby_41(0xFE9C, 0x02EC, 0x000C, 0x0000);
		enum();
	labelFunc06FD_010D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc06FD_012C);
		if(!(UI_get_item_frame_1A(var0004) == 0x000A)) goto labelFunc06FD_0129;
		goto labelFunc06FD_0130;
	labelFunc06FD_0129:
		goto labelFunc06FD_010D;
	labelFunc06FD_012C:
		var0004 = false;
	labelFunc06FD_0130:
		if(!var0004) goto labelFunc06FD_0253;
		UI_remove_item_84(var0004);
		if(!gflags[0229]) goto labelFunc06FD_024F;
		if(!gflags[022A]) goto labelFunc06FD_0248;
		if(!((UI_get_schedule_type_24(0xFFAC) != 0x000F) || UI_get_item_flag_A3(0xFFAC, 0x001E))) goto labelFunc06FD_0163;
		abrt();
	labelFunc06FD_0163:
		UI_set_npc_id_BD(0xFFAC, 0x000D);
		var0000 = UI_get_object_position_20(0xFFAC);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0000 = UI_get_object_position_20(item);
		UI_move_object_4B(0xFFAC, [(var0000[0x0001] - 0x0004), var0000[0x0002], 0x0000]);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0004), var0000[0x0002], 0x0000, 0x0000, 0x000F, Iolo);
		var0005 = UI_execute_usecode_array_01(0xFFAC, [0x23, 0x27, 0x003C, 0x55, 0x06FD]);
		UI_set_alignment_4A(0xFFAC, 0x0003);
		UI_set_npc_id_BD(0xFFAC, 0x000D);
		Func09AC(0xFFAC, (var0000[0x0001] - 0x0004), var0000[0x0002], 0x000C);
		UI_si_path_run_usecode_C1(0xFFAC, [0x071E, 0x0277, 0x0000], 0x000D, UI_get_npc_object_23(0xFFAC), 0x06FD, false);
		goto labelFunc06FD_024C;
	labelFunc06FD_0248:
		gflags[022A] = true;
	labelFunc06FD_024C:
		goto labelFunc06FD_0253;
	labelFunc06FD_024F:
		gflags[0229] = true;
	labelFunc06FD_0253:
		return;
}
Func06FE 0x6FE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(!UI_get_item_flag_A3(0xFE9C, 0x0023))) goto labelFunc06FE_0011;
	goto labelFunc06FE_0045;
	labelFunc06FE_0011:
		var0000 = UI_get_party_list_2B();
		enum();
	labelFunc06FE_0019:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc06FE_0044);
		if(!((UI_get_item_shape_18(var0003) != 0x02EB) && (var0003 != UI_get_npc_object_23(0xFE9C)))) goto labelFunc06FE_0041;
		goto labelFunc06FE_0045;
	labelFunc06FE_0041:
		goto labelFunc06FE_0019;
	labelFunc06FE_0044:
		abrt();
	labelFunc06FE_0045:
		var0004 = UI_find_nearby_41(0xFE9C, 0x02EC, 0x000C, 0x0000);
		enum();
	labelFunc06FE_0059:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc06FE_0076);
		if(!(UI_get_item_frame_1A(var0007) == 0x000A)) goto labelFunc06FE_0073;
		exit2();
	labelFunc06FE_0073:
		goto labelFunc06FE_0059;
	labelFunc06FE_0076:
		var0004 = UI_create_new_object_2C(0x02EC);
		if(!var0004) goto labelFunc06FE_00A3;
		UI_set_item_frame_1B(var0004, 0x000A);
		var0008 = UI_update_last_created_2F([0x071D, 0x0279, 0x0000]);
	labelFunc06FE_00A3:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func0924 0x924 (var var0000, var var0001);

Func06FF 0x6FF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(!gflags[0208])) goto labelFunc06FF_0008;
	abrt();
	labelFunc06FF_0008:
		var0000 = UI_get_item_quality_1C(item);
		if(!(var0000 == 0x0045)) goto labelFunc06FF_002E;
		if(!(!(gflags[0209] && (gflags[020A] && (gflags[020B] && gflags[020C]))))) goto labelFunc06FF_002E;
		abrt();
	labelFunc06FF_002E:
		var0001 = ("@Uh oh...@" & ("@Something is coming!@" & ("@I hear something...@" & ("@What was that?@" & ("@Oh, no!@" & "@Hark!@")))));
		var0002 = Func0992(0x0001, var0001[UI_get_random_00(UI_get_array_size_73(var0001))], var0001[UI_get_random_00(UI_get_array_size_73(var0001))], true);
		var0001 = UI_find_nearby_41(item, 0x036C, 0x0064, 0x0000);
		enum();
	labelFunc06FF_0080:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc06FF_00A5);
		if(!(UI_get_item_quality_1C(var0005) == var0000)) goto labelFunc06FF_00A2;
		Func0924(var0005, 0x0001);
	labelFunc06FF_00A2:
		goto labelFunc06FF_0080;
	labelFunc06FF_00A5:
		var0001 = false;
		if(!(var0000 == 0x0041)) goto labelFunc06FF_00B9;
		var0001 = 0xFFA4;
	labelFunc06FF_00B9:
		if(!(var0000 == 0x0042)) goto labelFunc06FF_00C9;
		var0001 = 0xFFAB;
	labelFunc06FF_00C9:
		if(!(var0000 == 0x0043)) goto labelFunc06FF_00D9;
		var0001 = 0xFFA9;
	labelFunc06FF_00D9:
		if(!(var0000 == 0x0044)) goto labelFunc06FF_00E9;
		var0001 = 0xFFA3;
	labelFunc06FF_00E9:
		if(!var0001) goto labelFunc06FF_014B;
		UI_set_new_schedules_B6(var0001, 0x0000, 0x0000, [0x0733, 0x0A79]);
		var0006 = UI_get_object_position_20(var0001);
		UI_si_path_run_usecode_C1(var0001, [var0006[0x0001], (var0006[0x0002] + 0x000F), 0x0000], 0x000D, UI_get_npc_object_23(var0001), 0x0455, true);
		UI_set_path_failure_A7(0x0455, UI_get_npc_object_23(var0001), 0x000E);
	labelFunc06FF_014B:
		UI_remove_item_84(item);
		return;
}
// externs
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0700 0x700 (var var0000)
{
	if(!(gflags[00EA] && (!gflags[00EB]))) goto labelFunc0700_003A;
	if(!UI_get_item_flag_A3(0xFFE7, 0x0004)) goto labelFunc0700_001F;
	gflags[00EB] = true;
	goto labelFunc0700_003A;
	labelFunc0700_001F:
		Func09AC(0xFFE7, Dupre, 0x0000, 0x0003);
		Func097F(0xFFE7, "@Who doth approach?!@", 0x0003);
	labelFunc0700_003A:
		return;
}
// externs
extern Func0922 0x922 (var var0000);

Func0701 0x701 (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0002)) goto labelFunc0701_000E;
	Func0922(0x0003);
	labelFunc0701_000E:
		if(!(event == 0x0003)) goto labelFunc0701_0113;
		if(!(!gflags[0004])) goto labelFunc0701_001E;
		abrt();
	labelFunc0701_001E:
		var0000 = UI_create_new_object_2C(0x0392);
		UI_set_item_frame_1B(var0000, 0x0000);
		var0001 = UI_set_item_quality_1D(var0000, 0x0049);
		if(!UI_is_not_blocked_A0([0x0333, 0x0A2E, 0x0001], 0x0392, 0x0000)) goto labelFunc0701_006E;
		var0001 = UI_update_last_created_2F([0x0333, 0x0A2E, 0x0001]);
		goto labelFunc0701_010E;
	labelFunc0701_006E:
		if(!UI_is_not_blocked_A0([0x032D, 0x0A2F, 0x0002], 0x0392, 0x0000)) goto labelFunc0701_009D;
		var0001 = UI_update_last_created_2F([0x032D, 0x0A2F, 0x0002]);
		goto labelFunc0701_010E;
	labelFunc0701_009D:
		if(!UI_is_not_blocked_A0([0x032B, 0x0A2F, 0x0002], 0x0392, 0x0000)) goto labelFunc0701_00CC;
		var0001 = UI_update_last_created_2F([0x032B, 0x0A2F, 0x0002]);
		goto labelFunc0701_010E;
	labelFunc0701_00CC:
		if(!UI_is_not_blocked_A0([0x0339, 0x0A2F, 0x0002], 0x0392, 0x0000)) goto labelFunc0701_00FB;
		var0001 = UI_update_last_created_2F([0x0339, 0x0A2F, 0x0002]);
		goto labelFunc0701_010E;
	labelFunc0701_00FB:
		var0001 = UI_update_last_created_2F([0x032D, 0x0A32, 0x0000]);
	labelFunc0701_010E:
		UI_remove_item_84(item);
	labelFunc0701_0113:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0702 0x702 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(UI_get_item_flag_A3(0xFFE1, 0x0004) && (event == 0x0003))) goto labelFunc0702_0019;
	UI_remove_item_84(item);
	abrt();
	labelFunc0702_0019:
		if(!(event == 0x0003)) goto labelFunc0702_009E;
		var0000 = UI_find_nearby_41(item, 0x016B, 0x001E, 0x0000);
		var0001 = (0x0006 - UI_get_array_size_73(var0000));
	labelFunc0702_0040:
		if(!(var0001 > 0x0000)) goto labelFunc0702_009E;
		var0002 = UI_create_new_object2_2D(0x016B, [(0x0865 + UI_get_random_00(0x0013)), 0x083B, 0x0000]);
		if(!var0002) goto labelFunc0702_009B;
		if(!gflags[0148]) goto labelFunc0702_007D;
		Func09AD(var0002);
		goto labelFunc0702_0091;
	labelFunc0702_007D:
		UI_set_schedule_type_25(var0002, 0x0007);
		UI_set_alignment_4A(var0002, 0x0000);
	labelFunc0702_0091:
		var0001 = (var0001 - 0x0001);
	labelFunc0702_009B:
		goto labelFunc0702_0040;
	labelFunc0702_009E:
		if(!gflags[0148]) goto labelFunc0702_00BA;
		Func097F(0xFFE1, "@Aha!@", 0x0000);
		UI_set_schedule_type_25(0xFFE1, 0x0000);
	labelFunc0702_00BA:
		if(!((UI_get_schedule_type_24(0xFFE1) == 0x0000) || (UI_get_schedule_type_24(0xFFE1) == 0x0003))) goto labelFunc0702_00D5;
		abrt();
	labelFunc0702_00D5:
		UI_clear_item_say_4E(0xFFE1);
		var0003 = UI_get_random_00(0x0006);
		if(!(var0003 == 0x0001)) goto labelFunc0702_00FC;
		Func097F(0xFFE1, "@Tell me!@", 0x0000);
	labelFunc0702_00FC:
		if(!(var0003 == 0x0002)) goto labelFunc0702_0112;
		Func097F(0xFFE1, "@Bring tongs!@", 0x0000);
	labelFunc0702_0112:
		if(!(var0003 == 0x0003)) goto labelFunc0702_0128;
		Func097F(0xFFE1, "@Tell me the secret!@", 0x0003);
	labelFunc0702_0128:
		if(!(var0003 == 0x0004)) goto labelFunc0702_013E;
		Func097F(0xFFE1, "@Bring the prisoner!@", 0x0000);
	labelFunc0702_013E:
		if(!(var0003 == 0x0005)) goto labelFunc0702_0154;
		Func097F(0xFFE1, "@Make him bleed.@", 0x0000);
	labelFunc0702_0154:
		if(!(var0003 == 0x0006)) goto labelFunc0702_016A;
		Func097F(0xFFE1, "@Torture him...@", 0x0000);
	labelFunc0702_016A:
		var0000 = UI_find_nearby_41(item, 0x016B, 0x001E, 0x0000);
		var0004 = false;
		if(!var0000) goto labelFunc0702_0263;
		var0004 = var0000[UI_get_random_00(UI_get_array_size_73(var0000))];
		UI_clear_item_say_4E(var0004);
		if(!(var0003 == 0x0001)) goto labelFunc0702_01BE;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Or die!@"], 0x0005);
	labelFunc0702_01BE:
		if(!(var0003 == 0x0002)) goto labelFunc0702_01DF;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Yes, Rotoluncia!@"], 0x0005);
	labelFunc0702_01DF:
		if(!(var0003 == 0x0003)) goto labelFunc0702_0200;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Tell about Daemons!@"], 0x0005);
	labelFunc0702_0200:
		if(!(var0003 == 0x0004)) goto labelFunc0702_0221;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Let me do it!@"], 0x0002);
	labelFunc0702_0221:
		if(!(var0003 == 0x0005)) goto labelFunc0702_0242;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@I'm thirsty...@"], 0x0007);
	labelFunc0702_0242:
		if(!(var0003 == 0x0006)) goto labelFunc0702_0263;
		var0002 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Then kill him!@"], 0x0004);
	labelFunc0702_0263:
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0702], (UI_get_random_00(0x000F) + 0x000A));
		return;
}
Func0703 0x703 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_object_position_20(item);
	if(!(event == 0x0003)) goto labelFunc0703_0057;
	var0001 = UI_create_new_object2_2D(0x014E, var0000);
	if(!var0001) goto labelFunc0703_0034;
	UI_set_polymorph_B3(var0001, 0x014E);
	UI_remove_item_84(var0001);
	labelFunc0703_0034:
		var0002 = UI_find_nearby_avatar_3C(0x014E);
		enum();
	labelFunc0703_003F:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0703_0057);
		UI_clear_item_flag_A5(var0005, 0x0020);
		goto labelFunc0703_003F;
	labelFunc0703_0057:
		return;
}
Func0705 0x705 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = 0x0000;
	var0001 = 0x0000;
	var0002 = UI_find_nearby_41(item, 0x0281, 0x0002, 0x0000);
	enum();
	labelFunc0705_001E:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0705_0054);
		if(!(UI_get_item_frame_1A(var0005) == 0x0015)) goto labelFunc0705_003D;
		var0000 = var0005;
	labelFunc0705_003D:
		if(!(UI_get_item_frame_1A(var0005) == 0x0016)) goto labelFunc0705_0051;
		var0001 = var0005;
	labelFunc0705_0051:
		goto labelFunc0705_001E;
	labelFunc0705_0054:
		if(!(var0000 && var0001)) goto labelFunc0705_0140;
		var0006 = UI_get_object_position_20(var0000);
		UI_play_sound_effect_16(0x0074);
		var0006[0x0001] = (var0006[0x0001] - (var0006[0x0003] / 0x0002));
		var0006[0x0002] = (var0006[0x0002] - (var0006[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0011, (var0006[0x0001] - 0x0002), (var0006[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001B, (var0006[0x0001] - 0x0003), (var0006[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_get_object_position_20(var0000);
		if(!var0000) goto labelFunc0705_0102;
		UI_remove_item_84(var0000);
	labelFunc0705_0102:
		if(!var0001) goto labelFunc0705_010F;
		UI_remove_item_84(var0001);
	labelFunc0705_010F:
		var0007 = UI_create_new_object_2C(0x0281);
		if(!var0007) goto labelFunc0705_0140;
		UI_set_item_frame_1B(var0007, 0x0017);
		var0008 = UI_set_item_quality_1D(var0007, 0x008B);
		var0008 = UI_update_last_created_2F(var0006);
	labelFunc0705_0140:
		return;
}
Func0706 0x706 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_party_list_2B();
	if(!in(0xFFE6, var0000)) goto labelFunc0706_006F;
	var0001 = UI_get_object_position_20(0xFFE6);
	var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
	var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
	UI_remove_npc_4C(0xFFE6);
	UI_sprite_effect_68(0x0011, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0706_006F:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func0204 0x204 (var var0000);
extern Func00E1 0xE1 (var var0000);
extern Func0178 0x178 (var var0000);
extern Func010E 0x10E (var var0000);
extern Func01B1 0x1B1 (var var0000);
extern Func01B0 0x1B0 (var var0000);

Func0707 0x707 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x00B0));
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x01B1, 0x000A, 0x00B0));
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x01B0, 0x000A, 0x00B0));
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x0204, 0x000A, 0x00B0));
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x00E1, 0x000A, 0x00B0));
	enum();
	labelFunc0707_0087:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0707_0131);
		if(!(UI_get_item_quality_1C(var0003) == 0x00D9)) goto labelFunc0707_012E;
		if(!(Func0906(var0003) == 0x0002)) goto labelFunc0707_012E;
		Func0907(var0003, 0x0000);
		if(!(UI_get_item_shape_18(var0003) == 0x0204)) goto labelFunc0707_00CA;
		var0003;
		calle();
	labelFunc0707_00CA:
		if(!(UI_get_item_shape_18(var0003) == 0x00E1)) goto labelFunc0707_00DE;
		var0003;
		calle();
	labelFunc0707_00DE:
		if(!(UI_get_item_shape_18(var0003) == 0x0178)) goto labelFunc0707_00F2;
		var0003;
		calle();
	labelFunc0707_00F2:
		if(!(UI_get_item_shape_18(var0003) == 0x010E)) goto labelFunc0707_0106;
		var0003;
		calle();
	labelFunc0707_0106:
		if(!(UI_get_item_shape_18(var0003) == 0x01B1)) goto labelFunc0707_011A;
		var0003;
		calle();
	labelFunc0707_011A:
		if(!(UI_get_item_shape_18(var0003) == 0x01B0)) goto labelFunc0707_012E;
		var0003;
		calle();
	labelFunc0707_012E:
		goto labelFunc0707_0087;
	labelFunc0707_0131:
		return;
}
// externs
extern Func0922 0x922 (var var0000);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0709 0x709 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0001)) goto labelFunc0709_004B;
	var0001 = UI_find_nearby_41(item, 0x0106, 0x0002, 0x0000);
	if(!var0001) goto labelFunc0709_0044;
	var0002 = UI_get_item_frame_1A(var0001);
	if(!(var0002 == 0x0003)) goto labelFunc0709_0041;
	gflags[023E] = true;
	labelFunc0709_0041:
		goto labelFunc0709_0048;
	labelFunc0709_0044:
		gflags[023E] = false;
	labelFunc0709_0048:
		goto labelFunc0709_00C5;
	labelFunc0709_004B:
		var0003 = UI_find_nearby_41(item, 0x0392, 0x0002, 0x0000);
		if(!var0003) goto labelFunc0709_007A;
		var0000 = UI_get_item_quality_1C(var0003);
		if(!(var0000 == 0x0001)) goto labelFunc0709_007A;
		gflags[0242] = true;
	labelFunc0709_007A:
		var0004 = UI_find_nearby_41(item, 0x01BD, 0x0002, 0x0000);
		if(!var0004) goto labelFunc0709_00C5;
		var0002 = UI_get_item_frame_1A(var0004);
		if(!(var0002 == 0x0005)) goto labelFunc0709_00A9;
		gflags[0241] = true;
	labelFunc0709_00A9:
		if(!(var0002 == 0x0006)) goto labelFunc0709_00B7;
		gflags[0240] = true;
	labelFunc0709_00B7:
		if(!(var0002 == 0x0007)) goto labelFunc0709_00C5;
		gflags[023F] = true;
	labelFunc0709_00C5:
		if(!(gflags[023E] && (gflags[0242] && (gflags[0240] && (gflags[0241] && gflags[023F]))))) goto labelFunc0709_010A;
		Func0922(0x0019);
		UI_show_npc_face0_05(0xFF29, 0x0000);
		UcMessage("\"I am Xenka. Thou must take this Serpent Sword and go to Sunrise Isle.\"");
		UcSay;
		var0005 = Func099B(0xFE9C, 0x0001, 0x02C6, 0x0000, 0x0000, false, true);
		UI_remove_npc_face0_07();
	labelFunc0709_010A:
		return;
}
Func070A 0x70A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!UI_get_item_flag_A3(0xFE9C, 0x0023)) goto labelFunc070A_0131;
	if(!gflags[0228]) goto labelFunc070A_0033;
	var0000 = UI_set_npc_prop_29(0xFFE4, 0x000A, 0x0001);
	var0000 = UI_set_npc_prop_29(0xFE9C, 0x000A, 0x0000);
	labelFunc070A_0033:
		UI_set_polymorph_B3(0xFFE4, 0x0292);
		UI_set_polymorph_B3(0xFE9C, 0x02D1);
		var0001 = UI_get_object_position_20(0xFE9C);
		var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
		var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
		var0002 = UI_die_roll_17(0x0000, 0x0003);
		UI_UNKNOWN_72();
		UI_sprite_effect_68(0x002B, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, var0002, 0x0001);
		if(!UI_npc_nearby_3A(0xFFE4)) goto labelFunc070A_011D;
		var0001 = UI_get_object_position_20(0xFFE4);
		var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
		var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
		var0002 = UI_die_roll_17(0x0000, 0x0003);
		UI_sprite_effect_68(0x002B, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, var0002, 0x0001);
	labelFunc070A_011D:
		UI_clear_item_flag_A5(0xFE9C, 0x0023);
		UI_clear_item_flag_A5(0xFFE4, 0x001D);
	labelFunc070A_0131:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func070B 0x70B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc070B_0043;
	var0000 = UI_find_nearby_41(item, 0x034D, 0x0014, 0x0000);
	if(!var0000) goto labelFunc070B_0043;
	var0001 = Func0992(0x0001, "There hath not been a jail made yet that can hold me!", "I am glad to be out of there!", false);
	var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x034D]);
	labelFunc070B_0043:
		return;
}
// externs
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();

Func070D 0x70D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
	if(!var0000) goto labelFunc070D_0099;
	if(!(UI_get_item_frame_1A(var0000) == 0x0010)) goto labelFunc070D_0099;
	var0001 = UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000);
	enum();
	labelFunc070D_0037:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc070D_0099);
		if(!(UI_get_item_quality_1C(var0004) == 0x0056)) goto labelFunc070D_0096;
		if(!Func0908(var0004, 0x0178, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc070D_0093;
		Func0909(var0004, 0x01B0, 0x0000, 0x0002, 0x01B1, 0x0001, Iolo, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0020, var0004);
		goto labelFunc070D_0096;
	labelFunc070D_0093:
		Func0903();
	labelFunc070D_0096:
		goto labelFunc070D_0037;
	labelFunc070D_0099:
		return;
}
Func070E 0x70E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
	if(!var0000) goto labelFunc070E_0079;
	var0001 = UI_set_last_created_2E(var0000);
	var0002 = UI_get_object_position_20(item);
	var0001 = UI_update_last_created_2F(var0002);
	if(!(UI_get_item_frame_1A(var0000) == 0x000E)) goto labelFunc070E_0079;
	var0003 = UI_find_nearby_41(item, 0x0113, 0x0004, 0x0010);
	enum();
	labelFunc070E_0053:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc070E_0079);
		if(!(UI_get_item_quality_1C(var0006) == 0x000D)) goto labelFunc070E_0076;
		UI_remove_item_84(var0006);
		goto labelFunc070E_0079;
	labelFunc070E_0076:
		goto labelFunc070E_0053;
	labelFunc070E_0079:
		return;
}
Func070F 0x70F (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_find_nearby_41(item, 0x00C8, 0x000F, 0x0010);
	if(!var0000) goto labelFunc070F_0029;
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x48], 0x0003);
	labelFunc070F_0029:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0710 0x710 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_get_party_list_2B();
	var0001 = 0x001E;
	var0002 = 0xFE9C;
	enum();
	labelFunc0710_0014:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc0710_00A3);
		var0006 = UI_get_distance_21(var0005, item);
		if(!(var0006 < var0001)) goto labelFunc0710_00A0;
		if(!UI_get_item_flag_A3(0xFE9C, 0x0023)) goto labelFunc0710_0072;
		if(!((var0005 != 0xFE9C) && ((var0005 != UI_get_npc_object_23(0xFE9C)) && (UI_get_item_shape_18(var0005) != 0x02EB)))) goto labelFunc0710_006F;
		var0001 = var0006;
		var0002 = var0005;
	labelFunc0710_006F:
		goto labelFunc0710_00A0;
	labelFunc0710_0072:
		if(!((var0005 != 0xFFE4) && ((var0005 != UI_get_npc_object_23(0xFFE4)) && (UI_get_item_shape_18(var0005) != 0x02EB)))) goto labelFunc0710_00A0;
		var0001 = var0006;
		var0002 = var0005;
	labelFunc0710_00A0:
		goto labelFunc0710_0014;
	labelFunc0710_00A3:
		if(!(var0002 != 0xFE9C)) goto labelFunc0710_00BA;
		UI_reduce_health_87(var0002, 0x0005, 0x0005);
	labelFunc0710_00BA:
		gflags[0226] = true;
		if(!(UI_die_roll_17(0x0001, 0x0003) == 0x0002)) goto labelFunc0710_00DF;
		var0007 = Func0992(0xFFE4, "@Acid!@", "@Acid!@", true);
	labelFunc0710_00DF:
		var0008 = UI_get_object_position_20(var0002);
		var0009 = UI_create_new_object_2C(0x0390);
		if(!var0009) goto labelFunc0710_010D;
		UI_set_item_frame_1B(var0009, 0x0018);
		var0007 = UI_update_last_created_2F(var0008);
	labelFunc0710_010D:
		return;
}
Func0711 0x711 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
	if(!var0000) goto labelFunc0711_00EB;
	var0001 = UI_set_last_created_2E(var0000);
	var0002 = UI_get_object_position_20(item);
	var0001 = UI_update_last_created_2F(var0002);
	if(!(UI_get_item_frame_1A(var0000) == 0x000F)) goto labelFunc0711_00EB;
	var0003 = UI_find_nearby_41(item, 0x00A0, 0x000F, 0x0000);
	var0004 = true;
	enum();
	labelFunc0711_0057:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0711_008E);
		var0008 = UI_get_object_position_20(var0007);
		if(!((var0008[0x0001] == 0x0704) && (var0008[0x0002] == 0x0278))) goto labelFunc0711_008B;
		var0004 = false;
		goto labelFunc0711_008E;
	labelFunc0711_008B:
		goto labelFunc0711_0057;
	labelFunc0711_008E:
		if(!var0004) goto labelFunc0711_00EB;
		var0009 = UI_create_new_object_2C(0x00A0);
		if(!var0009) goto labelFunc0711_00EB;
		UI_clear_item_flag_A5(var0009, 0x0012);
		UI_set_item_frame_1B(var0009, 0x0008);
		UI_sprite_effect_68(0x002F, 0x0702, 0x0276, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x006C);
		var0001 = UI_update_last_created_2F([0x0704, 0x0278, 0x0000]);
	labelFunc0711_00EB:
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		return;
}
// externs
extern Func01D1 0x1D1 (var var0000);

Func0714 0x714 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 != 0x00DE)) goto labelFunc0714_002F;
	if(!UI_find_nearby_41(0xFE9C, 0x01D1, Dupre, 0x00B0)) goto labelFunc0714_002F;
	UI_get_npc_object_23(Iolo);
	calle();
	labelFunc0714_002F:
		if(!(var0000 == 0x00DE)) goto labelFunc0714_0063;
		if(!(!gflags[0004])) goto labelFunc0714_0063;
		var0001 = UI_create_new_object2_2D(0x00E4, UI_get_object_position_20(item));
		UI_set_npc_id_BD(var0001, 0x001E);
		UI_set_schedule_type_25(var0001, 0x0001);
	labelFunc0714_0063:
		return;
}
// externs
extern Func060F 0x60F (var var0000);

Func0715 0x715 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 != 0x00E0)) goto labelFunc0715_003A;
	var0001 = UI_find_nearby_41(0xFE9C, 0x01E9, Dupre, 0x00B0);
	enum();
	labelFunc0715_0026:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0715_003A);
		var0004;
		calle();
		goto labelFunc0715_0026;
	labelFunc0715_003A:
		if(!(var0000 == 0x00E0)) goto labelFunc0715_0085;
		var0005 = UI_find_nearby_41(item, 0x0215, Dupre, 0x0000);
		if(!var0005) goto labelFunc0715_0085;
		var0006 = UI_create_new_object_2C(0x0281);
		if(!var0006) goto labelFunc0715_0085;
		var0007 = UI_set_item_quality_1D(var0006, 0x004D);
		var0007 = UI_give_last_created_42(var0005[0x0001]);
	labelFunc0715_0085:
		return;
}
// externs
extern Func08A6 0x8A6 ();

Func0716 0x716 (var var0000)
{
	Func08A6();
	return;
}
Func0717 0x717 (var var0000)
{
	if(!(UI_get_weather_52() == 0x0003)) goto labelFunc0717_0015;
	UI_set_weather_53(0x0000);
	goto labelFunc0717_001C;
	labelFunc0717_0015:
		UI_set_weather_53(0x0003);
	labelFunc0717_001C:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0718 0x718 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0002)) goto labelFunc0718_01D4;
	UI_show_npc_face0_05(0xFF68, 0x0000);
	UcMessage("\"I am undone -- I am outside the Temple, and now the years burden me...\"");
	UcSay;
	UcMessage("\"Take the Chaos Stone from my dead body... it shall be the token that thou needest to summon the shade...\"");
	UcSay;
	UcMessage("\"The body lies in the garden of the Temple of Enthusiasm, in the northeast by the Gate of the Serpent...\"");
	UcSay;
	UcMessage("\"Now I go into the Void!\"");
	UcSay;
	var0000 = UI_get_object_position_20(0xFF68);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_get_object_position_20(0xFF68);
	UI_remove_npc_4C(0xFF68);
	var0001 = UI_create_new_object_2C(0x019E);
	if(!var0001) goto labelFunc0718_01CA;
	UI_set_item_frame_1B(var0001, 0x0018);
	var0002 = UI_update_last_created_2F(var0000);
	if(!(!var0002)) goto labelFunc0718_00D5;
	var0002 = UI_update_last_created_2F([(var0000[0x0001] - 0x0002), var0000[0x0002], var0000[0x0003]]);
	labelFunc0718_00D5:
		if(!(!var0002)) goto labelFunc0718_00FC;
		var0002 = UI_update_last_created_2F([var0000[0x0001], (var0000[0x0002] - 0x0002), var0000[0x0003]]);
	labelFunc0718_00FC:
		if(!(!var0002)) goto labelFunc0718_0123;
		var0002 = UI_update_last_created_2F([(var0000[0x0001] + 0x0002), var0000[0x0002], var0000[0x0003]]);
	labelFunc0718_0123:
		if(!(!var0002)) goto labelFunc0718_014A;
		var0002 = UI_update_last_created_2F([var0000[0x0001], (var0000[0x0002] + 0x0002), var0000[0x0003]]);
	labelFunc0718_014A:
		if(!var0002) goto labelFunc0718_01C3;
		var0003 = UI_get_cont_items_33(0xFF68, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc0718_0164:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0718_0196);
		var0007 = UI_set_last_created_2E(var0006);
		if(!var0007) goto labelFunc0718_0193;
		UI_set_item_flag_A4(var0006, 0x000B);
		var0007 = UI_give_last_created_43(var0001);
	labelFunc0718_0193:
		goto labelFunc0718_0164;
	labelFunc0718_0196:
		if(!UI_get_cont_items_33(var0001, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0718_01C0;
		UI_clear_item_say_4E(0xFE9C);
		var0007 = Func0992(Iolo, "@Something in the ashes?@", "@Something in the ashes?@", true);
	labelFunc0718_01C0:
		goto labelFunc0718_01CA;
	labelFunc0718_01C3:
		UI_remove_item_84(var0001);
	labelFunc0718_01CA:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
	labelFunc0718_01D4:
		if(!(event == 0x0003)) goto labelFunc0718_023F;
		var0008 = UI_get_party_list2_AA();
		if(!in(UI_get_npc_object_23(0xFF68), var0008)) goto labelFunc0718_023F;
		UI_remove_from_party_27(0xFF68);
		UI_set_schedule_type_25(0xFF68, 0x000F);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0002 = UI_execute_usecode_array_01(0xFF68, [0x23, 0x52, "@The weight of the years!@", 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x6E, 0x27, 0x0002, 0x55, 0x0718]);
		UI_remove_item_84(item);
	labelFunc0718_023F:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0719 0x719 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_party_list_2B();
	var0001 = 0x0000;
	var0002 = ["Goblins!!!", "Arrgh, snakes!", "God in heaven! 'Tis Hook...", "Kill the wolves!", "Dragons!", "Pray by the virtues! 'Tis the Guardian!", "Mother Of Invention!", "Reapers by the score!", "...", "...", "...", "..."];
	enum();
	labelFunc0719_0038:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc0719_006F);
		var0001 = (var0001 + 0x0001);
		if(!(var0001 < 0x000C)) goto labelFunc0719_005D;
		var0001 = 0x0001;
	labelFunc0719_005D:
		Func097F(var0005, var0002[var0001], var0001);
		goto labelFunc0719_0038;
	labelFunc0719_006F:
		return;
}
// externs
extern Func0907 0x907 (var var0000, var var0001);

Func071A 0x71A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	if(!(event == 0x0003)) goto labelFunc071A_021C;
	var0000 = false;
	var0001 = false;
	var0002 = false;
	var0003 = false;
	var0004 = UI_find_nearby_41(item, 0x014A, 0x0008, 0x0000);
	enum();
	labelFunc071A_002A:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc071A_008C);
		var0008 = UI_get_item_frame_1A(var0007);
		var0009 = ("I see f " + var0008);
		if(!(var0008 == 0x0019)) goto labelFunc071A_0059;
		var0000 = var0007;
	labelFunc071A_0059:
		if(!(var0008 == 0x0015)) goto labelFunc071A_0069;
		var0001 = var0007;
	labelFunc071A_0069:
		if(!(var0008 == 0x0017)) goto labelFunc071A_0079;
		var0002 = var0007;
	labelFunc071A_0079:
		if(!(var0008 == 0x0018)) goto labelFunc071A_0089;
		var0003 = var0007;
	labelFunc071A_0089:
		goto labelFunc071A_002A;
	labelFunc071A_008C:
		if(!(var0000 && (var0001 && (var0002 && var0003)))) goto labelFunc071A_021C;
		var000A = UI_get_object_position_20(var0000);
		var000B = UI_get_object_position_20(var0001);
		var000C = UI_get_object_position_20(var0002);
		var000D = UI_get_object_position_20(var0003);
		var0009 = (((((((" B=" + var000A[0x0001]) + " C=") + var000B[0x0001]) + " O=") + var000C[0x0001]) + " W=") + var000D[0x0001]);
		var000E = var000A[0x0002];
		var000F = var000A[0x0002];
		if(!(var000B[0x0002] < var000F)) goto labelFunc071A_011C;
		var000F = var000B[0x0002];
	labelFunc071A_011C:
		if(!(var000C[0x0002] < var000F)) goto labelFunc071A_0132;
		var000F = var000C[0x0002];
	labelFunc071A_0132:
		if(!(var000D[0x0002] < var000F)) goto labelFunc071A_0148;
		var000F = var000D[0x0002];
	labelFunc071A_0148:
		if(!(var000B[0x0002] > var000E)) goto labelFunc071A_015E;
		var000E = var000B[0x0002];
	labelFunc071A_015E:
		if(!(var000C[0x0002] > var000E)) goto labelFunc071A_0174;
		var000E = var000C[0x0002];
	labelFunc071A_0174:
		if(!(var000D[0x0002] > var000E)) goto labelFunc071A_018A;
		var000E = var000D[0x0002];
	labelFunc071A_018A:
		var0010 = (var000E - var000F);
		if(!((var000A[0x0001] < var000B[0x0001]) && ((var000B[0x0001] < var000C[0x0001]) && ((var000C[0x0001] < var000D[0x0001]) && (var0010 < 0x0002))))) goto labelFunc071A_021C;
		var0011 = UI_find_nearby_41(item, 0x010E, 0x0008, 0x0000);
		if(!var0011) goto labelFunc071A_01E8;
		Func0907(var0011, 0x0000);
	labelFunc071A_01E8:
		var0012 = UI_find_nearby_41(item, 0x01B0, 0x0008, 0x0000);
		if(!var0012) goto labelFunc071A_021C;
		Func0907(var0012, 0x0000);
		var0013 = UI_execute_usecode_array_01(var0012, [0x23, 0x55, 0x01B0]);
	labelFunc071A_021C:
		return;
}
// externs
extern var Func09A9 0x9A9 (var var0000, var var0001, var var0002);
extern var Func09A7 0x9A7 (var var0000, var var0001);
extern Func0971 0x971 (var var0000);

Func071B 0x71B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x0003)) goto labelFunc071B_0116;
	var0000 = UI_find_nearby_41(item, 0x014A, 0x0003, 0x0000);
	var0001 = UI_get_object_position_20(item);
	var0002 = [0x0000, 0x0000, Shamino, 0x0002, 0x0000, 0x0000];
	var0003 = [0x0000, 0x0000, 0x0000, 0x0000, Shamino, 0x0002];
	enum();
	labelFunc071B_0052:
		for (var0006 in var0000 with var0004 to var0005 atend labelFunc071B_00D7);
		var0007 = UI_get_item_frame_1A(var0006);
		if(!(var0007 == 0x0002)) goto labelFunc071B_00D4;
		var0008 = UI_get_object_position_20(var0006);
		var0008[0x0001] = (var0008[0x0001] - var0001[0x0001]);
		var0008[0x0002] = (var0008[0x0002] - var0001[0x0002]);
		var0009 = Func09A9(var0008, var0002, var0003);
		if(!var0009) goto labelFunc071B_00D4;
		var0002 = Func09A7(var0009[0x0001], var0002);
		var0003 = Func09A7(var0009[0x0001], var0003);
	labelFunc071B_00D4:
		goto labelFunc071B_0052;
	labelFunc071B_00D7:
		var000A = UI_get_array_size_73(var0002);
		var000A = (var000A + UI_get_array_size_73(var0003));
		if(!(var000A == 0x0000)) goto labelFunc071B_0116;
		var000B = UI_find_nearby_41(item, 0x0300, 0x0004, 0x0000);
		if(!var000B) goto labelFunc071B_0116;
		Func0971(var000B);
	labelFunc071B_0116:
		return;
}
// externs
extern Func08E8 0x8E8 ();
extern Func08E9 0x8E9 ();

Func071C 0x71C (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc071C_0157;
	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc071C_0096;
	if(!((!gflags[022E]) && ((!gflags[0230]) && ((!gflags[0231]) && ((!gflags[022F]) && (!gflags[0232])))))) goto labelFunc071C_0058;
	gflags[022E] = true;
	UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	goto labelFunc071C_0096;
	labelFunc071C_0058:
		if(!(gflags[022E] && (gflags[0230] && (gflags[0231] && ((!gflags[022F]) && (!gflags[0232])))))) goto labelFunc071C_0093;
		gflags[022F] = true;
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071C_0096;
	labelFunc071C_0093:
		Func08E8();
	labelFunc071C_0096:
		if(!(var0000 == 0x0001)) goto labelFunc071C_00E0;
		if(!(gflags[022E] && ((!gflags[0230]) && ((!gflags[0231]) && ((!gflags[022F]) && (!gflags[0232])))))) goto labelFunc071C_00DD;
		gflags[0230] = true;
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071C_00E0;
	labelFunc071C_00DD:
		Func08E8();
	labelFunc071C_00E0:
		if(!(var0000 == 0x0002)) goto labelFunc071C_0129;
		if(!(gflags[022E] && (gflags[0230] && ((!gflags[0231]) && ((!gflags[022F]) && (!gflags[0232])))))) goto labelFunc071C_0126;
		gflags[0231] = true;
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071C_0129;
	labelFunc071C_0126:
		Func08E8();
	labelFunc071C_0129:
		if(!(var0000 == 0x0003)) goto labelFunc071C_0157;
		if(!(gflags[022E] && (gflags[0230] && (gflags[0231] && (gflags[022F] && (!gflags[0232])))))) goto labelFunc071C_0154;
		gflags[0232] = true;
		Func08E9();
		goto labelFunc071C_0157;
	labelFunc071C_0154:
		Func08E8();
	labelFunc071C_0157:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AA 0x9AA ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func071D 0x71D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;
	var var0025;
	var var0026;

	if(!(event == 0x000E)) goto labelFunc071D_008E;
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	var0000 = UI_get_item_quality_1C(Func09A0(0x0000, 0x0001));
	if(!((var0000 == 0x0000) || (var0000 == 0x0001))) goto labelFunc071D_0043;
	var0001 = [0x068E, 0x0100, 0x0000];
	labelFunc071D_0043:
		if(!((var0000 == 0x0002) || (var0000 == 0x0003))) goto labelFunc071D_0064;
		var0001 = [0x068E, 0x011D, 0x0000];
	labelFunc071D_0064:
		UI_move_object_4B(0xFE9C, var0001);
		UI_sprite_effect_68(0x0007, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc071D_008E:
		if(!(((gflags[02A5] == true) && (gflags[02A4] == true)) || (event == 0x000A))) goto labelFunc071D_00A6;
		Func09AA();
		abrt();
	labelFunc071D_00A6:
		if(!(event == 0x0002)) goto labelFunc071D_03D5;
		var0000 = UI_get_item_quality_1C(item);
		var0002 = UI_find_nearby_41(item, 0x02CE, 0x000A, 0x0000);
		if(!((var0000 == 0x0000) || (var0000 == 0x0001))) goto labelFunc071D_0264;
		gflags[02A5] = true;
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_0101;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0004);
	labelFunc071D_0101:
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_0125;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0006);
	labelFunc071D_0125:
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_0149;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0008);
	labelFunc071D_0149:
		enum();
	labelFunc071D_014A:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc071D_01A3);
		var0001 = UI_get_object_position_20(var0006);
		var0001[0x0003] = 0x0002;
		var0007 = UI_update_last_created_2F(var0001);
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x0007, (var0001[0x0001] - 0x0002), (var0001[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_014A;
	labelFunc071D_01A3:
		var0002 = UI_find_nearby_41(item, 0x00F6, 0x0019, 0x0000);
		enum();
	labelFunc071D_01B5:
		for (var0007 in var0002 with var0008 to var0009 atend labelFunc071D_0202);
		var0003 = UI_get_item_frame_1A(var0007);
		UI_set_item_frame_1B(var0007, (var0003 - 0x0002));
		UI_sprite_effect_68(0x0015, (var0001[0x0001] - 0x0002), (var0001[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_01B5;
	labelFunc071D_0202:
		var0002 = UI_find_nearby_41(item, 0x0204, 0x0019, 0x0000);
		enum();
	labelFunc071D_0214:
		for (var0007 in var0002 with var000A to var000B atend labelFunc071D_0261);
		var0003 = UI_get_item_frame_1A(var0007);
		UI_set_item_frame_1B(var0007, (var0003 - 0x0002));
		UI_sprite_effect_68(0x0015, (var0001[0x0001] - 0x0002), (var0001[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_0214;
	labelFunc071D_0261:
		goto labelFunc071D_03D4;
	labelFunc071D_0264:
		gflags[02A4] = true;
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_028C;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0003);
	labelFunc071D_028C:
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_02B0;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0007);
	labelFunc071D_02B0:
		var0003 = UI_create_new_object_2C(0x00D1);
		if(!var0003) goto labelFunc071D_02D4;
		UI_clear_item_flag_A5(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0012);
	labelFunc071D_02D4:
		enum();
	labelFunc071D_02D5:
		for (var0006 in var0002 with var000C to var000D atend labelFunc071D_0326);
		var0001 = UI_get_object_position_20(var0006);
		var0001[0x0003] = 0x0002;
		var0007 = UI_update_last_created_2F(var0001);
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x001A, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_02D5;
	labelFunc071D_0326:
		var0002 = UI_find_nearby_41(item, 0x00F6, 0x0019, 0x0000);
		enum();
	labelFunc071D_0338:
		for (var0007 in var0002 with var000E to var000F atend labelFunc071D_037D);
		var0003 = UI_get_item_frame_1A(var0007);
		UI_set_item_frame_1B(var0007, (var0003 - 0x0002));
		UI_sprite_effect_68(0x0015, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_0338;
	labelFunc071D_037D:
		var0002 = UI_find_nearby_41(item, 0x0204, 0x0019, 0x0000);
		enum();
	labelFunc071D_038F:
		for (var0007 in var0002 with var0010 to var0011 atend labelFunc071D_03D4);
		var0003 = UI_get_item_frame_1A(var0007);
		UI_set_item_frame_1B(var0007, (var0003 - 0x0002));
		UI_sprite_effect_68(0x0015, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc071D_038F;
	labelFunc071D_03D4:
		abrt();
	labelFunc071D_03D5:
		var0012 = UI_find_nearby_41(item, 0x02AA, 0x0001, 0x0000);
		var0013 = false;
		var0014 = false;
		var0015 = false;
		var0016 = false;
		var0017 = UI_find_nearby_41(item, 0x0262, 0x000A, 0x0000);
		var0018 = UI_get_object_position_20(item);
		enum();
	labelFunc071D_0410:
		for (var001B in var0017 with var0019 to var001A atend labelFunc071D_046A);
		var001C = UI_get_object_position_20(var001B);
		if(!(!((var0018[0x0001] == var001C[0x0001]) && (var0018[0x0002] == var001C[0x0002])))) goto labelFunc071D_0467;
		var001D = UI_get_item_frame_1A(var001B);
		if(!(var001D == 0x0000)) goto labelFunc071D_0461;
		var001E = var001B;
		goto labelFunc071D_0467;
	labelFunc071D_0461:
		var001F = var001B;
	labelFunc071D_0467:
		goto labelFunc071D_0410;
	labelFunc071D_046A:
		if(!((!var0012) || (UI_get_array_size_73(var0012) > 0x0001))) goto labelFunc071D_04F6;
		var0020 = UI_get_item_frame_1A(var001F);
		if(!((var0020 == 0x0001) || (var0020 == 0x0002))) goto labelFunc071D_04BE;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0002, 0x27, 0x0002, 0x46, 0x0003]);
	labelFunc071D_04BE:
		if(!((var0020 == 0x0004) || (var0020 == 0x0005))) goto labelFunc071D_04F5;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0004, 0x27, 0x0002, 0x46, 0x0003]);
	labelFunc071D_04F5:
		abrt();
	labelFunc071D_04F6:
		var0021 = UI_get_item_frame_1A(var0012);
		if(!((var0021 == 0x000C) || (var0021 == 0x000D))) goto labelFunc071D_0519;
		var0013 = true;
		goto labelFunc071D_052F;
	labelFunc071D_0519:
		if(!((var0021 == 0x0012) || (var0021 == 0x0013))) goto labelFunc071D_052F;
		var0014 = true;
	labelFunc071D_052F:
		if(!((!var0013) && (!var0014))) goto labelFunc071D_053C;
		abrt();
	labelFunc071D_053C:
		var0022 = UI_find_nearby_41(var001E, 0x02AA, 0x0001, 0x0000);
		if(!var0022) goto labelFunc071D_058E;
		var0021 = UI_get_item_frame_1A(var0022);
		if(!((var0021 == 0x000C) || (var0021 == 0x000D))) goto labelFunc071D_0578;
		var0015 = true;
		goto labelFunc071D_058E;
	labelFunc071D_0578:
		if(!((var0021 == 0x0012) || (var0021 == 0x0013))) goto labelFunc071D_058E;
		var0016 = true;
	labelFunc071D_058E:
		var0000 = UI_get_item_quality_1C(item);
		if(!((var0013 && var0016) || (var0014 && var0015))) goto labelFunc071D_06D3;
		if(!((var0000 == 0x0000) || (var0000 == 0x0002))) goto labelFunc071D_05DF;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0004, 0x27, 0x0001, 0x46, 0x0003]);
	labelFunc071D_05DF:
		if(!((var0000 == 0x0001) || (var0000 == 0x0003))) goto labelFunc071D_0616;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0002, 0x27, 0x0001, 0x46, 0x0003]);
	labelFunc071D_0616:
		if(!((var0000 == 0x0000) || (var0000 == 0x0001))) goto labelFunc071D_062E;
		var0023 = 0x0002;
	labelFunc071D_062E:
		if(!((var0000 == 0x0002) || (var0000 == 0x0003))) goto labelFunc071D_0646;
		var0023 = Shamino;
	labelFunc071D_0646:
		var0024 = UI_get_distance_21(0xFE9C, var001F);
		Func097F(0xFE9C, "@That should do it.@", 0x0002);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0001 = UI_get_object_position_20(var001F);
		UI_si_path_run_usecode_C1(0xFE9C, [var0001[0x0001], (var0001[0x0002] + var0023), 0x0000], 0x000A, item, 0x071D, false);
		var0025 = Func09A0(0x0000, 0x0001);
		if(!var0025) goto labelFunc071D_06D2;
		var0007 = UI_set_item_quality_1D(var0025, var0000);
		var0007 = UI_delayed_execute_usecode_array_02(var0025, [0x23, 0x55, 0x071D], (var0024 + 0x0004));
	labelFunc071D_06D2:
		abrt();
	labelFunc071D_06D3:
		if(!((var0000 == 0x0000) || (var0000 == 0x0002))) goto labelFunc071D_070A;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0002, 0x27, 0x0001, 0x46, 0x0001]);
	labelFunc071D_070A:
		if(!((var0000 == 0x0001) || (var0000 == 0x0003))) goto labelFunc071D_0741;
		UI_play_sound_effect_16(0x0069);
		var0007 = UI_execute_usecode_array_01(var001F, [0x23, 0x46, 0x0004, 0x27, 0x0001, 0x46, 0x0005]);
	labelFunc071D_0741:
		return;
}
Func071E 0x71E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!((gflags[02A9] == true) && (gflags[02AA] == true))) goto labelFunc071E_000F;
	abrt();
	labelFunc071E_000F:
		var0000 = UI_get_item_quality_1C(item);
		var0001 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
		if(!var0001) goto labelFunc071E_0042;
		var0002 = UI_get_object_position_20(var0001);
		var0003 = UI_get_item_frame_1A(var0001);
	labelFunc071E_0042:
		if(!(var0000 == 0x0001)) goto labelFunc071E_0088;
		if(!(var0003 == 0x0000)) goto labelFunc071E_0088;
		UI_sprite_effect_68(0x001A, (var0002[0x0001] - 0x0002), (var0002[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		gflags[02A9] = true;
		UI_play_sound_effect_16(0x0082);
	labelFunc071E_0088:
		if(!(var0000 == 0x0000)) goto labelFunc071E_00CE;
		if(!(var0003 == 0x0005)) goto labelFunc071E_00CE;
		UI_sprite_effect_68(0x0007, (var0002[0x0001] - 0x0002), (var0002[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		gflags[02AA] = true;
		UI_play_sound_effect_16(0x0047);
	labelFunc071E_00CE:
		if(!((gflags[02A9] == true) && (gflags[02AA] == true))) goto labelFunc071E_01B9;
		var0004 = UI_find_nearby_41(item, 0x0204, 0x000F, 0x0000);
		var0004 = (var0004 & UI_find_nearby_41(item, 0x00F6, 0x000F, 0x0000));
		enum();
	labelFunc071E_0103:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc071E_0177);
		var0003 = UI_get_item_frame_1A(var0007);
		if(!((var0003 == 0x0002) || (var0003 == 0x0012))) goto labelFunc071E_0174;
		var0003 = (var0003 - 0x0002);
		UI_set_item_frame_1B(var0007, var0003);
		var0008 = var0007;
		var0002 = UI_get_object_position_20(var0007);
		UI_sprite_effect_68(0x0015, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
	labelFunc071E_0174:
		goto labelFunc071E_0103;
	labelFunc071E_0177:
		var0009 = UI_get_item_shape_18(var0008);
		if(!(var0009 == 0x00F6)) goto labelFunc071E_01A5;
		var000A = UI_execute_usecode_array_01(var0008, [0x23, 0x55, 0x00F6, 0x0000]);
		goto labelFunc071E_01B9;
	labelFunc071E_01A5:
		var000A = UI_execute_usecode_array_01(var0008, [0x23, 0x55, 0x0204]);
	labelFunc071E_01B9:
		return;
}
// externs
extern Func09AA 0x9AA ();
extern Func08C0 0x8C0 (var var0000);
extern Func0922 0x922 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func071F 0x71F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;

	var0000 = UI_get_object_position_20(0xFE9C);
	if(!(var0000[0x0003] == 0x0000)) goto labelFunc071F_002A;
	UI_show_npc_face0_05(0xFE9C, 0x0000);
	UcMessage("\"It seems that I cannot put the serpent in the slot. Perhaps I should step up a level...\"");
	UcSay;
	UI_remove_npc_face0_07();
	abrt();
	labelFunc071F_002A:
		if(!((event == 0x000A) || (event == 0x000E))) goto labelFunc071F_0088;
		Func09AA();
		Func08C0(true);
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		var0001 = UI_find_nearby_41(item, 0x02E7, 0x002D, 0x0000);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x071F], 0x000F);
		var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x0005]);
		abrt();
	labelFunc071F_0088:
		if(!(event == 0x0002)) goto labelFunc071F_00B3;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		Func0922(0x0008);
		gflags[02E4] = true;
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		abrt();
	labelFunc071F_00B3:
		if(!gflags[02B8]) goto labelFunc071F_00BA;
		abrt();
	labelFunc071F_00BA:
		var0003 = UI_get_item_quality_1C(item);
		var0004 = false;
		var0005 = UI_find_nearby_41(item, 0x0106, 0x0001, 0x0000);
		if(!var0005) goto labelFunc071F_0210;
		var0006 = UI_get_item_frame_1A(var0005);
		if(!((var0006 + 0x0001) != var0003)) goto labelFunc071F_0151;
		var0007 = UI_get_party_list_2B();
		var0008 = 0x0003;
		enum();
	labelFunc071F_0103:
		for (var000B in var0007 with var0009 to var000A atend labelFunc071F_014A);
		var0002 = UI_delayed_execute_usecode_array_02(var000B, [0x23, 0x55, 0x060F], var0008);
		Func097F(var000B, "@Ahhhh!@", var0008);
		var0008 = (var0008 + 0x0007);
		Func097F(0xFE9C, "@That was wrong...@", var0008);
		goto labelFunc071F_0103;
	labelFunc071F_014A:
		var0004 = true;
		goto labelFunc071F_0210;
	labelFunc071F_0151:
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_remove_item_84(var0005);
		var000C = UI_find_nearby_41(item, 0x039F, 0x0001, 0x0000);
		if(!var000C) goto labelFunc071F_01E6;
		var000D = UI_get_object_position_20(var000C);
		var000E = UI_get_item_frame_1A(var000C);
		UI_remove_item_84(var000C);
		var000F = UI_create_new_object_2C(0x039F);
		if(!var000F) goto labelFunc071F_01E6;
		UI_set_item_frame_1B(var000F, (var000E + 0x0004));
		var0002 = UI_update_last_created_2F(var000D);
		UI_play_sound_effect_16(0x0004);
		UI_sprite_effect_68(0x0015, var000D[0x0001], (var000D[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc071F_01E6:
		if(!(var0003 == 0x0002)) goto labelFunc071F_01F4;
		gflags[02A6] = true;
	labelFunc071F_01F4:
		if(!(var0003 == 0x0003)) goto labelFunc071F_0202;
		gflags[02A7] = true;
	labelFunc071F_0202:
		if(!(var0003 == 0x0004)) goto labelFunc071F_0210;
		gflags[02A8] = true;
	labelFunc071F_0210:
		if(!((!var0005) || var0004)) goto labelFunc071F_0330;
		if(!(var0003 == 0x0002)) goto labelFunc071F_0242;
		var0010 = 0x0007;
		var0011 = (UI_die_roll_17(0x0005, 0x000A) * Dupre);
		var0012 = 0x0000;
	labelFunc071F_0242:
		if(!(var0003 == 0x0003)) goto labelFunc071F_0265;
		var0010 = 0x0007;
		var0011 = 0x0000;
		var0012 = UI_die_roll_17(0x0005, 0x000A);
	labelFunc071F_0265:
		if(!(var0003 == 0x0004)) goto labelFunc071F_0288;
		var0010 = 0x001A;
		var0011 = UI_die_roll_17(0x0005, 0x000A);
		var0012 = 0x0000;
	labelFunc071F_0288:
		var0013 = [0x039F, 0x01CF, 0x0201];
		var0014 = UI_find_nearby_41(item, 0xFE99, 0x0001, 0x0000);
		enum();
	labelFunc071F_02A9:
		for (var0017 in var0014 with var0015 to var0016 atend labelFunc071F_0330);
		if(!(!in(UI_get_item_shape_18(var0017), var0013))) goto labelFunc071F_032D;
		var0018 = UI_get_object_position_20(item);
		var0002 = UI_set_last_created_2E(var0017);
		if(!var0002) goto labelFunc071F_02FF;
		var0002 = UI_update_last_created_2F([(var0018[0x0001] + var0011), (var0018[0x0002] + var0012), var0018[0x0003]]);
	labelFunc071F_02FF:
		UI_play_sound_effect_16(0x0043);
		UI_sprite_effect_68(var0010, (var0018[0x0001] + var0011), (var0018[0x0002] + var0012), 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc071F_032D:
		goto labelFunc071F_02A9;
	labelFunc071F_0330:
		if(!(gflags[02A6] && (gflags[02A7] && gflags[02A8]))) goto labelFunc071F_040A;
		UI_play_sound_effect_16(0x0077);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		gflags[02B8] = true;
		var0018 = [0x0687, 0x001C, 0x0000];
		UI_sprite_effect_68(0x001A, var0018[0x0001], var0018[0x0002], 0x0005, 0x0005, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, var0018[0x0001], var0018[0x0002], 0xFFFB, 0xFFFB, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, var0018[0x0001], var0018[0x0002], 0xFFFB, 0x0005, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0018[0x0001], var0018[0x0002], 0x0005, 0xFFFB, 0x0000, Dupre);
		var0019 = [0x068B, 0x0015, 0x0002];
		UI_si_path_run_usecode_C1(0xFE9C, var0019, 0x000A, item, 0x071F, true);
		UI_set_path_failure_A7(0x071F, item, 0x000A);
	labelFunc071F_040A:
		return;
}
// externs
extern Func09AA 0x9AA ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0720 0x720 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;

	if(!(!gflags[02B8])) goto labelFunc0720_0008;
	abrt();
	labelFunc0720_0008:
		if(!(event == 0x0002)) goto labelFunc0720_00D6;
		var0000 = UI_get_object_position_20(item);
		var0001 = UI_die_roll_17(Iolo, 0x0003);
		var0002 = UI_die_roll_17(Iolo, 0x0003);
		UI_sprite_effect_68(0x0011, (var0000[0x0001] + var0001), (var0000[0x0002] + var0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc0720_00D6:
		if(!((event == 0x000A) || (event == 0x000E))) goto labelFunc0720_0198;
		Func09AA();
		var0003 = UI_find_nearby_41(item, 0x02E7, 0x002D, 0x0000);
		var0004 = 0x0000;
	labelFunc0720_00FE:
		if(!((var0004 < 0x000A) && var0003)) goto labelFunc0720_014C;
		var0005 = UI_die_roll_17(0x0002, 0x0004);
		event = 0x0002;
		var0006 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x0720], (var0004 * var0005));
		var0004 = (var0004 + 0x0001);
		UI_play_sound_effect_16(0x0074);
		goto labelFunc0720_00FE;
	labelFunc0720_014C:
		var0007 = Func09A0(0x0000, 0x0002);
		if(!var0007) goto labelFunc0720_0175;
		var0006 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x55, 0x02E7], 0x0046);
	labelFunc0720_0175:
		UI_set_item_frame_1B(var0003, 0x0006);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		abrt();
	labelFunc0720_0198:
		var0008 = UI_find_nearby_41(item, 0xFE99, 0x0001, 0x0000);
		var0009 = false;
		var000A = false;
		var000B = [0x0382, 0x033D, 0x039F, 0x01CF, 0x02D4, 0x02E7, 0x0184, 0x03F8, 0x03E0, 0x00D1, 0x03AD];
		var000C = false;
		enum();
	labelFunc0720_01DD:
		for (var000F in var0008 with var000D to var000E atend labelFunc0720_02B4);
		var0010 = UI_get_item_shape_18(var000F);
		if(!(!in(var0010, var000B))) goto labelFunc0720_0207;
		var0011 = var000F;
		var000C = true;
	labelFunc0720_0207:
		if(!(var0010 == 0x00D1)) goto labelFunc0720_02B1;
		var0012 = UI_get_item_frame_1A(var000F);
		if(!((var0012 == 0x0013) || (var0012 == 0x0014))) goto labelFunc0720_02B1;
		if(!(var0012 == 0x0013)) goto labelFunc0720_026F;
		var0009 = true;
		var0000 = UI_get_object_position_20(var000F);
		UI_sprite_effect_68(0x0007, var0000[0x0001], (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x004C);
	labelFunc0720_026F:
		if(!(var0012 == 0x0014)) goto labelFunc0720_02B1;
		var000A = true;
		var0000 = UI_get_object_position_20(var000F);
		UI_sprite_effect_68(0x001A, var0000[0x0001], (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x004C);
	labelFunc0720_02B1:
		goto labelFunc0720_01DD;
	labelFunc0720_02B4:
		if(!var000C) goto labelFunc0720_03D8;
		var0007 = Func09A0(0x0000, 0x0001);
		if(!var0007) goto labelFunc0720_02E0;
		var0006 = UI_execute_usecode_array_01(var0007, [0x23, 0x55, 0x0798]);
	labelFunc0720_02E0:
		var0001 = UI_die_roll_17(0xFFF1, 0x000F);
		var0002 = UI_die_roll_17(0x0008, 0x000F);
		var0000 = UI_get_object_position_20(item);
		var0006 = UI_set_last_created_2E(var0011);
		if(!var0006) goto labelFunc0720_03D7;
		var0006 = UI_update_last_created_2F([(var0000[0x0001] + var0001), (var0000[0x0002] + var0002), var0000[0x0003]]);
		UI_sprite_effect_68(0x0011, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0074);
		var0013 = UI_get_party_list_2B();
		var0014 = 0x0003;
		enum();
	labelFunc0720_0389:
		for (var0017 in var0013 with var0015 to var0016 atend labelFunc0720_03D7);
		var0006 = UI_delayed_execute_usecode_array_02(var0017, [0x23, 0x55, 0x060F], var0014);
		UI_play_sound_effect_16(0x0074);
		Func097F(var0017, "@Yowww!@", var0014);
		var0014 = (var0014 + 0x0007);
		Func097F(0xFE9C, "@That was wrong...@", 0x0014);
		goto labelFunc0720_0389;
	labelFunc0720_03D7:
		abrt();
	labelFunc0720_03D8:
		if(!(var0009 && var000A)) goto labelFunc0720_0424;
		Func097F(0xFE9C, "@That did it!@", 0x0000);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0018 = [0x068B, 0x0015, 0x0002];
		UI_si_path_run_usecode_C1(0xFE9C, var0018, 0x000A, item, 0x0720, true);
		UI_set_path_failure_A7(0x0720, item, 0x000A);
	labelFunc0720_0424:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0971 0x971 (var var0000);

Func0721 0x721 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	if(!(event == 0x0002)) goto labelFunc0721_0080;
	var0000 = [0x01FF, 0x0211, 0x0218, 0x02C2, 0x020C, 0x035D];
	enum();
	labelFunc0721_0021:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0721_007F);
		var0004 = UI_find_nearby_41(item, var0003, 0x0014, 0x0000);
		enum();
	labelFunc0721_003E:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0721_007C);
		var0008 = UI_get_object_position_20(var0007);
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0011, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc0721_003E;
	labelFunc0721_007C:
		goto labelFunc0721_0021;
	labelFunc0721_007F:
		abrt();
	labelFunc0721_0080:
		var0009 = UI_get_item_quality_1C(item);
		var000A = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
		var000B = UI_get_item_frame_1A(var000A);
		var0003 = true;
		if(!(var0009 == 0x0000)) goto labelFunc0721_00C3;
		if(!(var000B == 0x0003)) goto labelFunc0721_00C3;
		gflags[02AB] = true;
		var0003 = false;
	labelFunc0721_00C3:
		if(!(var0009 == 0x0001)) goto labelFunc0721_00DF;
		if(!(var000B == 0x0012)) goto labelFunc0721_00DF;
		gflags[02AC] = true;
		var0003 = false;
	labelFunc0721_00DF:
		if(!(var0009 == 0x0002)) goto labelFunc0721_00FB;
		if(!(var000B == 0x0004)) goto labelFunc0721_00FB;
		gflags[02AD] = true;
		var0003 = false;
	labelFunc0721_00FB:
		if(!(var0009 == 0x0003)) goto labelFunc0721_0117;
		if(!(var000B == 0x0008)) goto labelFunc0721_0117;
		gflags[02AE] = true;
		var0003 = false;
	labelFunc0721_0117:
		if(!(var0009 == 0x0004)) goto labelFunc0721_0133;
		if(!(var000B == 0x0006)) goto labelFunc0721_0133;
		gflags[02AF] = true;
		var0003 = false;
	labelFunc0721_0133:
		if(!(var0009 == 0x0005)) goto labelFunc0721_014F;
		if(!(var000B == 0x0007)) goto labelFunc0721_014F;
		gflags[02B0] = true;
		var0003 = false;
	labelFunc0721_014F:
		if(!var0003) goto labelFunc0721_01B0;
		var000C = UI_find_nearby_41(item, 0x0113, 0x0019, 0x0010);
		enum();
	labelFunc0721_0167:
		for (var000F in var000C with var000D to var000E atend labelFunc0721_01AD);
		var0010 = UI_execute_usecode_array_01(var000F, [0x48]);
		var0011 = Func09A0(0x0000, 0x0001);
		if(!var0011) goto labelFunc0721_01AA;
		var0010 = UI_delayed_execute_usecode_array_02(var0011, [0x23, 0x55, 0x0721], 0x0005);
	labelFunc0721_01AA:
		goto labelFunc0721_0167;
	labelFunc0721_01AD:
		goto labelFunc0721_02FA;
	labelFunc0721_01B0:
		var0008 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0015, var0008[0x0001], (var0008[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFE9C, "@That did it!@", 0x0005);
		var0000 = [0x01FF, 0x0211, 0x0218, 0x02C2, 0x020C, 0x035D];
		enum();
	labelFunc0721_0200:
		for (var0003 in var0000 with var0012 to var0013 atend labelFunc0721_0265);
		var0004 = UI_find_nearby_41(item, var0003, 0x0028, 0x0000);
		enum();
	labelFunc0721_021D:
		for (var0007 in var0004 with var0014 to var0015 atend labelFunc0721_0262);
		var0008 = UI_get_object_position_20(var0007);
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0011, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_kill_npc_57(var0007);
		goto labelFunc0721_021D;
	labelFunc0721_0262:
		goto labelFunc0721_0200;
	labelFunc0721_0265:
		if(!(gflags[02AB] && (gflags[02AC] && (gflags[02AD] && (gflags[02AE] && (gflags[02AF] && gflags[02B0])))))) goto labelFunc0721_02FA;
		UI_sprite_effect_68(0x0007, var0008[0x0001], (var0008[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0016 = UI_create_new_object_2C(0x02C1);
		if(!var0016) goto labelFunc0721_02FA;
		UI_clear_item_flag_A5(var0016, 0x0012);
		var0010 = UI_set_item_quality_1D(var0016, 0x00F1);
		var000A = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
		if(!var000A) goto labelFunc0721_02F0;
		var0008 = UI_get_object_position_20(var000A);
		Func0971(var000A);
	labelFunc0721_02F0:
		var0010 = UI_update_last_created_2F(var0008);
	labelFunc0721_02FA:
		return;
}
Func0722 0x722 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0002)) goto labelFunc0722_0270;
	var0000 = UI_get_item_quality_1C(item);
	if(!((var0000 == 0x0096) || (var0000 == 0x0097))) goto labelFunc0722_0140;
	var0001 = [0x069B, 0x069B, 0x069B];
	var0002 = [0x00E7, 0x00DF, 0x00D7];
	var0003 = 0x0001;
	var0004 = UI_get_array_size_73(var0001);
	labelFunc0722_0050:
		if(!(var0003 <= var0004)) goto labelFunc0722_00A4;
		var0005 = UI_create_new_object_2C(0x018A);
		if(!var0005) goto labelFunc0722_0097;
		UI_set_item_frame_1B(var0005, 0x0002);
		UI_set_item_flag_A4(var0005, 0x0012);
		var0006 = UI_update_last_created_2F([var0001[var0003], var0002[var0003], 0x0000]);
	labelFunc0722_0097:
		var0003 = (var0003 + 0x0001);
		goto labelFunc0722_0050;
	labelFunc0722_00A4:
		var0007 = [0x0693, 0x00E7, 0x0000];
		var0003 = 0x0000;
	labelFunc0722_00B9:
		if(!(var0003 < 0x0008)) goto labelFunc0722_0140;
		var0008 = 0x0000;
	labelFunc0722_00C9:
		if(!(var0008 > 0xFFE8)) goto labelFunc0722_0133;
		var0009 = UI_create_new_object_2C(0x0121);
		if(!var0009) goto labelFunc0722_0126;
		UI_set_item_flag_A4(var0009, 0x0012);
		UI_set_item_frame_1B(var0009, UI_die_roll_17(0x0006, 0x000B));
		UI_play_sound_effect_16(0x0029);
		var0006 = UI_update_last_created_2F([(var0007[0x0001] + var0003), (var0007[0x0002] + var0008), 0x0001]);
	labelFunc0722_0126:
		var0008 = (var0008 - 0x0002);
		goto labelFunc0722_00C9;
	labelFunc0722_0133:
		var0003 = (var0003 + 0x0002);
		goto labelFunc0722_00B9;
	labelFunc0722_0140:
		if(!((var0000 == 0x0098) || (var0000 == 0x0099))) goto labelFunc0722_0270;
		var0001 = [0x068B, 0x068B, 0x068B];
		var0002 = [0x00C7, 0x00BF, 0x00B7];
		var0003 = 0x0001;
		var0004 = UI_get_array_size_73(var0001);
	labelFunc0722_0180:
		if(!(var0003 <= var0004)) goto labelFunc0722_01D4;
		var0005 = UI_create_new_object_2C(0x018A);
		if(!var0005) goto labelFunc0722_01C7;
		UI_set_item_frame_1B(var0005, 0x0002);
		UI_set_item_flag_A4(var0005, 0x0012);
		var0006 = UI_update_last_created_2F([var0001[var0003], var0002[var0003], 0x0000]);
	labelFunc0722_01C7:
		var0003 = (var0003 + 0x0001);
		goto labelFunc0722_0180;
	labelFunc0722_01D4:
		var0007 = [0x0683, 0x00C7, 0x0000];
		var0003 = 0x0000;
	labelFunc0722_01E9:
		if(!(var0003 < 0x0008)) goto labelFunc0722_0270;
		var0008 = 0x0000;
	labelFunc0722_01F9:
		if(!(var0008 > 0xFFE8)) goto labelFunc0722_0263;
		var0009 = UI_create_new_object_2C(0x0121);
		if(!var0009) goto labelFunc0722_0256;
		UI_set_item_flag_A4(var0009, 0x0012);
		UI_play_sound_effect_16(0x0029);
		UI_set_item_frame_1B(var0009, UI_die_roll_17(0x0000, 0x0005));
		var0006 = UI_update_last_created_2F([(var0007[0x0001] + var0003), (var0007[0x0002] + var0008), 0x0001]);
	labelFunc0722_0256:
		var0008 = (var0008 - 0x0002);
		goto labelFunc0722_01F9;
	labelFunc0722_0263:
		var0003 = (var0003 + 0x0002);
		goto labelFunc0722_01E9;
	labelFunc0722_0270:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0723 0x723 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = UI_get_item_quality_1C(item);
	if(!(gflags[0007] && gflags[02B2])) goto labelFunc0723_006E;
	var0001 = UI_find_nearby_41(item, 0x00E8, 0x0014, 0x0000);
	enum();
	labelFunc0723_0024:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0723_006E);
		var0005 = UI_get_object_position_20(var0004);
		UI_remove_item_84(var0004);
		var0006 = UI_create_new_object_2C(0x00E0);
		if(!var0006) goto labelFunc0723_006B;
		UI_set_item_frame_1B(var0006, UI_die_roll_17(0x0008, 0x000B));
		var0006 = UI_update_last_created_2F(var0005);
	labelFunc0723_006B:
		goto labelFunc0723_0024;
	labelFunc0723_006E:
		if(!((var0000 == 0x0000) && (gflags[02B2] == false))) goto labelFunc0723_026A;
		var0007 = UI_find_nearby_41(item, 0x00D1, 0x0002, 0x0000);
		if(!var0007) goto labelFunc0723_026A;
		var0008 = UI_get_item_frame_1A(var0007);
		if(!(var0008 == 0x0016)) goto labelFunc0723_00FD;
		UI_set_item_frame_1B(item, 0x0017);
		Func097F(0xFE9C, "@'Tis working...@", 0x0004);
		UI_obj_sprite_effect_91(item, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_execute_usecode_array_01(var0007, [0x23, 0x27, 0x0014, 0x46, 0x0015]);
		UI_play_sound_effect_16(0x0068);
		var0008 = 0x0017;
	labelFunc0723_00FD:
		if(!(var0008 != 0x0017)) goto labelFunc0723_011E;
		Func097F(0xFE9C, "@That did naught!@", 0x0004);
		UI_play_sound_effect_16(0x0030);
		abrt();
		goto labelFunc0723_026A;
	labelFunc0723_011E:
		gflags[02B2] = true;
		gflags[0007] = true;
		var0001 = UI_find_nearby_41(item, 0x00E8, 0x0014, 0x0000);
		if(!var0001) goto labelFunc0723_01C8;
		enum();
	labelFunc0723_013E:
		for (var0004 in var0001 with var0009 to var000A atend labelFunc0723_01C8);
		var0005 = UI_get_object_position_20(var0004);
		var000B = 0x0004;
	labelFunc0723_0159:
		if(!(var000B >= 0x0001)) goto labelFunc0723_01C5;
		var000C = UI_create_new_object_2C(0x0289);
		if(!var000C) goto labelFunc0723_01B8;
		UI_set_item_frame_1B(var000C, 0x0005);
		var000D = UI_die_roll_17(0xFFFC, 0x0004);
		var000E = UI_die_roll_17(0xFFFC, 0x0004);
		var0006 = UI_update_last_created_2F([(var0005[0x0001] + var000D), (var0005[0x0002] + var000E), 0x0000]);
	labelFunc0723_01B8:
		var000B = (var000B - 0x0001);
		goto labelFunc0723_0159;
	labelFunc0723_01C5:
		goto labelFunc0723_013E;
	labelFunc0723_01C8:
		var0001 = UI_find_nearby_41(item, 0x00E8, 0x0014, 0x0000);
		enum();
	labelFunc0723_01DA:
		for (var0004 in var0001 with var000F to var0010 atend labelFunc0723_024E);
		var0005 = UI_get_object_position_20(var0004);
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x0007, var0005[0x0001], (var0005[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_execute_usecode_array_01(var0004, [0x23, 0x46, 0x0001, 0x27, 0x0001, 0x46, 0x0002, 0x27, 0x0001, 0x46, 0x0003, 0x27, 0x0001, 0x46, 0x0004]);
		goto labelFunc0723_01DA;
	labelFunc0723_024E:
		UI_play_sound_effect_16(0x005F);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0723], 0x000C);
	labelFunc0723_026A:
		if(!((var0000 == 0x0001) && (gflags[02B3] == false))) goto labelFunc0723_0378;
		var0001 = UI_find_nearby_41(item, 0x0289, 0x0001, 0x0000);
		if(!var0001) goto labelFunc0723_0378;
		var0008 = UI_get_item_frame_1A(var0001);
		if(!(var0008 == 0x0005)) goto labelFunc0723_0378;
		var0005 = [0x06D9, 0x007A, 0x0000];
		var0011 = 0x0000;
	labelFunc0723_02BA:
		if(!(var0011 < 0x0008)) goto labelFunc0723_0374;
		var0012 = UI_create_new_object_2C(0x0184);
		if(!var0012) goto labelFunc0723_0367;
		UI_set_item_frame_1B(var0012, 0x000A);
		var0006 = UI_update_last_created_2F([var0005[0x0001], (var0005[0x0002] + var0011), var0005[0x0003]]);
		var0006 = UI_create_new_object_2C(0x037F);
		if(!var0006) goto labelFunc0723_032F;
		var0006 = UI_update_last_created_2F([(var0005[0x0001] + 0x0002), (var0005[0x0002] + var0011), 0x0000]);
	labelFunc0723_032F:
		var0006 = UI_create_new_object_2C(0x037F);
		if(!var0006) goto labelFunc0723_0360;
		var0006 = UI_update_last_created_2F([(var0005[0x0001] - 0x0004), (var0005[0x0002] + var0011), 0x0000]);
	labelFunc0723_0360:
		UI_play_sound_effect_16(0x0027);
	labelFunc0723_0367:
		var0011 = (var0011 + 0x0001);
		goto labelFunc0723_02BA;
	labelFunc0723_0374:
		gflags[02B3] = true;
	labelFunc0723_0378:
		return;
}
// externs
extern Func0971 0x971 (var var0000);

Func0724 0x724 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	if(!(event == 0x0002)) goto labelFunc0724_000D;
	Func0971(item);
	abrt();
	labelFunc0724_000D:
		var0000 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
		if(!var0000) goto labelFunc0724_050E;
		var0001 = UI_get_item_frame_1A(var0000);
		if(!(!((var0001 == 0x0001) || (var0001 == 0x0002)))) goto labelFunc0724_0048;
		var0002 = true;
		goto labelFunc0724_0512;
	labelFunc0724_0048:
		var0003 = UI_get_object_position_20(var0000);
		Func0971(var0000);
		var0004 = 0x0000;
		if(!(var0001 == 0x0001)) goto labelFunc0724_00BB;
		var0004 = 0x0231;
		if(!(gflags[02B4] == true)) goto labelFunc0724_00B7;
		if(!(gflags[02B5] == true)) goto labelFunc0724_00B0;
		UI_play_sound_effect_16(0x0052);
		UI_sprite_effect_68(0x0009, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
		goto labelFunc0724_00B4;
	labelFunc0724_00B0:
		gflags[02B5] = true;
	labelFunc0724_00B4:
		goto labelFunc0724_00BB;
	labelFunc0724_00B7:
		gflags[02B4] = true;
	labelFunc0724_00BB:
		if(!(var0001 == 0x0002)) goto labelFunc0724_0118;
		var0004 = 0x037F;
		if(!(gflags[02B6] == true)) goto labelFunc0724_0114;
		if(!(gflags[02B7] == true)) goto labelFunc0724_010D;
		UI_play_sound_effect_16(0x0052);
		UI_sprite_effect_68(0x0009, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
		goto labelFunc0724_0111;
	labelFunc0724_010D:
		gflags[02B7] = true;
	labelFunc0724_0111:
		goto labelFunc0724_0118;
	labelFunc0724_0114:
		gflags[02B6] = true;
	labelFunc0724_0118:
		var0005 = UI_create_new_object_2C(var0004);
		if(!var0005) goto labelFunc0724_0153;
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0006 = UI_update_last_created_2F(var0003);
		var0006 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x0724], 0x000C);
	labelFunc0724_0153:
		var0007 = UI_get_item_quality_1C(item);
		var0006 = UI_set_item_quality_1D(item, (var0007 + 0x0001));
		var0007 = (var0007 + 0x0001);
		var0008 = 0x0000;
		if(!(var0007 == 0x0004)) goto labelFunc0724_0255;
		var0009 = [0x0683, 0x0687, 0x068B, 0x068F, 0x0683, 0x0687, 0x068B, 0x068F];
		var000A = [0x0083, 0x0083, 0x0083, 0x0083, 0x0087, 0x0087, 0x0087, 0x0087];
		var000B = [0x0008, 0x0009, 0x0009, 0x0009, 0x000A, 0x000B, 0x000B, 0x000B];
		UI_play_sound_effect_16(0x0082);
		UI_sprite_effect_68(0x001A, 0x0686, 0x0082, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0724_01FE:
		if(!(var0008 < 0x0008)) goto labelFunc0724_0255;
		var000C = UI_create_new_object_2C(0x00A0);
		var0008 = (var0008 + 0x0001);
		if(!var000C) goto labelFunc0724_0252;
		UI_set_item_frame_1B(var000C, var000B[var0008]);
		UI_clear_item_flag_A5(var000C, 0x0012);
		var0006 = UI_update_last_created_2F([var0009[var0008], var000A[var0008], 0x0000]);
	labelFunc0724_0252:
		goto labelFunc0724_01FE;
	labelFunc0724_0255:
		if(!(var0007 == 0x0003)) goto labelFunc0724_031E;
		var0009 = [0x0685, 0x0689, 0x068D, 0x0685, 0x0689, 0x068D];
		var000A = [0x0083, 0x0083, 0x0083, 0x0087, 0x0087, 0x0087];
		var000B = [0x0008, 0x0009, 0x0009, 0x000A, 0x000B, 0x000B];
		UI_play_sound_effect_16(0x0082);
		UI_sprite_effect_68(0x0007, 0x0686, 0x0082, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0724_02C7:
		if(!(var0008 < 0x0006)) goto labelFunc0724_031E;
		var000C = UI_create_new_object_2C(0x00A0);
		var0008 = (var0008 + 0x0001);
		if(!var000C) goto labelFunc0724_031B;
		UI_set_item_frame_1B(var000C, var000B[var0008]);
		UI_clear_item_flag_A5(var000C, 0x0012);
		var0006 = UI_update_last_created_2F([var0009[var0008], var000A[var0008], 0x0001]);
	labelFunc0724_031B:
		goto labelFunc0724_02C7;
	labelFunc0724_031E:
		if(!(var0007 == 0x0002)) goto labelFunc0724_03D5;
		var0009 = [0x0687, 0x0687, 0x068B, 0x068B];
		var000A = [0x0083, 0x0087, 0x0083, 0x0087];
		var000B = [0x0008, 0x000A, 0x0009, 0x000B];
		UI_play_sound_effect_16(0x0082);
		UI_sprite_effect_68(0x001A, 0x0686, 0x0082, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0724_037E:
		if(!(var0008 < 0x0004)) goto labelFunc0724_03D5;
		var000C = UI_create_new_object_2C(0x00A0);
		var0008 = (var0008 + 0x0001);
		if(!var000C) goto labelFunc0724_03D2;
		UI_set_item_frame_1B(var000C, var000B[var0008]);
		UI_clear_item_flag_A5(var000C, 0x0012);
		var0006 = UI_update_last_created_2F([var0009[var0008], var000A[var0008], 0x0002]);
	labelFunc0724_03D2:
		goto labelFunc0724_037E;
	labelFunc0724_03D5:
		if(!(var0007 == 0x0001)) goto labelFunc0724_047A;
		var0009 = [0x0689, 0x0689];
		var000A = [0x0083, 0x0087];
		var000B = [0x0008, 0x000A];
		UI_play_sound_effect_16(0x0082);
		UI_sprite_effect_68(0x0007, 0x0686, 0x0082, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0724_0423:
		if(!(var0008 < 0x0002)) goto labelFunc0724_047A;
		var000C = UI_create_new_object_2C(0x00A0);
		var0008 = (var0008 + 0x0001);
		if(!var000C) goto labelFunc0724_0477;
		UI_set_item_frame_1B(var000C, var000B[var0008]);
		UI_clear_item_flag_A5(var000C, 0x0012);
		var0006 = UI_update_last_created_2F([var0009[var0008], var000A[var0008], 0x0003]);
	labelFunc0724_0477:
		goto labelFunc0724_0423;
	labelFunc0724_047A:
		if(!(var0007 == 0x0004)) goto labelFunc0724_050B;
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x0007, 0x0686, 0x0082, 0x0000, 0x0000, 0x0000, Dupre);
		var000D = UI_create_new_object_2C(0x00E9);
		if(!var000D) goto labelFunc0724_04D1;
		UI_set_item_frame_1B(var000D, 0x0007);
		var0006 = UI_update_last_created_2F([0x0689, 0x0085, 0x0004]);
	labelFunc0724_04D1:
		var000D = UI_create_new_object_2C(0x02C3);
		if(!var000D) goto labelFunc0724_050B;
		UI_set_item_frame_1B(var000D, 0x0003);
		var0006 = UI_set_item_quality_1D(var000D, 0x007B);
		var0006 = UI_update_last_created_2F([0x0688, 0x0084, 0x0005]);
	labelFunc0724_050B:
		goto labelFunc0724_0512;
	labelFunc0724_050E:
		var0002 = true;
	labelFunc0724_0512:
		if(!var0002) goto labelFunc0724_059E;
		var0003 = UI_get_object_position_20(item);
		var000E = UI_die_roll_17(0x0003, 0x000A);
		var000F = UI_die_roll_17(0x0000, 0x0001);
		if(!(var000F == 0x0000)) goto labelFunc0724_054E;
		var000E = (var000E * Dupre);
	labelFunc0724_054E:
		var0006 = UI_set_last_created_2E(var0000);
		if(!var0006) goto labelFunc0724_057B;
		var0006 = UI_update_last_created_2F([(var0003[0x0001] + var000E), var0003[0x0002], 0x0000]);
	labelFunc0724_057B:
		UI_sprite_effect_68(0x0015, (var0003[0x0001] + var000E), var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc0724_059E:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0922 0x922 (var var0000);

Func0725 0x725 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc0725_0137;
	var0000 = UI_get_object_position_20(0xFE9C);
	if(!(var0000[0x0003] != 0x0005)) goto labelFunc0725_0020;
	abrt();
	labelFunc0725_0020:
		var0000 = Func09A0(0x0000, 0x0001);
		var0001 = Func09A0(0x0000, 0x0002);
		if(!(var0000 && var0001)) goto labelFunc0725_012F;
		var0002 = UI_set_item_quality_1D(var0000, 0x0000);
		var0002 = UI_set_item_quality_1D(var0001, 0x0001);
		var0002 = UI_execute_usecode_array_01(var0000, [0x23, 0x55, 0x07D6]);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0003 = UI_get_object_position_20(item);
		UI_obj_sprite_effect_91(0xFE9C, 0x001A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_obj_sprite_effect_91(0xFE9C, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_obj_sprite_effect_91(0xFE9C, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_execute_usecode_array_01(var0000, [0x23, 0x55, 0x0725]);
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0725], 0x0002);
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0725], 0x0004);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, 0x0725], 0x0014);
	labelFunc0725_012F:
		UI_play_sound_effect_16(0x0051);
		abrt();
	labelFunc0725_0137:
		if(!((event == 0x0002) && (gflags[0009] == false))) goto labelFunc0725_0218;
		var0004 = UI_get_item_quality_1C(item);
		if(!(var0004 == 0x0000)) goto labelFunc0725_01B5;
		var0003 = UI_get_object_position_20(0xFE9C);
		var0003[0x0001] = (var0003[0x0001] - (var0003[0x0003] / 0x0002));
		var0003[0x0002] = (var0003[0x0002] - (var0003[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0011, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0074);
	labelFunc0725_01B5:
		if(!(var0004 == 0x0001)) goto labelFunc0725_0217;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x093C, 0x0046, 0x0001]);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		gflags[0009] = true;
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0636], 0x000A);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0725], 0x0012);
	labelFunc0725_0217:
		abrt();
	labelFunc0725_0218:
		if(!((event == 0x0002) && (gflags[0009] == true))) goto labelFunc0725_023B;
		gflags[0009] = false;
		if(!(!gflags[02B1])) goto labelFunc0725_0237;
		Func0922(0x0004);
	labelFunc0725_0237:
		var0005 = true;
	labelFunc0725_023B:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0922 0x922 (var var0000);

Func0726 0x726 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!((event == 0x0002) && gflags[000A])) goto labelFunc0726_0029;
	gflags[000A] = false;
	UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	Func097F(Iolo, "@Where didst thou go?@", 0x001B);
	labelFunc0726_0029:
		if(!(event == 0x0002)) goto labelFunc0726_0072;
		UI_move_object_4B(0xFE9C, [0x0684, 0x007B, 0x0000]);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x0005);
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x000A);
	labelFunc0726_0072:
		if(!(event == 0x0003)) goto labelFunc0726_01B4;
		if(!gflags[02B1]) goto labelFunc0726_0087;
		Func0922(0x0004);
		abrt();
	labelFunc0726_0087:
		var0001 = UI_get_npc_object_23(0xFE9C);
		var0002 = UI_find_object_32(var0001, 0x0280, 0xFE99, 0xFE99);
		var0003 = UI_find_object_32(var0001, 0x027E, 0xFE99, 0xFE99);
		var0004 = UI_find_object_32(var0001, 0x03EC, 0xFE99, 0x0002);
		var0005 = UI_find_object_32(var0001, 0x0106, 0xFE99, 0x0001);
		var0006 = UI_find_object_32(var0001, 0x0106, 0xFE99, 0x0002);
		var0007 = UI_find_object_32(var0001, 0x0106, 0xFE99, 0x0003);
		if(!(!(var0002 && (var0003 && var0004)))) goto labelFunc0726_015B;
		Func0922(0x0005);
		gflags[02E7] = true;
		gflags[000A] = true;
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0726], 0x000A);
		UI_obj_sprite_effect_91(0xFE9C, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		abrt();
	labelFunc0726_015B:
		if(!(!(var0006 && (var0005 && var0007)))) goto labelFunc0726_01B3;
		Func0922(0x0006);
		gflags[02E6] = true;
		gflags[000A] = true;
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0726], 0x0008);
		UI_obj_sprite_effect_91(0xFE9C, 0x001A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		abrt();
	labelFunc0726_01B3:
		abrt();
	labelFunc0726_01B4:
		return;
}
Func0727 0x727 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0003) && (gflags[0004] == false))) goto labelFunc0727_00D4;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_create_new_object2_2D(0x0103, var0001);
	UI_set_alignment_4A(var0002, 0x0000);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x0255, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x000C, 0x02D2, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x0239, 0x0000, 0x0000, true);
	UI_set_schedule_type_25(var0002, 0x000B);
	if(!(var0000 == 0x0001)) goto labelFunc0727_0098;
	UI_set_schedule_type_25(var0002, 0x000E);
	labelFunc0727_0098:
		if(!(var0000 == 0x0002)) goto labelFunc0727_00AC;
		UI_set_schedule_type_25(var0002, 0x0005);
	labelFunc0727_00AC:
		if(!(var0000 == 0x0003)) goto labelFunc0727_00C0;
		UI_set_schedule_type_25(var0002, 0x0006);
	labelFunc0727_00C0:
		if(!(var0000 > 0x0003)) goto labelFunc0727_00D4;
		UI_set_schedule_type_25(var0002, 0x0000);
	labelFunc0727_00D4:
		return;
}
Func0728 0x728 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0002)) goto labelFunc0728_000D;
	UI_remove_item_84(item);
	labelFunc0728_000D:
		if(!(event == 0x0003)) goto labelFunc0728_0198;
		var0000 = UI_get_object_position_20(item);
		var0001 = false;
		var0002 = UI_get_item_quality_1C(item);
		if(!(var0002 == 0x0000)) goto labelFunc0728_00A4;
		if(!(UI_die_roll_17(0x0001, 0x0006) > 0x0001)) goto labelFunc0728_00A4;
		var0003 = UI_find_nearby_41(item, 0x02D6, 0x0003, 0x0010);
		enum();
	labelFunc0728_0056:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0728_0068);
		var0001 = true;
		goto labelFunc0728_0056;
	labelFunc0728_0068:
		if(!(!var0001)) goto labelFunc0728_00A4;
		var0007 = UI_create_new_object_2C(0x02D6);
		if(!var0007) goto labelFunc0728_00A4;
		UI_clear_item_flag_A5(var0007, 0x0012);
		UI_set_item_frame_1B(var0007, UI_die_roll_17(0x0000, 0x001A));
		var0008 = UI_update_last_created_2F(var0000);
	labelFunc0728_00A4:
		if(!(var0002 == 0x0001)) goto labelFunc0728_0198;
		var0007 = UI_create_new_object_2C(0x014C);
		if(!var0007) goto labelFunc0728_013C;
		UI_clear_item_flag_A5(var0007, 0x0012);
		UI_play_sound_effect_16(0x006A);
		if(!(UI_die_roll_17(0x0001, 0x0004) > 0x0002)) goto labelFunc0728_013C;
		UI_set_item_frame_1B(var0007, 0x0009);
		var0008 = UI_update_last_created_2F(var0000);
		if(!var0008) goto labelFunc0728_013C;
		var0009 = UI_execute_usecode_array_01(var0007, [0x23, 0x27, 0x0001, 0x46, 0x000A, 0x27, 0x0001, 0x46, 0x000B, 0x27, 0x0001, 0x46, 0x000C, 0x27, 0x0001, 0x46, 0x000D, 0x27, 0x0001, 0x55, 0x0728]);
		abrt();
	labelFunc0728_013C:
		UI_set_item_frame_1B(var0007, 0x000E);
		var0008 = UI_update_last_created_2F(var0000);
		if(!var0008) goto labelFunc0728_0198;
		var0009 = UI_execute_usecode_array_01(var0007, [0x23, 0x27, 0x0001, 0x46, 0x000F, 0x27, 0x0001, 0x46, 0x0010, 0x27, 0x0001, 0x46, 0x0011, 0x27, 0x0001, 0x46, 0x0012, 0x27, 0x0001, 0x55, 0x0728]);
		abrt();
	labelFunc0728_0198:
		return;
}
Func0729 0x729 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0003) && (gflags[0004] == false))) goto labelFunc0729_0127;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_create_new_object2_2D(0x00E4, var0001);
	UI_set_alignment_4A(var0002, 0x0000);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x025B, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x023B, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x02D9, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x021B, 0x0000, 0x0000, true);
	UI_set_schedule_type_25(var0002, 0x000B);
	if(!(var0000 == 0x0001)) goto labelFunc0729_00AF;
	UI_set_schedule_type_25(var0002, 0x0010);
	labelFunc0729_00AF:
		if(!(var0000 == 0x0002)) goto labelFunc0729_00C3;
		UI_set_schedule_type_25(var0002, 0x001D);
	labelFunc0729_00C3:
		if(!(var0000 == 0x0003)) goto labelFunc0729_00D7;
		UI_set_schedule_type_25(var0002, 0x0001);
	labelFunc0729_00D7:
		if(!(var0000 == 0x0004)) goto labelFunc0729_00EB;
		UI_set_schedule_type_25(var0002, 0x0002);
	labelFunc0729_00EB:
		if(!(var0000 == 0x0005)) goto labelFunc0729_00FF;
		UI_set_schedule_type_25(var0002, 0x000E);
	labelFunc0729_00FF:
		if(!(var0000 == 0x0006)) goto labelFunc0729_0113;
		UI_set_schedule_type_25(var0002, 0x0000);
	labelFunc0729_0113:
		if(!(var0000 > 0x0006)) goto labelFunc0729_0127;
		UI_set_schedule_type_25(var0002, 0x000C);
	labelFunc0729_0127:
		return;
}
// externs
extern Func0815 0x815 (var var0000);

Func072A 0x72A (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0002)) goto labelFunc072A_0031;
	var0000 = UI_find_nearby_41(0xFF4D, 0x0314, 0x0004, 0x0000);
	if(!var0000) goto labelFunc072A_0031;
	var0001 = UI_get_item_quality_1C(var0000);
	Func0815(var0001);
	labelFunc072A_0031:
		return;
}
// externs
extern Func0922 0x922 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func072B 0x72B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;

	if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc072B_021B;
	gflags[0007] = false;
	Func0922(0x0007);
	gflags[02E5] = true;
	var0000 = UI_find_nearby_41(item, 0x0280, 0x0019, 0x0000);
	var0001 = UI_find_nearby_41(item, 0x027E, 0x0019, 0x0000);
	var0002 = UI_find_nearby_41(item, 0x03EC, 0x0019, 0x0000);
	var0003 = UI_get_object_position_20(var0000);
	UI_sprite_effect_68(0x0015, (var0003[0x0001] - 0x0003), (var0003[0x0002] - 0x0003), 0xFFFB, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(var0000);
	var0003 = UI_get_object_position_20(var0001);
	UI_sprite_effect_68(0x000D, (var0003[0x0001] - 0x0003), (var0003[0x0002] - 0x0003), 0x0000, 0xFFFB, 0x0000, Dupre);
	UI_remove_item_84(var0001);
	var0003 = UI_get_object_position_20(var0002);
	UI_sprite_effect_68(0x0015, (var0003[0x0001] - 0x0003), (var0003[0x0002] - 0x0003), 0x0005, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x000D, (var0003[0x0001] - 0x0003), (var0003[0x0002] - 0x0003), 0x0000, 0x0005, 0x0000, Dupre);
	UI_remove_item_84(var0002);
	UI_play_sound_effect_16(0x0077);
	var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x072B], 0x001B);
	var0005 = UI_get_object_position_20(0xFE9C);
	UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0004), (var0005[0x0002] - 0x0004), 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x001A, (var0005[0x0001] - 0x0003), (var0005[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
	var0006 = UI_find_nearby_41(item, 0x00D1, 0x000F, 0x0000);
	enum();
	labelFunc072B_01A6:
		for (var0004 in var0006 with var0007 to var0008 atend labelFunc072B_021A);
		var0009 = UI_get_item_frame_1A(var0004);
		if(!(var0009 == 0x0014)) goto labelFunc072B_0201;
		gflags[000A] = true;
		var0003 = UI_get_object_position_20(var0004);
		UI_sprite_effect_68(0x0021, (var0003[0x0001] - 0x0003), (var0003[0x0002] - 0x0003), 0x0005, 0x0000, 0x0000, Iolo);
		UI_remove_item_84(var0004);
	labelFunc072B_0201:
		if(!(var0009 == 0x0013)) goto labelFunc072B_0217;
		Func097F(0xFE9C, "@I forgot the eye!@", 0x0041);
	labelFunc072B_0217:
		goto labelFunc072B_01A6;
	labelFunc072B_021A:
		abrt();
	labelFunc072B_021B:
		if(!(event == 0x0002)) goto labelFunc072B_04A5;
		if(!(gflags[0009] == true)) goto labelFunc072B_0391;
		gflags[0009] = false;
		var000A = UI_find_nearby_41(item, 0x0204, 0x000F, 0x0000);
		var000A = (var000A & UI_find_nearby_41(item, 0x00F6, 0x000F, 0x0000));
		enum();
	labelFunc072B_0256:
		for (var000D in var000A with var000B to var000C atend labelFunc072B_0347);
		var0009 = UI_get_item_frame_1A(var000D);
		if(!((var0009 == 0x000E) || (var0009 == 0x001E))) goto labelFunc072B_0344;
		var0009 = (var0009 - 0x0002);
		UI_set_item_frame_1B(var000D, var0009);
		var000E = var000D;
		var000F = UI_get_object_position_20(var000D);
		UI_play_sound_effect_16(0x0059);
		UI_sprite_effect_68(0x000D, (var000F[0x0001] - 0x0002), (var000F[0x0002] - 0x0002), 0x0003, 0x0003, 0x0000, Dupre);
		UI_sprite_effect_68(0x000D, (var000F[0x0001] - 0x0003), (var000F[0x0002] - 0x0003), Iolo, 0x0003, 0x0000, Dupre);
		UI_sprite_effect_68(0x0015, (var000F[0x0001] - 0x0002), (var000F[0x0002] - 0x0002), Iolo, Iolo, 0x0000, Dupre);
		UI_sprite_effect_68(0x0015, (var000F[0x0001] - 0x0003), (var000F[0x0002] - 0x0003), 0x0003, Iolo, 0x0000, Dupre);
	labelFunc072B_0344:
		goto labelFunc072B_0256;
	labelFunc072B_0347:
		var0010 = UI_get_item_shape_18(var000E);
		if(!(var0010 == 0x00F6)) goto labelFunc072B_0372;
		var0004 = UI_execute_usecode_array_01(var000E, [0x23, 0x55, 0x00F6, 0x0000]);
	labelFunc072B_0372:
		if(!(var0010 == 0x0204)) goto labelFunc072B_0390;
		var0004 = UI_execute_usecode_array_01(var000E, [0x23, 0x55, 0x0204]);
	labelFunc072B_0390:
		abrt();
	labelFunc072B_0391:
		if(!(gflags[0008] == false)) goto labelFunc072B_03F6;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFE9C, [0x0687, 0x0072, 0x0000]);
		gflags[0008] = true;
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x0001);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x072B], 0x0002);
		abrt();
		goto labelFunc072B_04A5;
	labelFunc072B_03F6:
		gflags[0009] = true;
		gflags[0008] = false;
		var0004 = Func099B(0xFE9C, 0x0001, 0x0280, 0x0000, 0x0000, 0x0000, false);
		var0004 = Func099B(0xFE9C, 0x0001, 0x027E, 0x0000, 0x0000, 0x0000, false);
		var0004 = Func099B(0xFE9C, 0x0001, 0x03EC, 0x0000, 0x0002, 0x0000, false);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		if(!gflags[000A]) goto labelFunc072B_0476;
		var0004 = Func099B(0xFE9C, 0x0001, 0x00D1, 0x0000, 0x0014, 0x0000, false);
		gflags[000A] = false;
	labelFunc072B_0476:
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x072B], 0x0011);
		abrt();
	labelFunc072B_04A5:
		if(!(event == 0x0003)) goto labelFunc072B_06AD;
		gflags[0007] = 0x0000;
		gflags[0008] = 0x0000;
		gflags[0009] = 0x0000;
		gflags[000A] = 0x0000;
		var0000 = UI_find_nearby_41(item, 0x0280, 0x0005, 0x0000);
		var0001 = UI_find_nearby_41(item, 0x027E, 0x0005, 0x0000);
		var0002 = UI_find_nearby_41(item, 0x03EC, 0x0005, 0x0000);
		if(!var0002) goto labelFunc072B_0512;
		if(!(UI_get_item_frame_1A(var0002) != 0x0002)) goto labelFunc072B_0512;
		var0002 = 0x0000;
	labelFunc072B_0512:
		if(!var0000) goto labelFunc072B_0534;
		UI_obj_sprite_effect_91(var0000, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc072B_0534:
		if(!var0001) goto labelFunc072B_0556;
		UI_obj_sprite_effect_91(var0001, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc072B_0556:
		if(!var0002) goto labelFunc072B_0578;
		UI_obj_sprite_effect_91(var0002, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc072B_0578:
		if(!(var0000 && (var0001 && var0002))) goto labelFunc072B_06AD;
		UI_set_item_frame_1B(0xFE9C, 0x0000);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		if(!(!gflags[02B1])) goto labelFunc072B_0692;
		var0011 = UI_create_new_object_2C(0x00D1);
		if(!var0011) goto labelFunc072B_0692;
		UI_set_item_frame_1B(var0011, 0x0014);
		UI_clear_item_flag_A5(var0011, 0x0012);
		var0004 = UI_find_nearby_41(item, 0x02B0, 0x000A, 0x00B0);
		enum();
	labelFunc072B_05D7:
		for (var0014 in var0004 with var0012 to var0013 atend labelFunc072B_05F6);
		var0015 = UI_get_object_position_20(var0014);
		UI_remove_item_84(var0014);
		goto labelFunc072B_05D7;
	labelFunc072B_05F6:
		var0004 = UI_update_last_created_2F(var0015);
		if(!var0004) goto labelFunc072B_060A;
		gflags[02B1] = true;
	labelFunc072B_060A:
		UI_sprite_effect_68(0x0021, (var0015[0x0001] - 0x0003), (var0015[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, (var0015[0x0001] - 0x0004), (var0015[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x0007, (var0015[0x0001] - 0x0003), (var0015[0x0002] - 0x0004), 0x0000, 0x0000, 0x000A, Iolo);
		UI_play_sound_effect_16(0x0043);
		Func097F(0xFE9C, "@The Eye of Order!@", 0x0005);
	labelFunc072B_0692:
		gflags[0007] = true;
		var0004 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x072B], 0x0014);
	labelFunc072B_06AD:
		return;
}
Func072C 0x72C (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0002)) goto labelFunc072C_0060;
	var0000 = UI_get_object_position_20(0xFE9C);
	UI_sprite_effect_68(0x001A, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0003), (var0000[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc072C_0060:
		if(!(event == 0x0003)) goto labelFunc072C_00D5;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_sound_effect_16(0x0051);
		UI_move_object_4B(0xFE9C, [0x0687, 0x0072, 0x0000]);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D7], 0x0001);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0005);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x072C], 0x0006);
		abrt();
	labelFunc072C_00D5:
		return;
}
Func072D 0x72D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!((event == 0x0003) && ((gflags[0004] == false) && (gflags[014E] == true)))) goto labelFunc072D_0154;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_find_nearby_41(item, 0x019F, 0x0032, 0x0000);
	enum();
	labelFunc072D_0036:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc072D_004B);
		UI_remove_item_84(var0005);
		goto labelFunc072D_0036;
	labelFunc072D_004B:
		var0006 = UI_create_new_object2_2D(0x00E4, var0001);
		UI_set_alignment_4A(var0006, 0x0000);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x025B, 0x0000, 0x0000, true);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x023B, 0x0000, 0x0000, true);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x021B, 0x0000, 0x0000, true);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x02D9, 0x0000, 0x0000, true);
		UI_set_schedule_type_25(var0006, 0x000B);
		if(!(var0000 == 0x0001)) goto labelFunc072D_00DC;
		UI_set_schedule_type_25(var0006, 0x0010);
	labelFunc072D_00DC:
		if(!(var0000 == 0x0002)) goto labelFunc072D_00F0;
		UI_set_schedule_type_25(var0006, 0x001D);
	labelFunc072D_00F0:
		if(!(var0000 == 0x0003)) goto labelFunc072D_0104;
		UI_set_schedule_type_25(var0006, 0x0001);
	labelFunc072D_0104:
		if(!(var0000 == 0x0004)) goto labelFunc072D_0118;
		UI_set_schedule_type_25(var0006, 0x0002);
	labelFunc072D_0118:
		if(!(var0000 == 0x0005)) goto labelFunc072D_012C;
		UI_set_schedule_type_25(var0006, 0x000E);
	labelFunc072D_012C:
		if(!(var0000 == 0x0006)) goto labelFunc072D_0140;
		UI_set_schedule_type_25(var0006, 0x0000);
	labelFunc072D_0140:
		if(!(var0000 > 0x0006)) goto labelFunc072D_0154;
		UI_set_schedule_type_25(var0006, 0x000C);
	labelFunc072D_0154:
		return;
}
Func072E 0x72E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc072E_0069;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	if(!gflags[0261]) goto labelFunc072E_0069;
	var0002 = UI_find_nearby_41(item, 0x010E, 0x000F, 0x0000);
	enum();
	labelFunc072E_0030:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc072E_0064);
		UI_set_item_frame_1B(var0005, 0x0008);
		var0006 = UI_set_item_quality_1D(var0005, 0x0000);
		if(!(var0006 == false)) goto labelFunc072E_0061;
		UI_remove_item_84(var0005);
	labelFunc072E_0061:
		goto labelFunc072E_0030;
	labelFunc072E_0064:
		UI_remove_item_84(item);
	labelFunc072E_0069:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func072F 0x72F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc072F_0067;
	if(!(gflags[02AB] && (gflags[02AC] && (gflags[02AD] && (gflags[02AE] && (gflags[02AF] && gflags[02B0])))))) goto labelFunc072F_0067;
	if(!(!Func097D(0xFE9B, 0x0001, 0x02C1, 0x00F1, 0xFE99))) goto labelFunc072F_0067;
	var0000 = UI_create_new_object_2C(0x02C1);
	if(!var0000) goto labelFunc072F_0067;
	var0001 = UI_set_item_quality_1D(var0000, 0x00F1);
	var0002 = UI_get_object_position_20(item);
	var0001 = UI_update_last_created_2F(var0002);
	labelFunc072F_0067:
		return;
}
Func0730 0x730 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0003) && gflags[0004])) goto labelFunc0730_00F8;
	var0000 = UI_create_new_object_2C(0x0320);
	UI_clear_item_flag_A5(var0000, 0x0012);
	UI_play_sound_effect_16(0x003E);
	if(!var0000) goto labelFunc0730_00F8;
	UI_set_item_frame_1B(var0000, 0x0004);
	var0001 = UI_create_new_object_2C(0x022F);
	if(!var0001) goto labelFunc0730_00DB;
	var0002 = UI_get_item_quality_1C(item);
	if(!(var0002 == 0x0001)) goto labelFunc0730_0063;
	UI_set_item_frame_1B(var0001, 0x0007);
	labelFunc0730_0063:
		if(!(var0002 == 0x0002)) goto labelFunc0730_0077;
		UI_set_item_frame_1B(var0001, 0x0008);
	labelFunc0730_0077:
		if(!(var0002 == 0x0003)) goto labelFunc0730_008B;
		UI_set_item_frame_1B(var0001, 0x000F);
	labelFunc0730_008B:
		if(!(var0002 == 0x0004)) goto labelFunc0730_009F;
		UI_set_item_frame_1B(var0001, 0x0010);
	labelFunc0730_009F:
		if(!(var0002 == 0x0005)) goto labelFunc0730_00C7;
		UI_set_item_frame_1B(var0001, 0x0001);
		UI_clear_item_flag_A5(var0001, 0x0012);
		var0003 = UI_give_last_created_42(var0000);
	labelFunc0730_00C7:
		UI_clear_item_flag_A5(var0001, 0x0012);
		var0003 = UI_give_last_created_42(var0000);
	labelFunc0730_00DB:
		var0004 = UI_get_object_position_20(item);
		var0003 = UI_update_last_created_2F(var0004);
		if(!var0003) goto labelFunc0730_00F8;
		UI_remove_item_84(item);
	labelFunc0730_00F8:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func0731 0x731 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc0731_003A;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_create_new_object2_2D(0x0175, var0000);
	Func09AD(var0001);
	var0002 = UI_add_cont_items_36(var0001, 0x0001, 0x02C3, 0x003D, 0x0002, true);
	labelFunc0731_003A:
		return;
}
Func0732 0x732 (var var0000)
{
	var var0001;

	var0000 = [0x0125, 0x03B7, 0x0000];
	UI_move_object_4B(0xFE9B, var0000);
	UI_play_sound_effect_16(0x0082);
	UI_obj_sprite_effect_91(0xFE9C, 0x0020, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, Dupre);
	return;
}
// externs
extern Func0922 0x922 (var var0000);
extern Func09AD 0x9AD (var var0000);

Func0733 0x733 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc0733_00C2;
	var0000 = 0x0000;
	Func0922(0x001A);
	labelFunc0733_0014:
		if(!(var0000 < 0x000A)) goto labelFunc0733_00C2;
		UI_play_sound_effect_16(0x0077);
		UI_sprite_effect_68(0x0007, (0x0680 + (var0000 * 0x0002)), 0x003E, 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_create_new_object2_2D(0x03C8, [(0x0680 + (var0000 * 0x0002)), 0x003A, 0x0000]);
		UI_sprite_effect_68(0x0007, (0x0681 + (var0000 * 0x0002)), 0x0052, 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_create_new_object2_2D(0x03C8, [(0x0681 + (var0000 * 0x0002)), 0x005A, 0x0000]);
		if(!var0001) goto labelFunc0733_00B5;
		Func09AD(var0001);
		Func09AD(var0002);
	labelFunc0733_00B5:
		var0000 = (var0000 + 0x0003);
		goto labelFunc0733_0014;
	labelFunc0733_00C2:
		return;
}
Func0734 0x734 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!((event == 0x0003) && (gflags[0004] == false))) goto labelFunc0734_0195;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = UI_create_new_object2_2D(0x017D, var0001);
	UI_set_alignment_4A(var0002, 0x0000);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x023E, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x0239, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x024B, 0x0000, 0x0000, true);
	if(!(UI_die_roll_17(0x0001, 0x000A) > 0x0005)) goto labelFunc0734_00CA;
	var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x026E, 0x0000, 0x0000, true);
	var0003 = UI_add_cont_items_36(var0002, UI_die_roll_17(0x0001, 0x0003), 0x0179, 0x0000, UI_die_roll_17(0x0000, 0x0008), true);
	goto labelFunc0734_00FF;
	labelFunc0734_00CA:
		var0003 = UI_add_cont_items_36(var0002, 0x0001, 0x0257, 0x0000, 0x0000, true);
		var0003 = UI_add_cont_items_36(var0002, UI_die_roll_17(0x0005, 0x000F), 0x03B4, 0x0000, 0x0005, true);
	labelFunc0734_00FF:
		UI_set_schedule_type_25(var0002, 0x000B);
		if(!(var0000 == 0x0001)) goto labelFunc0734_011D;
		UI_set_schedule_type_25(var0002, 0x000B);
	labelFunc0734_011D:
		if(!(var0000 == 0x0002)) goto labelFunc0734_0131;
		UI_set_schedule_type_25(var0002, 0x001D);
	labelFunc0734_0131:
		if(!(var0000 == 0x0003)) goto labelFunc0734_0145;
		UI_set_schedule_type_25(var0002, 0x0001);
	labelFunc0734_0145:
		if(!(var0000 == 0x0004)) goto labelFunc0734_0159;
		UI_set_schedule_type_25(var0002, 0x0002);
	labelFunc0734_0159:
		if(!(var0000 == 0x0005)) goto labelFunc0734_016D;
		UI_set_schedule_type_25(var0002, 0x000E);
	labelFunc0734_016D:
		if(!(var0000 == 0x0006)) goto labelFunc0734_0181;
		UI_set_schedule_type_25(var0002, 0x001B);
	labelFunc0734_0181:
		if(!(var0000 > 0x0006)) goto labelFunc0734_0195;
		UI_set_schedule_type_25(var0002, 0x0005);
	labelFunc0734_0195:
		return;
}
Func0737 0x737 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!gflags[0004]) goto labelFunc0737_000C;
	UI_remove_item_84(item);
	abrt();
	labelFunc0737_000C:
		var0000 = UI_find_nearby_41(item, 0x0110, 0x0014, 0x0000);
		enum();
	labelFunc0737_001E:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0737_0080);
		var0004 = UI_set_item_quality_1D(var0003, 0x004B);
		var0005 = UI_get_object_position_20(var0003);
		if(!(var0005[0x0003] > 0x0000)) goto labelFunc0737_007D;
		var0004 = UI_set_last_created_2E(var0003);
		if(!var0004) goto labelFunc0737_007D;
		var0005[0x0003] = 0x0000;
		var0004 = UI_update_last_created_2F(var0005);
		var0004 = UI_set_item_quality_1D(var0003, 0x004B);
	labelFunc0737_007D:
		goto labelFunc0737_001E;
	labelFunc0737_0080:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0738 0x738 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0003)) goto labelFunc0738_005D;
	var0000 = UI_get_item_flag_A3(0xFF4A, 0x001C);
	if(!var0000) goto labelFunc0738_0051;
	var0001 = UI_find_nearby_41(item, 0x010F, 0x0006, 0x0000);
	enum();
	labelFunc0738_002D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0738_004E);
		UI_remove_item_84(var0004);
		UI_remove_item_84(item);
		UI_play_sound_effect_16(0x0059);
		goto labelFunc0738_002D;
	labelFunc0738_004E:
		goto labelFunc0738_005D;
	labelFunc0738_0051:
		Func097F(0xFE9C, "@What a strange place...@", 0x000A);
	labelFunc0738_005D:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func0739 0x739 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x000E)) goto labelFunc0739_002F;
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	UI_init_conversation_85();
	Func097F(0xFE9C, "@I can do this...@", 0x0000);
	Func097F(0xFE9C, "@I changed my mind...@", 0x0010);
	abrt();
	labelFunc0739_002F:
		if(!(event == 0x0000)) goto labelFunc0739_0061;
		UI_si_path_run_usecode_C1(Shmed, [0x0339, 0x08C4, 0x0000], 0x0003, Shmed, 0x0739, true);
		Func097F(0xFE9C, "@To the test!@", 0x0000);
		abrt();
	labelFunc0739_0061:
		if(!(event == 0x0007)) goto labelFunc0739_0087;
		UI_si_path_run_usecode_C1(0xFE9C, [0x0337, 0x08D7, 0x0000], 0x0000, 0xFE9C, 0x0739, true);
		abrt();
	labelFunc0739_0087:
		if(!(event == 0x0003)) goto labelFunc0739_00D5;
		UI_si_path_run_usecode_C1(0xFE9C, [0x0337, 0x08C1, 0x0000], 0x000A, 0xFE9C, 0x0739, true);
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0006]);
		UI_set_schedule_type_25(Shmed, 0x000A);
		Func097F(Shmed, "@To the test!@", 0x0000);
		abrt();
	labelFunc0739_00D5:
		if(!(event == 0x000A)) goto labelFunc0739_014C;
		var0001 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x0000);
		enum();
	labelFunc0739_00F1:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0739_012A);
		var0005 = UI_get_object_position_20(var0004);
		UI_remove_item_84(var0004);
		UI_play_sound_effect_16(0x0020);
		var0006 = Func09AB(0x0178, 0x000E, 0x0048, true, var0005);
		goto labelFunc0739_00F1;
	labelFunc0739_012A:
		Func097F(Shmed, "@heh, heh...@", 0x0000);
		var0006 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0739], 0x0003);
		abrt();
	labelFunc0739_014C:
		if(!(event == 0x0002)) goto labelFunc0739_0171;
		UI_si_path_run_usecode_C1(0xFE9C, [0x0337, 0x08BA, 0x0000], 0x000B, 0xFE9C, 0x0739, true);
	labelFunc0739_0171:
		if(!(event == 0x000B)) goto labelFunc0739_020B;
		var0001 = UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x0000);
		enum();
	labelFunc0739_018D:
		for (var0004 in var0001 with var0007 to var0008 atend labelFunc0739_01EE);
		if(!(UI_get_item_quality_1C(var0004) == 0x0048)) goto labelFunc0739_01D1;
		var0005 = UI_get_object_position_20(var0004);
		UI_remove_item_84(var0004);
		UI_play_sound_effect_16(0x001F);
		var0006 = Func09AB(0x010E, 0x000E, 0x0048, false, var0005);
	labelFunc0739_01D1:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		Func097F(0xFE9C, "@I have a bad feeling...@", 0x0007);
		goto labelFunc0739_018D;
	labelFunc0739_01EE:
		UI_si_path_run_usecode_C1(0xFE9C, [0x0337, 0x08C1, 0x0000], 0x000B, 0xFE9C, 0x0739, true);
	labelFunc0739_020B:
		return;
}
Func073A 0x73A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc073A_0260;
	var0000 = UI_get_object_position_20(item);
	if(!(!UI_get_item_flag_A3(0xFFD4, 0x0006))) goto labelFunc073A_0054;
	UI_move_object_4B(0xFFD4, [0x0924, 0x01CF, 0x0000]);
	UI_set_npc_id_BD(0xFFD4, 0x0001);
	UI_sprite_effect_68(0x0007, 0x0924, 0x01CF, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc073A_0054:
		UI_set_schedule_type_25(0xFFD4, 0x0000);
		UI_set_alignment_4A(0xFFD4, 0x0002);
		UI_set_oppressor_5E(0xFFD4, 0xFE9C);
		UI_set_attack_mode_59(0xFFD4, 0x0002);
		UI_set_opponent_5B(0xFFD4, 0xFE9C);
		UI_set_item_flag_A4(0xFFD4, 0x001D);
		gflags[024E] = true;
		UI_item_say_4D(0xFFD4, "@This should stop thee!@");
		var0001 = UI_create_new_object_2C(0x0300);
		if(!var0001) goto labelFunc073A_00C1;
		var0002 = UI_update_last_created_2F([0x0928, 0x01DE, 0x0000]);
	labelFunc073A_00C1:
		var0003 = 0x0915;
		var0004 = 0x01C9;
	labelFunc073A_00CD:
		if(!(var0003 < 0x093F)) goto labelFunc073A_0107;
		var0001 = UI_create_new_object_2C(0x0300);
		if(!var0001) goto labelFunc073A_00FA;
		var0002 = UI_update_last_created_2F([var0003, var0004, 0x0000]);
	labelFunc073A_00FA:
		var0003 = (var0003 + 0x0003);
		goto labelFunc073A_00CD;
	labelFunc073A_0107:
		UI_move_object_4B(0xFEF0, [0x0926, 0x01CF, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x0926, 0x01CF, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFEF0, 0x0000);
		UI_set_alignment_4A(0xFEF0, 0x0002);
		UI_set_oppressor_5E(0xFEF0, 0xFE9C);
		UI_set_attack_mode_59(0xFEF0, 0x0002);
		UI_set_opponent_5B(0xFEF0, 0xFE9C);
		UI_clear_item_flag_A5(0xFEF0, 0x001D);
		UI_move_object_4B(0xFF80, [0x0928, 0x01CF, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x0928, 0x01CF, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFF80, 0x0000);
		UI_set_alignment_4A(0xFF80, 0x0002);
		UI_set_oppressor_5E(0xFF80, 0xFE9C);
		UI_set_attack_mode_59(0xFF80, 0x0002);
		UI_set_opponent_5B(0xFF80, 0xFE9C);
		UI_clear_item_flag_A5(0xFF80, 0x001D);
		UI_move_object_4B(0xFF81, [0x092A, 0x01CF, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x092A, 0x01CF, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_schedule_type_25(0xFF81, 0x0000);
		UI_set_alignment_4A(0xFF81, 0x0002);
		UI_set_oppressor_5E(0xFF81, 0xFE9C);
		UI_set_attack_mode_59(0xFF81, 0x0002);
		UI_set_opponent_5B(0xFF81, 0xFE9C);
		UI_clear_item_flag_A5(0xFF81, 0x001D);
		var0005 = UI_get_npc_object_23(0xFFD4);
		var0002 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x55, 0x042C], 0x0019);
	labelFunc073A_0260:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08C0 0x8C0 (var var0000);
extern Func0922 0x922 (var var0000);
extern Func07D8 0x7D8 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func073B 0x73B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;

	if(!((UI_get_item_quality_1C(item) == 0x00FF) && (event == 0x0003))) goto labelFunc073B_00DD;
	UI_set_weather_53(0x0003);
	UI_play_sound_effect_16(0x0082);
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_create_new_object2_2D(0x013E, [var0000[0x0001], (var0000[0x0002] + 0x0001), var0000[0x0003]]);
	UI_set_schedule_type_25(var0001, 0x000F);
	UI_set_alignment_4A(var0001, 0x0001);
	UI_set_item_flag_A4(var0001, 0x001D);
	var0002 = Func0992(0x0001, "@We must hurry!@", "@I must hurry!@", true);
	if(!(!UI_get_item_flag_A3(Iolo, 0x0006))) goto labelFunc073B_009A;
	UI_add_to_party_26(Iolo);
	Func097F(Iolo, "@Wait, Avatar!@", 0x0000);
	labelFunc073B_009A:
		if(!(!UI_get_item_flag_A3(Shamino, 0x0006))) goto labelFunc073B_00BB;
		UI_add_to_party_26(Shamino);
		Func097F(Shamino, "@Hold, Avatar!@", 0x0000);
	labelFunc073B_00BB:
		if(!(!UI_get_item_flag_A3(Dupre, 0x0006))) goto labelFunc073B_00DC;
		UI_add_to_party_26(Dupre);
		Func097F(Dupre, "@Stop, Avatar!@", 0x0000);
	labelFunc073B_00DC:
		abrt();
	labelFunc073B_00DD:
		var0003 = Func09A0(0x0002, 0x0001);
		if(!(event == 0x0003)) goto labelFunc073B_01B2;
		var0002 = UI_set_item_quality_1D(var0003, 0x0000);
		var0001 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0028, 0x0000);
		var0002 = Func0992(0x0001, "@Batlin!@", "@Batlin!@", true);
		var0002 = UI_execute_usecode_array_01(var0001, [0x23, 0x59, 0x0000, 0x27, 0x0007, 0x6F, 0x27, 0x0002, 0x70, 0x27, 0x0002, 0x65, 0x27, 0x0002, 0x68, 0x68, 0x27, 0x0002, 0x6A, 0x27, 0x0002, 0x61, 0x30, 0x27, 0x0002, 0x30, 0x27, 0x0001, 0x30, 0x27, 0x0001, 0x6F, 0x27, 0x0005]);
		Func08C0(true);
		var0002 = UI_set_item_quality_1D(item, 0x0001);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x061D], 0x001E);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		abrt();
	labelFunc073B_01B2:
		if(!(event == 0x0002)) goto labelFunc073B_0DC3;
		var0004 = UI_get_item_quality_1C(var0003);
		if(!(var0004 == 0x0000)) goto labelFunc073B_029C;
		var0001 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
		UI_show_npc_face0_05(0xFEE1, 0x0001);
		UcMessage("\"Fool! Thou art too late. Now I shall enter the Wall of Lights and become immortal!\"");
		UcSay;
		UcMessage("\"Then I shall return to destroy thy mortal soul!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0002 = UI_execute_usecode_array_01(var0001, [0x23, 0x6D, 0x27, 0x0004, 0x61, 0x27, 0x0003, 0x6F, 0x27, 0x0003, 0x70, 0x27, 0x0004, 0x65, 0x68, 0x27, 0x0003, 0x68, 0x27, 0x0003, 0x6A, 0x27, 0x0001, 0x67, 0x27, 0x0001, 0x6A, 0x27, 0x0001, 0x65, 0x68, 0x27, 0x0003, 0x68, 0x27, 0x0003, 0x69, 0x27, 0x0003, 0x55, 0x073B]);
		var0000 = UI_get_object_position_20(var0001);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], var0000[0x0003], 0x0000, 0x0000, Dupre);
		var0002 = UI_set_item_quality_1D(var0003, 0x0001);
	labelFunc073B_029C:
		if(!(var0004 == 0x0001)) goto labelFunc073B_0360;
		var0001 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
		if(!(!var0001)) goto labelFunc073B_02C7;
		UI_error_message_40("No Batlin");
	labelFunc073B_02C7:
		UI_show_npc_face0_05(0xFEE1, 0x0001);
		UcMessage("\"Wait... No! The wall is not opening for me! This cannot be!\"");
		UcSay;
		UcMessage("\"No... The banes, they have... Oh, what have I done!\"");
		UcSay;
		UcMessage("\"I have been tricked! Avatar! I beseech thee! Help me before...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_clear_item_flag_A5(var0001, 0x001D);
		Func08C0(false);
		UI_obj_sprite_effect_91(var0001, 0x002A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_obj_sprite_effect_91(var0001, 0x001B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0005 = UI_get_party_list_2B();
		UI_play_sound_effect_16(0x002A);
		var0002 = UI_set_item_quality_1D(var0003, 0x0002);
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x27, 0x0014, 0x55, 0x073B]);
		UI_end_conversation_86();
		abrt();
	labelFunc073B_0360:
		if(!(var0004 == 0x0002)) goto labelFunc073B_05B7;
		var0001 = UI_find_nearby_41(0xFE9C, 0x013E, 0x0014, 0x0000);
		if(!(!var0001)) goto labelFunc073B_038B;
		UI_error_message_40("No Batlin");
	labelFunc073B_038B:
		var0000 = UI_get_object_position_20(var0001);
		var0006 = UI_create_new_object_2C(0x0281);
		if(!var0006) goto labelFunc073B_03D7;
		UI_set_item_frame_1B(var0006, 0x0001);
		var0002 = UI_set_item_quality_1D(var0006, 0x0086);
		var0002 = UI_give_last_created_42(var0001);
		if(!(!var0002)) goto labelFunc073B_03D7;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_03D7:
		var0006 = UI_create_new_object_2C(0x0106);
		if(!var0006) goto labelFunc073B_040C;
		UI_set_item_frame_1B(var0006, 0x0003);
		var0002 = UI_give_last_created_42(var0001);
		if(!(!var0002)) goto labelFunc073B_040C;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_040C:
		var0007 = UI_create_new_object_2C(0x022B);
		if(!var0007) goto labelFunc073B_057F;
		UI_set_item_frame_1B(var0007, 0x0000);
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_045B;
		UI_set_item_frame_1B(var0006, 0x0009);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_045B;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_045B:
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_0490;
		UI_set_item_frame_1B(var0006, 0x0004);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_0490;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_0490:
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_04C5;
		UI_set_item_frame_1B(var0006, 0x0002);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_04C5;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_04C5:
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_04FA;
		UI_set_item_frame_1B(var0006, 0x000D);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_04FA;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_04FA:
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_052F;
		UI_set_item_frame_1B(var0006, 0x0011);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_052F;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_052F:
		var0006 = UI_create_new_object_2C(0x022F);
		if(!var0006) goto labelFunc073B_0564;
		UI_set_item_frame_1B(var0006, 0x0003);
		var0002 = UI_give_last_created_42(var0007);
		if(!(!var0002)) goto labelFunc073B_0564;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_0564:
		var0002 = UI_give_last_created_42(var0001);
		if(!(!var0002)) goto labelFunc073B_057F;
		var0002 = UI_update_last_created_2F(var0000);
	labelFunc073B_057F:
		UI_clear_item_flag_A5(var0001, 0x001D);
		UI_kill_npc_57(var0001);
		var0002 = UI_set_item_quality_1D(var0003, 0x0003);
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x27, 0x000F, 0x55, 0x073B]);
		abrt();
	labelFunc073B_05B7:
		if(!(var0004 == 0x0003)) goto labelFunc073B_060D;
		Func0922(0x0016);
		gflags[0004] = true;
		0x0000;
		calle();
		var0006 = Func09A0(0x0000, 0x0001);
		UI_play_music_39(0x0033, var0006);
		var0002 = UI_set_item_quality_1D(var0003, 0x0004);
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x27, 0x000A, 0x55, 0x073B]);
	labelFunc073B_060D:
		if(!((var0004 > 0x0003) && (var0004 < 0x0007))) goto labelFunc073B_0821;
		var0005 = [Shamino, Dupre, Iolo];
		var0008 = var0005[(var0004 - 0x0003)];
		UI_play_sound_effect_16(0x0077);
		if(!(var0004 > 0x0004)) goto labelFunc073B_0675;
		var0000 = UI_get_object_position_20(var0008);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc073B_0675:
		var0009 = UI_find_object_32(0xFE99, 0x019E, 0xFE99, 0x0010);
		var000A = UI_find_direction_22(var0008, var0009);
		var000B = [0x0000, 0x0000];
		if(!(var000A == 0x0000)) goto labelFunc073B_06B7;
		var000B = [0x0000, Dupre];
	labelFunc073B_06B7:
		if(!(var000A == 0x0001)) goto labelFunc073B_06CD;
		var000B = [0x0001, Dupre];
	labelFunc073B_06CD:
		if(!(var000A == 0x0002)) goto labelFunc073B_06E3;
		var000B = [0x0001, 0x0000];
	labelFunc073B_06E3:
		if(!(var000A == 0x0003)) goto labelFunc073B_06F9;
		var000B = [0x0001, 0x0001];
	labelFunc073B_06F9:
		if(!(var000A == 0x0004)) goto labelFunc073B_070F;
		var000B = [0x0000, 0x0001];
	labelFunc073B_070F:
		if(!(var000A == 0x0005)) goto labelFunc073B_0725;
		var000B = [Dupre, 0x0001];
	labelFunc073B_0725:
		if(!(var000A == 0x0006)) goto labelFunc073B_073B;
		var000B = [Dupre, 0x0000];
	labelFunc073B_073B:
		if(!(var000A == 0x0007)) goto labelFunc073B_0751;
		var000B = [Dupre, Dupre];
	labelFunc073B_0751:
		var000C = UI_get_distance_21(var0008, var0009);
		var000B[0x0001] = (var000B[0x0001] * var000C);
		var000B[0x0002] = (var000B[0x0002] * var000C);
		var0000 = UI_get_object_position_20(var0008);
		var0000[0x0001] = (var0000[0x0001] + var000B[0x0001]);
		var0000[0x0002] = (var0000[0x0002] + var000B[0x0002]);
		var000B[0x0001] = (var000B[0x0001] * Dupre);
		var000B[0x0002] = (var000B[0x0002] * Dupre);
		UI_sprite_effect_68(0x0020, var0000[0x0001], var0000[0x0002], var000B[0x0001], var000B[0x0002], 0x0000, var000C);
		var0002 = UI_set_item_quality_1D(var0003, (var0004 + 0x0001));
		var0002 = UI_execute_usecode_array_01(var0003, [0x23, 0x27, (var000C + 0x000A), 0x55, 0x073B]);
	labelFunc073B_0821:
		if(!(var0004 == 0x0004)) goto labelFunc073B_08BF;
		if(!UI_get_item_flag_A3(Shamino, 0x0006)) goto labelFunc073B_08BF;
		var0000 = UI_get_object_position_20(Shamino);
		var000D = UI_get_item_frame_1A(Shamino);
		UI_remove_from_party_27(Shamino);
		UI_move_object_4B(Shamino, [0x0065, 0x0036, 0x0000]);
		Func09AC(Shamino, 0x0065, 0x0036, 0x000F);
		var000E = UI_create_new_object2_2D(0x013D, var0000);
		UI_set_item_frame_1B(var000E, var000D);
		UI_set_schedule_type_25(var000E, 0x000F);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_item_flag_A4(Shamino, 0x0004);
	labelFunc073B_08BF:
		if(!(var0004 == 0x0005)) goto labelFunc073B_095D;
		if(!UI_get_item_flag_A3(Dupre, 0x0006)) goto labelFunc073B_095D;
		var0000 = UI_get_object_position_20(Dupre);
		var000D = UI_get_item_frame_1A(Dupre);
		UI_remove_from_party_27(Dupre);
		UI_move_object_4B(Dupre, [0x0068, 0x0036, 0x0000]);
		Func09AC(Dupre, 0x0068, 0x0036, 0x000F);
		var000E = UI_create_new_object2_2D(0x038A, var0000);
		UI_set_item_frame_1B(var000E, var000D);
		UI_set_schedule_type_25(var000E, 0x000F);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_item_flag_A4(Dupre, 0x0004);
	labelFunc073B_095D:
		if(!(var0004 == 0x0006)) goto labelFunc073B_09FB;
		if(!UI_get_item_flag_A3(Iolo, 0x0006)) goto labelFunc073B_09FB;
		var0000 = UI_get_object_position_20(Iolo);
		var000D = UI_get_item_frame_1A(Iolo);
		UI_remove_from_party_27(Iolo);
		UI_move_object_4B(Iolo, [0x0062, 0x0036, 0x0000]);
		Func09AC(Iolo, 0x0062, 0x0036, 0x000F);
		var000E = UI_create_new_object2_2D(0x0370, var0000);
		UI_set_item_frame_1B(var000E, var000D);
		UI_set_schedule_type_25(var000E, 0x000F);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_item_flag_A4(Iolo, 0x0004);
	labelFunc073B_09FB:
		if(!(var0004 == 0x0007)) goto labelFunc073B_0DC3;
		UI_show_npc_face0_05(0xFEDE, 0x0000);
		UcMessage("\"I am Anarchy! Hahaha!\"");
		UcSay;
		UcMessage("\"The world shall quail before me! Wrong shall become right! And right shall become lost! Nothing shall escape my touch!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(0xFEDD, 0x0000);
		UcMessage("\"Hahaha! I am the Wantonness Bane!\"");
		UcSay;
		UcMessage("\"Wherever I pass, people shall frolic and sate their wild desires! I shall drive thee to feed thy darkest hungers!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(0xFEDC, 0x0000);
		UcMessage("\"I -- hahaha! -- am the Insanity Bane! Hahaha!\"");
		UcSay;
		UcMessage("\"All those who fall within my shadow shall have their reason clouded and their wits addled! Their greatest love shall lie in the rubbish they once loathed! Hahaha!\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0000 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000F = UI_find_nearby_41(0xFE9C, 0x0370, 0x0028, 0x0000);
		if(!var000F) goto labelFunc073B_0B44;
		var0000 = UI_get_object_position_20(var000F);
		UI_remove_item_84(var000F);
		var0010 = UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99);
		if(!var0010) goto labelFunc073B_0B44;
		enum();
	labelFunc073B_0AB4:
		for (var0013 in var0010 with var0011 to var0012 atend labelFunc073B_0B44);
		var0014 = UI_set_last_created_2E(var0013);
		if(!var0014) goto labelFunc073B_0B41;
		var0014 = UI_update_last_created_2F(var0000);
		if(!(!var0014)) goto labelFunc073B_0AF3;
		var0014 = UI_update_last_created_2F([0x0921, 0x017A, 0x0000]);
	labelFunc073B_0AF3:
		if(!(!var0014)) goto labelFunc073B_0B0D;
		var0014 = UI_update_last_created_2F([0x0923, 0x0178, 0x0000]);
	labelFunc073B_0B0D:
		if(!(!var0014)) goto labelFunc073B_0B27;
		var0014 = UI_update_last_created_2F([0x0925, 0x017A, 0x0000]);
	labelFunc073B_0B27:
		if(!(!var0014)) goto labelFunc073B_0B41;
		var0014 = UI_update_last_created_2F([0x0923, 0x017C, 0x0000]);
	labelFunc073B_0B41:
		goto labelFunc073B_0AB4;
	labelFunc073B_0B44:
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000F = UI_find_nearby_41(0xFE9C, 0x038A, 0x0028, 0x0000);
		if(!var000F) goto labelFunc073B_0C37;
		var0000 = UI_get_object_position_20(var000F);
		UI_remove_item_84(var000F);
		var0010 = UI_get_cont_items_33(Dupre, 0xFE99, 0xFE99, 0xFE99);
		if(!var0010) goto labelFunc073B_0C37;
		enum();
	labelFunc073B_0BA7:
		for (var0013 in var0010 with var0015 to var0016 atend labelFunc073B_0C37);
		var0014 = UI_set_last_created_2E(var0013);
		if(!var0014) goto labelFunc073B_0C34;
		var0014 = UI_update_last_created_2F(var0000);
		if(!(!var0014)) goto labelFunc073B_0BE6;
		var0014 = UI_update_last_created_2F([0x092B, 0x0174, 0x0000]);
	labelFunc073B_0BE6:
		if(!(!var0014)) goto labelFunc073B_0C00;
		var0014 = UI_update_last_created_2F([0x092D, 0x0172, 0x0000]);
	labelFunc073B_0C00:
		if(!(!var0014)) goto labelFunc073B_0C1A;
		var0014 = UI_update_last_created_2F([0x092F, 0x0174, 0x0000]);
	labelFunc073B_0C1A:
		if(!(!var0014)) goto labelFunc073B_0C34;
		var0014 = UI_update_last_created_2F([0x092D, 0x0176, 0x0000]);
	labelFunc073B_0C34:
		goto labelFunc073B_0BA7;
	labelFunc073B_0C37:
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000F = UI_find_nearby_41(0xFE9C, 0x013D, 0x0028, 0x0000);
		if(!var000F) goto labelFunc073B_0D2A;
		var0000 = UI_get_object_position_20(var000F);
		UI_remove_item_84(var000F);
		var0010 = UI_get_cont_items_33(Shamino, 0xFE99, 0xFE99, 0xFE99);
		if(!var0010) goto labelFunc073B_0D2A;
		enum();
	labelFunc073B_0C9A:
		for (var0013 in var0010 with var0017 to var0018 atend labelFunc073B_0D2A);
		var0014 = UI_set_last_created_2E(var0013);
		if(!var0014) goto labelFunc073B_0D27;
		var0014 = UI_update_last_created_2F(var0000);
		if(!(!var0014)) goto labelFunc073B_0CD9;
		var0014 = UI_update_last_created_2F([0x092A, 0x017A, 0x0000]);
	labelFunc073B_0CD9:
		if(!(!var0014)) goto labelFunc073B_0CF3;
		var0014 = UI_update_last_created_2F([0x092C, 0x0178, 0x0000]);
	labelFunc073B_0CF3:
		if(!(!var0014)) goto labelFunc073B_0D0D;
		var0014 = UI_update_last_created_2F([0x092E, 0x017A, 0x0000]);
	labelFunc073B_0D0D:
		if(!(!var0014)) goto labelFunc073B_0D27;
		var0014 = UI_update_last_created_2F([0x092C, 0x017C, 0x0000]);
	labelFunc073B_0D27:
		goto labelFunc073B_0C9A;
	labelFunc073B_0D2A:
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!UI_npc_nearby_3A(0xFFDE)) goto labelFunc073B_0D79;
		var0000 = UI_get_object_position_20(0xFFDE);
		var0002 = UI_execute_usecode_array_01(0xFFDE, [0x23, 0x27, 0x0007, 0x78, 0x0037, 0x0000]);
	labelFunc073B_0D79:
		UI_play_sound_effect_16(0x002A);
		gflags[02DC] = true;
		var0002 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x0028);
		var0002 = UI_set_item_quality_1D(var0003, 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_weather_53(0x0000);
	labelFunc073B_0DC3:
		return;
}
// externs
extern var Func0923 0x923 ();

Func073C 0x73C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0003) && (!Func0923()))) goto labelFunc073C_00BC;
	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = UI_die_roll_17(Iolo, 0x0003);
	var0002 = UI_die_roll_17(Iolo, 0x0003);
	var0000[0x0001] = (var0000[0x0001] + var0001);
	var0000[0x0002] = (var0000[0x0002] + var0002);
	UI_move_object_4B(0xFF2D, var0000);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_set_schedule_type_25(0xFF2D, 0x0003);
	UI_set_alignment_4A(0xFF2D, 0x0000);
	labelFunc073C_00BC:
		return;
}
Func073D 0x73D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((event == 0x0003) && gflags[0004])) goto labelFunc073D_004A;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_create_new_object_2C(0x03BB);
	if(!var0001) goto labelFunc073D_004A;
	UI_play_sound_effect_16(0x004D);
	UI_set_item_frame_1B(var0001, 0x0005);
	var0002 = UI_update_last_created_2F(var0000);
	if(!var0002) goto labelFunc073D_004A;
	UI_remove_item_84(item);
	labelFunc073D_004A:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0742 0x742 (var var0000)
{
	var var0001;

	UI_error_message_40(["WARNING: remove this egg at ", UI_get_object_position_20(item)]);
	abrt();
	if(!(event == 0x0003)) goto labelFunc0742_006F;
	var0000 = Func097D(0xFE9B, 0x0001, 0x01DF, 0xFE99, 0x0002);
	if(!var0000) goto labelFunc0742_003F;
	gflags[025E] = true;
	UI_remove_item_84(item);
	goto labelFunc0742_006F;
	labelFunc0742_003F:
		var0000 = Func097D(0xFE9B, 0x0001, 0x022F, 0xFE99, 0x0001);
		if(!var0000) goto labelFunc0742_006F;
		gflags[025E] = true;
		UI_remove_item_84(item);
		Func097F(0xFE9C, "@Smell that clean air!@", 0x0003);
	labelFunc0742_006F:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func095D 0x95D (var var0000);

Func0743 0x743 (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc0743_0032;
	var0000 = Func097D(0xFE9B, 0x0001, 0x017F, 0xFE99, 0x0001);
	if(!var0000) goto labelFunc0743_0032;
	gflags[002C] = true;
	Func095D(0x0258);
	UI_remove_item_84(item);
	labelFunc0743_0032:
		return;
}
Func0744 0x744 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc0744_002F;
	var0000 = UI_find_nearby_41(item, 0x00C6, 0x000F, 0x0080);
	enum();
	labelFunc0744_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0744_002F);
		UI_remove_item_84(var0003);
		goto labelFunc0744_001A;
	labelFunc0744_002F:
		return;
}
Func0745 0x745 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0003)) goto labelFunc0745_008C;
	var0000 = UI_find_nearby_avatar_3C(0x017D);
	var0001 = true;
	enum();
	labelFunc0745_0017:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0745_0047);
		var0005 = UI_get_npc_id_BC(var0004);
		if(!(var0005 == 0x0001)) goto labelFunc0745_0044;
		var0001 = false;
		UI_set_schedule_type_25(var0004, 0x0003);
	labelFunc0745_0044:
		goto labelFunc0745_0017;
	labelFunc0745_0047:
		var0000 = [];
		if(!var0001) goto labelFunc0745_008C;
		var0006 = UI_get_object_position_20(item);
		var0007 = UI_create_new_object2_2D(0x017D, var0006);
		if(!var0007) goto labelFunc0745_008C;
		UI_set_npc_id_BD(var0007, 0x0001);
		UI_set_schedule_type_25(var0007, 0x0003);
		UI_clear_item_flag_A5(var0007, 0x0001);
	labelFunc0745_008C:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern Func07D1 0x7D1 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func092B 0x92B ();
extern Func094F 0x94F (var var0000, var var0001);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func092C 0x92C (var var0000);

Func0759 0x759 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	var0000 = [0xFE9C, Iolo, Shamino, Dupre];
	var0001 = UI_find_nearby_41(0xFE9C, Dupre, 0x001E, 0x0004);
	if(!(UI_get_array_size_73(var0001) > 0x0001)) goto labelFunc0759_01B5;
	var0001 = Func0988(UI_get_npc_object_23(0xFE9C), var0001);
	var0002 = var0001[UI_get_random_00(UI_get_array_size_73(var0001))];
	var0001 = Func0988(var0002, var0001);
	var0003 = UI_get_object_position_20(var0002);
	UI_play_sound_effect_16(0x0074);
	var0002;
	calle();
	var0004 = 0x0000;
	if(!(UI_get_npc_number_47(var0002) < 0xFF01)) goto labelFunc0759_00ED;
	UI_sprite_effect_68(0x0028, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0009, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_move_object_4B(var0002, [(0x05F0 + var0004), 0x078D, 0x0000]);
	var0004 = (var0004 + 0x0002);
	goto labelFunc0759_0155;
	labelFunc0759_00ED:
		UI_sprite_effect_68(0x0029, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001A, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		if(!UI_get_item_flag_A3(var0002, 0x0006)) goto labelFunc0759_013F;
		UI_remove_from_party_27(var0002);
	labelFunc0759_013F:
		UI_remove_npc_4C(var0002);
		Func09AC(var0002, 0x0000, 0x0000, 0x000F);
	labelFunc0759_0155:
		if(!var0001) goto labelFunc0759_0195;
		var0005 = ["@He is gone!@", "@What hath happened?@", "@Is he dead?@", "@'Tis the storm!@", "@Help!@", "@Run!@"];
		Func097F(var0001[UI_get_random_00(UI_get_array_size_73(var0001))], var0005[UI_get_random_00(UI_get_array_size_73(var0005))], 0x0002);
	labelFunc0759_0195:
		var0006 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0759], (0x0007 + UI_get_random_00(0x000A)));
		abrt();
	labelFunc0759_01B5:
		if(!(!gflags[0007])) goto labelFunc0759_021A;
		var0003 = UI_get_object_position_20(0xFE9C);
		UI_obj_sprite_effect_91(0xFE9C, 0x002A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_obj_sprite_effect_91(0xFE9C, 0x000D, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		gflags[0007] = true;
		var0006 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0759], 0x0005);
		abrt();
	labelFunc0759_021A:
		gflags[0007] = false;
		var0007 = UI_get_party_list_2B();
		if(!in(UI_get_npc_object_23(Dupre), var0007)) goto labelFunc0759_023A;
		UI_remove_from_party_27(Dupre);
	labelFunc0759_023A:
		if(!in(UI_get_npc_object_23(Shamino), var0007)) goto labelFunc0759_024F;
		UI_remove_from_party_27(Shamino);
	labelFunc0759_024F:
		if(!in(UI_get_npc_object_23(Iolo), var0007)) goto labelFunc0759_0264;
		UI_remove_from_party_27(Iolo);
	labelFunc0759_0264:
		UI_set_schedule_type_25(Dupre, 0x000F);
		UI_remove_npc_4C(Dupre);
		UI_set_new_schedules_B6(Shamino, 0x0000, 0x000A, [0x025F, 0x0A33]);
		UI_run_schedule_B7(Shamino);
		UI_set_new_schedules_B6(Iolo, 0x0000, 0x001D, [0x0428, 0x09C7]);
		UI_move_object_4B(Iolo, [0x0428, 0x09C7, 0x0000]);
		UI_run_schedule_B7(Iolo);
		Func092B();
		var0008 = UI_get_object_position_20(0xFE9C);
		var0009 = [(var0008[0x0001] + 0x00B0), var0008[0x0002], var0008[0x0003]];
		UI_move_object_4B(0xFE9C, var0009);
		var000A = ("@Yow!@" & ("" & ("@What happened?@" & ("@Where are my friends!@" & ("@Iolo?@" & ("@Shamino???@" & "@Dupre?!@"))))));
		Func094F(0xFE9C, var000A);
		UI_sprite_effect_68(0x000D, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		gflags[0006] = true;
		if(!(!Func097D(0xFE9C, 0x0001, 0x0321, 0xFE99, 0xFE99))) goto labelFunc0759_036E;
		var0006 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0000);
	labelFunc0759_036E:
		var000B = [0x025C, 0x00E7, 0x0326, 0x0303, 0x02F9, 0x022A, 0x0343, 0x0106, 0x0253, 0x025E, 0x01EA, 0x00B2, 0x0256, 0x024B, 0x0179, 0x0252, 0x017F, 0x029A];
		var000C = [0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99];
		var000D = [0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0xFE99, 0x0006, 0xFE99, 0xFE99, 0xFE99, 0xFE99];
		var000E = Func092C(0x0001);
		var000F = Func092C(0x0002);
		var0010 = Func092C(0x0003);
		var0011 = UI_get_array_size_73(var000B);
	labelFunc0759_0447:
		if(!(var0011 > 0x0000)) goto labelFunc0759_0577;
		enum();
	labelFunc0759_0452:
		for (var0014 in var0000 with var0012 to var0013 atend labelFunc0759_051C);
		var0015 = UI_remove_cont_items_37(var0014, 0x0001, var000B[var0011], var000C[var0011], var000D[var0011], 0x0000);
		var0016 = 0x0001;
		if(!(var000E[var0011] == 0x03B4)) goto labelFunc0759_049C;
		var0016 = UI_get_random_00(0x0064);
	labelFunc0759_049C:
		if(!var0015) goto labelFunc0759_0519;
		var0017 = UI_count_objects_31(var0014, var000B[var0011], var000C[var0011], var000D[var0011]);
		var0006 = UI_remove_cont_items_37(var0014, var0017, var000B[var0011], var000C[var0011], var000D[var0011], 0x0000);
		var0006 = UI_add_cont_items_36(var0014, var0016, var000E[var0011], var000F[var0011], var0010[var0011], 0x0000);
		if(!(var0006 == 0x0000)) goto labelFunc0759_0512;
		goto labelFunc0759_056A;
		goto labelFunc0759_0519;
	labelFunc0759_0512:
		var0015 = false;
		goto labelFunc0759_0523;
	labelFunc0759_0519:
		goto labelFunc0759_0452;
	labelFunc0759_051C:
		if(!(!var0015)) goto labelFunc0759_056A;
	labelFunc0759_0523:
		var0006 = UI_add_cont_items_36(0xFE9C, var0016, var000E[var0011], var000F[var0011], var0010[var0011], 0x0000);
		if(!var0006) goto labelFunc0759_056A;
		var0006 = UI_add_party_items_35(var0016, var000E[var0011], var000F[var0011], var0010[var0011], 0x0000);
	labelFunc0759_056A:
		var0011 = (var0011 - 0x0001);
		goto labelFunc0759_0447;
	labelFunc0759_0577:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D2 0x7D2 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0998 0x998 (var var0000, var var0001);

Func075A 0x75A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc075A_00D7;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	UI_end_conversation_86();
	UI_clear_item_say_4E(0xFE9C);
	var0000 = UI_get_object_position_20(0xFE9C);
	var0000[0x0002] = (var0000[0x0002] + 0x0007);
	UI_set_schedule_type_25(0xFF2D, 0x000F);
	UI_move_object_4B(0xFF2D, var0000);
	Func097F(0xFF2D, "@Thou hast arrived!@", 0x0000);
	Func097F(0xFE9C, "@Who said that?@", 0x0003);
	0xFF2D;
	calle();
	var0001 = UI_delayed_execute_usecode_array_02(0xFF2D, [0x23, 0x55, 0x0363], 0x0014);
	UI_sprite_effect_68(0x0007, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0051);
	UI_set_schedule_type_25(0xFF31, 0x000F);
	var0001 = UI_execute_usecode_array_01(0xFF31, [0x59, 0x36]);
	var0002 = Func09A0(0x0000, 0x0001);
	UI_play_music_39(0x003F, var0002);
	labelFunc075A_00D7:
		if(!((event == 0x0002) && (gflags[000A] == true))) goto labelFunc075A_013F;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		UcMessage("\"This fire ring shall save thee from being destroyed during this battle, Hero. Neither of us means thee harm, but errors can occur in the heat of combat. Remain within the ring!\"");
		UcSay;
		UI_end_conversation_86();
		var0002 = Func09A0(0x0007, 0x0001);
		if(!var0002) goto labelFunc075A_0117;
		UI_play_music_39(0x0002, var0002);
	labelFunc075A_0117:
		Func0998(UI_get_npc_object_23(0xFE9C), 0x037F);
		var0001 = UI_execute_usecode_array_01(0xFF2D, [0x23, 0x59, 0x0002, 0x64]);
		gflags[000A] = false;
		abrt();
	labelFunc075A_013F:
		if(!(event == 0x0002)) goto labelFunc075A_016A;
		UI_play_sound_effect_16(0x0047);
		UI_obj_sprite_effect_91(0xFF2D, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc075A_016A:
		return;
}
Func075B 0x75B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(item, 0x032A, 0x0003, 0x0000);
	var0001 = UI_get_item_frame_1A(var0000);
	if(!((var0001 == 0x0000) || (var0001 == 0x0001))) goto labelFunc075B_008A;
	var0002 = UI_get_object_position_20(var0000);
	UI_play_sound_effect_16(0x0077);
	UI_sprite_effect_68(0x0012, (var0002[0x0001] - 0x0003), (var0002[0x0002] - 0x0003), 0x0000, 0x0000, 0x0000, Dupre);
	UI_set_item_frame_1B(var0000, 0x0001);
	var0003 = UI_set_item_quality_1D(var0000, 0x000C);
	UI_clear_item_flag_A5(var0000, 0x0012);
	gflags[0225] = true;
	labelFunc075B_008A:
		return;
}
Func075D 0x75D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(item, 0x031F, 0x000A, 0x0000);
	enum();
	labelFunc075D_0012:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc075D_0056);
		if(!(UI_get_item_frame_1A(var0003) == 0x0012)) goto labelFunc075D_0053;
		var0000 = UI_execute_usecode_array_01(var0003, [0x23, 0x52, "@Thou, stop!@", 0x27, 0x000F, 0x52, "@Wouldst thou talk with me?@", 0x27, 0x0014, 0x52, "@Please...@"]);
	labelFunc075D_0053:
		goto labelFunc075D_0012;
	labelFunc075D_0056:
		return;
}
Func075E 0x75E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = [0x096B, 0x0B43, 0x0967, 0x0B43, 0x0967, 0x0B5F, 0x096B, 0x0B5F];
	var0001 = 0x0001;
	labelFunc075E_0024:
		if(!(var0001 <= 0x0004)) goto labelFunc075E_00B0;
		UI_play_sound_effect_16(0x0077);
		var0002 = UI_create_new_object_2C(0x02D8);
		if(!var0002) goto labelFunc075E_00AD;
		UI_set_item_frame_1B(var0002, 0x0000);
		UI_set_item_flag_A4(var0002, 0x0012);
		var0003 = (var0001 * 0x0002);
		var0004 = UI_update_last_created_2F([var0000[(var0003 - 0x0001)], var0000[var0003], 0x0000]);
		UI_sprite_effect_68(0x0015, var0000[(var0003 - 0x0001)], var0000[var0003], 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = (var0001 + 0x0001);
	labelFunc075E_00AD:
		goto labelFunc075E_0024;
	labelFunc075E_00B0:
		return;
}
// externs
extern Func0884 0x884 (var var0000);
extern Func0885 0x885 (var var0000);

Func075F 0x75F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_find_nearby_41(item, 0x0376, 0x0005, 0x0000);
	var0001 = UI_get_item_frame_1A(var0000);
	if(!((var0001 % 0x0002) == 0x0000)) goto labelFunc075F_003A;
	UI_set_item_frame_1B(var0000, (var0001 + 0x0001));
	goto labelFunc075F_0048;
	labelFunc075F_003A:
		UI_set_item_frame_1B(var0000, (var0001 - 0x0001));
	labelFunc075F_0048:
		UI_play_sound_effect2_A1(0x0046, var0000);
		var0002 = UI_get_item_quality_1C(var0000);
		if(!(var0002 == 0x0000)) goto labelFunc075F_006C;
		Func0884(var0002);
	labelFunc075F_006C:
		if(!(var0002 == 0x0001)) goto labelFunc075F_0083;
		if(!(!gflags[02ED])) goto labelFunc075F_0083;
		Func0884(var0002);
	labelFunc075F_0083:
		if(!(var0002 == 0x0002)) goto labelFunc075F_009A;
		if(!(!gflags[02EF])) goto labelFunc075F_009A;
		Func0884(var0002);
	labelFunc075F_009A:
		if(!(var0002 == 0x0003)) goto labelFunc075F_00B1;
		if(!(!gflags[02F0])) goto labelFunc075F_00B1;
		Func0884(var0002);
	labelFunc075F_00B1:
		if(!((var0002 >= 0x0004) && (var0002 <= 0x0006))) goto labelFunc075F_00C9;
		Func0885(var0002);
	labelFunc075F_00C9:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func0760 0x760 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = [0x0225];
	var0001 = UI_find_nearby_41(item, var0000, 0x0002, 0x0000);
	var0002 = UI_get_object_position_20(var0001);
	if(!var0001) goto labelFunc0760_0143;
	Func095D(0x0064);
	UI_remove_item_84(var0001);
	UI_play_sound_effect_16(0x0074);
	UI_sprite_effect_68(0x0019, var0002[0x0001], var0002[0x0002], 0x0001, 0x0000, 0x0000, Dupre);
	var0003 = UI_find_nearby_41(item, 0x0121, 0x0006, 0x0000);
	enum();
	labelFunc0760_006F:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0760_0084);
		UI_remove_item_84(var0006);
		goto labelFunc0760_006F;
	labelFunc0760_0084:
		var0007 = UI_create_new_object_2C(0x0121);
		if(!var0007) goto labelFunc0760_00B1;
		var0008 = UI_update_last_created_2F([0x09B8, 0x0B5C, 0x0001]);
		UI_set_item_frame_1B(var0007, 0x0000);
	labelFunc0760_00B1:
		var0009 = UI_find_nearby_41(item, 0x0300, 0x000C, 0x0000);
		enum();
	labelFunc0760_00C3:
		for (var000C in var0009 with var000A to var000B atend labelFunc0760_00FE);
		UI_play_sound_effect_16(0x0021);
		UI_remove_item_84(var000C);
		UI_sprite_effect_68(0x0020, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc0760_00C3;
	labelFunc0760_00FE:
		var000D = UI_find_nearby_41(0xFE9C, 0x0113, 0x0010, 0x0010);
		enum();
	labelFunc0760_0112:
		for (var0010 in var000D with var000E to var000F atend labelFunc0760_013B);
		var0011 = UI_get_item_frame_1A(var0010);
		if(!(var0011 == 0x0000)) goto labelFunc0760_0138;
		UI_remove_item_84(var0010);
	labelFunc0760_0138:
		goto labelFunc0760_0112;
	labelFunc0760_013B:
		UI_remove_item_84(item);
		goto labelFunc0760_0171;
	labelFunc0760_0143:
		var0002 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0009, var0002[0x0001], var0002[0x0002], 0x0001, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
	labelFunc0760_0171:
		return;
}
// externs
extern var Func0941 0x941 (var var0000);

Func0761 0x761 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	UI_play_sound_effect_16(0x001E);
	var0000 = [0x038E, 0x0BB8, 0x0000];
	var0001 = (0x000F + Func0941(0xFE9C));
	labelFunc0761_0023:
		if(!(var0001 != 0x0000)) goto labelFunc0761_00FA;
		var0001 = (var0001 - 0x0001);
		var0002 = (var0000[0x0001] + UI_die_roll_17(0xFFF7, 0x000A));
		var0003 = (var0000[0x0002] + UI_die_roll_17(0xFFEE, 0x000F));
		var0004 = var0000[0x0003];
		var0005 = [var0002, var0003, 0x0000];
		var0006 = UI_die_roll_17(0x0001, 0x0004);
		if(!((var0006 == 0x0001) || (var0006 == 0x0002))) goto labelFunc0761_00A0;
		var0007 = UI_create_new_object_2C(0x037F);
	labelFunc0761_00A0:
		if(!((var0006 == 0x0003) || (var0006 == 0x0004))) goto labelFunc0761_00BC;
		var0007 = UI_create_new_object_2C(0x0231);
	labelFunc0761_00BC:
		if(!var0007) goto labelFunc0761_00F7;
		var0008 = UI_die_roll_17(0x0005, 0x000F);
		var0006 = UI_set_item_quality_1D(var0007, var0008);
		var0009 = UI_update_last_created_2F(var0005);
		UI_set_item_flag_A4(var0007, 0x0012);
		UI_play_sound_effect_16(0x0029);
	labelFunc0761_00F7:
		goto labelFunc0761_0023;
	labelFunc0761_00FA:
		return;
}
Func0762 0x762 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = 0x0300;
	if(!(var0000 == 0x0002)) goto labelFunc0762_002C;
	var0002 = 0x0231;
	var0003 = 0x0028;
	labelFunc0762_002C:
		if(!(var0000 == 0x0003)) goto labelFunc0762_0042;
		var0002 = 0x037F;
		var0003 = 0x0029;
	labelFunc0762_0042:
		if(!(var0000 == 0x0004)) goto labelFunc0762_0058;
		var0002 = 0x0384;
		var0003 = 0x0068;
	labelFunc0762_0058:
		if(!(var0000 == 0x0005)) goto labelFunc0762_006E;
		var0002 = 0x0386;
		var0003 = 0x0045;
	labelFunc0762_006E:
		var0004 = UI_create_new_object_2C(var0002);
		if(!var0004) goto labelFunc0762_0099;
		var0005 = UI_update_last_created_2F(var0001);
		UI_play_sound_effect_16(var0003);
		UI_clear_item_flag_A5(var0004, 0x0012);
	labelFunc0762_0099:
		return;
}
Func0763 0x763 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0003)) goto labelFunc0763_0155;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x00D1, 0x0001, 0x0000);
	var0002 = 0x0000;
	enum();
	labelFunc0763_0028:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0763_0083);
		var0006 = UI_get_item_frame_1A(var0005);
		var0007 = UI_get_object_position_20(item);
		var0008 = UI_get_object_position_20(var0005);
		if(!((var0000 > 0x0000) && ((var0006 > 0x0009) && ((var0006 < 0x000E) && (var0007[0x0003] == var0008[0x0003]))))) goto labelFunc0763_0080;
		var0002 = var0005;
		goto labelFunc0763_0083;
	labelFunc0763_0080:
		goto labelFunc0763_0028;
	labelFunc0763_0083:
		if(!var0002) goto labelFunc0763_0155;
		if(!(var0006 == 0x000A)) goto labelFunc0763_00A2;
		if(!(!gflags[02CD])) goto labelFunc0763_00A1;
		gflags[02CD] = true;
		goto labelFunc0763_00A2;
	labelFunc0763_00A1:
		exit2();
	labelFunc0763_00A2:
		if(!(var0006 == 0x000B)) goto labelFunc0763_00BB;
		if(!(!gflags[02CE])) goto labelFunc0763_00BA;
		gflags[02CE] = true;
		goto labelFunc0763_00BB;
	labelFunc0763_00BA:
		exit2();
	labelFunc0763_00BB:
		if(!(var0006 == 0x000C)) goto labelFunc0763_00D4;
		if(!(!gflags[02CF])) goto labelFunc0763_00D3;
		gflags[02CF] = true;
		goto labelFunc0763_00D4;
	labelFunc0763_00D3:
		exit2();
	labelFunc0763_00D4:
		if(!(var0006 == 0x000D)) goto labelFunc0763_00ED;
		if(!(!gflags[02D0])) goto labelFunc0763_00EC;
		gflags[02D0] = true;
		goto labelFunc0763_00ED;
	labelFunc0763_00EC:
		exit2();
	labelFunc0763_00ED:
		var0009 = UI_get_object_position_20(item);
		var0009[0x0001] = (var0009[0x0001] - (var0009[0x0003] / 0x0002));
		var0009[0x0002] = (var0009[0x0002] - (var0009[0x0003] / 0x0002));
		UI_sprite_effect_68(0x0015, var0009[0x0001], var0009[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		UI_remove_item_84(var0002);
		UI_remove_item_84(item);
	labelFunc0763_0155:
		return;
}
Func0764 0x764 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = [0x038B, 0x0B4F, 0x0000];
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0798]);
	var0001 = UI_create_new_object_2C(0x00CA);
	if(!var0001) goto labelFunc0764_004F;
	var0002 = UI_update_last_created_2F(var0000);
	UI_set_item_frame_1B(var0001, 0x0004);
	UI_clear_item_flag_A5(var0001, 0x0012);
	labelFunc0764_004F:
		return;
}
// externs
extern Func095D 0x95D (var var0000);
extern Func0888 0x888 ();

Func0765 0x765 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x01C2, 0x0001, 0x0000);
	enum();
	labelFunc0765_001A:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0765_02C8);
		var0005 = UI_get_item_frame_1A(var0004);
		var0006 = UI_get_object_position_20(var0004);
		if(!(var0000 == 0x0001)) goto labelFunc0765_00DC;
		if(!(var0005 == 0x0008)) goto labelFunc0765_00B6;
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0015, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0004);
		var0007 = UI_create_new_object_2C(0x01C2);
		if(!var0007) goto labelFunc0765_00A1;
		var0004 = UI_update_last_created_2F([var0006]);
		UI_set_item_frame_1B(var0007, 0x000C);
	labelFunc0765_00A1:
		gflags[02F5] = true;
		Func095D(0x00FA);
		Func0888();
		UI_remove_item_84(item);
		goto labelFunc0765_00DC;
	labelFunc0765_00B6:
		UI_sprite_effect_68(0x0009, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
	labelFunc0765_00DC:
		if(!(var0000 == 0x0002)) goto labelFunc0765_017F;
		if(!(var0005 == 0x0009)) goto labelFunc0765_0159;
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0015, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0004);
		var0007 = UI_create_new_object_2C(0x01C2);
		if(!var0007) goto labelFunc0765_0144;
		var0004 = UI_update_last_created_2F([var0006]);
		UI_set_item_frame_1B(var0007, 0x000C);
	labelFunc0765_0144:
		gflags[02F6] = true;
		Func095D(0x00FA);
		Func0888();
		UI_remove_item_84(item);
		goto labelFunc0765_017F;
	labelFunc0765_0159:
		UI_sprite_effect_68(0x0009, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
	labelFunc0765_017F:
		if(!(var0000 == 0x0003)) goto labelFunc0765_0222;
		if(!(var0005 == 0x000A)) goto labelFunc0765_01FC;
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0015, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0004);
		var0007 = UI_create_new_object_2C(0x01C2);
		if(!var0007) goto labelFunc0765_01E7;
		var0004 = UI_update_last_created_2F([var0006]);
		UI_set_item_frame_1B(var0007, 0x000C);
	labelFunc0765_01E7:
		gflags[02F7] = true;
		Func095D(0x00FA);
		Func0888();
		UI_remove_item_84(item);
		goto labelFunc0765_0222;
	labelFunc0765_01FC:
		UI_sprite_effect_68(0x0009, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
	labelFunc0765_0222:
		if(!(var0000 == 0x0004)) goto labelFunc0765_02C5;
		if(!(var0005 == 0x000B)) goto labelFunc0765_029F;
		UI_play_sound_effect_16(0x0074);
		UI_sprite_effect_68(0x0015, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0004);
		var0007 = UI_create_new_object_2C(0x01C2);
		if(!var0007) goto labelFunc0765_028A;
		var0004 = UI_update_last_created_2F([var0006]);
		UI_set_item_frame_1B(var0007, 0x000C);
	labelFunc0765_028A:
		gflags[02F8] = true;
		Func095D(0x00FA);
		Func0888();
		UI_remove_item_84(item);
		goto labelFunc0765_02C5;
	labelFunc0765_029F:
		UI_sprite_effect_68(0x0009, var0006[0x0001], var0006[0x0002], 0x0002, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
	labelFunc0765_02C5:
		goto labelFunc0765_001A;
	labelFunc0765_02C8:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func09A6 0x9A6 (var var0000);

Func0766 0x766 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	if(!(event == 0x0002)) goto labelFunc0766_0013;
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	abrt();
	labelFunc0766_0013:
		if(!(event == 0x0003)) goto labelFunc0766_020A;
		var0000 = UI_get_party_list2_AA();
		var0001 = UI_get_npc_object_23(0xFE9C);
		var0002 = false;
		enum();
	labelFunc0766_0031:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc0766_00C1);
		if(!(var0005 != var0001)) goto labelFunc0766_00BE;
		var0002 = true;
		var0006 = ["@I'm not going in there!@", "@I shall wait here...@", "@Thou must continue alone, Avatar.@", "@Good luck, Avatar!@", "@I will stay here, Avatar.@", "@Be brave, Avatar!@"];
		Func097F(var0005[UI_get_random_00(UI_get_array_size_73(var0005))], var0006[UI_get_random_00(UI_get_array_size_73(var0006))], 0x0002);
		UI_remove_from_party_27(var0005);
		UI_set_npc_id_BD(var0005, 0x001F);
		var0007 = UI_get_object_position_20(var0005);
		UI_set_schedule_type_25(var0005, 0x001D);
		Func09AC(var0005, var0007[0x0001], var0007[0x0002], 0x001D);
	labelFunc0766_00BE:
		goto labelFunc0766_0031;
	labelFunc0766_00C1:
		if(!var0002) goto labelFunc0766_00E8;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0008 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0766], 0x0032);
	labelFunc0766_00E8:
		var0009 = false;
		var000A = UI_find_nearby_41(item, 0x0129, 0x0032, 0x0000);
		if(!(var000A != 0x0000)) goto labelFunc0766_011F;
		enum();
	labelFunc0766_0108:
		for (var000D in var000A with var000B to var000C atend labelFunc0766_011C);
		var0009 = var000D;
		goto labelFunc0766_0108;
	labelFunc0766_011C:
		goto labelFunc0766_0156;
	labelFunc0766_011F:
		var000E = UI_create_new_object_2C(0x0320);
		UI_clear_item_flag_A5(var000E, 0x0012);
		UI_set_item_frame_1B(var000E, 0x0004);
		var0008 = UI_update_last_created_2F([0x0A0B, 0x0AB4, 0x0000]);
		var0009 = var000E;
	labelFunc0766_0156:
		if(!var0009) goto labelFunc0766_020A;
		UI_clear_item_flag_A5(0xFE9C, 0x0000);
		var000F = 0x0000;
		var000A = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0766_017F:
		if(!(var000F < 0x0002)) goto labelFunc0766_020A;
		enum();
	labelFunc0766_018A:
		for (var000D in var000A with var0010 to var0011 atend labelFunc0766_01EA);
		if(!(Func09A6(var000D) || (var000F == 0x0001))) goto labelFunc0766_01E7;
		var0008 = UI_get_item_shape_18(var000D);
		if(!(!((var0008 == 0x01E6) || (var0008 == 0x025F)))) goto labelFunc0766_01E7;
		if(!(!UI_set_last_created_2E(var000D))) goto labelFunc0766_01D5;
		UI_error_message_40("Tell Team Error 1");
	labelFunc0766_01D5:
		if(!(!UI_give_last_created_43(var0009))) goto labelFunc0766_01E7;
		UI_error_message_40("Tell Team Error 2");
	labelFunc0766_01E7:
		goto labelFunc0766_018A;
	labelFunc0766_01EA:
		var000F = (var000F + 0x0001);
		var000A = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0766_017F;
	labelFunc0766_020A:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func095D 0x95D (var var0000);

Func0767 0x767 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = false;
	var0001 = false;
	var0002 = false;
	var0003 = false;
	var0004 = UI_get_object_position_20(0xFE9C);
	var0005 = var0004[0x0001];
	var0006 = var0004[0x0002];
	if(!((var0005 > 0x098F) && ((var0005 < 0x09EF) && ((var0006 > 0x0A8F) && (var0006 < 0x0AEF))))) goto labelFunc0767_0068;
	var0000 = true;
	UI_play_music_39(0x0005, Func09A0(0x0005, 0x0001));
	Func095D(0x00C8);
	labelFunc0767_0068:
		if(!((var0005 > 0x090F) && ((var0005 < 0x096F) && ((var0006 > 0x0A8F) && (var0006 < 0x0AEF))))) goto labelFunc0767_00A4;
		var0001 = true;
		UI_play_music_39(0x0005, Func09A0(0x0005, 0x0001));
		Func095D(0x0190);
	labelFunc0767_00A4:
		if(!((var0005 > 0x090F) && ((var0005 < 0x096F) && ((var0006 > 0x0A0F) && (var0006 < 0x0A6F))))) goto labelFunc0767_00E0;
		var0002 = true;
		UI_play_music_39(0x0005, Func09A0(0x0005, 0x0001));
		Func095D(0x0258);
	labelFunc0767_00E0:
		if(!((var0005 > 0x098F) && ((var0005 < 0x09EF) && ((var0006 > 0x0A0F) && (var0006 < 0x0A6F))))) goto labelFunc0767_011C;
		var0003 = true;
		UI_play_music_39(0x0005, Func09A0(0x0005, 0x0001));
		Func095D(0x0320);
	labelFunc0767_011C:
		if(!var0000) goto labelFunc0767_0176;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
	labelFunc0767_0176:
		if(!var0001) goto labelFunc0767_01D0;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
	labelFunc0767_01D0:
		if(!var0002) goto labelFunc0767_022A;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
	labelFunc0767_022A:
		if(!var0003) goto labelFunc0767_02A0;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x0097, 0x000B, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
	labelFunc0767_02A0:
		if(!(var0000 == true)) goto labelFunc0767_02FC;
		var0007 = [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999];
		var0008 = [0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F];
	labelFunc0767_02FC:
		if(!(var0001 == true)) goto labelFunc0767_0358;
		var0007 = [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919];
		var0008 = [0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F];
	labelFunc0767_0358:
		if(!(var0002 == true)) goto labelFunc0767_03B4;
		var0007 = [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919];
		var0008 = [0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F];
	labelFunc0767_03B4:
		if(!(var0003 == true)) goto labelFunc0767_0410;
		var0007 = [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999];
		var0008 = [0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F];
	labelFunc0767_0410:
		var0009 = 0x0000;
		enum();
	labelFunc0767_0417:
		for (var000C in var0007 with var000A to var000B atend labelFunc0767_045C);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x02D8);
		UI_set_item_frame_1B(var000D, 0x0004);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc0767_0417;
	labelFunc0767_045C:
		if(!(var0000 == true)) goto labelFunc0767_04B2;
		var0007 = [0x09EF, 0x09EF, 0x09EF, 0x09EF, 0x09EF, 0x098F, 0x098F, 0x098F, 0x098F, 0x098F, 0x098F];
		var0008 = [0x0AE9, 0x0AD9, 0x0AC9, 0x0AA9, 0x0A99, 0x0AE9, 0x0AD9, 0x0AC9, 0x0AB9, 0x0AA9, 0x0A99];
	labelFunc0767_04B2:
		if(!(var0001 == true)) goto labelFunc0767_050E;
		var0007 = [0x096F, 0x096F, 0x096F, 0x096F, 0x096F, 0x096F, 0x090F, 0x090F, 0x090F, 0x090F, 0x090F, 0x090F];
		var0008 = [0x0AE9, 0x0AD9, 0x0AC9, 0x0AB9, 0x0AA9, 0x0A99, 0x0AE9, 0x0AD9, 0x0AC9, 0x0AB9, 0x0AA9, 0x0A99];
	labelFunc0767_050E:
		if(!(var0002 == true)) goto labelFunc0767_056A;
		var0007 = [0x096F, 0x096F, 0x096F, 0x096F, 0x096F, 0x096F, 0x090F, 0x090F, 0x090F, 0x090F, 0x090F, 0x090F];
		var0008 = [0x0A69, 0x0A59, 0x0A49, 0x0A39, 0x0A29, 0x0A19, 0x0A69, 0x0A59, 0x0A49, 0x0A39, 0x0A29, 0x0A19];
	labelFunc0767_056A:
		if(!(var0003 == true)) goto labelFunc0767_05C6;
		var0007 = [0x09EF, 0x09EF, 0x09EF, 0x09EF, 0x09EF, 0x09EF, 0x098F, 0x098F, 0x098F, 0x098F, 0x098F, 0x098F];
		var0008 = [0x0A69, 0x0A59, 0x0A49, 0x0A39, 0x0A29, 0x0A19, 0x0A69, 0x0A59, 0x0A49, 0x0A39, 0x0A29, 0x0A19];
	labelFunc0767_05C6:
		var0009 = 0x0000;
		enum();
	labelFunc0767_05CD:
		for (var000C in var0007 with var000F to var0010 atend labelFunc0767_0612);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x01DB);
		UI_set_item_frame_1B(var000D, 0x000A);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc0767_05CD;
	labelFunc0767_0612:
		if(!(var0000 == true)) goto labelFunc0767_07A8;
		var0007 = [0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F];
		var0007 = (var0007 & [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F]);
		var0008 = [0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9];
		var0008 = (var0008 & [0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99]);
	labelFunc0767_07A8:
		if(!(var0001 == true)) goto labelFunc0767_0938;
		var0007 = [0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F];
		var0007 = (var0007 & [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F]);
		var0008 = [0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9];
		var0008 = (var0008 & [0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99]);
	labelFunc0767_0938:
		if(!(var0002 == true)) goto labelFunc0767_0AC8;
		var0007 = [0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F];
		var0007 = (var0007 & [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F]);
		var0008 = [0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A49, 0x0A49, 0x0A49, 0x0A49, 0x0A49];
		var0008 = (var0008 & [0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A19, 0x0A19, 0x0A19, 0x0A19, 0x0A19]);
	labelFunc0767_0AC8:
		if(!(var0003 == true)) goto labelFunc0767_0C58;
		var0007 = [0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F];
		var0007 = (var0007 & [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F]);
		var0008 = [0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A49, 0x0A49, 0x0A49, 0x0A49, 0x0A49];
		var0008 = (var0008 & [0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A19, 0x0A19, 0x0A19, 0x0A19, 0x0A19]);
	labelFunc0767_0C58:
		var0009 = 0x0000;
		enum();
	labelFunc0767_0C5F:
		for (var000C in var0007 with var0011 to var0012 atend labelFunc0767_0CA4);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var000D, 0x0000);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc0767_0C5F;
	labelFunc0767_0CA4:
		if(!(var0000 == true)) goto labelFunc0767_0CC8;
		UI_remove_from_area_C4(0x0113, 0x0007, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
	labelFunc0767_0CC8:
		if(!(var0001 == true)) goto labelFunc0767_0CEC;
		UI_remove_from_area_C4(0x0113, 0x0007, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
	labelFunc0767_0CEC:
		if(!(var0002 == true)) goto labelFunc0767_0D10;
		UI_remove_from_area_C4(0x0113, 0x0007, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
	labelFunc0767_0D10:
		if(!(var0003 == true)) goto labelFunc0767_0D34;
		UI_remove_from_area_C4(0x0113, 0x0007, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
	labelFunc0767_0D34:
		return;
}
// externs
extern Func07D2 0x7D2 (var var0000);
extern Func07D1 0x7D1 (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0768 0x768 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	if(!(event == 0x0003)) goto labelFunc0768_0201;
	gflags[02FC] = true;
	var0000 = [0x0A45, 0x0A27, 0x0A45, 0x0A24, 0x0A47, 0x0A22];
	var0001 = [0x00F0, 0x00EF, 0x00EE];
	var0002 = 0x0001;
	labelFunc0768_0039:
		if(!(var0002 <= 0x0003)) goto labelFunc0768_01DD;
		var0003 = (var0002 * 0x0002);
		var0004 = UI_create_new_object2_2D(0x0299, [var0000[(var0003 - 0x0001)], var0000[var0003], 0x0000]);
		if(!var0004) goto labelFunc0768_01DA;
		UI_set_schedule_type_25(var0004, 0x000F);
		var0005 = UI_add_cont_items_36(var0004, 0x0001, 0x0281, var0001[var0002], var0003, false);
		var0002 = (var0002 + 0x0001);
		UI_sprite_effect_68(0x001A, var0000[(var0003 - 0x0001)], var0000[var0003], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0004;
		calle();
		UI_set_npc_id_BD(var0004, var0002);
		UI_set_alignment_4A(var0004, 0x0002);
		UI_clear_item_flag_A5(var0004, 0x0012);
		UI_clear_item_flag_A5(var0004, 0x001D);
		UI_set_npc_id_BD(var0004, (var0002 + 0x000A));
		var0006 = UI_get_npc_prop_28(var0004, 0x0000);
		var0007 = (0x000B - var0006);
		var0005 = UI_set_npc_prop_29(var0004, 0x0000, var0007);
		var0006 = UI_get_npc_prop_28(var0004, 0x0001);
		var0007 = (0x000D - var0006);
		var0005 = UI_set_npc_prop_29(var0004, 0x0001, var0007);
		var0006 = UI_get_npc_prop_28(var0004, 0x0002);
		var0007 = (0x0014 - var0006);
		var0005 = UI_set_npc_prop_29(var0004, 0x0002, var0007);
		var0006 = UI_get_npc_prop_28(var0004, 0x0004);
		var0007 = (0x000C - var0006);
		var0005 = UI_set_npc_prop_29(var0004, 0x0004, var0007);
		var0006 = UI_get_npc_prop_28(var0004, 0x0003);
		var0007 = (0x000B - var0006);
		var0005 = UI_set_npc_prop_29(var0004, 0x0003, var0007);
		if(!(var0002 == 0x0003)) goto labelFunc0768_01DA;
		var0004;
		calle();
	labelFunc0768_01DA:
		goto labelFunc0768_0039;
	labelFunc0768_01DD:
		var0008 = Func09A0(0x0000, 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(var0008, [0x23, 0x55, 0x0768], 0x000E);
		abrt();
	labelFunc0768_0201:
		if(!(event == 0x0002)) goto labelFunc0768_0375;
		var0009 = UI_is_pc_female_6F();
		var000A = "he";
		var000B = "him";
		var000C = "his";
		if(!var0009) goto labelFunc0768_023A;
		var000A = "she";
		var000B = "her";
		var000C = "her";
	labelFunc0768_023A:
		UI_show_npc_face0_05(0xFEC6, 0x0000);
		UcMessage("\"Not so fast, deary! Ye don't think that ye kin just dance outta here with that little seed so easy, now do ye?\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"And who will stop me, hag? Thou?\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Hag, now is it?! Well, we shall see about that, deary!\"");
		UcSay;
		UI_show_npc_face0_05(0xFEC8, 0x0000);
		UcMessage("\"I don't know about thee, Drusilla, but I think that lout would do well as a candlestick. What thinkest thou?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face1_06(0xFEC6, 0x0000);
		UcMessage("\"With such a bright wit, I think it would be fitting indeed!\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Bright wit?! I would have said half-wit, trying to keep this flawed world alive!");
		UcSay;
		UcMessage("\"One would think that a pawn of prophecy would be... I don't know, more intelligent!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face1_06(0xFEC7, 0x0000);
		UcMessage("\"Oh, don't be so hard on ");
		UcMessage(var000B);
		UcMessage("! It's not ");
		UcMessage(var000C);
		UcMessage(" fault that ");
		UcMessage(var000A);
		UcMessage(" doesn't have the wisdom of the Guardian to guide ");
		UcMessage(var000B);
		UcMessage("...");
		UcSay;
		UcMessage("\"Besides, I think ");
		UcMessage(var000A);
		UcMessage(" is rather cute...\"");
		UcSay;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Hsssst! Solaria! Thou shouldst not speak of the Guide to outsiders! Now thou hast sealed ");
		UcMessage(var000C);
		UcMessage(" fate! Wilt thou never learn to think beyond thy bed?!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		var000D = UI_find_nearby_41(0xFE9C, 0x0299, 0x001E, 0x0000);
		var000E = ["@Oh dear...@", "@Fool!@", "@Take that!@"];
		var000F = 0x0001;
		enum();
	labelFunc0768_0306:
		for (var0012 in var000D with var0010 to var0011 atend labelFunc0768_035C);
		Func097F(var0012, var000E[var000F], (var000F * 0x0004));
		if(!(var000F == 0x0003)) goto labelFunc0768_034F;
		var0005 = UI_delayed_execute_usecode_array_02(var0012, [0x23, 0x07D2, 0x27, 0x0002, 0x6F, 0x58, 0x0043], 0x000A);
	labelFunc0768_034F:
		var000F = (var000F + 0x0001);
		goto labelFunc0768_0306;
	labelFunc0768_035C:
		var0005 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0632], 0x0014);
		gflags[0007] = false;
	labelFunc0768_0375:
		return;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func0998 0x998 (var var0000, var var0001);

Func0769 0x769 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc0769_014B;
	var0000 = UI_create_new_object2_2D(0x03D5, [0x0BC7, 0x0A0C, 0x0001]);
	if(!var0000) goto labelFunc0769_014B;
	UI_clear_item_flag_A5(var0000, 0x0012);
	var0001 = Func099B(var0000, 0x0001, 0x0281, 0x00E6, 0x0007, 0x0000, false);
	var0001 = Func099B(var0000, 0x0001, 0x0281, 0x00DF, 0x0009, 0x0000, false);
	UI_set_alignment_4A(var0000, 0x0002);
	UI_set_schedule_type_25(var0000, 0x0000);
	var0002 = UI_get_npc_prop_28(var0000, 0x0000);
	var0003 = (0x0019 - var0002);
	var0001 = UI_set_npc_prop_29(var0000, 0x0000, var0003);
	var0002 = UI_get_npc_prop_28(var0000, 0x0001);
	var0003 = (0x0015 - var0002);
	var0001 = UI_set_npc_prop_29(var0000, 0x0001, var0003);
	var0002 = UI_get_npc_prop_28(var0000, 0x0002);
	var0003 = (0x001E - var0002);
	var0001 = UI_set_npc_prop_29(var0000, 0x0002, var0003);
	var0002 = UI_get_npc_prop_28(var0000, 0x0004);
	var0003 = (0x001E - var0002);
	var0001 = UI_set_npc_prop_29(var0000, 0x0004, var0003);
	var0002 = UI_get_npc_prop_28(var0000, 0x0003);
	var0003 = (0x001E - var0002);
	var0001 = UI_set_npc_prop_29(var0000, 0x0003, var0003);
	Func0998(UI_get_npc_object_23(0xFE9C), 0x037F);
	UI_play_sound_effect_16(0x002A);
	labelFunc0769_014B:
		return;
}
// externs
extern Func07D2 0x7D2 (var var0000);
extern Func07D1 0x7D1 (var var0000);

Func076A 0x76A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc076A_0159;
	if(!gflags[02FC]) goto labelFunc076A_000F;
	abrt();
	labelFunc076A_000F:
		var0000 = UI_get_item_quality_1C(item);
		var0001 = UI_get_object_position_20(item);
		var0002 = UI_create_new_object2_2D(0x0299, var0001);
		if(!var0002) goto labelFunc076A_0159;
		UI_sprite_effect_68(0x001A, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0002;
		calle();
		var0002;
		calle();
		UI_set_alignment_4A(var0002, 0x0000);
		UI_set_schedule_type_25(var0002, 0x000F);
		UI_set_npc_id_BD(var0002, var0000);
		UI_set_item_flag_A4(var0002, 0x0012);
		UI_set_item_flag_A4(var0002, 0x001D);
		var0003 = UI_get_npc_prop_28(var0002, 0x0000);
		var0004 = (0x000B - var0003);
		var0005 = UI_set_npc_prop_29(var0002, 0x0000, var0004);
		var0003 = UI_get_npc_prop_28(var0002, 0x0001);
		var0004 = (0x0012 - var0003);
		var0005 = UI_set_npc_prop_29(var0002, 0x0001, var0004);
		var0003 = UI_get_npc_prop_28(var0002, 0x0002);
		var0004 = (0x0018 - var0003);
		var0005 = UI_set_npc_prop_29(var0002, 0x0002, var0004);
		var0003 = UI_get_npc_prop_28(var0002, 0x0004);
		var0004 = (0x0010 - var0003);
		var0005 = UI_set_npc_prop_29(var0002, 0x0004, var0004);
		var0003 = UI_get_npc_prop_28(var0002, 0x0003);
		var0004 = (0x0010 - var0003);
		var0005 = UI_set_npc_prop_29(var0002, 0x0003, var0004);
	labelFunc076A_0159:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func076B 0x76B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0003)) goto labelFunc076B_00E0;
	if(!gflags[0313]) goto labelFunc076B_0017;
	UI_remove_item_84(item);
	abrt();
	goto labelFunc076B_00E0;
	labelFunc076B_0017:
		if(!Func097D(0xFE9B, 0x0001, 0x0289, 0xFE99, 0x000C)) goto labelFunc076B_00E0;
		var0000 = UI_get_object_position_20(item);
		UI_move_object_4B(0xFF31, var0000);
		Func09AC(0xFF31, var0000[0x0001], var0000[0x0002], 0x000F);
		UI_sprite_effect_68(0x001A, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		var0001 = Func09A0(0x0000, 0x0001);
		UI_play_music_39(0x003F, var0001);
		var0002 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x55, 0x07D2], 0x0002);
		Func097F(0xFF31, "@Avatar...@", 0x0003);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07D1], 0x0006);
		var0002 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x55, 0x04CF], 0x000D);
	labelFunc076B_00E0:
		return;
}
// externs
extern var Func08EB 0x8EB (var var0000, var var0001);

Func077E 0x77E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0002)) goto labelFunc077E_017C;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_find_nearby_41(item, 0x0315, 0x0028, 0x0000);
	if(!var0001) goto labelFunc077E_0179;
	var0000 = UI_get_object_position_20(var0001);
	UI_move_object_4B(0xFFDE, [(var0000[0x0001] - 0x0001), (var0000[0x0002] + 0x0001), 0x0000]);
	UI_set_item_frame_1B(UI_get_npc_object_23(0xFFDE), 0x0010);
	gflags[01BB] = true;
	UI_set_new_schedules_B6(0xFFDE, [0x0000, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x000E, 0x0005, 0x000C, 0x0005, 0x000B, 0x0005], [0x0813, 0x0525, 0x0817, 0x0540, 0x0802, 0x0550, 0x0817, 0x0540, 0x081A, 0x0534, 0x0817, 0x0540]);
	UI_run_schedule_B7(0xFFDE);
	UI_play_sound_effect_16(0x0077);
	var0002 = UI_delayed_execute_usecode_array_02(0xFFDD, [0x23, 0x52, "It worked!"], 0x0001);
	var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "Amazing!"], 0x0010);
	var0002 = UI_delayed_execute_usecode_array_02(0xFFDE, [0x23, 0x52, "I live!"], 0x0005);
	if(!(!UI_get_item_flag_A3(0xFFDD, 0x0004))) goto labelFunc077E_0179;
	gflags[0007] = true;
	UI_move_object_4B(0xFFDD, [0x0813, 0x053A, 0x0000]);
	UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_si_path_run_usecode_C1(0xFFDD, [0x081A, 0x052A, 0x0000], 0x0002, 0xFFDD, 0x0423, true);
	abrt();
	labelFunc077E_0179:
		goto labelFunc077E_0485;
	labelFunc077E_017C:
		var0003 = UI_get_item_quality_1C(item);
		var0000 = UI_get_object_position_20(item);
		var0004 = UI_find_nearby_41(item, 0xFE99, 0x0002, 0x0000);
		enum();
	labelFunc077E_019E:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc077E_03D8);
		if(!(UI_get_lift_50(var0007) == var0000[0x0003])) goto labelFunc077E_03D5;
		var0008 = 0x0000;
		if(!(UI_get_item_shape_18(var0007) == 0x031F)) goto labelFunc077E_02C2;
		var0009 = UI_get_item_frame_1A(var0007);
		if(!((var0009 == 0x0012) || (var0009 == 0x000A))) goto labelFunc077E_0226;
		if(!Func08EB(var0003, 0x0006)) goto labelFunc077E_0216;
		if(!(!Func08EB(var0003, 0x0007))) goto labelFunc077E_0213;
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0080);
	labelFunc077E_0213:
		goto labelFunc077E_0226;
	labelFunc077E_0216:
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0040);
	labelFunc077E_0226:
		if(!((var0009 == 0x0006) || (var0009 == 0x0011))) goto labelFunc077E_0274;
		if(!Func08EB(var0003, 0x0004)) goto labelFunc077E_0264;
		if(!(!Func08EB(var0003, 0x0005))) goto labelFunc077E_0261;
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0020);
	labelFunc077E_0261:
		goto labelFunc077E_0274;
	labelFunc077E_0264:
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0010);
	labelFunc077E_0274:
		if(!((var0009 == 0x0007) || (var0009 == 0x0008))) goto labelFunc077E_02C2;
		if(!Func08EB(var0003, 0x0002)) goto labelFunc077E_02B2;
		if(!(!Func08EB(var0003, 0x0003))) goto labelFunc077E_02AF;
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0008);
	labelFunc077E_02AF:
		goto labelFunc077E_02C2;
	labelFunc077E_02B2:
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0004);
	labelFunc077E_02C2:
		if(!((UI_get_item_shape_18(var0007) == 0x0289) && (UI_get_item_frame_1A(var0007) == 0x0001))) goto labelFunc077E_02F9;
		if(!(!Func08EB(var0003, 0x0000))) goto labelFunc077E_02F9;
		var0008 = 0x0001;
		var0003 = (var0003 + 0x0001);
	labelFunc077E_02F9:
		if(!var0008) goto labelFunc077E_03A7;
		UI_remove_item_84(var0007);
		UI_sprite_effect_68(0x0020, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		var0001 = UI_find_nearby_41(item, 0x0316, 0x0012, 0x0000);
		if(!var0001) goto labelFunc077E_03A4;
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x46, 0x0001, 0x58, 0x000D, 0x27, 0x0001, 0x46, 0x0002, 0x58, 0x000D, 0x27, 0x0001, 0x46, 0x0003, 0x58, 0x000D, 0x27, 0x0001, 0x46, 0x0004, 0x58, 0x000D, 0x27, 0x0001, 0x46, 0x0005, 0x58, 0x000D, 0x27, 0x0001, 0x46, 0x0000], 0x0001);
	labelFunc077E_03A4:
		goto labelFunc077E_03D5;
	labelFunc077E_03A7:
		UI_play_sound_effect_16(0x003E);
		if(!UI_set_last_created_2E(var0007)) goto labelFunc077E_03D5;
		var0002 = UI_update_last_created_2F([var0000[0x0001], (var0000[0x0002] + 0x0005), 0x0000]);
	labelFunc077E_03D5:
		goto labelFunc077E_019E;
	labelFunc077E_03D8:
		var0002 = UI_set_item_quality_1D(item, var0003);
		if(!((!gflags[01BB]) && (var0003 == 0x00FD))) goto labelFunc077E_0485;
		var0001 = UI_find_nearby_41(item, 0x0315, 0x0008, 0x0000);
		if(!var0001) goto labelFunc077E_0470;
		UI_play_sound_effect_16(0x0077);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x46, 0x0001, 0x58, 0x000E, 0x27, 0x0002, 0x46, 0x0002, 0x58, 0x000E, 0x27, 0x0002, 0x46, 0x0003, 0x58, 0x000E, 0x27, 0x0002, 0x46, 0x0004, 0x58, 0x000E, 0x27, 0x0002, 0x46, 0x0005, 0x58, 0x000E, 0x27, 0x0002, 0x46, 0x0000], 0x0002);
	labelFunc077E_0470:
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x55, 0x077E], 0x0014);
	labelFunc077E_0485:
		return;
}
// externs
extern Func07D2 0x7D2 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0780 0x780 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0002)) goto labelFunc0780_024F;
	var0000 = UI_find_nearby_41(item, 0x037C, 0x0019, 0x0000);
	var0001 = UI_get_item_quality_1C(var0000);
	var0002 = UI_set_item_quality_1D(var0000, (var0001 + 0x0001));
	if(!var0000) goto labelFunc0780_024F;
	if(!(var0001 > 0x0014)) goto labelFunc0780_00FF;
	var0003 = UI_get_object_position_20(var0000);
	UI_sprite_effect_68(0x001B, (var0003[0x0001] - 0x0001), (var0003[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x002A);
	UI_remove_item_84(var0000);
	var0003[0x0001] = (var0003[0x0001] - 0x0002);
	var0003[0x0002] = (var0003[0x0002] - 0x0002);
	var0002 = UI_create_new_object2_2D(0x02BE, var0003);
	if(!var0002) goto labelFunc0780_00F0;
	UI_set_schedule_type_25(var0002, 0x000A);
	var0002;
	calle();
	Func097F(0xFE9C, "@By the Virtues!@", 0x0005);
	UI_play_sound_effect_16(0x000F);
	var0002 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x02BE], 0x0014);
	labelFunc0780_00F0:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		abrt();
	labelFunc0780_00FF:
		if(!(var0001 > 0x0000)) goto labelFunc0780_024F;
		var0004 = [0x0863, 0x0863, 0x0863, 0x0863, 0x0862, 0x085F, 0x0866, 0x0869, 0x0867, 0x085F, 0x0867, 0x085E, 0x0867, 0x085E, 0x0860, 0x085E, 0x0863, 0x0866, 0x0862, 0x0869, 0x085E];
		var0005 = [0x04A4, 0x04A6, 0x04A8, 0x04AA, 0x04AB, 0x04AB, 0x04AB, 0x04AC, 0x04AD, 0x04AD, 0x04AF, 0x04AF, 0x04B1, 0x04B1, 0x04B1, 0x04B4, 0x04B2, 0x04B3, 0x04B5, 0x04B4, 0x04B4];
		UI_play_sound_effect_16(0x0029);
		var0006 = UI_create_new_object_2C(0x037F);
		if(!var0006) goto labelFunc0780_01DE;
		UI_clear_item_flag_A5(var0006, 0x0012);
		UI_set_item_frame_1B(var0006, UI_die_roll_17(0x0001, 0x0002));
		var0002 = UI_update_last_created_2F([var0004[var0001], var0005[var0001], 0x0001]);
	labelFunc0780_01DE:
		if(!(var0001 > 0x000A)) goto labelFunc0780_0231;
		if(!(UI_die_roll_17(0x0001, 0x0009) > 0x0002)) goto labelFunc0780_0231;
		var0003 = UI_get_object_position_20(var0000);
		UI_sprite_effect_68(0x0009, (var0003[0x0001] - 0x0002), (var0003[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0027);
	labelFunc0780_0231:
		var0007 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0780], UI_die_roll_17(0x0003, 0x0006));
	labelFunc0780_024F:
		return;
}
Func0781 0x781 (var var0000)
{
	var var0001;

	var0000 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x02C0], UI_get_item_quality_1C(item));
	return;
}
// externs
extern Func0620 0x620 (var var0000);
extern var Func0983 0x983 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);

Func0795 0x795 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!(event == 0x0003)) goto labelFunc0795_00C3;
	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc0795_0010:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0795_00C3);
		if(!(!UI_UNKNOWN_58(UI_get_npc_prop_28(var0003, 0x0000), UI_get_item_quality_1C(item)))) goto labelFunc0795_00C0;
		var0004 = UI_get_npc_object_23(var0003);
		UI_halt_scheduled_71(var0004);
		var0004;
		calle();
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x061F], 0x0019);
		var0005 = UI_execute_usecode_array_01(var0004, [0x23, 0x27, 0x0005, 0x6C, 0x27, 0x0004, 0x6D, 0x27, 0x0004, 0x6E, 0x27, 0x0004, 0x61]);
		if(!Func0983(var0004)) goto labelFunc0795_00A9;
		Func094F(var0004, ["@Ohh!@", "@Eeehhh!@", "@Bleh!@", "@Gak!@"]);
	labelFunc0795_00A9:
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x0795], 0x0011);
	labelFunc0795_00C0:
		goto labelFunc0795_0010;
	labelFunc0795_00C3:
		if(!(event == 0x0002)) goto labelFunc0795_015F;
		var0006 = 0x0000;
		var0007 = 0x0000;
	labelFunc0795_00D7:
		if(!(var0006 < 0x0010)) goto labelFunc0795_0120;
		var0008 = UI_die_roll_17(0x0000, 0x0003);
		if(!(var0007 == 0x0000)) goto labelFunc0795_0105;
		var0007 = (var0006 + var0008);
		goto labelFunc0795_0113;
	labelFunc0795_0105:
		var0007 = (var0007 & (var0006 + var0008));
	labelFunc0795_0113:
		var0006 = (var0006 + 0x0004);
		goto labelFunc0795_00D7;
	labelFunc0795_0120:
		enum();
	labelFunc0795_0121:
		for (var000B in var0007 with var0009 to var000A atend labelFunc0795_015F);
		var0005 = UI_create_new_object_2C(0x0390);
		if(!var0005) goto labelFunc0795_015C;
		UI_set_item_flag_A4(var0005, 0x0012);
		UI_set_item_frame_1B(var0005, var000B);
		var000C = UI_update_last_created_2F(UI_get_object_position_20(item));
	labelFunc0795_015C:
		goto labelFunc0795_0121;
	labelFunc0795_015F:
		return;
}
Func0796 0x796 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc0796_0085;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc0796_0018:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0796_0085);
		if(!(var0004 != UI_get_npc_object_23(0xFE9C))) goto labelFunc0796_0082;
		if(!(!UI_UNKNOWN_58(UI_get_npc_prop_28(var0004, 0x0002), 0x000F))) goto labelFunc0796_0082;
		UI_halt_scheduled_71(var0004);
		UI_set_schedule_type_25(var0004, 0x0000);
		UI_set_attack_mode_59(var0004, 0x0007);
		UI_set_opponent_5B(var0004, 0xFE9C);
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x0796], var0000);
	labelFunc0796_0082:
		goto labelFunc0796_0018;
	labelFunc0796_0085:
		if(!(event == 0x0002)) goto labelFunc0796_0095;
		UI_set_schedule_type_25(item, 0x001F);
	labelFunc0796_0095:
		return;
}
// externs
extern var Func098D 0x98D ();
extern var Func095F 0x95F (var var0000, var var0001);
extern Func09AD 0x9AD (var var0000);

Func0797 0x797 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0003)) goto labelFunc0797_005D;
	var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
	var0001 = Func098D();
	enum();
	labelFunc0797_0020:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0797_005D);
		if(!(!UI_get_item_flag_A3(var0004, 0x0006))) goto labelFunc0797_005A;
		if(!(!Func095F(UI_get_npc_number_47(var0004), var0001))) goto labelFunc0797_005A;
		UI_clear_item_flag_A5(var0004, 0x0001);
		Func09AD(var0004);
	labelFunc0797_005A:
		goto labelFunc0797_0020;
	labelFunc0797_005D:
		return;
}
Func0798 0x798 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!((event == 0x0003) || (event == 0x0002))) goto labelFunc0798_024F;
	var0000 = UI_find_nearby_41(item, 0xFE99, 0x0028, 0x0008);
	var0001 = UI_get_party_list_2B();
	var0002 = UI_get_item_quality_1C(item);
	if(!(var0002 == 0x0000)) goto labelFunc0798_003E;
	var0002 = 0x001E;
	labelFunc0798_003E:
		var0003 = UI_get_item_flag_A3(item, 0x0006);
		enum();
	labelFunc0798_004A:
		for (var0006 in var0000 with var0004 to var0005 atend labelFunc0798_0248);
		if(!((!var0003) || (!in(var0006, var0001)))) goto labelFunc0798_0245;
		var0007 = 0x0000;
		var0008 = "";
	labelFunc0798_0071:
		if(!(var0007 < var0002)) goto labelFunc0798_020C;
		var0009 = UI_die_roll_17(0x0000, 0x0008);
		if(!(var0009 == 0x0000)) goto labelFunc0798_00AA;
		var000A = [0x6D, 0x6C, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_00AA:
		if(!(var0009 == 0x0001)) goto labelFunc0798_00CC;
		var000A = [0x6D, 0x61, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_00CC:
		if(!(var0009 == 0x0002)) goto labelFunc0798_00EE;
		var000A = [0x6C, 0x6E, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_00EE:
		if(!(var0009 == 0x0003)) goto labelFunc0798_0110;
		var000A = [0x61, 0x61, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_0110:
		if(!(var0009 == 0x0004)) goto labelFunc0798_0132;
		var000A = [0x6D, 0x64, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_0132:
		if(!(var0009 == 0x0005)) goto labelFunc0798_0154;
		var000A = [0x64, 0x6D, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_0154:
		if(!(var0009 == 0x0006)) goto labelFunc0798_018D;
		var000B = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000A = [0x59, var000B, 0x6C, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_018D:
		if(!(var0009 == 0x0007)) goto labelFunc0798_01C6;
		var000B = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000A = [0x59, var000B, 0x6D, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_01C6:
		if(!(var0009 == 0x0008)) goto labelFunc0798_01FF;
		var000B = (0x30 + (UI_die_roll_17(0x0000, 0x0003) * 0x0002));
		var000A = [0x59, var000B, 0x64, 0x61];
		var0008 = [var0008, var000A];
	labelFunc0798_01FF:
		var0007 = (var0007 + 0x0003);
		goto labelFunc0798_0071;
	labelFunc0798_020C:
		UI_halt_scheduled_71(var0006);
		var000C = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000C == 0x0001)) goto labelFunc0798_0238;
		var0008 = [0x52, "Aaahhh!", var0008];
	labelFunc0798_0238:
		var000D = UI_execute_usecode_array_01(var0006, var0008);
	labelFunc0798_0245:
		goto labelFunc0798_004A;
	labelFunc0798_0248:
		UI_earthquake_6E(var0002);
	labelFunc0798_024F:
		return;
}
Func0799 0x799 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc0799_0011;
	UI_UNKNOWN_6B(UI_get_item_quality_1C(item));
	labelFunc0799_0011:
		return;
}
// externs
extern Func0982 0x982 (var var0000, var var0001);

Func079A 0x79A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc079A_003C;
	var0000 = UI_get_party_list_2B();
	var0001 = UI_get_item_quality_1C(item);
	enum();
	labelFunc079A_0018:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc079A_003C);
		var0005 = UI_die_roll_17(0x0001, var0001);
		Func0982(var0004, var0005);
		goto labelFunc079A_0018;
	labelFunc079A_003C:
		return;
}
// externs
extern Func0620 0x620 (var var0000);

Func079B 0x79B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc079B_006D;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc079B_0017:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc079B_006D);
		if(!(!UI_UNKNOWN_58(UI_get_npc_prop_28(var0003, 0x0000), UI_get_item_quality_1C(item)))) goto labelFunc079B_006A;
		var0004 = UI_get_npc_object_23(var0003);
		var0004;
		calle();
		UI_set_item_flag_A4(var0004, 0x0001);
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x061F], 0x0064);
	labelFunc079B_006A:
		goto labelFunc079B_0017;
	labelFunc079B_006D:
		return;
}
Func079C 0x79C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc079C_004A;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc079C_0017:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc079C_004A);
		if(!(!UI_UNKNOWN_58(UI_get_npc_prop_28(var0003, 0x0000), UI_get_item_quality_1C(item)))) goto labelFunc079C_0047;
		UI_set_item_flag_A4(UI_get_npc_object_23(var0003), 0x0008);
	labelFunc079C_0047:
		goto labelFunc079C_0017;
	labelFunc079C_004A:
		return;
}
// externs
extern Func0620 0x620 (var var0000);

Func079D 0x79D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc079D_0071;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc079D_0017:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc079D_0071);
		if(!(!UI_UNKNOWN_58(UI_get_npc_prop_28(var0003, 0x0000), UI_get_item_quality_1C(item)))) goto labelFunc079D_006E;
		UI_set_item_flag_A4(UI_get_npc_object_23(var0003), 0x0007);
		var0004 = UI_get_npc_object_23(var0003);
		var0004;
		calle();
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x061F], 0x0064);
	labelFunc079D_006E:
		goto labelFunc079D_0017;
	labelFunc079D_0071:
		return;
}
// externs
extern var Func0977 0x977 (var var0000);
extern Func0982 0x982 (var var0000, var var0001);

Func079E 0x79E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc079E_004B;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_party_list_2B();
	var0001 = Func0977(var0000);
	var0002 = UI_die_roll_17(0x0001, var0001);
	var0003 = UI_die_roll_17(0x0001, UI_get_item_quality_1C(item));
	Func0982(UI_get_npc_object_23(var0000[var0002]), var0003);
	labelFunc079E_004B:
		return;
}
// externs
extern var Func0977 0x977 (var var0000);
extern Func060F 0x60F (var var0000);

Func079F 0x79F (var var0000)
{
	var var0001;
	var var0002;

	if(!(event == 0x0003)) goto labelFunc079F_002F;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_party_list_2B();
	var0001 = UI_die_roll_17(0x0001, Func0977(var0000));
	var0000[var0001];
	calle();
	labelFunc079F_002F:
		return;
}
// externs
extern Func02C0 0x2C0 (var var0000);

Func07A0 0x7A0 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc07A0_000C;
	item;
	calle();
	labelFunc07A0_000C:
		return;
}
Func07A1 0x7A1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc07A1_006E;
	var0000 = UI_find_nearby_41(item, 0x0356, 0x0005, 0x0000);
	enum();
	labelFunc07A1_001A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc07A1_006E);
		var0004 = UI_get_item_frame_1A(var0003);
		if(!(var0004 == 0x0000)) goto labelFunc07A1_006B;
		var0005 = UI_get_object_position_20(var0003);
		UI_remove_item_84(var0003);
		var0006 = UI_create_new_object2_2D(0x02F1, var0005);
		UI_set_alignment_4A(var0006, 0x0002);
		UI_set_schedule_type_25(var0006, 0x0000);
	labelFunc07A1_006B:
		goto labelFunc07A1_001A;
	labelFunc07A1_006E:
		return;
}
// externs
extern Func0150 0x150 (var var0000);
extern Func0253 0x253 (var var0000);
extern Func0379 0x379 (var var0000);

Func07A2 0x7A2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0003)) goto labelFunc07A2_008D;
	event = 0x0001;
	UI_play_sound_effect_16(0x0046);
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x0150, var0000, 0x0000);
	enum();
	labelFunc07A2_002D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07A2_0041);
		var0004;
		calle();
		goto labelFunc07A2_002D;
	labelFunc07A2_0041:
		var0001 = UI_find_nearby_41(item, 0x0253, var0000, 0x0000);
		enum();
	labelFunc07A2_0053:
		for (var0004 in var0001 with var0005 to var0006 atend labelFunc07A2_0067);
		var0004;
		calle();
		goto labelFunc07A2_0053;
	labelFunc07A2_0067:
		var0001 = UI_find_nearby_41(item, 0x0379, var0000, 0x0000);
		enum();
	labelFunc07A2_0079:
		for (var0004 in var0001 with var0007 to var0008 atend labelFunc07A2_008D);
		var0004;
		calle();
		goto labelFunc07A2_0079;
	labelFunc07A2_008D:
		return;
}
// externs
extern Func0152 0x152 (var var0000);
extern Func02BD 0x2BD (var var0000);
extern Func020E 0x20E (var var0000);

Func07A3 0x7A3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0003)) goto labelFunc07A3_008D;
	UI_play_sound_effect_16(0x0046);
	event = 0x0001;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x0152, var0000, 0x0000);
	enum();
	labelFunc07A3_002D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07A3_0041);
		var0004;
		calle();
		goto labelFunc07A3_002D;
	labelFunc07A3_0041:
		var0001 = UI_find_nearby_41(item, 0x02BD, var0000, 0x0000);
		enum();
	labelFunc07A3_0053:
		for (var0004 in var0001 with var0005 to var0006 atend labelFunc07A3_0067);
		var0004;
		calle();
		goto labelFunc07A3_0053;
	labelFunc07A3_0067:
		var0001 = UI_find_nearby_41(item, 0x020E, var0000, 0x0000);
		enum();
	labelFunc07A3_0079:
		for (var0004 in var0001 with var0007 to var0008 atend labelFunc07A3_008D);
		var0004;
		calle();
		goto labelFunc07A3_0079;
	labelFunc07A3_008D:
		return;
}
// externs
extern var Func0989 0x989 (var var0000, var var0001);
extern var Func0906 0x906 (var var0000);
extern Func010E 0x10E (var var0000);
extern Func0178 0x178 (var var0000);

Func07A4 0x7A4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc07A4_00BE;
	event = 0x0001;
	var0000 = UI_find_nearby_41(item, 0x010E, 0x0028, 0x0000);
	var0000 = (var0000 & UI_find_nearby_41(item, 0x0178, 0x0028, 0x0000));
	var0001 = [];
	enum();
	labelFunc07A4_0039:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07A4_0056);
		var0001 = (var0001 & UI_get_distance_21(item, var0004));
		goto labelFunc07A4_0039;
	labelFunc07A4_0056:
		var0000 = Func0989(var0000, var0001);
		var0005 = 0x0001;
	labelFunc07A4_0068:
		var0004 = var0000[var0005];
		if(!var0004) goto labelFunc07A4_00BE;
		if(!(Func0906(var0004) == 0x0002)) goto labelFunc07A4_0094;
		var0005 = (var0005 + 0x0001);
		goto labelFunc07A4_0068;
		goto labelFunc07A4_00BE;
	labelFunc07A4_0094:
		var0006 = UI_get_item_shape_18(var0004);
		if(!(var0006 == 0x010E)) goto labelFunc07A4_00AE;
		var0004;
		calle();
	labelFunc07A4_00AE:
		if(!(var0006 == 0x0178)) goto labelFunc07A4_00BE;
		var0004;
		calle();
	labelFunc07A4_00BE:
		return;
}
// externs
extern var Func0989 0x989 (var var0000, var var0001);

Func07A5 0x7A5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(event == 0x0003)) goto labelFunc07A5_00AF;
	UI_play_sound_effect_16(0x0046);
	event = 0x0001;
	var0000 = UI_find_nearby_41(item, 0x0369, 0x0014, 0x0000);
	var0001 = [];
	enum();
	labelFunc07A5_002B:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07A5_0048);
		var0001 = (var0001 & UI_get_distance_21(var0004, item));
		goto labelFunc07A5_002B;
	labelFunc07A5_0048:
		var0000 = Func0989(var0000, var0001);
		var0004 = var0000[0x0001];
		if(!var0004) goto labelFunc07A5_00AF;
		var0005 = UI_get_item_frame_1A(var0004);
		var0006 = (var0005 % 0x0004);
		if(!(var0006 < 0x0003)) goto labelFunc07A5_0093;
		var0007 = UI_execute_usecode_array_01(var0004, [0x4E]);
		goto labelFunc07A5_00AF;
	labelFunc07A5_0093:
		var0005 = (var0005 - var0006);
		var0007 = UI_execute_usecode_array_01(var0004, [0x46, var0005]);
	labelFunc07A5_00AF:
		return;
}
// externs
extern Func0924 0x924 (var var0000, var var0001);

Func07A6 0x7A6 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc07A6_000F;
	Func0924(item, 0xFE99);
	labelFunc07A6_000F:
		return;
}
// externs
extern Func0924 0x924 (var var0000, var var0001);

Func07A7 0x7A7 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc07A7_000F;
	Func0924(item, 0x0001);
	labelFunc07A7_000F:
		return;
}
// externs
extern Func0924 0x924 (var var0000, var var0001);

Func07A8 0x7A8 (var var0000)
{
	if(!(event == 0x0003)) goto labelFunc07A8_000F;
	Func0924(item, 0x0000);
	labelFunc07A8_000F:
		return;
}
// externs
extern var Func09A7 0x9A7 (var var0000, var var0001);
extern Func098B 0x98B (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func07AA 0x7AA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc07AA_0071;
	var0000 = UI_find_nearby_41(item, 0x02F7, 0x0019, 0x0000);
	var0001 = UI_get_array_size_73(var0000);
	var0000 = Func09A7(var0001, var0000);
	enum();
	labelFunc07AA_0030:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07AA_004B);
		UI_play_sound_effect_16(0x0010);
		Func098B(var0004);
		goto labelFunc07AA_0030;
	labelFunc07AA_004B:
		var0005 = Func09A0(0x0005, 0x0001);
		var0006 = UI_execute_usecode_array_01(var0005, [0x27, 0x0064, 0x55, 0x00FA, 0x0000]);
	labelFunc07AA_0071:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func084E 0x84E (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func07AB 0x7AB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(event == 0x0003)) goto labelFunc07AB_00F6;
	if(!(!gflags[0273])) goto labelFunc07AB_0010;
	abrt();
	labelFunc07AB_0010:
		var0000 = [0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2A, 0xFF30, 0xFF2E];
		if(!UI_get_item_flag_A3(0xFF29, 0x001C)) goto labelFunc07AB_0042;
		var0000 = (var0000 & 0xFF29);
	labelFunc07AB_0042:
		var0001 = 0x0005;
		var0002 = Func09A0(0x0005, 0x0001);
		var0003 = UI_set_item_quality_1D(var0002, var0001);
		enum();
	labelFunc07AB_0062:
		for (var0006 in var0000 with var0004 to var0005 atend labelFunc07AB_009D);
		var0007 = Func084E(var0006, var0001);
		UI_move_object_4B(var0006, var0007);
		UI_set_new_schedules_B6(var0006, 0x0000, 0x0010, var0007);
		UI_run_schedule_B7(var0006);
		goto labelFunc07AB_0062;
	labelFunc07AB_009D:
		var0008 = UI_get_object_position_20(item);
		UI_move_object_4B(0xFF2B, var0008);
		UI_set_schedule_type_25(0xFF2B, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFF2B, [0x23, 0x59, 0x0004, 0x2B, 0x000A, 0x52, "@Now is the Time of Visions!@"]);
		Func09AC(0xFF2B, var0008[0x0001], var0008[0x0002], 0x000F);
		UI_play_music_39(0x003F, var0002);
	labelFunc07AB_00F6:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func07D1 0x7D1 (var var0000);
extern var Func0940 0x940 (var var0000, var var0001);
extern Func093E 0x93E (var var0000);
extern var Func093D 0x93D (var var0000, var var0001);
extern Func093F 0x93F (var var0000);

Func07AC 0x7AC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_quantity_1E(item, 0x0000);
	if(!(UI_get_random_00(0x0002) == 0x0001)) goto labelFunc07AC_0062;
	var0003 = ("@Yikes!@" & ("@Look!@" & ("@That was close!@" & ("@Run!@" & ("@Teleport storm!@" & "@Whoa!@")))));
	var0004 = Func0992(0x0001, var0003[UI_get_random_00(UI_get_array_size_73(var0003))], 0x0000, true);
	item;
	calle();
	labelFunc07AC_0062:
		if(!(var0001 == 0x0001)) goto labelFunc07AC_009D;
		var0000 = Func0940(var0000, var0002);
		UI_sprite_effect_68(0x0015, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func093E(var0000);
	labelFunc07AC_009D:
		if(!(var0001 == 0x0002)) goto labelFunc07AC_00ED;
		var0005 = Func093D(var0000, (var0002 + 0x0001));
		if(!var0005) goto labelFunc07AC_00ED;
		var0000 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0005);
	labelFunc07AC_00ED:
		if(!((var0001 == 0x0003) || (var0001 == 0x0004))) goto labelFunc07AC_0177;
		var0005 = Func093D(var0000, (var0002 + 0x0001));
		if(!var0005) goto labelFunc07AC_0177;
		var0000 = UI_get_object_position_20(var0005);
		if(!(var0001 == 0x0003)) goto labelFunc07AC_014B;
		UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc07AC_016A;
	labelFunc07AC_014B:
		UI_sprite_effect_68(0x0015, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07AC_016A:
		UI_remove_item_84(var0005);
		Func093F(var0000);
	labelFunc07AC_0177:
		return;
}
// externs
extern var Func093D 0x93D (var var0000, var var0001);
extern var Func0940 0x940 (var var0000, var var0001);
extern Func093E 0x93E (var var0000);

Func07AD 0x7AD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_object_position_20(item);
	var0001 = UI_get_item_quality_1C(item);
	var0002 = UI_get_item_quantity_1E(item, 0x0000);
	if(!(var0001 == 0x0000)) goto labelFunc07AD_004F;
	UI_set_weather_53(0x0002);
	if(!(!Func093D(var0000, (var0002 + 0x0001)))) goto labelFunc07AD_004F;
	var0000 = Func0940(var0000, var0002);
	Func093E(var0000);
	labelFunc07AD_004F:
		if(!(var0001 == 0x0001)) goto labelFunc07AD_007A;
		UI_play_sound_effect_16(0x0074);
		UI_obj_sprite_effect_91(item, 0x0028, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07AD_007A:
		if(!(var0001 == 0x0002)) goto labelFunc07AD_00A5;
		UI_play_sound_effect_16(0x0074);
		UI_obj_sprite_effect_91(item, 0x0029, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07AD_00A5:
		if(!(var0001 == 0x0003)) goto labelFunc07AD_00D0;
		UI_play_sound_effect_16(0x0074);
		UI_obj_sprite_effect_91(item, 0x002A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07AD_00D0:
		if(!(var0001 == 0x0004)) goto labelFunc07AD_00FB;
		UI_play_sound_effect_16(0x0074);
		UI_obj_sprite_effect_91(item, 0x002B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07AD_00FB:
		if(!(var0001 > 0x0000)) goto labelFunc07AD_012A;
		UI_play_sound_effect_16(0x0074);
		UI_UNKNOWN_72();
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07AC], 0x0003);
		UI_set_weather_53(0x0000);
	labelFunc07AD_012A:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0953 0x953 ();
extern var Func0954 0x954 ();
extern var Func0942 0x942 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func07AE 0x7AE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_item_quality_1C(item);
	if(!(event == 0x0003)) goto labelFunc07AE_0109;
	if(!(var0000 == 0x0007)) goto labelFunc07AE_0021;
	gflags[02A3] = true;
	goto labelFunc07AE_0104;
	labelFunc07AE_0021:
		if(!(var0000 == 0x0005)) goto labelFunc07AE_0050;
		var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0000, 0x0001), [0x55, 0x07AE], UI_die_roll_17(0x0064, 0x00C8));
		goto labelFunc07AE_0104;
	labelFunc07AE_0050:
		var0002 = (("@" + Func0953()) + "...@");
		var0003 = (("@" + Func0954()) + "...@");
		var0004 = ["@Avatar...@", var0002, var0003, "@Pardon thou me...@", "@If I may...@", "@See!@"];
		UI_item_say_4D(Shamino, var0004[UI_get_random_00(UI_get_array_size_73(var0004))]);
		var0005 = 0x0004;
		var0006 = false;
	labelFunc07AE_00A3:
		if(!(var0005 > 0x0000)) goto labelFunc07AE_00DA;
		if(!(UI_get_item_quality_1C(Func09A0(0x0005, var0005)) == 0x0000)) goto labelFunc07AE_00CD;
		var0006 = Func09A0(0x0005, var0005);
	labelFunc07AE_00CD:
		var0005 = (var0005 - 0x0001);
		goto labelFunc07AE_00A3;
	labelFunc07AE_00DA:
		if(!var0006) goto labelFunc07AE_0104;
		var0001 = UI_set_item_quality_1D(var0006, var0000);
		var0001 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x07AE], 0x0004);
	labelFunc07AE_0104:
		UI_remove_item_84(item);
	labelFunc07AE_0109:
		if(!(event == 0x0002)) goto labelFunc07AE_02E4;
		if(!(item == Func09A0(0x0000, 0x0001))) goto labelFunc07AE_017D;
		if(!(Func0942(Shamino) && (!gflags[02A3]))) goto labelFunc07AE_017A;
		UI_show_npc_face0_05(Shamino, 0x0000);
		var0007 = UI_get_object_position_20(0xFE9C);
		if(!((var0007[0x0001] > 0x0291) && ((var0007[0x0001] < 0x02AB) && ((var0007[0x0002] > 0x0A51) && (var0007[0x0002] < 0x0A5E))))) goto labelFunc07AE_0176;
		UcMessage("\"We did pass through an illusionary wall to enter. Might there be another leading from this place to somewhere else?\"");
		UcSay;
		goto labelFunc07AE_017A;
	labelFunc07AE_0176:
		UcMessage("\"We did pass through an illusionary wall to enter that cave. Might there be another leading deeper inside the mountain?\"");
		UcSay;
	labelFunc07AE_017A:
		goto labelFunc07AE_02E4;
	labelFunc07AE_017D:
		var0001 = UI_set_item_quality_1D(item, 0x0000);
		if(!Func0942(Shamino)) goto labelFunc07AE_02E4;
		UI_clear_item_say_4E(Shamino);
		UI_show_npc_face0_05(Shamino, 0x0000);
		if(!((var0000 < 0x0000) || ((var0000 > 0x0006) || (var0000 == 0x0005)))) goto labelFunc07AE_01C7;
		UI_error_message_40(("Tell Bill Qual is " + var0000));
	labelFunc07AE_01C7:
		if(!(var0000 == 0x0001)) goto labelFunc07AE_01F1;
		if(!Func097D(0xFE9B, 0x0001, 0x0247, 0xFE99, 0xFE99)) goto labelFunc07AE_01ED;
		UcMessage("\"Thou wert wise to pick up that bedroll. Now we can sleep well anywhere.\"");
		UcSay;
		goto labelFunc07AE_01F1;
	labelFunc07AE_01ED:
		UcMessage("\"A bedroll! With this, thou wilt sleep well anywhere.\"");
		UcSay;
	labelFunc07AE_01F1:
		if(!(var0000 == 0x0002)) goto labelFunc07AE_0243;
		var0001 = UI_find_nearby_41(0xFE9C, 0x020A, 0x0014, 0x0000);
		if(!var0001) goto labelFunc07AE_023F;
		if(!Func097D(0xFE9B, 0x0001, 0x0273, 0xFE99, 0xFE99)) goto labelFunc07AE_0234;
		UcMessage("\"I'll wager that chest is locked. Thou shouldst try thy lockpicks on it.\"");
		UcSay;
		UcMessage("\"Lockpicks work on locked doors, too. Of course, we only use them for virtuous reasons -- the Avatar is no common thief!\"");
		UcSay;
		goto labelFunc07AE_023C;
	labelFunc07AE_0234:
		UcMessage("\"I'll wager that chest is locked. If we had lockpicks, however, we could open it!\"");
		UcSay;
		UcMessage("\"They work on locked doors, too. Of course, we only use them for virtuous reasons -- the Avatar is no common thief!\"");
		UcSay;
	labelFunc07AE_023C:
		goto labelFunc07AE_0243;
	labelFunc07AE_023F:
		UcMessage("\"Nice day we're having, isn't it.\"");
		UcSay;
	labelFunc07AE_0243:
		if(!(var0000 == 0x0003)) goto labelFunc07AE_0271;
		var0001 = UI_find_nearby_41(0xFE9C, 0x031D, 0x0014, 0x0000);
		if(!var0001) goto labelFunc07AE_026D;
		UcMessage("\"I see a scroll. Perhaps it contains clues about this place, or counsel for our future adventurings.\"");
		UcSay;
		goto labelFunc07AE_0271;
	labelFunc07AE_026D:
		UcMessage("\"Thou wert wise to collect that scroll, Avatar. It probably contains clues which will be useful to us later.\"");
		UcSay;
	labelFunc07AE_0271:
		if(!(var0000 == 0x0004)) goto labelFunc07AE_02A2;
		if(!(!UI_find_nearby_41(0xFE9C, 0x0253, 0x000A, 0x0000))) goto labelFunc07AE_029A;
		UcMessage("\"Thou wert wise to pick up that torch! We need all that we can find, for they do not burn for long.\"");
		UcSay;
		UcMessage("\"No doubt we shall be in many strange dungeons before our adventure is over...\"");
		UcSay;
		goto labelFunc07AE_02A2;
	labelFunc07AE_029A:
		UcMessage("\"Let us take that torch! We need all that we can find, for they do not burn for long.\"");
		UcSay;
		UcMessage("\"No doubt we shall be in many strange dungeons before our adventure is over...\"");
		UcSay;
	labelFunc07AE_02A2:
		if(!(var0000 == 0x0006)) goto labelFunc07AE_02E4;
		var0001 = UI_find_nearby_41(0xFE9C, 0x025E, 0x001E, 0x0000);
		if(!var0001) goto labelFunc07AE_02E0;
		var0008 = Func0953();
		UcMessage("\"That seems alike to the bow I did lose to the magical storm!\"");
		UcSay;
		UcMessage("\"And we are carrying an animal's skull, given to us by the strange storm -- it must have changed places with my bow!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0008);
		UcMessage(", it is a clue! If we find where the other strange items came from, we shall find our lost possessions!\"");
		UcSay;
		goto labelFunc07AE_02E4;
	labelFunc07AE_02E0:
		UcMessage("\"Look at the size of that skeleton! Perhaps that skull thou hast doth match to these bones.\"");
		UcSay;
	labelFunc07AE_02E4:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func07AF 0x7AF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!in(UI_get_npc_object_23(0xFFE6), UI_get_party_list_2B())) goto labelFunc07AF_01F8;
	if(!(event == 0x0002)) goto labelFunc07AF_01DD;
	var0000 = UI_get_object_position_20(0xFFE6);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_play_sound_effect_16(0x0074);
	UI_UNKNOWN_72();
	UI_sprite_effect_68(0x0029, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	var0000 = UI_get_object_position_20(0xFFE6);
	UI_remove_from_party_27(0xFFE6);
	var0001 = UI_get_cont_items_33(0xFFE6, 0xFE99, 0xFE99, 0xFE99);
	enum();
	labelFunc07AF_00BD:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07AF_01D3);
		var0005 = UI_get_item_shape_18(var0004);
		if(!((var0005 == 0x0118) || ((var0005 == 0x0119) || ((var0005 == 0x011F) || ((var0005 == 0x0198) || ((var0005 == 0x01A8) || ((var0005 == 0x020F) || (var0005 == 0x0327)))))))) goto labelFunc07AF_0116;
		UI_remove_item_84(var0004);
		goto labelFunc07AF_01D0;
	labelFunc07AF_0116:
		if(!UI_set_last_created_2E(var0004)) goto labelFunc07AF_01D0;
		UI_set_item_flag_A4(var0004, 0x000B);
		var0006 = UI_update_last_created_2F(var0000);
		if(!(!var0006)) goto labelFunc07AF_015B;
		var0006 = UI_update_last_created_2F([(var0000[0x0001] - 0x0002), var0000[0x0002], var0000[0x0003]]);
	labelFunc07AF_015B:
		if(!(!var0006)) goto labelFunc07AF_0182;
		var0006 = UI_update_last_created_2F([var0000[0x0001], (var0000[0x0002] - 0x0002), var0000[0x0003]]);
	labelFunc07AF_0182:
		if(!(!var0006)) goto labelFunc07AF_01A9;
		var0006 = UI_update_last_created_2F([(var0000[0x0001] + 0x0002), var0000[0x0002], var0000[0x0003]]);
	labelFunc07AF_01A9:
		if(!(!var0006)) goto labelFunc07AF_01D0;
		var0006 = UI_update_last_created_2F([var0000[0x0001], (var0000[0x0002] + 0x0002), var0000[0x0003]]);
	labelFunc07AF_01D0:
		goto labelFunc07AF_00BD;
	labelFunc07AF_01D3:
		UI_remove_npc_4C(0xFFE6);
		goto labelFunc07AF_01F8;
	labelFunc07AF_01DD:
		var0007 = UI_delayed_execute_usecode_array_02(Func09A0(0x0000, 0x0001), [0x55, 0x07AF], 0x000A);
	labelFunc07AF_01F8:
		return;
}
Func07B0 0x7B0 (var var0000)
{
	var var0001;
	var var0002;

	if(!gflags[00E2]) goto labelFunc07B0_0037;
	var0000 = UI_create_new_object_2C(0x034F);
	if(!var0000) goto labelFunc07B0_0037;
	UI_set_item_frame_1B(var0000, 0x001F);
	var0001 = UI_update_last_created_2F(UI_get_object_position_20(item));
	if(!var0001) goto labelFunc07B0_0037;
	UI_remove_item_84(item);
	labelFunc07B0_0037:
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern Func0982 0x982 (var var0000, var var0001);

Func07B1 0x7B1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = UI_get_object_position_20(item);
	if(!((event == 0x0003) && (Func097E((var0000[0x0003] - var0001[0x0003])) < 0x0003))) goto labelFunc07B1_01B0;
	var0002 = UI_get_item_quality_1C(item);
	if(!(var0002 == 0x0000)) goto labelFunc07B1_0048;
	UI_error_message_40("Error: Quality not set for usecode egg. (uegg_269)");
	labelFunc07B1_0048:
		if(!((var0002 == 0x0001) || (var0002 == 0x000B))) goto labelFunc07B1_00C0;
		if(!(var0002 == 0x0001)) goto labelFunc07B1_006D;
		var0003 = 0x0003;
		goto labelFunc07B1_0073;
	labelFunc07B1_006D:
		var0003 = 0x0010;
	labelFunc07B1_0073:
		var0004 = UI_find_nearby_41(item, 0x009F, var0003, 0x0000);
		var0005 = UI_get_item_quantity_1E(item, 0x0000);
		if(!var0004) goto labelFunc07B1_00C0;
		var0006 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x4D, 0x58, 0x0035, 0x55, 0x07B1, 0x0B, 0xFFFA, 0x0011, 0x46, 0x0000], var0005);
	labelFunc07B1_00C0:
		if(!((var0002 == 0x0002) || (var0002 == 0x000C))) goto labelFunc07B1_0138;
		if(!(var0002 == 0x0002)) goto labelFunc07B1_00E5;
		var0003 = 0x0003;
		goto labelFunc07B1_00EB;
	labelFunc07B1_00E5:
		var0003 = 0x0010;
	labelFunc07B1_00EB:
		var0007 = UI_find_nearby_41(item, 0x00F2, var0003, 0x0000);
		var0005 = UI_get_item_quantity_1E(item, 0x0000);
		if(!var0007) goto labelFunc07B1_0138;
		var0006 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x4E, 0x58, 0x0005, 0x55, 0x07B1, 0x0B, 0xFFFA, 0x0008, 0x46, 0x0000], var0005);
	labelFunc07B1_0138:
		if(!((var0002 == 0x0003) || (var0002 == 0x000D))) goto labelFunc07B1_01B0;
		if(!(var0002 == 0x0003)) goto labelFunc07B1_015D;
		var0003 = 0x0003;
		goto labelFunc07B1_0163;
	labelFunc07B1_015D:
		var0003 = 0x0010;
	labelFunc07B1_0163:
		var0007 = UI_find_nearby_41(item, 0x019A, var0003, 0x0000);
		var0005 = UI_get_item_quantity_1E(item, 0x0000);
		if(!var0007) goto labelFunc07B1_01B0;
		var0006 = UI_delayed_execute_usecode_array_02(var0007, [0x23, 0x4E, 0x58, 0x0005, 0x55, 0x07B1, 0x0B, 0xFFFA, 0x000A, 0x46, 0x0000], var0005);
	labelFunc07B1_01B0:
		if(!(event == 0x0002)) goto labelFunc07B1_0223;
		var0008 = UI_find_nearby_41(item, 0xFE99, 0x0003, 0x0000);
		enum();
	labelFunc07B1_01CA:
		for (var000B in var0008 with var0009 to var000A atend labelFunc07B1_0223);
		if(!(!((UI_get_item_shape_18(var000B) == 0x00F2) || ((UI_get_item_shape_18(var000B) == 0x009F) || (UI_get_item_shape_18(var000B) == 0x019A))))) goto labelFunc07B1_0220;
		if(!UI_is_npc_3D(var000B)) goto labelFunc07B1_0220;
		if(!(UI_get_npc_prop_28(var000B, 0x0003) >= 0x0006)) goto labelFunc07B1_0220;
		Func0982(var000B, 0x0005);
	labelFunc07B1_0220:
		goto labelFunc07B1_01CA;
	labelFunc07B1_0223:
		return;
}
Func07B2 0x7B2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!(event == 0x0003)) goto labelFunc07B2_015D;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_get_object_position_20(item);
	var0002 = 0x0300;
	if(!((var0000 == 0x0000) || (var0000 > 0x0006))) goto labelFunc07B2_0037;
	UI_error_message_40("Quality 0 for egg 270");
	labelFunc07B2_0037:
		if(!(var0000 == 0x0006)) goto labelFunc07B2_0054;
		var0000 = UI_die_roll_17(0x0001, 0x0005);
		var0003 = 0x0082;
	labelFunc07B2_0054:
		if(!(var0000 == 0x0001)) goto labelFunc07B2_00B5;
		var0002 = 0x0300;
		var0004 = false;
		var0005 = UI_find_nearby_41(item, var0002, 0x0003, 0x0000);
		enum();
	labelFunc07B2_007A:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc07B2_008C);
		var0004 = true;
		goto labelFunc07B2_007A;
	labelFunc07B2_008C:
		if(!(!var0004)) goto labelFunc07B2_00B4;
		var0009 = UI_create_new_object_2C(var0002);
		if(!var0009) goto labelFunc07B2_00B4;
		var0009 = UI_update_last_created_2F(var0001);
		UI_play_sound_effect_16(0x0077);
	labelFunc07B2_00B4:
		abrt();
	labelFunc07B2_00B5:
		if(!(var0000 == 0x0002)) goto labelFunc07B2_00CB;
		var0002 = 0x0231;
		var0003 = 0x0028;
	labelFunc07B2_00CB:
		if(!(var0000 == 0x0003)) goto labelFunc07B2_00E1;
		var0002 = 0x037F;
		var0003 = 0x0029;
	labelFunc07B2_00E1:
		if(!(var0000 == 0x0004)) goto labelFunc07B2_00F7;
		var0002 = 0x0384;
		var0003 = 0x0068;
	labelFunc07B2_00F7:
		if(!(var0000 == 0x0005)) goto labelFunc07B2_010D;
		var0002 = 0x0386;
		var0003 = 0x0045;
	labelFunc07B2_010D:
		var0004 = false;
		var0005 = UI_find_nearby_41(item, var0002, 0x0003, 0x0010);
		enum();
	labelFunc07B2_0123:
		for (var0008 in var0005 with var000A to var000B atend labelFunc07B2_0135);
		var0004 = true;
		goto labelFunc07B2_0123;
	labelFunc07B2_0135:
		if(!(!var0004)) goto labelFunc07B2_015D;
		var0009 = UI_create_new_object_2C(var0002);
		if(!var0009) goto labelFunc07B2_015D;
		var0009 = UI_update_last_created_2F(var0001);
		UI_play_sound_effect_16(var0003);
	labelFunc07B2_015D:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func08E7 0x8E7 (var var0000);

Func07B3 0x7B3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_get_npc_id_BC(0xFFD8);
	var0001 = 0x0019;
	var0002 = UI_find_nearby_41(item, 0x03C1, 0x0064, 0x0010);
	if(!(var0000 == 0x0002)) goto labelFunc07B3_0084;
	if(!var0002) goto labelFunc07B3_0084;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	var0003 = Func0992(0x0001, "@We should find a seat.@", "@I should sit.@", true);
	var0003 = Func08E7(var0002);
	if(!var0003) goto labelFunc07B3_0084;
	gflags[01CB] = true;
	UI_set_npc_id_BD(0xFFD8, 0x0003);
	var0000 = 0x0003;
	var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07B3], var0001);
	abrt();
	labelFunc07B3_0084:
		if(!(var0000 == 0x0003)) goto labelFunc07B3_0210;
		var0003 = Func08E7(var0002);
		if(!UI_on_barge_82()) goto labelFunc07B3_01FA;
		var0004 = UI_create_new_object_2C(0x025F);
		if(!var0004) goto labelFunc07B3_00E2;
		UI_set_item_frame_1B(var0004, 0x0000);
		var0003 = UI_set_item_quality_1D(var0004, 0x0000);
		UI_clear_item_flag_A5(var0004, 0x0012);
		var0003 = UI_update_last_created_2F([0x0552, 0x08A7, 0x0002]);
	labelFunc07B3_00E2:
		var0004 = UI_create_new_object_2C(0x025F);
		if(!var0004) goto labelFunc07B3_0126;
		UI_clear_item_flag_A5(var0004, 0x0012);
		var0003 = UI_set_item_quality_1D(var0004, 0x0000);
		UI_set_item_frame_1B(var0004, 0x0001);
		var0003 = UI_update_last_created_2F([0x0564, 0x08A7, 0x0002]);
	labelFunc07B3_0126:
		var0004 = UI_create_new_object_2C(0x025F);
		if(!var0004) goto labelFunc07B3_016A;
		UI_clear_item_flag_A5(var0004, 0x0012);
		var0003 = UI_set_item_quality_1D(var0004, 0x000F);
		UI_set_item_frame_1B(var0004, 0x0002);
		var0003 = UI_update_last_created_2F([0x056E, 0x08A4, 0x0001]);
	labelFunc07B3_016A:
		var0005 = [0x0551, 0x08A7, 0x0002];
		var0006 = [0xFFD8, 0xFFD6, 0xFFDB, 0xFFD5];
		enum();
	labelFunc07B3_018C:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc07B3_01CA);
		UI_move_object_4B(var0009, var0005);
		UI_set_new_schedules_B6(var0009, [0x0000], [0x001D], [0x055B, 0x08A7]);
		UI_set_schedule_type_25(var0009, 0x001D);
		goto labelFunc07B3_018C;
	labelFunc07B3_01CA:
		UI_clear_item_flag_A5(0xFFDB, 0x0024);
		UI_set_npc_id_BD(0xFFD8, 0x0004);
		var0000 = 0x0004;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07B3], var0001);
		abrt();
	labelFunc07B3_01FA:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07B3], var0001);
		abrt();
	labelFunc07B3_0210:
		if(!((var0000 > 0x0003) && (var0000 < 0x0008))) goto labelFunc07B3_0238;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07B3], var0001);
		abrt();
	labelFunc07B3_0238:
		if(!(var0000 == 0x0008)) goto labelFunc07B3_027B;
		if(!UI_on_barge_82()) goto labelFunc07B3_0265;
		UI_halt_scheduled_71(item);
		var0003 = UI_execute_usecode_array_01(0xFFD8, [0x23, 0x55, 0x0428]);
		goto labelFunc07B3_027A;
	labelFunc07B3_0265:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07B3], var0001);
	labelFunc07B3_027A:
		abrt();
	labelFunc07B3_027B:
		return;
}
// externs
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);

Func07D0 0x7D0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!in(item, UI_get_party_list_2B())) goto labelFunc07D0_000A;
	abrt();
	labelFunc07D0_000A:
		if(!(event == 0x0002)) goto labelFunc07D0_00F5;
		var0000 = UI_direction_from_A2(item, 0xFE9C);
		var0001 = UI_execute_usecode_array_01(item, [0x59, var0000]);
		var0002 = [0x0000, 0x0002, 0x0002, 0x0002, 0x0000, Shamino, Shamino, Shamino];
		var0003 = [Shamino, Shamino, 0x0000, 0x0002, 0x0002, 0x0002, 0x0000, Shamino];
		var0004 = (var0002 & var0002);
		var0005 = (var0003 & var0003);
		var0000 = (UI_find_direction_22(0xFE9C, item) + 0x0001);
		var0006 = 0x0001;
		var0007 = var0004[var0000];
		var0008 = var0005[var0000];
	labelFunc07D0_00A4:
		if(!(var0006 < 0x0008)) goto labelFunc07D0_00DD;
		var0007 = (var0007 & var0004[(var0000 + var0006)]);
		var0008 = (var0008 & var0005[(var0000 + var0006)]);
		var0006 = (var0006 + 0x0001);
		goto labelFunc07D0_00A4;
	labelFunc07D0_00DD:
		Func090E(item, 0xFE9C, var0007, var0008, Dupre, 0x07D0, item, 0x000A, true);
	labelFunc07D0_00F5:
		return;
}
// externs
extern var Func098E 0x98E ();

Func07D1 0x7D1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func098E();
	enum();
	labelFunc07D1_0007:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc07D1_0040);
		if(!UI_npc_nearby_3A(var0003)) goto labelFunc07D1_003D;
		var0004 = UI_direction_from_A2(var0003, item);
		var0005 = UI_execute_usecode_array_01(var0003, [0x23, 0x61, 0x59, var0004]);
	labelFunc07D1_003D:
		goto labelFunc07D1_0007;
	labelFunc07D1_0040:
		return;
}
Func07D2 0x7D2 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_direction_from_A2(item, 0xFE9C);
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x61, 0x59, var0000]);
	return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func07D3 0x7D3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc07D3_016A;
	var0000 = Func09A0(0x0000, 0x0001);
	var0001 = UI_set_item_quality_1D(var0000, 0x0028);
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0798], 0x000A);
	UI_play_sound_effect_16(0x0027);
	UI_set_weather_53(0x0003);
	Func097F(0xFE9C, "@Oh...@", 0x0002);
	Func097F(0xFE9C, "@AAAAHHHH!!!!!@", 0x002D);
	Func097F(0xFE9C, "@NOOOO!!!!!@", 0x003C);
	var0002 = UI_find_nearby_41(0xFE9C, 0x00A0, 0x0005, 0x0000);
	enum();
	labelFunc07D3_0084:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc07D3_00C3);
		var0006 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x0007, (var0006[0x0001] - 0x0002), (var0006[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		goto labelFunc07D3_0084;
	labelFunc07D3_00C3:
		UI_play_sound_effect_16(0x0077);
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x58, 0x0027, 0x54, 0x0031, 0x0000, 0x61, 0x59, 0x0004, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0006, 0x61, 0x27, 0x0002, 0x70, 0x27, 0x0002, 0x6F, 0x27, 0x0008, 0x55, 0x07D3, 0x27, 0x0004, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0002, 0x70, 0x27, 0x0002, 0x6F, 0x27, 0x0008, 0x55, 0x07D3, 0x27, 0x0004, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x55, 0x07D4], 0x0023);
		gflags[0007] = true;
		abrt();
	labelFunc07D3_016A:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc07D3_0203;
		var0007 = UI_find_nearby_41(item, 0x00A0, 0x0014, 0x0000);
		var0008 = 0x0000;
		enum();
	labelFunc07D3_0190:
		for (var000B in var0007 with var0009 to var000A atend labelFunc07D3_0203);
		var0006 = UI_get_object_position_20(var000B);
		UI_sprite_effect_68((0x0028 + var0008), var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001B, (var0006[0x0001] - 0x0002), (var0006[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0008 = (var0008 + 0x0001);
		goto labelFunc07D3_0190;
	labelFunc07D3_0203:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func08B9 0x8B9 (var var0000, var var0001);

Func07D4 0x7D4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0002) && (gflags[000A] == false))) goto labelFunc07D4_01F8;
	UI_play_sound_effect_16(0x005B);
	var0000 = Func09A0(0x0000, 0x0001);
	UI_play_music_39(0x0040, var0000);
	var0001 = Func09A0(0x0000, 0x0002);
	var0002 = UI_set_item_quality_1D(var0001, 0x0000);
	var0002 = UI_set_item_quality_1D(var0000, 0x0001);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x0002);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x0014);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x0028);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x003C);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x0050);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x005F);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x006E);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x007D);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x008C);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x0096);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x009E);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00A4);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00AA);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00B0);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00B4);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00BA);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D4], 0x00C0);
	gflags[000A] = true;
	gflags[0007] = false;
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07D5], 0x00D2);
	abrt();
	labelFunc07D4_01F8:
		if(!((event == 0x0002) && (gflags[000A] == true))) goto labelFunc07D4_027C;
		var0003 = false;
		var0001 = Func09A0(0x0000, 0x0002);
		var0004 = UI_get_item_quality_1C(var0001);
		if(!(var0004 >= 0x0004)) goto labelFunc07D4_022E;
		var0003 = true;
	labelFunc07D4_022E:
		var0002 = UI_set_item_quality_1D(var0001, (var0004 + 0x0001));
		var0004 = UI_get_item_quality_1C(item);
		if(!(var0004 == 0x0001)) goto labelFunc07D4_0268;
		Func08B9(0x0001, var0003);
		var0002 = UI_set_item_quality_1D(item, 0x0000);
		goto labelFunc07D4_027C;
	labelFunc07D4_0268:
		Func08B9(0x0000, var0003);
		var0002 = UI_set_item_quality_1D(item, 0x0001);
	labelFunc07D4_027C:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func07D5 0x7D5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc07D5_00B7;
	UI_move_object_4B(0xFE9B, [0x0A87, 0x0B02, 0x0002]);
	var0000 = UI_find_nearby_41(0xFE9C, 0x00A0, 0x000A, 0x0000);
	enum();
	labelFunc07D5_0035:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc07D5_0088);
		var0004 = UI_get_item_frame_1A(var0003);
		if(!(var0004 < 0x0005)) goto labelFunc07D5_0085;
		var0005 = UI_get_object_position_20(var0003);
		UI_sprite_effect_68(0x0007, (var0005[0x0001] - 0x0002), (var0005[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc07D5_0085:
		goto labelFunc07D5_0035;
	labelFunc07D5_0088:
		UI_play_sound_effect_16(0x0077);
		var0006 = Func09A0(0x0000, 0x0001);
		var0007 = UI_delayed_execute_usecode_array_02(var0006, [0x23, 0x55, 0x07D5], 0x0019);
		gflags[0007] = true;
		abrt();
	labelFunc07D5_00B7:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc07D5_017B;
		var0008 = UI_get_party_list_2B();
		enum();
	labelFunc07D5_00CD:
		for (var000B in var0008 with var0009 to var000A atend labelFunc07D5_00EF);
		var000C = UI_get_item_shape_18(var000B);
		UI_set_polymorph_B3(var000B, var000C);
		goto labelFunc07D5_00CD;
	labelFunc07D5_00EF:
		var000D = Func0992(Iolo, "@By Lord British's throne...@", "@By Lord British's throne...@", true);
		if(!(var000D == UI_get_npc_number_47(0xFE9C))) goto labelFunc07D5_011C;
		Func097F(var000D, "@...where am I?@", 0x000F);
		goto labelFunc07D5_0128;
	labelFunc07D5_011C:
		Func097F(var000D, "@...where are we?@", 0x000F);
	labelFunc07D5_0128:
		UI_show_npc_face0_05(UI_get_npc_number_47(var000D), 0x0000);
		if(!(var000D == UI_get_npc_number_47(0xFE9C))) goto labelFunc07D5_014B;
		UcMessage("\"This is the architecture I have seen throughout Serpent Isle, but where are the signs of destruction? These are not ruins, they are new!\"");
		UcSay;
		goto labelFunc07D5_014F;
	labelFunc07D5_014B:
		UcMessage("\"Avatar! This is the architecture we have seen throughout Serpent Isle, but where are the signs of destruction? These are not ruins, they are new!\"");
		UcSay;
	labelFunc07D5_014F:
		UI_remove_npc_face0_07();
		UI_play_sound_effect_16(0x0082);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_set_weather_53(0x0000);
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
	labelFunc07D5_017B:
		return;
}
Func07D6 0x7D6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_party_list2_AA();
	var0001 = UI_get_npc_object_23(0xFE9C);
	enum();
	labelFunc07D6_0012:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07D6_0045);
		if(!(var0004 != var0001)) goto labelFunc07D6_0042;
		UI_remove_from_party_27(var0004);
		UI_set_npc_id_BD(var0004, 0x001F);
		UI_set_schedule_type_25(var0004, 0x000F);
	labelFunc07D6_0042:
		goto labelFunc07D6_0012;
	labelFunc07D6_0045:
		return;
}
// externs
extern var Func098D 0x98D ();

Func07D7 0x7D7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func098D();
	enum();
	labelFunc07D7_0007:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc07D7_003A);
		var0004 = UI_get_npc_id_BC(var0003);
		if(!(var0004 == 0x001F)) goto labelFunc07D7_0037;
		UI_add_to_party_26(var0003);
		UI_set_npc_id_BD(var0003, 0x0000);
	labelFunc07D7_0037:
		goto labelFunc07D7_0007;
	labelFunc07D7_003A:
		return;
}
// externs
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func068C 0x68C (var var0000);

Func07D8 0x7D8 (var var0000)
{
	var var0001;
	var var0002;

	if(!gflags[0004]) goto labelFunc07D8_069C;
	var0000 = UI_find_nearby_41(0xFE9C, 0x019E, 0x000A, 0x0000);
	if(!var0000) goto labelFunc07D8_0037;
	if(!(UI_get_item_frame_1A(var0000) == 0x0010)) goto labelFunc07D8_0037;
	UI_clear_item_flag_A5(var0000, 0x0012);
	labelFunc07D8_0037:
		UI_remove_npc_4C(0xFFEF);
		UI_remove_npc_4C(0xFFB7);
		UI_set_item_flag_A4(0xFFB7, 0x0004);
		Func09AC(0xFFC2, 0x0366, 0x0AA9, 0x000F);
		Func09AC(0xFF6A, 0x03B6, 0x0A54, 0x000F);
		Func09AC(0xFFB0, 0x0323, 0x0ABC, 0x000F);
		Func09AC(0xFFC1, 0x03B4, 0x0A17, 0x000F);
		Func09AC(0xFFBF, 0x03D3, 0x0A09, 0x000F);
		Func09AC(0xFFB6, 0x03B8, 0x0A53, 0x000F);
		Func09AC(0xFFBC, 0x0404, 0x0A23, 0x000F);
		Func09AC(0xFFB9, 0x0412, 0x0A27, 0x000F);
		Func09AC(0xFFB8, 0x0415, 0x0A2B, 0x000F);
		Func09AC(Shmed, 0x0433, 0x0A77, 0x000F);
		Func09AC(0xFFB2, 0x0402, 0x0A82, 0x000F);
		Func09AC(0xFFB1, 0x0407, 0x0A47, 0x000F);
		Func09AC(0xFFBB, 0x0427, 0x09C7, 0x000F);
		Func09AC(0xFFB3, 0x0442, 0x09CA, 0x000F);
		Func09AC(0xFFBA, 0x03F6, 0x0A45, 0x000F);
		UI_set_new_schedules_B6(0xFFBD, [0x0002, 0x0004, 0x0005, 0x0007], [0x000B, 0x000B, 0x000C, 0x000E], [0x034A, 0x0AB4, 0x0409, 0x0A24, 0x03A9, 0x0A1B, 0x035B, 0x0A8A]);
		UI_run_schedule_B7(0xFFBD);
		UI_set_alignment_4A(0xFF00, 0x0002);
		UI_move_object_4B(0xFF00, [0x040C, 0x0A26]);
		UI_set_schedule_type_25(0xFF00, 0x0000);
		Func09AC(0xFFF3, 0x0963, 0x0815, 0x000F);
		Func09AC(0xFFD8, 0x08C2, 0x0715, 0x000F);
		Func09AC(0xFFEA, 0x0978, 0x0819, 0x000F);
		Func09AC(0xFFE8, 0x09B7, 0x07E5, 0x000F);
		Func09AC(0xFFE9, 0x096B, 0x07C2, 0x000F);
		Func09AC(0xFFE2, 0x098B, 0x07A6, 0x000F);
		Func09AC(0xFFE0, 0x0999, 0x07A2, 0x000F);
		Func09AC(0xFFE3, 0x0958, 0x0793, 0x000F);
		Func09AC(0xFFE5, 0x0948, 0x0784, 0x000F);
		Func09AC(0xFFEE, 0x0972, 0x0744, 0x000F);
		Func09AC(0xFFEC, 0x0977, 0x0743, 0x000F);
		Func09AC(0xFFD6, 0x0994, 0x0754, 0x000F);
		Func09AC(0xFFD5, 0x0902, 0x0746, 0x000F);
		Func09AC(0xFFEB, 0x08B6, 0x0736, 0x000F);
		Func09AC(0xFFF0, 0x08C2, 0x0705, 0x000F);
		Func09AC(0xFFF2, 0x0953, 0x07B5, 0x000F);
		UI_set_new_schedules_B6(0xFFDF, [0x0000, 0x0003, 0x0004, 0x0005, 0x0006], [0x000E, 0x0005, 0x0010, 0x000C, 0x0005], [0x08F8, 0x071C, 0x090A, 0x0718, 0x08F7, 0x0737, 0x0915, 0x0722, 0x090A, 0x0718]);
		UI_set_new_schedules_B6(0xFFF1, [0x0000, 0x0002, 0x0003], [0x000E, 0x0005, 0x0007], [0x0914, 0x06E7, 0x0919, 0x06E7, 0x093C, 0x0782]);
		UI_set_new_schedules_B6(0xFFED, [0x0000, 0x0002, 0x0005, 0x0006], [0x000E, 0x000C, 0x000C, 0x000C], [0x0937, 0x07C5, 0x08E3, 0x0743, 0x0983, 0x07A6, 0x09A3, 0x0823]);
		UI_set_new_schedules_B6(0xFFFC, [0x0000, 0x0002, 0x0005, 0x0006], [0x000E, 0x000C, 0x000C, 0x000C], [0x0937, 0x07C5, 0x08E3, 0x0743, 0x0983, 0x07A6, 0x09A3, 0x0823]);
		UI_run_schedule_B7(0xFFDF);
		UI_run_schedule_B7(0xFFF1);
		UI_run_schedule_B7(0xFFED);
		UI_run_schedule_B7(0xFFFC);
		if(!UI_get_item_flag_A3(0xFF58, 0x0004)) goto labelFunc07D8_03BF;
		UI_UNKNOWN_64(0xFF58);
		gflags[0149] = true;
	labelFunc07D8_03BF:
		Func09AC(0xFFD2, 0x03E6, 0x0756, 0x000F);
		Func09AC(0xFFD1, 0x0409, 0x06EE, 0x000F);
		Func09AC(0xFFCF, 0x0409, 0x0737, 0x000F);
		Func09AC(0xFFCE, 0x03C8, 0x070D, 0x000F);
		Func09AC(0xFFCD, 0x0447, 0x0722, 0x000F);
		Func09AC(Jendon, 0x0415, 0x0718, 0x000F);
		Func09AC(0xFFCB, 0x03F2, 0x06D8, 0x000F);
		Func09AC(Kylista, 0x0406, 0x0795, 0x000F);
		Func09AC(0xFFD0, 0x0460, 0x06F6, 0x000F);
		Func09AC(0xFFC8, 0x03B5, 0x0697, 0x000F);
		Func09AC(0xFFC7, 0x0407, 0x066E, 0x000F);
		Func09AC(0xFFC6, 0x0467, 0x06C9, 0x000F);
		Func09AC(0xFFC4, 0x0407, 0x0780, 0x000F);
		Func09AC(0xFFC3, 0x03F7, 0x0796, 0x000F);
		UI_set_new_schedules_B6(0xFFC5, [0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x000B, 0x000C, 0x000C, 0x000B, 0x001A, 0x000E], [0x0406, 0x0777, 0x0409, 0x074E, 0x0406, 0x0718, 0x0466, 0x06ED, 0x03AF, 0x06E0, 0x03D6, 0x06C6]);
		UI_run_schedule_B7(0xFFC5);
		var0001 = UI_add_cont_items_36(0xFFC8, 0x0001, 0x031D, 0x000A, 0x0000, 0x0000);
		var0001 = UI_add_cont_items_36(0xFFC3, 0x0001, 0x031D, 0x0007, 0x0000, 0x0000);
		UI_set_polymorph_B3(0xFFC9, 0x0294);
		UI_move_object_4B(0xFFC9, [0x0619, 0x05B9]);
		Func09AC(0xFFC9, 0x0619, 0x05B9, 0x000C);
		if(!UI_get_item_flag_A3(0xFFC6, 0x001C)) goto labelFunc07D8_05BC;
		var0001 = UI_add_cont_items_36(0xFFC6, 0x0001, 0x0268, 0x0005, 0x0009, 0x0000);
		var0001 = UI_add_cont_items_36(0xFFC6, 0x0001, 0x0268, 0x0005, 0x0009, 0x0000);
		var0001 = UI_add_cont_items_36(0xFFC6, 0x0001, 0x0282, 0x007C, 0x0004, 0x0000);
		var0001 = UI_add_cont_items_36(0xFFC6, 0x0001, 0x0282, 0x007D, 0x0013, 0x0000);
	labelFunc07D8_05BC:
		Func09AC(0xFFAF, 0x0521, 0x08B8, 0x000F);
		Func09AC(0xFFDA, 0x04E8, 0x08B9, 0x000F);
		Func09AC(0xFFD9, 0x0517, 0x0893, 0x000F);
		Func09AC(0xFFD7, 0x04F8, 0x08A6, 0x000F);
		UI_set_new_schedules_B6(0xFFD3, [0x0000, 0x0003, 0x0004, 0x0005, 0x0007], [0x000E, 0x0005, 0x0003, 0x000B, 0x0005], [0x0516, 0x08F7, 0x04F7, 0x08CC, 0x050D, 0x08B6, 0x0516, 0x08A2, 0x04F7, 0x08CC]);
		UI_run_schedule_B7(0xFFD3);
		Func09AC(0xFF71, 0x0436, 0x036B, 0x000F);
		Func09AC(0xFF70, 0x0440, 0x0348, 0x000F);
		Func09AC(0xFF6F, 0x0479, 0x0354, 0x000F);
		Func09AC(0xFF67, 0x0404, 0x039B, 0x000F);
		Func09AC(0xFF66, 0x0438, 0x0353, 0x000F);
		0x0000;
		calle();
	labelFunc07D8_069C:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func07D9 0x7D9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(!gflags[021C])) goto labelFunc07D9_00CC;
	var0000 = UI_find_nearby_41(0xFE9C, 0x0331, 0x0014, 0x0000);
	if(!var0000) goto labelFunc07D9_007C;
	var0001 = UI_get_object_position_20(var0000);
	var0002 = UI_create_new_object_2C(0x0121);
	if(!var0002) goto labelFunc07D9_006B;
	UI_set_item_flag_A4(var0002, 0x0012);
	var0003 = UI_update_last_created_2F(var0001);
	if(!var0003) goto labelFunc07D9_006B;
	var0003 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x52, "@Aaahhh!@"], 0x0001);
	labelFunc07D9_006B:
		UI_set_npc_id_BD(0xFF69, 0x0005);
		UI_remove_npc_4C(0xFF69);
	labelFunc07D9_007C:
		var0004 = Func09A0(0x0000, 0x0001);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x55, 0x07DA], 0x000F);
		var0005 = UI_find_nearby_41(0xFE9C, 0x037F, 0x0014, 0x0000);
		enum();
	labelFunc07D9_00B1:
		for (var0002 in var0005 with var0006 to var0007 atend labelFunc07D9_00C9);
		UI_set_item_flag_A4(var0002, 0x0012);
		goto labelFunc07D9_00B1;
	labelFunc07D9_00C9:
		goto labelFunc07D9_00EF;
	labelFunc07D9_00CC:
		var0004 = Func09A0(0x0000, 0x0001);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x55, 0x07DA], 0x0007);
	labelFunc07D9_00EF:
		return;
}
Func07DA 0x7DA (var var0000)
{
	var var0001;

	gflags[0007] = true;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x61, 0x01, 0x59, 0x30]);
	UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	UI_move_object_4B(0xFE9C, [0x0A25, 0x0379, 0x0000]);
	return;
}
Func07DB 0x7DB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_get_object_position_20(0xFFC1);
	if(!gflags[0007]) goto labelFunc07DB_0052;
	UI_UNKNOWN_72();
	UI_obj_sprite_effect_91(0xFFC1, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001);
	UI_play_sound_effect_16(0x0074);
	gflags[0007] = false;
	gflags[0008] = true;
	var0001 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x07DB]);
	abrt();
	labelFunc07DB_0052:
		if(!gflags[0008]) goto labelFunc07DB_009A;
		UI_UNKNOWN_72();
		UI_obj_sprite_effect_91(0xFFC1, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0003, 0x0001);
		UI_play_sound_effect_16(0x0074);
		gflags[0008] = false;
		gflags[0009] = true;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x07DB]);
		abrt();
	labelFunc07DB_009A:
		if(!gflags[0009]) goto labelFunc07DB_011A;
		UI_UNKNOWN_72();
		UI_obj_sprite_effect_91(0xFFC1, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001);
		UI_obj_sprite_effect_91(0xFFC1, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001);
		UI_obj_sprite_effect_91(0xFFC1, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0002, 0x0001);
		UI_play_sound_effect_16(0x0074);
		gflags[0009] = false;
		gflags[000A] = true;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x07DB]);
		abrt();
	labelFunc07DB_011A:
		if(!gflags[000A]) goto labelFunc07DB_0164;
		UI_UNKNOWN_72();
		gflags[000A] = false;
		var0000 = UI_get_object_position_20(0xFFC1);
		UI_remove_npc_4C(0xFFC1);
		var0002 = UI_create_new_object2_2D(0x012E, var0000);
		UI_set_npc_id_BD(var0002, 0x000F);
		UI_set_item_flag_A4(var0002, 0x001D);
		UI_set_schedule_type_25(var0002, 0x000C);
	labelFunc07DB_0164:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func07DC 0x7DC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	if(!(item == Func09A0(0x0001, 0x0003))) goto labelFunc07DC_0060;
	var0000 = UI_get_party_list_2B();
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	UI_clear_item_flag_A5(0xFE9C, 0x0025);
	UI_end_conversation_86();
	UI_play_sound_effect_16(0x0082);
	enum();
	labelFunc07DC_0035:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc07DC_005F);
		UI_obj_sprite_effect_91(var0003, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x000F, Iolo);
		goto labelFunc07DC_0035;
	labelFunc07DC_005F:
		abrt();
	labelFunc07DC_0060:
		if(!gflags[00DA]) goto labelFunc07DC_026C;
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		var0004 = UI_get_party_list_2B();
		var0005 = [0x090F, 0x0912, 0x0918, 0x0915, 0x0915, 0x0918, 0x091B, 0x091B];
		var0006 = [0x071A, 0x0714, 0x0714, 0x071A, 0x0714, 0x071A, 0x0714, 0x071A];
		var0007 = [0x0000, 0x0004, 0x0004, 0x0000, 0x0004, 0x0000, 0x0004, 0x0000];
		var0008 = [0x0910, 0x071C, 0x0000];
		var0009 = 0x0001;
		enum();
	labelFunc07DC_00EA:
		for (var0003 in var0004 with var000A to var000B atend labelFunc07DC_0180);
		UI_move_object_4B(var0003, [var0005[var0009], var0006[var0009], 0x0000]);
		UI_sprite_effect_68(0x0007, var0005[var0009], var0006[var0009], 0x0000, 0x0000, 0x0000, Dupre);
		if(!(UI_get_object_position_20(var0003) != UI_get_object_position_20(0xFE9C))) goto labelFunc07DC_0150;
		UI_set_npc_id_BD(var0003, 0x000B);
		UI_remove_from_party_27(var0003);
	labelFunc07DC_0150:
		var000C = UI_execute_usecode_array_01(var0003, [0x59, var0007[var0009], 0x01, 0x6B]);
		UI_set_schedule_type_25(var0003, 0x000F);
		var0009 = (var0009 + 0x0001);
		goto labelFunc07DC_00EA;
	labelFunc07DC_0180:
		UI_move_object_4B(0xFFEE, [0x090A, 0x0717, 0x0000]);
		UI_move_object_4B(0xFFEC, [0x090C, 0x071A, 0x0000]);
		UI_move_object_4B(0xFFE1, [0x090C, 0x0714, 0x0000]);
		UI_move_object_4B(0xFFEA, [0x090F, 0x0714, 0x0000]);
		UI_move_object_4B(0xFFE3, [0x0916, 0x072E, 0x0000]);
		var0004 = [0xFFEE, 0xFFEC, 0xFFE1, 0xFFEA, 0xFFE3];
		var0007 = [0x0002, 0x0000, 0x0004, 0x0004, 0x0000];
		var0009 = 0x0001;
		enum();
	labelFunc07DC_0210:
		for (var0003 in var0004 with var000D to var000E atend labelFunc07DC_024B);
		UI_set_schedule_type_25(var0003, 0x000F);
		var000C = UI_execute_usecode_array_01(var0003, [0x59, var0007[var0009], 0x01, 0x6B]);
		var0009 = (var0009 + 0x0001);
		goto labelFunc07DC_0210;
	labelFunc07DC_024B:
		var000C = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x55, 0x0636, 0x61, 0x68, 0x55, 0x032E], 0x000F);
		abrt();
	labelFunc07DC_026C:
		if(!gflags[0187]) goto labelFunc07DC_02E2;
		if(!(gflags[0172] || (gflags[0171] || UI_get_item_flag_A3(0xFE9C, 0x0010)))) goto labelFunc07DC_0288;
		abrt();
	labelFunc07DC_0288:
		var000C = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0004), [0x55, 0x07DC], UI_get_random_00(0x02EE));
		var000F = Func0992(0x0001, 0x0000, 0x0000, false);
		UI_clear_item_say_4E(var000F);
		if(!(var000F == 0xFE9C)) goto labelFunc07DC_02D5;
		Func097F(0xFE9C, "@About time for the trial...@", 0x0000);
		abrt();
	labelFunc07DC_02D5:
		Func097F(var000F, "@Do not forget the trial!@", 0x0000);
		abrt();
	labelFunc07DC_02E2:
		return;
}
Func07DD 0x7DD (var var0000)
{
	var var0001;

	var0000 = UI_get_item_shape_18(item);
	return;
}
// externs
extern var Func0994 0x994 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func084E 0x84E (var var0000, var var0001);
extern var Func084D 0x84D (var var0000, var var0001);

Func07DE 0x7DE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!((UI_get_item_shape_18(item) == 0x02D1) || (UI_get_item_shape_18(item) == 0x03DD))) goto labelFunc07DE_002D;
	UI_play_sound_effect_16(0x0066);
	UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	goto labelFunc07DE_012B;
	labelFunc07DE_002D:
		if(!(Func0994() == 0x0002)) goto labelFunc07DE_00FA;
		var0000 = [0x0974, 0x0470, 0x0000];
		var0001 = [0xFF31, 0xFF2D, 0xFF2F, 0xFF2C, 0xFF2B, 0xFF2A, 0xFF30, 0xFF2E];
		if(!UI_get_item_flag_A3(0xFF29, 0x001C)) goto labelFunc07DE_007B;
		var0001 = (var0001 & 0xFF29);
	labelFunc07DE_007B:
		var0002 = UI_get_random_00(0x0008);
		var0003 = Func09A0(0x0005, 0x0001);
		var0004 = UI_set_item_quality_1D(var0003, var0002);
		var0004 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x00FA, 0x0000], 0x001E);
		enum();
	labelFunc07DE_00B9:
		for (var0007 in var0001 with var0005 to var0006 atend labelFunc07DE_00FA);
		UI_move_object_4B(var0007, Func084E(var0007, var0002));
		UI_set_new_schedules_B6(var0007, 0x0000, Func084D(var0007, var0002), Func084E(var0007, var0002));
		UI_run_schedule_B7(var0007);
		goto labelFunc07DE_00B9;
	labelFunc07DE_00FA:
		var0008 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x6D, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0002]);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
	labelFunc07DE_012B:
		return;
}
// externs
extern Func09AA 0x9AA ();
extern Func08C9 0x8C9 ();
extern Func08CA 0x8CA ();
extern Func08CB 0x8CB ();
extern Func08CC 0x8CC ();
extern Func08CD 0x8CD ();
extern Func08CE 0x8CE ();
extern Func08CF 0x8CF (var var0000);
extern Func08D0 0x8D0 ();
extern Func08D1 0x8D1 ();
extern Func08D2 0x8D2 ();
extern Func08D3 0x8D3 ();
extern Func08D4 0x8D4 ();
extern var Func08D5 0x8D5 ();
extern var Func08D6 0x8D6 ();
extern Func08D7 0x8D7 ();
extern Func08D8 0x8D8 ();

Func07DF 0x7DF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	if(!(event == 0x000E)) goto labelFunc07DF_0032;
	Func09AA();
	event = 0x000A;
	if(!(UI_get_item_shape_18(item) == 0x0103)) goto labelFunc07DF_0032;
	var0000 = [0x0A09, 0x055A, 0x0000];
	UI_move_object_4B(item, var0000);
	labelFunc07DF_0032:
		if(!(event == 0x0003)) goto labelFunc07DF_053D;
		if(!(!UI_get_item_quality_1C(item))) goto labelFunc07DF_0049;
		Func08C9();
		goto labelFunc07DF_053D;
	labelFunc07DF_0049:
		var0001 = UI_get_object_position_20(0xFE9C);
		if(!(var0001[0x0003] >= 0x0006)) goto labelFunc07DF_0061;
		abrt();
	labelFunc07DF_0061:
		if(!(UI_get_item_quality_1C(item) == 0x0001)) goto labelFunc07DF_0070;
		Func08CA();
	labelFunc07DF_0070:
		if(!(UI_get_item_quality_1C(item) == 0x0002)) goto labelFunc07DF_007F;
		Func08CB();
	labelFunc07DF_007F:
		if(!(UI_get_item_quality_1C(item) == 0x0003)) goto labelFunc07DF_008E;
		Func08CC();
	labelFunc07DF_008E:
		if(!(UI_get_item_quality_1C(item) == 0x0004)) goto labelFunc07DF_009D;
		Func08CD();
	labelFunc07DF_009D:
		if(!(UI_get_item_quality_1C(item) == 0x0005)) goto labelFunc07DF_00AC;
		Func08CE();
	labelFunc07DF_00AC:
		if(!(UI_get_item_quality_1C(item) == 0x0006)) goto labelFunc07DF_00BE;
		Func08CF(0x0000);
	labelFunc07DF_00BE:
		if(!(UI_get_item_quality_1C(item) == 0x0007)) goto labelFunc07DF_00D0;
		Func08CF(0x0001);
	labelFunc07DF_00D0:
		if(!(UI_get_item_quality_1C(item) == 0x0008)) goto labelFunc07DF_00DF;
		Func08D0();
	labelFunc07DF_00DF:
		if(!(UI_get_item_quality_1C(item) == 0x0009)) goto labelFunc07DF_0100;
		Func08D1();
		var0000 = [0x0A18, 0x0546, 0x0000];
		goto labelFunc07DF_0638;
	labelFunc07DF_0100:
		if(!(UI_get_item_quality_1C(item) == 0x000A)) goto labelFunc07DF_010F;
		Func08D2();
	labelFunc07DF_010F:
		if(!(UI_get_item_quality_1C(item) == 0x000B)) goto labelFunc07DF_011E;
		Func08D3();
	labelFunc07DF_011E:
		if(!(UI_get_item_quality_1C(item) == 0x000C)) goto labelFunc07DF_012D;
		Func08D4();
	labelFunc07DF_012D:
		if(!(UI_get_item_quality_1C(item) == 0x000D)) goto labelFunc07DF_013C;
		Func08CA();
	labelFunc07DF_013C:
		if(!(UI_get_item_quality_1C(item) == 0x000E)) goto labelFunc07DF_0160;
		if(!Func08D5()) goto labelFunc07DF_0160;
		var0000 = [0x09F6, 0x0569, 0x0000];
		goto labelFunc07DF_0638;
	labelFunc07DF_0160:
		if(!(UI_get_item_quality_1C(item) == 0x000F)) goto labelFunc07DF_0184;
		if(!Func08D6()) goto labelFunc07DF_0184;
		var0000 = [0x0A08, 0x053E, 0x0000];
		goto labelFunc07DF_0638;
	labelFunc07DF_0184:
		if(!(UI_get_item_quality_1C(item) == 0x0010)) goto labelFunc07DF_0193;
		Func08D7();
	labelFunc07DF_0193:
		if(!(UI_get_item_quality_1C(item) == 0x0011)) goto labelFunc07DF_01A2;
		Func08CA();
	labelFunc07DF_01A2:
		if(!(UI_get_item_quality_1C(item) == 0x0012)) goto labelFunc07DF_01B1;
		Func08D8();
	labelFunc07DF_01B1:
		var0000 = false;
		if(!(UI_get_item_quality_1C(item) == 0x00C8)) goto labelFunc07DF_0221;
		var0002 = UI_find_nearest_15(item, 0x00E9, 0x0003);
		if(!(UI_get_item_frame_1A(var0002) == 0x0001)) goto labelFunc07DF_0221;
		var0000 = UI_get_object_position_20(0xFE9C);
		var0003 = UI_create_new_object2_2D(0x017D, var0000);
		var0004 = UI_set_last_created_2E(var0003);
		UI_set_polymorph_B3(var0003, 0x017D);
		UI_clear_item_flag_A5(var0003, 0x001D);
		var0000 = [0x0976, 0x0567, 0x0000];
	labelFunc07DF_0221:
		if(!(UI_get_item_quality_1C(item) == 0x00C9)) goto labelFunc07DF_023C;
		var0000 = [0x08DE, 0x05CF, 0x0000];
	labelFunc07DF_023C:
		if(!(UI_get_item_quality_1C(item) == 0x00CA)) goto labelFunc07DF_0273;
		var0002 = UI_find_nearest_15(item, 0x00E9, 0x0003);
		if(!(UI_get_item_frame_1A(var0002) == 0x0001)) goto labelFunc07DF_0273;
		var0000 = [0x088E, 0x057F, 0x0000];
	labelFunc07DF_0273:
		if(!(UI_get_item_quality_1C(item) == 0x00CB)) goto labelFunc07DF_0283;
		Func08CC();
		abrt();
	labelFunc07DF_0283:
		if(!(UI_get_item_quality_1C(item) == 0x00CC)) goto labelFunc07DF_029E;
		var0000 = [0x0926, 0x0564, 0x0001];
	labelFunc07DF_029E:
		if(!(UI_get_item_quality_1C(item) == 0x00CD)) goto labelFunc07DF_02B9;
		var0000 = [0x0988, 0x05F7, 0x0001];
	labelFunc07DF_02B9:
		if(!(UI_get_item_quality_1C(item) == 0x00CE)) goto labelFunc07DF_02D4;
		var0000 = [0x0A18, 0x0606, 0x0000];
	labelFunc07DF_02D4:
		if(!(UI_get_item_quality_1C(item) == 0x00CF)) goto labelFunc07DF_02EF;
		var0000 = [0x0937, 0x0732, 0x0001];
	labelFunc07DF_02EF:
		if(!(UI_get_item_quality_1C(item) == 0x00D0)) goto labelFunc07DF_030A;
		var0000 = [0x086B, 0x05FE, 0x0001];
	labelFunc07DF_030A:
		if(!(UI_get_item_quality_1C(item) == 0x00D1)) goto labelFunc07DF_0332;
		if(!(var0001[0x0003] > 0x0001)) goto labelFunc07DF_0332;
		var0000 = [0x0A2F, 0x0698, 0x0000];
	labelFunc07DF_0332:
		if(!(UI_get_item_quality_1C(item) == 0x00D2)) goto labelFunc07DF_034D;
		var0000 = [0x0A36, 0x0647, 0x0000];
	labelFunc07DF_034D:
		if(!(UI_get_item_quality_1C(item) == 0x00D3)) goto labelFunc07DF_0368;
		var0000 = [0x0A28, 0x06C7, 0x0001];
	labelFunc07DF_0368:
		if(!(UI_get_item_quality_1C(item) == 0x00D4)) goto labelFunc07DF_0462;
		var0005 = UI_get_party_list_2B();
		enum();
	labelFunc07DF_037C:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc07DF_0461);
		var0004 = UI_execute_usecode_array_01(var0008, [0x27, 0x0003]);
		var0000 = [0x0BB8, 0x02CA, 0x0001];
		var0009 = UI_get_object_position_20(var0008);
		var000A = UI_get_object_position_20(item);
		if(!(var0009[0x0001] > var000A[0x0001])) goto labelFunc07DF_03E7;
		var0000[0x0001] = (var0000[0x0001] + (var0009[0x0001] - var000A[0x0001]));
		goto labelFunc07DF_0401;
	labelFunc07DF_03E7:
		var0000[0x0001] = (var0000[0x0001] - (var000A[0x0001] - var0009[0x0001]));
	labelFunc07DF_0401:
		if(!(var0009[0x0002] > var000A[0x0002])) goto labelFunc07DF_042E;
		var0000[0x0002] = (var0000[0x0002] + (var0009[0x0002] - var000A[0x0002]));
		goto labelFunc07DF_0448;
	labelFunc07DF_042E:
		var0000[0x0002] = (var0000[0x0002] - (var000A[0x0002] - var0009[0x0002]));
	labelFunc07DF_0448:
		var0000[0x0003] = var0009[0x0003];
		UI_move_object_4B(var0008, var0000);
		goto labelFunc07DF_037C;
	labelFunc07DF_0461:
		abrt();
	labelFunc07DF_0462:
		if(!(UI_get_item_quality_1C(item) == 0x00D5)) goto labelFunc07DF_047D;
		var0000 = [0x0A15, 0x0557, 0x0000];
	labelFunc07DF_047D:
		if(!var0000) goto labelFunc07DF_053D;
		if(!((UI_get_item_quality_1C(item) == 0x00CF) && ((gflags[0239] == false) && UI_get_item_flag_A3(0xFF58, 0x0006)))) goto labelFunc07DF_0504;
		UI_move_object_4B(0xFE9B, var0000);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0053);
		gflags[0239] = true;
		UI_clear_item_flag_A5(0xFF58, 0x001D);
		gflags[0007] = true;
		var000B = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x04A8], 0x000F);
		goto labelFunc07DF_053D;
	labelFunc07DF_0504:
		UI_move_object_4B(0xFE9B, var0000);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		abrt();
	labelFunc07DF_053D:
		if(!(event == 0x0002)) goto labelFunc07DF_05FE;
		if(!((UI_get_item_shape_18(item) == 0x037F) || (UI_get_item_shape_18(item) == 0x00E0))) goto labelFunc07DF_055E;
		Func08CC();
	labelFunc07DF_055E:
		if(!(UI_get_item_shape_18(item) == 0x0331)) goto labelFunc07DF_056D;
		Func08CD();
	labelFunc07DF_056D:
		if(!(UI_get_item_shape_18(item) == 0x017D)) goto labelFunc07DF_057C;
		Func08CD();
	labelFunc07DF_057C:
		if(!((UI_get_item_shape_18(item) == 0x02D1) || (UI_get_item_shape_18(item) == 0x03DD))) goto labelFunc07DF_0595;
		Func08CD();
	labelFunc07DF_0595:
		if(!(UI_get_item_shape_18(item) == 0x0103)) goto labelFunc07DF_05A4;
		Func08CA();
	labelFunc07DF_05A4:
		if(!(UI_get_item_shape_18(item) == 0x0190)) goto labelFunc07DF_05B3;
		Func08CA();
	labelFunc07DF_05B3:
		if(!(UI_get_item_shape_18(item) == 0x0313)) goto labelFunc07DF_05C2;
		Func08CA();
	labelFunc07DF_05C2:
		if(!(UI_get_item_shape_18(item) == 0x0210)) goto labelFunc07DF_05D1;
		Func08CA();
	labelFunc07DF_05D1:
		if(!(UI_get_item_shape_18(item) == 0x0375)) goto labelFunc07DF_05E0;
		Func08D4();
	labelFunc07DF_05E0:
		if(!(UI_get_item_shape_18(item) == 0x0179)) goto labelFunc07DF_05EF;
		Func08D4();
	labelFunc07DF_05EF:
		if(!(UI_get_item_shape_18(item) == 0x032B)) goto labelFunc07DF_05FE;
		Func08D7();
	labelFunc07DF_05FE:
		if(!(event == 0x000A)) goto labelFunc07DF_0637;
		if(!(UI_get_item_shape_18(item) == UI_get_item_shape_18(0xFF27))) goto labelFunc07DF_0619;
		Func08D4();
	labelFunc07DF_0619:
		if(!(UI_get_item_shape_18(item) == 0x0103)) goto labelFunc07DF_0628;
		Func08CA();
	labelFunc07DF_0628:
		if(!(UI_get_item_shape_18(item) == 0x0190)) goto labelFunc07DF_0637;
		Func08CA();
	labelFunc07DF_0637:
		abrt();
	labelFunc07DF_0638:
		if(!var0000) goto labelFunc07DF_067C;
		var000C = (var0000 & [0xFE99, 0x0000]);
		var000D = UI_find_nearby_41(var000C, 0x0113, 0x0005, 0x0010);
		enum();
	labelFunc07DF_0662:
		for (var0010 in var000D with var000E to var000F atend labelFunc07DF_0677);
		UI_remove_item_84(var0010);
		goto labelFunc07DF_0662;
	labelFunc07DF_0677:
		UI_remove_item_84(item);
	labelFunc07DF_067C:
		return;
}
Func07E0 0x7E0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(item, 0x0113, 0x0008, 0x0010);
	var0001 = 0x0000;
	enum();
	labelFunc07E0_0018:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07E0_003E);
		if(!(UI_get_item_frame_1A(var0004) == 0x0006)) goto labelFunc07E0_003B;
		var0001 = UI_get_item_quality_1C(var0004);
	labelFunc07E0_003B:
		goto labelFunc07E0_0018;
	labelFunc07E0_003E:
		if(!var0001) goto labelFunc07E0_0307;
		var0005 = false;
		if(!(var0001 <= 0x0012)) goto labelFunc07E0_02CB;
		if(!(var0001 == 0x0001)) goto labelFunc07E0_0075;
		var0005 = [0x068F, 0x010F, 0x0006];
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc07E0_0075:
		if(!(var0001 == 0x0002)) goto labelFunc07E0_0098;
		var0005 = [0x0597, 0x03BF, 0x0001];
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc07E0_0098:
		if(!(var0001 == 0x0003)) goto labelFunc07E0_00BB;
		var0005 = [0x04CB, 0x038B, 0x0001];
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc07E0_00BB:
		if(!(var0001 == 0x0004)) goto labelFunc07E0_00DE;
		var0005 = [0x0850, 0x0298, 0x0003];
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc07E0_00DE:
		if(!(var0001 == 0x0005)) goto labelFunc07E0_0101;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x06F8, 0x0288, 0x0001];
	labelFunc07E0_0101:
		if(!(var0001 == 0x0006)) goto labelFunc07E0_0124;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x0AB7, 0x0477, 0x0001];
	labelFunc07E0_0124:
		if(!(var0001 == 0x0007)) goto labelFunc07E0_0147;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x00E3, 0x0348, 0x0001];
	labelFunc07E0_0147:
		if(!(var0001 == 0x0008)) goto labelFunc07E0_016A;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x0437, 0x0617, 0x0001];
	labelFunc07E0_016A:
		if(!(var0001 == 0x0009)) goto labelFunc07E0_018D;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x06B0, 0x0498, 0x0001];
	labelFunc07E0_018D:
		if(!(var0001 == 0x000A)) goto labelFunc07E0_01B0;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x018F, 0x060F, 0x0001];
	labelFunc07E0_01B0:
		if(!(var0001 == 0x000B)) goto labelFunc07E0_01D3;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x0B56, 0x0664, 0x0001];
	labelFunc07E0_01D3:
		if(!(var0001 == 0x000C)) goto labelFunc07E0_01F6;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x07F5, 0x0568, 0x0001];
	labelFunc07E0_01F6:
		if(!(var0001 == 0x000D)) goto labelFunc07E0_0219;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x0998, 0x0827, 0x0001];
	labelFunc07E0_0219:
		if(!(var0001 == 0x000E)) goto labelFunc07E0_023C;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x0928, 0x0137, 0x0001];
	labelFunc07E0_023C:
		if(!(var0001 == 0x000F)) goto labelFunc07E0_025F;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x0627, 0x01F5, 0x0001];
	labelFunc07E0_025F:
		if(!(var0001 == 0x0010)) goto labelFunc07E0_0282;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x02CF, 0x0A31, 0x0001];
	labelFunc07E0_0282:
		if(!(var0001 == 0x0011)) goto labelFunc07E0_02A5;
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		var0005 = [0x0A4F, 0x03BB, 0x0001];
	labelFunc07E0_02A5:
		if(!(var0001 == 0x0012)) goto labelFunc07E0_02C8;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x0632, 0x0349, 0x0001];
	labelFunc07E0_02C8:
		goto labelFunc07E0_02E4;
	labelFunc07E0_02CB:
		UI_set_item_flag_A4(0xFE9C, 0x0025);
		var0005 = [0x0AF8, 0x01F8, 0x0001];
	labelFunc07E0_02E4:
		UI_move_object_4B(0xFE9B, var0005);
		gflags[026F] = false;
		var0006 = UI_execute_usecode_array_01(item, [0x27, 0x0004, 0x55, 0x07DE]);
	labelFunc07E0_0307:
		return;
}
// externs
extern Func0982 0x982 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AD 0x9AD (var var0000);
extern Func094F 0x94F (var var0000, var var0001);

Func07E1 0x7E1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!(event == 0x0004)) goto labelFunc07E1_0167;
	var0000 = UI_click_on_item_3F();
	if(!(!UI_is_npc_3D(var0000))) goto labelFunc07E1_001B;
	abrt();
	labelFunc07E1_001B:
		UI_play_sound_effect_16(0x005B);
		var0001 = UI_get_npc_number_47(var0000);
		if(!(var0001 == 0xFF64)) goto labelFunc07E1_0153;
		gflags[02BC] = true;
		UI_set_item_flag_A4(0xFF64, 0x001D);
		UI_set_alignment_4A(0xFF64, 0x0003);
		UI_set_item_frame_1B(0xFF64, 0x000D);
		UI_set_schedule_type_25(0xFF64, 0x000F);
		var0002 = UI_get_npc_prop_28(0xFF64, 0x0003);
		Func0982(0xFF64, (var0002 - 0x0001));
		Func097F(0xFF64, "@zzzzzz....@", 0x0002);
		if(!UI_npc_nearby_3A(0xFF63)) goto labelFunc07E1_00A4;
		Func09AD(0xFF63);
		Func097F(0xFF63, "@I obey, Master!@", 0x0002);
	labelFunc07E1_00A4:
		if(!UI_npc_nearby_3A(0xFF62)) goto labelFunc07E1_00C0;
		Func09AD(0xFF62);
		Func097F(0xFF62, "@Hold on, Master!@", 0x0007);
	labelFunc07E1_00C0:
		if(!UI_get_item_flag_A3(0xFF65, 0x0004)) goto labelFunc07E1_00CE;
		abrt();
	labelFunc07E1_00CE:
		if(!(!UI_find_nearby_41(item, 0x02E6, Dupre, 0x00B0))) goto labelFunc07E1_0105;
		var0002 = UI_approach_avatar_BF(0xFF65, 0x008C, 0x0028);
		var0002 = UI_execute_usecode_array_01(var0000, [0x61, 0x6C, 0x6D, 0x6E]);
	labelFunc07E1_0105:
		UI_clear_item_flag_A5(0xFF65, 0x0001);
		UI_set_schedule_type_25(0xFF65, 0x0000);
		UI_set_oppressor_5E(0xFF65, 0xFF64);
		UI_set_opponent_5B(0xFF65, 0xFF64);
		UI_set_alignment_4A(0xFF65, 0x0001);
		UI_clear_item_say_4E(0xFF65);
		Func094F(0xFF65, ["Die, Draygan!", "I shall kill thee!", "Whoreson!"]);
		goto labelFunc07E1_0167;
	labelFunc07E1_0153:
		UI_set_item_flag_A4(var0000, 0x0001);
		UI_set_schedule_type_25(var0000, 0x000E);
	labelFunc07E1_0167:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func0178 0x178 (var var0000);
extern Func010E 0x10E (var var0000);
extern Func01B1 0x1B1 (var var0000);
extern Func01B0 0x1B0 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func09A1 0x9A1 (var var0000);
extern Func09AD 0x9AD (var var0000);
extern Func09A2 0x9A2 (var var0000, var var0001);

Func07E2 0x7E2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = UI_get_item_quality_1C(item);
	if(!(var0000 == 0x0000)) goto labelFunc07E2_0019;
	UI_error_message_40("egg quality not set");
	labelFunc07E2_0019:
		if(!((var0000 == 0x0001) || (var0000 == 0x0048))) goto labelFunc07E2_0121;
		var0001 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
		var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x00B0));
		var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x01B1, 0x000A, 0x00B0));
		var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x01B0, 0x000A, 0x00B0));
		enum();
	labelFunc07E2_0084:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07E2_0112);
		if(!(UI_get_item_quality_1C(var0004) == 0x0048)) goto labelFunc07E2_010F;
		if(!(Func0906(var0004) == 0x0001)) goto labelFunc07E2_010F;
		var0005 = UI_delayed_execute_usecode_array_02(var0004, [0x55, 0x07E2], 0x0002);
		if(!(UI_get_item_shape_18(var0004) == 0x0178)) goto labelFunc07E2_00D3;
		var0004;
		calle();
	labelFunc07E2_00D3:
		if(!(UI_get_item_shape_18(var0004) == 0x010E)) goto labelFunc07E2_00E7;
		var0004;
		calle();
	labelFunc07E2_00E7:
		if(!(UI_get_item_shape_18(var0004) == 0x01B1)) goto labelFunc07E2_00FB;
		var0004;
		calle();
	labelFunc07E2_00FB:
		if(!(UI_get_item_shape_18(var0004) == 0x01B0)) goto labelFunc07E2_010F;
		var0004;
		calle();
	labelFunc07E2_010F:
		goto labelFunc07E2_0084;
	labelFunc07E2_0112:
		if(!(event == 0x0002)) goto labelFunc07E2_0121;
		Func0907(item, 0x0002);
	labelFunc07E2_0121:
		if(!(var0000 == 0x0002)) goto labelFunc07E2_01DE;
		gflags[004A] = true;
		var0001 = UI_find_nearby_41(item, 0x0178, 0x0014, 0x0000);
		enum();
	labelFunc07E2_0141:
		for (var0004 in var0001 with var0006 to var0007 atend labelFunc07E2_016E);
		if(!(UI_get_item_quality_1C(var0004) == 0x003D)) goto labelFunc07E2_016B;
		UI_set_item_frame_1B(var0004, 0x000C);
		UI_play_sound_effect_16(0x0004);
	labelFunc07E2_016B:
		goto labelFunc07E2_0141;
	labelFunc07E2_016E:
		var0001 = UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000);
		enum();
	labelFunc07E2_0180:
		for (var0004 in var0001 with var0008 to var0009 atend labelFunc07E2_01AD);
		if(!(UI_get_item_quality_1C(var0004) == 0x0048)) goto labelFunc07E2_01AA;
		UI_set_item_frame_1B(var0004, 0x000C);
		UI_play_sound_effect_16(0x0004);
	labelFunc07E2_01AA:
		goto labelFunc07E2_0180;
	labelFunc07E2_01AD:
		Func097F(0xFE9C, "@I made it!@", 0x0002);
		Func097F(Shmed, "@Thou didst survive?@", 0x000A);
		UI_set_schedule_type_25(Shmed, 0x0003);
		Func09AC(Shmed, 0x0337, 0x08C8, 0x0003);
	labelFunc07E2_01DE:
		if(!(var0000 == 0x0003)) goto labelFunc07E2_022D;
		var000A = Func09A1(0x0212);
		if(!var000A) goto labelFunc07E2_022D;
		var000B = UI_get_object_position_20(item);
		Func09AD(var000A);
		var0005 = UI_set_last_created_2E(var000A);
		if(!var0005) goto labelFunc07E2_022D;
		var0005 = UI_update_last_created_2F(var000B);
		if(!(!var0005)) goto labelFunc07E2_022D;
		Func09A2(var000A, item);
	labelFunc07E2_022D:
		if(!(var0000 == 0x0004)) goto labelFunc07E2_02B9;
		UI_play_sound_effect_16(0x0077);
		var000B = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0007, var000B[0x0001], var000B[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFEE4, var000B);
		UI_set_item_flag_A4(0xFEE4, 0x001D);
		UI_set_item_flag_A4(0xFEE4, 0x0000);
		UI_set_npc_id_BD(0xFEE4, 0x000E);
		Func09AD(0xFEE4);
		Func097F(0xFEE4, "@Accept thy death, Avatar!@", 0x0002);
		var0005 = UI_delayed_execute_usecode_array_02(0xFEE4, [0x23, 0x55, 0x00E4, 0x0000], 0x0006);
	labelFunc07E2_02B9:
		return;
}
Func07E3 0x7E3 (var var0000)
{
	if(!UI_is_npc_3D(item)) goto labelFunc07E3_0018;
	UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
	goto labelFunc07E3_0025;
	labelFunc07E3_0018:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
	labelFunc07E3_0025:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func07E4 0x7E4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func09A0(0x0002, 0x0001);
	var0001 = UI_get_item_quality_1C(var0000);
	var0002 = UI_find_nearby_41(0xFE9C, 0x03C1, 0x0064, 0x0010);
	if(!(var0001 == 0x0000)) goto labelFunc07E4_00A2;
	UI_play_music_39(0x0010, var0000);
	UI_set_schedule_type_25(0xFFD8, 0x000C);
	UI_set_schedule_type_25(0xFFD5, 0x000C);
	UI_set_schedule_type_25(0xFFDB, 0x000C);
	UI_set_schedule_type_25(0xFFD6, 0x000C);
	UI_set_barge_dir_C0(var0002, 0x0002);
	var0003 = [0x2C, 0x32, 0x21, 0x0B, Shamino, 0x0008, 0x55, 0x07E4];
	var0004 = UI_execute_usecode_array_01(var0002, var0003);
	var0004 = UI_set_item_quality_1D(var0000, 0x0001);
	labelFunc07E4_00A2:
		if(!(var0001 == 0x0001)) goto labelFunc07E4_00E9;
		UI_set_barge_dir_C0(var0002, 0x0004);
		var0003 = [0x2C, 0x34, 0x21, 0x0B, Shamino, 0x0011, 0x55, 0x07E4];
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0002);
	labelFunc07E4_00E9:
		if(!(var0001 == 0x0002)) goto labelFunc07E4_0130;
		UI_set_barge_dir_C0(var0002, 0x0002);
		var0003 = [0x2C, 0x32, 0x21, 0x0B, Shamino, 0x0009, 0x55, 0x07E4];
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0003);
	labelFunc07E4_0130:
		if(!(var0001 == 0x0003)) goto labelFunc07E4_0177;
		UI_set_barge_dir_C0(var0002, 0x0004);
		var0003 = [0x2C, 0x34, 0x21, 0x0B, Shamino, 0x0009, 0x55, 0x07E4];
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0004);
	labelFunc07E4_0177:
		if(!(var0001 == 0x0004)) goto labelFunc07E4_01BE;
		UI_set_barge_dir_C0(var0002, 0x0002);
		var0003 = [0x2C, 0x32, 0x21, 0x0B, Shamino, 0x0038, 0x55, 0x07E4];
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0005);
	labelFunc07E4_01BE:
		if(!(var0001 == 0x0005)) goto labelFunc07E4_0205;
		UI_set_barge_dir_C0(var0002, 0x0004);
		var0003 = [0x2C, 0x34, 0x21, 0x0B, Shamino, 0x0006, 0x55, 0x07E4];
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0006);
	labelFunc07E4_0205:
		if(!(var0001 == 0x0006)) goto labelFunc07E4_027E;
		UI_set_barge_dir_C0(var0002, 0x0002);
		UI_show_npc_face0_05(0xFFD8, 0x0000);
		UcMessage("\"Reef the sails an' hang on! There be one of those damned storms a bearin' down on us! Heavens help us!\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_play_music_39(0x0016, var0000);
		UI_set_barge_dir_C0(var0002, 0x0002);
		var0003 = [0x2C, 0x32, 0x55, 0x07E5, 0x21, 0x0B, 0xFFFB, 0x005A, 0x55, 0x07E6];
		UI_set_weather_53(0x0002);
		var0004 = UI_execute_usecode_array_01(var0002, var0003);
		var0004 = UI_set_item_quality_1D(var0000, 0x0000);
	labelFunc07E4_027E:
		return;
}
Func07E5 0x7E5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = UI_die_roll_17(0x0001, 0x0003);
	if(!(var0000 == 0x0001)) goto labelFunc07E5_0084;
	var0001 = [0x0000, 0x0003, 0x000C, 0x0028, 0x002B];
	var0002 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0001));
	var0003 = var0001[var0002];
	var0004 = (0x0004 * UI_die_roll_17(0xFFF1, 0x000F));
	var0005 = (0x0004 * UI_die_roll_17(0xFFF1, 0x000F));
	UI_obj_sprite_effect_91(0xFE9C, var0003, var0004, var0005, 0x0000, 0x0001, 0x0000, Dupre);
	labelFunc07E5_0084:
		if(!(var0000 == 0x0002)) goto labelFunc07E5_00BB;
		var0006 = [0x0009, 0x000F, 0x0030, 0x004C, 0x006D];
		var0007 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0006));
		UI_play_sound_effect_16(var0007);
	labelFunc07E5_00BB:
		if(!(var0000 == 0x0003)) goto labelFunc07E5_0127;
		var0008 = ["@Oh!@", "@Whee!@", "@Ouch!@", "@Whoa!@"];
		var0009 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0008));
		var000A = var0008[var0009];
		var000B = [0xFFD5, 0xFFDB, 0xFFD8, 0xFFD6];
		var000C = UI_die_roll_17(0x0001, UI_get_array_size_73(var000B));
		var000D = var000B[var000C];
		UI_item_say_4D(var000D, var000A);
	labelFunc07E5_0127:
		return;
}
// externs
extern Func0917 0x917 (var var0000, var var0001);
extern var Func0910 0x910 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func07E6 0x7E6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	var0000 = UI_find_nearby_41(item, 0x00FB, 0x0019, 0x0000);
	Func0917(var0000, 0x0000);
	var0001 = UI_find_nearby_41(item, 0x030D, 0x0019, 0x0000);
	if(!(!Func0910(var0001))) goto labelFunc07E6_0046;
	UI_error_message_40("Cannot lower Plank's constant");
	labelFunc07E6_0046:
		UI_show_npc_face0_05(0xFFD8, 0x0000);
		var0002 = UI_is_pc_female_6F();
		if(!(var0002 == true)) goto labelFunc07E6_0068;
		var0003 = "lass";
		goto labelFunc07E6_006E;
	labelFunc07E6_0068:
		var0003 = "lad";
	labelFunc07E6_006E:
		UcMessage("\"Here ye be, ");
		UcMessage(var0003);
		UcMessage("...\" ~\"I never thought we'd make it, but Moonshade lies over yon.\"");
		UcSay;
		UcMessage("\"I'll not even attempt to make the Arabella seaworthy until these blasted storms are over!\"");
		UcSay;
		UcMessage("\"If ye be wantin' Captain Hawk, I'll be at the bottom of a mug at the Blue Boar Inn.\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_set_weather_53(0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0011);
		UI_clear_item_flag_A5(0xFFD8, 0x0010);
		UI_set_item_flag_A4(0xFFDB, 0x0024);
		UI_set_item_flag_A4(0xFFE7, 0x001D);
		var0004 = [0xFFD8, 0xFFD6, 0xFFDB, 0xFFD5];
		var0005 = [0x08AC, 0x0718];
		var0006 = [0x07BA, 0x08D3];
		var0007 = [0x08C8, 0x0716];
		UI_set_new_schedules_B6(0xFFD8, [0x0000, 0x0003, 0x0004], [0x000E, 0x0007, 0x001A], [var0005, var0006, var0007]);
		var0008 = [0x0935, 0x06E3];
		var0009 = [0x08B9, 0x070B];
		var000A = [0x08CB, 0x074A];
		var000B = [0x087E, 0x0747];
		var000C = [0x0942, 0x077E];
		UI_set_new_schedules_B6(0xFFD6, [0x0000, 0x0003, 0x0005, 0x0006, 0x0007], [0x000E, 0x001A, 0x0007, 0x0007, 0x0007], [var0008, var0009, var000A, var000B, var000C]);
		var000D = [0x08BD, 0x0713];
		var000E = [0x0893, 0x0718];
		UI_set_new_schedules_B6(0xFFDB, [0x0002, 0x0003, 0x0007], [0x000C, 0x0009, 0x000A], [var000D, var000D, var000E]);
		var000F = [0x08B9, 0x0710];
		var0010 = [0x0895, 0x0719];
		UI_set_new_schedules_B6(0xFFD5, [0x0002, 0x0003, 0x0007], [0x001A, 0x0007, 0x000E], [var000F, var000F, var0010]);
		enum();
	labelFunc07E6_0214:
		for (var0013 in var0004 with var0011 to var0012 atend labelFunc07E6_0229);
		UI_run_schedule_B7(var0013);
		goto labelFunc07E6_0214;
	labelFunc07E6_0229:
		gflags[01CB] = false;
		gflags[01CC] = true;
		Func097F(0xFFD8, "@Never again!@", 0x023E);
		return;
}
// externs
extern Func08BB 0x8BB ();
extern Func08BC 0x8BC ();
extern Func08BD 0x8BD ();
extern Func08BF 0x8BF ();

Func07E7 0x7E7 (var var0000)
{
	var var0001;

	if(!(event == 0x0003)) goto labelFunc07E7_00AD;
	var0000 = UI_get_item_quality_1C(item);
	if(!(!var0000)) goto labelFunc07E7_001E;
	UI_error_message_40("Invalid Egg!");
	labelFunc07E7_001E:
		if(!(var0000 == 0x0001)) goto labelFunc07E7_002B;
		Func08BB();
	labelFunc07E7_002B:
		if(!(var0000 == 0x0002)) goto labelFunc07E7_0038;
		Func08BB();
	labelFunc07E7_0038:
		if(!(var0000 == 0x0003)) goto labelFunc07E7_0045;
		Func08BC();
	labelFunc07E7_0045:
		if(!(var0000 == 0x0004)) goto labelFunc07E7_0052;
		Func08BD();
	labelFunc07E7_0052:
		if(!(var0000 == 0x0005)) goto labelFunc07E7_005F;
		Func08BC();
	labelFunc07E7_005F:
		if(!(var0000 == 0x0006)) goto labelFunc07E7_006C;
		Func08BC();
	labelFunc07E7_006C:
		if(!(var0000 == 0x0007)) goto labelFunc07E7_0079;
		Func08BF();
	labelFunc07E7_0079:
		if(!(var0000 == 0x0008)) goto labelFunc07E7_0086;
		Func08BF();
	labelFunc07E7_0086:
		if(!(var0000 == 0x0009)) goto labelFunc07E7_0093;
		Func08BF();
	labelFunc07E7_0093:
		if(!(var0000 == 0x000A)) goto labelFunc07E7_00A0;
		Func08BF();
	labelFunc07E7_00A0:
		if(!(var0000 == 0x000B)) goto labelFunc07E7_00AD;
		Func08BF();
	labelFunc07E7_00AD:
		if(!(event == 0x0002)) goto labelFunc07E7_00F1;
		if(!(UI_get_item_shape_18(item) == 0x0210)) goto labelFunc07E7_00C4;
		Func08BB();
	labelFunc07E7_00C4:
		if(!(UI_get_item_shape_18(item) == 0x00F3)) goto labelFunc07E7_00D3;
		Func08BC();
	labelFunc07E7_00D3:
		if(!(UI_get_item_shape_18(item) == 0x0106)) goto labelFunc07E7_00E2;
		Func08BF();
	labelFunc07E7_00E2:
		if(!(UI_get_item_shape_18(item) == 0x017C)) goto labelFunc07E7_00F1;
		Func08BF();
	labelFunc07E7_00F1:
		return;
}
// externs
extern Func08BA 0x8BA ();

Func07E8 0x7E8 (var var0000)
{
	var var0001;
	var var0002;

	var0000 = UI_get_container_83(item);
	if(!(!(var0000 == 0x0000))) goto labelFunc07E8_002A;
	var0001 = UI_get_npc_number_47(var0000);
	if(!(var0001 == 0xFF64)) goto labelFunc07E8_002A;
	Func08BA();
	labelFunc07E8_002A:
		return;
}
// externs
extern var Func0979 0x979 (var var0000);

Func07E9 0x7E9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = 0x0000;
	if(!(event == 0x0002)) goto labelFunc07E9_02B2;
	var0001 = UI_click_on_item_3F();
	var0002 = UI_get_item_shape_18(var0001);
	var0003 = false;
	var0004 = UI_get_object_position_20(0xFE9C);
	if(!((var0002 == 0x02D1) || (var0002 == 0x03DD))) goto labelFunc07E9_007A;
	var0005 = (var0004[0x0003] + 0x0001);
	var0005 = (var0005 / 0x0002);
	UI_obj_sprite_effect_91(0xFE9C, 0x0009, var0005, var0005, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0021);
	exit2();
	labelFunc07E9_007A:
		if(!UI_is_npc_3D(var0001)) goto labelFunc07E9_0098;
		UI_halt_scheduled_71(var0001);
		var0003 = UI_get_object_position_20(var0001);
		goto labelFunc07E9_00D3;
	labelFunc07E9_0098:
		if(!(var0001 == 0x0000)) goto labelFunc07E9_00C9;
		var0003[0x0001] = var0001[0x0002];
		var0003[0x0002] = var0001[0x0003];
		var0003[0x0003] = var0001[0x0004];
		goto labelFunc07E9_00D3;
	labelFunc07E9_00C9:
		var0003 = UI_get_object_position_20(var0001);
	labelFunc07E9_00D3:
		var0006 = UI_create_new_object_2C(0x025F);
		if(!var0006) goto labelFunc07E9_0117;
		UI_set_item_frame_1B(var0006, 0x001F);
		UI_set_item_flag_A4(var0006, 0x0012);
		var0007 = UI_set_item_quality_1D(var0006, 0x0096);
		var0007 = UI_update_last_created_2F(var0003);
		var0008 = Func0979(var0006);
	labelFunc07E9_0117:
		var0007 = UI_execute_usecode_array_01(UI_get_npc_object_23(0xFE9C), [0x59, var0008]);
		if(!(var0003[0x0001] < var0004[0x0001])) goto labelFunc07E9_014D;
		var0004[0x0001] = (var0004[0x0001] - 0x0002);
	labelFunc07E9_014D:
		if(!(var0003[0x0001] > var0004[0x0001])) goto labelFunc07E9_016D;
		var0004[0x0001] = (var0004[0x0001] + 0x0002);
	labelFunc07E9_016D:
		if(!(var0003[0x0002] < var0004[0x0002])) goto labelFunc07E9_018D;
		var0004[0x0002] = (var0004[0x0002] - 0x0002);
	labelFunc07E9_018D:
		if(!(var0003[0x0001] > var0004[0x0001])) goto labelFunc07E9_01AD;
		var0004[0x0002] = (var0004[0x0002] + 0x0002);
	labelFunc07E9_01AD:
		var0009 = UI_create_new_object_2C(0x037F);
		if(!var0009) goto labelFunc07E9_02B2;
		UI_set_item_frame_1B(var0009, 0x0000);
		UI_set_item_flag_A4(var0009, 0x0012);
		if(!UI_is_not_blocked_A0(var0004, 0x0284, 0x0000)) goto labelFunc07E9_01EE;
		var0007 = UI_update_last_created_2F(var0004);
		goto labelFunc07E9_028A;
	labelFunc07E9_01EE:
		var0004[0x0003] = (var0004[0x0003] + 0x0001);
		if(!UI_is_not_blocked_A0(var0004, 0x0284, 0x0000)) goto labelFunc07E9_021B;
		var0007 = UI_update_last_created_2F(var0004);
		goto labelFunc07E9_028A;
	labelFunc07E9_021B:
		var0004[0x0003] = (var0004[0x0003] - 0x0002);
		if(!UI_is_not_blocked_A0(var0004, 0x02D1, 0x0000)) goto labelFunc07E9_0248;
		var0007 = UI_update_last_created_2F(var0004);
		goto labelFunc07E9_028A;
	labelFunc07E9_0248:
		var0005 = (var0004[0x0003] + 0x0001);
		var0005 = (var0005 / 0x0002);
		UI_obj_sprite_effect_91(0xFE9C, 0x0009, var0005, var0005, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		UI_remove_item_84(var0006);
		exit2();
	labelFunc07E9_028A:
		var0007 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x2D], 0x0009);
		var0007 = UI_execute_usecode_array_01(var0009, [0x23, 0x55, 0x07EA]);
	labelFunc07E9_02B2:
		return;
}
// externs
extern var Func0831 0x831 (var var0000, var var0001);

Func07EA 0x7EA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(event == 0x0002)) goto labelFunc07EA_0185;
	var0000 = false;
	var0001 = false;
	var0002 = (UI_get_object_position_20(0xFE9C) & (0x0096 & 0x001F));
	var0003 = UI_find_nearby_41(var0002, 0x025F, 0x0050, 0x0010);
	enum();
	labelFunc07EA_0036:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc07EA_006E);
		if(!((UI_get_item_quality_1C(var0006) == 0x0096) && (UI_get_item_frame_1A(var0006) == 0x001F))) goto labelFunc07EA_006B;
		var0000 = var0006;
		var0001 = UI_get_object_position_20(var0006);
	labelFunc07EA_006B:
		goto labelFunc07EA_0036;
	labelFunc07EA_006E:
		if(!(!var0000)) goto labelFunc07EA_0076;
		exit2();
	labelFunc07EA_0076:
		var0007 = UI_get_object_position_20(item);
		var0008 = Func0831(var0007, var0001);
		if(!(!var0008)) goto labelFunc07EA_00A6;
		var0009 = UI_execute_usecode_array_01(var0000, [0x55, 0x07EB, 0x2D]);
		exit2();
	labelFunc07EA_00A6:
		var0008 = Func0831(var0007, var0001);
		if(!(!UI_is_not_blocked_A0(var0008, 0x02D1, 0x0000))) goto labelFunc07EA_00CF;
		var0008 = Func0831(var0007, var0001);
	labelFunc07EA_00CF:
		if(!(!UI_is_not_blocked_A0(var0008, 0x02D1, 0x0000))) goto labelFunc07EA_00EC;
		var0008 = Func0831(var0007, var0001);
	labelFunc07EA_00EC:
		if(!(!UI_is_not_blocked_A0(var0008, 0x02D1, 0x0000))) goto labelFunc07EA_0109;
		var0008 = Func0831(var0007, var0001);
	labelFunc07EA_0109:
		if(!(!UI_is_not_blocked_A0(var0008, 0x02D1, 0x0000))) goto labelFunc07EA_012F;
		var0009 = UI_execute_usecode_array_01(var0000, [0x55, 0x07EB, 0x2D]);
		exit2();
	labelFunc07EA_012F:
		var000A = UI_create_new_object_2C(0x037F);
		if(!var000A) goto labelFunc07EA_0185;
		UI_set_item_frame_1B(var000A, 0x0000);
		UI_set_item_flag_A4(var000A, 0x0012);
		if(!UI_update_last_created_2F(var0008)) goto labelFunc07EA_0185;
		var0009 = UI_delayed_execute_usecode_array_02(var000A, [0x23, 0x2D], 0x0009);
		var0009 = UI_execute_usecode_array_01(var000A, [0x23, 0x55, 0x07EA]);
	labelFunc07EA_0185:
		return;
}
Func07EB 0x7EB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_get_object_position_20(item);
	var0001 = (var0000[0x0003] + 0x0001);
	var0001 = (var0001 / 0x0002);
	UI_sprite_effect_68(0x0001, (var0000[0x0001] + var0001), (var0000[0x0002] + var0001), 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x002A);
	var0002 = UI_get_party_list2_AA();
	var0003 = UI_find_nearby_41(item, 0xFE99, 0x0005, 0x0008);
	enum();
	labelFunc07EB_0066:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc07EB_0111);
		if(!(!in(var0006, var0002))) goto labelFunc07EB_010E;
		var0007 = UI_die_roll_17(0x0005, 0x000A);
		var0008 = UI_apply_damage_76(UI_get_npc_prop_28(var0006, 0x0000), var0007, 0x0001, var0006);
		var0007 = UI_die_roll_17(0x0005, 0x000A);
		var0008 = UI_apply_damage_76(UI_get_npc_prop_28(var0006, 0x0000), var0007, 0x0002, var0006);
		var0009 = UI_get_alignment_49(var0006);
		if(!((var0009 == 0x0002) || (var0009 == 0x0003))) goto labelFunc07EB_00F0;
		UI_set_schedule_type_25(var0006, 0x0000);
	labelFunc07EB_00F0:
		if(!(var0009 == 0x0000)) goto labelFunc07EB_010E;
		UI_set_alignment_4A(var0006, 0x0002);
		UI_set_schedule_type_25(var0006, 0x0000);
	labelFunc07EB_010E:
		goto labelFunc07EB_0066;
	labelFunc07EB_0111:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func094F 0x94F (var var0000, var var0001);

Func07EC 0x7EC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!((event == 0x0002) && ((gflags[0007] == false) && (gflags[0008] == false)))) goto labelFunc07EC_0173;
	var0000 = UI_get_object_position_20(0xFF31);
	UI_sprite_effect_68(0x0015, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0082);
	var0001 = UI_find_nearby_41(UI_get_npc_object_23(0xFF2D), 0x0113, 0x0002, 0x0010);
	var0002 = UI_projectile_effect_4F(0xFF31, var0001, 0x0118);
	var0003 = UI_execute_usecode_array_01(0xFF31, [0x23, 0x6F, 0x67, 0x01, 0x7A]);
	var0004 = UI_get_distance_21(0xFF2D, 0xFF31);
	var0005 = (var0004 / 0x0002);
	labelFunc07EC_00A1:
		if(!(var0005 < 0x002D)) goto labelFunc07EC_0107;
		var0003 = UI_delayed_execute_usecode_array_02(0xFF2D, [0x23, 0x55, 0x075A], var0005);
		var0003 = UI_delayed_execute_usecode_array_02(0xFF2D, [0x23, 0x55, 0x075A], (var0005 + 0x0001));
		var0003 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x6F, 0x70, 0x27, 0x0001, 0x61], var0005);
		var0005 = (var0005 + 0x000A);
		goto labelFunc07EC_00A1;
	labelFunc07EC_0107:
		Func097F(0xFF2D, "@Damn thee!@", 0x000A);
		Func097F(0xFF2D, "@Oh...@", 0x0011);
		var0003 = UI_delayed_execute_usecode_array_02(0xFF2D, [0x23, 0x27, 0x0006, 0x6C, 0x27, 0x0006, 0x6D, 0x27, 0x000A, 0x6E, 0x27, 0x0014, 0x6D, 0x27, 0x0005, 0x6C, 0x27, 0x0003, 0x61, 0x27, 0x0002, 0x59, 0x32, 0x27, 0x0002, 0x55, 0x07EC], 0x0001);
		gflags[0007] = true;
		abrt();
	labelFunc07EC_0173:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc07EC_028C;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		UcMessage("\"I'm not so easily defeated, friend monk...\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = ("@In Frio Grav!@" & ("@Mas Frio!@" & "@Take that!@"));
		Func094F(0xFF2D, var0003);
		var0003 = ("" & "@Ah!@");
		Func094F(0xFF31, var0003);
		var0003 = UI_create_new_object_2C(0x0390);
		if(!var0003) goto labelFunc07EC_01E9;
		UI_set_item_flag_A4(var0003, 0x0012);
		var0003 = UI_update_last_created_2F(UI_get_object_position_20(0xFF2D));
	labelFunc07EC_01E9:
		var0006 = UI_find_nearby_41(UI_get_npc_object_23(0xFF2D), 0x025F, 0x0019, 0x0010);
		var0007 = 0x0001;
		enum();
	labelFunc07EC_0207:
		for (var000A in var0006 with var0008 to var0009 atend labelFunc07EC_0260);
		var0003 = UI_delayed_execute_usecode_array_02(var000A, [0x23, 0x55, 0x07EE], var0007);
		var0007 = (var0007 + 0x0003);
		var0004 = UI_get_distance_21(0xFF2D, var000A);
		var0003 = UI_delayed_execute_usecode_array_02(var000A, [0x55, 0x07EC], (var0007 + (var0004 / 0x0002)));
		goto labelFunc07EC_0207;
	labelFunc07EC_0260:
		var0003 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x55, 0x07ED], ((var0007 + (var0004 / 0x0002)) + 0x0002));
		gflags[0007] = false;
		gflags[0008] = true;
		abrt();
	labelFunc07EC_028C:
		if(!((event == 0x0002) && (gflags[0008] == true))) goto labelFunc07EC_02BC;
		UI_play_sound_effect_16(0x0029);
		UI_obj_sprite_effect_91(item, 0x001F, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		abrt();
	labelFunc07EC_02BC:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);

Func07ED 0x7ED (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!((event == 0x0002) && (gflags[0008] == true))) goto labelFunc07ED_0135;
	UI_set_weather_53(0x0000);
	gflags[0008] = false;
	UI_init_conversation_85();
	UI_show_npc_face0_05(0xFF31, 0x0000);
	UcMessage("\"Hero, listen to me before the fires consume me! Beware of thy friends -- they shall only bring destruction upon thee!\"");
	UcSay;
	UI_end_conversation_86();
	Func097F(0xFF31, "@Vile witch!@", 0x0007);
	var0000 = UI_get_object_position_20(item);
	UI_sprite_effect_68(0x001B, (var0000[0x0001] - 0x0002), (var0000[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x002A);
	var0001 = UI_delayed_execute_usecode_array_02(0xFF31, [0x23, 0x6C, 0x27, 0x0002, 0x6E, 0x27, 0x000C, 0x52, "@Thou wilt pay!@", 0x6C, 0x61, 0x59, 0x32, 0x55, 0x07ED], 0x0006);
	var0002 = 0x0000;
	labelFunc07ED_00A9:
		if(!(var0002 < 0x0008)) goto labelFunc07ED_012C;
		var0003 = UI_die_roll_17(0xFFFC, 0x0004);
		var0004 = UI_die_roll_17(0xFFFC, 0x0004);
		var0005 = UI_create_new_object_2C(0x0121);
		if(!var0005) goto labelFunc07ED_011F;
		var0006 = UI_die_roll_17(0x0000, 0x0005);
		UI_set_item_frame_1B(var0005, var0006);
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0001 = UI_update_last_created_2F([(var0000[0x0001] + var0003), (var0000[0x0002] + var0004), 0x0000]);
	labelFunc07ED_011F:
		var0002 = (var0002 + 0x0001);
		goto labelFunc07ED_00A9;
	labelFunc07ED_012C:
		gflags[0008] = false;
		gflags[0009] = true;
		abrt();
	labelFunc07ED_0135:
		if(!((event == 0x0002) && (gflags[0009] == true))) goto labelFunc07ED_01F8;
		var0005 = UI_create_new_object_2C(0x025F);
		if(!var0005) goto labelFunc07ED_01F8;
		UI_clear_item_flag_A5(var0005, 0x0012);
		var0000 = UI_get_object_position_20(0xFF2D);
		var0000[0x0001] = (var0000[0x0001] + 0x0008);
		var0000[0x0002] = (var0000[0x0002] + 0x0003);
		var0001 = UI_update_last_created_2F(var0000);
		var0007 = UI_get_distance_21(0xFF2D, var0005);
		Func090E(0xFF2D, var0005, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, true);
		Func090E(0xFF31, var0005, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, true);
		var0001 = UI_delayed_execute_usecode_array_02(var0005, [0x55, 0x07ED], (var0007 - 0x0002));
		gflags[0009] = false;
		gflags[000A] = true;
		abrt();
	labelFunc07ED_01F8:
		if(!((event == 0x0002) && (gflags[000A] == true))) goto labelFunc07ED_02A2;
		var0000 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x001F, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		UI_set_schedule_type_25(0xFF31, 0x000F);
		var0001 = UI_execute_usecode_array_01(0xFF31, [0x52, "@Aaahhh!@", 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x6E]);
		var0001 = UI_execute_usecode_array_01(0xFF2D, [0x27, 0x0008, 0x59, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x53, 0x36, 0x6C, 0x6D, 0x61, 0x55, 0x07EE]);
		abrt();
	labelFunc07ED_02A2:
		return;
}
// externs
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func07EE 0x7EE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!((event == 0x0002) && (item == UI_get_npc_object_23(Shamino)))) goto labelFunc07EE_0022;
	Func09AC(Shamino, Dupre, 0x0000, 0x0003);
	abrt();
	labelFunc07EE_0022:
		if(!((event == 0x0002) && (gflags[0008] == true))) goto labelFunc07EE_0058;
		var0000 = UI_projectile_effect_4F(0xFF2D, item, 0x0118);
		var0001 = UI_execute_usecode_array_01(0xFF2D, [0x23, 0x66, 0x69, 0x01, 0x7A, 0x61]);
		abrt();
	labelFunc07EE_0058:
		if(!((event == 0x0002) && (gflags[000A] == true))) goto labelFunc07EE_0115;
		UI_set_schedule_type_25(0xFF2D, 0x000F);
		var0002 = UI_get_object_position_20(0xFF31);
		UI_play_sound_effect_16(0x0051);
		UI_sprite_effect_68(0x001A, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_npc_4C(0xFF31);
		var0001 = UI_create_new_object_2C(0x0390);
		if(!var0001) goto labelFunc07EE_00CF;
		UI_set_item_flag_A4(var0001, 0x0012);
		var0001 = UI_update_last_created_2F(UI_get_object_position_20(0xFF31));
	labelFunc07EE_00CF:
		Func097F(0xFF2D, "@Goodbye...@", 0x0002);
		Func097F(0xFF2D, "@Hero...@", 0x0016);
		var0001 = UI_delayed_execute_usecode_array_02(0xFF2D, [0x23, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x55, 0x07EE], 0x0019);
		gflags[000A] = false;
		gflags[0007] = true;
		abrt();
	labelFunc07EE_0115:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc07EE_0250;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFF2D, 0x0000);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UcMessage("\"Karnax is defeated, for now... I am weak, and must leave...\"");
		UcSay;
		if(!gflags[02C3]) goto labelFunc07EE_014C;
		UcMessage("\"Remember to seek out the Three Companions -- they must be at thy side!\"");
		UcSay;
		goto labelFunc07EE_0158;
	labelFunc07EE_014C:
		UcMessage("\"The writings of Xenka speak of the Three which shall travel with thee. Without them, thou canst not succeed.\"");
		UcSay;
		UcMessage("\"Thou must find them, Hero! And then never let them leave thy side...\"");
		UcSay;
		gflags[02C3] = true;
	labelFunc07EE_0158:
		if(!gflags[02C2]) goto labelFunc07EE_0165;
		UcMessage("\"And watch for the Ring, Necklace and Earring -- for by these, the Power shall guide thee.\"");
		UcSay;
		goto labelFunc07EE_016D;
	labelFunc07EE_0165:
		UcMessage("\"Thou must also seek three artifacts -- a Ring, a Necklace, and an Earring.\"");
		UcSay;
		UcMessage("\"Through these ancient items, a Power shall communicate with thee. More than this, I know not.\"");
		UcSay;
	labelFunc07EE_016D:
		UcMessage("\"Seek out thy black sword with the caged demon that thou didst bring with thee from the other land. Thou must have it to complete thy quest.\"");
		UcSay;
		UI_remove_npc_face0_07();
		var0003 = UI_get_object_position_20(0xFF2D);
		UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var0004 = Func09A0(0x0007, 0x0001);
		if(!var0004) goto labelFunc07EE_01BA;
		UI_play_music_39(0x0031, var0004);
	labelFunc07EE_01BA:
		UI_play_sound_effect_16(0x0051);
		UI_remove_npc_4C(0xFF2D);
		var0001 = UI_create_new_object_2C(0x0390);
		if(!var0001) goto labelFunc07EE_01F0;
		UI_set_item_flag_A4(var0001, 0x0012);
		var0001 = UI_update_last_created_2F(UI_get_object_position_20(0xFF2D));
	labelFunc07EE_01F0:
		var0005 = UI_find_nearby_41(0xFE9C, 0x037F, 0x000A, 0x0000);
		enum();
	labelFunc07EE_0204:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc07EE_0230);
		var0009 = UI_die_roll_17(0x0001, 0x000A);
		if(!(var0009 < 0x000A)) goto labelFunc07EE_022D;
		UI_remove_item_84(var0008);
	labelFunc07EE_022D:
		goto labelFunc07EE_0204;
	labelFunc07EE_0230:
		gflags[0007] = false;
		gflags[0009] = true;
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07EE], 0x0032);
		abrt();
	labelFunc07EE_0250:
		if(!((event == 0x0002) && (gflags[0009] == true))) goto labelFunc07EE_02B1;
		UI_set_schedule_type_25(Shamino, 0x0003);
		var0001 = UI_delayed_execute_usecode_array_02(Shamino, [0x23, 0x52, "@The Avatar!@"], 0x0002);
		var0001 = UI_add_cont_items_36(Shamino, 0x0002, 0x0253, 0x0000, 0x0000, 0x0000);
		gflags[0009] = false;
		var0001 = UI_execute_usecode_array_01(Shamino, [0x23, 0x55, 0x07EE]);
		abrt();
	labelFunc07EE_02B1:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func07EF 0x7EF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_object_position_20(item);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x002A, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0009, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_obj_sprite_effect_91(0xFE9C, 0x002A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0074);
	UI_UNKNOWN_72();
	UI_set_schedule_type_25(0xFE9C, 0x000F);
	var0001 = Func0992(0x0001, "@Oh, no!@", 0x0000, true);
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	var0002 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x52, "@Arggh!@", 0x6C, 0x6D, 0x6E]);
	var0003 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07F0], 0x000A);
	return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);

Func07F0 0x7F0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	UI_set_weather_53(0x0000);
	var0000 = UI_get_party_list2_AA();
	var0001 = 0x0935;
	enum();
	labelFunc07F0_0015:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07F0_006F);
		if(!(var0004 != UI_get_npc_object_23(0xFE9C))) goto labelFunc07F0_006C;
		UI_remove_from_party_27(var0004);
		UI_set_new_schedules_B6(var0004, 0x0000, 0x000C, [var0001, 0x05E2]);
		UI_move_object_4B(var0004, [var0001, 0x05E2]);
		UI_run_schedule_B7(var0004);
		var0001 = (var0001 + 0x0002);
	labelFunc07F0_006C:
		goto labelFunc07F0_0015;
	labelFunc07F0_006F:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9C, [0x091D, 0x063C]);
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0005 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0636], 0x001E);
		var0005 = ("" & ("@Oh...@" & ("@Mine head doth ache!@" & "@Where am I?@")));
		Func094F(0xFE9C, var0005);
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func07F1 0x7F1 (var var0000)
{
	var var0001;

	var0000 = Func0992(0x0001, "@Blue lightning? Gustacio said nothing about blue lightning!@", "@The lightning was blue. Blue?@", false);
	return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08E3 0x8E3 ();

Func07F2 0x7F2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	if(!gflags[00E3]) goto labelFunc07F2_0029;
	var0000 = Func0992(0x0001, "@The lightning was red!@", "@The lightning was red.@", true);
	goto labelFunc07F2_0093;
	labelFunc07F2_0029:
		if(!(gflags[0123] && (gflags[0122] && (!gflags[0121])))) goto labelFunc07F2_003E;
		Func08E3();
		goto labelFunc07F2_0093;
	labelFunc07F2_003E:
		if(!(var0000 != 0xFE9C)) goto labelFunc07F2_0089;
		UI_show_npc_face0_05(var0000, 0x0000);
		if(!gflags[0121]) goto labelFunc07F2_0082;
		var0001 = ["@That one came too close!@", "@It destroyed that object!@", "@Where did it go?@"];
		var0002 = var0001[UI_get_random_00(UI_get_array_size_73(var0001))];
		UcMessage(var0002);
		UcMessage("");
		UcSay;
		goto labelFunc07F2_0086;
	labelFunc07F2_0082:
		UcMessage("\"I saw that! A red bolt of energy, it was!\"");
		UcSay;
	labelFunc07F2_0086:
		goto labelFunc07F2_0093;
	labelFunc07F2_0089:
		UI_item_say_4D(0xFE9C, "@Red lightning!@");
	labelFunc07F2_0093:
		gflags[0121] = true;
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08E3 0x8E3 ();

Func07F3 0x7F3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	if(!gflags[00E3]) goto labelFunc07F3_0029;
	var0000 = Func0992(0x0001, "@That strike was yellow!@", "@Yellow lightning!@", true);
	goto labelFunc07F3_0093;
	labelFunc07F3_0029:
		if(!(gflags[0121] && (gflags[0123] && (!gflags[0122])))) goto labelFunc07F3_003E;
		Func08E3();
		goto labelFunc07F3_0093;
	labelFunc07F3_003E:
		if(!(var0000 != 0xFE9C)) goto labelFunc07F3_0089;
		UI_show_npc_face0_05(var0000, 0x0000);
		if(!gflags[0122]) goto labelFunc07F3_0082;
		var0001 = ["@It is not safe here!@", "@Something new hath appeared!@", "@From where did that come?@"];
		var0002 = var0001[UI_get_random_00(UI_get_array_size_73(var0001))];
		UcMessage(var0002);
		UcMessage("");
		UcSay;
		goto labelFunc07F3_0086;
	labelFunc07F3_0082:
		UcMessage("\"Did anyone see that color? To be honest, I did not. The flash near blinded me!\"");
		UcSay;
	labelFunc07F3_0086:
		goto labelFunc07F3_0093;
	labelFunc07F3_0089:
		UI_item_say_4D(0xFE9C, "@Yellow lightning!@");
	labelFunc07F3_0093:
		gflags[0122] = true;
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func08E3 0x8E3 ();

Func07F4 0x7F4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	if(!gflags[00E3]) goto labelFunc07F4_0029;
	var0000 = Func0992(0x0001, "@'Twas green!@", "@That was green.@", true);
	goto labelFunc07F4_0093;
	labelFunc07F4_0029:
		if(!(gflags[0121] && (gflags[0122] && (!gflags[0123])))) goto labelFunc07F4_003E;
		Func08E3();
		goto labelFunc07F4_0093;
	labelFunc07F4_003E:
		if(!(var0000 != 0xFE9C)) goto labelFunc07F4_0089;
		UI_show_npc_face0_05(var0000, 0x0000);
		if(!gflags[0123]) goto labelFunc07F4_0082;
		var0001 = ["@It took one item, but left another!@", "@The object hath been turned into something else!@", "@Look! A metamorphosis!@"];
		var0002 = var0001[UI_get_random_00(UI_get_array_size_73(var0001))];
		UcMessage(var0002);
		UcMessage("");
		UcSay;
		goto labelFunc07F4_0086;
	labelFunc07F4_0082:
		UcMessage("\"What a strange color -- a greenish bolt, I'd say.\"");
		UcSay;
	labelFunc07F4_0086:
		goto labelFunc07F4_0093;
	labelFunc07F4_0089:
		UI_item_say_4D(0xFE9C, "@Green lightning!@");
	labelFunc07F4_0093:
		gflags[0123] = true;
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09C0 0x9C0 (var var0000);
extern Func09BF 0x9BF ();

Func07F5 0x7F5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0004)) goto labelFunc07F5_00D8;
	var0000 = UI_click_on_item_3F();
	var0001 = Func09A0(0x0004, 0x0002);
	if(!(UI_get_item_shape_18(var0000) == 0x0200)) goto labelFunc07F5_00D8;
	var0002 = UI_get_item_quality_1C(var0001);
	if(!(var0002 < 0x0003)) goto labelFunc07F5_0059;
	var0003 = (var0002 + 0x0001);
	if(!(!UI_set_item_quality_1D(var0001, var0003))) goto labelFunc07F5_0056;
	abrt();
	labelFunc07F5_0056:
		goto labelFunc07F5_00D8;
	labelFunc07F5_0059:
		var0001 = Func09A0(0x0004, 0x0001);
		var0004 = UI_get_item_quality_1C(var0001);
		var0004 = (var0004 + 0x0001);
		var0005 = UI_set_item_quality_1D(var0001, var0004);
		UI_remove_item_84(var0000);
		UI_sprite_effect_68(0x001E, var0000[0x0002], var0000[0x0003], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
		Func09C0(var0004);
		if(!(var0004 < 0x000A)) goto labelFunc07F5_00D8;
		var0005 = UI_delayed_execute_usecode_array_02(var0001, [0x55, 0x07F5], 0x000F);
	labelFunc07F5_00D8:
		if(!(event == 0x0002)) goto labelFunc07F5_00E3;
		Func09BF();
	labelFunc07F5_00E3:
		return;
}
Func07F6 0x7F6 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!((event == 0x0002) && (gflags[0007] == false))) goto labelFunc07F6_00DA;
	var0000 = UI_get_item_quality_1C(item);
	var0001 = UI_find_nearby_41(item, 0x025F, 0x001E, 0x0010);
	if(!var0001) goto labelFunc07F6_00D5;
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	var0002 = UI_get_distance_21(item, var0001);
	var0003 = UI_get_object_position_20(var0001);
	UI_si_path_run_usecode_C1(0xFE9C, var0003, 0x000A, var0001, 0x07F6, false);
	if(!(var0000 == 0x0005)) goto labelFunc07F6_0087;
	var0004 = UI_delayed_execute_usecode_array_02(0xFF4E, [0x55, 0x07F6], (var0002 + 0x000A));
	gflags[0203] = true;
	labelFunc07F6_0087:
		if(!(var0000 == 0x0006)) goto labelFunc07F6_00AE;
		var0004 = UI_delayed_execute_usecode_array_02(0xFF4D, [0x55, 0x07F6], (var0002 + 0x000A));
		gflags[0204] = true;
	labelFunc07F6_00AE:
		if(!(var0000 == 0x0007)) goto labelFunc07F6_00D5;
		var0004 = UI_delayed_execute_usecode_array_02(0xFF4C, [0x55, 0x07F6], (var0002 + 0x000A));
		gflags[0205] = true;
	labelFunc07F6_00D5:
		gflags[0007] = true;
		abrt();
	labelFunc07F6_00DA:
		if(!((event == 0x0002) && (gflags[0007] == true))) goto labelFunc07F6_0139;
		gflags[0007] = false;
		UI_set_schedule_type_25(item, 0x0003);
		if(!(UI_get_npc_number_47(item) == 0xFF4E)) goto labelFunc07F6_010B;
		UI_item_say_4D(0xFF4E, "@Avatar! Avatar!@");
		abrt();
	labelFunc07F6_010B:
		if(!(UI_get_npc_number_47(item) == 0xFF4D)) goto labelFunc07F6_0122;
		UI_item_say_4D(0xFF4D, "@Avatar, thou hast returned!@");
		abrt();
	labelFunc07F6_0122:
		if(!(UI_get_npc_number_47(item) == 0xFF4C)) goto labelFunc07F6_0139;
		UI_item_say_4D(0xFF4C, "@Art thou ready, Avatar?@");
		abrt();
	labelFunc07F6_0139:
		if(!(event == 0x000E)) goto labelFunc07F6_0179;
		var0003 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_move_object_4B(0xFE9C, var0003);
		UI_play_sound_effect_16(0x0082);
	labelFunc07F6_0179:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern Func07D7 0x7D7 (var var0000);

Func07F7 0x7F7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	UI_set_polymorph_B3(0xFE9C, 0x02D1);
	if(!(gflags[0203] && (gflags[0204] && gflags[0205]))) goto labelFunc07F7_01EB;
	if(!(item == Func09A0(0x0005, 0x0002))) goto labelFunc07F7_016D;
	var0000 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x34]);
	var0001 = UI_find_nearby_41(item, 0x0320, 0x002D, 0x0000);
	var0002 = false;
	enum();
	labelFunc07F7_004D:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc07F7_006F);
		if(!(UI_get_item_quality_1C(var0005) == 0x003D)) goto labelFunc07F7_006C;
		var0002 = var0005;
	labelFunc07F7_006C:
		goto labelFunc07F7_004D;
	labelFunc07F7_006F:
		if(!var0002) goto labelFunc07F7_015D;
		var0001 = UI_get_cont_items_33(var0002, 0xFE99, 0xFE99, 0xFE99);
		if(!var0001) goto labelFunc07F7_00D2;
		var0001 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc07F7_00A2:
		for (var0005 in var0001 with var0006 to var0007 atend labelFunc07F7_00D2);
		if(!(!((UI_get_item_shape_18(var0005) == 0x01E6) || (UI_get_item_shape_18(var0005) == 0x025F)))) goto labelFunc07F7_00CF;
		UI_remove_item_84(var0005);
	labelFunc07F7_00CF:
		goto labelFunc07F7_00A2;
	labelFunc07F7_00D2:
		var0008 = 0x0000;
		var0001 = UI_get_cont_items_33(var0002, 0xFE99, 0xFE99, 0xFE99);
	labelFunc07F7_00EB:
		if(!(var0008 < 0x0002)) goto labelFunc07F7_015D;
		enum();
	labelFunc07F7_00F6:
		for (var0005 in var0001 with var0009 to var000A atend labelFunc07F7_013D);
		if(!(Func09A6(var0005) || (var0008 == 0x0001))) goto labelFunc07F7_013A;
		if(!(!UI_set_last_created_2E(var0005))) goto labelFunc07F7_0126;
		Func092F(0xFE9C, 0x000D);
	labelFunc07F7_0126:
		if(!(!UI_give_last_created_43(0xFE9C))) goto labelFunc07F7_013A;
		Func092F(0xFE9C, 0x000E);
	labelFunc07F7_013A:
		goto labelFunc07F7_00F6;
	labelFunc07F7_013D:
		var0008 = (var0008 + 0x0001);
		var0001 = UI_get_cont_items_33(var0002, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc07F7_00EB;
	labelFunc07F7_015D:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0001);
		goto labelFunc07F7_01E8;
	labelFunc07F7_016D:
		UI_set_camera_AE(0xFE9C);
		UI_play_music_39(0x0027, Func09A0(0x0005, 0x0001));
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_play_sound_effect_16(0x0082);
		UI_move_object_4B(0xFF56, [0x074A, 0x0A03, 0x0000]);
		UI_set_schedule_type_25(0xFF56, 0x0003);
		var0000 = UI_execute_usecode_array_01(Func09A0(0x0005, 0x0002), [0x23, 0x55, 0x07F7]);
		UI_move_object_4B(0xFE9C, [0x0747, 0x09ED, 0x0000]);
		0x0000;
		calle();
	labelFunc07F7_01E8:
		goto labelFunc07F7_01FD;
	labelFunc07F7_01EB:
		var0000 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x02AF]);
	labelFunc07F7_01FD:
		return;
}
// externs
extern Func08C4 0x8C4 ();
extern Func08C3 0x8C3 ();
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0907 0x907 (var var0000, var var0001);
extern Func08C2 0x8C2 ();
extern Func094F 0x94F (var var0000, var var0001);
extern Func0939 0x939 (var var0000);
extern Func093B 0x93B (var var0000);
extern Func093A 0x93A (var var0000);

Func07F8 0x7F8 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = UI_get_item_quality_1C(item);
	if(!(event == 0x0003)) goto labelFunc07F8_0035;
	if(!(var0000 == 0x0001)) goto labelFunc07F8_001B;
	abrt();
	labelFunc07F8_001B:
		if(!(var0000 == 0x0004)) goto labelFunc07F8_0028;
		Func08C4();
	labelFunc07F8_0028:
		if(!(var0000 == 0x0005)) goto labelFunc07F8_0035;
		Func08C3();
	labelFunc07F8_0035:
		if(!((event == 0x000D) && (UI_get_npc_number_47(item) == 0xFE9C))) goto labelFunc07F8_0116;
		if(!(!gflags[0171])) goto labelFunc07F8_008E;
		UI_set_schedule_type_25(0xFE9C, 0x000F);
		var0001 = UI_execute_usecode_array_01(0xFFC3, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x52, "@Bring in the defendant.@"]);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x000F);
		goto labelFunc07F8_0115;
	labelFunc07F8_008E:
		var0001 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07F8], 0x0014);
		var0001 = [0xFFC9, Kylista, 0xFFCD, 0xFFC3, 0xFFCE, 0xFFCF, 0xFFC7, 0xFFC8, Jendon, 0xFFD0, 0xFFD1, 0xFFCB, 0xFFC4, 0xFFC5, 0xFFD2, 0xFFC6];
		enum();
	labelFunc07F8_00DC:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07F8_00F8);
		UI_remove_npc_4C(var0004);
		UI_run_schedule_B7(var0004);
		goto labelFunc07F8_00DC;
	labelFunc07F8_00F8:
		Func09AC(0xFFCD, 0x03F4, 0x0663, 0x000F);
		UI_remove_npc_4C(Kylista);
		UI_set_timer_7B(0x0000);
	labelFunc07F8_0115:
		abrt();
	labelFunc07F8_0116:
		if(!((event == 0x0002) && (item == Func09A0(0x0001, 0x0002)))) goto labelFunc07F8_01EC;
		var0001 = UI_get_party_list2_AA();
		var0004 = false;
		enum();
	labelFunc07F8_0136:
		for (var0007 in var0001 with var0005 to var0006 atend labelFunc07F8_0158);
		if(!(UI_get_schedule_type_24(var0007) == 0x000F)) goto labelFunc07F8_0155;
		var0004 = var0007;
	labelFunc07F8_0155:
		goto labelFunc07F8_0136;
	labelFunc07F8_0158:
		if(!var0004) goto labelFunc07F8_01EB;
		if(!gflags[0171]) goto labelFunc07F8_016D;
		var0001 = 0x0689;
		goto labelFunc07F8_0173;
	labelFunc07F8_016D:
		var0001 = 0x066A;
	labelFunc07F8_0173:
		var0007 = (0x0404 + UI_get_item_quality_1C(Func09A0(0x0001, 0x0002)));
		UI_si_path_run_usecode_C1(var0004, [var0007, var0001, 0x0000], 0x000D, Func09A0(0x0001, 0x0002), 0x07F8, true);
		var0001 = (UI_get_item_quality_1C(Func09A0(0x0001, 0x0002)) + 0x0002);
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0002), var0001);
		var0001 = UI_execute_usecode_array_01(Func09A0(0x0001, 0x0002), [0x23, 0x55, 0x07F8]);
	labelFunc07F8_01EB:
		abrt();
	labelFunc07F8_01EC:
		if(!((event == 0x0002) && (var0000 == 0x00B3))) goto labelFunc07F8_03E0;
		var0001 = UI_part_of_day_48();
		if(!((var0001 < 0x0003) || (var0001 > 0x0006))) goto labelFunc07F8_024B;
		var0001 = Func0992(0x0001, 0x0000, 0x0000, true);
		if(!(var0001 == 0xFE9C)) goto labelFunc07F8_023E;
		Func097F(0xFE9C, "@I should come back later...@", 0x0000);
		goto labelFunc07F8_024A;
	labelFunc07F8_023E:
		Func097F(var0001, "@Let's come back later...@", 0x0000);
	labelFunc07F8_024A:
		abrt();
	labelFunc07F8_024B:
		if(!(gflags[0172] && (UI_get_timer_7A(0x0000) < 0x000C))) goto labelFunc07F8_0293;
		var0001 = Func0992(0x0001, 0x0000, 0x0000, true);
		if(!(var0001 == 0xFE9C)) goto labelFunc07F8_0286;
		Func097F(0xFE9C, "@It isn't time yet...@", 0x0000);
		goto labelFunc07F8_0292;
	labelFunc07F8_0286:
		Func097F(var0001, "@We've come too early...@", 0x0000);
	labelFunc07F8_0292:
		abrt();
	labelFunc07F8_0293:
		UI_play_music_39(0x0013, Func09A0(0x0005, 0x0001));
		gflags[0171] = false;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		UI_close_gumps_98();
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x00F8);
		var0001 = (UI_find_nearby_41(item, 0x01B0, 0x000A, 0x0000) & UI_find_nearby_41(item, 0x010E, 0x000A, 0x0000));
		enum();
	labelFunc07F8_02ED:
		for (var0007 in var0001 with var0008 to var0009 atend labelFunc07F8_0312);
		if(!(UI_get_item_quality_1C(var0007) == 0x00B3)) goto labelFunc07F8_030F;
		Func0907(var0007, 0x0000);
	labelFunc07F8_030F:
		goto labelFunc07F8_02ED;
	labelFunc07F8_0312:
		var0001 = UI_get_party_list2_AA();
		enum();
	labelFunc07F8_031A:
		for (var0007 in var0001 with var000A to var000B atend labelFunc07F8_0332);
		UI_set_schedule_type_25(var0007, 0x000F);
		goto labelFunc07F8_031A;
	labelFunc07F8_0332:
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0002), 0x0000);
		var0001 = UI_execute_usecode_array_01(Func09A0(0x0001, 0x0002), [0x23, 0x55, 0x07F8]);
		UI_si_path_run_usecode_C1(0xFE9C, [0x0407, 0x0668, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x07F8, false);
		Func08C2();
		if(!gflags[0170]) goto labelFunc07F8_03C0;
		var000C = Func0992(0x0001, "@The trial awaits!@", "@The trial awaits our presence.@", true);
		Func097F(0xFFD1, "@It's the stranger...@", 0x0016);
		Func097F(0xFFC8, "@Now the trial begins!@", 0x001C);
		Func097F(0xFFD2, "@Hush!@", 0x0023);
		goto labelFunc07F8_03DF;
	labelFunc07F8_03C0:
		var0001 = "@Let justice be swift!@";
		var000C = Func0992(0x0001, 0x0000, 0x0000, true);
		Func094F(var000C, var0001);
	labelFunc07F8_03DF:
		abrt();
	labelFunc07F8_03E0:
		if(!((event == 0x000D) && (item == Func09A0(0x0001, 0x0002)))) goto labelFunc07F8_03F5;
		abrt();
	labelFunc07F8_03F5:
		if(!((event == 0x0002) || (event == 0x000D))) goto labelFunc07F8_047A;
		var000D = UI_get_item_quality_1C(Func09A0(0x0001, 0x0001));
		if(!(var000D == 0x00FD)) goto labelFunc07F8_0433;
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0014);
		goto labelFunc07F8_044A;
	labelFunc07F8_0433:
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var000D + 0x0001));
	labelFunc07F8_044A:
		if(!(var000D > 0x00F7)) goto labelFunc07F8_045B;
		Func0939(var000D);
		abrt();
	labelFunc07F8_045B:
		if(!((var000D > 0x0013) && (var000D < 0x001E))) goto labelFunc07F8_0474;
		Func093B(var000D);
		abrt();
	labelFunc07F8_0474:
		Func093A(var000D);
	labelFunc07F8_047A:
		return;
}
// externs
extern var Func0930 0x930 (var var0000, var var0001, var var0002);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();
extern Func0907 0x907 (var var0000, var var0001);
extern Func0931 0x931 (var var0000);
extern var Func0932 0x932 (var var0000);
extern Func0937 0x937 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern Func09AA 0x9AA ();

Func07F9 0x7F9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	if(!(event == 0x0008)) goto labelFunc07F9_00D9;
	gflags[0083] = false;
	gflags[0007] = false;
	var0000 = Func0930(item, 0x0178, 0x000F);
	if(!(!var0000)) goto labelFunc07F9_002B;
	Func092F(item, 0x0004);
	labelFunc07F9_002B:
		var0001 = UI_create_new_object_2C(0x025F);
		if(!var0001) goto labelFunc07F9_00C5;
		UI_set_item_frame_1B(var0001, 0x0006);
		var0002 = UI_get_object_position_20(var0000);
		if(!(!UI_update_last_created_2F([(var0002[0x0001] + 0x0003), (var0002[0x0002] - 0x0001), var0002[0x0003]]))) goto labelFunc07F9_007B;
		Func092F(item, 0x0005);
	labelFunc07F9_007B:
		if(!Func0908(var0000, 0x010E, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc07F9_00BE;
		Func0909(var0000, 0x01B1, 0x0000, 0x0001, 0x01B0, 0x0001, 0x0000, Iolo, 0x0007);
		UI_play_sound_effect2_A1(0x0020, var0000);
		goto labelFunc07F9_00C1;
	labelFunc07F9_00BE:
		Func0903();
	labelFunc07F9_00C1:
		gflags[0007] = true;
	labelFunc07F9_00C5:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F9], 0x0001);
		exit2();
	labelFunc07F9_00D9:
		if(!(event == 0x0009)) goto labelFunc07F9_016B;
		var0001 = UI_find_nearest_15(item, 0x025F, 0x000F);
		if(!var0001) goto labelFunc07F9_00FC;
		UI_remove_item_84(var0001);
	labelFunc07F9_00FC:
		var0000 = Func0930(item, 0x010E, 0x000F);
		if(!(!var0000)) goto labelFunc07F9_0117;
		Func092F(item, 0x0006);
	labelFunc07F9_0117:
		if(!Func0908(var0000, 0x0178, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc07F9_0163;
		Func0909(var0000, 0x01B0, 0x0001, 0x0001, 0x01B1, 0x0000, 0x0000, 0x0003, 0x0005);
		UI_play_sound_effect2_A1(0x001F, var0000);
		Func0907(var0000, 0x0002);
		goto labelFunc07F9_0166;
	labelFunc07F9_0163:
		Func0903();
	labelFunc07F9_0166:
		Func0931(item);
		abrt();
	labelFunc07F9_016B:
		if(!(event == 0x000E)) goto labelFunc07F9_017A;
		Func092F(item, 0x0007);
	labelFunc07F9_017A:
		if(!(event == 0x000A)) goto labelFunc07F9_01DA;
		var0004 = UI_find_nearby_41(0xFE9C, 0x00E4, 0x0023, 0x0000);
		enum();
	labelFunc07F9_0196:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc07F9_01B5);
		if(!(UI_get_npc_id_BC(var0007) == 0x0009)) goto labelFunc07F9_01B2;
		goto labelFunc07F9_01BC;
	labelFunc07F9_01B2:
		goto labelFunc07F9_0196;
	labelFunc07F9_01B5:
		Func092F(item, 0x0008);
	labelFunc07F9_01BC:
		UI_clear_item_say_4E(var0007);
		gflags[0007] = true;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FD], 0x0001);
	labelFunc07F9_01DA:
		if(!(event == 0x000B)) goto labelFunc07F9_02AA;
		var0000 = Func0930(item, 0x0178, 0x0023);
		if(!(!var0000)) goto labelFunc07F9_01FD;
		Func092F(item, 0x0009);
	labelFunc07F9_01FD:
		if(!Func0908(var0000, 0x010E, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc07F9_0240;
		Func0909(var0000, 0x01B1, 0x0000, 0x0001, 0x01B0, 0x0001, 0x0000, Iolo, 0x0007);
		UI_play_sound_effect2_A1(0x0020, var0000);
		goto labelFunc07F9_0243;
	labelFunc07F9_0240:
		Func0903();
	labelFunc07F9_0243:
		var0001 = UI_create_new_object_2C(0x025F);
		if(!var0001) goto labelFunc07F9_0297;
		UI_set_item_frame_1B(var0001, 0x0006);
		var0002 = UI_get_object_position_20(item);
		var0003 = UI_update_last_created_2F([(var0002[0x0001] - 0x0009), (var0002[0x0002] - 0x0002), var0002[0x0003]]);
		if(!(!var0003)) goto labelFunc07F9_0297;
		Func092F(item, 0x000A);
	labelFunc07F9_0297:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F9], 0x0001);
	labelFunc07F9_02AA:
		if(!(event == 0x0002)) goto labelFunc07F9_047A;
		if(!gflags[0007]) goto labelFunc07F9_036C;
		gflags[0007] = false;
		var0001 = UI_find_nearest_15(item, 0x025F, 0x000F);
		var0008 = [0x0000, 0x0001, 0x0001, 0x0000];
		var0009 = [0x0000, 0x0001, 0x0000, 0x0001];
		var000A = [0xFFC1, 0xFFB1, 0xFFB6, 0xFFB9, 0xFF6A];
		enum();
	labelFunc07F9_0304:
		for (var000D in var000A with var000B to var000C atend labelFunc07F9_0354);
		if(!Func0932(var000D)) goto labelFunc07F9_0351;
		UI_set_alignment_4A(var000D, 0x0000);
		var0003 = UI_get_npc_prop_28(var000D, 0x0003);
		var0003 = UI_set_npc_prop_29(var000D, 0x0003, (UI_get_npc_prop_28(var000D, 0x0000) - var0003));
		UI_run_schedule_B7(var000D);
	labelFunc07F9_0351:
		goto labelFunc07F9_0304;
	labelFunc07F9_0354:
		Func0937(item, var0001, var0008, var0009, 0x0000, 0x07F9, item, 0x0009);
		exit2();
	labelFunc07F9_036C:
		var000E = UI_find_nearby_41(item, 0x00E4, 0x001E, 0x0000);
		enum();
	labelFunc07F9_037E:
		for (var0011 in var000E with var000F to var0010 atend labelFunc07F9_039D);
		if(!(UI_get_npc_id_BC(var0011) == 0x0009)) goto labelFunc07F9_039A;
		goto labelFunc07F9_03A4;
	labelFunc07F9_039A:
		goto labelFunc07F9_037E;
	labelFunc07F9_039D:
		Func092F(item, 0x000B);
	labelFunc07F9_03A4:
		var0012 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0012 == 0x0001)) goto labelFunc07F9_03C5;
		UI_item_say_4D(var0011, "@Have at 'em, men!@");
	labelFunc07F9_03C5:
		if(!(var0012 == 0x0002)) goto labelFunc07F9_03D9;
		UI_item_say_4D(var0011, "@Best of luck!@");
	labelFunc07F9_03D9:
		if(!(var0012 == 0x0003)) goto labelFunc07F9_03ED;
		UI_item_say_4D(var0011, "@In ya go!@");
	labelFunc07F9_03ED:
		if(!(var0012 == 0x0004)) goto labelFunc07F9_0401;
		UI_item_say_4D(var0011, "@Pray for mercy!@");
	labelFunc07F9_0401:
		var0008 = [0x0000, Dupre, Dupre, Dupre, Dupre, Dupre, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
		var0009 = [0x0000, 0x0001, 0x0000, Dupre, Shamino, 0x0002, 0x0002, 0x0001, 0x0000, Dupre, Shamino];
		var0013 = Dupre;
		var0001 = UI_find_nearest_15(item, 0x025F, 0x000F);
		Func0937(item, var0001, var0008, var0009, var0013, 0x07F9, item, 0x000D);
	labelFunc07F9_047A:
		if(!(event == 0x000D)) goto labelFunc07F9_0658;
		var000A = [0xFFC1, 0xFFB1, 0xFFB6, 0xFFB9, 0xFF6A];
		enum();
	labelFunc07F9_0498:
		for (var000D in var000A with var0014 to var0015 atend labelFunc07F9_05AA);
		if(!Func0932(var000D)) goto labelFunc07F9_05A7;
		var0016 = UI_get_npc_prop_28(var000D, 0x0003);
		var0003 = UI_set_npc_prop_29(var000D, 0x0003, (UI_get_npc_prop_28(var000D, 0x0000) - var0016));
		if(!gflags[0084]) goto labelFunc07F9_0589;
		if(!UI_get_npc_id_BC(var000D)) goto labelFunc07F9_054C;
		UI_set_alignment_4A(var000D, 0x0002);
		UI_set_schedule_type_25(var000D, 0x0000);
		UI_set_attack_mode_59(var000D, 0x0000);
		UI_set_oppressor_5E(var000D, item);
		if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc07F9_0539;
		UI_set_attack_mode_59(item, 0x0000);
		UI_set_oppressor_5E(item, var000D);
		UI_set_opponent_5B(item, var000D);
		UI_set_schedule_type_25(item, 0x001F);
		goto labelFunc07F9_0549;
	labelFunc07F9_0539:
		UI_set_schedule_type_25(item, 0x0000);
		UI_set_oppressor_5E(item, var000D);
	labelFunc07F9_0549:
		goto labelFunc07F9_0586;
	labelFunc07F9_054C:
		UI_set_alignment_4A(var000D, 0x0003);
		if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc07F9_0572;
		UI_set_oppressor_5E(var000D, item);
		UI_set_opponent_5B(var000D, item);
	labelFunc07F9_0572:
		UI_set_attack_mode_59(var000D, 0x0000);
		UI_set_schedule_type_25(var000D, 0x0007);
	labelFunc07F9_0586:
		goto labelFunc07F9_05A7;
	labelFunc07F9_0589:
		UI_set_alignment_4A(var000D, 0x0003);
		UI_set_schedule_type_25(var000D, 0x0000);
		UI_set_attack_mode_59(var000D, 0x0000);
	labelFunc07F9_05A7:
		goto labelFunc07F9_0498;
	labelFunc07F9_05AA:
		var0000 = Func0930(item, 0x010E, 0x000F);
		if(!(!var0000)) goto labelFunc07F9_05C5;
		Func092F(item, 0x000C);
	labelFunc07F9_05C5:
		if(!Func0908(var0000, 0x0178, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc07F9_0611;
		Func0909(var0000, 0x01B0, 0x0001, 0x0001, 0x01B1, 0x0000, 0x0000, 0x0003, 0x0005);
		UI_play_sound_effect2_A1(0x001F, var0000);
		Func0907(var0000, 0x0002);
		goto labelFunc07F9_0614;
	labelFunc07F9_0611:
		Func0903();
	labelFunc07F9_0614:
		var0001 = UI_find_nearest_15(item, 0x025F, 0x000A);
		if(!var0001) goto labelFunc07F9_062F;
		UI_remove_item_84(var0001);
	labelFunc07F9_062F:
		if(!(item == UI_get_npc_object_23(0xFE9C))) goto labelFunc07F9_0641;
		Func09AA();
		goto labelFunc07F9_0658;
	labelFunc07F9_0641:
		if(!(!gflags[0084])) goto labelFunc07F9_0650;
		UI_set_schedule_type_25(item, 0x0000);
	labelFunc07F9_0650:
		UI_set_item_flag_A4(item, 0x001D);
	labelFunc07F9_0658:
		return;
}
// externs
extern Func08A2 0x8A2 ();
extern Func08A3 0x8A3 ();
extern Func08A4 0x8A4 ();
extern Func08A5 0x8A5 ();
extern var Func08A0 0x8A0 (var var0000);

Func07FA 0x7FA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(UI_get_item_quality_1C(item) == 0x00C8)) goto labelFunc07FA_0368;
	var0000 = UI_find_nearby_41(item, 0x0314, 0x000F, 0x00B0);
	var0001 = UI_delayed_execute_usecode_array_02(item, [0x46, 0x0008, 0x2C], 0x0002);
	enum();
	labelFunc07FA_0033:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc07FA_0095);
		if(!(UI_get_item_quality_1C(var0004) == 0x00D1)) goto labelFunc07FA_005A;
		var0005 = (UI_get_item_frame_1A(var0004) % 0x0002);
	labelFunc07FA_005A:
		if(!(UI_get_item_quality_1C(var0004) == 0x00D0)) goto labelFunc07FA_0076;
		var0006 = (UI_get_item_frame_1A(var0004) % 0x0002);
	labelFunc07FA_0076:
		if(!(UI_get_item_quality_1C(var0004) == 0x00CE)) goto labelFunc07FA_0092;
		var0007 = (UI_get_item_frame_1A(var0004) % 0x0002);
	labelFunc07FA_0092:
		goto labelFunc07FA_0033;
	labelFunc07FA_0095:
		if(!((!var0005) && ((!var0006) && ((!var0007) && (!gflags[02C4]))))) goto labelFunc07FA_0110;
		var0000 = UI_find_nearby_41(item, 0x0382, 0x0019, 0x0000);
		var0008 = UI_get_object_position_20(var0000);
		UI_sprite_effect_68(0x0012, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0055);
		var0001 = UI_set_item_quality_1D(item, 0x00C9);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FA], 0x0005);
		gflags[02C4] = true;
	labelFunc07FA_0110:
		if(!(var0005 && ((!var0006) && ((!var0007) && (!gflags[02C5]))))) goto labelFunc07FA_01BD;
		var0000 = UI_find_nearby_41(item, 0x0382, 0x000F, 0x0000);
		var0004 = UI_create_new_object_2C(0x032A);
		if(!var0004) goto labelFunc07FA_01BD;
		UI_set_item_frame_1B(var0004, 0x0003);
		var0008 = UI_get_object_position_20(var0000);
		var0008[0x0003] = 0x0001;
		var0001 = UI_update_last_created_2F(var0008);
		if(!var0001) goto labelFunc07FA_01BD;
		UI_sprite_effect_68(0x0012, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		var0001 = UI_set_item_quality_1D(item, 0x00CA);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FA], 0x0005);
		gflags[02C5] = true;
	labelFunc07FA_01BD:
		if(!((!var0005) && (var0006 && ((!var0007) && (!gflags[02C6]))))) goto labelFunc07FA_0260;
		var0000 = UI_find_nearby_41(item, 0x0382, 0x000F, 0x0000);
		var0004 = UI_create_new_object_2C(0x02F8);
		if(!var0004) goto labelFunc07FA_0260;
		var0008 = UI_get_object_position_20(var0000);
		var0008[0x0003] = 0x0001;
		var0001 = UI_update_last_created_2F(var0008);
		if(!var0001) goto labelFunc07FA_0260;
		UI_sprite_effect_68(0x0012, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		var0001 = UI_set_item_quality_1D(item, 0x00CB);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FA], 0x0005);
		gflags[02C6] = true;
	labelFunc07FA_0260:
		if(!(var0005 && (var0006 && ((!var0007) && (!gflags[02C7]))))) goto labelFunc07FA_0302;
		var0000 = UI_find_nearby_41(item, 0x0382, 0x000F, 0x0000);
		var0004 = UI_create_new_object_2C(0x0179);
		if(!var0004) goto labelFunc07FA_0302;
		var0008 = UI_get_object_position_20(var0000);
		var0008[0x0003] = 0x0001;
		var0001 = UI_update_last_created_2F(var0008);
		if(!var0001) goto labelFunc07FA_0302;
		UI_sprite_effect_68(0x0012, var0008[0x0001], var0008[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0039);
		var0001 = UI_set_item_quality_1D(item, 0x00CC);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FA], 0x0005);
		gflags[02C7] = true;
	labelFunc07FA_0302:
		if(!((!var0005) && ((!var0006) && (var0007 && (!gflags[02C8]))))) goto labelFunc07FA_031D;
		Func08A2();
		goto labelFunc07FA_0368;
	labelFunc07FA_031D:
		if(!(var0005 && ((!var0006) && var0007))) goto labelFunc07FA_0332;
		Func08A3();
		goto labelFunc07FA_0368;
	labelFunc07FA_0332:
		if(!((!var0005) && (var0006 && (var0007 && (!gflags[02CA]))))) goto labelFunc07FA_034C;
		Func08A4();
		goto labelFunc07FA_0368;
	labelFunc07FA_034C:
		if(!(var0005 && (var0006 && (var0007 && (!gflags[02CB]))))) goto labelFunc07FA_0365;
		Func08A5();
		goto labelFunc07FA_0368;
	labelFunc07FA_0365:
		Func08A3();
	labelFunc07FA_0368:
		if(!(event == 0x0002)) goto labelFunc07FA_0432;
		var0009 = UI_get_item_quality_1C(item);
		var000A = Func08A0(0x0003);
		if(!(var000A != 0x0045)) goto labelFunc07FA_0427;
		if(!(var0009 == 0x00C9)) goto labelFunc07FA_03AB;
		UI_show_npc_face0_05(var000A, 0x0000);
		UcMessage("\"What pleasant music! 'Tis strangely soothing... I could stand here for hours and listen to it...\"");
		UcSay;
		UcMessage("\"Surely it would not hurt to tarry for a bit...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc07FA_03AB:
		if(!(var0009 == 0x00CA)) goto labelFunc07FA_03CB;
		UI_show_npc_face0_05(var000A, 0x0000);
		UcMessage("\"Wine! Praise the Virtues! I could use a drink right now...\"");
		UcSay;
		UcMessage("\"Come, let us toast our friendship and hope for a speedy end to this journey!\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc07FA_03CB:
		if(!(var0009 == 0x00CB)) goto labelFunc07FA_03EB;
		UI_show_npc_face0_05(var000A, 0x0000);
		UcMessage("\"Look! A wondrous gem! This would easily buy enough provisions to last the entire quest!\"");
		UcSay;
		UcMessage("\"Or think what a fine gift this would be for Lord British! He would be impressed, to be sure.\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc07FA_03EB:
		if(!(var0009 == 0x00CC)) goto labelFunc07FA_040B;
		UI_show_npc_face0_05(var000A, 0x0000);
		UcMessage("\"I have not seen food this rich in a long time! The aroma is marvelous!\"");
		UcSay;
		UcMessage("\"'Twould be a shame for all this to go to waste...\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc07FA_040B:
		if(!(var0009 == 0x00CD)) goto labelFunc07FA_0427;
		UI_show_npc_face0_05(var000A, 0x0000);
		UcMessage("\"Perhaps something more needs to be done.\"");
		UcSay;
		UI_remove_npc_face0_07();
	labelFunc07FA_0427:
		var0001 = UI_set_item_quality_1D(item, 0x00C8);
	labelFunc07FA_0432:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func08AC 0x8AC (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08C6 0x8C6 ();
extern Func08C5 0x8C5 ();
extern var Func0956 0x956 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func094F 0x94F (var var0000, var var0001);

Func07FB 0x7FB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_item_quality_1C(Func09A0(0x0001, 0x0001));
	var0001 = Func0954();
	var0002 = Func0953();
	var0003 = Func08AC(false);
	if(!(var0000 == 0x001E)) goto labelFunc07FB_010B;
	gflags[0176] = true;
	UI_init_conversation_85();
	gflags[01AF] = true;
	UI_show_npc_face0_05(0xFFCD, 0x0000);
	UcMessage("\"Alyssand, we are told that thou hast often been seen in the company of the accused traitor. What things hath he asked of thee?\"");
	UcSay;
	UI_show_npc_face1_06(0xFFD2, 0x0000);
	UcMessage("\"I remember that we spoke of the strange storms, and other such things...\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_set_conversation_slot_09(0x0000);
	UcMessage("\"Thou art holding back something...\"");
	UcSay;
	UI_show_npc_face1_06(Kylista, 0x0000);
	UcMessage("\"Alyssand, beware! The Oracle is the instrument of divine Truth, and it shall not be mocked!\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_set_conversation_slot_09(0x0000);
	UcMessage("\"What did the strangers ask of thee, Alyssand? There was a particular item...\"");
	UcSay;
	UI_show_npc_face1_06(0xFFD2, 0x0000);
	UcMessage("\"Well, yes... mine engagement ring, which was lost...\"");
	UcSay;
	UI_set_conversation_slot_09(0x0000);
	UI_remove_npc_face1_08();
	UcMessage("\"In fact, the traitor had thy missing jewelry! So the Beast hath taught him to steal... using Daemonic powers, I suspect...\"");
	UcSay;
	UcMessage("\"I have no further questions. I thank thee.\"");
	UcSay;
	Func097F(0xFFD2, "@Don't twist my words...@", 0x0000);
	UI_end_conversation_86();
	var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
	var0005 = (UI_get_object_position_20(0xFFD2) & (0x000F & 0x0006));
	var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0028, 0x0010);
	if(!var0006) goto labelFunc07FB_010A;
	var0007 = UI_get_object_position_20(var0006);
	UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_010A:
		abrt();
	labelFunc07FB_010B:
		if(!(var0000 == 0x001F)) goto labelFunc07FB_01A7;
		gflags[0177] = true;
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Good day, Delin... Ah, the Oracle is the other way.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"What... Oh! Forgive me, milords and ladies.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_execute_usecode_array_01(0xFFD1, [0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0002, 0x59, 0x0006, 0x01, 0x63, 0x27, 0x0002, 0x59, 0x0000, 0x01, 0x61, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x55, 0x07FB]);
		Func08C6();
		abrt();
	labelFunc07FB_01A7:
		if(!(var0000 == 0x0020)) goto labelFunc07FB_0264;
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Tell me, Delin, hast thou ever met the accused?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"Good day, uh... Voldin. Met who?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The man standing in that box, right in front of thee. Hast thou ever met him?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"Handsome lad... I do not recall him. Dost thou think he would be a worthy suitor for mine Alyssand?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Uh... I do not think so, Delin.\"");
		UcSay;
		UcMessage("\"I renounce any further questions! I thank thee, Delin. Thou mayest go.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_execute_usecode_array_01(0xFFD1, [0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61]);
		var0004 = UI_execute_usecode_array_01(0xFFCD, [0x27, 0x0003, 0x59, 0x0006]);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FB], 0x000C);
		abrt();
	labelFunc07FB_0264:
		if(!(var0000 == 0x0021)) goto labelFunc07FB_0315;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"And now I would like to call...\"");
		UcSay;
		UcMessage("\"Delin, go to thy seat please.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"Yes, of course... Captain.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_execute_usecode_array_01(0xFFCD, [0x27, 0x0002, 0x59, 0x0004]);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(0xFFD1) & (0x000E & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0014, 0x0010);
		if(!var0006) goto labelFunc07FB_0314;
		var0007 = UI_get_object_position_20(var0006);
		Func08C5();
		Func097F(0xFFD1, "@What is going on?@", 0x0004);
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_0314:
		abrt();
	labelFunc07FB_0315:
		if(!(var0000 == 0x0022)) goto labelFunc07FB_0418;
		gflags[017B] = true;
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"Given that the weight of evidence seems overwhelming, perhaps we should spare the defendant from further embarrassment.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"If the Lady doth wish it, I would forebear calling for further testimony. The traitor will surely be convicted based on the facts already presented.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_remove_npc_face0_07();
		UI_show_npc_face0_05(Func08AC(true), 0x0000);
		UcMessage("\"Avatar, what dost thou recommend?\"");
		UcSay;
		var0004 = Func0956(["continue the testimony", "no more witnesses"]);
		if(!(var0004 == "continue the testimony")) goto labelFunc07FB_038B;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I would hear the full weight of the testimony against me, Lady Yelinda.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Very well. Thou mayest resume, Captain Voldin.\"");
		UcSay;
		goto labelFunc07FB_03D8;
	labelFunc07FB_038B:
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I believe no purpose would be served by continuing this charade, Lady Yelinda.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Do not mock the Oracle, stranger.\"");
		UcSay;
		UcMessage("\"Captain Voldin, let us bring this session of the trial to an end.\"");
		UcSay;
		gflags[0176] = true;
		gflags[0177] = true;
		gflags[0178] = true;
		gflags[0179] = true;
		gflags[017A] = true;
		gflags[017C] = true;
		gflags[017D] = true;
		gflags[017E] = true;
		gflags[017F] = true;
		gflags[0180] = true;
		gflags[0181] = true;
		gflags[0182] = true;
	labelFunc07FB_03D8:
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0019);
		var0004 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x6C, 0x27, 0x0001, 0x6B]);
		var0004 = UI_execute_usecode_array_01(0xFFCD, [0x23, 0x55, 0x07F8]);
		abrt();
	labelFunc07FB_0418:
		if(!(var0000 == 0x0026)) goto labelFunc07FB_04D1;
		gflags[0178] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Delphynia, did the accused meet with thee?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD0, 0x0000);
		UcMessage("\"Yes, Captain. He came with his accomplice, who was seeking a certain magical leaf...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Aha! And what didst thou conclude from this?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD0, 0x0000);
		UcMessage("\"The leaf is known to counteract certain poisons and curses, milord. So I must conclude that the defendant suffers from some sort of malady.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Perhaps from his association with the Beast! How sinister...\"");
		UcSay;
		UcMessage("\"I have no more questions. Many thanks for thy service, Delphynia. Return to thy seat, if thou wilt.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(item) & (0x0012 & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0014, 0x0010);
		if(!var0006) goto labelFunc07FB_04D0;
		var0007 = UI_get_object_position_20(var0006);
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_04D0:
		abrt();
	labelFunc07FB_04D1:
		if(!(var0000 == 0x0027)) goto labelFunc07FB_05E2;
		gflags[0179] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Dost thou recall having met ");
		UcMessage(var0003);
		UcMessage(" before?\"");
		UcSay;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Yes, indeed. He came into the Broken Oar -- most people do, thou knowest. Asked me a great number of questions.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"About the usual sorts of things -- the weather, the goblin threat, and so forth?\"");
		UcSay;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Not at all, Captain! He had so many questions.\"");
		UcSay;
		if(!gflags[01AA]) goto labelFunc07FB_0530;
		UcMessage("\"He did ask me about strange objects, such as I had never heard of. They weren't normal items, sir!\"");
		UcSay;
		gflags[01AD] = true;
	labelFunc07FB_0530:
		if(!gflags[01A9]) goto labelFunc07FB_053E;
		UcMessage("\"He asked me about the bloodthirsty savages that live in the far north -- had a grisly interest in the tale, I might add.\"");
		UcSay;
		gflags[01AB] = true;
	labelFunc07FB_053E:
		if(!gflags[0158]) goto labelFunc07FB_056F;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" had a powerful curiosity about the ancient ruins of this land! I could not tell him enough. He was quite angry with me...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The ruins left by the Daemons who once dwelt in this land?\"");
		UcSay;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"Yes, captain. The Serpent Ruins.\"");
		UcSay;
		gflags[01AC] = true;
	labelFunc07FB_056F:
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And so we can plainly see that the accused doth have a most perverted sense of curiosity. Perhaps a weakness gained from associating with the Beast!\"");
		UcSay;
		UcMessage("\"Thou mayest go, Jendon...\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(Jendon) & (0x0010 & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0014, 0x0010);
		if(!var0006) goto labelFunc07FB_05E1;
		var0007 = UI_get_object_position_20(var0006);
		Func08C5();
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_05E1:
		abrt();
	labelFunc07FB_05E2:
		if(!(var0000 == 0x0028)) goto labelFunc07FB_06DA;
		gflags[017A] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		UcMessage("\"How can I help thee, Great Captain?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"I will not detain thee from thy duty overlong, commander.\"");
		UcSay;
		UcMessage("\"Thou didst meet ");
		UcMessage(var0003);
		UcMessage(" and ");
		UcMessage(var0002);
		UcMessage(" before thou didst apprehend the accused, didst thou not?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I did see them, Captain, even if they did not see me. It is my business to watch strangers.\"");
		UcSay;
		UcMessage("\"The traitor was a most curious man, and did often enter into buildings where he did not belong. He did open many drawers and barrels without permission.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"How wouldst thou characterize such behavior?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Peculiar, lord. Almost as if the man were hunting for something.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"According to legend, there have been men who have sold their souls to Beast British. Such men then scour the world, hoping to find their lost spirits once again.\"");
		UcSay;
		UcMessage("\"No more questions...\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFC9, "@Makes me shudder...@", 0x0002);
		Func097F(0xFFD0, "@How awful!@", 0x0003);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(0xFFCB) & (0x0007 & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0014, 0x0010);
		if(!var0006) goto labelFunc07FB_06D9;
		var0007 = UI_get_object_position_20(var0006);
		Func08C5();
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_06D9:
		abrt();
	labelFunc07FB_06DA:
		if(!(var0000 == 0x0029)) goto labelFunc07FB_0798;
		gflags[017C] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Forgive my presumption, Kylista. As the Priestess of Beauty, thy powers are absolute within this Temple.\"");
		UcSay;
		UcMessage("\"However, thy certain knowledge concerning this traitor is vital if the Oracle is to hear a complete accounting.\"");
		UcSay;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"I understand. Let me state that I have met ");
		UcMessage(var0003);
		UcMessage(", as well as ");
		UcMessage(var0002);
		UcMessage(", his companion. I found their lack of understanding of Beauty appalling!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"So they did not seem to have a true appreciation of Beauty?\"");
		UcSay;
		var0008 = Func0992(Iolo, "@Beauty lies in the eye of the beholder...@", 0x0000, false);
		if(!(var0008 == 0xFE9C)) goto labelFunc07FB_074F;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Beauty lies in the eye of the beholder...\"");
		UcSay;
	labelFunc07FB_074F:
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		var0004 = UI_execute_usecode_array_01(0xFFCB, [0x23, 0x6C, 0x61, 0x52, "@Silence!@"]);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FB], 0x0007);
		abrt();
	labelFunc07FB_0798:
		if(!(var0000 == 0x002A)) goto labelFunc07FB_080A;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		UcMessage("\"Quiet in the Temple! Thou wilt not speak unless questioned.\"");
		UcSay;
		UcMessage("\"Forgive the interruption, Captain Voldin.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"No forgiveness necessary. I thank thee for performing thy duty.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		var0004 = UI_execute_usecode_array_01(0xFFCB, [0x23, 0x6C, 0x6B]);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FB], 0x0007);
		abrt();
	labelFunc07FB_080A:
		if(!(var0000 == 0x002B)) goto labelFunc07FB_08A4;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"And now, Priestess, please continue thy witness.\"");
		UcSay;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"As the Priestess of Beauty, I must warn all of thee to remain wary of these strangers! They preach doctrines which deny the primacy of Beauty. The Fellowship is an insidious philosophy which threatens to undermine our common society.\"");
		UcSay;
		UcMessage("\"I believe that The Fellowship is an invention of Beast British, by which he means to destroy us!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Thy vigilance will be our salvation, Priestess. Many thanks for responding to mine unusual summons.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(Kylista) & (0x000D & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x001E, 0x0010);
		if(!var0006) goto labelFunc07FB_08A3;
		var0007 = UI_get_object_position_20(var0006);
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_08A3:
		abrt();
	labelFunc07FB_08A4:
		if(!(var0000 == 0x002C)) goto labelFunc07FB_0996;
		gflags[017D] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Thou knowest that thy presence here is for testifying only. Thou shalt be returned to thy camp immediately after thou hast answered our questions.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC8, 0x0000);
		UcMessage("\"I have no wish to cause disunity in thy city, Captain. I only wish that thou wouldst come to trust me.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Confine thyself to my questions only, please.\"");
		UcSay;
		UcMessage("\"What contact hath ");
		UcMessage(var0003);
		UcMessage(" had with thee?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC8, 0x0000);
		UcMessage("\"He came to the Fellowship camp. We spoke privately.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"And no doubt the two of you did compare notes concerning The Fellowship blasphemy. Indeed, is not the traitor secretly a confederate of thyself?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC8, 0x0000);
		UcMessage("\"I deny the charge of blasphemy. The Fellowship is not an evil doctrine, but is a system of beliefs which bring enlightenment to those who obey...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Enough! Leave our fair city now.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		Func097F(0xFFCD, "@Exile the blasphemer!@", 0x0000);
		Func097F(Kylista, "@Stone him!@", 0x0001);
		Func097F(0xFFC3, "@Beware of Leon!@", 0x0003);
		Func097F(0xFFD2, "@Shame on us...@", 0x0007);
		Func097F(0xFFC8, "@I forgive thee...@", 0x0003);
		UI_si_path_run_usecode_C1(item, [0x0407, 0x0679, 0x0000], 0x000D, item, 0x07FB, false);
		abrt();
	labelFunc07FB_0996:
		if(!(var0000 == 0x002D)) goto labelFunc07FB_09D8;
		UI_remove_npc_4C(item);
		UI_set_schedule_type_25(item, 0x0004);
		Func08C6();
		var0004 = UI_execute_usecode_array_01(0xFFCD, [0x23, 0x55, 0x07F8]);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0019);
		abrt();
	labelFunc07FB_09D8:
		if(!(var0000 == 0x002E)) goto labelFunc07FB_0A4B;
		gflags[017E] = true;
		var0004 = UI_execute_usecode_array_01(0xFFCD, [0x23, 0x61]);
		Func097F(Kylista, "@How rude!@", 0x0000);
		Func097F(0xFFC3, "@Get back here!@", 0x0002);
		Func097F(0xFFCD, "@Let him go...@", 0x0005);
		Func08C5();
		UI_si_path_run_usecode_C1(item, [0x0407, 0x0679, 0x0000], 0x000D, item, 0x07FB, false);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002D);
		abrt();
	labelFunc07FB_0A4B:
		if(!(var0000 == 0x002F)) goto labelFunc07FB_0B1D;
		gflags[017F] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Take no hope that thou wilt remain any longer than necessary for thee to speak before the Oracle.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC5, 0x0000);
		UcMessage("\"I have hope for only one thing, Captain. And that dwells deep within mine heart, as Delphynia knows...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Do not digress! Now, I am told that thou hast been seen speaking with the accused traitor...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC5, 0x0000);
		UcMessage("\"Yes, Captain. I asked a favor of him, to deliver a document for me.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"No doubt a document containing instructions from Leon, to his secret ally, ");
		UcMessage(var0003);
		UcMessage("! No further questions...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC5, 0x0000);
		UcMessage("\"No! 'Twas a letter to my beloved Delphynia...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Return to thy camp.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFC5, "@I love thee, Delphynia!@", 0x0000);
		Func097F(0xFFD0, "@I cannot...@", 0x0002);
		Func097F(0xFFC3, "@Ruggs, be silent!@", 0x0003);
		UI_si_path_run_usecode_C1(item, [0x0407, 0x0679, 0x0000], 0x000D, item, 0x07FB, false);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002D);
		abrt();
	labelFunc07FB_0B1D:
		if(!(var0000 == 0x0030)) goto labelFunc07FB_0BDE;
		gflags[0180] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Art thou a follower of this Fellowship, Scots?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC4, 0x0000);
		UcMessage("\"I'm a geographer, sir. And a sailor. Though I was brought here by The Fellowship to study this land, I do not practice their beliefs.\"");
		UcSay;
		UcMessage("\"However, I see nothing wrong with The Fellowship. If anything, it seems that Leon speaks more of the truth than thine own Priestess.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Heresy! Leave this Temple and never return to our fair city, upon pain of death!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC4, 0x0000);
		UcMessage("\"And Lord British is no Daemon! He's a good man, and hath often commissioned me to create new maps for him...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Jorvin, if that man speaks another word, blast him with thy wand!\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFC4, "@Not the wand!@", 0x0000);
		Func097F(0xFFCD, "@Jorvin...@", 0x0003);
		UI_si_path_run_usecode_C1(item, [0x0407, 0x0679, 0x0000], 0x000D, item, 0x07FB, false);
		var0004 = UI_delayed_execute_usecode_array_02(0xFFCB, [0x23, 0x6C, 0x61], 0x0004);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		abrt();
	labelFunc07FB_0BDE:
		if(!(var0000 == 0x0031)) goto labelFunc07FB_0C3F;
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), (var0000 + 0x0001));
		var0004 = UI_projectile_effect_4F(0xFFCB, 0xFFC4, 0x0118);
		var0004 = UI_execute_usecode_array_01(0xFFCB, [0x67, 0x7A, 0x01, 0x58, 0x0035, 0x61]);
		var0004 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FB], 0x0005);
		abrt();
	labelFunc07FB_0C3F:
		if(!(var0000 == 0x0032)) goto labelFunc07FB_0CB7;
		UI_play_sound_effect_16(0x0039);
		Func097F(0xFFCB, "@Damn, I missed...@", 0x0000);
		var0004 = UI_execute_usecode_array_01(0xFFCB, [0x23, 0x6C, 0x6B]);
		UI_move_object_4B(0xFFC4, [0x05F0, 0x078F, 0x0000]);
		UI_run_schedule_B7(0xFFC4);
		Func08C6();
		var0004 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x23, 0x55, 0x07F8], 0x0003);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0019);
		abrt();
	labelFunc07FB_0CB7:
		if(!(var0000 == 0x0033)) goto labelFunc07FB_0DFF;
		gflags[01B0] = true;
		gflags[0182] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		UcMessage("\"I had not expected to be called to witness, Captain Voldin. After all, I serve Lady Yelinda. Much of what I know is confidential.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"Yet the course of this trial could affect state security, chancellor. This man is accused of aiding a Daemon to overthrow our city!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I must defer to the Lady...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"I don't see why thou couldst not speak freely, Zulith.\"");
		UcSay;
		UcMessage("\"I know! If thou art about to reveal some important secret, I shall signal thee by clapping sharply. Then thou shouldst be silent.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Very well, Lady Yelinda.\"");
		UcSay;
		UcMessage("\"Let it be known, therefore, that I have spent much of my recent time following ");
		UcMessage(var0003);
		UcMessage(" and his companions about town.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"And what didst thou learn?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Nothing -- ");
		UcMessage(var0003);
		UcMessage(" was too sharp for me, and spotted me before I could learn much. However, I did see him conferring with Delin's daughter, and she is a known sympathizer with The Fellowship!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"Watch thy words, Zulith! Or thou shalt have to reckon with me. I may be old, but I'm mean...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I meant no disrespect. Only everyone knows that The Fellowship is a Daemonic heresy, and that Alyssand hath become infatuated with Leon the Preacher.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"And so Beast British, who is the force behind The Fellowship heresy, uses Alyssand to communicate with agents such as ");
		UcMessage(var0003);
		UcMessage("! No further questions.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFD1, "@Take that back!@", 0x0000);
		Func097F(0xFFD2, "@Daemons? Bah!@", 0x0004);
		var0004 = ("@Alyssand?@" & "@I never knew...@");
		Func094F(0xFFC8, var0004);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0005 = (UI_get_object_position_20(0xFFC3) & (0x000A & 0x0006));
		var0006 = UI_find_nearby_41(var0005, 0x0113, 0x0028, 0x0010);
		if(!var0006) goto labelFunc07FB_0DFE;
		var0007 = UI_get_object_position_20(var0006);
		UI_si_path_run_usecode_C1(item, var0007, 0x000D, item, 0x07F8, false);
	labelFunc07FB_0DFE:
		abrt();
	labelFunc07FB_0DFF:
		if(!(var0000 == 0x0034)) goto labelFunc07FB_0EA3;
		gflags[0181] = true;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		UcMessage("\"Voldin, thou dost extend thyself too far!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCD, 0x0000);
		UcMessage("\"Please bear with me, Zulith. This is for the good of Fawn.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Very well, but there is no reason for the Lady to take the stand. She may speak from where she is.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0035);
		var0004 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@Milady, speak if thou wilt.@", 0x27, 0x0004, 0x6C, 0x27, 0x0002, 0x6B]);
		Func097F(0xFFC9, "@I will speak.@", 0x0002);
		var0004 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0009, 0x55, 0x07FB], 0x0004);
		abrt();
	labelFunc07FB_0EA3:
		if(!(var0000 == 0x0035)) goto labelFunc07FB_0F66;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"Thou art most gracious, Lady. I shall make this brief...\"");
		UcSay;
		UcMessage("\"For the benefit of the Oracle, couldst thou recount the scene at which ");
		UcMessage(var0003);
		UcMessage(" didst invoke the name of the Daemon British?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"I seem to recall that we were having a civil conversation. And then, without forewarning, ");
		UcMessage(var0003);
		UcMessage(" suddenly burst out with a vile and blasphemous oath!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Dost thou remember his precise words?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"To be truthful, the discussion was so distasteful that I quickly put it from my mind.\"");
		UcSay;
		UcMessage("\"I believe he said -- Curse you all, and Beast British shall drink thy blood...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I thank thee for thy time, Lady Yelinda. Thou hast spoken fairly, as always.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(Func08AC(true), "@I didn't say that!", 0x0000);
		var0004 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6B]);
		var0004 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x23, 0x55, 0x07F8], 0x000A);
		var0004 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0019);
		abrt();
	labelFunc07FB_0F66:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern var Func0953 0x953 ();
extern var Func08AC 0x8AC (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0956 0x956 (var var0000);

Func07FC 0x7FC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_item_quality_1C(Func09A0(0x0001, 0x0001));
	var0001 = Func0953();
	var0002 = Func08AC(false);
	if(!(var0000 == 0x002C)) goto labelFunc07FC_0196;
	UI_init_conversation_85();
	UI_show_npc_face0_05(0xFFCE, 0x0000);
	if(!UI_get_item_flag_A3(0xFFCE, 0x001C)) goto labelFunc07FC_004F;
	UcMessage("\"I am prepared for thy questions, ");
	UcMessage(var0001);
	UcMessage(". What dost thou care to question me about?\"");
	UcSay;
	goto labelFunc07FC_0059;
	labelFunc07FC_004F:
		UcMessage("\"What hast thou to do with me? I did not even set eyes upon ");
		UcMessage(var0002);
		UcMessage(" until this trial.\"");
		UcSay;
	labelFunc07FC_0059:
		UI_add_answer_0C(["the character of the accused", "Daemonism", "no questions"]);
	labelFunc07FC_0069:
		UcAsk;
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!UI_get_item_flag_A3(0xFFCE, 0x001C)) goto labelFunc07FC_00C5;
		var0003 = Func08AC(false);
		if(!gflags[0174]) goto labelFunc07FC_00A6;
		UcMessage("\"To be honest, he did not strike me as an honest man. Never cared much for bards. Louts, every one of them!\"");
		UcSay;
	labelFunc07FC_00A6:
		if(!gflags[0173]) goto labelFunc07FC_00B4;
		UcMessage("\"Well, I must say that I find him likable. He does his duty without blabbering all the time.\"");
		UcSay;
		UcMessage("\"Hard to believe a good man like Dupre would be in league with Daemon British...\"");
		UcSay;
	labelFunc07FC_00B4:
		if(!gflags[0175]) goto labelFunc07FC_00C2;
		UcMessage("\"Hard to say. He doth not talk much, and always seems to be in a hurry...\"");
		UcSay;
		UcMessage("\"Couldn't say more than that. Merely an ordinary knave.\"");
		UcSay;
	labelFunc07FC_00C2:
		goto labelFunc07FC_00C9;
	labelFunc07FC_00C5:
		UcMessage("\"Art thou daft? I said that I have never met the man. I can form no opinion.\"");
		UcSay;
	labelFunc07FC_00C9:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Look here, ");
		UcMessage(var0001);
		UcMessage(". I'm a captain, not a theologian. I find it hard to believe in something I can't touch or smell.\"");
		UcSay;
		UcMessage("\"Yet all of our legends tell of this Beast British, and his crimes against our ancestors.\"");
		UcSay;
		UcMessage("\"I suppose I don't know what to believe -- pardon me, Kylista...\"");
		UcSay;
	labelFunc07FC_00F7:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Waste of time...@", 0x0000);
		goto labelFunc07FC_0135;
	labelFunc07FC_011A:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0135;
	labelFunc07FC_0131:
		goto labelFunc07FC_0069;
	labelFunc07FC_0134:
		end_conv();
	labelFunc07FC_0135:
		gflags[017D] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFCE) & (0x0004 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_0191;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_0191:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0196:
		if(!(var0000 == 0x002F)) goto labelFunc07FC_0323;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCF, 0x0000);
		UcMessage("\"Question me! I am ready. On what subject dost thou desire information?\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism", "no questions"]);
	labelFunc07FC_01C2:
		UcAsk;
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		var0003 = Func0992(0x0001, 0x0000, 0x0000, true);
		var0003 = UI_get_npc_name_30(var0003);
		UcMessage("\"I have met him face to face, and I find ");
		UcMessage(var0003);
		UcMessage(" to be the most surly, disrespectful man I have ever seen.\"");
		UcSay;
		UcMessage("\"He offends with every breath that comes out of his ugly face!\"");
		UcSay;
		var0007 = Func08AC(false);
		if(!(var0003 != var0007)) goto labelFunc07FC_025C;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Captain, thou art confused. It is ");
		UcMessage(var0007);
		UcMessage(" on trial, not ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Why, thou art right, sailor. Nevertheless, I stand by my sworn testimony!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"I may be drunk, but I'm not stupid...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc07FC_025C:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Lest anyone be confused, let me state unequivocably that Daemons exist. Evil is real!\"");
		UcSay;
		UcMessage("\"The tales of our forefathers -- about the Daemon King named British, and the lands he stole in the name of Virtue -- are literally true.\"");
		UcSay;
		UcMessage("\"Lastly, I have absolute faith in the Priestess of Beauty... wherever she may be. She is too beautiful to be wrong!\"");
		UcSay;
	labelFunc07FC_0284:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Damned traitor...@", 0x0000);
		goto labelFunc07FC_02C2;
	labelFunc07FC_02A7:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_02C2;
	labelFunc07FC_02BE:
		goto labelFunc07FC_01C2;
	labelFunc07FC_02C1:
		end_conv();
	labelFunc07FC_02C2:
		gflags[017F] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFCF) & (0x0005 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_031E;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_031E:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0323:
		if(!(var0000 == 0x0027)) goto labelFunc07FC_05F6;
		UI_init_conversation_85();
		UI_show_npc_face0_05(Jendon, 0x0000);
		UcMessage("\"Why hast thou brought me before the Oracle, Avatar? Ask me thy questions.\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism"]);
		if(!gflags[01AD]) goto labelFunc07FC_0359;
		UI_add_answer_0C("strange objects");
	labelFunc07FC_0359:
		if(!gflags[01AC]) goto labelFunc07FC_0366;
		UI_add_answer_0C("ancient ruins");
	labelFunc07FC_0366:
		if(!gflags[01AB]) goto labelFunc07FC_0373;
		UI_add_answer_0C("savages");
	labelFunc07FC_0373:
		if(!gflags[0155]) goto labelFunc07FC_0380;
		UI_add_answer_0C("Gwenno");
	labelFunc07FC_0380:
		UI_add_answer_0C("no questions");
	labelFunc07FC_0387:
		UcAsk;
		cmps("strange objects");
		UI_remove_answer_0D(["strange objects", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"That is what I said in my testimony -- ");
		UcMessage(var0002);
		UcMessage(" brought me strange items, and asked me to identify them.\"");
		UcSay;
		var0008 = Func0992(0x0001, "@But thou art an innkeeper! Surely, many folks bring thee mysteries...@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Mayhaps, stranger. But nothing half so strange...\"");
		UcSay;
	labelFunc07FC_03CB:
		cmps("ancient ruins");
		UI_remove_answer_0D(["ancient ruins", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" did ask me about the ancient ruins, indeed. Very suspicious.\"");
		UcSay;
		var0008 = Func0992(0x0001, "@Surely, others ask of these same things?@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Indeed, the sage Batlin was also curious about the ruins.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCF, 0x0000);
		UcMessage("\"See how the evidence convicts him! I tell thee, this ");
		UcMessage(var0002);
		UcMessage(" works for Batlin, and both are tools of Beast British!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc07FC_042B:
		cmps("savages");
		UI_remove_answer_0D(["savages", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"We did speak of the northern barbarians, ");
		UcMessage(var0002);
		UcMessage(" and I. He seemed to relish the most grisly parts of the tale.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Ah, but thou dost tell that tale to everyone, Jendon. Thou canst not convict a man for listening to thy tales...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc07FC_046A:
		cmps("Gwenno");
		UI_remove_answer_0D(["Gwenno", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Yes, I did meet the scholar when she was here. A fine lady, of good temperament.\"");
		UcSay;
		if(!gflags[0174]) goto labelFunc07FC_0497;
		UcMessage("\"I find it hard to believe that Iolo could be guilty of Daemonism, yet be wed to such a wonderful lady.\"");
		UcSay;
		goto labelFunc07FC_049B;
	labelFunc07FC_0497:
		UcMessage("\"But I fail to see any connection between that good lady, and this trial.\"");
		UcSay;
	labelFunc07FC_049B:
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!UI_get_item_flag_A3(Jendon, 0x001C)) goto labelFunc07FC_0529;
		if(!gflags[0174]) goto labelFunc07FC_04EB;
		UcMessage("\"A prince of a man! Why, when he breaks into song, I can hardly keep the crowds out of mine inn!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Such a man hardly sounds like the servant of Daemons, innkeeper.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Aye. But then again, doth legend not claim that Daemons have silver tongues? This Iolo doth certainly have charm...\"");
		UcSay;
	labelFunc07FC_04EB:
		if(!gflags[0175]) goto labelFunc07FC_0518;
		UcMessage("\"Can't say as I like him much, ");
		UcMessage(var0001);
		UcMessage(". He doth not drink much, nor doth he seem to enjoy the entertainments of the inn.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC3, 0x0000);
		UcMessage("\"Doth Shamino not have the passions of a normal man, Jendon?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Perhaps. Or he may merely be driven by his cause. Shamino is far too serious.\"");
		UcSay;
	labelFunc07FC_0518:
		if(!gflags[0173]) goto labelFunc07FC_0526;
		UcMessage("\"He can out-drink any man in this town, and I think he could out-fight nearly everyone except Jorvin!\"");
		UcSay;
		UcMessage("\"I must admit, Dupre is a likable man. Hard to believe he's a tool of Beast British.\"");
		UcSay;
	labelFunc07FC_0526:
		goto labelFunc07FC_052D;
	labelFunc07FC_0529:
		UcMessage("\"Not having met the man, I have little to say about him. He needs a shave.\"");
		UcSay;
	labelFunc07FC_052D:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Do I believe in Daemonism? Of course. My mother told me the legends when I was a mere child.\"");
		UcSay;
		UcMessage("\"And even if I didn't -- why, I'm an innkeeper, ");
		UcMessage(var0001);
		UcMessage(". For the sake of my business, friend, I dare not disagree with the Priestess of Beauty.\"");
		UcSay;
	labelFunc07FC_0557:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Strange kind of person...@", 0x0000);
		goto labelFunc07FC_0595;
	labelFunc07FC_057A:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0595;
	labelFunc07FC_0591:
		goto labelFunc07FC_0387;
	labelFunc07FC_0594:
		end_conv();
	labelFunc07FC_0595:
		gflags[0179] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(Jendon) & (0x0010 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_05F1;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_05F1:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_05F6:
		if(!(var0000 == 0x0026)) goto labelFunc07FC_07AB;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFD0, 0x0000);
		UcMessage("\"Hail to Beauty, and the omnipotence of the Oracle!\"");
		UcSay;
		UcMessage("\"I shall answer thy questions truthfully, Avatar. Of what can I tell thee?\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism"]);
		if(!gflags[01AE]) goto labelFunc07FC_0630;
		UI_add_answer_0C("Varo Leaves");
	labelFunc07FC_0630:
		UI_add_answer_0C("no questions");
	labelFunc07FC_0637:
		UcAsk;
		cmps("Varo Leaves");
		UI_remove_answer_0D(["Varo Leaves", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"I did provide Varo Leaves for ");
		UcMessage(var0002);
		UcMessage(", as I did testify before. And such leaves are used to treat poisons and curses.\"");
		UcSay;
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"It was not ");
		UcMessage(var0002);
		UcMessage(" who was cursed, Delphynia. 'Twas I, poisoned by a treacherous woman in the city of Monitor.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Mine apologies, ");
		UcMessage(var0001);
		UcMessage(". I did not know...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCF, 0x0000);
		UcMessage("\"How do we know this to be true? I say that he lies!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc07FC_06A2:
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!gflags[0174]) goto labelFunc07FC_06C8;
		UcMessage("\"He did strike me as a kindly man, of affable temperament. Good with children. Not the kind to consort with Daemons.\"");
		UcSay;
	labelFunc07FC_06C8:
		if(!gflags[0175]) goto labelFunc07FC_06D2;
		UcMessage("\"He doth have honest eyes. He is a hard man to like, but I do not think he is a bad sort.\"");
		UcSay;
	labelFunc07FC_06D2:
		if(!gflags[0173]) goto labelFunc07FC_06E4;
		UcMessage("\"This man drinks far too much, and his health will surely suffer for this some day! He is also a bit of a braggart, and he doth think himself a ladies' man --\"");
		UcSay;
		UcMessage("\"He did try to steal a kiss from me!\"");
		UcSay;
		UcMessage("\"Dupre doth have an evil heart. I'd not be surprised if he were in the service of Daemons.\"");
		UcSay;
	labelFunc07FC_06E4:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"I do believe in Daemons. There is much evil in this world, and I do not believe that we cause it of ourselves.\"");
		UcSay;
		UcMessage("\"Our ancestors did beat the British by escaping to this land. Is it so incredible that the Daemon would want revenge?\"");
		UcSay;
		UcMessage("\"We should be very afraid, all of us...\"");
		UcSay;
	labelFunc07FC_070C:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Never mind...@", 0x0000);
		goto labelFunc07FC_074A;
	labelFunc07FC_072F:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_074A;
	labelFunc07FC_0746:
		goto labelFunc07FC_0637;
	labelFunc07FC_0749:
		end_conv();
	labelFunc07FC_074A:
		gflags[0178] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFD0) & (0x0012 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_07A6;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_07A6:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_07AB:
		if(!(var0000 == 0x001F)) goto labelFunc07FC_0965;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFD1, 0x0000);
		UcMessage("\"Oh... I'm not used to standing in public like this... crowds make me nervous...\"");
		UcSay;
		UcMessage("\"Let this be swift. Ask thy questions.\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism"]);
		if(!gflags[01AF]) goto labelFunc07FC_07E5;
		UI_add_answer_0C("engagement ring");
	labelFunc07FC_07E5:
		UI_add_answer_0C("no questions");
	labelFunc07FC_07EC:
		UcAsk;
		cmps("engagement ring");
		UI_remove_answer_0D(["engagement ring", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"That is what Alyssand said in her testimony -- that thy friend did return her engagement ring to her.\"");
		UcSay;
		UcMessage("\"Mighty nice of him, I say. He looks to be a good lad. Doth he need a wife?\"");
		UcSay;
		if(!gflags[0174]) goto labelFunc07FC_0827;
		UI_show_npc_face1_06(Iolo, 0x0000);
		UcMessage("\"I already have a wife, thank thee!\"");
		UcSay;
	labelFunc07FC_0827:
		if(!gflags[0173]) goto labelFunc07FC_083B;
		UI_show_npc_face1_06(Dupre, 0x0000);
		UcMessage("\"I'm afraid thy daughter is not lively enough for me, old man.\"");
		UcSay;
	labelFunc07FC_083B:
		if(!gflags[0175]) goto labelFunc07FC_084F;
		UI_show_npc_face1_06(Shamino, 0x0000);
		UcMessage("\"This is not the time for idle chat, good man. My life is at stake!\"");
		UcSay;
	labelFunc07FC_084F:
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I know that the Priestess fears that the ring was stolen by magical means. But what about the storms! They steal things every day. Could not a storm have taken my daughter's ring?\"");
		UcSay;
	labelFunc07FC_085E:
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!gflags[0174]) goto labelFunc07FC_0888;
		UcMessage("\"He looks to be too old for my daughter, now that I see him clearly.\"");
		UcSay;
		UcMessage("\"When a man ages, he starts to lose his mind. Wouldn't want mine Alyssand to have to deal with someone like that...\"");
		UcSay;
	labelFunc07FC_0888:
		if(!gflags[0175]) goto labelFunc07FC_0892;
		UcMessage("\"Doth he not ever smile? He doth have the look of a convict, that's what I say.\"");
		UcSay;
	labelFunc07FC_0892:
		if(!gflags[0173]) goto labelFunc07FC_08A6;
		UcMessage("\"He looks like a fine lad, he doth.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("! Come by the shop afterwards, and I'll introduce ye to my daughter!\"");
		UcSay;
	labelFunc07FC_08A6:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Very frightening. Don't care much for Daemons.\"");
		UcSay;
	labelFunc07FC_08C6:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Nor I for thee...@", 0x0000);
		goto labelFunc07FC_0904;
	labelFunc07FC_08E9:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0904;
	labelFunc07FC_0900:
		goto labelFunc07FC_07EC;
	labelFunc07FC_0903:
		end_conv();
	labelFunc07FC_0904:
		gflags[0177] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFD1) & (0x000E & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_0960;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_0960:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0965:
		if(!(var0000 == 0x002E)) goto labelFunc07FC_0B8F;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC6, 0x0000);
		UcMessage("\"Hail to Lady Yelinda, Hail to the Oracle, hail to... hail to everyone!\"");
		UcSay;
		UI_show_npc_face1_06(Jendon, 0x0000);
		UcMessage("\"I'm afraid he hath been drinking...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I drinks ta forget my pain, innkeeper. Go ahead, Avatar. Ask me thy questions.\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism", "drinking", "no questions"]);
	labelFunc07FC_09B1:
		UcAsk;
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!UI_get_item_flag_A3(0xFFC6, 0x001C)) goto labelFunc07FC_0A74;
		if(!gflags[0174]) goto labelFunc07FC_09E7;
		UcMessage("\"He looks like he hath had one too many tips of the bottle, if ya know what I mean.\"");
		UcSay;
	labelFunc07FC_09E7:
		if(!gflags[0175]) goto labelFunc07FC_09F1;
		UcMessage("\"What a sourpuss! Wouldn't even share a glass of ale with me...\"");
		UcSay;
	labelFunc07FC_09F1:
		if(!gflags[0173]) goto labelFunc07FC_0A71;
		UcMessage("\"I love that man! Dupre, sing that drinking song thou didst teach me, the one about all the young ladies?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC3, 0x0000);
		UcMessage("\"I don't think that would be advisable.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I have my lute with me...\"");
		UcSay;
		UI_play_music_39(0x003B, Func09A0(0x0005, 0x0001));
		UcMessage("\"If all the young ladies were bricks in a pile,\"");
		UcSay;
		UI_play_music_39(0x003C, Func09A0(0x0005, 0x0001));
		UcMessage("\"I'd be a mason and lay them in style!\"");
		UcSay;
		UI_play_music_39(0x003D, Func09A0(0x0005, 0x0001));
		UcMessage("\"Roll thy leg over, roll thy leg over...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC3, 0x0000);
		UcMessage("\"Zounds, man! In the earshot of Lady Yelinda? Hast thou no decency!\"");
		UcSay;
		Func097F(0xFFC6, "@Leave me alone...@", 0x0000);
		goto labelFunc07FC_0B2E;
	labelFunc07FC_0A71:
		goto labelFunc07FC_0A78;
	labelFunc07FC_0A74:
		UcMessage("\"Don't believe I've met the man before.\"");
		UcSay;
	labelFunc07FC_0A78:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"I used ta believe in that stuff. But what Beauty is there in the world for a sailor who cannot sail?\"");
		UcSay;
		UcMessage("\"If the Oracle is so powerful, why did it not save us from the storms? Why did it let so many good men die?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCF, 0x0000);
		UcMessage("\"Foul blasphemy! Hold thy tongue, rogue, or face the wrath of the Oracle.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I may be a drunk, but I be an honest drunk. I shall follow no hypocrite ta a watery grave.\"");
		UcSay;
		Func097F(0xFFC6, "@That's all I have to say...@", 0x0000);
		goto labelFunc07FC_0B2E;
	labelFunc07FC_0AC8:
		cmps("drinking");
		UI_remove_answer_0D(["drinking", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Why do I drink so much? That's rather a personal question...\"");
		UcSay;
		UcMessage("\"I be a sailor stranded on the shore, mate. 'Tis no worse fate. With my very own eyes, I have seen our fleet blasted to wreckage by the storms. I saw sailors die!\"");
		UcSay;
		UcMessage("\"Why would a man who hath cheated death not drink, Avatar? Perhaps I should have died with my brothers...\"");
		UcSay;
	labelFunc07FC_0AF0:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Drunkard...@", 0x0000);
		goto labelFunc07FC_0B2E;
	labelFunc07FC_0B13:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0B2E;
	labelFunc07FC_0B2A:
		goto labelFunc07FC_09B1;
	labelFunc07FC_0B2D:
		end_conv();
	labelFunc07FC_0B2E:
		gflags[017E] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFC6) & (0x0011 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_0B8A;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_0B8A:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0B8F:
		if(!(var0000 == 0x0034)) goto labelFunc07FC_0D29;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"I shall answer thy questions, ");
		UcMessage(var0001);
		UcMessage(", for the sake of the Oracle. But do not try my patience.\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism", "Dupre's words", "no questions"]);
	labelFunc07FC_0BC4:
		UcAsk;
		cmps("Dupre's words");
		UI_remove_answer_0D(["Dupre's words", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"I do not remember every word uttered in my presence, ");
		UcMessage(var0001);
		UcMessage(".\"");
		UcSay;
		UI_show_npc_face1_06(Func08AC(true), 0x0000);
		UcMessage("\"These were mine exact words, Lady -- All hail Lord British and the glory that is Britannia!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Beauty forbid! Thou hast spouted the blasphemy again!\"");
		UcSay;
		Func097F(0xFFC9, "@I cannot bear this!@", 0x0000);
		goto labelFunc07FC_0CC8;
	labelFunc07FC_0C1A:
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!gflags[0174]) goto labelFunc07FC_0C40;
		UcMessage("\"He seems to be an unstable man. Sociable at one moment, and deranged in the next!\"");
		UcSay;
	labelFunc07FC_0C40:
		if(!gflags[0175]) goto labelFunc07FC_0C4A;
		UcMessage("\"He frightens me. Look into those cold, hard eyes! Aren't those the eyes of a murderer?\"");
		UcSay;
	labelFunc07FC_0C4A:
		if(!gflags[0173]) goto labelFunc07FC_0C54;
		UcMessage("\"This is a wild man, full of passions and lusts! I can feel his eyes on me now...\"");
		UcSay;
	labelFunc07FC_0C54:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"There is no doubt that Daemon British exists. I have seen the records left by previous generations.\"");
		UcSay;
		UcMessage("\"The Beast did conquer all of Sosaria, and did force the Fawnese to flee into the sea. How cruel!\"");
		UcSay;
		UcMessage("\"I have always hated the Beast, and I always shall!\"");
		UcSay;
	labelFunc07FC_0C7C:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(0xFFC3, "@Such impudence!@", 0x0002);
		Func097F(0xFFCE, "@For shame!@", 0x0000);
		goto labelFunc07FC_0CC8;
	labelFunc07FC_0CAD:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0CC8;
	labelFunc07FC_0CC4:
		goto labelFunc07FC_0BC4;
	labelFunc07FC_0CC7:
		end_conv();
	labelFunc07FC_0CC8:
		gflags[0181] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFC9) & (0x0002 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_0D24;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_0D24:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0D29:
		if(!(var0000 == 0x0033)) goto labelFunc07FC_0F15;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		UcMessage("\"Ask thy questions, Avatar. However, I shall reserve the right to silence. After all, I am the custodian of Lady Yelinda's confidential matters.\"");
		UcSay;
		UI_add_answer_0C(["the character of the accused", "Daemonism", "following me", "no questions"]);
	labelFunc07FC_0D58:
		UcAsk;
		cmps("following me");
		UI_remove_answer_0D(["following me", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!gflags[01B0]) goto labelFunc07FC_0D8A;
		UcMessage("\"As I stated in the earlier session of these proceedings, ");
		UcMessage(var0002);
		UcMessage(" was too sharp for me. However, I did see him conferring with Delin's daughter, and she is a known sympathizer with The Fellowship!\"");
		UcSay;
		goto labelFunc07FC_0DF5;
	labelFunc07FC_0D8A:
		UcMessage("\"I do not have to answer that question. This is a matter of state security.\"");
		UcSay;
		var0003 = Func0956(["protest", "accept"]);
		if(!(var0003 == "protest")) goto labelFunc07FC_0DC7;
		UcMessage("\"I don't have to answer thy questions, traitor!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"The Oracle must hear all of the facts, if it is to decide fairly. Chancellor, I give my permission to speak of thy secrets.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc07FC_0DCE;
	labelFunc07FC_0DC7:
		UcMessage("\"Ask me something else...\"");
		UcSay;
		goto labelFunc07FC_0E12;
	labelFunc07FC_0DCE:
		UcMessage("\"I followed ");
		UcMessage(var0002);
		UcMessage(" about this town, until he spotted me. No doubt I prevented him from great evil!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD0, 0x0000);
		UcMessage("\"But thou didst not see him actually perform any vile acts?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"He contacted Alyssand, madam! I saw them speaking together, and casting many sly glances in my direction.\"");
		UcSay;
	labelFunc07FC_0DF5:
		UI_show_npc_face1_06(0xFFD1, 0x0000);
		UcMessage("\"My daughter is not on trial here, chancellor...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Well... I suppose not...\"");
		UcSay;
	labelFunc07FC_0E12:
		var0003 = 0x0001;
	labelFunc07FC_0E18:
		cmps("the character of the accused");
		UI_remove_answer_0D(["the character of the accused", "no questions"]);
		UI_add_answer_0C("no further questions");
		if(!gflags[0174]) goto labelFunc07FC_0E3E;
		UcMessage("\"Isn't it obvious? The bard is a light-minded man, disrespectful of proper authority! Iolo is not a man to be trusted.\"");
		UcSay;
	labelFunc07FC_0E3E:
		if(!gflags[0175]) goto labelFunc07FC_0E48;
		UcMessage("\"He possesses the grim silence of the professional executioner. Shamino never laughs. I find him to be disquieting...\"");
		UcSay;
	labelFunc07FC_0E48:
		if(!gflags[0173]) goto labelFunc07FC_0E52;
		UcMessage("\"Why, the man is a known drunkard, and a companion of thieves and cut-throats. Look at those he consorts with!\"");
		UcSay;
	labelFunc07FC_0E52:
		cmps("Daemonism");
		UI_remove_answer_0D(["Daemonism", "no questions"]);
		UI_add_answer_0C("no further questions");
		UcMessage("\"Dost thou not feel the sudden chill in this Temple, at the very mention of Beast British?\"");
		UcSay;
		UcMessage("\"I tell thee, the Daemon exists, and his schemes to destroy Fawn can only be averted by the justice of the Oracle!\"");
		UcSay;
	labelFunc07FC_0E76:
		cmps("no questions");
		UI_show_npc_face1_06(0xFE9C, 0x0000);
		UcMessage("\"Forgive me. I have no questions for thee.\"");
		UcSay;
		Func097F(item, "@Idiot...@", 0x0000);
		goto labelFunc07FC_0EB4;
	labelFunc07FC_0E99:
		cmps("no further questions");
		Func097F(0xFE9C, "@No further questions...@", 0x0000);
		goto labelFunc07FC_0EB4;
	labelFunc07FC_0EB0:
		goto labelFunc07FC_0D58;
	labelFunc07FC_0EB3:
		end_conv();
	labelFunc07FC_0EB4:
		gflags[0182] = true;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001D);
		var0004 = (UI_get_object_position_20(0xFFC3) & (0x000A & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc07FC_0F10;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc07FC_0F10:
		UI_end_conversation_86();
		abrt();
	labelFunc07FC_0F15:
		return;
}
// externs
extern Func092F 0x92F (var var0000, var var0001);
extern Func0937 0x937 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0930 0x930 (var var0000, var var0001, var var0002);
extern Func092E 0x92E (var var0000);

Func07FD 0x7FD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	if(!(event == 0x0008)) goto labelFunc07FD_001F;
	gflags[0007] = true;
	var0000 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FD], 0x0001);
	labelFunc07FD_001F:
		if(!(event == 0x000A)) goto labelFunc07FD_003E;
		gflags[0008] = true;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FD], 0x0001);
	labelFunc07FD_003E:
		if(!(event == 0x000B)) goto labelFunc07FD_005D;
		gflags[000A] = true;
		var0000 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FD], 0x0001);
	labelFunc07FD_005D:
		if(!(event == 0x0002)) goto labelFunc07FD_0203;
		if(!(gflags[0007] && (!gflags[0009]))) goto labelFunc07FD_0105;
		gflags[0007] = false;
		UI_set_camera_AE(item);
		var0001 = UI_find_nearby_41(item, 0x036F, 0x001E, 0x0000);
		enum();
	labelFunc07FD_008B:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07FD_00C9);
		var0005 = UI_get_object_position_20(var0004);
		if(!((var0005[0x0001] == 0x03F4) && ((var0005[0x0002] == 0x0A7F) && (var0005[0x0003] == 0x0006)))) goto labelFunc07FD_00C6;
		goto labelFunc07FD_00D0;
	labelFunc07FD_00C6:
		goto labelFunc07FD_008B;
	labelFunc07FD_00C9:
		Func092F(item, 0x0002);
	labelFunc07FD_00D0:
		var0006 = [Shamino, Iolo, Dupre];
		var0007 = [0x0000, 0x0000, 0x0000];
		Func0937(item, var0004, var0006, var0007, 0x0000, 0x07FD, item, 0x000A);
	labelFunc07FD_0105:
		if(!gflags[0008]) goto labelFunc07FD_015F;
		gflags[0008] = false;
		var0008 = Func0930(item, 0x0178, 0x0023);
		if(!(!var0008)) goto labelFunc07FD_012A;
		Func092F(item, 0x0003);
	labelFunc07FD_012A:
		var0006 = [0x0003, 0x0003, 0x0003];
		var0007 = [Dupre, Shamino, 0x0000];
		Func0937(item, var0008, var0006, var0007, 0x0000, 0x07F9, item, 0x000B);
	labelFunc07FD_015F:
		if(!gflags[0009]) goto labelFunc07FD_016E;
		gflags[000A] = true;
		Func092E(item);
		exit2();
	labelFunc07FD_016E:
		if(!gflags[000A]) goto labelFunc07FD_0203;
		gflags[000A] = false;
		var0008 = Func0930(item, 0x0178, 0x001E);
		if(!(!var0008)) goto labelFunc07FD_0193;
		Func092F(item, 0x0013);
	labelFunc07FD_0193:
		var0009 = UI_find_nearby_41(0xFE9C, 0x00E4, 0x0023, 0x0000);
		enum();
	labelFunc07FD_01A7:
		for (var000C in var0009 with var000A to var000B atend labelFunc07FD_01C6);
		if(!(UI_get_npc_id_BC(var000C) == 0x0009)) goto labelFunc07FD_01C3;
		goto labelFunc07FD_01CD;
	labelFunc07FD_01C3:
		goto labelFunc07FD_01A7;
	labelFunc07FD_01C6:
		Func092F(item, 0x0016);
	labelFunc07FD_01CD:
		var0005 = UI_get_object_position_20(var0008);
		UI_si_path_run_usecode_C1(var000C, [(var0005[0x0001] + 0x0002), (var0005[0x0002] - 0x0004), var0005[0x0003]], 0x000A, item, 0x07F9, true);
	labelFunc07FD_0203:
		if(!(event == 0x000E)) goto labelFunc07FD_0212;
		Func092F(item, 0x0015);
	labelFunc07FD_0212:
		return;
}
// externs
extern var Func0930 0x930 (var var0000, var var0001, var var0002);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0907 0x907 (var var0000, var var0001);
extern Func0903 0x903 ();
extern var Func0932 0x932 (var var0000);
extern Func09AA 0x9AA ();

Func07FF 0x7FF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;

	var0000 = Func0930(item, 0x010E, 0x002D);
	if(!var0000) goto labelFunc07FF_0062;
	if(!Func0908(var0000, 0x0178, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc07FF_005F;
	Func0909(var0000, 0x01B0, 0x0001, 0x0001, 0x01B1, 0x0000, 0x0000, 0x0003, 0x0005);
	UI_play_sound_effect2_A1(0x001F, var0000);
	Func0907(var0000, 0x0002);
	goto labelFunc07FF_0062;
	labelFunc07FF_005F:
		Func0903();
	labelFunc07FF_0062:
		var0001 = UI_find_nearby_41(item, 0x0320, 0x003C, 0x0000);
		enum();
	labelFunc07FF_0074:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc07FF_009A);
		if(!(UI_get_item_quality_1C(var0004) == 0x00EB)) goto labelFunc07FF_0097;
		UI_set_item_shape_14(var0004, 0x020A);
	labelFunc07FF_0097:
		goto labelFunc07FF_0074;
	labelFunc07FF_009A:
		var0005 = UI_find_nearby_41(0xFE9C, Dupre, 0x002D, 0x0004);
		enum();
	labelFunc07FF_00AE:
		for (var0000 in var0005 with var0006 to var0007 atend labelFunc07FF_00DB);
		if(!(UI_get_npc_id_BC(var0000) == 0x000D)) goto labelFunc07FF_00D8;
		UI_add_to_party_26(var0000);
		UI_set_npc_id_BD(var0000, 0x0000);
	labelFunc07FF_00D8:
		goto labelFunc07FF_00AE;
	labelFunc07FF_00DB:
		var0005 = [0xFFC1, 0xFFB1, 0xFFB6, 0xFFB9, 0xFF6A];
		enum();
	labelFunc07FF_00F1:
		for (var0000 in var0005 with var0008 to var0009 atend labelFunc07FF_0123);
		if(!Func0932(var0000)) goto labelFunc07FF_0120;
		UI_clear_item_flag_A5(var0000, 0x0004);
		UI_set_npc_id_BD(var0000, 0x0000);
		UI_run_schedule_B7(var0000);
	labelFunc07FF_0120:
		goto labelFunc07FF_00F1;
	labelFunc07FF_0123:
		if(!(item != UI_get_npc_object_23(0xFE9C))) goto labelFunc07FF_0137;
		UI_set_npc_id_BD(item, 0x0000);
	labelFunc07FF_0137:
		UI_set_alignment_4A(item, 0x0001);
		if(!(!(item == UI_get_npc_object_23(0xFE9C)))) goto labelFunc07FF_015F;
		UI_set_camera_AE(UI_get_npc_object_23(0xFE9C));
		UI_set_schedule_type_25(item, 0x001F);
	labelFunc07FF_015F:
		var0005 = UI_find_nearby_41(item, 0x00E4, 0x0023, 0x0000);
		enum();
	labelFunc07FF_0171:
		for (var0000 in var0005 with var000A to var000B atend labelFunc07FF_0190);
		if(!(UI_get_npc_id_BC(var0000) == 0x0009)) goto labelFunc07FF_018D;
		goto labelFunc07FF_0193;
	labelFunc07FF_018D:
		goto labelFunc07FF_0171;
	labelFunc07FF_0190:
		goto labelFunc07FF_01B7;
	labelFunc07FF_0193:
		UI_clear_item_say_4E(var0000);
		UI_si_path_run_usecode_C1(var0000, [0x03FB, 0x0A77, 0x0006], 0x000D, var0000, 0x00E4, true);
	labelFunc07FF_01B7:
		var0005 = UI_find_nearby_41(item, 0x020A, 0x002D, 0x0000);
		enum();
	labelFunc07FF_01C9:
		for (var0000 in var0005 with var000C to var000D atend labelFunc07FF_01EE);
		if(!(UI_get_item_quality_1C(var0000) == 0x00EB)) goto labelFunc07FF_01EB;
		var000E = var0000;
		goto labelFunc07FF_01F1;
	labelFunc07FF_01EB:
		goto labelFunc07FF_01C9;
	labelFunc07FF_01EE:
		goto labelFunc07FF_0280;
	labelFunc07FF_01F1:
		var0005 = UI_get_cont_items_33(var000E, 0xFE99, 0xFE99, 0xFE99);
		if(!var0005) goto labelFunc07FF_024C;
		var0005 = UI_get_cont_items_33(item, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc07FF_021C:
		for (var0000 in var0005 with var000F to var0010 atend labelFunc07FF_024C);
		if(!(!((UI_get_item_shape_18(var0000) == 0x01E6) || (UI_get_item_shape_18(var0000) == 0x025F)))) goto labelFunc07FF_0249;
		UI_remove_item_84(var0000);
	labelFunc07FF_0249:
		goto labelFunc07FF_021C;
	labelFunc07FF_024C:
		var0005 = UI_get_cont_items_33(var000E, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc07FF_0260:
		for (var0000 in var0005 with var0011 to var0012 atend labelFunc07FF_0280);
		if(!UI_set_last_created_2E(var0000)) goto labelFunc07FF_027D;
		var0001 = UI_give_last_created_43(item);
	labelFunc07FF_027D:
		goto labelFunc07FF_0260;
	labelFunc07FF_0280:
		Func09AA();
		UI_show_npc_face0_05(0xFEED, 0x0000);
		var0013 = UI_get_object_position_20(item);
		var0014 = var0013[0x0001];
		var0015 = var0013[0x0003];
		var0013 = var0013[0x0002];
		var0016 = (0x0000 - UI_get_npc_number_47(item));
		var0017 = UI_game_hour_45();
		UcMessage("\"Failed out of tournament code at hour ");
		UcMessage(var0017);
		UcMessage(" gametime. Npc #");
		UcMessage(var0016);
		UcMessage(" was training, and he was at coord (");
		UcMessage(var0014);
		UcMessage(",");
		UcMessage(var0013);
		UcMessage(",");
		UcMessage(var0015);
		UcMessage(").\"");
		UcSay;
		if(!gflags[0007]) goto labelFunc07FF_02EF;
		UcMessage("\"$Temp1Flag was set to true.\"");
		UcSay;
	labelFunc07FF_02EF:
		if(!gflags[0008]) goto labelFunc07FF_02F9;
		UcMessage("\"$Temp2Flag was set to true.\"");
		UcSay;
	labelFunc07FF_02F9:
		if(!gflags[0009]) goto labelFunc07FF_0303;
		UcMessage("\"$Temp3Flag was set to true.\"");
		UcSay;
	labelFunc07FF_0303:
		if(!gflags[000A]) goto labelFunc07FF_030D;
		UcMessage("\"$Temp4Flag was set to true.\"");
		UcSay;
	labelFunc07FF_030D:
		if(!gflags[0085]) goto labelFunc07FF_0317;
		UcMessage("\"We had just finished the tournament and were on our way to the list field door.\"");
		UcSay;
	labelFunc07FF_0317:
		if(!gflags[0084]) goto labelFunc07FF_0321;
		UcMessage("\"The training flag was set.\"");
		UcSay;
	labelFunc07FF_0321:
		if(!gflags[0083]) goto labelFunc07FF_032B;
		UcMessage("\"And, of course, the tournament flag was set.\"");
		UcSay;
	labelFunc07FF_032B:
		if(!Func0932(item)) goto labelFunc07FF_0336;
		UcMessage("\"Moreover, the student was in the list fields.\"");
		UcSay;
	labelFunc07FF_0336:
		if(!Func0932(item)) goto labelFunc07FF_0355;
		UI_move_object_4B(item, [0x03F8, 0x0A7D, 0x0006]);
		UcMessage("\"All right, thy time is over!\"");
		UcSay;
		goto labelFunc07FF_0359;
	labelFunc07FF_0355:
		UcMessage("\"Ummm.... I cannot seem to find my keys. Thou mightest return later.\"");
		UcSay;
	labelFunc07FF_0359:
		UI_remove_npc_face0_07();
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
		gflags[0085] = false;
		gflags[0084] = false;
		gflags[0083] = false;
		return;
}
Func0800 0x800 ()
{
	var var0000;

	var0000 = 0x0001;
	return;
}
Func0801 0x801 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = false;
	var0001 = [0xFFC3, 0xFFCB, 0xFFCF, 0xFFCD, 0xFFCE];
	enum();
	labelFunc0801_001A:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0801_0036);
		if(!UI_npc_nearby_3A(var0004)) goto labelFunc0801_0033;
		var0000 = true;
	labelFunc0801_0033:
		goto labelFunc0801_001A;
	labelFunc0801_0036:
		if(!(var0000 && (!(gflags[016F] && gflags[0172])))) goto labelFunc0801_006F;
		var0005 = ("@Lower thy voice, lest our enemies hear...@" & ("@We must whisper, or they shall hear us.@" & ("@Come closer, so none can hear what we say.@" & "@Our enemies are near -- keep thy voice down.@")));
		var0005 = var0005[UI_get_random_00(UI_get_array_size_73(var0005))];
		UcMessage(var0005);
		UcMessage("");
		UcSay;
	labelFunc0801_006F:
		return;
}
Func0802 0x802 ()
{
	gflags[01B3] = true;
	UI_revert_schedule_B4(0xFFD2);
	UI_run_schedule_B7(0xFFD2);
	return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0942 0x942 (var var0000);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0804 0x804 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0803 0x803 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = Func0954();
	var0001 = Func0942(0xFFD2);
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "bag", "bucket", "fishing pole", "candle", "torch", "bedroll", "fur boots", "backpack", "stockings", "great helm", "crossbow", "bolts", "sextant", "mirror"];
	var0004 = [0x0000, 0x0322, 0x032A, 0x0296, 0x0150, 0x0253, 0x0247, 0x024B, 0x0321, 0x02A5, 0x021D, 0x0256, 0x02D3, 0x028A, 0x02A3];
	var0005 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0007, 0x0000, 0x0010];
	var0006 = 0x03B4;
	var0007 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0014, 0x0001, 0x0001];
	var0008 = [0x0000, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000];
	var0009 = [0x0000, 0x001E, 0x0023, 0x0019, 0x0004, 0x0008, 0x0096, 0x0064, 0x00C8, 0x0019, 0x012C, 0x0226, 0x004B, 0x0064, 0x0078];
	var000A = [0x0000, 0x0011, 0x0013, 0x000D, 0x0002, 0x0004, 0x005A, 0x003C, 0x0073, 0x000F, 0x00BE, 0x015E, 0x002D, 0x0032, 0x0046];
	if(!UI_is_pc_female_6F()) goto labelFunc0803_0192;
	var000B = "Milady";
	goto labelFunc0803_0198;
	labelFunc0803_0192:
		var000B = "Milord";
	labelFunc0803_0198:
		if(!var0002) goto labelFunc0803_0584;
		var000C = Func0957(var0003);
		if(!(var000C == 0x0001)) goto labelFunc0803_01BC;
		UcMessage("\"Some other time, then.\"");
		UcSay;
		var0002 = false;
		goto labelFunc0803_0581;
	labelFunc0803_01BC:
		var000D = var0009[var000C];
		var000E = 0x0000;
		var000F = UI_die_roll_17(0x0001, 0x0004);
		if(!(var000F == 0x0001)) goto labelFunc0803_01E8;
		var0010 = "Dost thou accept?";
	labelFunc0803_01E8:
		if(!(var000F == 0x0002)) goto labelFunc0803_01F8;
		var0010 = "Wilt thou accept the price?";
	labelFunc0803_01F8:
		if(!(var000F == 0x0003)) goto labelFunc0803_0208;
		var0010 = "Wilt thou agree to this price?";
	labelFunc0803_0208:
		if(!(var000F == 0x0004)) goto labelFunc0803_021C;
		var0010 = (var000B + ", dost thou agree?");
	labelFunc0803_021C:
		if(!(var000C == 0x0002)) goto labelFunc0803_023C;
		UcMessage("\"That will be ");
		UcMessage(var000D);
		UcMessage(" filari. ");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "bags";
	labelFunc0803_023C:
		if(!(var000C == 0x0003)) goto labelFunc0803_025A;
		UcMessage("\"Father stocks finely crafted buckets. He sells them for ");
		UcMessage(var000D);
		UcMessage(" filari each.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0803_025A:
		if(!(var000C == 0x0004)) goto labelFunc0803_0278;
		UcMessage("\"I will sell one to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0803_0278:
		if(!(var000C == 0x0005)) goto labelFunc0803_0298;
		UcMessage("\"That will be ");
		UcMessage(var000D);
		UcMessage(" filari. ");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "candles";
	labelFunc0803_0298:
		if(!(var000C == 0x0006)) goto labelFunc0803_02BC;
		UcMessage("\"I can sell one to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "torches";
	labelFunc0803_02BC:
		if(!(var000C == 0x0007)) goto labelFunc0803_02DA;
		UcMessage("\"I can sell this to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0803_02DA:
		if(!(var000C == 0x0008)) goto labelFunc0803_02FE;
		UcMessage("\"I can sell a pair of fine fur-lined boots to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of fur-lined boots";
	labelFunc0803_02FE:
		if(!(var000C == 0x0009)) goto labelFunc0803_0328;
		UcMessage("\"These backpacks are made by the women of Fawn, ");
		UcMessage(var0000);
		UcMessage(". For ");
		UcMessage(var000D);
		UcMessage("	filari, one can be thine.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "backpacks";
	labelFunc0803_0328:
		if(!(var000C == 0x000A)) goto labelFunc0803_0352;
		UcMessage("\"I make these stockings, ");
		UcMessage(var0000);
		UcMessage(". Thou canst not find any finer! For ");
		UcMessage(var000D);
		UcMessage(" filari I can sell thee a pair.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "stockings";
	labelFunc0803_0352:
		if(!(var000C == 0x000B)) goto labelFunc0803_0376;
		UcMessage("\"For ");
		UcMessage(var000D);
		UcMessage(" filari I can sell thee a great helm.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "great helms";
	labelFunc0803_0376:
		if(!(var000C == 0x000C)) goto labelFunc0803_03A0;
		UcMessage("\"The crossbows father stocks are well-kept, ");
		UcMessage(var0000);
		UcMessage(", and will do thee good against the vile goblins. ");
		UcMessage(var000D);
		UcMessage(" filari is what father charges for one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crossbows";
	labelFunc0803_03A0:
		if(!(var000C == 0x000D)) goto labelFunc0803_03C4;
		UcMessage("\"Crossbow bolts sell for ");
		UcMessage(var000D);
		UcMessage(" filari for a bundle of twenty.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crossbow bolts, in bundles of twenty,";
	labelFunc0803_03C4:
		if(!(var000C == 0x000E)) goto labelFunc0803_03EE;
		UcMessage("\"I am not certain if thou wishest to own a sextant, ");
		UcMessage(var0000);
		UcMessage(", seeing that there now is no sea travel. Father sells them for the low cost of ");
		UcMessage(var000D);
		UcMessage(" filari each.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "sextants";
	labelFunc0803_03EE:
		if(!(var000C == 0x000F)) goto labelFunc0803_0426;
		if(!UI_is_pc_female_6F()) goto labelFunc0803_040C;
		UcMessage("\"I suppose I can sell thee one, though I have no idea why thou wouldst want one. We sell hand mirrors at ");
		UcMessage(var000D);
		UcMessage(" filari each.\"");
		UcSay;
		goto labelFunc0803_0416;
	labelFunc0803_040C:
		UcMessage("\"What dost thou need a hand mirror for? Surely, thou dost not believe in the virtue of @Beauty@? Well, 'tis not my place to say either way. We sell them for ");
		UcMessage(var000D);
		UcMessage(" filari each.\"");
		UcSay;
	labelFunc0803_0416:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "hand mirror";
	labelFunc0803_0426:
		if(!(var000D == var000A[var000C])) goto labelFunc0803_044B;
		if(!Func0955()) goto labelFunc0803_0442;
		var0012 = var000D;
		goto labelFunc0803_0448;
	labelFunc0803_0442:
		var0012 = 0x0000;
	labelFunc0803_0448:
		goto labelFunc0803_045D;
	labelFunc0803_044B:
		var0012 = Func0804(var0009[var000C], var000A[var000C]);
	labelFunc0803_045D:
		if(!(var0012 > 0x0000)) goto labelFunc0803_04C8;
		if(!(var0008[var000C] == 0x0001)) goto labelFunc0803_04A6;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0004[var000C], var0005[var000C], var0007[var000C], var0006, var0012, 0x0005, 0x0001, false);
		goto labelFunc0803_04C8;
	labelFunc0803_04A6:
		var000E = Func0943(var0004[var000C], var0005[var000C], 0x0001, var0006, var0012, 0x0000, 0x0001, false);
	labelFunc0803_04C8:
		if(!(var000E == 0x0001)) goto labelFunc0803_04DF;
		UcMessage("\"I am sure that thou wilt enjoy thy purchase, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0803_0571;
	labelFunc0803_04DF:
		if(!(var000E == 0x0002)) goto labelFunc0803_04F6;
		UcMessage("\"Thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0803_0571;
	labelFunc0803_04F6:
		if(!(var000E == 0x0003)) goto labelFunc0803_0571;
		var0013 = Func0992(0x0001, (("@But " + var0000) + ", we haven't the coins to purchase this.@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0803_0539;
		UI_show_npc_face0_05(0xFFD2, 0x0000);
		UcMessage("\"It doth appear that thy purse is empty, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0803_053D;
	labelFunc0803_0539:
		UcMessage("\"If thou canst not pay for our goods, please say so...\"");
		UcSay;
	labelFunc0803_053D:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFD2) + 0x0006))) goto labelFunc0803_055C;
		UI_set_npc_id_BD(0xFFD2, 0x001F);
		goto labelFunc0803_056E;
	labelFunc0803_055C:
		UI_set_npc_id_BD(0xFFD2, (UI_get_npc_id_BC(0xFFD2) + 0x0006));
	labelFunc0803_056E:
		goto labelFunc0803_0571;
	labelFunc0803_0571:
		UcMessage("\"Perhaps another purchase, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0803_0581:
		goto labelFunc0803_0198;
	labelFunc0803_0584:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0804 0x804 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!UI_is_pc_female_6F()) goto labelFunc0804_001D;
	var0004 = "Milady";
	goto labelFunc0804_0023;
	labelFunc0804_001D:
		var0004 = "Milord";
	labelFunc0804_0023:
		var0005 = var0001;
		var0006 = ((var0000 / 0x0003) * 0x0002);
		var0007 = (0x000F - (UI_get_npc_id_BC(0xFFD2) / 0x0002));
		var0008 = 0x0000;
		var0009 = 0x0001;
		var000A = 0x0000;
		var000B = 0x0001;
		var000C = UI_get_npc_id_BC(0xFFD2);
	labelFunc0804_006B:
		if(!var0009) goto labelFunc0804_0486;
		var000D = Func0956(["yes", "no", "haggle"]);
		if(!(var000D == "no")) goto labelFunc0804_0094;
		rr = 0x0000;
		goto labelFunc0804_00A7;
	labelFunc0804_0094:
		if(!(var000D == "yes")) goto labelFunc0804_00A7;
		var000E = 0x0000;
		goto labelFunc0804_00F6;
	labelFunc0804_00A7:
		var000F = Func0999(var0005, var0000, var000B, var0006, var000A, var0007, var0008);
		var000A = (var000A + 0x0001);
		var0008 = var000F[0x0004];
		var000E = var000F[0x0003];
		var0010 = var0005;
		var0005 = var000F[0x0002];
		var0006 = var000F[0x0001];
	labelFunc0804_00F6:
		var0011 = UI_get_random_00(0x0003);
		if(!(var000E < 0x0002)) goto labelFunc0804_02BF;
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0804_015F;
		if(!(var0011 == 0x0001)) goto labelFunc0804_0134;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0804_0134:
		if(!(var0011 == 0x0002)) goto labelFunc0804_0148;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", Father would blush if he learned I had sold our goods to thee at such a price...\"");
		UcSay;
	labelFunc0804_0148:
		if(!(var0011 == 0x0003)) goto labelFunc0804_015C;
		UcMessage("\"Thou hast a quick tongue, ");
		UcMessage(var0002);
		UcMessage(", to bring me to this price.\"");
		UcSay;
	labelFunc0804_015C:
		goto labelFunc0804_022D;
	labelFunc0804_015F:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0804_01A8;
		if(!(var0011 == 0x0001)) goto labelFunc0804_0183;
		UcMessage("\"Our prices are fair here.\"");
		UcSay;
	labelFunc0804_0183:
		if(!(var0011 == 0x0002)) goto labelFunc0804_0197;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", Father would not believe I had sold goods at this price!\"");
		UcSay;
	labelFunc0804_0197:
		if(!(var0011 == 0x0003)) goto labelFunc0804_01A5;
		UcMessage("\"Father must make some profit!\"");
		UcSay;
	labelFunc0804_01A5:
		goto labelFunc0804_022D;
	labelFunc0804_01A8:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0804_01F7;
		if(!(var0011 == 0x0001)) goto labelFunc0804_01D2;
		UcMessage("\"Thou couldst not obtain a better deal from Father, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0804_01D2:
		if(!(var0011 == 0x0002)) goto labelFunc0804_01E6;
		UcMessage("\"Father enjoys bargaining much more than I, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0804_01E6:
		if(!(var0011 == 0x0003)) goto labelFunc0804_01F4;
		UcMessage("\"I am sure Father would be pleased with this price.\"");
		UcSay;
	labelFunc0804_01F4:
		goto labelFunc0804_022D;
	labelFunc0804_01F7:
		if(!(var0011 == 0x0001)) goto labelFunc0804_020B;
		UcMessage("\"This is a good price ");
		UcMessage(var0002);
		UcMessage(". I am sure Father will be pleased.\"");
		UcSay;
	labelFunc0804_020B:
		if(!(var0011 == 0x0002)) goto labelFunc0804_021F;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I am sure Father will be happy with this price.\"");
		UcSay;
	labelFunc0804_021F:
		if(!(var0011 == 0x0003)) goto labelFunc0804_022D;
		UcMessage("\"Father must charge reasonably high prices or we will be made paupers!\"");
		UcSay;
	labelFunc0804_022D:
		UcMessage("\"Thou dost agree to a price of ");
		UcMessage(var0005);
		UcMessage(" filari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0804_0262;
		if(!(var000C > 0x0001)) goto labelFunc0804_025B;
		UI_set_npc_id_BD(0xFFD2, (var000C - 0x0002));
	labelFunc0804_025B:
		rr = var0005;
		goto labelFunc0804_02BF;
	labelFunc0804_0262:
		if(!(var0011 == 0x0001)) goto labelFunc0804_0276;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast broken our agreement!\"");
		UcSay;
	labelFunc0804_0276:
		if(!(var0011 == 0x0002)) goto labelFunc0804_0284;
		UcMessage("\"I am disappointed. What of our bargain?\"");
		UcSay;
	labelFunc0804_0284:
		if(!(var0011 == 0x0003)) goto labelFunc0804_0292;
		UcMessage("\"Father will be most upset to learn of this...\"");
		UcSay;
	labelFunc0804_0292:
		if(!(0x001F < (var000C + 0x000A))) goto labelFunc0804_02AD;
		UI_set_npc_id_BD(0xFFD2, 0x001F);
		goto labelFunc0804_02BB;
	labelFunc0804_02AD:
		UI_set_npc_id_BD(0xFFD2, (var000C + 0x000A));
	labelFunc0804_02BB:
		rr = 0x0000;
	labelFunc0804_02BF:
		if(!(var0008 == 0x0001)) goto labelFunc0804_032D;
		if(!(var000E == 0x0005)) goto labelFunc0804_0308;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" is my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000C < 0x001C)) goto labelFunc0804_02F5;
		UI_set_npc_id_BD(0xFFD2, (var000C + 0x0004));
	labelFunc0804_02F5:
		if(!Func0955()) goto labelFunc0804_02FF;
		rr = var0005;
	labelFunc0804_02FF:
		var0009 = 0x0000;
		goto labelFunc0804_032A;
	labelFunc0804_0308:
		UcMessage("\"So be it. ");
		UcMessage(var0005);
		UcMessage(" filari is my final offer.\"");
		UcSay;
		if(!(var000C < 0x001E)) goto labelFunc0804_032A;
		UI_set_npc_id_BD(0xFFD2, (var000C + 0x0002));
	labelFunc0804_032A:
		goto labelFunc0804_0483;
	labelFunc0804_032D:
		if(!(var000E == 0x0002)) goto labelFunc0804_037F;
		if(!(var0011 == 0x0001)) goto labelFunc0804_0351;
		UcMessage("\"Father would be pleased to bargain with thee, ");
		UcMessage(var0002);
		UcMessage(". How doth ");
		UcMessage(var0005);
		UcMessage(" filari sound?\"");
		UcSay;
	labelFunc0804_0351:
		if(!(var0011 == 0x0002)) goto labelFunc0804_036B;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", have we agreed on ");
		UcMessage(var0005);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0804_036B:
		if(!(var0011 == 0x0003)) goto labelFunc0804_037F;
		UcMessage("\"My price is ");
		UcMessage(var0005);
		UcMessage(" filari. Dost thou accept?\"");
		UcSay;
	labelFunc0804_037F:
		if(!(var000E == 0x0003)) goto labelFunc0804_03C5;
		if(!(var0011 == 0x0001)) goto labelFunc0804_039D;
		UcMessage("\"Father would say that these are trying times, and goods are scarce... Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0804_039D:
		if(!(var0011 == 0x0002)) goto labelFunc0804_03B1;
		UcMessage("\"I am not sure... Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0804_03B1:
		if(!(var0011 == 0x0003)) goto labelFunc0804_03C5;
		UcMessage("\"Father would not accept such a price! Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0804_03C5:
		if(!(var000E == 0x0004)) goto labelFunc0804_0415;
		if(!(var0011 == 0x0001)) goto labelFunc0804_03E7;
		UcMessage("\"I cannot possibly accept less than ");
		UcMessage(var0005);
		UcMessage(" filari!\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0804_03E7:
		if(!(var0011 == 0x0002)) goto labelFunc0804_03FB;
		UcMessage("\"Father's costs are soaring! I	can go no lower than ");
		UcMessage(var0005);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0804_03FB:
		if(!(var0011 == 0x0003)) goto labelFunc0804_0415;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art sweet, but Father deserves no less than ");
		UcMessage(var0005);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0804_0415:
		if(!(var000E == 0x0005)) goto labelFunc0804_0483;
		var0005 = var0010;
		if(!(var0011 == 0x0001)) goto labelFunc0804_0439;
		UcMessage("\"Father would be stricken if he learned I had accepted such a pitiful offer! My previous price stands, at ");
		UcMessage(var0005);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0804_0439:
		if(!(var0011 == 0x0002)) goto labelFunc0804_0453;
		UcMessage("\"I may be new to trading, ");
		UcMessage(var0002);
		UcMessage(", but this offer is shameful! ");
		UcMessage(var0005);
		UcMessage(" filari, and no less!\"");
		UcSay;
	labelFunc0804_0453:
		if(!(var0011 == 0x0003)) goto labelFunc0804_046B;
		UcMessage("\"I am certain Father would not approve of such a deal.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" filari is where I stand.\"");
		UcSay;
	labelFunc0804_046B:
		if(!(var000C < 0x001F)) goto labelFunc0804_0483;
		UI_set_npc_id_BD(0xFFD2, (var000C + 0x0001));
	labelFunc0804_0483:
		goto labelFunc0804_006B;
	labelFunc0804_0486:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0807 0x807 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0805 0x805 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "ham", "mutton", "trout", "cheese", "pastry"];
	var0003 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x000B, 0x0008, 0x000C, 0x001B, 0x0006];
	var0005 = [0x0000, 0x0014, 0x0016, 0x000A, 0x000C, 0x0008];
	var0006 = [0x0000, 0x000C, 0x000E, 0x0006, 0x0007, 0x0004];
	var0007 = 0x0284;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What wouldst thou like, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc0805_00C6:
		if(!var0001) goto labelFunc0805_02B3;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc0805_00EA;
		UcMessage("\"Perhaps another time, then.\"");
		UcSay;
		var0001 = false;
		goto labelFunc0805_02B0;
	labelFunc0805_00EA:
		var000B = var0005[var000A];
		var000C = 0x0000;
		if(!(var000A == 0x0002)) goto labelFunc0805_0113;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" gold coins is the price. Dost thou accept?\"");
		UcSay;
		var000D = "haunches of ham";
	labelFunc0805_0113:
		if(!(var000A == 0x0003)) goto labelFunc0805_012D;
		UcMessage("\"That will be ");
		UcMessage(var000B);
		UcMessage(" gold coins. Dost thou find this acceptable?\"");
		UcSay;
		var000D = "joints of mutton";
	labelFunc0805_012D:
		if(!(var000A == 0x0004)) goto labelFunc0805_0147;
		UcMessage("\"We serve the best fish around! ");
		UcMessage(var000B);
		UcMessage(" gold coins is the price. Dost thou agree?\"");
		UcSay;
		var000D = "trout";
	labelFunc0805_0147:
		if(!(var000A == 0x0005)) goto labelFunc0805_0161;
		UcMessage("\"That will be ");
		UcMessage(var000B);
		UcMessage(" gold coins. Dost thou accept?\"");
		UcSay;
		var000D = "wedges of cheese";
	labelFunc0805_0161:
		if(!(var000A == 0x0006)) goto labelFunc0805_017B;
		UcMessage("\"Ah, Devra makes a fine pastry that will melt in thy mouth! For ");
		UcMessage(var000B);
		UcMessage(" gold coins I will sell thee one. Dost thou agree?\"");
		UcSay;
		var000D = "pastries";
	labelFunc0805_017B:
		if(!(var000B == var0006[var000A])) goto labelFunc0805_01A2;
		if(!(Func0955() == true)) goto labelFunc0805_0199;
		var000E = var000B;
		goto labelFunc0805_019F;
	labelFunc0805_0199:
		var000E = 0x0000;
	labelFunc0805_019F:
		goto labelFunc0805_01B4;
	labelFunc0805_01A2:
		var000E = Func0807(var0005[var000A], var0006[var000A]);
	labelFunc0805_01B4:
		if(!(var000E > 0x0000)) goto labelFunc0805_0222;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc0805_01FD;
		UcMessage("\"How many ");
		UcMessage(var000D);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000C = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var000E, 0x0014, 0x0001, false);
		goto labelFunc0805_0222;
	labelFunc0805_01FD:
		var000C = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var000E, 0x0000, 0x0001, false);
	labelFunc0805_0222:
		if(!(var000C == 0x0001)) goto labelFunc0805_0239;
		UcMessage("\"Enjoy thy meal, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0805_02A6;
	labelFunc0805_0239:
		if(!(var000C == 0x0002)) goto labelFunc0805_0250;
		UcMessage("\"Thou canst not carry so much, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0805_02A6;
	labelFunc0805_0250:
		if(!(var000C == 0x0003)) goto labelFunc0805_02A6;
		var000F = Func0992(0x0001, (("@But " + var0000) + ", we have not the coins to pay for this.@"), 0x0000, false);
		if(!(0x001F < (UI_get_npc_id_BC(0xFFDA) + 0x0006))) goto labelFunc0805_0291;
		UI_set_npc_id_BD(0xFFDA, 0x001F);
		goto labelFunc0805_02A3;
	labelFunc0805_0291:
		UI_set_npc_id_BD(0xFFDA, (UI_get_npc_id_BC(0xFFDA) + 0x0006));
	labelFunc0805_02A3:
		goto labelFunc0805_02A6;
	labelFunc0805_02A6:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0805_02B0:
		goto labelFunc0805_00C6;
	labelFunc0805_02B3:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0807 0x807 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);

Func0806 0x806 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "wine", "mead", "ale"];
	var0004 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0005 = [0xFE99, 0x0005, 0x0001, 0x0003];
	var0006 = [0x0000, 0x0008, 0x000F, 0x0005];
	var0007 = [0x0000, 0x0005, 0x0009, 0x0002];
	var0008 = 0x0284;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What wouldst thou like to quench thy thirst, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc0806_00A2:
		if(!var0002) goto labelFunc0806_0249;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc0806_00C6;
		UcMessage("\"Our cellars are full, if thou dost change thy mind!\"");
		UcSay;
		var0002 = false;
		goto labelFunc0806_0246;
	labelFunc0806_00C6:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc0806_00EF;
		UcMessage("\"Ah, that will be ");
		UcMessage(var000C);
		UcMessage(" gold coins. We have very little left.\" ~\"Dost thou accept?\"");
		UcSay;
		var000E = "bottles of wine";
	labelFunc0806_00EF:
		if(!(var000B == 0x0003)) goto labelFunc0806_0109;
		UcMessage("\"At ");
		UcMessage(var000C);
		UcMessage(", wilt thou try some?\"");
		UcSay;
		var000E = "bottles of mead";
	labelFunc0806_0109:
		if(!(var000B == 0x0004)) goto labelFunc0806_0123;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" is the price. Dost thou find that acceptable?\"");
		UcSay;
		var000E = "mugs of ale";
	labelFunc0806_0123:
		if(!(var000C == var0007[var000B])) goto labelFunc0806_0148;
		if(!Func0955()) goto labelFunc0806_013F;
		var000F = var000C;
		goto labelFunc0806_0145;
	labelFunc0806_013F:
		var000F = 0x0000;
	labelFunc0806_0145:
		goto labelFunc0806_015A;
	labelFunc0806_0148:
		var000F = Func0807(var0006[var000B], var0007[var000B]);
	labelFunc0806_015A:
		if(!(var000F > 0x0000)) goto labelFunc0806_01C8;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc0806_01A3;
		UcMessage("\"How many ");
		UcMessage(var000E);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0014, 0x0001, false);
		goto labelFunc0806_01C8;
	labelFunc0806_01A3:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0000, 0x0001, false);
	labelFunc0806_01C8:
		if(!(var000D == 0x0001)) goto labelFunc0806_01DF;
		UcMessage("\"Drink in health, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0806_023C;
	labelFunc0806_01DF:
		if(!(var000D == 0x0002)) goto labelFunc0806_01F6;
		UcMessage("\"Thou canst not carry so many bottles, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0806_023C;
	labelFunc0806_01F6:
		if(!(var000D == 0x0003)) goto labelFunc0806_023C;
		UcMessage("\"I am afraid thou dost not have the money to pay, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		if(!(0x001F < (UI_get_npc_id_BC(0xFFDA) + 0x0006))) goto labelFunc0806_0229;
		UI_set_npc_id_BD(0xFFDA, 0x001F);
		goto labelFunc0806_023B;
	labelFunc0806_0229:
		UI_set_npc_id_BD(0xFFDA, (UI_get_npc_id_BC(0xFFDA) + 0x0006));
	labelFunc0806_023B:
		abrt();
	labelFunc0806_023C:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0806_0246:
		goto labelFunc0806_00A2;
	labelFunc0806_0249:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0942 0x942 (var var0000);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

var Func0807 0x807 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = (0x000F - (UI_get_npc_id_BC(0xFFDA) / 0x0002));
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	var000B = UI_get_npc_id_BC(0xFFDA);
	labelFunc0807_0055:
		if(!var0008) goto labelFunc0807_04A9;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc0807_007E;
		rr = 0x0000;
		goto labelFunc0807_0091;
	labelFunc0807_007E:
		if(!(var000C == "yes")) goto labelFunc0807_0091;
		var000D = 0x0000;
		goto labelFunc0807_00E0;
	labelFunc0807_0091:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc0807_00E0:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc0807_02B9;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0807_0165;
		if(!(var0010 == 0x0001)) goto labelFunc0807_013A;
		UcMessage("\"Do not tell Devra... She will think her son hath gone soft in the head for giving thee a price like this.\"");
		UcSay;
		if(!Func0942(0xFFD7)) goto labelFunc0807_013A;
		UI_show_npc_face1_06(0xFFD7, 0x0000);
		UcMessage("\"Thou woolly-headed wolf! Thine head is fine. 'Tis thine heart that is soft...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0807_013A:
		if(!(var0010 == 0x0002)) goto labelFunc0807_014E;
		UcMessage("\"Thou dost drive a hard bargain, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0807_014E:
		if(!(var0010 == 0x0003)) goto labelFunc0807_0162;
		UcMessage("\"Thou hast a shrewd tongue, ");
		UcMessage(var0002);
		UcMessage("! It hath been some time since I was beaten at this game!\"");
		UcSay;
	labelFunc0807_0162:
		goto labelFunc0807_022D;
	labelFunc0807_0165:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0807_01B4;
		if(!(var0010 == 0x0001)) goto labelFunc0807_0189;
		UcMessage("\"Our prices are honest here at the Sleeping Bull!\"");
		UcSay;
	labelFunc0807_0189:
		if(!(var0010 == 0x0002)) goto labelFunc0807_019D;
		UcMessage("\"Thou hast found me in a generous mood, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not every day I sell goods at these prices!\"");
		UcSay;
	labelFunc0807_019D:
		if(!(var0010 == 0x0003)) goto labelFunc0807_01B1;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0807_01B1:
		goto labelFunc0807_022D;
	labelFunc0807_01B4:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0807_01F7;
		if(!(var0010 == 0x0001)) goto labelFunc0807_01D8;
		UcMessage("\"Fair enough, if I do say so myself.\"");
		UcSay;
	labelFunc0807_01D8:
		if(!(var0010 == 0x0002)) goto labelFunc0807_01E6;
		UcMessage("\"With customers such as thou, I shall never make a profit...\"");
		UcSay;
	labelFunc0807_01E6:
		if(!(var0010 == 0x0003)) goto labelFunc0807_01F4;
		UcMessage("\"With these troubled times, I must charge higher prices...\"");
		UcSay;
	labelFunc0807_01F4:
		goto labelFunc0807_022D;
	labelFunc0807_01F7:
		if(!(var0010 == 0x0001)) goto labelFunc0807_020B;
		UcMessage("\"'Tis a pleasure to bargain with thee, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0807_020B:
		if(!(var0010 == 0x0002)) goto labelFunc0807_021F;
		UcMessage("\"Thou art most generous with thy money, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0807_021F:
		if(!(var0010 == 0x0003)) goto labelFunc0807_022D;
		UcMessage("\"'Tis a shame I must charge high prices like this.\"");
		UcSay;
	labelFunc0807_022D:
		UcMessage("\"Dost thou agree on a price of ");
		UcMessage(var0004);
		UcMessage(",	");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0807_0262;
		if(!(var000B > 0x0001)) goto labelFunc0807_025B;
		UI_set_npc_id_BD(0xFFDA, (var000B - 0x0002));
	labelFunc0807_025B:
		rr = var0004;
		goto labelFunc0807_02B9;
	labelFunc0807_0262:
		if(!(var0010 == 0x0001)) goto labelFunc0807_0270;
		UcMessage("\"I thought we had an agreement!\"");
		UcSay;
	labelFunc0807_0270:
		if(!(var0010 == 0x0002)) goto labelFunc0807_027E;
		UcMessage("\"I have no time for this!\"");
		UcSay;
	labelFunc0807_027E:
		if(!(var0010 == 0x0003)) goto labelFunc0807_028C;
		UcMessage("\"Dost thou take me for a fool?\" ~\"I do not have all day to stand and argue!\"");
		UcSay;
	labelFunc0807_028C:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc0807_02A7;
		UI_set_npc_id_BD(0xFFDA, 0x001F);
		goto labelFunc0807_02B5;
	labelFunc0807_02A7:
		UI_set_npc_id_BD(0xFFDA, (var000B + 0x000A));
	labelFunc0807_02B5:
		rr = 0x0000;
	labelFunc0807_02B9:
		if(!(var0007 == 0x0001)) goto labelFunc0807_0327;
		if(!(var000D == 0x0005)) goto labelFunc0807_0302;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" is my final offer.\" ~\"Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc0807_02EF;
		UI_set_npc_id_BD(0xFFDA, (var000B + 0x0004));
	labelFunc0807_02EF:
		if(!Func0955()) goto labelFunc0807_02F9;
		rr = var0004;
	labelFunc0807_02F9:
		var0008 = 0x0000;
		goto labelFunc0807_0324;
	labelFunc0807_0302:
		UcMessage("\"Very well. ");
		UcMessage(var0004);
		UcMessage(" is my final offer.\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc0807_0324;
		UI_set_npc_id_BD(0xFFDA, (var000B + 0x0002));
	labelFunc0807_0324:
		goto labelFunc0807_04A6;
	labelFunc0807_0327:
		if(!(var000D == 0x0002)) goto labelFunc0807_0373;
		if(!(var0010 == 0x0001)) goto labelFunc0807_0345;
		UcMessage("\"'Tis a good offer. How doth ");
		UcMessage(var0004);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0807_0345:
		if(!(var0010 == 0x0002)) goto labelFunc0807_035F;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage(". Have we agreed on ");
		UcMessage(var0004);
		UcMessage(" gold coins?\"");
		UcSay;
	labelFunc0807_035F:
		if(!(var0010 == 0x0003)) goto labelFunc0807_0373;
		UcMessage("\"My price is ");
		UcMessage(var0004);
		UcMessage(". Dost thou accept?\"");
		UcSay;
	labelFunc0807_0373:
		if(!(var000D == 0x0003)) goto labelFunc0807_03B9;
		if(!(var0010 == 0x0001)) goto labelFunc0807_0391;
		UcMessage("\"These are perilous times and supplies are low. Wilt thou accept ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0807_0391:
		if(!(var0010 == 0x0002)) goto labelFunc0807_03A5;
		UcMessage("\"I do not know...\" ~\"Wouldst thou consider ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0807_03A5:
		if(!(var0010 == 0x0003)) goto labelFunc0807_03B9;
		UcMessage("\"I am not certain... What sayest thou to ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0807_03B9:
		if(!(var000D == 0x0004)) goto labelFunc0807_0405;
		if(!(var0010 == 0x0001)) goto labelFunc0807_03D7;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" is as low as I can go. What sayest thou?\"");
		UcSay;
	labelFunc0807_03D7:
		if(!(var0010 == 0x0002)) goto labelFunc0807_03EB;
		UcMessage("\"Surely thou canst see that I can accept no less than ");
		UcMessage(var0004);
		UcMessage(".\"");
		UcSay;
	labelFunc0807_03EB:
		if(!(var0010 == 0x0003)) goto labelFunc0807_0405;
		UcMessage("\"I deserve no less than ");
		UcMessage(var0004);
		UcMessage(" gold coins, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0807_0405:
		if(!(var000D == 0x0005)) goto labelFunc0807_04A6;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc0807_0460;
		UcMessage("\"Mother, come and hear this! The customer jests with me!\"");
		UcSay;
		if(!Func0942(0xFFD7)) goto labelFunc0807_0452;
		Func094E(0xFFD7, (((("@" + var0002) + " we cannot possibly accept less than ") + var0004) + " gold coins.@"));
		UI_show_npc_face0_05(0xFFDA, 0x0000);
		goto labelFunc0807_045C;
	labelFunc0807_0452:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage("  gold coins is as low as I can go.\"");
		UcSay;
	labelFunc0807_045C:
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0807_0460:
		if(!(var0010 == 0x0002)) goto labelFunc0807_047A;
		UcMessage("\"Thou art not bargaining with a fool, ");
		UcMessage(var0002);
		UcMessage("! ");
		UcMessage(var0004);
		UcMessage(", and no less!\"");
		UcSay;
	labelFunc0807_047A:
		if(!(var0010 == 0x0003)) goto labelFunc0807_048E;
		UcMessage("\"If I accepted such a price as this, I could not call myself an innkeeper! ");
		UcMessage(var0004);
		UcMessage(" is where I stand!\"");
		UcSay;
	labelFunc0807_048E:
		if(!(var000B < 0x001F)) goto labelFunc0807_04A6;
		UI_set_npc_id_BD(0xFFDA, (var000B + 0x0001));
	labelFunc0807_04A6:
		goto labelFunc0807_0055;
	labelFunc0807_04A9:
		return rr;
}
// externs
extern Func0809 0x809 ();
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);
extern Func07D2 0x7D2 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0808 0x808 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc0808_000F;
	Func0809();
	abrt();
	labelFunc0808_000F:
		var0002 = "";
		var0003 = Func0954();
		var0004 = UI_is_pc_female_6F();
		if(!((event == 0x0000) && (UI_get_schedule_type_24(item) == 0x0009))) goto labelFunc0808_006C;
		if(!(UI_get_random_00(0x000A) < 0x0006)) goto labelFunc0808_0043;
		abrt();
	labelFunc0808_0043:
		var0005 = ["@Leave this place!@", "@Intrude not!@", "@Call the Rangers!@", "@Anger not the Mages...@", "@Take nothing!@", "@Thief! Thief!@"];
		Func097F(item, var0005[UI_get_random_00(0x0006)], 0x0000);
	labelFunc0808_006C:
		if(!((event == 0x0001) && (UI_get_schedule_type_24(item) != 0x000A))) goto labelFunc0808_00EE;
		UI_item_say_4D(0xFE9C, "Hold!");
		item;
		calle();
		Func097F(item, "@Yes?@", 0x0002);
		var0006 = UI_get_npc_number_47(item);
		if(!((var0006 == 0xFF3A) || ((var0006 == 0xFF39) || (var0006 == 0xFF38)))) goto labelFunc0808_00E6;
		UI_set_schedule_type_25(item, 0x000A);
		item;
		calle();
		var0006 = (0x0400 - var0006);
		var0006 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0007, 0x55, var0006]);
		abrt();
	labelFunc0808_00E6:
		UI_set_schedule_type_25(item, 0x0003);
	labelFunc0808_00EE:
		if(!((event == 0x0009) || (event == 0x0002))) goto labelFunc0808_035E;
		UI_run_schedule_B7(item);
		UI_clear_item_say_4E(item);
		UI_show_npc_face0_05(0xFED6, 0x0000);
		if(!((var0001 == "Canton") || (var0001 == "Seminarium"))) goto labelFunc0808_0135;
		UcMessage("\"I am the servant and protector here at the ");
		UcMessage(var0001);
		UcMessage(". If thou wishest to conduct any business, thou must speak to my master. If thou dost not have any concern here, ");
		UcMessage(var0003);
		UcMessage(", I must ask thee to please depart.\"");
		UcSay;
		goto labelFunc0808_0145;
	labelFunc0808_0135:
		UcMessage("\"I am the servant and protector of ");
		UcMessage(var0001);
		UcMessage(". If thou dost not belong here, ");
		UcMessage(var0003);
		UcMessage(", I must ask thee to please depart. I cannot help thee with matters of importance. My duty is only to protect my master and my master's possessions.\"");
		UcSay;
	labelFunc0808_0145:
		UI_add_answer_0C(["servant", "bye"]);
	labelFunc0808_0152:
		UcAsk;
		cmps("servant");
		UI_remove_answer_0D("servant");
		if(!(var0000 == 0x0002)) goto labelFunc0808_0172;
		UcMessage("\"As I have said, I serve and protect my master's household.\"");
		UcSay;
	labelFunc0808_0172:
		if(!(var0000 == 0x0003)) goto labelFunc0808_018B;
		UcMessage("\"As I have said, I serve and protect my master's household. I must work...\"");
		UcSay;
		Func097F(item, "@Where be the pan?@", 0x0000);
		abrt();
	labelFunc0808_018B:
		if(!(var0000 == 0x0004)) goto labelFunc0808_01A4;
		UcMessage("\"As I have said, I serve and protect my master's household. I do not have time for talk.\"");
		UcSay;
		Func097F(item, "@Back to work!@", 0x0000);
		abrt();
	labelFunc0808_01A4:
		if(!(var0000 == 0x0005)) goto labelFunc0808_01E1;
		UcMessage("\"As I have said, I serve and protect my master's household. This have I done for a great many years.\"");
		UcSay;
		var0007 = Func0992(Iolo, "@Why, this being doth move so silently!@", 0x0000, false);
		if(!(var0007 != 0xFE9C)) goto labelFunc0808_01D7;
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Master Filbercio hath enchanted my feet to prevent them from clattering as I walk. He was greatly disturbed by the noise.\"");
		UcSay;
	labelFunc0808_01D7:
		UI_add_answer_0C(["many years"]);
	labelFunc0808_01E1:
		if(!(var0000 == 0x0006)) goto labelFunc0808_021C;
		var0008 = UI_part_of_day_48();
		if(!((var0008 == 0x0007) || ((var0008 == 0x0000) || (var0008 == 0x0001)))) goto labelFunc0808_0212;
		var0002 = ", especially at this time of night";
	labelFunc0808_0212:
		UcMessage("\"As I have said, I serve and protect my master's possessions from the many thieves who would take them");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0808_021C:
		if(!(var0000 == 0x0007)) goto labelFunc0808_023D;
		if(!(!gflags[00D9])) goto labelFunc0808_0233;
		var0002 = ", especially when Master Pothos is away";
	labelFunc0808_0233:
		UcMessage("\"As I have said, I serve and protect my master's household. The apothecary's shop is a prime target for thievery");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0808_023D:
		if(!(var0000 == 0x000B)) goto labelFunc0808_0256;
		UcMessage("\"As I have said, I serve and protect my master's household.\"");
		UcSay;
		Func097F(item, "@I must go...@", 0x0000);
		abrt();
	labelFunc0808_0256:
		if(!(var0000 == 0x0008)) goto labelFunc0808_0264;
		UcMessage("\"I serve by playing melodies for the patrons. I prefer to play the songs I memorized long ago, but the residents here do not seem to like them.\"");
		UcSay;
	labelFunc0808_0264:
		if(!(var0000 == 0x0009)) goto labelFunc0808_02DC;
		UcMessage("\"I perform music for those who would listen. Music is a difficult art.\"");
		UcSay;
		if(!UI_npc_nearby_3A(0xFFE2)) goto labelFunc0808_0298;
		UI_show_npc_face1_06(0xFFE2, 0x0000);
		UcMessage("\"And thou art indeed a master, musician automaton.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc0808_02DC;
	labelFunc0808_0298:
		if(!UI_npc_nearby_3A(0xFFE4)) goto labelFunc0808_02DC;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"There are some who say that when it comes to music, we automatons have a tin ear.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"That is patently untrue.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"I was making a humorous remark, musician.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I do not understand humor, milady.\"");
		UcSay;
	labelFunc0808_02DC:
		if(!(var0000 == 0x000A)) goto labelFunc0808_02F0;
		UcMessage("\"I am both a musician and a dancer, ");
		UcMessage(var0003);
		UcMessage(". Ofttimes I will accompany my fellows, other times I will rise and perform a jig for the patrons. Some who drink here even join in the dancing.\"");
		UcSay;
	labelFunc0808_02F0:
		cmps("many years");
		UI_remove_answer_0D("many years");
		UcMessage("\"There is much I have witnessed in these halls, but I am forbidden to speak of it.\"");
		UcSay;
	labelFunc0808_0303:
		cmps("bye");
		Func097F(0xFE9C, "@Goodbye.@", 0x0000);
		if(!((var0001 == "Canton") || ((var0001 == "Filbercio") || (var0001 == "Rocco")))) goto labelFunc0808_0347;
		UI_set_schedule_type_25(item, 0x0001);
		Func097F(item, "@Goodbye@", 0x0005);
		abrt();
		goto labelFunc0808_035A;
	labelFunc0808_0347:
		UI_set_schedule_type_25(item, 0x0009);
		Func097F(item, "@Move along...@", 0x000A);
		abrt();
	labelFunc0808_035A:
		goto labelFunc0808_0152;
	labelFunc0808_035D:
		end_conv();
	labelFunc0808_035E:
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func09B3 0x9B3 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func0809 0x809 ()
{
	var var0000;
	var var0001;

	if(!(event == 0x0001)) goto labelFunc0809_0028;
	UI_item_say_4D(0xFE9C, "Hold!");
	item;
	calle();
	Func097F(item, "@What was that?@", 0x0002);
	UI_set_schedule_type_25(item, 0x0003);
	labelFunc0809_0028:
		if(!(event == 0x0009)) goto labelFunc0809_016F;
		UI_show_npc_face0_05(0xFED6, 0x0000);
		UI_clear_item_say_4E(item);
		UI_run_schedule_B7(item);
		UcMessage("\"What dost thou wish?\"");
		UcSay;
		if(!UI_get_item_flag_A3(item, 0x0006)) goto labelFunc0809_0065;
		UI_set_schedule_type_25(item, 0x001F);
		UI_add_answer_0C("leave");
		goto labelFunc0809_0071;
	labelFunc0809_0065:
		UI_run_schedule_B7(item);
		UI_add_answer_0C("join");
	labelFunc0809_0071:
		UI_add_answer_0C(["bye"]);
	labelFunc0809_007B:
		UcAsk;
		cmps("join");
		UI_remove_answer_0D("join");
		if(!(UI_get_array_size_73(UI_get_party_list_2B()) < 0x0005)) goto labelFunc0809_00AF;
		UI_add_answer_0C("leave");
		UcMessage("\"Yes, master. I shall be thy servant.\"");
		UcSay;
		UI_add_to_party_26(item);
		goto labelFunc0809_00CA;
	labelFunc0809_00AF:
		UcMessage("\"But I cannot, master.\"");
		UcSay;
		var0000 = Func0992(0x0001, "@Our travelling group would be too large, Avatar.@", 0x0000, false);
		UI_set_conversation_slot_09(0x0000);
	labelFunc0809_00CA:
		cmps("leave");
		UI_remove_answer_0D("leave");
		UI_add_answer_0C("join");
		UcMessage("\"Yes, master.\"");
		UcSay;
		UI_remove_from_party_27(item);
		if(!UI_get_cont_items_33(item, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0809_014B;
		UcMessage("\"I have possessions which belong to thee.\"");
		UcSay;
		var0001 = Func09B3(item);
		if(!(var0001[0x0001] != 0x0000)) goto labelFunc0809_0116;
		UcMessage("\"Thy companions are helping thee with this burden.\"");
		UcSay;
	labelFunc0809_0116:
		if(!(var0001[0x0002] > 0x0000)) goto labelFunc0809_0147;
		var0001 = var0001[0x0002];
		if(!(var0001 > 0x0001)) goto labelFunc0809_0143;
		UcMessage("\"Of thy belongings, ");
		UcMessage(var0001);
		UcMessage(" are now on the ground.\"");
		UcSay;
		goto labelFunc0809_0147;
	labelFunc0809_0143:
		UcMessage("\"One of thy belongings is now on the ground.\"");
		UcSay;
	labelFunc0809_0147:
		UcMessage("\"They are thine once again.\"");
		UcSay;
	labelFunc0809_014B:
		Func09AC(item, Dupre, 0x0000, 0x000C);
	labelFunc0809_0158:
		cmps("bye");
		Func097F(item, "@I obey@", 0x0005);
		abrt();
	labelFunc0809_016B:
		goto labelFunc0809_007B;
	labelFunc0809_016E:
		end_conv();
	labelFunc0809_016F:
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func080A 0x80A ()
{
	var var0000;

	if(!UI_get_cont_items_33(0xFFDE, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc080A_007B;
	UcMessage("\"I have some of thy belongings in my possession. Wouldst thou like them returned?\"");
	UcSay;
	if(!Func0955()) goto labelFunc080A_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0013] = false;
	var0000 = Func09B3(0xFFDE);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc080A_003F;
	UcMessage("\"Thy companions will have to help thee carry some of these things.\"");
	UcSay;
	labelFunc080A_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc080A_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc080A_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, they shall go at thy feet.\"");
		UcSay;
		goto labelFunc080A_0070;
	labelFunc080A_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, it shall go at thy feet.\"");
		UcSay;
	labelFunc080A_0070:
		goto labelFunc080A_007B;
	labelFunc080A_0073:
		gflags[0013] = true;
		UcMessage("\"If that is what thou dost want, I will keep them for thee. Return when thou wantest them.\"");
		UcSay;
	labelFunc080A_007B:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func080B 0x80B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = true;
	UcMessage("\"To exchange coins, I ask for a small percentage of the money bartered. Dost thou agree to this charge?\"");
	UcSay;
	if(!Func0955()) goto labelFunc080B_0F13;
	labelFunc080B_0014:
		if(!var0001) goto labelFunc080B_0F10;
		UcMessage("\"What coinage dost thou desire?\"");
		UcSay;
		var0002 = Func0956(["Monetari", "Guilders", "Filari", "Gold Coins"]);
		if(!(var0002 == "Monetari")) goto labelFunc080B_03C9;
		UcMessage("\"Which coin dost thou care to exchange for monetari?\"");
		UcSay;
		var0003 = 0x03B7;
		var0004 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc080B_006F;
		var0004 = (var0004 & "Guilders");
	labelFunc080B_006F:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc080B_008E;
		var0004 = (var0004 & "Filari");
	labelFunc080B_008E:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc080B_00AD;
		var0004 = (var0004 & "Gold Coins");
	labelFunc080B_00AD:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc080B_00CC;
		var0004 = (var0004 & "Gold Nuggets");
	labelFunc080B_00CC:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc080B_00EB;
		var0004 = (var0004 & "Jewelry");
	labelFunc080B_00EB:
		if(!Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0xFE99)) goto labelFunc080B_010A;
		var0004 = (var0004 & "Gold Bars");
	labelFunc080B_010A:
		var0005 = Func0956(var0004);
		if(!(var0005 == "Nothing")) goto labelFunc080B_012E;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc080B_0F17;
	labelFunc080B_012E:
		if(!(var0005 == "Guilders")) goto labelFunc080B_0142;
		UcMessage("\"I can give thee 1 monetari for every 3 guilders thou hast.\"");
		UcSay;
		var0006 = 0x03B8;
	labelFunc080B_0142:
		if(!(var0005 == "Filari")) goto labelFunc080B_0156;
		UcMessage("\"I can give thee 1 monetari for every 4 filari thou hast.\"");
		UcSay;
		var0006 = 0x03B4;
	labelFunc080B_0156:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_016A;
		UcMessage("\"I can give thee 1 monetari for every 2 gold coins thou hast.\"");
		UcSay;
		var0006 = 0x0284;
	labelFunc080B_016A:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_017E;
		UcMessage("\"I can give thee 10 monetari for every 1 gold nugget thou hast.\"");
		UcSay;
		var0006 = 0x0285;
	labelFunc080B_017E:
		if(!(var0005 == "Jewelry")) goto labelFunc080B_0198;
		UcMessage("\"I can give thee 100 monetari for any piece of jewelry thou hast.\"");
		UcSay;
		var0006 = 0x03A9;
		var0005 = "pieces of jewelry";
	labelFunc080B_0198:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_01B2;
		UcMessage("\"I can give thee 200 monetari for every gold bar thou hast.\"");
		UcSay;
		var0006 = 0x0286;
		var0005 = "Gold Bars";
	labelFunc080B_01B2:
		UcMessage("\"Wilt thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc080B_03C5;
		var0007 = UI_count_objects_31(0xFE9B, var0006, 0xFE99, 0xFE99);
		if(!(var0007 > 0x01F4)) goto labelFunc080B_01E1;
		var0007 = 0x01F4;
	labelFunc080B_01E1:
		if(!(var0007 != 0x0000)) goto labelFunc080B_03B2;
		UcMessage("\"How many ");
		UcMessage(var0005);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0008 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0008 == 0x0000)) goto labelFunc080B_021F;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_021F:
		if(!(var0005 == "Guilders")) goto labelFunc080B_0239;
		var0009 = (var0008 / 0x0003);
		var000A = 0x0006;
	labelFunc080B_0239:
		if(!(var0005 == "Filari")) goto labelFunc080B_0253;
		var0009 = (var0008 / 0x0004);
		var000A = 0x0008;
	labelFunc080B_0253:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_026D;
		var0009 = (var0008 / 0x0002);
		var000A = 0x0004;
	labelFunc080B_026D:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_0291;
		var0009 = (var0008 * 0x000A);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0291;
		var0005 = "Gold Nugget";
	labelFunc080B_0291:
		if(!(var0005 == "pieces of jewelry")) goto labelFunc080B_02BB;
		var0009 = (var0008 * 0x0064);
		var0005 = "pieces of jewelry";
		if(!(var0008 == 0x0001)) goto labelFunc080B_02BB;
		var0005 = "piece of jewelry";
	labelFunc080B_02BB:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_02DF;
		var0009 = (var0008 * 0x00C8);
		if(!(var0008 == 0x0001)) goto labelFunc080B_02DF;
		var0005 = "Gold Bar";
	labelFunc080B_02DF:
		var000B = (var0009 / 0x0028);
		var000C = (var0009 - var000B);
		if(!(var0009 == 0x0000)) goto labelFunc080B_0316;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0316:
		if(!(var0009 == 0x0001)) goto labelFunc080B_0327;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0327:
		if(!(var0009 <= 0x0028)) goto labelFunc080B_0341;
		var000B = 0x0001;
		var000C = (var0009 - var000B);
	labelFunc080B_0341:
		if(!(var0008 >= 0x0001)) goto labelFunc080B_03A5;
		var000D = UI_remove_party_items_34(var0008, var0006, 0xFE99, 0xFE99, false);
		UcMessage("\"Let me think...\"~\"I will take thy ");
		UcMessage(var0008);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0009);
		UcMessage(" Monetari, subtracting my charge of ");
		UcMessage(var000B);
		UcMessage(" Monetari, for a final sum of ");
		UcMessage(var000C);
		UcMessage(" Monetari given to thee.\"");
		UcSay;
		var000E = Func099B(0xFE9C, var000C, var0003, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_03AF;
	labelFunc080B_03A5:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc080B_03AF:
		goto labelFunc080B_03C2;
	labelFunc080B_03B2:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc080B_03C2:
		goto labelFunc080B_03C9;
	labelFunc080B_03C5:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc080B_03C9:
		if(!(var0002 == "Guilders")) goto labelFunc080B_0799;
		UcMessage("\"Which coin dost thou care to exchange for guilders?\"");
		UcSay;
		var0003 = 0x03B8;
		var0004 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc080B_0405;
		var0004 = (var0004 & "Monetari");
	labelFunc080B_0405:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc080B_0424;
		var0004 = (var0004 & "Filari");
	labelFunc080B_0424:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc080B_0443;
		var0004 = (var0004 & "Gold Coins");
	labelFunc080B_0443:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc080B_0462;
		var0004 = (var0004 & "Gold Nuggets");
	labelFunc080B_0462:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc080B_0481;
		var0004 = (var0004 & "Jewelry");
	labelFunc080B_0481:
		if(!Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0xFE99)) goto labelFunc080B_04A0;
		var0004 = (var0004 & "Gold Bars");
	labelFunc080B_04A0:
		var0005 = Func0956(var0004);
		if(!(var0005 == "Nothing")) goto labelFunc080B_04C4;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc080B_0F17;
	labelFunc080B_04C4:
		if(!(var0005 == "Monetari")) goto labelFunc080B_04D8;
		UcMessage("\"I can give thee 3 guilders for every 1 monetari thou hast.\"");
		UcSay;
		var0006 = 0x03B7;
	labelFunc080B_04D8:
		if(!(var0005 == "Filari")) goto labelFunc080B_04EC;
		UcMessage("\"I can give thee 3 guilders for every 4 filari thou hast.\"");
		UcSay;
		var0006 = 0x03B4;
	labelFunc080B_04EC:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_0500;
		UcMessage("\"I can give thee 3 guilders for every 2 gold coins thou hast.\"");
		UcSay;
		var0006 = 0x0284;
	labelFunc080B_0500:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_0514;
		UcMessage("\"I can give thee 30 guilders for every 1 gold nugget thou hast.\"");
		UcSay;
		var0006 = 0x0285;
	labelFunc080B_0514:
		if(!(var0005 == "Jewelry")) goto labelFunc080B_052E;
		UcMessage("\"I can give thee 300 guilders for any piece of jewelry thou hast.\"");
		UcSay;
		var0006 = 0x03A9;
		var0005 = "pieces of jewelry";
	labelFunc080B_052E:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0548;
		UcMessage("\"I can give thee 600 guilders for every gold bar thou hast.\"");
		UcSay;
		var0006 = 0x0286;
		var0005 = "Gold Bars";
	labelFunc080B_0548:
		UcMessage("\"Wilt thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc080B_0795;
		var0007 = UI_count_objects_31(0xFE9B, var0006, 0xFE99, 0xFE99);
		if(!(var0007 > 0x01F4)) goto labelFunc080B_0577;
		var0007 = 0x01F4;
	labelFunc080B_0577:
		if(!(var0007 != 0x0000)) goto labelFunc080B_0782;
		UcMessage("\"How many ");
		UcMessage(var0005);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0008 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0008 == 0x0000)) goto labelFunc080B_05B5;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_05B5:
		if(!(var0005 == "Monetari")) goto labelFunc080B_05C9;
		var0009 = (var0008 * 0x0003);
	labelFunc080B_05C9:
		if(!(var0005 == "Filari")) goto labelFunc080B_05E7;
		var0009 = ((var0008 * 0x0003) / 0x0004);
		var000A = 0x0003;
	labelFunc080B_05E7:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_0605;
		var0009 = ((var0008 * 0x0003) / 0x0002);
		var000A = 0x0002;
	labelFunc080B_0605:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_0629;
		var0009 = (var0008 * 0x001E);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0629;
		var0005 = "Gold Nugget";
	labelFunc080B_0629:
		if(!(var0005 == "pieces of jewelry")) goto labelFunc080B_0653;
		var0009 = (var0008 * 0x012C);
		var0005 = "pieces of jewelry";
		if(!(var0008 == 0x0001)) goto labelFunc080B_0653;
		var0005 = "piece of jewelry";
	labelFunc080B_0653:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0677;
		var0009 = (var0008 * 0x0258);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0677;
		var0005 = "Gold Bar";
	labelFunc080B_0677:
		var000B = (var0009 / 0x0028);
		var000C = (var0009 - var000B);
		var000F = "Guilders";
		var0010 = "Guilders";
		if(!(var0009 == 0x0000)) goto labelFunc080B_06BA;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_06BA:
		if(!(var0009 == 0x0001)) goto labelFunc080B_06CB;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_06CB:
		if(!(var0009 <= 0x0028)) goto labelFunc080B_06E5;
		var000B = 0x0001;
		var000C = (var0009 - var000B);
	labelFunc080B_06E5:
		if(!(var000C == 0x0001)) goto labelFunc080B_06F5;
		var000F = "Guilder";
	labelFunc080B_06F5:
		if(!(var000B == 0x0001)) goto labelFunc080B_0705;
		var0010 = "Guilder";
	labelFunc080B_0705:
		if(!(var0008 >= 0x0001)) goto labelFunc080B_0775;
		var000D = UI_remove_party_items_34(var0008, var0006, 0xFE99, 0xFE99, false);
		UcMessage("\"Let me think...\"~\"I will take thy ");
		UcMessage(var0008);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0009);
		UcMessage(" Guilders, subtracting my charge of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0010);
		UcMessage(", for a final sum of ");
		UcMessage(var000C);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(" given to thee.\"");
		UcSay;
		var000E = Func099B(0xFE9C, var000C, var0003, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_077F;
	labelFunc080B_0775:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc080B_077F:
		goto labelFunc080B_0792;
	labelFunc080B_0782:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc080B_0792:
		goto labelFunc080B_0799;
	labelFunc080B_0795:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc080B_0799:
		if(!(var0002 == "Filari")) goto labelFunc080B_0B37;
		UcMessage("\"Which coin dost thou care to exchange for filari?\"");
		UcSay;
		var0003 = 0x03B4;
		var0004 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc080B_07D5;
		var0004 = (var0004 & "Monetari");
	labelFunc080B_07D5:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc080B_07F4;
		var0004 = (var0004 & "Guilders");
	labelFunc080B_07F4:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc080B_0813;
		var0004 = (var0004 & "Gold Coins");
	labelFunc080B_0813:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc080B_0832;
		var0004 = (var0004 & "Gold Nuggets");
	labelFunc080B_0832:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc080B_0851;
		var0004 = (var0004 & "Jewelry");
	labelFunc080B_0851:
		if(!Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0xFE99)) goto labelFunc080B_0870;
		var0004 = (var0004 & "Gold Bars");
	labelFunc080B_0870:
		var0005 = Func0956(var0004);
		if(!(var0005 == "Nothing")) goto labelFunc080B_0894;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc080B_0F17;
	labelFunc080B_0894:
		if(!(var0005 == "Monetari")) goto labelFunc080B_08A8;
		UcMessage("\"I can give thee 4 filari for every 1 monetari thou hast.\"");
		UcSay;
		var0006 = 0x03B7;
	labelFunc080B_08A8:
		if(!(var0005 == "Guilders")) goto labelFunc080B_08BC;
		UcMessage("\"I can give thee 4 filari for every 3 guilders thou hast.\"");
		UcSay;
		var0006 = 0x03B8;
	labelFunc080B_08BC:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_08D0;
		UcMessage("\"I can give thee 2 filari for every 1 gold coin thou hast.\"");
		UcSay;
		var0006 = 0x0284;
	labelFunc080B_08D0:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_08E4;
		UcMessage("\"I can give thee 40 filari for every 1 gold nugget thou hast.\"");
		UcSay;
		var0006 = 0x0285;
	labelFunc080B_08E4:
		if(!(var0005 == "Jewelry")) goto labelFunc080B_08FE;
		UcMessage("\"I can give thee 400 filari for any piece of jewelry thou hast.\"");
		UcSay;
		var0006 = 0x03A9;
		var0005 = "pieces of jewelry";
	labelFunc080B_08FE:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0918;
		UcMessage("\"I can give thee 800 filari for every gold bar thou hast.\"");
		UcSay;
		var0006 = 0x0286;
		var0005 = "Gold Bars";
	labelFunc080B_0918:
		UcMessage("\"Wilt thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc080B_0B33;
		var0007 = UI_count_objects_31(0xFE9B, var0006, 0xFE99, 0xFE99);
		if(!(var0007 > 0x01F4)) goto labelFunc080B_0947;
		var0007 = 0x01F4;
	labelFunc080B_0947:
		if(!(var0007 != 0x0000)) goto labelFunc080B_0B20;
		UcMessage("\"How many ");
		UcMessage(var0005);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0008 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0008 == 0x0000)) goto labelFunc080B_0985;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0985:
		if(!(var0005 == "Monetari")) goto labelFunc080B_0999;
		var0009 = (var0008 * 0x0004);
	labelFunc080B_0999:
		if(!(var0005 == "Guilders")) goto labelFunc080B_09B7;
		var0009 = ((var0008 * 0x0004) / 0x0003);
		var000A = 0x0002;
	labelFunc080B_09B7:
		if(!(var0005 == "Gold Coins")) goto labelFunc080B_09DB;
		var0009 = (var0008 * 0x0002);
		if(!(var0008 == 0x0001)) goto labelFunc080B_09DB;
		var0005 = "Gold Coin";
	labelFunc080B_09DB:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_09FF;
		var0009 = (var0008 * 0x0028);
		if(!(var0008 == 0x0001)) goto labelFunc080B_09FF;
		var0005 = "Gold Nugget";
	labelFunc080B_09FF:
		if(!(var0005 == "pieces of jewelry")) goto labelFunc080B_0A29;
		var0009 = (var0008 * 0x0190);
		var0005 = "pieces of jewelry";
		if(!(var0008 == 0x0001)) goto labelFunc080B_0A29;
		var0005 = "piece of jewelry";
	labelFunc080B_0A29:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0A4D;
		var0009 = (var0008 * 0x0320);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0A4D;
		var0005 = "Gold Bar";
	labelFunc080B_0A4D:
		var000B = (var0009 / 0x0028);
		var000C = (var0009 - var000B);
		if(!(var0009 == 0x0000)) goto labelFunc080B_0A84;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0A84:
		if(!(var0009 == 0x0001)) goto labelFunc080B_0A95;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0A95:
		if(!(var0009 <= 0x0028)) goto labelFunc080B_0AAF;
		var000B = 0x0001;
		var000C = (var0009 - var000B);
	labelFunc080B_0AAF:
		if(!(var0008 >= 0x0001)) goto labelFunc080B_0B13;
		var000D = UI_remove_party_items_34(var0008, var0006, 0xFE99, 0xFE99, false);
		UcMessage("\"Let me think...\"~\"I will take thy ");
		UcMessage(var0008);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0009);
		UcMessage(" Filari, subtracting my charge of ");
		UcMessage(var000B);
		UcMessage(" Filari, for a final sum of ");
		UcMessage(var000C);
		UcMessage(" Filari given to thee.\"");
		UcSay;
		var000E = Func099B(0xFE9C, var000C, var0003, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0B1D;
	labelFunc080B_0B13:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc080B_0B1D:
		goto labelFunc080B_0B30;
	labelFunc080B_0B20:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc080B_0B30:
		goto labelFunc080B_0B37;
	labelFunc080B_0B33:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc080B_0B37:
		if(!(var0002 == "Gold Coins")) goto labelFunc080B_0F03;
		UcMessage("\"Which coin dost thou care to exchange for gold?\"");
		UcSay;
		var0003 = 0x0284;
		var0004 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc080B_0B73;
		var0004 = (var0004 & "Monetari");
	labelFunc080B_0B73:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc080B_0B92;
		var0004 = (var0004 & "Filari");
	labelFunc080B_0B92:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc080B_0BB1;
		var0004 = (var0004 & "Guilders");
	labelFunc080B_0BB1:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc080B_0BD0;
		var0004 = (var0004 & "Gold Nuggets");
	labelFunc080B_0BD0:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc080B_0BEF;
		var0004 = (var0004 & "Jewelry");
	labelFunc080B_0BEF:
		if(!Func097D(0xFE9B, 0x0001, 0x0286, 0xFE99, 0xFE99)) goto labelFunc080B_0C0E;
		var0004 = (var0004 & "Gold Bars");
	labelFunc080B_0C0E:
		var0005 = Func0956(var0004);
		if(!(var0005 == "Nothing")) goto labelFunc080B_0C32;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc080B_0F17;
	labelFunc080B_0C32:
		if(!(var0005 == "Monetari")) goto labelFunc080B_0C46;
		UcMessage("\"I can give thee 2 gold coins for every 1 monetari thou hast.\"");
		UcSay;
		var0006 = 0x03B7;
	labelFunc080B_0C46:
		if(!(var0005 == "Guilders")) goto labelFunc080B_0C5A;
		UcMessage("\"I can give thee 2 gold coins for every 3 guilders thou hast.\"");
		UcSay;
		var0006 = 0x03B8;
	labelFunc080B_0C5A:
		if(!(var0005 == "Filari")) goto labelFunc080B_0C6E;
		UcMessage("\"I can give thee 1 gold coin for every 2 filari thou hast.\"");
		UcSay;
		var0006 = 0x03B4;
	labelFunc080B_0C6E:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_0C82;
		UcMessage("\"I can give thee 20 gold coins for every 1 gold nugget thou hast.\"");
		UcSay;
		var0006 = 0x0285;
	labelFunc080B_0C82:
		if(!(var0005 == "Jewelry")) goto labelFunc080B_0C9C;
		UcMessage("\"I can give thee 200 gold coins for any piece of jewelry thou hast.\"");
		UcSay;
		var0006 = 0x03A9;
		var0005 = "pieces of jewelry";
	labelFunc080B_0C9C:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0CB6;
		UcMessage("\"I can give thee 400 gold coins for every gold bar thou hast.\"");
		UcSay;
		var0006 = 0x0286;
		var0005 = "Gold Bars";
	labelFunc080B_0CB6:
		UcMessage("\"Wilt thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc080B_0EFF;
		var0007 = UI_count_objects_31(0xFE9B, var0006, 0xFE99, 0xFE99);
		if(!(var0007 > 0x01F4)) goto labelFunc080B_0CE5;
		var0007 = 0x01F4;
	labelFunc080B_0CE5:
		if(!(var0007 != 0x0000)) goto labelFunc080B_0EEC;
		UcMessage("\"How many ");
		UcMessage(var0005);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0008 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0008 == 0x0000)) goto labelFunc080B_0D23;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0D23:
		if(!(var0005 == "Monetari")) goto labelFunc080B_0D37;
		var0009 = (var0008 * 0x0002);
	labelFunc080B_0D37:
		if(!(var0005 == "Guilders")) goto labelFunc080B_0D55;
		var0009 = ((var0008 * 0x0002) / 0x0003);
		var000A = 0x0003;
	labelFunc080B_0D55:
		if(!(var0005 == "Filari")) goto labelFunc080B_0D6F;
		var0009 = (var0008 / 0x0002);
		var000A = 0x0004;
	labelFunc080B_0D6F:
		if(!(var0005 == "Gold Nuggets")) goto labelFunc080B_0D93;
		var0009 = (var0008 * 0x0014);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0D93;
		var0005 = "Gold Nugget";
	labelFunc080B_0D93:
		if(!(var0005 == "pieces of jewelry")) goto labelFunc080B_0DBD;
		var0009 = (var0008 * 0x00C8);
		var0005 = "pieces of jewelry";
		if(!(var0008 == 0x0001)) goto labelFunc080B_0DBD;
		var0005 = "piece of jewelry";
	labelFunc080B_0DBD:
		if(!(var0005 == "Gold Bars")) goto labelFunc080B_0DE1;
		var0009 = (var0008 * 0x0190);
		if(!(var0008 == 0x0001)) goto labelFunc080B_0DE1;
		var0005 = "Gold Bar";
	labelFunc080B_0DE1:
		var000B = (var0009 / 0x0028);
		var000C = (var0009 - var000B);
		var000F = "Gold Coins";
		var0010 = "Gold Coins";
		if(!(var0009 == 0x0000)) goto labelFunc080B_0E24;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0E24:
		if(!(var0009 == 0x0001)) goto labelFunc080B_0E35;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc080B_0F03;
	labelFunc080B_0E35:
		if(!(var0009 <= 0x0028)) goto labelFunc080B_0E4F;
		var000B = 0x0001;
		var000C = (var0009 - var000B);
	labelFunc080B_0E4F:
		if(!(var000C == 0x0001)) goto labelFunc080B_0E5F;
		var000F = "Gold Coin";
	labelFunc080B_0E5F:
		if(!(var000B == 0x0001)) goto labelFunc080B_0E6F;
		var0010 = "Gold Coin";
	labelFunc080B_0E6F:
		if(!(var0008 >= 0x0001)) goto labelFunc080B_0EDF;
		var000D = UI_remove_party_items_34(var0008, var0006, 0xFE99, 0xFE99, false);
		UcMessage("\"Let me think...\"~\"I will take thy ");
		UcMessage(var0008);
		UcMessage(" ");
		UcMessage(var0005);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0009);
		UcMessage(" Gold Coins, subtracting my charge of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0010);
		UcMessage(", for a final sum of ");
		UcMessage(var000C);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(" given to thee.\"");
		UcSay;
		var000E = Func099B(0xFE9C, var000C, var0003, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080B_0EE9;
	labelFunc080B_0EDF:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
	labelFunc080B_0EE9:
		goto labelFunc080B_0EFC;
	labelFunc080B_0EEC:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0005);
		UcMessage(" to exchange for ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc080B_0EFC:
		goto labelFunc080B_0F03;
	labelFunc080B_0EFF:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc080B_0F03:
		UcMessage("\"Dost thou care to exchange more coins?\"");
		UcSay;
		var0001 = Func0955();
		goto labelFunc080B_0014;
	labelFunc080B_0F10:
		goto labelFunc080B_0F17;
	labelFunc080B_0F13:
		UcMessage("\"If that is what thou dost desire...\"");
		UcSay;
	labelFunc080B_0F17:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func080D 0x80D (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func080C 0x80C ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = UI_die_roll_17(0x0000, 0x0002);
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "torches", "backpack", "dagger", "abacus", "sextant", "boots", "leather leggings", "bedroll", "sleeping powder", "bandages", "fur cloak"];
	var0004 = [0x0000, 0x0253, 0x0321, 0x0252, 0x02A3, 0x028A, 0x024B, 0x023E, 0x0247, 0x0288, 0x033B, 0x00E3];
	var0005 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x000B, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, var0001, 0x0001];
	var0006 = [0x0000, 0x0014, 0x0078, 0x0008, 0x0078, 0x0096, 0x0032, 0x006E, 0x00AF, 0x004B, 0x0032, 0x00FA];
	var0007 = [0x0000, 0x000C, 0x0041, 0x0005, 0x004B, 0x004B, 0x001C, 0x003C, 0x005A, 0x002D, 0x0019, 0x0087];
	var0008 = 0x03B8;
	var0009 = [0x0000, 0x0003, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What dost thou require, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc080C_0151:
		if(!var0002) goto labelFunc080C_0510;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc080C_01AD;
		var000C = UI_get_random_00(0x0003);
		if(!(var000C == 0x0001)) goto labelFunc080C_0182;
		UcMessage("\"Thou art correct -- these prices are entirely too high!\"");
		UcSay;
	labelFunc080C_0182:
		if(!(var000C == 0x0002)) goto labelFunc080C_0190;
		UcMessage("\"Oh, well. But I have so enjoyed our conversation!\"");
		UcSay;
	labelFunc080C_0190:
		if(!((var000C != 0x0001) && (var000C != 0x0002))) goto labelFunc080C_01A6;
		UcMessage("\"But please come again sometime!\"");
		UcSay;
	labelFunc080C_01A6:
		var0002 = false;
		goto labelFunc080C_050D;
	labelFunc080C_01AD:
		var000D = var0006[var000B];
		var000E = 0x0000;
		var000C = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000C == 0x0001)) goto labelFunc080C_01D9;
		var000F = "Dost thou accept?";
	labelFunc080C_01D9:
		if(!(var000C == 0x0002)) goto labelFunc080C_01E9;
		var000F = "Will this be fine with thee?";
	labelFunc080C_01E9:
		if(!(var000C == 0x0003)) goto labelFunc080C_01F9;
		var000F = "Dost thou find the price agreeable?";
	labelFunc080C_01F9:
		if(!(var000C == 0x0004)) goto labelFunc080C_0209;
		var000F = "Dost thou agree?";
	labelFunc080C_0209:
		if(!(var000C == 0x0005)) goto labelFunc080C_0219;
		var000F = "Is the price acceptable?";
	labelFunc080C_0219:
		if(!(var000B == 0x0002)) goto labelFunc080C_023D;
		UcMessage("\"The price for a bundle of 3 torches is ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "torches, in bundles of 3,";
	labelFunc080C_023D:
		if(!(var000B == 0x0003)) goto labelFunc080C_0265;
		UcMessage("\"These are imported from Fawn, where the womenfolk are skilled at making strong cloth.\"");
		UcSay;
		UcMessage("\"Each backpack costs ");
		UcMessage(var000D);
		UcMessage(" guilders, which I think is a fair price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "backpacks";
	labelFunc080C_0265:
		if(!(var000B == 0x0004)) goto labelFunc080C_0289;
		UcMessage("\"For the low price of ");
		UcMessage(var000D);
		UcMessage(" guilders, I can sell thee a fine dagger.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "daggers";
	labelFunc080C_0289:
		if(!(var000B == 0x0005)) goto labelFunc080C_02A7;
		UcMessage("\"Only ");
		UcMessage(var000D);
		UcMessage(" guilders will buy thee an excellent abacus. Thou canst use it to add thy coinage.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
	labelFunc080C_02A7:
		if(!(var000B == 0x0006)) goto labelFunc080C_02C5;
		UcMessage("\"If thou dost wish to navigate upon the seas, thou shalt surely need a sextant!\" *\"I will sell thee one for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
	labelFunc080C_02C5:
		if(!(var000B == 0x0007)) goto labelFunc080C_02EF;
		UcMessage("\"To protect thy feet, a sturdy pair of Moonshadian leather boots would do thee well, ");
		UcMessage(var0000);
		UcMessage(". For only ");
		UcMessage(var000D);
		UcMessage(" guilders it is thine!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "pairs of Moonshadian leather boots";
	labelFunc080C_02EF:
		if(!(var000B == 0x0008)) goto labelFunc080C_0319;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" guilders is not much to pay if thou dost need to protect thy legs, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "pairs of leather leggings";
	labelFunc080C_0319:
		if(!(var000B == 0x0009)) goto labelFunc080C_0343;
		UcMessage("\"Ah, this is one item that we have stocked in plenty, ");
		UcMessage(var0000);
		UcMessage("! I can sell thee a bedroll for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "bedrolls";
	labelFunc080C_0343:
		if(!(var000B == 0x000A)) goto labelFunc080C_036D;
		UcMessage("\"This... powder... is most effective if thou dost suffer from sleepless nights, ");
		UcMessage(var0000);
		UcMessage(". I charge a small fee of ");
		UcMessage(var000D);
		UcMessage(" guilders for a jar.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "vials of sleeping powder";
	labelFunc080C_036D:
		if(!(var000B == 0x000B)) goto labelFunc080C_0391;
		UcMessage("\"If thou art in need of healing minor wounds I can offer thee clean bandages for ");
		UcMessage(var000D);
		UcMessage(" guilders apiece.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "bandages";
	labelFunc080C_0391:
		if(!(var000B == 0x000C)) goto labelFunc080C_03B5;
		UcMessage("\"For the sum of ");
		UcMessage(var000D);
		UcMessage(" guilders I can sell thee a bear cloak. 'Twill keep thee warm on a frosty night.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "bear cloaks";
	labelFunc080C_03B5:
		if(!(var000D == var0007[var000B])) goto labelFunc080C_03DA;
		if(!Func0955()) goto labelFunc080C_03D1;
		var0011 = var000D;
		goto labelFunc080C_03D7;
	labelFunc080C_03D1:
		var0011 = 0x0000;
	labelFunc080C_03D7:
		goto labelFunc080C_03EC;
	labelFunc080C_03DA:
		var0011 = Func080D(var0006[var000B], var0007[var000B]);
	labelFunc080C_03EC:
		if(!(var0011 > 0x0000)) goto labelFunc080C_045A;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc080C_0435;
		UcMessage("\"How many ");
		UcMessage(var0010);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var0011, 0x000A, 0x0001, false);
		goto labelFunc080C_045A;
	labelFunc080C_0435:
		var000E = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var0011, 0x0000, 0x0001, false);
	labelFunc080C_045A:
		if(!(var000E == 0x0001)) goto labelFunc080C_0471;
		UcMessage("\"Please come again, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc080C_0503;
	labelFunc080C_0471:
		if(!(var000E == 0x0002)) goto labelFunc080C_0482;
		UcMessage("\"Perhaps thou canst return with more companions, for thou hast not room to carry what thou desirest to purchase!\"");
		UcSay;
		goto labelFunc080C_0503;
	labelFunc080C_0482:
		if(!(var000E == 0x0003)) goto labelFunc080C_0503;
		var000C = Func0992(0x0001, "@But we are short of funds!@", 0x0000, false);
		var000C = Func0992(0x0001, "@How embarrassing...@", 0x0000, false);
		if(!(var000C != 0xFE9C)) goto labelFunc080C_04CB;
		UI_show_npc_face0_05(0xFFF3, 0x0000);
		UcMessage("\"I would let thee have the goods for free, as I am sure that thou art a trustworthy person.\"");
		UcSay;
		UcMessage("\"But the shop's owner is a stern man, and very strict.\"");
		UcSay;
		goto labelFunc080C_04CF;
	labelFunc080C_04CB:
		UcMessage("\"But thou dost not have the coins to pay for thy purchase! Next time, thou shouldst count thy coins first.\"");
		UcSay;
	labelFunc080C_04CF:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFF3) + 0x0004))) goto labelFunc080C_04EE;
		UI_set_npc_id_BD(0xFFF3, 0x001F);
		goto labelFunc080C_0500;
	labelFunc080C_04EE:
		UI_set_npc_id_BD(0xFFF3, (UI_get_npc_id_BC(0xFFF3) + 0x0004));
	labelFunc080C_0500:
		goto labelFunc080C_0503;
	labelFunc080C_0503:
		UcMessage("\"Dost thou wish to purchase anything else?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc080C_050D:
		goto labelFunc080C_0151;
	labelFunc080C_0510:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func080D 0x80D (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = (0x000F - (UI_get_npc_id_BC(0xFFF3) / 0x0002));
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	var000B = UI_get_npc_id_BC(0xFFF3);
	labelFunc080D_0055:
		if(!var0008) goto labelFunc080D_0448;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc080D_007E;
		rr = 0x0000;
		goto labelFunc080D_0091;
	labelFunc080D_007E:
		if(!(var000C == "yes")) goto labelFunc080D_0091;
		var000D = 0x0000;
		goto labelFunc080D_00E0;
	labelFunc080D_0091:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc080D_00E0:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc080D_029B;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc080D_0137;
		if(!(var0010 == 0x0001)) goto labelFunc080D_0118;
		UcMessage("\"Thou hast better not visit this shop too often, or we shall lose all our money!\"");
		UcSay;
	labelFunc080D_0118:
		if(!(var0010 == 0x0002)) goto labelFunc080D_0126;
		UcMessage("\"Thou hast bargained me to a bitter price, but then, I do not own this store!\"");
		UcSay;
	labelFunc080D_0126:
		if(!(var0010 == 0x0003)) goto labelFunc080D_0134;
		UcMessage("\"Well, no one else in town is spending coins, so I must reluctantly accept thine offer.\"");
		UcSay;
	labelFunc080D_0134:
		goto labelFunc080D_0209;
	labelFunc080D_0137:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc080D_017E;
		if(!(var0010 == 0x0001)) goto labelFunc080D_015B;
		UcMessage("\"Believe me, I am allowing thee a fantastic price. Please do not tell anyone!\"");
		UcSay;
	labelFunc080D_015B:
		if(!(var0010 == 0x0002)) goto labelFunc080D_0169;
		UcMessage("\"Thou must be poor, if thou must bargain me down so low. Very well, I shall have pity on thee.\"");
		UcSay;
	labelFunc080D_0169:
		if(!(var0010 == 0x0003)) goto labelFunc080D_017B;
		UcMessage("\"I think thou hast talked me into a price that is too low...\"");
		UcSay;
		UcMessage("\"But I do not care. Hast thou noticed how beautiful the sunsets have been lately?\"");
		UcSay;
	labelFunc080D_017B:
		goto labelFunc080D_0209;
	labelFunc080D_017E:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc080D_01CD;
		if(!(var0010 == 0x0001)) goto labelFunc080D_01A2;
		UcMessage("\"'Tis a good price, and a great value.\"");
		UcSay;
	labelFunc080D_01A2:
		if(!(var0010 == 0x0002)) goto labelFunc080D_01B6;
		UcMessage("\"So that will be ");
		UcMessage(var0004);
		UcMessage(" guilders -- and I will say again that it hath been nice chatting with thee today.\"");
		UcSay;
	labelFunc080D_01B6:
		if(!(var0010 == 0x0003)) goto labelFunc080D_01CA;
		UcMessage("\"'Tis a fair deal -- only ");
		UcMessage(var0004);
		UcMessage(" guilders. Be certain to tell all thy friends!\"");
		UcSay;
	labelFunc080D_01CA:
		goto labelFunc080D_0209;
	labelFunc080D_01CD:
		if(!(var0010 == 0x0001)) goto labelFunc080D_01E7;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders! Thank thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc080D_01E7:
		if(!(var0010 == 0x0002)) goto labelFunc080D_01FB;
		UcMessage("\"That is wonderful! ");
		UcMessage(var0004);
		UcMessage(" whole guilders... why, the owner shall be so proud of me for this sale!\"");
		UcSay;
	labelFunc080D_01FB:
		if(!(var0010 == 0x0003)) goto labelFunc080D_0209;
		UcMessage("\"As I always say, one must pay high prices to obtain high quality.\"");
		UcSay;
	labelFunc080D_0209:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is the agreed price, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc080D_023E;
		if(!(var000B > 0x0001)) goto labelFunc080D_0237;
		UI_set_npc_id_BD(0xFFF3, (var000B - 0x0002));
	labelFunc080D_0237:
		rr = var0004;
		goto labelFunc080D_029B;
	labelFunc080D_023E:
		if(!(var0010 == 0x0001)) goto labelFunc080D_024C;
		UcMessage("\"Thou shouldst not jest with me. Simply because I'm only a Mundane doth not mean that thou canst waste my time.\"");
		UcSay;
	labelFunc080D_024C:
		if(!(var0010 == 0x0002)) goto labelFunc080D_025A;
		UcMessage("\"But we had an agreement!\"");
		UcSay;
	labelFunc080D_025A:
		if(!(var0010 == 0x0003)) goto labelFunc080D_026E;
		UcMessage("\"Canst thou not make up thy mind, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc080D_026E:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc080D_0289;
		UI_set_npc_id_BD(0xFFF3, 0x001F);
		goto labelFunc080D_0297;
	labelFunc080D_0289:
		UI_set_npc_id_BD(0xFFF3, (var000B + 0x000A));
	labelFunc080D_0297:
		rr = 0x0000;
	labelFunc080D_029B:
		if(!(var0007 == 0x0001)) goto labelFunc080D_030F;
		if(!(var000D == 0x0005)) goto labelFunc080D_02EA;
		UcMessage("\"I have gone as low as I can, ");
		UcMessage(var0002);
		UcMessage(". ");
		UcMessage(var0004);
		UcMessage(" guilders. Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc080D_02D7;
		UI_set_npc_id_BD(0xFFF3, (var000B + 0x0004));
	labelFunc080D_02D7:
		if(!Func0955()) goto labelFunc080D_02E1;
		rr = var0004;
	labelFunc080D_02E1:
		var0008 = 0x0000;
		goto labelFunc080D_030C;
	labelFunc080D_02EA:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is my final offer. Is this acceptable to thee?\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc080D_030C;
		UI_set_npc_id_BD(0xFFF3, (var000B + 0x0002));
	labelFunc080D_030C:
		goto labelFunc080D_0445;
	labelFunc080D_030F:
		if(!(var000D == 0x0002)) goto labelFunc080D_0355;
		if(!(var0010 == 0x0001)) goto labelFunc080D_032D;
		UcMessage("\"I see that thou dost appreciate quality goods! Wouldst thou pay ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc080D_032D:
		if(!(var0010 == 0x0002)) goto labelFunc080D_0341;
		UcMessage("\"Thou art a most perceptive person. But wouldst thou pay ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc080D_0341:
		if(!(var0010 == 0x0003)) goto labelFunc080D_0355;
		UcMessage("\"I can tell that we shall be doing business regularly. Thy price is fair, but I would prefer to receive ");
		UcMessage(var0004);
		UcMessage(" guilders. Is this acceptable?\"");
		UcSay;
	labelFunc080D_0355:
		if(!(var000D == 0x0003)) goto labelFunc080D_039B;
		if(!(var0010 == 0x0001)) goto labelFunc080D_0373;
		UcMessage("\"Hmmm... perhaps ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc080D_0373:
		if(!(var0010 == 0x0002)) goto labelFunc080D_0387;
		UcMessage("\"I would be more easy if thou wouldst pay at least ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc080D_0387:
		if(!(var0010 == 0x0003)) goto labelFunc080D_039B;
		UcMessage("\"Surely, thou hast more funds than this! I think that thou couldst afford ");
		UcMessage(var0004);
		UcMessage(" guilders. Is this acceptable?\"");
		UcSay;
	labelFunc080D_039B:
		if(!(var000D == 0x0004)) goto labelFunc080D_03E1;
		if(!(var0010 == 0x0001)) goto labelFunc080D_03B9;
		UcMessage("\"But I would lose mine employment if I sold at such a price! Wouldst thou consider ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc080D_03B9:
		if(!(var0010 == 0x0002)) goto labelFunc080D_03CD;
		UcMessage("\"Thou art not serious! Surely, thou canst tell that ");
		UcMessage(var0004);
		UcMessage(" guilders is a more fair price.\"");
		UcSay;
	labelFunc080D_03CD:
		if(!(var0010 == 0x0003)) goto labelFunc080D_03E1;
		UcMessage("\"Dost thou think me a simpleton! I must accept no less than ");
		UcMessage(var0004);
		UcMessage(" guilders, or I should be ashamed of myself. Dost thou accept?\"");
		UcSay;
	labelFunc080D_03E1:
		if(!(var000D == 0x0005)) goto labelFunc080D_0445;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc080D_0405;
		UcMessage("\"Of course not. ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc080D_0405:
		if(!(var0010 == 0x0002)) goto labelFunc080D_0419;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders, and no less!\"");
		UcSay;
	labelFunc080D_0419:
		if(!(var0010 == 0x0003)) goto labelFunc080D_042D;
		UcMessage("\"I should be a fool if I sold at such a price. ");
		UcMessage(var0004);
		UcMessage(" guilders is where I must stand.\"");
		UcSay;
	labelFunc080D_042D:
		if(!(var000B < 0x001F)) goto labelFunc080D_0445;
		UI_set_npc_id_BD(0xFFF3, (var000B + 0x0001));
	labelFunc080D_0445:
		goto labelFunc080D_0055;
	labelFunc080D_0448:
		return rr;
}
Func080E 0x80E ()
{
	var var0000;
	var var0001;

	var0000 = UI_find_nearby_41(0xFFC0, 0x013E, 0x001E, 0x0000);
	UI_init_conversation_85();
	UI_show_npc_face0_05(0xFFC0, 0x0000);
	UcMessage("\"Leave me alone, mage. I am but a little girl.\"");
	UcSay;
	UI_show_npc_face1_06(0xFEE1, 0x0000);
	UcMessage("\"I know what thou art, Bane of Chaos. That body is but a shell that thou dost wear.\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_set_conversation_slot_09(0x0000);
	UcMessage("\"I can escape thee! My powers dwarf thine...\"");
	UcSay;
	UI_show_npc_face1_06(0xFEE1, 0x0000);
	UcMessage("\"Thy powers have dwindled due to thine imprisonment. Thou art no match for me, now...\"");
	UcSay;
	UI_remove_npc_face1_08();
	UI_remove_npc_face0_07();
	var0001 = UI_delayed_execute_usecode_array_02(0xFFC0, [0x23, 0x55, 0x0440], 0x003C);
	if(!var0000) goto labelFunc080E_010B;
	UI_set_item_flag_A4(var0000, 0x001D);
	UI_set_alignment_4A(var0000, 0x0002);
	var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x0358, 0x0003, 0xFE99, 0x0012);
	var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x0327, 0x0003, 0xFE99, 0x0012);
	var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x011F, 0x0001, 0xFE99, 0x0012);
	var0001 = UI_add_cont_items_36(var0000, 0x0001, 0x02DB, 0x0006, 0xFE99, 0x0012);
	UI_set_schedule_type_25(var0000, 0x0000);
	UI_set_opponent_5B(var0000, 0xFFC0);
	UI_set_oppressor_5E(var0000, 0xFFC0);
	labelFunc080E_010B:
		UI_set_alignment_4A(0xFFC0, 0x0001);
		var0001 = UI_add_cont_items_36(0xFFC0, 0x0001, 0x01A8, 0x0005, 0xFE99, 0x0012);
		var0001 = UI_add_cont_items_36(0xFFC0, 0x0001, 0x0359, 0x0002, 0xFE99, 0x0012);
		var0001 = UI_add_cont_items_36(0xFFC0, 0x0001, 0x02A4, 0x0005, 0xFE99, 0x0012);
		var0001 = UI_add_cont_items_36(0xFFC0, 0x0001, 0x020F, 0x0001, 0xFE99, 0x0012);
		UI_set_schedule_type_25(0xFFC0, 0x0000);
		UI_set_opponent_5B(0xFFC0, var0000);
		UI_set_oppressor_5E(0xFFC0, var0000);
		UI_end_conversation_86();
		abrt();
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);

Func080F 0x80F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = true;
	var0001 = ["nothing", "bread", "water"];
	var0002 = [0x0000, 0x0179, 0x0268];
	var0003 = [0xFE99, 0x0000, 0x0006];
	var0004 = [0x0000, 0x0014, 0x000A];
	var0005 = 0x03B8;
	var0006 = [0x0000, 0x0001, 0x0001];
	var0007 = [0x0000, 0x0001, 0x0001];
	UcMessage("\"What dost thou wish, felon?\"");
	UcSay;
	labelFunc080F_0068:
		if(!var0000) goto labelFunc080F_0196;
		var0008 = Func0957(var0001);
		if(!(var0008 == 0x0001)) goto labelFunc080F_008C;
		UcMessage("\"Perhaps another time, then.\"");
		UcSay;
		var0000 = false;
		goto labelFunc080F_0193;
	labelFunc080F_008C:
		var0009 = var0004[var0008];
		var000A = 0x0000;
		if(!(var0008 == 0x0002)) goto labelFunc080F_00AF;
		UcMessage("\"The price is ");
		UcMessage(var0009);
		UcMessage(" guilders... I have a very limited supply. Dost thou accept?\"");
		UcSay;
	labelFunc080F_00AF:
		if(!(var0008 == 0x0003)) goto labelFunc080F_00C3;
		UcMessage("\"For a jug of water, my price is ");
		UcMessage(var0009);
		UcMessage(" guilders. Dost thou find this acceptable?\"");
		UcSay;
	labelFunc080F_00C3:
		if(!(var0009 == var0004[var0008])) goto labelFunc080F_00EA;
		if(!(Func0955() == true)) goto labelFunc080F_00E1;
		var000B = var0009;
		goto labelFunc080F_00E7;
	labelFunc080F_00E1:
		var000B = 0x0000;
	labelFunc080F_00E7:
		goto labelFunc080F_00EE;
	labelFunc080F_00EA:
		UcMessage("\"This is not Moonshade, felon. My prices are fixed... Take them or leave.\"");
		UcSay;
	labelFunc080F_00EE:
		if(!(var000B > 0x0000)) goto labelFunc080F_0156;
		if(!(var0007[var0008] == 0x0001)) goto labelFunc080F_0131;
		UcMessage("\"How many wouldst thou like?\"");
		UcSay;
		var000A = Func0943(var0002[var0008], var0003[var0008], var0006[var0008], var0005, var000B, 0x0014, 0x0001, false);
		goto labelFunc080F_0156;
	labelFunc080F_0131:
		var000A = Func0943(var0002[var0008], var0003[var0008], var0006[var0008], var0005, var000B, 0x0000, 0x0001, false);
	labelFunc080F_0156:
		if(!(var000A == 0x0001)) goto labelFunc080F_0167;
		UcMessage("\"May it nourish thee, felon.\"");
		UcSay;
		goto labelFunc080F_0189;
	labelFunc080F_0167:
		if(!(var000A == 0x0002)) goto labelFunc080F_0178;
		UcMessage("\"Thou canst not handle so much, felon.\"");
		UcSay;
		goto labelFunc080F_0189;
	labelFunc080F_0178:
		if(!(var000A == 0x0003)) goto labelFunc080F_0189;
		UcMessage("\"As thou dost not have the guilders to pay me, I am afraid thou shalt go hungry, felon.\"");
		UcSay;
		goto labelFunc080F_0189;
	labelFunc080F_0189:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0000 = Func0955();
	labelFunc080F_0193:
		goto labelFunc080F_0068;
	labelFunc080F_0196:
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);

Func0810 0x810 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0000 = true;
	var0001 = ["nothing", "potion", "bandages"];
	var0002 = [0x0000, 0x0154, 0x033B];
	var0003 = [0xFE99, 0x0001, 0x0001];
	var0004 = [0x0000, 0x0050, 0x001E];
	var0005 = 0x03B8;
	var0006 = [0x0000, 0x0001, 0x0001];
	var0007 = [0x0000, 0x0001, 0x0001];
	UcMessage("\"What dost thou care to buy, felon?\"");
	UcSay;
	labelFunc0810_0068:
		if(!var0000) goto labelFunc0810_0196;
		var0008 = Func0957(var0001);
		if(!(var0008 == 0x0001)) goto labelFunc0810_008C;
		UcMessage("\"Perhaps another time, then.\"");
		UcSay;
		var0000 = false;
		goto labelFunc0810_0193;
	labelFunc0810_008C:
		var0009 = var0004[var0008];
		var000A = 0x0000;
		if(!(var0008 == 0x0002)) goto labelFunc0810_00AF;
		UcMessage("\"The price is ");
		UcMessage(var0009);
		UcMessage(" guilders... There is not much to spare for felons. Dost thou accept?\"");
		UcSay;
	labelFunc0810_00AF:
		if(!(var0008 == 0x0003)) goto labelFunc0810_00C3;
		UcMessage("\"For ");
		UcMessage(var0009);
		UcMessage(" guilders I can sell thee a bandage. What dost thou say?\"");
		UcSay;
	labelFunc0810_00C3:
		if(!(var0009 == var0004[var0008])) goto labelFunc0810_00EA;
		if(!(Func0955() == true)) goto labelFunc0810_00E1;
		var000B = var0009;
		goto labelFunc0810_00E7;
	labelFunc0810_00E1:
		var000B = 0x0000;
	labelFunc0810_00E7:
		goto labelFunc0810_00EE;
	labelFunc0810_00EA:
		UcMessage("\"Pay or leave.\"");
		UcSay;
	labelFunc0810_00EE:
		if(!(var000B > 0x0000)) goto labelFunc0810_0156;
		if(!(var0007[var0008] == 0x0001)) goto labelFunc0810_0131;
		UcMessage("\"How many wouldst thou like?\"");
		UcSay;
		var000A = Func0943(var0002[var0008], var0003[var0008], var0006[var0008], var0005, var000B, 0x0014, 0x0001, false);
		goto labelFunc0810_0156;
	labelFunc0810_0131:
		var000A = Func0943(var0002[var0008], var0003[var0008], var0006[var0008], var0005, var000B, 0x0000, 0x0001, false);
	labelFunc0810_0156:
		if(!(var000A == 0x0001)) goto labelFunc0810_0167;
		UcMessage("\"Enjoy thy purchase, felon.\"");
		UcSay;
		goto labelFunc0810_0189;
	labelFunc0810_0167:
		if(!(var000A == 0x0002)) goto labelFunc0810_0178;
		UcMessage("\"Thou canst not handle so much, felon.\"");
		UcSay;
		goto labelFunc0810_0189;
	labelFunc0810_0178:
		if(!(var000A == 0x0003)) goto labelFunc0810_0189;
		UcMessage("\"Since thou dost not have the guilders to pay me, I am afraid thou wilt have to suffer, felon.\"");
		UcSay;
		goto labelFunc0810_0189;
	labelFunc0810_0189:
		UcMessage("\"Dost thou wish another purchase?\"");
		UcSay;
		var0000 = Func0955();
	labelFunc0810_0193:
		goto labelFunc0810_0068;
	labelFunc0810_0196:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0812 0x812 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0811 0x811 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "bear pelt", "beaver pelt", "muskrat pelt", "snow leopard pelt", "gwani pelt", "bear cloak", "leopard cloak", "gwani cloak", "fur cap", "fur boots"];
	var0004 = [0x0000, 0x03D1, 0x03D1, 0x03D1, 0x03D1, 0x03D1, 0x00E3, 0x00E3, 0x00E3, 0x03EC, 0x024B];
	var0005 = [0xFE99, 0x0001, 0x0002, 0x0004, 0x0008, 0x0009, 0x0001, 0x0002, 0x0004, 0x0001, 0x0003];
	var0006 = [0x0000, 0x0050, 0x003C, 0x002D, 0x005A, 0x0064, 0x0078, 0x0096, 0x00AF, 0x0016, 0x001E];
	var0007 = [0x0000, 0x002D, 0x001E, 0x001B, 0x0032, 0x0032, 0x004B, 0x0055, 0x0050, 0x000D, 0x0011];
	var0008 = 0x03B7;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc0811_0141;
	var000B = "menfolk";
	var000C = "Milady";
	goto labelFunc0811_014D;
	labelFunc0811_0141:
		var000B = "ladies";
		var000C = "Milord";
	labelFunc0811_014D:
		UcMessage("\"What wouldst thou care to purchase, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0811_0157:
		if(!var0002) goto labelFunc0811_047F;
		var000D = Func0957(var0003);
		if(!(var000D == 0x0001)) goto labelFunc0811_017B;
		UcMessage("\"Some other time then.\"");
		UcSay;
		var0002 = false;
		goto labelFunc0811_047C;
	labelFunc0811_017B:
		var000E = var0006[var000D];
		var000F = 0x0000;
		var0010 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0010 == 0x0001)) goto labelFunc0811_01A7;
		var0011 = "Dost thou accept?";
	labelFunc0811_01A7:
		if(!(var0010 == 0x0002)) goto labelFunc0811_01B7;
		var0011 = "Will this be fine with thee?";
	labelFunc0811_01B7:
		if(!(var0010 == 0x0003)) goto labelFunc0811_01C7;
		var0011 = "What dost thou say?";
	labelFunc0811_01C7:
		if(!(var0010 == 0x0004)) goto labelFunc0811_01DB;
		var0011 = (var000C + ", dost thou agree?");
	labelFunc0811_01DB:
		if(!(var0010 == 0x0005)) goto labelFunc0811_01EF;
		var0011 = (var000C + ", is the price acceptable?");
	labelFunc0811_01EF:
		if(!(var000D == 0x0002)) goto labelFunc0811_0213;
		UcMessage("\"I can let thee have it for ");
		UcMessage(var000E);
		UcMessage(" monetari. It will keep thy toes warm on a frosty night, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_0213:
		if(!(var000D == 0x0003)) goto labelFunc0811_0231;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage(" monetari for a nice beaver rug is not much.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_0231:
		if(!(var000D == 0x0004)) goto labelFunc0811_024F;
		UcMessage("\"My muskrat pelts are cheap if thou dost care about saving thy money. ");
		UcMessage(var000E);
		UcMessage(" monetari is what I charge.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_024F:
		if(!(var000D == 0x0005)) goto labelFunc0811_0273;
		UcMessage("\"Ah, the ");
		UcMessage(var000B);
		UcMessage(" enjoy a good romp on snow leopard skin! ");
		UcMessage(var000E);
		UcMessage(" monetari is my price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_0273:
		if(!(var000D == 0x0006)) goto labelFunc0811_0297;
		UcMessage("\"There is something very exotic about Gwani pelts, ");
		UcMessage(var0000);
		UcMessage(". For ");
		UcMessage(var000E);
		UcMessage(" monetari I will sell thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_0297:
		if(!(var000D == 0x0007)) goto labelFunc0811_02B5;
		UcMessage("\"If thou dost want something to keep thee warm on cold winter days, thou shouldst buy one of my bear cloaks. I can sell it to thee for ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_02B5:
		if(!(var000D == 0x0008)) goto labelFunc0811_02D3;
		UcMessage("\"There is nothing finer than the feel of snow leopard skin upon thine own! For ");
		UcMessage(var000E);
		UcMessage(" monetari it is thine.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_02D3:
		if(!(var000D == 0x0009)) goto labelFunc0811_02F1;
		UcMessage("\"A Gwani cloak will protect thee from the cold better than any other type of fur! For ");
		UcMessage(var000E);
		UcMessage(" monetari I can sell thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_02F1:
		if(!(var000D == 0x000A)) goto labelFunc0811_030F;
		UcMessage("\"I will sell thee a nice warm fur cap for ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_030F:
		if(!(var000D == 0x000B)) goto labelFunc0811_0333;
		UcMessage("\"For ");
		UcMessage(var000E);
		UcMessage(" monetari, thou canst purchase fur-lined boots, ");
		UcMessage(var0000);
		UcMessage(". A pair will keep thee warm even in the frozen north.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
	labelFunc0811_0333:
		if(!(var000E == var0007[var000D])) goto labelFunc0811_0358;
		if(!Func0955()) goto labelFunc0811_034F;
		var0012 = var000E;
		goto labelFunc0811_0355;
	labelFunc0811_034F:
		var0012 = 0x0000;
	labelFunc0811_0355:
		goto labelFunc0811_036A;
	labelFunc0811_0358:
		var0012 = Func0812(var0006[var000D], var0007[var000D]);
	labelFunc0811_036A:
		if(!(var0012 > 0x0000)) goto labelFunc0811_03CF;
		if(!(var000A[var000D] == 0x0001)) goto labelFunc0811_03AA;
		UcMessage("\"How many wouldst thou like?\"");
		UcSay;
		var000F = Func0943(var0004[var000D], var0005[var000D], 0x0001, var0008, var0012, 0x0005, 0x0001, false);
		goto labelFunc0811_03CF;
	labelFunc0811_03AA:
		var000F = Func0943(var0004[var000D], var0005[var000D], var0009[var000D], var0008, var0012, 0x0000, 0x0001, false);
	labelFunc0811_03CF:
		if(!(var000F == 0x0001)) goto labelFunc0811_03E6;
		UcMessage("\"Enjoy thy purchase, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0811_0472;
	labelFunc0811_03E6:
		if(!(var000F == 0x0002)) goto labelFunc0811_03FD;
		UcMessage("\"Thou canst not carry thy purchase, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0811_0472;
	labelFunc0811_03FD:
		if(!(var000F == 0x0003)) goto labelFunc0811_0472;
		var0013 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0811_043A;
		UI_show_npc_face0_05(0xFFBF, 0x0000);
		UcMessage("\"I am sorry, but I must make a living.\"");
		UcSay;
		goto labelFunc0811_043E;
	labelFunc0811_043A:
		UcMessage("\"Thou dost not have the monetari to pay me.\"");
		UcSay;
	labelFunc0811_043E:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFBF) + 0x0006))) goto labelFunc0811_045D;
		UI_set_npc_id_BD(0xFFBF, 0x001F);
		goto labelFunc0811_046F;
	labelFunc0811_045D:
		UI_set_npc_id_BD(0xFFBF, (UI_get_npc_id_BC(0xFFBF) + 0x0006));
	labelFunc0811_046F:
		goto labelFunc0811_0472;
	labelFunc0811_0472:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0811_047C:
		goto labelFunc0811_0157;
	labelFunc0811_047F:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0812 0x812 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!UI_is_pc_female_6F()) goto labelFunc0812_001D;
	var0004 = "Milady";
	goto labelFunc0812_0023;
	labelFunc0812_001D:
		var0004 = "Milord";
	labelFunc0812_0023:
		var0005 = var0001;
		var0006 = ((var0000 / 0x0003) * 0x0002);
		var0007 = (0x000F - (UI_get_npc_id_BC(0xFFBF) / 0x0002));
		var0008 = 0x0000;
		var0009 = 0x0001;
		var000A = 0x0000;
		var000B = 0x0002;
		var000C = UI_get_npc_id_BC(0xFFBF);
	labelFunc0812_006B:
		if(!var0009) goto labelFunc0812_048D;
		var000D = Func0956(["yes", "no", "haggle"]);
		if(!(var000D == "no")) goto labelFunc0812_0094;
		rr = 0x0000;
		goto labelFunc0812_00A7;
	labelFunc0812_0094:
		if(!(var000D == "yes")) goto labelFunc0812_00A7;
		var000E = 0x0000;
		goto labelFunc0812_00F6;
	labelFunc0812_00A7:
		var000F = Func0999(var0005, var0000, var000B, var0006, var000A, var0007, var0008);
		var000A = (var000A + 0x0001);
		var0008 = var000F[0x0004];
		var000E = var000F[0x0003];
		var0010 = var0005;
		var0005 = var000F[0x0002];
		var0006 = var000F[0x0001];
	labelFunc0812_00F6:
		var0011 = UI_get_random_00(0x0003);
		if(!(var000E < 0x0002)) goto labelFunc0812_02CC;
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0812_015F;
		if(!(var0011 == 0x0001)) goto labelFunc0812_0134;
		UcMessage("\"Thou dost not know what a good bargain thou hast made, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0812_0134:
		if(!(var0011 == 0x0002)) goto labelFunc0812_0148;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I have not lost money on a deal since I was a young girl.\"");
		UcSay;
	labelFunc0812_0148:
		if(!(var0011 == 0x0003)) goto labelFunc0812_015C;
		UcMessage("\"Thou art shrewd indeed, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0812_015C:
		goto labelFunc0812_0239;
	labelFunc0812_015F:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0812_01B4;
		if(!(var0011 == 0x0001)) goto labelFunc0812_0189;
		UcMessage("\"I must be taken with thee, ");
		UcMessage(var0002);
		UcMessage("! To offer such a price...\"");
		UcSay;
	labelFunc0812_0189:
		if(!(var0011 == 0x0002)) goto labelFunc0812_019D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou wilt put me out of business if thou dost stay much longer!\"");
		UcSay;
	labelFunc0812_019D:
		if(!(var0011 == 0x0003)) goto labelFunc0812_01B1;
		UcMessage("\"I have met my match in thee, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0812_01B1:
		goto labelFunc0812_0239;
	labelFunc0812_01B4:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0812_0203;
		if(!(var0011 == 0x0001)) goto labelFunc0812_01DE;
		UcMessage("\"No one else is willing to put such care into their work as I do, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0812_01DE:
		if(!(var0011 == 0x0002)) goto labelFunc0812_01F2;
		UcMessage("\"Thou art a worthy opponent, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0812_01F2:
		if(!(var0011 == 0x0003)) goto labelFunc0812_0200;
		UcMessage("\"Remember me, if thou dost ever need any more furs!\"");
		UcSay;
	labelFunc0812_0200:
		goto labelFunc0812_0239;
	labelFunc0812_0203:
		if(!(var0011 == 0x0001)) goto labelFunc0812_0217;
		UcMessage("\"Thou art always welcome in my shop, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0812_0217:
		if(!(var0011 == 0x0002)) goto labelFunc0812_022B;
		UcMessage("\"May it give thee great pleasure, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0812_022B:
		if(!(var0011 == 0x0003)) goto labelFunc0812_0239;
		UcMessage("\"'Tis hard to offer lower prices these days. The Goblins have hurt everyone's business.\"");
		UcSay;
	labelFunc0812_0239:
		UcMessage("\"Thou hast agreed to a price of ");
		UcMessage(var0005);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0812_026E;
		if(!(var000C > 0x0001)) goto labelFunc0812_0267;
		UI_set_npc_id_BD(0xFFBF, (var000C - 0x0002));
	labelFunc0812_0267:
		rr = var0005;
		goto labelFunc0812_02CC;
	labelFunc0812_026E:
		if(!(var0011 == 0x0001)) goto labelFunc0812_027C;
		UcMessage("\"Take care that thou dost not seek to play me for the fool!\"");
		UcSay;
	labelFunc0812_027C:
		if(!(var0011 == 0x0002)) goto labelFunc0812_0290;
		UcMessage("\"What of our bargain? Thou art rash, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0812_0290:
		if(!(var0011 == 0x0003)) goto labelFunc0812_029F;
		UcMessage("\"I will not deal with dishonorable people! Be gone!\"");
		UcSay;
		abrt();
	labelFunc0812_029F:
		if(!(0x001F < (var000C + 0x000A))) goto labelFunc0812_02BA;
		UI_set_npc_id_BD(0xFFBF, 0x001F);
		goto labelFunc0812_02C8;
	labelFunc0812_02BA:
		UI_set_npc_id_BD(0xFFBF, (var000C + 0x000A));
	labelFunc0812_02C8:
		rr = 0x0000;
	labelFunc0812_02CC:
		if(!(var0008 == 0x0001)) goto labelFunc0812_033A;
		if(!(var000E == 0x0005)) goto labelFunc0812_0315;
		UcMessage("\"I said that ");
		UcMessage(var0005);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000C < 0x001C)) goto labelFunc0812_0302;
		UI_set_npc_id_BD(0xFFBF, (var000C + 0x0004));
	labelFunc0812_0302:
		if(!Func0955()) goto labelFunc0812_030C;
		rr = var0005;
	labelFunc0812_030C:
		var0009 = 0x0000;
		goto labelFunc0812_0337;
	labelFunc0812_0315:
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" monetari is my final offer.\"");
		UcSay;
		if(!(var000C < 0x001E)) goto labelFunc0812_0337;
		UI_set_npc_id_BD(0xFFBF, (var000C + 0x0002));
	labelFunc0812_0337:
		goto labelFunc0812_048A;
	labelFunc0812_033A:
		if(!(var000E == 0x0002)) goto labelFunc0812_0392;
		if(!(var0011 == 0x0001)) goto labelFunc0812_035E;
		UcMessage("\"Thou knowest fine wares when thou dost see them, ");
		UcMessage(var0002);
		UcMessage(". How does ");
		UcMessage(var0005);
		UcMessage(" monetari sound?\"");
		UcSay;
	labelFunc0812_035E:
		if(!(var0011 == 0x0002)) goto labelFunc0812_0378;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", for a person of thy fine taste I will offer a special price. How does ");
		UcMessage(var0005);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0812_0378:
		if(!(var0011 == 0x0003)) goto labelFunc0812_0392;
		UcMessage("\"My price is ");
		UcMessage(var0005);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage(". Dost thou accept?\"");
		UcSay;
	labelFunc0812_0392:
		if(!(var000E == 0x0003)) goto labelFunc0812_03D8;
		if(!(var0011 == 0x0001)) goto labelFunc0812_03B0;
		UcMessage("\"I must think about my business. Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0812_03B0:
		if(!(var0011 == 0x0002)) goto labelFunc0812_03C4;
		UcMessage("\"I don't know... ");
		UcMessage(var0005);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0812_03C4:
		if(!(var0011 == 0x0003)) goto labelFunc0812_03D8;
		UcMessage("\"Perhaps ");
		UcMessage(var0005);
		UcMessage(" monetari? Such furs are rare...\"");
		UcSay;
	labelFunc0812_03D8:
		if(!(var000E == 0x0004)) goto labelFunc0812_0422;
		if(!(var0011 == 0x0001)) goto labelFunc0812_03FA;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" monetari is as low as I can go.\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0812_03FA:
		if(!(var0011 == 0x0002)) goto labelFunc0812_040E;
		UcMessage("\"I still cannot accept less than ");
		UcMessage(var0005);
		UcMessage(" monetari. I must pay for my shop...\"");
		UcSay;
	labelFunc0812_040E:
		if(!(var0011 == 0x0003)) goto labelFunc0812_0422;
		UcMessage("\"I can accept no less than ");
		UcMessage(var0005);
		UcMessage(" monetari... No matter how well I like thee.\"");
		UcSay;
	labelFunc0812_0422:
		if(!(var000E == 0x0005)) goto labelFunc0812_048A;
		var0005 = var0010;
		if(!(var0011 == 0x0001)) goto labelFunc0812_0446;
		UcMessage("\"My previous price stands, at ");
		UcMessage(var0005);
		UcMessage(" monetari. I would be a fool to take less.\"");
		UcSay;
	labelFunc0812_0446:
		if(!(var0011 == 0x0002)) goto labelFunc0812_045A;
		UcMessage("\"Better I should simply throw the furs into the street! ");
		UcMessage(var0005);
		UcMessage(" monetari, and no less!\"");
		UcSay;
	labelFunc0812_045A:
		if(!(var0011 == 0x0003)) goto labelFunc0812_0472;
		UcMessage("\"What dost thou take me for, a bear?! I am not that witless!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" monetari is as low as I will go!\"");
		UcSay;
	labelFunc0812_0472:
		if(!(var000C < 0x001F)) goto labelFunc0812_048A;
		UI_set_npc_id_BD(0xFFBF, (var000C + 0x0001));
	labelFunc0812_048A:
		goto labelFunc0812_006B;
	labelFunc0812_048D:
		return rr;
}
// externs
extern var Func0977 0x977 (var var0000);

var Func0813 0x813 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = UI_get_party_list_2B();
	var0000 = (UI_get_npc_object_23(0xFE9C) & var0000);
	var0001 = Func0977(var0000);
	var0002 = false;
	var0003 = 0x0001;
	labelFunc0813_0028:
		if(!((var0002 == false) && (var0003 <= var0001))) goto labelFunc0813_0064;
		var0004 = UI_give_last_created_42(var0000[var0003]);
		if(!var0004) goto labelFunc0813_0057;
		var0002 = var0000[var0003];
		goto labelFunc0813_0061;
	labelFunc0813_0057:
		var0003 = (var0003 + 0x0001);
	labelFunc0813_0061:
		goto labelFunc0813_0028;
	labelFunc0813_0064:
		if(!(var0002 == false)) goto labelFunc0813_00A1;
		var0004 = UI_update_last_created_2F(UI_get_object_position_20(0xFE9C));
		if(!var0004) goto labelFunc0813_0087;
		var0002 = true;
		goto labelFunc0813_00A1;
	labelFunc0813_0087:
		var0004 = UI_update_last_created_2F(UI_get_object_position_20(item));
		if(!var0004) goto labelFunc0813_00A1;
		var0002 = (true + 0x0001);
	labelFunc0813_00A1:
		rr = var0002;
		return rr;
}
Func0814 0x814 ()
{
	var var0000;
	var var0001;
	var var0002;

	UI_item_say_4D(0xFF4E, "@Thy loss, Avatar.@");
	var0000 = UI_find_nearby_41(0xFF4E, 0x0360, 0x0019, 0x0000);
	if(!var0000) goto labelFunc0814_0062;
	var0001 = UI_get_distance_21(0xFF4E, var0000);
	var0002 = UI_get_object_position_20(var0000);
	var0002[0x0001] = (var0002[0x0001] - 0x0002);
	UI_si_path_run_usecode_C1(0xFF4E, var0002, 0x000D, UI_get_npc_object_23(0xFF4E), 0x04B2, true);
	labelFunc0814_0062:
		return;
}
// externs
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0925 0x925 ();
extern Func0926 0x926 (var var0000);
extern Func0928 0x928 (var var0000);
extern Func07FA 0x7FA (var var0000);

Func0815 0x815 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	if(!(var0000 == 0x0001)) goto labelFunc0815_00A0;
	var0001 = UI_find_nearby_41(item, 0x0331, 0x0014, 0x0000);
	UI_halt_scheduled_71(var0001);
	UI_clear_item_say_4E(var0001);
	var0002 = UI_find_nearby_41(item, 0x037F, 0x001E, 0x0000);
	enum();
	labelFunc0815_003B:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0815_005A);
		var0006 = UI_execute_usecode_array_01(var0005, [0x23, 0x2D]);
		goto labelFunc0815_003B;
	labelFunc0815_005A:
		gflags[021C] = true;
		if(!var0001) goto labelFunc0815_009F;
		var0007 = UI_get_object_position_20(item);
		UI_si_path_run_usecode_C1(0xFF69, var0007, 0x0007, item, 0x0314, false);
		var0006 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@Thou art truly ethical!@"], 0x000A);
		UI_set_npc_id_BD(0xFF69, 0x0005);
	labelFunc0815_009F:
		abrt();
	labelFunc0815_00A0:
		if(!(var0000 == 0x0002)) goto labelFunc0815_0142;
		var0008 = false;
		var0009 = [0x03B4, 0x03B8, 0x03B7, 0x0284, 0x0285, 0x0286];
		enum();
	labelFunc0815_00C7:
		for (var000C in var0009 with var000A to var000B atend labelFunc0815_00EE);
		if(!Func097D(0xFE9C, 0x0001, var000C, 0xFE99, 0xFE99)) goto labelFunc0815_00EB;
		var0008 = true;
	labelFunc0815_00EB:
		goto labelFunc0815_00C7;
	labelFunc0815_00EE:
		if(!(var0008 == false)) goto labelFunc0815_00FA;
		gflags[021D] = true;
	labelFunc0815_00FA:
		var0006 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x07DA]);
		var000D = UI_find_nearby_41(item, 0x00C8, 0x00A0, 0x0010);
		enum();
	labelFunc0815_011E:
		for (var0010 in var000D with var000E to var000F atend labelFunc0815_0141);
		var0006 = UI_execute_usecode_array_01(var0010, [0x49, 0x0007, 0x0005]);
		goto labelFunc0815_011E;
	labelFunc0815_0141:
		abrt();
	labelFunc0815_0142:
		if(!(var0000 == 0x000A)) goto labelFunc0815_014F;
		Func0925();
	labelFunc0815_014F:
		if(!((var0000 > 0x0014) && (var0000 <= 0x0064))) goto labelFunc0815_0167;
		Func0926(var0000);
	labelFunc0815_0167:
		if(!((var0000 > 0x0064) && (var0000 < 0x00C8))) goto labelFunc0815_017F;
		Func0928(var0000);
	labelFunc0815_017F:
		if(!(var0000 == 0x00C8)) goto labelFunc0815_018D;
		item;
		calle();
	labelFunc0815_018D:
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func0817 0x817 (var var0000, var var0001);

Func0816 0x816 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	UI_push_answers_0E();
	var0000 = true;
	UcMessage("\"What coin wilt thou pay with?\"");
	UcSay;
	var0001 = Func0956(["Guilders", "Gold Coins"]);
	if(!(var0001 == "Guilders")) goto labelFunc0816_002B;
	var0002 = 0x03B8;
	labelFunc0816_002B:
		if(!(var0001 == "Gold Coins")) goto labelFunc0816_0041;
		var0002 = 0x0284;
		var0003 = 0x0001;
	labelFunc0816_0041:
		if(!var0000) goto labelFunc0816_03E0;
		UcMessage("\"In which circle of magic art thou interested?\"");
		UcSay;
		var0004 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh"]);
		var0004 = (var0004 - 0x0001);
		if(!(var0004 == 0x0000)) goto labelFunc0816_0083;
		goto labelFunc0816_03E0;
	labelFunc0816_0083:
		if(!(var0004 == 0x0001)) goto labelFunc0816_00CC;
		var0005 = ["nothing", "Great Ignite", "Locate"];
		var0006 = [0x0000, 0x0004, 0x0006];
		var0007 = [0x0000, 0x001E, 0x0023];
		var0008 = [0x0000, 0x0012, 0x0014];
		goto labelFunc0816_028E;
	labelFunc0816_00CC:
		if(!(var0004 == 0x0002)) goto labelFunc0816_0121;
		var0005 = ["nothing", "Destroy Trap", "Great Light", "Protection"];
		var0006 = [0x0000, 0x0009, 0x000C, 0x000F];
		var0007 = [0x0000, 0x0032, 0x003C, 0x0050];
		var0008 = [0x0000, 0x001E, 0x001E, 0x0032];
		goto labelFunc0816_028E;
	labelFunc0816_0121:
		if(!(var0004 == 0x0003)) goto labelFunc0816_0176;
		var0005 = ["nothing", "Curse", "Columna's Intuition", "Mass Protect"];
		var0006 = [0x0000, 0x0011, 0x0013, 0x0014];
		var0007 = [0x0000, 0x004B, 0x0078, 0x0064];
		var0008 = [0x0000, 0x0028, 0x0050, 0x003C];
		goto labelFunc0816_028E;
	labelFunc0816_0176:
		if(!(var0004 == 0x0004)) goto labelFunc0816_01BF;
		var0005 = ["nothing", "Mass Curse", "Unlock Magic"];
		var0006 = [0x0000, 0x001C, 0x001F];
		var0007 = [0x0000, 0x006E, 0x0078];
		var0008 = [0x0000, 0x003C, 0x0046];
		goto labelFunc0816_028E;
	labelFunc0816_01BF:
		if(!(var0004 == 0x0005)) goto labelFunc0816_01FC;
		var0005 = ["nothing", "Invisibility"];
		var0006 = [0x0000, 0x0024];
		var0007 = [0x0000, 0x009B];
		var0008 = [0x0000, 0x005A];
		goto labelFunc0816_028E;
	labelFunc0816_01FC:
		if(!(var0004 == 0x0006)) goto labelFunc0816_0245;
		var0005 = ["nothing", "Dispel Illusion", "Create Ammunition"];
		var0006 = [0x0000, 0x0029, 0x002E];
		var0007 = [0x0000, 0x00A5, 0x00AF];
		var0008 = [0x0000, 0x006E, 0x0078];
		goto labelFunc0816_028E;
	labelFunc0816_0245:
		if(!(var0004 == 0x0007)) goto labelFunc0816_028E;
		var0005 = ["nothing", "Energy Mist", "Poison Mist"];
		var0006 = [0x0000, 0x0031, 0x0034];
		var0007 = [0x0000, 0x00FA, 0x0118];
		var0008 = [0x0000, 0x00B4, 0x00BE];
		goto labelFunc0816_028E;
	labelFunc0816_028E:
		UcMessage("\"What spell art thou interested in buying?\"");
		UcSay;
		var0009 = Func0957(var0005);
		if(!(var0009 == 0x0001)) goto labelFunc0816_02AC;
		UcMessage("\"If that is what thou dost wish...\"");
		UcSay;
		goto labelFunc0816_03D3;
	labelFunc0816_02AC:
		var000A = var0006[var0009];
		var000B = (var0007[var0009] * var0003);
		var000C = (var0008[var0009] * var0003);
		var000D = var0005[var0009];
		if(!(var0001 == "Guilders")) goto labelFunc0816_0304;
		var000B = ((var0007[var0009] * 0x0003) / 0x0002);
		var000C = ((var0008[var0009] * 0x0003) / 0x0002);
	labelFunc0816_0304:
		if(!(var000B == var000C)) goto labelFunc0816_0344;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" will cost ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Wilt thou pay my price?\"");
		UcSay;
		var000E = 0x0000;
		if(!(Func0955() == true)) goto labelFunc0816_0341;
		var000E = Func096F(var000A, var0002, var000B);
	labelFunc0816_0341:
		goto labelFunc0816_0385;
	labelFunc0816_0344:
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" will cost thee ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Dost thou find this acceptable?\"");
		UcSay;
		var000F = Func0817(var000B, var000C);
		var000E = 0x0000;
		if(!(var000F > 0x0000)) goto labelFunc0816_0385;
		var000E = Func096F(var000A, var0002, var000F);
	labelFunc0816_0385:
		if(!(var000E == 0x0001)) goto labelFunc0816_0396;
		UcMessage("\"The spell is thine.\"");
		UcSay;
		goto labelFunc0816_03D3;
	labelFunc0816_0396:
		if(!(var000E == 0x0002)) goto labelFunc0816_03AB;
		UcMessage("\"Thou dost not have a spellbook.\"");
		UcSay;
		var0000 = false;
		goto labelFunc0816_03E0;
	labelFunc0816_03AB:
		if(!(var000E == 0x0003)) goto labelFunc0816_03C2;
		UcMessage("\"Thou dost not have enough ");
		UcMessage(var0001);
		UcMessage(" for that!\"");
		UcSay;
		goto labelFunc0816_03D3;
	labelFunc0816_03C2:
		if(!(var000E == 0x0004)) goto labelFunc0816_03D3;
		UcMessage("\"I believe thou dost already have that spell.\"");
		UcSay;
		goto labelFunc0816_03D3;
	labelFunc0816_03D3:
		UcMessage("\"Another spell perhaps?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc0816_0041;
	labelFunc0816_03E0:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0817 0x817 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = (0x000F - (UI_get_npc_id_BC(0xFFF2) / 0x0002));
	var0005 = 0x0000;
	var0006 = 0x0001;
	var0007 = 0x0000;
	var0008 = 0x0002;
	var0009 = UI_get_npc_id_BC(0xFFF2);
	labelFunc0817_0048:
		if(!var0006) goto labelFunc0817_040B;
		var000A = Func0956(["yes", "no", "haggle"]);
		if(!(var000A == "no")) goto labelFunc0817_0071;
		rr = 0x0000;
		goto labelFunc0817_0084;
	labelFunc0817_0071:
		if(!(var000A == "yes")) goto labelFunc0817_0084;
		var000B = 0x0000;
		goto labelFunc0817_00D3;
	labelFunc0817_0084:
		var000C = Func0999(var0002, var0000, var0008, var0003, var0007, var0004, var0005);
		var0007 = (var0007 + 0x0001);
		var0005 = var000C[0x0004];
		var000B = var000C[0x0003];
		var000D = var0002;
		var0002 = var000C[0x0002];
		var0003 = var000C[0x0001];
	labelFunc0817_00D3:
		var000E = UI_get_random_00(0x0003);
		if(!(var000B < 0x0002)) goto labelFunc0817_0262;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0817_012A;
		if(!(var000E == 0x0001)) goto labelFunc0817_010B;
		UcMessage("\"Thou art a shrewd and crafty bargainer, to convince me to accept this price...\"");
		UcSay;
	labelFunc0817_010B:
		if(!(var000E == 0x0002)) goto labelFunc0817_0119;
		UcMessage("\"Art thou certain thou hast not cast a dweomer upon me? I usually do not lower my prices so.\"");
		UcSay;
	labelFunc0817_0119:
		if(!(var000E == 0x0003)) goto labelFunc0817_0127;
		UcMessage("\"'Tis truly amazing... thou hast a facile tongue to convince me to lower my price by so much.\"");
		UcSay;
	labelFunc0817_0127:
		goto labelFunc0817_01DA;
	labelFunc0817_012A:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0817_016D;
		if(!(var000E == 0x0001)) goto labelFunc0817_014E;
		UcMessage("\"'Tis lower than I expected... but I shall agree to this price.\"");
		UcSay;
	labelFunc0817_014E:
		if(!(var000E == 0x0002)) goto labelFunc0817_015C;
		UcMessage("\"Thou art very good at bargaining. I will accept this price.\"");
		UcSay;
	labelFunc0817_015C:
		if(!(var000E == 0x0003)) goto labelFunc0817_016A;
		UcMessage("\"I see.\" *\"Very well, I will agree to this price even though 'tis lower than I did expect.\"");
		UcSay;
	labelFunc0817_016A:
		goto labelFunc0817_01DA;
	labelFunc0817_016D:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0817_01B0;
		if(!(var000E == 0x0001)) goto labelFunc0817_0191;
		UcMessage("\"Hmm...\" ~\"I suppose one must accept such a price -- though it could have been higher.\"");
		UcSay;
	labelFunc0817_0191:
		if(!(var000E == 0x0002)) goto labelFunc0817_019F;
		UcMessage("\"'Tis not such an indecent offer.\" ~\"I accept.\"");
		UcSay;
	labelFunc0817_019F:
		if(!(var000E == 0x0003)) goto labelFunc0817_01AD;
		UcMessage("\"I will accept	this price.\" ~\"I can always use the extra funds for research.\"");
		UcSay;
	labelFunc0817_01AD:
		goto labelFunc0817_01DA;
	labelFunc0817_01B0:
		if(!(var000E == 0x0001)) goto labelFunc0817_01BE;
		UcMessage("\"Very well.\" *\"I accept thine offer!\"");
		UcSay;
	labelFunc0817_01BE:
		if(!(var000E == 0x0002)) goto labelFunc0817_01CC;
		UcMessage("\"It hath been a pleasure!\" *\"I will accept thine offer.\"");
		UcSay;
	labelFunc0817_01CC:
		if(!(var000E == 0x0003)) goto labelFunc0817_01DA;
		UcMessage("\"Yes...\"*\"'Tis a very good price.\"");
		UcSay;
	labelFunc0817_01DA:
		UcMessage("\"So, have we agreed on the price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0817_020B;
		if(!(var0009 > 0x0001)) goto labelFunc0817_0204;
		UI_set_npc_id_BD(0xFFF2, (var0009 - 0x0002));
	labelFunc0817_0204:
		rr = var0002;
		goto labelFunc0817_0262;
	labelFunc0817_020B:
		if(!(var000E == 0x0001)) goto labelFunc0817_0219;
		UcMessage("\"Pray, resolve thy mind!\"");
		UcSay;
	labelFunc0817_0219:
		if(!(var000E == 0x0002)) goto labelFunc0817_0227;
		UcMessage("\"Dost thou waste the time of other mages as well?\"");
		UcSay;
	labelFunc0817_0227:
		if(!(var000E == 0x0003)) goto labelFunc0817_0235;
		UcMessage("\"Thou art most rude to renege on an offer!\"");
		UcSay;
	labelFunc0817_0235:
		if(!(0x001F < (var0009 + 0x000A))) goto labelFunc0817_0250;
		UI_set_npc_id_BD(0xFFF2, 0x001F);
		goto labelFunc0817_025E;
	labelFunc0817_0250:
		UI_set_npc_id_BD(0xFFF2, (var0009 + 0x000A));
	labelFunc0817_025E:
		rr = 0x0000;
	labelFunc0817_0262:
		if(!(var0005 == 0x0001)) goto labelFunc0817_02D2;
		if(!(var000B == 0x0005)) goto labelFunc0817_02AD;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou want it at this price?\"");
		UcSay;
		if(!(var0009 < 0x001C)) goto labelFunc0817_0298;
		UI_set_npc_id_BD(0xFFF2, (var0009 + 0x0004));
	labelFunc0817_0298:
		if(!(Func0955() == true)) goto labelFunc0817_02A4;
		rr = var0002;
	labelFunc0817_02A4:
		var0006 = 0x0000;
		goto labelFunc0817_02CF;
	labelFunc0817_02AD:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer.  I will go no lower.\"");
		UcSay;
		if(!(var0009 < 0x001E)) goto labelFunc0817_02CF;
		UI_set_npc_id_BD(0xFFF2, (var0009 + 0x0002));
	labelFunc0817_02CF:
		goto labelFunc0817_0408;
	labelFunc0817_02D2:
		if(!(var000B == 0x0002)) goto labelFunc0817_0318;
		if(!(var000E == 0x0001)) goto labelFunc0817_02F0;
		UcMessage("\"'Tis pleasant to find thee amenable. Wouldst thou consider ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0817_02F0:
		if(!(var000E == 0x0002)) goto labelFunc0817_0304;
		UcMessage("\"Thou seemest to appreciate the finer spells and what they are truly worth. How does ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0817_0304:
		if(!(var000E == 0x0003)) goto labelFunc0817_0318;
		UcMessage("\"What a pleasure it is to deal with thee. I offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0817_0318:
		if(!(var000B == 0x0003)) goto labelFunc0817_035E;
		if(!(var000E == 0x0001)) goto labelFunc0817_0336;
		UcMessage("\"I am not totally certain.... How about ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0817_0336:
		if(!(var000E == 0x0002)) goto labelFunc0817_034A;
		UcMessage("\"Thou wilt not obtain the spell so cheaply. I will give thee ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0817_034A:
		if(!(var000E == 0x0003)) goto labelFunc0817_035E;
		UcMessage("\"I suppose I must needs take thy money,...\" *\"but not at that price. ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0817_035E:
		if(!(var000B == 0x0004)) goto labelFunc0817_03A4;
		if(!(var000E == 0x0001)) goto labelFunc0817_037C;
		UcMessage("\"This is not a price that inspires me to appreciate thy finer qualities. For ");
		UcMessage(var0002);
		UcMessage(" I will like thee better.\"");
		UcSay;
	labelFunc0817_037C:
		if(!(var000E == 0x0002)) goto labelFunc0817_0390;
		UcMessage("\"For such a pitiful sum I could not even gain a tenth of what this spell cost me to learn! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0817_0390:
		if(!(var000E == 0x0003)) goto labelFunc0817_03A4;
		UcMessage("\"I am not certain who is the more foolish...\"*\"Thou for offering such a wretched amount, or myself for continuing to bargain with thee. I will offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0817_03A4:
		if(!(var000B == 0x0005)) goto labelFunc0817_0408;
		var0002 = var000D;
		if(!(var000E == 0x0001)) goto labelFunc0817_03C8;
		UcMessage("\"Art thou jesting? My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0817_03C8:
		if(!(var000E == 0x0002)) goto labelFunc0817_03DC;
		UcMessage("\"Art thou deaf, or merely an imbecile? I offer ");
		UcMessage(var0002);
		UcMessage(", and no less!\"");
		UcSay;
	labelFunc0817_03DC:
		if(!(var000E == 0x0003)) goto labelFunc0817_03F0;
		UcMessage("\"Thine offer is an insult to any mage! My offer doth stand at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0817_03F0:
		if(!(var0009 < 0x001F)) goto labelFunc0817_0408;
		UI_set_npc_id_BD(0xFFF2, (var0009 + 0x0001));
	labelFunc0817_0408:
		goto labelFunc0817_0048;
	labelFunc0817_040B:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0942 0x942 (var var0000);
extern var Func0955 0x955 ();
extern var Func0819 0x819 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0818 0x818 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "bag", "bucket", "fishing pole", "candle", "torch", "bedroll", "fur boots", "backpack", "stockings", "great helm", "crossbow", "bolts", "sextant", "mirror"];
	var0003 = [0x0000, 0x0322, 0x032A, 0x0296, 0x0150, 0x0253, 0x0247, 0x024B, 0x0321, 0x02A5, 0x021D, 0x0256, 0x02D3, 0x028A, 0x02A3];
	var0004 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0007, 0x0000, 0x0010];
	var0005 = 0x03B4;
	var0006 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0014, 0x0001, 0x0001];
	var0007 = [0x0000, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000];
	if(!((gflags[01A1] == true) && (gflags[01A2] == false))) goto labelFunc0818_018E;
	var0008 = [0x0000, 0x000F, 0x0012, 0x000C, 0x0002, 0x0004, 0x004B, 0x0032, 0x0064, 0x0019, 0x0096, 0x0113, 0x0026, 0x0032, 0x003C];
	var0009 = [0x0000, 0x000F, 0x0012, 0x000C, 0x0002, 0x0004, 0x004B, 0x0032, 0x0064, 0x0019, 0x0096, 0x0113, 0x0026, 0x0032, 0x003C];
	gflags[01A2] = true;
	goto labelFunc0818_01F4;
	labelFunc0818_018E:
		var0008 = [0x0000, 0x001E, 0x0023, 0x0019, 0x0004, 0x0008, 0x0096, 0x0064, 0x00C8, 0x0019, 0x012C, 0x0226, 0x004B, 0x0064, 0x0078];
		var0009 = [0x0000, 0x0011, 0x0013, 0x000D, 0x0002, 0x0004, 0x005A, 0x003C, 0x0073, 0x000F, 0x00BE, 0x015E, 0x002D, 0x0032, 0x0046];
	labelFunc0818_01F4:
		if(!var0001) goto labelFunc0818_07A6;
		if(!((gflags[01A1] == true) && (gflags[01A2] == false))) goto labelFunc0818_0212;
		UcMessage("\"Remember, ");
		UcMessage(var0000);
		UcMessage(", I have lowered all of my prices by half just this one time!\"");
		UcSay;
	labelFunc0818_0212:
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc0818_02BC;
		var000B = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000B == 0x0001)) goto labelFunc0818_0242;
		var000C = "Hmmm... ah,";
	labelFunc0818_0242:
		if(!(var000B == 0x0002)) goto labelFunc0818_0252;
		var000C = "Ah... er,";
	labelFunc0818_0252:
		if(!(var000B == 0x0003)) goto labelFunc0818_0262;
		var000C = "Hmmm... I see,";
	labelFunc0818_0262:
		var000B = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000B == 0x0001)) goto labelFunc0818_027F;
		var000D = "perhaps later,";
	labelFunc0818_027F:
		if(!(var000B == 0x0002)) goto labelFunc0818_028F;
		var000D = "another time then,";
	labelFunc0818_028F:
		if(!(var000B == 0x0003)) goto labelFunc0818_029F;
		var000D = "come again,";
	labelFunc0818_029F:
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" ");
		UcMessage(var000D);
		UcMessage(" ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc0818_07A3;
	labelFunc0818_02BC:
		var000E = var0008[var000A];
		var000F = 0x0000;
		var000B = UI_die_roll_17(0x0001, 0x0006);
		if(!(var000B == 0x0001)) goto labelFunc0818_02E8;
		var0010 = "Dost thou accept?";
	labelFunc0818_02E8:
		if(!(var000B == 0x0002)) goto labelFunc0818_02F8;
		var0010 = "Dost thou find this price acceptable?";
	labelFunc0818_02F8:
		if(!(var000B == 0x0003)) goto labelFunc0818_0308;
		var0010 = "Let me see... ah, yes! Dost thou find the price agreeable?";
	labelFunc0818_0308:
		if(!(var000B == 0x0004)) goto labelFunc0818_0318;
		var0010 = "Dost thou agree?";
	labelFunc0818_0318:
		if(!(var000B == 0x0005)) goto labelFunc0818_0328;
		var0010 = "Is the price acceptable?";
	labelFunc0818_0328:
		if(!(var000B == 0x0006)) goto labelFunc0818_0338;
		var0010 = "Ah, hmmm... Is the price acceptable?";
	labelFunc0818_0338:
		if(!(var000A == 0x0002)) goto labelFunc0818_0395;
		UcMessage("\"Let me think... ah, that will be 300 filari.\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc0818_0375;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Father! Leather bags sell for ");
		UcMessage(var000E);
		UcMessage(" filari!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, er... thou art right, my dear!\"");
		UcSay;
		goto labelFunc0818_0385;
	labelFunc0818_0375:
		UcMessage("\"Er, that's not right... oh, I am sorry, ");
		UcMessage(var0000);
		UcMessage(", I sell my bags for ");
		UcMessage(var000E);
		UcMessage(" filari!\"");
		UcSay;
	labelFunc0818_0385:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "bags";
	labelFunc0818_0395:
		if(!(var000A == 0x0003)) goto labelFunc0818_03B3;
		UcMessage("\"I stock the finest buckets in Fawn! Hmmm... I sell them for ");
		UcMessage(var000E);
		UcMessage(" filari each.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0818_03B3:
		if(!(var000A == 0x0004)) goto labelFunc0818_03D7;
		UcMessage("\"Thou wilt surely require one if thou dost remain in Fawn, ");
		UcMessage(var0000);
		UcMessage(". Ah... hmmm, I will sell one to thee for the fair price of ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0818_03D7:
		if(!(var000A == 0x0005)) goto labelFunc0818_03F7;
		UcMessage("\"That will be ");
		UcMessage(var000E);
		UcMessage(" filari each for a fine wax candle. ");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "candles";
	labelFunc0818_03F7:
		if(!(var000A == 0x0006)) goto labelFunc0818_041B;
		UcMessage("\"A torch?  Ah, yes... My torches are of the finest quality! I can sell one to thee for ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "torches";
	labelFunc0818_041B:
		if(!(var000A == 0x0007)) goto labelFunc0818_0439;
		UcMessage("\"Ah, I can sell this to thee for ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
	labelFunc0818_0439:
		if(!(var000A == 0x0008)) goto labelFunc0818_0463;
		UcMessage("\"I have a few fur boots left, ");
		UcMessage(var0000);
		UcMessage(". I can sell a pair to thee for ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of fur boots";
	labelFunc0818_0463:
		if(!(var000A == 0x0009)) goto labelFunc0818_04C6;
		UcMessage("\"These are the finest packs made, ");
		UcMessage(var0000);
		UcMessage("! For one of these backpacks I ask 15 filari.\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc0818_04A6;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Father! We sell those packs for ");
		UcMessage(var000E);
		UcMessage(" filari!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, thou art correct, daughter...\"");
		UcSay;
		goto labelFunc0818_04B6;
	labelFunc0818_04A6:
		UcMessage("\"Uh, hmmm... I do believe I made a mistake, ");
		UcMessage(var0000);
		UcMessage(". I sell my backpacks for ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0818_04B6:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "backpacks";
	labelFunc0818_04C6:
		if(!(var000A == 0x000A)) goto labelFunc0818_0574;
		UcMessage("\"Ah, Alyssand makes these stockings, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		if(!UI_is_pc_female_6F()) goto labelFunc0818_04EE;
		UcMessage("\"Ahem... I am sure that thou wouldst enjoy wearing a pair, ");
		UcMessage(var0000);
		UcMessage(".  I am assured that they are most comfortable.\"");
		UcSay;
		goto labelFunc0818_055A;
	labelFunc0818_04EE:
		UcMessage("\"If thou dost wish a pair for a loved one or a mistress, I am certain they would appreciate the fine quality, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		if(!Func0942(0xFFD2)) goto labelFunc0818_055A;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Father! Watch thy tongue!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"But, dear... he is a customer...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"'Tis rude of thee, father, to discuss such matters in public!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Ah, hmmm... she is very shrewish today, ");
		UcMessage(var0000);
		UcMessage(". I... er, apologize to thee for her behavior.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"FATHER!!!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0818_055A:
		UcMessage("\"Ah, where was I? Oh, yes... For a pair of these fine stockings I ask ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "stockings";
	labelFunc0818_0574:
		if(!(var000A == 0x000B)) goto labelFunc0818_0598;
		UcMessage("\"I can sell a great helm to thee for ");
		UcMessage(var000E);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "great helms";
	labelFunc0818_0598:
		if(!(var000A == 0x000C)) goto labelFunc0818_05C2;
		UcMessage("\"If thou wishest to fend off the Goblins, ");
		UcMessage(var0000);
		UcMessage(", thou couldst not do better than to own one of my crossbows! For ");
		UcMessage(var000E);
		UcMessage(" filari it is thine.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crossbows";
	labelFunc0818_05C2:
		if(!(var000A == 0x000D)) goto labelFunc0818_05E6;
		UcMessage("\"Ah, thou wilt need bolts for thy crossbow. Let me think... oh, that will be ");
		UcMessage(var000E);
		UcMessage(" filari for twenty bolts.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crossbow bolts, in bundles of twenty,";
	labelFunc0818_05E6:
		if(!(var000A == 0x000E)) goto labelFunc0818_0610;
		UcMessage("\"Hmmm... er, even though there are no sailing ships available, ");
		UcMessage(var0000);
		UcMessage(", I can give thee a good deal on a reliable sextant! For ");
		UcMessage(var000E);
		UcMessage(" filari one can be thine.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "sextants";
	labelFunc0818_0610:
		if(!(var000A == 0x000F)) goto labelFunc0818_064E;
		if(!UI_is_pc_female_6F()) goto labelFunc0818_0634;
		UcMessage("\"Oh, ");
		UcMessage(var0000);
		UcMessage(", thou shouldst purchase a hand mirror if thou dost not already own one. A lady of thy beauty doubtless needs one. For a mere ");
		UcMessage(var000E);
		UcMessage(" filari I can sell thee one.\"");
		UcSay;
		goto labelFunc0818_063E;
	labelFunc0818_0634:
		UcMessage("\"Perhaps a gift for a sweetheart? Ah, no, that would not be prudent of me to ask... For ");
		UcMessage(var000E);
		UcMessage(" filari I can sell thee a finely crafted hand mirror.\"");
		UcSay;
	labelFunc0818_063E:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "hand mirror";
	labelFunc0818_064E:
		if(!(var000E == var0009[var000A])) goto labelFunc0818_0673;
		if(!Func0955()) goto labelFunc0818_066A;
		var0012 = var000E;
		goto labelFunc0818_0670;
	labelFunc0818_066A:
		var0012 = 0x0000;
	labelFunc0818_0670:
		goto labelFunc0818_0685;
	labelFunc0818_0673:
		var0012 = Func0819(var0008[var000A], var0009[var000A]);
	labelFunc0818_0685:
		if(!(var0012 > 0x0000)) goto labelFunc0818_06F0;
		if(!(var0007[var000A] == 0x0001)) goto labelFunc0818_06CE;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000F = Func0943(var0003[var000A], var0004[var000A], var0006[var000A], var0005, var0012, 0x0005, 0x0001, false);
		goto labelFunc0818_06F0;
	labelFunc0818_06CE:
		var000F = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0005, var0012, 0x0000, 0x0001, false);
	labelFunc0818_06F0:
		if(!(var000F == 0x0001)) goto labelFunc0818_0707;
		UcMessage("\"I am certain that thou wilt enjoy thy purchase, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0818_0799;
	labelFunc0818_0707:
		if(!(var000F == 0x0002)) goto labelFunc0818_071E;
		UcMessage("\"Ah, er...\" ~\"I believe that thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0818_0799;
	labelFunc0818_071E:
		if(!(var000F == 0x0003)) goto labelFunc0818_0799;
		var000B = Func0992(0x0001, (("@But " + var0000) + ", we haven't the coins to purchase this.@"), 0x0000, false);
		if(!(var000B != 0xFE9C)) goto labelFunc0818_0761;
		UI_show_npc_face0_05(0xFFD1, 0x0000);
		UcMessage("\"Ah... it doth appear that thy purse is empty, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0818_0765;
	labelFunc0818_0761:
		UcMessage("\"'Twould appear thou dost not have enough money for that...\"");
		UcSay;
	labelFunc0818_0765:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFD1) + 0x0006))) goto labelFunc0818_0784;
		UI_set_npc_id_BD(0xFFD1, 0x001F);
		goto labelFunc0818_0796;
	labelFunc0818_0784:
		UI_set_npc_id_BD(0xFFD1, (UI_get_npc_id_BC(0xFFD1) + 0x0006));
	labelFunc0818_0796:
		goto labelFunc0818_0799;
	labelFunc0818_0799:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0818_07A3:
		goto labelFunc0818_01F4;
	labelFunc0818_07A6:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();

var Func0819 0x819 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var rr;

	var0002 = Func0954();
	var0003 = var0001;
	var0004 = ((var0000 / 0x0003) * 0x0002);
	var0005 = (0x000F - (UI_get_npc_id_BC(0xFFD1) / 0x0002));
	var0006 = 0x0000;
	var0007 = 0x0001;
	var0008 = 0x0000;
	var0009 = 0x0002;
	var000A = UI_get_npc_id_BC(0xFFD1);
	labelFunc0819_004E:
		if(!var0007) goto labelFunc0819_0467;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc0819_0077;
		rr = 0x0000;
		goto labelFunc0819_008A;
	labelFunc0819_0077:
		if(!(var000B == "yes")) goto labelFunc0819_008A;
		var000C = 0x0000;
		goto labelFunc0819_00D9;
	labelFunc0819_008A:
		var000D = Func0999(var0003, var0000, var0009, var0004, var0008, var0005, var0006);
		var0008 = (var0008 + 0x0001);
		var0006 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0003;
		var0003 = var000D[0x0002];
		var0004 = var000D[0x0001];
	labelFunc0819_00D9:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc0819_02A6;
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0819_013C;
		if(!(var000F == 0x0001)) goto labelFunc0819_0117;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage(". Please do not tell anyone in town of this!\"");
		UcSay;
	labelFunc0819_0117:
		if(!(var000F == 0x0002)) goto labelFunc0819_012B;
		UcMessage("\"Thy skill at trading is unsurpassed, ");
		UcMessage(var0002);
		UcMessage("...\"");
		UcSay;
	labelFunc0819_012B:
		if(!(var000F == 0x0003)) goto labelFunc0819_0139;
		UcMessage("\"Troublesome are the times that force me to agree to such bargains!\"");
		UcSay;
	labelFunc0819_0139:
		goto labelFunc0819_021A;
	labelFunc0819_013C:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0819_0195;
		if(!(var000F == 0x0001)) goto labelFunc0819_0160;
		UcMessage("\"Ah... My prices are fair here. Fair indeed.\"");
		UcSay;
	labelFunc0819_0160:
		if(!(var000F == 0x0002)) goto labelFunc0819_016E;
		UcMessage("\"Thou art a rogue! I would not believe mine ears if I were told I had sold goods at this price!\"");
		UcSay;
	labelFunc0819_016E:
		if(!(var000F == 0x0003)) goto labelFunc0819_0192;
		UcMessage("\"Let me see... Ah, I do believe thou wouldst make a good shopkeeper, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not often I make such unwise bargains!\"");
		UcSay;
		var000B = Func0992(0x0001, "@A shopkeeper? Surely thou art jesting?
						 The Avatar is embarked on a Quest!@", 0x0000, false);
	labelFunc0819_0192:
		goto labelFunc0819_021A;
	labelFunc0819_0195:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0819_01E4;
		if(!(var000F == 0x0001)) goto labelFunc0819_01B9;
		UcMessage("\"Most fair, if I do say so myself.\"");
		UcSay;
	labelFunc0819_01B9:
		if(!(var000F == 0x0002)) goto labelFunc0819_01CD;
		UcMessage("\"'Tis a pleasure to bargain with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0819_01CD:
		if(!(var000F == 0x0003)) goto labelFunc0819_01E1;
		UcMessage("\"What were we discussing? Ah, yes... 'Tis a fairer price than most would give, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0819_01E1:
		goto labelFunc0819_021A;
	labelFunc0819_01E4:
		if(!(var000F == 0x0001)) goto labelFunc0819_01F8;
		UcMessage("\"Thou hast made me a happy man, ");
		UcMessage(var0002);
		UcMessage("! Walk with Beauty!\"");
		UcSay;
	labelFunc0819_01F8:
		if(!(var000F == 0x0002)) goto labelFunc0819_020C;
		UcMessage("\"Ah... A blessing upon thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0819_020C:
		if(!(var000F == 0x0003)) goto labelFunc0819_021A;
		UcMessage("\"Hmmm... In these trying times, I must charge steep prices or become a pauper.\"");
		UcSay;
	labelFunc0819_021A:
		UcMessage("\"We have agreed on a price of ");
		UcMessage(var0003);
		UcMessage(" filari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0819_024F;
		if(!(var000A > 0x0001)) goto labelFunc0819_0248;
		UI_set_npc_id_BD(0xFFD1, (var000A - 0x0002));
	labelFunc0819_0248:
		rr = var0003;
		goto labelFunc0819_02A6;
	labelFunc0819_024F:
		if(!(var000F == 0x0001)) goto labelFunc0819_025D;
		UcMessage("\"What? I thought we had an agreement.\"");
		UcSay;
	labelFunc0819_025D:
		if(!(var000F == 0x0002)) goto labelFunc0819_026B;
		UcMessage("\"Thou hast sorely disappointed me. What of our bargain?\"");
		UcSay;
	labelFunc0819_026B:
		if(!(var000F == 0x0003)) goto labelFunc0819_0279;
		UcMessage("\"Is this honorable? What of our agreement?\"");
		UcSay;
	labelFunc0819_0279:
		if(!(0x001F < (var000A + 0x000A))) goto labelFunc0819_0294;
		UI_set_npc_id_BD(0xFFD1, 0x001F);
		goto labelFunc0819_02A2;
	labelFunc0819_0294:
		UI_set_npc_id_BD(0xFFD1, (var000A + 0x000A));
	labelFunc0819_02A2:
		rr = 0x0000;
	labelFunc0819_02A6:
		if(!(var0006 == 0x0001)) goto labelFunc0819_031A;
		if(!(var000C == 0x0005)) goto labelFunc0819_02F5;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(", I said that ");
		UcMessage(var0003);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000A < 0x001C)) goto labelFunc0819_02E2;
		UI_set_npc_id_BD(0xFFD1, (var000A + 0x0004));
	labelFunc0819_02E2:
		if(!Func0955()) goto labelFunc0819_02EC;
		rr = var0003;
	labelFunc0819_02EC:
		var0007 = 0x0000;
		goto labelFunc0819_0317;
	labelFunc0819_02F5:
		UcMessage("\"Very well. ");
		UcMessage(var0003);
		UcMessage(" filari is my final offer.\"");
		UcSay;
		if(!(var000A < 0x001E)) goto labelFunc0819_0317;
		UI_set_npc_id_BD(0xFFD1, (var000A + 0x0002));
	labelFunc0819_0317:
		goto labelFunc0819_0464;
	labelFunc0819_031A:
		if(!(var000C == 0x0002)) goto labelFunc0819_0366;
		if(!(var000F == 0x0001)) goto labelFunc0819_0338;
		UcMessage("\"Ah, hmmm... It pleases me to bargain with such a worthy soul. How doth ");
		UcMessage(var0003);
		UcMessage(" filari sound?\"");
		UcSay;
	labelFunc0819_0338:
		if(!(var000F == 0x0002)) goto labelFunc0819_0352;
		UcMessage("\"May the Truth of Beauty guide thee, ");
		UcMessage(var0002);
		UcMessage(". So, have we agreed on ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0819_0352:
		if(!(var000F == 0x0003)) goto labelFunc0819_0366;
		UcMessage("\"My price is ");
		UcMessage(var0003);
		UcMessage(" filari. Dost thou accept?\"");
		UcSay;
	labelFunc0819_0366:
		if(!(var000C == 0x0003)) goto labelFunc0819_03AC;
		if(!(var000F == 0x0001)) goto labelFunc0819_0384;
		UcMessage("\"These are trying times, and goods are scarce... Wouldst thou consider ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0819_0384:
		if(!(var000F == 0x0002)) goto labelFunc0819_0398;
		UcMessage("\"Hmmm... I am not certain... Dost thou like the sound of ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0819_0398:
		if(!(var000F == 0x0003)) goto labelFunc0819_03AC;
		UcMessage("\"But I must earn enough to pay my debts! ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc0819_03AC:
		if(!(var000C == 0x0004)) goto labelFunc0819_03FC;
		if(!(var000F == 0x0001)) goto labelFunc0819_03CE;
		UcMessage("\"I cannot possibly accept less than ");
		UcMessage(var0003);
		UcMessage(" filari!\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0819_03CE:
		if(!(var000F == 0x0002)) goto labelFunc0819_03E2;
		UcMessage("\"My costs are soaring! Surely thou canst see that I can go no lower than ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0819_03E2:
		if(!(var000F == 0x0003)) goto labelFunc0819_03FC;
		UcMessage("\"Ah, hmmm... ");
		UcMessage(var0002);
		UcMessage(", thou art not talking to a fool. I deserve no less than ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0819_03FC:
		if(!(var000C == 0x0005)) goto labelFunc0819_0464;
		var0003 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc0819_0420;
		UcMessage("\"I would rather be thrown into the canals than accept such a pitiful offer! My previous price stands, at ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc0819_0420:
		if(!(var000F == 0x0002)) goto labelFunc0819_0434;
		UcMessage("\"Thou must think that I am an imbecile to accept such a bargain. ");
		UcMessage(var0003);
		UcMessage(" filari, and no less!\"");
		UcSay;
	labelFunc0819_0434:
		if(!(var000F == 0x0003)) goto labelFunc0819_044C;
		UcMessage("\"Why, if I accepted such a price, I would have to close my shop and move away!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" filari is where I stand.\"");
		UcSay;
	labelFunc0819_044C:
		if(!(var000A < 0x001F)) goto labelFunc0819_0464;
		UI_set_npc_id_BD(0xFFD1, (var000A + 0x0001));
	labelFunc0819_0464:
		goto labelFunc0819_004E;
	labelFunc0819_0467:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func081A 0x81A ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = 0x03B4;
	var0003 = UI_count_objects_31(0xFE9B, var0002, 0xFE99, 0xFE99);
	var0004 = false;
	var0005 = false;
	if(!(gflags[0098] && (!gflags[005A]))) goto labelFunc081A_0099;
	if(!(gflags[01A5] == false)) goto labelFunc081A_004E;
	UcMessage("\"I cannot heal this infection! Thou must go to Harnna with the Varo leaves!\"");
	UcSay;
	UI_add_answer_0C("Varo Leaves");
	goto labelFunc081A_0096;
	labelFunc081A_004E:
		if(!Func097D(0xFE9B, 0x0005, 0x01D3, 0xFE99, 0x0003)) goto labelFunc081A_006A;
		UcMessage("\"I did already give thee all the Varo leaves that I have! Thou must go to Harnna to heal thine infection!\"");
		UcSay;
		goto labelFunc081A_0096;
	labelFunc081A_006A:
		UcMessage("\"Didst thou lose the leaves I did give thee?\"");
		UcSay;
		if(!Func0955()) goto labelFunc081A_0092;
		UcMessage("\"Very well, take five more of the Varo leaves and go thou quickly to Harnna!\"");
		UcSay;
		var0006 = Func099B(0xFE9C, 0x0005, 0x01D3, 0xFE99, 0x0003, false, true);
		goto labelFunc081A_0096;
	labelFunc081A_0092:
		UcMessage("\"Good. Go to Harnna! Quickly now!\"");
		UcSay;
	labelFunc081A_0096:
		goto labelFunc081A_0258;
	labelFunc081A_0099:
		if(!(gflags[0150] == false)) goto labelFunc081A_0243;
		UcMessage("\"I charge 50 filari to use my knowledge of herbs to attempt to heal. Dost thou agree to pay?\"");
		UcSay;
		if(!Func0955()) goto labelFunc081A_0236;
		if(!(var0003 < 0x0032)) goto labelFunc081A_00BC;
		UcMessage("\"Thou dost not have the filari to pay me!\"");
		UcSay;
		goto labelFunc081A_0258;
	labelFunc081A_00BC:
		UcMessage("\"Who is in need of healing? I will do what I can.\"");
		UcSay;
	labelFunc081A_00C0:
		var0007 = 0x0032;
		if(!(var0004 == true)) goto labelFunc081A_00D4;
		var0007 = 0x000A;
	labelFunc081A_00D4:
		var0008 = Func098E();
		var0008 = (0x0000 & var0008);
		var0009 = ["nobody"];
		enum();
	labelFunc081A_00EE:
		for (var000C in var0008 with var000A to var000B atend labelFunc081A_0115);
		if(!(!(var000C == 0x0000))) goto labelFunc081A_0112;
		var0009 = (var0009 & UI_get_npc_name_30(var000C));
	labelFunc081A_0112:
		goto labelFunc081A_00EE;
	labelFunc081A_0115:
		var000D = Func0957(var0009);
		var000D = var0008[var000D];
		if(!(var000D == 0x0000)) goto labelFunc081A_0138;
		UcMessage("\"As thou dost wish.\"");
		UcSay;
		goto labelFunc081A_0258;
	labelFunc081A_0138:
		var000E = UI_get_npc_number_47(var000D);
		var000F = UI_get_item_flag_A3(var000D, 0x0008);
		var0010 = Func095C(var000D, 0x0000);
		var0011 = Func095C(var000D, 0x0003);
		var0012 = UI_get_npc_name_30(var000D);
		if(!(var0010 > var0011)) goto labelFunc081A_01BA;
		var0013 = (var0010 - var0011);
		var0013 = (var0013 / 0x0002);
		Func095E(var000E, 0x0003, var0013);
		var0014 = UI_remove_party_items_34(var0007, var0002, 0xFE99, 0xFE99, true);
		var0005 = true;
		UcMessage("\"I have done all that I can.\"");
		UcSay;
		goto labelFunc081A_01FB;
	labelFunc081A_01BA:
		if(!(var000F == false)) goto labelFunc081A_01E0;
		if(!(var000E == 0xFE9C)) goto labelFunc081A_01D3;
		UcMessage("\"Thou art unwounded!\"");
		UcSay;
		goto labelFunc081A_01DD;
	labelFunc081A_01D3:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage(" is not wounded!\"");
		UcSay;
	labelFunc081A_01DD:
		goto labelFunc081A_01FB;
	labelFunc081A_01E0:
		if(!(var000E == 0xFE9C)) goto labelFunc081A_01F1;
		UcMessage("\"Thou art poisoned! I believe that I can cure such a simple venom.\"");
		UcSay;
		goto labelFunc081A_01FB;
	labelFunc081A_01F1:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage(" is poisoned! Fortunately, 'tis a simple venom to cure.\"");
		UcSay;
	labelFunc081A_01FB:
		if(!(var000F == true)) goto labelFunc081A_0233;
		if(!(var0005 == false)) goto labelFunc081A_021F;
		var0014 = UI_remove_party_items_34(var0007, var0002, 0xFE99, 0xFE99, true);
	labelFunc081A_021F:
		UI_clear_item_flag_A5(var000D, 0x0008);
		UcMessage("\"'Tis done, ");
		UcMessage(var0000);
		UcMessage("! The poison hath been removed.\"");
		UcSay;
	labelFunc081A_0233:
		goto labelFunc081A_0240;
	labelFunc081A_0236:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc081A_0240:
		goto labelFunc081A_0258;
	labelFunc081A_0243:
		UcMessage("\"Since thou didst agree to take my letter, I will help thee, ");
		UcMessage(var0001);
		UcMessage(". I will perform mine healing for only 10 filari.\"");
		UcSay;
		UcMessage("\"Whom dost thou wish to heal?\"");
		UcSay;
		var0004 = true;
		goto labelFunc081A_00C0;
	labelFunc081A_0258:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func081C 0x81C (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func081B 0x81B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "black pearls", "nightshade", "garlic", "ginseng", "mandrake", "onions", "apples", "carrots", "pumpkins"];
	var0003 = [0x0000, 0x034A, 0x034A, 0x034A, 0x034A, 0x034A, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x0000, 0x0002, 0x0004, 0x0005, 0x0003, 0x0016, 0x0010, 0x0012, 0x0015];
	var0005 = [0x0000, 0x0046, 0x0019, 0x000F, 0x0014, 0x0041, 0x0005, 0x0006, 0x0007, 0x0012];
	var0006 = [0x0000, 0x0023, 0x000D, 0x0009, 0x000B, 0x0023, 0x0002, 0x0003, 0x0004, 0x0009];
	var0007 = 0x03B4;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	labelFunc081B_0110:
		if(!var0001) goto labelFunc081B_0482;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc081B_017D;
		var000B = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000B == 0x0001)) goto labelFunc081B_0146;
		var000C = "Perhaps later,";
	labelFunc081B_0146:
		if(!(var000B == 0x0002)) goto labelFunc081B_0156;
		var000C = "Another time then,";
	labelFunc081B_0156:
		if(!(var000B == 0x0003)) goto labelFunc081B_0166;
		var000C = "Come again,";
	labelFunc081B_0166:
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc081B_047F;
	labelFunc081B_017D:
		var000D = var0005[var000A];
		var000E = 0x0000;
		var000B = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000B == 0x0001)) goto labelFunc081B_01A9;
		var000F = "Dost thou accept?";
	labelFunc081B_01A9:
		if(!(var000B == 0x0002)) goto labelFunc081B_01B9;
		var000F = "Wilt thou pay my price?";
	labelFunc081B_01B9:
		if(!(var000B == 0x0003)) goto labelFunc081B_01C9;
		var000F = "Dost thou agree?";
	labelFunc081B_01C9:
		if(!(var000B == 0x0004)) goto labelFunc081B_01D9;
		var000F = "Is the price acceptable?";
	labelFunc081B_01D9:
		if(!(var000B == 0x0005)) goto labelFunc081B_01E9;
		var000F = "Is that agreeable with thee?";
	labelFunc081B_01E9:
		if(!(var000A == 0x0002)) goto labelFunc081B_020A;
		UcMessage("\"These were bequeathed to me by my father. They are beautiful, are they not? I will sell one to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "black pearls";
	labelFunc081B_020A:
		if(!(var000A == 0x0003)) goto labelFunc081B_022E;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" filari is what I ask for nightshade.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "nightshade mushrooms";
	labelFunc081B_022E:
		if(!(var000A == 0x0004)) goto labelFunc081B_0252;
		UcMessage("\"I can sell thee sweet cloves of garlic for the pittance of ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "cloves of garlic";
	labelFunc081B_0252:
		if(!(var000A == 0x0005)) goto labelFunc081B_0279;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" filari is a fair price for my ginseng, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "ginseng roots";
	labelFunc081B_0279:
		if(!(var000A == 0x0006)) goto labelFunc081B_02A3;
		UcMessage("\"The mandrake root is very potent, ");
		UcMessage(var0000);
		UcMessage(". I charge ");
		UcMessage(var000D);
		UcMessage(" filari for one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "mandrake roots";
	labelFunc081B_02A3:
		if(!(var000A == 0x0007)) goto labelFunc081B_02C7;
		UcMessage("\"Mine onions are very sweet! ");
		UcMessage(var000D);
		UcMessage(" filari is what I ask.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "onions";
	labelFunc081B_02C7:
		if(!(var000A == 0x0008)) goto labelFunc081B_02E8;
		UcMessage("\"Thou shouldst try mine apples! I can give them to thee for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "apples";
	labelFunc081B_02E8:
		if(!(var000A == 0x0009)) goto labelFunc081B_0309;
		UcMessage("\"I can sell thee carrots for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "carrots";
	labelFunc081B_0309:
		if(!(var000A == 0x000A)) goto labelFunc081B_032A;
		UcMessage("\"Not many in Fawn care for pumpkin, but I think it makes an excellent pie. I can sell thee one for ");
		UcMessage(var000D);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "pumpkins";
	labelFunc081B_032A:
		if(!(var000D == var0006[var000A])) goto labelFunc081B_034F;
		if(!Func0955()) goto labelFunc081B_0346;
		var0011 = var000D;
		goto labelFunc081B_034C;
	labelFunc081B_0346:
		var0011 = 0x0000;
	labelFunc081B_034C:
		goto labelFunc081B_0361;
	labelFunc081B_034F:
		var0011 = Func081C(var0005[var000A], var0006[var000A]);
	labelFunc081B_0361:
		if(!(var0011 > 0x0000)) goto labelFunc081B_03CC;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc081B_03AA;
		UcMessage("\"How many ");
		UcMessage(var0010);
		UcMessage(" dost thou desire?\"");
		UcSay;
		var000E = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var0011, 0x0014, 0x0001, false);
		goto labelFunc081B_03CC;
	labelFunc081B_03AA:
		var000E = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var0011, 0x0000, 0x0001, false);
	labelFunc081B_03CC:
		if(!(var000E == 0x0001)) goto labelFunc081B_03E3;
		UcMessage("\"I hope thou dost enjoy thy purchase, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081B_0475;
	labelFunc081B_03E3:
		if(!(var000E == 0x0002)) goto labelFunc081B_03FA;
		UcMessage("\"I believe that thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081B_0475;
	labelFunc081B_03FA:
		if(!(var000E == 0x0003)) goto labelFunc081B_0475;
		var0012 = Func0992(0x0001, (("@But " + var0000) + ", we haven't the filari to purchase this.@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc081B_043D;
		UI_show_npc_face0_05(0xFFD0, 0x0000);
		UcMessage("\"Then I am afraid thou canst not purchase any of my goods, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc081B_0441;
	labelFunc081B_043D:
		UcMessage("\"I am afraid thou dost not have enough to pay for this...\"");
		UcSay;
	labelFunc081B_0441:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFD0) + 0x0006))) goto labelFunc081B_0460;
		UI_set_npc_id_BD(0xFFD0, 0x001F);
		goto labelFunc081B_0472;
	labelFunc081B_0460:
		UI_set_npc_id_BD(0xFFD0, (UI_get_npc_id_BC(0xFFD0) + 0x0006));
	labelFunc081B_0472:
		goto labelFunc081B_0475;
	labelFunc081B_0475:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc081B_047F:
		goto labelFunc081B_0110;
	labelFunc081B_0482:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func081C 0x81C (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var rr;

	var0002 = Func0954();
	var0003 = var0001;
	var0004 = ((var0000 / 0x0003) * 0x0002);
	var0005 = (0x000F - (UI_get_npc_id_BC(0xFFD0) / 0x0002));
	var0006 = 0x0000;
	var0007 = 0x0001;
	var0008 = 0x0000;
	var0009 = 0x0002;
	var000A = UI_get_npc_id_BC(0xFFD0);
	labelFunc081C_004E:
		if(!var0007) goto labelFunc081C_043B;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc081C_0077;
		rr = 0x0000;
		goto labelFunc081C_008A;
	labelFunc081C_0077:
		if(!(var000B == "yes")) goto labelFunc081C_008A;
		var000C = 0x0000;
		goto labelFunc081C_00D9;
	labelFunc081C_008A:
		var000D = Func0999(var0003, var0000, var0009, var0004, var0008, var0005, var0006);
		var0008 = (var0008 + 0x0001);
		var0006 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0003;
		var0003 = var000D[0x0002];
		var0004 = var000D[0x0001];
	labelFunc081C_00D9:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc081C_0290;
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc081C_0136;
		if(!(var000F == 0x0001)) goto labelFunc081C_0117;
		UcMessage("\"Thou dost drive a hard bargain, ");
		UcMessage(var0002);
		UcMessage(". Do not tell anyone about this... They think little enough of me already!\"");
		UcSay;
	labelFunc081C_0117:
		if(!(var000F == 0x0002)) goto labelFunc081C_0125;
		UcMessage("\"Thou hast a good eye for a bargain...\"");
		UcSay;
	labelFunc081C_0125:
		if(!(var000F == 0x0003)) goto labelFunc081C_0133;
		UcMessage("\"I would never agree to such a price, if times were not so bad!\"");
		UcSay;
	labelFunc081C_0133:
		goto labelFunc081C_0204;
	labelFunc081C_0136:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc081C_017F;
		if(!(var000F == 0x0001)) goto labelFunc081C_015A;
		UcMessage("\"My prices are reasonable, given my limited supply.\"");
		UcSay;
	labelFunc081C_015A:
		if(!(var000F == 0x0002)) goto labelFunc081C_0168;
		UcMessage("\"Thou couldst talk a beggar out of his begging bowl! I cannot believe I have agreed to such a price!\"");
		UcSay;
	labelFunc081C_0168:
		if(!(var000F == 0x0003)) goto labelFunc081C_017C;
		UcMessage("\"Thou shouldst have been a shopkeeper, ");
		UcMessage(var0002);
		UcMessage("...\"");
		UcSay;
	labelFunc081C_017C:
		goto labelFunc081C_0204;
	labelFunc081C_017F:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc081C_01CE;
		if(!(var000F == 0x0001)) goto labelFunc081C_01A3;
		UcMessage("\"A fair deal...\"");
		UcSay;
	labelFunc081C_01A3:
		if(!(var000F == 0x0002)) goto labelFunc081C_01B7;
		UcMessage("\"'Tis a pleasure to deal with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc081C_01B7:
		if(!(var000F == 0x0003)) goto labelFunc081C_01CB;
		UcMessage("\"There are few people left who specialize in herbs, ");
		UcMessage(var0002);
		UcMessage(". Thou wilt find no better price, I assure thee.\"");
		UcSay;
	labelFunc081C_01CB:
		goto labelFunc081C_0204;
	labelFunc081C_01CE:
		if(!(var000F == 0x0001)) goto labelFunc081C_01E2;
		UcMessage("\"Thou hast made me a happy woman, ");
		UcMessage(var0002);
		UcMessage("! Walk with Beauty!\"");
		UcSay;
	labelFunc081C_01E2:
		if(!(var000F == 0x0002)) goto labelFunc081C_01F6;
		UcMessage("\"May Beauty follow thee ever, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc081C_01F6:
		if(!(var000F == 0x0003)) goto labelFunc081C_0204;
		UcMessage("\"I fear that the storms have driven my prices up. I have no choice unless I wish to starve.\"");
		UcSay;
	labelFunc081C_0204:
		UcMessage("\"We have agreed on a price of ");
		UcMessage(var0003);
		UcMessage(" filari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc081C_0239;
		if(!(var000A > 0x0001)) goto labelFunc081C_0232;
		UI_set_npc_id_BD(0xFFD0, (var000A - 0x0002));
	labelFunc081C_0232:
		rr = var0003;
		goto labelFunc081C_0290;
	labelFunc081C_0239:
		if(!(var000F == 0x0001)) goto labelFunc081C_0247;
		UcMessage("\"Thou canst not change thy mind! Thou didst agree!\"");
		UcSay;
	labelFunc081C_0247:
		if(!(var000F == 0x0002)) goto labelFunc081C_0255;
		UcMessage("\"What of our bargain? I thought better of thee...\"");
		UcSay;
	labelFunc081C_0255:
		if(!(var000F == 0x0003)) goto labelFunc081C_0263;
		UcMessage("\"Where is thine honor?  What of our agreement?\"");
		UcSay;
	labelFunc081C_0263:
		if(!(0x001F < (var000A + 0x000A))) goto labelFunc081C_027E;
		UI_set_npc_id_BD(0xFFD0, 0x001F);
		goto labelFunc081C_028C;
	labelFunc081C_027E:
		UI_set_npc_id_BD(0xFFD0, (var000A + 0x000A));
	labelFunc081C_028C:
		rr = 0x0000;
	labelFunc081C_0290:
		if(!(var0006 == 0x0001)) goto labelFunc081C_02FE;
		if(!(var000C == 0x0005)) goto labelFunc081C_02D9;
		UcMessage("\"I said that ");
		UcMessage(var0003);
		UcMessage(" was my final offer. Dost thou accept or not?\"");
		UcSay;
		if(!(var000A < 0x001C)) goto labelFunc081C_02C6;
		UI_set_npc_id_BD(0xFFD0, (var000A + 0x0004));
	labelFunc081C_02C6:
		if(!Func0955()) goto labelFunc081C_02D0;
		rr = var0003;
	labelFunc081C_02D0:
		var0007 = 0x0000;
		goto labelFunc081C_02FB;
	labelFunc081C_02D9:
		UcMessage("\"Very well. ");
		UcMessage(var0003);
		UcMessage(" filari is my final offer.\"");
		UcSay;
		if(!(var000A < 0x001E)) goto labelFunc081C_02FB;
		UI_set_npc_id_BD(0xFFD0, (var000A + 0x0002));
	labelFunc081C_02FB:
		goto labelFunc081C_0438;
	labelFunc081C_02FE:
		if(!(var000C == 0x0002)) goto labelFunc081C_0344;
		if(!(var000F == 0x0001)) goto labelFunc081C_031C;
		UcMessage("\"How doth ");
		UcMessage(var0003);
		UcMessage(" filari sound? Thou dost bargain well...\"");
		UcSay;
	labelFunc081C_031C:
		if(!(var000F == 0x0002)) goto labelFunc081C_0330;
		UcMessage("\"So, have we agreed on ");
		UcMessage(var0003);
		UcMessage(" filari? Thou wilt no doubt see the Beauty of such an offer.\"");
		UcSay;
	labelFunc081C_0330:
		if(!(var000F == 0x0003)) goto labelFunc081C_0344;
		UcMessage("\"My price is ");
		UcMessage(var0003);
		UcMessage(" filari. Dost thou accept?\"");
		UcSay;
	labelFunc081C_0344:
		if(!(var000C == 0x0003)) goto labelFunc081C_038A;
		if(!(var000F == 0x0001)) goto labelFunc081C_0362;
		UcMessage("\"Wouldst thou consider ");
		UcMessage(var0003);
		UcMessage(" filari? I have such a limited stock...\"");
		UcSay;
	labelFunc081C_0362:
		if(!(var000F == 0x0002)) goto labelFunc081C_0376;
		UcMessage("\"I am not sure... Wouldst thou give ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc081C_0376:
		if(!(var000F == 0x0003)) goto labelFunc081C_038A;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" filari? I must have enough to tithe to the Temple.\"");
		UcSay;
	labelFunc081C_038A:
		if(!(var000C == 0x0004)) goto labelFunc081C_03D4;
		if(!(var000F == 0x0001)) goto labelFunc081C_03AC;
		UcMessage("\"I cannot possibly accept less than ");
		UcMessage(var0003);
		UcMessage(" filari!\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc081C_03AC:
		if(!(var000F == 0x0002)) goto labelFunc081C_03C0;
		UcMessage("\"Surely thou canst see that I can go no lower than ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc081C_03C0:
		if(!(var000F == 0x0003)) goto labelFunc081C_03D4;
		UcMessage("\"I deserve no less than ");
		UcMessage(var0003);
		UcMessage(" filari. It doth take much work to prepare these things!\"");
		UcSay;
	labelFunc081C_03D4:
		if(!(var000C == 0x0005)) goto labelFunc081C_0438;
		var0003 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc081C_03F8;
		UcMessage("\"I would rather walk into the Goblin camp than accept such a paltry sum! My previous price stands, at ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc081C_03F8:
		if(!(var000F == 0x0002)) goto labelFunc081C_040C;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" filari, and no less! I may be a woman, but I am no fool!\"");
		UcSay;
	labelFunc081C_040C:
		if(!(var000F == 0x0003)) goto labelFunc081C_0420;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" filari is where I stand. I know the value of my wares.\"");
		UcSay;
	labelFunc081C_0420:
		if(!(var000A < 0x001F)) goto labelFunc081C_0438;
		UI_set_npc_id_BD(0xFFD0, (var000A + 0x0001));
	labelFunc081C_0438:
		goto labelFunc081C_004E;
	labelFunc081C_043B:
		return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func081D 0x81D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = true;
	UcMessage("\"To barter coins, I ask for a small fee of the money exchanged. Dost thou accept?\"");
	UcSay;
	if(!Func0955()) goto labelFunc081D_0E95;
	labelFunc081D_000E:
		if(!var0000) goto labelFunc081D_0E92;
		UcMessage("\"What coinage dost thou desire?\"");
		UcSay;
		var0001 = Func0956(["Monetari", "Guilders", "Filari", "Gold Coins"]);
		if(!(var0001 == "Monetari")) goto labelFunc081D_03A5;
		UcMessage("\"What dost thou care to exchange for monetari?\"");
		UcSay;
		var0002 = 0x03B7;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc081D_0069;
		var0003 = (var0003 & "Guilders");
	labelFunc081D_0069:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc081D_0088;
		var0003 = (var0003 & "Filari");
	labelFunc081D_0088:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc081D_00A7;
		var0003 = (var0003 & "Gold Coins");
	labelFunc081D_00A7:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc081D_00C6;
		var0003 = (var0003 & "Gold Nuggets");
	labelFunc081D_00C6:
		if(!Func097D(0xFE9B, 0x0001, 0x02F8, 0xFE99, 0xFE99)) goto labelFunc081D_00E5;
		var0003 = (var0003 & "Gems");
	labelFunc081D_00E5:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc081D_0104;
		var0003 = (var0003 & "Jewelry");
	labelFunc081D_0104:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc081D_0122;
		UcMessage("\"Very well... perhaps another time.\"");
		UcSay;
		var0000 = false;
		goto labelFunc081D_0E99;
	labelFunc081D_0122:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0136;
		UcMessage("\"I can give thee 1 monetari for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc081D_0136:
		if(!(var0004 == "Filari")) goto labelFunc081D_014A;
		UcMessage("\"I can give thee 1 monetari for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc081D_014A:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_015E;
		UcMessage("\"I can give thee 1 monetari for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc081D_015E:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_0172;
		UcMessage("\"I can give thee 10 monetari for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc081D_0172:
		if(!(var0004 == "Gems")) goto labelFunc081D_0186;
		UcMessage("\"I can give thee 25 monetari for every gem thou dost have.\"");
		UcSay;
		var0005 = 0x02F8;
	labelFunc081D_0186:
		if(!(var0004 == "Jewelry")) goto labelFunc081D_01A0;
		UcMessage("\"I can give thee 100 monetari for any piece of jewelry thou hast.\"");
		UcSay;
		var0005 = 0x03A9;
		var0004 = "pieces of jewelry";
	labelFunc081D_01A0:
		UcMessage("\"Dost thou find the rate acceptable?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc081D_03A1;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc081D_01CF;
		var0006 = 0x01F4;
	labelFunc081D_01CF:
		if(!(var0006 != 0x0000)) goto labelFunc081D_038E;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc081D_0207;
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0207:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0221;
		var0008 = (var0007 / 0x0003);
		var0009 = 0x0006;
	labelFunc081D_0221:
		if(!(var0004 == "Filari")) goto labelFunc081D_023B;
		var0008 = (var0007 / 0x0004);
		var0009 = 0x0008;
	labelFunc081D_023B:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_0255;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc081D_0255:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_0279;
		var0008 = (var0007 * 0x000A);
		if(!(var0007 == 0x0001)) goto labelFunc081D_0279;
		var0004 = "Gold Nugget";
	labelFunc081D_0279:
		if(!(var0004 == "Gems")) goto labelFunc081D_029D;
		var0008 = (var0007 * 0x0019);
		if(!(var0007 == 0x0001)) goto labelFunc081D_029D;
		var0004 = "Gem";
	labelFunc081D_029D:
		if(!(var0004 == "pieces of jewelry")) goto labelFunc081D_02C7;
		var0008 = (var0007 * 0x0064);
		var0004 = "pieces of jewelry";
		if(!(var0007 == 0x0001)) goto labelFunc081D_02C7;
		var0004 = "piece of jewelry";
	labelFunc081D_02C7:
		var000A = (var0008 / 0x0032);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc081D_02FE;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_02FE:
		if(!(var0008 == 0x0001)) goto labelFunc081D_030F;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_030F:
		if(!(var0008 <= 0x0032)) goto labelFunc081D_0329;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc081D_0329:
		if(!(var0007 >= 0x0001)) goto labelFunc081D_0387;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Very well...\" ~\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Monetari, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" Monetari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Monetari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done!\"");
		UcSay;
		goto labelFunc081D_038B;
	labelFunc081D_0387:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_038B:
		goto labelFunc081D_039E;
	labelFunc081D_038E:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc081D_039E:
		goto labelFunc081D_03A5;
	labelFunc081D_03A1:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_03A5:
		if(!(var0001 == "Guilders")) goto labelFunc081D_0757;
		UcMessage("\"What dost thou care to exchange for guilders?\"");
		UcSay;
		var0002 = 0x03B8;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc081D_03E1;
		var0003 = (var0003 & "Monetari");
	labelFunc081D_03E1:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc081D_0400;
		var0003 = (var0003 & "Filari");
	labelFunc081D_0400:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc081D_041F;
		var0003 = (var0003 & "Gold Coins");
	labelFunc081D_041F:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc081D_043E;
		var0003 = (var0003 & "Gold Nuggets");
	labelFunc081D_043E:
		if(!Func097D(0xFE9B, 0x0001, 0x02F8, 0xFE99, 0xFE99)) goto labelFunc081D_045D;
		var0003 = (var0003 & "Gems");
	labelFunc081D_045D:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc081D_047C;
		var0003 = (var0003 & "Jewelry");
	labelFunc081D_047C:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc081D_049A;
		UcMessage("\"Very well... perhaps another time.\"");
		UcSay;
		var0000 = false;
		goto labelFunc081D_0E99;
	labelFunc081D_049A:
		if(!(var0004 == "Monetari")) goto labelFunc081D_04AE;
		UcMessage("\"I can give thee 3 guilders for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc081D_04AE:
		if(!(var0004 == "Filari")) goto labelFunc081D_04C2;
		UcMessage("\"I can give thee 3 guilders for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc081D_04C2:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_04D6;
		UcMessage("\"I can give thee 3 guilders for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc081D_04D6:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_04EA;
		UcMessage("\"I can give thee 30 guilders for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc081D_04EA:
		if(!(var0004 == "Gems")) goto labelFunc081D_04FE;
		UcMessage("\"I can give thee 75 guilders for every gem thou dost have.\"");
		UcSay;
		var0005 = 0x02F8;
	labelFunc081D_04FE:
		if(!(var0004 == "Jewelry")) goto labelFunc081D_0518;
		UcMessage("\"I can give thee 300 guilders for any piece of jewelry thou hast.\"");
		UcSay;
		var0005 = 0x03A9;
		var0004 = "pieces of jewelry";
	labelFunc081D_0518:
		UcMessage("\"Dost thou find the rate acceptable?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc081D_0753;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc081D_0547;
		var0006 = 0x01F4;
	labelFunc081D_0547:
		if(!(var0006 != 0x0000)) goto labelFunc081D_0740;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc081D_057F;
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_057F:
		if(!(var0004 == "Monetari")) goto labelFunc081D_0593;
		var0008 = (var0007 * 0x0003);
	labelFunc081D_0593:
		if(!(var0004 == "Filari")) goto labelFunc081D_05B1;
		var0008 = ((var0007 * 0x0003) / 0x0004);
		var0009 = 0x0003;
	labelFunc081D_05B1:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_05CF;
		var0008 = ((var0007 * 0x0003) / 0x0002);
		var0009 = 0x0002;
	labelFunc081D_05CF:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_05F3;
		var0008 = (var0007 * 0x001E);
		if(!(var0007 == 0x0001)) goto labelFunc081D_05F3;
		var0004 = "Gold Nugget";
	labelFunc081D_05F3:
		if(!(var0004 == "Gems")) goto labelFunc081D_0617;
		var0008 = (var0007 * 0x004B);
		if(!(var0007 == 0x0001)) goto labelFunc081D_0617;
		var0004 = "Gem";
	labelFunc081D_0617:
		if(!(var0004 == "pieces of jewelry")) goto labelFunc081D_0641;
		var0008 = (var0007 * 0x012C);
		var0004 = "pieces of jewelry";
		if(!(var0007 == 0x0001)) goto labelFunc081D_0641;
		var0004 = "piece of jewelry";
	labelFunc081D_0641:
		var000A = (var0008 / 0x0032);
		var000B = (var0008 - var000A);
		var000E = "Guilders";
		var000F = "Guilders";
		if(!(var0008 == 0x0000)) goto labelFunc081D_0684;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0684:
		if(!(var0008 == 0x0001)) goto labelFunc081D_0695;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0695:
		if(!(var0008 <= 0x0019)) goto labelFunc081D_06AF;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc081D_06AF:
		if(!(var000B == 0x0001)) goto labelFunc081D_06BF;
		var000E = "Guilder";
	labelFunc081D_06BF:
		if(!(var000A == 0x0001)) goto labelFunc081D_06CF;
		var000F = "Guilder";
	labelFunc081D_06CF:
		if(!(var0007 >= 0x0001)) goto labelFunc081D_0739;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Very well...\" ~\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Guilders, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done!\"");
		UcSay;
		goto labelFunc081D_073D;
	labelFunc081D_0739:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_073D:
		goto labelFunc081D_0750;
	labelFunc081D_0740:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc081D_0750:
		goto labelFunc081D_0757;
	labelFunc081D_0753:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_0757:
		if(!(var0001 == "Filari")) goto labelFunc081D_0AD7;
		UcMessage("\"What dost thou care to exchange for filari?\"");
		UcSay;
		var0002 = 0x03B4;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc081D_0793;
		var0003 = (var0003 & "Monetari");
	labelFunc081D_0793:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc081D_07B2;
		var0003 = (var0003 & "Guilders");
	labelFunc081D_07B2:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc081D_07D1;
		var0003 = (var0003 & "Gold Coins");
	labelFunc081D_07D1:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc081D_07F0;
		var0003 = (var0003 & "Gold Nuggets");
	labelFunc081D_07F0:
		if(!Func097D(0xFE9B, 0x0001, 0x02F8, 0xFE99, 0xFE99)) goto labelFunc081D_080F;
		var0003 = (var0003 & "Gems");
	labelFunc081D_080F:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc081D_082E;
		var0003 = (var0003 & "Jewelry");
	labelFunc081D_082E:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc081D_084C;
		UcMessage("\"Very well... perhaps another time.\"");
		UcSay;
		var0000 = false;
		goto labelFunc081D_0E99;
	labelFunc081D_084C:
		if(!(var0004 == "Monetari")) goto labelFunc081D_0860;
		UcMessage("\"I can give thee 4 filari for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc081D_0860:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0874;
		UcMessage("\"I can give thee 4 filari for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc081D_0874:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_0888;
		UcMessage("\"I can give thee 2 filari for every 1 gold coin thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc081D_0888:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_089C;
		UcMessage("\"I can give thee 40 filari for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc081D_089C:
		if(!(var0004 == "Gems")) goto labelFunc081D_08B0;
		UcMessage("\"I can give thee 100 filari for every gem thou dost have.\"");
		UcSay;
		var0005 = 0x02F8;
	labelFunc081D_08B0:
		if(!(var0004 == "Jewelry")) goto labelFunc081D_08CA;
		UcMessage("\"I can give thee 400 filari for any piece of jewelry thou hast.\"");
		UcSay;
		var0005 = 0x03A9;
		var0004 = "pieces of jewelry";
	labelFunc081D_08CA:
		UcMessage("\"Dost thou find the rate acceptable?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc081D_0AD3;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc081D_08F9;
		var0006 = 0x01F4;
	labelFunc081D_08F9:
		if(!(var0006 != 0x0000)) goto labelFunc081D_0AC0;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc081D_0931;
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0931:
		if(!(var0004 == "Monetari")) goto labelFunc081D_0945;
		var0008 = (var0007 * 0x0004);
	labelFunc081D_0945:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0963;
		var0008 = ((var0007 * 0x0004) / 0x0003);
		var0009 = 0x0002;
	labelFunc081D_0963:
		if(!(var0004 == "Gold Coins")) goto labelFunc081D_0987;
		var0008 = (var0007 * 0x0002);
		if(!(var0007 == 0x0001)) goto labelFunc081D_0987;
		var0004 = "Gold Coin";
	labelFunc081D_0987:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_09AB;
		var0008 = (var0007 * 0x0028);
		if(!(var0007 == 0x0001)) goto labelFunc081D_09AB;
		var0004 = "Gold Nugget";
	labelFunc081D_09AB:
		if(!(var0004 == "Gems")) goto labelFunc081D_09CF;
		var0008 = (var0007 * 0x0064);
		if(!(var0007 == 0x0001)) goto labelFunc081D_09CF;
		var0004 = "Gem";
	labelFunc081D_09CF:
		if(!(var0004 == "pieces of jewelry")) goto labelFunc081D_09F9;
		var0008 = (var0007 * 0x0190);
		var0004 = "pieces of jewelry";
		if(!(var0007 == 0x0001)) goto labelFunc081D_09F9;
		var0004 = "piece of jewelry";
	labelFunc081D_09F9:
		var000A = (var0008 / 0x0032);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc081D_0A30;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0A30:
		if(!(var0008 == 0x0001)) goto labelFunc081D_0A41;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0A41:
		if(!(var0008 <= 0x0032)) goto labelFunc081D_0A5B;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc081D_0A5B:
		if(!(var0007 >= 0x0001)) goto labelFunc081D_0AB9;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Very well...\" ~\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Filari, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" Filari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Filari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done!\"");
		UcSay;
		goto labelFunc081D_0ABD;
	labelFunc081D_0AB9:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_0ABD:
		goto labelFunc081D_0AD0;
	labelFunc081D_0AC0:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc081D_0AD0:
		goto labelFunc081D_0AD7;
	labelFunc081D_0AD3:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_0AD7:
		if(!(var0001 == "Gold Coins")) goto labelFunc081D_0E85;
		UcMessage("\"What dost thou care to exchange for gold?\"");
		UcSay;
		var0002 = 0x0284;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc081D_0B13;
		var0003 = (var0003 & "Monetari");
	labelFunc081D_0B13:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc081D_0B32;
		var0003 = (var0003 & "Filari");
	labelFunc081D_0B32:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc081D_0B51;
		var0003 = (var0003 & "Guilders");
	labelFunc081D_0B51:
		if(!Func097D(0xFE9B, 0x0001, 0x0285, 0xFE99, 0xFE99)) goto labelFunc081D_0B70;
		var0003 = (var0003 & "Gold Nuggets");
	labelFunc081D_0B70:
		if(!Func097D(0xFE9B, 0x0001, 0x02F8, 0xFE99, 0xFE99)) goto labelFunc081D_0B8F;
		var0003 = (var0003 & "Gems");
	labelFunc081D_0B8F:
		if(!Func097D(0xFE9B, 0x0001, 0x03A9, 0xFE99, 0xFE99)) goto labelFunc081D_0BAE;
		var0003 = (var0003 & "Jewelry");
	labelFunc081D_0BAE:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc081D_0BCC;
		UcMessage("\"Very well... perhaps another time.\"");
		UcSay;
		var0000 = false;
		goto labelFunc081D_0E99;
	labelFunc081D_0BCC:
		if(!(var0004 == "Monetari")) goto labelFunc081D_0BE0;
		UcMessage("\"I can give thee 2 gold coins for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc081D_0BE0:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0BF4;
		UcMessage("\"I can give thee 2 gold coins for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc081D_0BF4:
		if(!(var0004 == "Filari")) goto labelFunc081D_0C08;
		UcMessage("\"I can give thee 1 gold coin for every 2 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc081D_0C08:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_0C1C;
		UcMessage("\"I can give thee 20 gold coins for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc081D_0C1C:
		if(!(var0004 == "Gems")) goto labelFunc081D_0C30;
		UcMessage("\"I can give thee 50 gold coins for every gem thou dost have.\"");
		UcSay;
		var0005 = 0x02F8;
	labelFunc081D_0C30:
		if(!(var0004 == "Jewelry")) goto labelFunc081D_0C4A;
		UcMessage("\"I can give thee 200 gold coins for any piece of jewelry thou hast.\"");
		UcSay;
		var0005 = 0x03A9;
		var0004 = "pieces of jewelry";
	labelFunc081D_0C4A:
		UcMessage("\"Dost thou find the rate acceptable?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc081D_0E81;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc081D_0C79;
		var0006 = 0x01F4;
	labelFunc081D_0C79:
		if(!(var0006 != 0x0000)) goto labelFunc081D_0E6E;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc081D_0CB1;
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0CB1:
		if(!(var0004 == "Monetari")) goto labelFunc081D_0CC5;
		var0008 = (var0007 * 0x0002);
	labelFunc081D_0CC5:
		if(!(var0004 == "Guilders")) goto labelFunc081D_0CE3;
		var0008 = ((var0007 * 0x0002) / 0x0003);
		var0009 = 0x0003;
	labelFunc081D_0CE3:
		if(!(var0004 == "Filari")) goto labelFunc081D_0CFD;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc081D_0CFD:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc081D_0D21;
		var0008 = (var0007 * 0x0014);
		if(!(var0007 == 0x0001)) goto labelFunc081D_0D21;
		var0004 = "Gold Nugget";
	labelFunc081D_0D21:
		if(!(var0004 == "Gems")) goto labelFunc081D_0D45;
		var0008 = (var0007 * 0x0032);
		if(!(var0007 == 0x0001)) goto labelFunc081D_0D45;
		var0004 = "Gem";
	labelFunc081D_0D45:
		if(!(var0004 == "pieces of jewelry")) goto labelFunc081D_0D6F;
		var0008 = (var0007 * 0x00C8);
		var0004 = "pieces of jewelry";
		if(!(var0007 == 0x0001)) goto labelFunc081D_0D6F;
		var0004 = "piece of jewelry";
	labelFunc081D_0D6F:
		var000A = (var0008 / 0x0032);
		var000B = (var0008 - var000A);
		var000E = "Gold Coins";
		var000F = "Gold Coins";
		if(!(var0008 == 0x0000)) goto labelFunc081D_0DB2;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0DB2:
		if(!(var0008 == 0x0001)) goto labelFunc081D_0DC3;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc081D_0E85;
	labelFunc081D_0DC3:
		if(!(var0008 <= 0x0032)) goto labelFunc081D_0DDD;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc081D_0DDD:
		if(!(var000B == 0x0001)) goto labelFunc081D_0DED;
		var000E = "Gold Coin";
	labelFunc081D_0DED:
		if(!(var000A == 0x0001)) goto labelFunc081D_0DFD;
		var000F = "Gold Coin";
	labelFunc081D_0DFD:
		if(!(var0007 >= 0x0001)) goto labelFunc081D_0E67;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Very well...\" ~\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Gold Coins, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"'Tis done!\"");
		UcSay;
		goto labelFunc081D_0E6B;
	labelFunc081D_0E67:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_0E6B:
		goto labelFunc081D_0E7E;
	labelFunc081D_0E6E:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc081D_0E7E:
		goto labelFunc081D_0E85;
	labelFunc081D_0E81:
		UcMessage("\"Perhaps another time then...\"");
		UcSay;
	labelFunc081D_0E85:
		UcMessage("\"Dost thou care to exchange more coins?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc081D_000E;
	labelFunc081D_0E92:
		goto labelFunc081D_0E99;
	labelFunc081D_0E95:
		UcMessage("\"If that is what thou dost desire...\"");
		UcSay;
	labelFunc081D_0E99:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0820 0x820 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func081E 0x81E ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "ham", "mutton", "trout", "cheese", "pastry"];
	var0003 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x000B, 0x0008, 0x000C, 0x001B, 0x0006];
	var0005 = [0x0000, 0x0014, 0x0016, 0x000A, 0x000C, 0x0008];
	var0006 = [0x0000, 0x000C, 0x000E, 0x0006, 0x0007, 0x0004];
	var0007 = 0x0284;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What sounds good to thee, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc081E_00C6:
		if(!var0001) goto labelFunc081E_02FE;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc081E_00EA;
		UcMessage("\"Perhaps another time, then.\"");
		UcSay;
		var0001 = false;
		goto labelFunc081E_02FB;
	labelFunc081E_00EA:
		var000B = var0005[var000A];
		var000C = 0x0000;
		if(!(var000A == 0x0002)) goto labelFunc081E_0113;
		UcMessage("\"I'm afraid that the price is ");
		UcMessage(var000B);
		UcMessage(" gold coins... Our supplies are getting low. Dost thou accept?\"");
		UcSay;
		var000D = "haunches of ham";
	labelFunc081E_0113:
		if(!(var000A == 0x0003)) goto labelFunc081E_012D;
		UcMessage("\"The dinner costs ");
		UcMessage(var000B);
		UcMessage(" gold coins. Others would charge thee twice as much for as much as I serve. Dost thou find this acceptable?\"");
		UcSay;
		var000D = "joints of mutton";
	labelFunc081E_012D:
		if(!(var000A == 0x0004)) goto labelFunc081E_0147;
		UcMessage("\"Our fish is very tasty. ");
		UcMessage(var000B);
		UcMessage(" gold coins is the price. Dost thou agree?\"");
		UcSay;
		var000D = "trout";
	labelFunc081E_0147:
		if(!(var000A == 0x0005)) goto labelFunc081E_0161;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" gold coins for a wedge of fine cheese. Dost thou accept?\"");
		UcSay;
		var000D = "wedges of cheese";
	labelFunc081E_0161:
		if(!(var000A == 0x0006)) goto labelFunc081E_0181;
		UcMessage("\"Well, if thou dost like fine desserts that will melt in thy mouth and make thee smile in appreciation, then thou shouldst try my pastry, ");
		UcMessage(var0000);
		UcMessage(". They sell for ");
		UcMessage(var000B);
		UcMessage(" gold coins each. Dost thou agree?\"");
		UcSay;
		var000D = "pastries";
	labelFunc081E_0181:
		if(!(var000B == var0006[var000A])) goto labelFunc081E_01A8;
		if(!(Func0955() == true)) goto labelFunc081E_019F;
		var000E = var000B;
		goto labelFunc081E_01A5;
	labelFunc081E_019F:
		var000E = 0x0000;
	labelFunc081E_01A5:
		goto labelFunc081E_01BA;
	labelFunc081E_01A8:
		var000E = Func0820(var0005[var000A], var0006[var000A]);
	labelFunc081E_01BA:
		if(!(var000E > 0x0000)) goto labelFunc081E_0228;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc081E_0203;
		UcMessage("\"How many ");
		UcMessage(var000D);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000C = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var000E, 0x0014, 0x0001, false);
		goto labelFunc081E_0228;
	labelFunc081E_0203:
		var000C = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var000E, 0x0000, 0x0001, false);
	labelFunc081E_0228:
		if(!(var000C == 0x0001)) goto labelFunc081E_023F;
		UcMessage("\"Enjoy thy meal, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc081E_02F1;
	labelFunc081E_023F:
		if(!(var000C == 0x0002)) goto labelFunc081E_0256;
		UcMessage("\"Thou canst not carry so much, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc081E_02F1;
	labelFunc081E_0256:
		if(!(var000C == 0x0003)) goto labelFunc081E_02F1;
		var000F = Func0992(0x0001, (("@But " + var0000) + ", we haven't the coins to pay for this.@"), 0x0000, false);
		if(!(var000F != 0xFE9C)) goto labelFunc081E_02A6;
		UI_show_npc_face0_05(0xFFD7, 0x0000);
		UcMessage("\"I'd hate to see any of thee go hungry, ");
		UcMessage(var0000);
		UcMessage(".\" *\"I would feed thee for free, if I did not have a business to worry about.\"");
		UcSay;
		UcMessage("\"I fear thou shalt go hungry, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc081E_02FE;
		goto labelFunc081E_02BD;
	labelFunc081E_02A6:
		UcMessage("\"Thou dost not have enough for that, ");
		UcMessage(var0000);
		UcMessage(".\" *\"I would feed thee for free, if I did not have a business to worry about.\"");
		UcSay;
		UcMessage("\"I'm afraid thou shalt go hungry, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc081E_02FE;
	labelFunc081E_02BD:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFD7) + 0x0006))) goto labelFunc081E_02DC;
		UI_set_npc_id_BD(0xFFD7, 0x001F);
		goto labelFunc081E_02EE;
	labelFunc081E_02DC:
		UI_set_npc_id_BD(0xFFD7, (UI_get_npc_id_BC(0xFFD7) + 0x0006));
	labelFunc081E_02EE:
		goto labelFunc081E_02F1;
	labelFunc081E_02F1:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc081E_02FB:
		goto labelFunc081E_00C6;
	labelFunc081E_02FE:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0820 0x820 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func081F 0x81F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "wine", "mead", "ale"];
	var0004 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0005 = [0xFE99, 0x0005, 0x0001, 0x0003];
	var0006 = [0x0000, 0x0008, 0x000F, 0x0005];
	var0007 = [0x0000, 0x0005, 0x0009, 0x0002];
	var0008 = 0x0284;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What wouldst thou like to ease thy thirst, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc081F_00A2:
		if(!var0002) goto labelFunc081F_029E;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc081F_00C6;
		UcMessage("\"We have plenty, if thou dost change thy mind!\"");
		UcSay;
		var0002 = false;
		goto labelFunc081F_029B;
	labelFunc081F_00C6:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc081F_00EF;
		UcMessage("\"For that, I must ask ");
		UcMessage(var000C);
		UcMessage(" gold coins... The last batch was below standard so I sent it back.\" *\"We have very little left. Is this a price that thou canst pay?\"");
		UcSay;
		var000E = "wine bottles";
	labelFunc081F_00EF:
		if(!(var000B == 0x0003)) goto labelFunc081F_0109;
		UcMessage("\"Thou wilt find the light spice in this brew quite refreshing. At ");
		UcMessage(var000C);
		UcMessage(" gold coins, wilt thou try some?\"");
		UcSay;
		var000E = "bottles of mead";
	labelFunc081F_0109:
		if(!(var000B == 0x0004)) goto labelFunc081F_0129;
		UcMessage("\"This batch went a bit flat on us, ");
		UcMessage(var0000);
		UcMessage(". So I'll not ask more than ");
		UcMessage(var000C);
		UcMessage(" gold coins for it. Dost thou find that acceptable?\"");
		UcSay;
		var000E = "mugs of ale";
	labelFunc081F_0129:
		if(!(var000C == var0007[var000B])) goto labelFunc081F_014E;
		if(!Func0955()) goto labelFunc081F_0145;
		var000F = var000C;
		goto labelFunc081F_014B;
	labelFunc081F_0145:
		var000F = 0x0000;
	labelFunc081F_014B:
		goto labelFunc081F_0160;
	labelFunc081F_014E:
		var000F = Func0820(var0006[var000B], var0007[var000B]);
	labelFunc081F_0160:
		if(!(var000F > 0x0000)) goto labelFunc081F_01CE;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc081F_01A9;
		UcMessage("\"How many ");
		UcMessage(var000E);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0014, 0x0001, false);
		goto labelFunc081F_01CE;
	labelFunc081F_01A9:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0000, 0x0001, false);
	labelFunc081F_01CE:
		if(!(var000D == 0x0001)) goto labelFunc081F_01E5;
		UcMessage("\"Here's to thine health, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081F_0291;
	labelFunc081F_01E5:
		if(!(var000D == 0x0002)) goto labelFunc081F_01FC;
		UcMessage("\"I'm afraid thou canst not carry so many bottles, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc081F_0291;
	labelFunc081F_01FC:
		if(!(var000D == 0x0003)) goto labelFunc081F_0291;
		var0010 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0010 != 0xFE9C)) goto labelFunc081F_0246;
		UI_show_npc_face0_05(0xFFD7, 0x0000);
		UcMessage("\"I like a cup or two myself, from time to time.\" *\"I would let thee drink for free, but I have little enough for the paying customers these days.\"");
		UcSay;
		UcMessage("\"I fear thou shalt have to do with water, ");
		UcMessage(var0000);
		UcMessage(". That I have in plenty.\"");
		UcSay;
		goto labelFunc081F_029E;
		goto labelFunc081F_025D;
	labelFunc081F_0246:
		UcMessage("\"I'm sorry, ");
		UcMessage(var0000);
		UcMessage(", thou dost not have enough for that.\" *\"I would let thee drink for free, but I have little enough for the paying customers these days.\"");
		UcSay;
		UcMessage("\"I fear thou shalt have to do with water, ");
		UcMessage(var0000);
		UcMessage(". That I have in plenty.\"");
		UcSay;
		goto labelFunc081F_029E;
	labelFunc081F_025D:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFD7) + 0x0006))) goto labelFunc081F_027C;
		UI_set_npc_id_BD(0xFFD7, 0x001F);
		goto labelFunc081F_028E;
	labelFunc081F_027C:
		UI_set_npc_id_BD(0xFFD7, (UI_get_npc_id_BC(0xFFD7) + 0x0006));
	labelFunc081F_028E:
		goto labelFunc081F_0291;
	labelFunc081F_0291:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc081F_029B:
		goto labelFunc081F_00A2;
	labelFunc081F_029E:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0942 0x942 (var var0000);
extern var Func0955 0x955 ();

var Func0820 0x820 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = (0x000F - (UI_get_npc_id_BC(0xFFD7) / 0x0002));
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	var000B = UI_get_npc_id_BC(0xFFD7);
	labelFunc0820_0055:
		if(!var0008) goto labelFunc0820_045A;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc0820_007E;
		rr = 0x0000;
		goto labelFunc0820_0091;
	labelFunc0820_007E:
		if(!(var000C == "yes")) goto labelFunc0820_0091;
		var000D = 0x0000;
		goto labelFunc0820_00E0;
	labelFunc0820_0091:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc0820_00E0:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc0820_02B3;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0820_015F;
		if(!(var0010 == 0x0001)) goto labelFunc0820_0118;
		UcMessage("\"Do not tell Argus... He'll think his mother hath gone soft in the head for giving thee a price like this.\"");
		UcSay;
	labelFunc0820_0118:
		if(!(var0010 == 0x0002)) goto labelFunc0820_012C;
		UcMessage("\"Thou dost drive a hard bargain, ");
		UcMessage(var0002);
		UcMessage(". I should sit by the fire and knit!\"");
		UcSay;
	labelFunc0820_012C:
		if(!(var0010 == 0x0003)) goto labelFunc0820_015C;
		UcMessage("\"It hath been quite a while since I was so defeated!\"");
		UcSay;
		if(!Func0942(0xFFDA)) goto labelFunc0820_015C;
		UI_show_npc_face1_06(0xFFDA, 0x0000);
		UcMessage("\"To hear thee tell it, thou hast never been defeated, mother!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
	labelFunc0820_015C:
		goto labelFunc0820_0221;
	labelFunc0820_015F:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0820_01A8;
		if(!(var0010 == 0x0001)) goto labelFunc0820_0183;
		UcMessage("\"We offer honest prices here at the Sleeping Bull!\"");
		UcSay;
	labelFunc0820_0183:
		if(!(var0010 == 0x0002)) goto labelFunc0820_0191;
		UcMessage("\"I would quickly have to beg if I offered such prices every day!\"");
		UcSay;
	labelFunc0820_0191:
		if(!(var0010 == 0x0003)) goto labelFunc0820_01A5;
		UcMessage("\"Thou hast a shrewd head on thy shoulders, ");
		UcMessage(var0002);
		UcMessage(". Thou dost bargain like a innkeeper!\"");
		UcSay;
	labelFunc0820_01A5:
		goto labelFunc0820_0221;
	labelFunc0820_01A8:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0820_01EB;
		if(!(var0010 == 0x0001)) goto labelFunc0820_01CC;
		UcMessage("\"Fair enough, if I do say so myself.\"");
		UcSay;
	labelFunc0820_01CC:
		if(!(var0010 == 0x0002)) goto labelFunc0820_01DA;
		UcMessage("\"I shall never make a profit with customers like thee...\"");
		UcSay;
	labelFunc0820_01DA:
		if(!(var0010 == 0x0003)) goto labelFunc0820_01E8;
		UcMessage("\"We try only to please! Tell thy friends about the Sleeping Bull!\"");
		UcSay;
	labelFunc0820_01E8:
		goto labelFunc0820_0221;
	labelFunc0820_01EB:
		if(!(var0010 == 0x0001)) goto labelFunc0820_01FF;
		UcMessage("\"I am content, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0820_01FF:
		if(!(var0010 == 0x0002)) goto labelFunc0820_0213;
		UcMessage("\"Blessing thee and thy companions, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0820_0213:
		if(!(var0010 == 0x0003)) goto labelFunc0820_0221;
		UcMessage("\"If the suppliers ever come, I won't have to charge such high prices.\"");
		UcSay;
	labelFunc0820_0221:
		UcMessage("\"Dost thou agree on a price of ");
		UcMessage(var0004);
		UcMessage(", ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0820_0256;
		if(!(var000B > 0x0001)) goto labelFunc0820_024F;
		UI_set_npc_id_BD(0xFFD7, (var000B - 0x0002));
	labelFunc0820_024F:
		rr = var0004;
		goto labelFunc0820_02B3;
	labelFunc0820_0256:
		if(!(var0010 == 0x0001)) goto labelFunc0820_0264;
		UcMessage("\"I must have misunderstood. I thought we had an agreement.\"");
		UcSay;
	labelFunc0820_0264:
		if(!(var0010 == 0x0002)) goto labelFunc0820_0272;
		UcMessage("\"I have no time for this!\"");
		UcSay;
	labelFunc0820_0272:
		if(!(var0010 == 0x0003)) goto labelFunc0820_0286;
		UcMessage("\"Then take thy business elsewhere, ");
		UcMessage(var0002);
		UcMessage("! I do not have all day to stand and argue!\"");
		UcSay;
	labelFunc0820_0286:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc0820_02A1;
		UI_set_npc_id_BD(0xFFD7, 0x001F);
		goto labelFunc0820_02AF;
	labelFunc0820_02A1:
		UI_set_npc_id_BD(0xFFD7, (var000B + 0x000A));
	labelFunc0820_02AF:
		rr = 0x0000;
	labelFunc0820_02B3:
		if(!(var0007 == 0x0001)) goto labelFunc0820_0321;
		if(!(var000D == 0x0005)) goto labelFunc0820_02FC;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" is my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc0820_02E9;
		UI_set_npc_id_BD(0xFFD7, (var000B + 0x0004));
	labelFunc0820_02E9:
		if(!Func0955()) goto labelFunc0820_02F3;
		rr = var0004;
	labelFunc0820_02F3:
		var0008 = 0x0000;
		goto labelFunc0820_031E;
	labelFunc0820_02FC:
		UcMessage("\"Very well. ");
		UcMessage(var0004);
		UcMessage(" is my final offer.\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc0820_031E;
		UI_set_npc_id_BD(0xFFD7, (var000B + 0x0002));
	labelFunc0820_031E:
		goto labelFunc0820_0457;
	labelFunc0820_0321:
		if(!(var000D == 0x0002)) goto labelFunc0820_0367;
		if(!(var0010 == 0x0001)) goto labelFunc0820_033F;
		UcMessage("\"Thou dost bargain well. How doth ");
		UcMessage(var0004);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0820_033F:
		if(!(var0010 == 0x0002)) goto labelFunc0820_0353;
		UcMessage("\"Thou wouldst make a fine innkeeper... Have we agreed on ");
		UcMessage(var0004);
		UcMessage(" gold coins?\"");
		UcSay;
	labelFunc0820_0353:
		if(!(var0010 == 0x0003)) goto labelFunc0820_0367;
		UcMessage("\"My price is ");
		UcMessage(var0004);
		UcMessage("... Just for thee. Dost thou accept?\"");
		UcSay;
	labelFunc0820_0367:
		if(!(var000D == 0x0003)) goto labelFunc0820_03AD;
		if(!(var0010 == 0x0001)) goto labelFunc0820_0385;
		UcMessage("\"These are hard times, and goods are scarce... Wouldst thou give ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0820_0385:
		if(!(var0010 == 0x0002)) goto labelFunc0820_0399;
		UcMessage("\"I don't know... ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0820_0399:
		if(!(var0010 == 0x0003)) goto labelFunc0820_03AD;
		UcMessage("\"I need to hire more help... Perhaps ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0820_03AD:
		if(!(var000D == 0x0004)) goto labelFunc0820_03F3;
		if(!(var0010 == 0x0001)) goto labelFunc0820_03CB;
		UcMessage("\"Surely thou dost jest! ");
		UcMessage(var0004);
		UcMessage(" is as low as I can go. What sayest thou?\"");
		UcSay;
	labelFunc0820_03CB:
		if(!(var0010 == 0x0002)) goto labelFunc0820_03DF;
		UcMessage("\"With these storms driving our customers away, surely thou canst see that I can accept no less than ");
		UcMessage(var0004);
		UcMessage(".\"");
		UcSay;
	labelFunc0820_03DF:
		if(!(var0010 == 0x0003)) goto labelFunc0820_03F3;
		UcMessage("\"I have bargained with better folk than thee and gotten a better deal than that! Not less than ");
		UcMessage(var0004);
		UcMessage("!\"");
		UcSay;
	labelFunc0820_03F3:
		if(!(var000D == 0x0005)) goto labelFunc0820_0457;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc0820_0417;
		UcMessage("\"I would rather sell myself to a mage than to accept such a pitiful offer! I insist on ");
		UcMessage(var0004);
		UcMessage("!\"");
		UcSay;
	labelFunc0820_0417:
		if(!(var0010 == 0x0002)) goto labelFunc0820_042B;
		UcMessage("\"I am not in my dotage to accept such an offer! ");
		UcMessage(var0004);
		UcMessage(", and no less!\"");
		UcSay;
	labelFunc0820_042B:
		if(!(var0010 == 0x0003)) goto labelFunc0820_043F;
		UcMessage("\"May I go to my grave now! ");
		UcMessage(var0004);
		UcMessage(" is where I stand!\"");
		UcSay;
	labelFunc0820_043F:
		if(!(var000B < 0x001F)) goto labelFunc0820_0457;
		UI_set_npc_id_BD(0xFFD7, (var000B + 0x0001));
	labelFunc0820_0457:
		goto labelFunc0820_0055;
	labelFunc0820_045A:
		return rr;
}
// externs
extern Func095D 0x95D (var var0000);

Func0821 0x821 ()
{
	var var0000;

	UcMessage("\"Rhys Fletcher, a master bowman on an urgent mission for his king, desperately needed to find a hidden mountain pass.\"");
	UcSay;
	UcMessage("\"While searching for the pass he came upon three mystics who were standing alongside the trail.\"");
	UcSay;
	UcMessage("\"One mystic wore a black sash while the other two had brown sashes.\"");
	UcSay;
	UcMessage("\"Rhys knew that some mystics were truth-tellers and some were not.\"");
	UcSay;
	UcMessage("\"Rhys thought that if he could figure out if one of the mystics was a truth-teller, he could learn the whereabouts of the hidden pass.\"");
	UcSay;
	UcMessage("\"So he rode up to the mystics and asked, 'Art thou truth-tellers?'\"");
	UcSay;
	UcMessage("\"The mystic wearing the black sash answered the bowyer by nodding his head up and down. The second mystic, who had only one arm, told Rhys that the mystic with the black sash indicated that he was a truth-teller. However, the other mystic, who was fat, said that the mystic with the black sash was lying.\"");
	UcSay;
	UcMessage("\"How many of these mystics were liars?\"");
	UcSay;
	var0000 = UI_input_numeric_value_13(0x0000, 0x0003, 0x0001, 0x0000);
	if(!(var0000 == 0x0001)) goto labelFunc0821_0064;
	if(!(!gflags[0305])) goto labelFunc0821_0059;
	UcMessage("\"That is correct!\"");
	UcSay;
	gflags[0309] = true;
	Func095D(0x0064);
	gflags[0305] = true;
	goto labelFunc0821_0061;
	labelFunc0821_0059:
		UcMessage("\"That is correct!\"");
		UcSay;
		gflags[0309] = true;
	labelFunc0821_0061:
		goto labelFunc0821_0068;
	labelFunc0821_0064:
		UcMessage("\"I'm sorry, but that is not the correct answer.\"");
		UcSay;
	labelFunc0821_0068:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func0822 0x822 ()
{
	var var0000;

	UcMessage("\"A young noblewoman is getting ready for the Royal Ball. She has several types of earrings in her jewelry box (two made of gold, three of silver, and four made of copper).\"");
	UcSay;
	UcMessage("\"The earrings, however, are all scattered about in the jewelry box.\"");
	UcSay;
	UcMessage("\"Without looking into the jewelry box, how many earrings would the noblewoman have to take	out of the jewelry box to insure a matched pair?\"");
	UcSay;
	var0000 = UI_input_numeric_value_13(0x0000, 0x000A, 0x0001, 0x0000);
	if(!(var0000 == 0x0004)) goto labelFunc0822_0050;
	if(!(!gflags[0306])) goto labelFunc0822_0045;
	UcMessage("\"Thou art corrcet!\"");
	UcSay;
	gflags[030A] = true;
	Func095D(0x0096);
	gflags[0306] = true;
	goto labelFunc0822_004D;
	labelFunc0822_0045:
		UcMessage("\"Thou art correct!\"");
		UcSay;
		gflags[030A] = true;
	labelFunc0822_004D:
		goto labelFunc0822_0054;
	labelFunc0822_0050:
		UcMessage("\"I'm sorry, but that is not the correct answer.\"");
		UcSay;
	labelFunc0822_0054:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func0823 0x823 ()
{
	var var0000;

	UcMessage("\"My cousin Longtooth has claimed to have stumped over 100 creatures with his riddles. My aunt says that he's blowing smoke, and that the number is probably less than 100. I say that he has probably stumped at least one creature with his riddles.\"");
	UcSay;
	UcMessage("\"If only one of us is correct, how many creatures has Longtooth stumped with his riddles?\"");
	UcSay;
	var0000 = UI_input_numeric_value_13(0x0000, 0x00C8, 0x0001, 0x0000);
	if(!(var0000 == 0x0000)) goto labelFunc0823_004C;
	if(!(!gflags[0307])) goto labelFunc0823_0041;
	UcMessage("\"Thou art correct! Longtooth is a great dragon, but he's lousy at riddling!\"");
	UcSay;
	gflags[030B] = true;
	Func095D(0x00C8);
	gflags[0307] = true;
	goto labelFunc0823_0049;
	labelFunc0823_0041:
		UcMessage("\"Thou art correct! Longtooth is a great dragon, but he's lousy at riddling!\"");
		UcSay;
		gflags[030B] = true;
	labelFunc0823_0049:
		goto labelFunc0823_0050;
	labelFunc0823_004C:
		UcMessage("\"I am sorry, but that is not the correct answer.\"");
		UcSay;
	labelFunc0823_0050:
		return;
}
// externs
extern Func095D 0x95D (var var0000);

Func0824 0x824 ()
{
	var var0000;
	var var0001;

	UcMessage("\"A clothier named Sedrick has received an order to make five dresses, all with the same pattern. Sedrick has three designs of embroidered cloth laying on a table in his workroom.\"");
	UcSay;
	UcMessage("\"Sedrick tells his apprentice to fetch five pieces of cloth with the same embroidered pattern. The lazy apprentice doesn't bother looking through the piles of cloth, he just	takes an armful.\"");
	UcSay;
	UcMessage("\"Discounting pure luck, how many pieces of cloth would the apprentice have to grab to insure that Sedrick could make five dresses with the same embroidery pattern?\"");
	UcSay;
	var0000 = UI_input_numeric_value_13(0x0000, 0x001E, 0x0001, 0x0000);
	if(!(var0000 == 0x000E)) goto labelFunc0824_0050;
	if(!(!gflags[0308])) goto labelFunc0824_0045;
	UcMessage("\"Verily, thou hath a good head upon thy shoulders!\"");
	UcSay;
	gflags[030C] = true;
	var0001 = true;
	Func095D(0x012C);
	goto labelFunc0824_004D;
	labelFunc0824_0045:
		UcMessage("\"Verily, thou hath a good head upon thy shoulders!\"");
		UcSay;
		gflags[030C] = true;
	labelFunc0824_004D:
		goto labelFunc0824_0054;
	labelFunc0824_0050:
		UcMessage("\"I'm sorry, but that is not the correct answer.\"");
		UcSay;
	labelFunc0824_0054:
		return;
}
var Func0825 0x825 ()
{
	var var0000;
	var rr;

	var0000 = UI_get_object_position_20(0xFF2B);
	if(!((var0000[0x0001] > 0x090C) && ((var0000[0x0001] < 0x0920) && ((var0000[0x0002] > 0x0412) && (var0000[0x0002] < 0x0426))))) goto labelFunc0825_003D;
	rr = true;
	goto labelFunc0825_003F;
	labelFunc0825_003D:
		rr = false;
	labelFunc0825_003F:
		return rr;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0826 0x826 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0001 = UI_find_nearby_41(0xFFF1, 0x02E3, 0x0032, 0x0000);
	var0002 = UI_get_object_position_20(var0001);
	if(!(var0000 == 0x0009)) goto labelFunc0826_0053;
	if(!var0001) goto labelFunc0826_0053;
	UI_si_path_run_usecode_C1(0xFFF1, var0002, 0x000A, UI_get_npc_object_23(0xFFF1), 0x040F, true);
	UI_set_path_failure_A7([0x040F], item, 0x000E);
	labelFunc0826_0053:
		if(!(var0000 == 0x000A)) goto labelFunc0826_010A;
		var0003 = Func090C(0xFFF1, var0002);
		var0004 = UI_execute_usecode_array_01(0xFFF1, [0x23, 0x59, var0003, 0x01, 0x6C, 0x27, 0x0002, 0x65, 0x27, 0x0001, 0x66, 0x27, 0x0001, 0x0B, 0xFFFA, 0x0002]);
		UI_obj_sprite_effect_91(0xFFF1, 0x0015, 0xFFFC, 0xFFFC, 0x0000, 0x0000, 0x0000, Dupre);
		var0005 = UI_get_object_position_20(0xFE9C);
		UI_show_npc_face0_05(0xFFF1, 0x0000);
		UcMessage("\"Take thy gem!\"");
		UcSay;
		var0004 = UI_remove_party_items_34(0x0003, 0x034A, 0xFE99, 0x000A, 0x0000);
		var0006 = Func099B(0xFE9C, 0x0001, 0x01BD, 0xFE99, 0x0000, 0x0000, true);
		UI_remove_npc_face0_07();
		UI_run_schedule_B7(0xFFF1);
	labelFunc0826_010A:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0828 0x828 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0827 0x827 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = Func0954();
	var0001 = UI_die_roll_17(0x0001, 0x0004);
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "cloak", "sword", "shovel", "torch", "pick", "bucket", "pitcher", "lamp", "cloth", "bread", "rolls", "cake"];
	var0004 = [0x0000, 0x00E3, 0x0257, 0x0271, 0x0253, 0x0270, 0x032A, 0x0338, 0x0150, 0x0353, 0x0179, 0x0179, 0x0179];
	var0005 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0002, 0x0002, var0001, 0x0001, 0x0002, 0x0004];
	var0006 = [0x0000, 0x00C8, 0x015E, 0x0064, 0x000A, 0x008C, 0x001C, 0x001E, 0x000C, 0x0014, 0x0008, 0x0005, 0x000A];
	var0007 = [0x0000, 0x0050, 0x00A0, 0x0032, 0x0005, 0x004B, 0x000E, 0x000F, 0x0006, 0x000A, 0x0004, 0x0003, 0x0005];
	var0008 = 0x03B8;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc0827_016C;
	var000B = "Milady";
	goto labelFunc0827_0172;
	labelFunc0827_016C:
		var000B = "Milord";
	labelFunc0827_0172:
		UcMessage("\"What dost thou care to buy?\"");
		UcSay;
	labelFunc0827_0176:
		if(!var0002) goto labelFunc0827_0504;
		var000C = Func0957(var0003);
		if(!(var000C == 0x0001)) goto labelFunc0827_01A0;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0002 = false;
		goto labelFunc0827_0501;
	labelFunc0827_01A0:
		var000D = var0006[var000C];
		var000E = 0x0000;
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0827_01CC;
		var0010 = "Dost thou accept?";
	labelFunc0827_01CC:
		if(!(var000F == 0x0002)) goto labelFunc0827_01DC;
		var0010 = "Dost thou find this price acceptable?";
	labelFunc0827_01DC:
		if(!(var000F == 0x0003)) goto labelFunc0827_01EC;
		var0010 = "Wilt thou pay my price?";
	labelFunc0827_01EC:
		if(!(var000F == 0x0004)) goto labelFunc0827_0200;
		var0010 = (var000B + ", dost thou agree?");
	labelFunc0827_0200:
		if(!(var000F == 0x0005)) goto labelFunc0827_0214;
		var0010 = (var000B + ", is the price acceptable?");
	labelFunc0827_0214:
		if(!(var000C == 0x0002)) goto labelFunc0827_0235;
		UcMessage("\"That will be ");
		UcMessage(var000D);
		UcMessage(" guilders for a nice warm cloak.\"");
		UcSay;
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "cloaks";
	labelFunc0827_0235:
		if(!(var000C == 0x0003)) goto labelFunc0827_0259;
		UcMessage("\"For ");
		UcMessage(var000D);
		UcMessage(" guilders I can sell thee a very sharp sword.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "swords";
	labelFunc0827_0259:
		if(!(var000C == 0x0004)) goto labelFunc0827_027D;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" guilders will buy thee a finely crafted shovel.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "shovels";
	labelFunc0827_027D:
		if(!(var000C == 0x0005)) goto labelFunc0827_02A1;
		UcMessage("\"I will sell thee a torch for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "torches";
	labelFunc0827_02A1:
		if(!(var000C == 0x0006)) goto labelFunc0827_02C5;
		UcMessage("\"Mine automaton smith makes them. For ");
		UcMessage(var000D);
		UcMessage(" guilders I can sell thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "picks";
	labelFunc0827_02C5:
		if(!(var000C == 0x0007)) goto labelFunc0827_02E9;
		UcMessage("\"My buckets sell for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "buckets";
	labelFunc0827_02E9:
		if(!(var000C == 0x0008)) goto labelFunc0827_030D;
		UcMessage("\"I can sell thee a pitcher for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pitchers";
	labelFunc0827_030D:
		if(!(var000C == 0x0009)) goto labelFunc0827_0331;
		UcMessage("\"I will sell thee a nice oil lamp for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "oil lamps";
	labelFunc0827_0331:
		if(!(var000C == 0x000A)) goto labelFunc0827_0355;
		UcMessage("\"I can sell thee a bolt of dyed cloth for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "bolts of cloth";
	labelFunc0827_0355:
		if(!(var000C == 0x000B)) goto labelFunc0827_0379;
		UcMessage("\"Hmmm... the bread baked by mine automaton baker is very good and filling. I will sell a loaf to thee for ");
		UcMessage(var000D);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "loaves of bread";
	labelFunc0827_0379:
		if(!(var000C == 0x000C)) goto labelFunc0827_039D;
		UcMessage("\"The rolls are baked fresh daily. For ");
		UcMessage(var000D);
		UcMessage(" guilders I will sell thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "rolls";
	labelFunc0827_039D:
		if(!(var000C == 0x000D)) goto labelFunc0827_03C1;
		UcMessage("\"The cake is actually very good. Nice and sweet. For ");
		UcMessage(var000D);
		UcMessage(" guilders thou canst have one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "cakes";
	labelFunc0827_03C1:
		if(!(var000D == var0007[var000C])) goto labelFunc0827_03E6;
		if(!Func0955()) goto labelFunc0827_03DD;
		var0012 = var000D;
		goto labelFunc0827_03E3;
	labelFunc0827_03DD:
		var0012 = 0x0000;
	labelFunc0827_03E3:
		goto labelFunc0827_03F8;
	labelFunc0827_03E6:
		var0012 = Func0828(var0006[var000C], var0007[var000C]);
	labelFunc0827_03F8:
		if(!(var0012 > 0x0000)) goto labelFunc0827_0460;
		if(!(var000A[var000C] == 0x0001)) goto labelFunc0827_043E;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0004[var000C], var0005[var000C], 0x0001, var0008, var0012, 0x000A, 0x0001, false);
		goto labelFunc0827_0460;
	labelFunc0827_043E:
		var000E = Func0943(var0004[var000C], var0005[var000C], 0x0001, var0008, var0012, 0x0000, 0x0001, false);
	labelFunc0827_0460:
		if(!(var000E == 0x0001)) goto labelFunc0827_0471;
		UcMessage("\"Enjoy thy purchase!\"");
		UcSay;
		goto labelFunc0827_04F7;
	labelFunc0827_0471:
		if(!(var000E == 0x0002)) goto labelFunc0827_0482;
		UcMessage("\"Thine hands are full!\"");
		UcSay;
		goto labelFunc0827_04F7;
	labelFunc0827_0482:
		if(!(var000E == 0x0003)) goto labelFunc0827_04F7;
		var0013 = Func0992(0x0001, (("@But " + var0000) + ", we do not have the guilders to purchase this.@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0827_04BF;
		UI_show_npc_face0_05(0xFFF1, 0x0000);
		UcMessage("\"Please leave if thou canst not pay.\"");
		UcSay;
		goto labelFunc0827_04C3;
	labelFunc0827_04BF:
		UcMessage("\"Thou dost not have enough guilders to purchase this...\"");
		UcSay;
	labelFunc0827_04C3:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFF1) + 0x0006))) goto labelFunc0827_04E2;
		UI_set_npc_id_BD(0xFFF1, 0x001F);
		goto labelFunc0827_04F4;
	labelFunc0827_04E2:
		UI_set_npc_id_BD(0xFFF1, (UI_get_npc_id_BC(0xFFF1) + 0x0006));
	labelFunc0827_04F4:
		goto labelFunc0827_04F7;
	labelFunc0827_04F7:
		UcMessage("\"Dost thou care for something else?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0827_0501:
		goto labelFunc0827_0176;
	labelFunc0827_0504:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0828 0x828 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!UI_is_pc_female_6F()) goto labelFunc0828_001D;
	var0004 = "Milady";
	goto labelFunc0828_0023;
	labelFunc0828_001D:
		var0004 = "Milord";
	labelFunc0828_0023:
		var0005 = var0001;
		var0006 = ((var0000 / 0x0003) * 0x0002);
		var0007 = (0x000F - (UI_get_npc_id_BC(0xFFF1) / 0x0002));
		var0008 = 0x0000;
		var0009 = 0x0001;
		var000A = 0x0000;
		var000B = 0x0002;
		var000C = UI_get_npc_id_BC(0xFFF1);
	labelFunc0828_006B:
		if(!var0009) goto labelFunc0828_0487;
		var000D = Func0956(["yes", "no", "haggle"]);
		if(!(var000D == "no")) goto labelFunc0828_0094;
		rr = 0x0000;
		goto labelFunc0828_00A7;
	labelFunc0828_0094:
		if(!(var000D == "yes")) goto labelFunc0828_00A7;
		var000E = 0x0000;
		goto labelFunc0828_00F6;
	labelFunc0828_00A7:
		var000F = Func0999(var0005, var0000, var000B, var0006, var000A, var0007, var0008);
		var000A = (var000A + 0x0001);
		var0008 = var000F[0x0004];
		var000E = var000F[0x0003];
		var0010 = var0005;
		var0005 = var000F[0x0002];
		var0006 = var000F[0x0001];
	labelFunc0828_00F6:
		var0011 = UI_get_random_00(0x0003);
		if(!(var000E < 0x0002)) goto labelFunc0828_02C6;
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0828_015F;
		if(!(var0011 == 0x0001)) goto labelFunc0828_0134;
		UcMessage("\"Thou art shrewd indeed, ");
		UcMessage(var0002);
		UcMessage(". Thou wouldst make a fine Master.\"");
		UcSay;
	labelFunc0828_0134:
		if(!(var0011 == 0x0002)) goto labelFunc0828_0148;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", this is the fist time in years that I have actually lost money in a deal.\"");
		UcSay;
	labelFunc0828_0148:
		if(!(var0011 == 0x0003)) goto labelFunc0828_015C;
		UcMessage("\"Thou dost trade well, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0828_015C:
		goto labelFunc0828_0239;
	labelFunc0828_015F:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0828_01B4;
		if(!(var0011 == 0x0001)) goto labelFunc0828_0189;
		UcMessage("\"Do not allow Topo to hear of this, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not often I lower my prices such...\"");
		UcSay;
	labelFunc0828_0189:
		if(!(var0011 == 0x0002)) goto labelFunc0828_019D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I must be addled! I do not normally offer such a price...\"");
		UcSay;
	labelFunc0828_019D:
		if(!(var0011 == 0x0003)) goto labelFunc0828_01B1;
		UcMessage("\"Thou art honorable, ");
		UcMessage(var0002);
		UcMessage(", I can tell. For thee only will I offer such a price!\"");
		UcSay;
	labelFunc0828_01B1:
		goto labelFunc0828_0239;
	labelFunc0828_01B4:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0828_0203;
		if(!(var0011 == 0x0001)) goto labelFunc0828_01DE;
		UcMessage("\"Thou wilt find that my prices are more than fair, ");
		UcMessage(var0002);
		UcMessage(", once thou hast travelled a bit.\"");
		UcSay;
	labelFunc0828_01DE:
		if(!(var0011 == 0x0002)) goto labelFunc0828_01F2;
		UcMessage("\"'Tis a pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0828_01F2:
		if(!(var0011 == 0x0003)) goto labelFunc0828_0200;
		UcMessage("\"Please come to see me whenever thou art in Moonshade again.\"");
		UcSay;
	labelFunc0828_0200:
		goto labelFunc0828_0239;
	labelFunc0828_0203:
		if(!(var0011 == 0x0001)) goto labelFunc0828_0217;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art a fine customer!\"");
		UcSay;
	labelFunc0828_0217:
		if(!(var0011 == 0x0002)) goto labelFunc0828_022B;
		UcMessage("\"Many thanks, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0828_022B:
		if(!(var0011 == 0x0003)) goto labelFunc0828_0239;
		UcMessage("\"I fear that I must charge more, now that my raw materials are so limited.\"");
		UcSay;
	labelFunc0828_0239:
		UcMessage("\"Hast thou agreed to a price of ");
		UcMessage(var0005);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0828_026E;
		if(!(var000C > 0x0001)) goto labelFunc0828_0267;
		UI_set_npc_id_BD(0xFFF1, (var000C - 0x0002));
	labelFunc0828_0267:
		rr = var0005;
		goto labelFunc0828_02C6;
	labelFunc0828_026E:
		if(!(var0011 == 0x0001)) goto labelFunc0828_027C;
		UcMessage("\"'Tis poor form to argue once thou hast agreed on a price!\"");
		UcSay;
	labelFunc0828_027C:
		if(!(var0011 == 0x0002)) goto labelFunc0828_028A;
		UcMessage("\"What of our bargain? I had expected better of thee...\"");
		UcSay;
	labelFunc0828_028A:
		if(!(var0011 == 0x0003)) goto labelFunc0828_0299;
		UcMessage("\"Leave immediately! Thou dost not treat a Master so in Moonshade!\"");
		UcSay;
		abrt();
	labelFunc0828_0299:
		if(!(0x001F < (var000C + 0x000A))) goto labelFunc0828_02B4;
		UI_set_npc_id_BD(0xFFF1, 0x001F);
		goto labelFunc0828_02C2;
	labelFunc0828_02B4:
		UI_set_npc_id_BD(0xFFF1, (var000C + 0x000A));
	labelFunc0828_02C2:
		rr = 0x0000;
	labelFunc0828_02C6:
		if(!(var0008 == 0x0001)) goto labelFunc0828_0334;
		if(!(var000E == 0x0005)) goto labelFunc0828_030F;
		UcMessage("\"I said that ");
		UcMessage(var0005);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000C < 0x001C)) goto labelFunc0828_02FC;
		UI_set_npc_id_BD(0xFFF1, (var000C + 0x0004));
	labelFunc0828_02FC:
		if(!Func0955()) goto labelFunc0828_0306;
		rr = var0005;
	labelFunc0828_0306:
		var0009 = 0x0000;
		goto labelFunc0828_0331;
	labelFunc0828_030F:
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders is my final offer.\"");
		UcSay;
		if(!(var000C < 0x001E)) goto labelFunc0828_0331;
		UI_set_npc_id_BD(0xFFF1, (var000C + 0x0002));
	labelFunc0828_0331:
		goto labelFunc0828_0484;
	labelFunc0828_0334:
		if(!(var000E == 0x0002)) goto labelFunc0828_038C;
		if(!(var0011 == 0x0001)) goto labelFunc0828_0358;
		UcMessage("\"Thou art a worthy opponent, ");
		UcMessage(var0002);
		UcMessage(". How does ");
		UcMessage(var0005);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0828_0358:
		if(!(var0011 == 0x0002)) goto labelFunc0828_0372;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I like thine honest face. How does ");
		UcMessage(var0005);
		UcMessage(" guilders sound to thee?\"");
		UcSay;
	labelFunc0828_0372:
		if(!(var0011 == 0x0003)) goto labelFunc0828_038C;
		UcMessage("\"My price is ");
		UcMessage(var0005);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage(". Dost thou accept?\"");
		UcSay;
	labelFunc0828_038C:
		if(!(var000E == 0x0003)) goto labelFunc0828_03D2;
		if(!(var0011 == 0x0001)) goto labelFunc0828_03AA;
		UcMessage("\"I am not sure. Wouldst thou pay ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0828_03AA:
		if(!(var0011 == 0x0002)) goto labelFunc0828_03BE;
		UcMessage("\"Not likely... ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0828_03BE:
		if(!(var0011 == 0x0003)) goto labelFunc0828_03D2;
		UcMessage("\"I have so little raw material... Perhaps ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0828_03D2:
		if(!(var000E == 0x0004)) goto labelFunc0828_041C;
		if(!(var0011 == 0x0001)) goto labelFunc0828_03F4;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders is as low as I can go.\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0828_03F4:
		if(!(var0011 == 0x0002)) goto labelFunc0828_0408;
		UcMessage("\"I cannot accept less than ");
		UcMessage(var0005);
		UcMessage(" guilders. Thou must understand my position.\"");
		UcSay;
	labelFunc0828_0408:
		if(!(var0011 == 0x0003)) goto labelFunc0828_041C;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders. I am not a charity.\"");
		UcSay;
	labelFunc0828_041C:
		if(!(var000E == 0x0005)) goto labelFunc0828_0484;
		var0005 = var0010;
		if(!(var0011 == 0x0001)) goto labelFunc0828_0440;
		UcMessage("\"My previous price stands, at ");
		UcMessage(var0005);
		UcMessage(" guilders. I will not have it said that Master Ducio is so easily taken!\"");
		UcSay;
	labelFunc0828_0440:
		if(!(var0011 == 0x0002)) goto labelFunc0828_0454;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders, and no less! I have to feed that worthless Topo somehow!\"");
		UcSay;
	labelFunc0828_0454:
		if(!(var0011 == 0x0003)) goto labelFunc0828_046C;
		UcMessage("\"I would rather become a Ranger than accept such an offer!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders is as low as I will go!\"");
		UcSay;
	labelFunc0828_046C:
		if(!(var000C < 0x001F)) goto labelFunc0828_0484;
		UI_set_npc_id_BD(0xFFF1, (var000C + 0x0001));
	labelFunc0828_0484:
		goto labelFunc0828_006B;
	labelFunc0828_0487:
		return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func0829 0x829 ()
{
	var var0000;

	if(!UI_get_cont_items_33(Dupre, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0829_007B;
	UcMessage("\"I am carrying many items, some of which may be of use to thee. Wouldst thou care to have these back?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0829_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0017] = false;
	var0000 = Func09B3(Dupre);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc0829_003F;
	UcMessage("\"Thy friends will have to help carry these things.\"");
	UcSay;
	labelFunc0829_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc0829_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc0829_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc0829_0070;
	labelFunc0829_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc0829_0070:
		goto labelFunc0829_007B;
	labelFunc0829_0073:
		gflags[0017] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask again.\"");
		UcSay;
	labelFunc0829_007B:
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func082B 0x82B (var var0000, var var0001);
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func0955 0x955 ();

Func082A 0x82A ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	UI_push_answers_0E();
	var0000 = true;
	var0001 = 0x0284;
	UcMessage("\"I can only accept gold coins. I hope that is acceptable with thee.\"");
	UcSay;
	labelFunc082A_0012:
		if(!var0000) goto labelFunc082A_025D;
		UcMessage("\"In which circle art thou interested?\"");
		UcSay;
		var0002 = Func0957(["nothing", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth"]);
		var0002 = (var0002 - 0x0001);
		if(!(var0002 == 0x0000)) goto labelFunc082A_004E;
		goto labelFunc082A_025D;
	labelFunc082A_004E:
		if(!(var0002 == 0x0001)) goto labelFunc082A_008B;
		var0003 = ["nothing", "Mass Sleep"];
		var0004 = [0x0000, 0x0025];
		var0005 = [0x0000, 0x00FA];
		var0006 = [0x0000, 0x0082];
		goto labelFunc082A_018B;
	labelFunc082A_008B:
		if(!(var0002 == 0x0002)) goto labelFunc082A_00C8;
		var0003 = ["nothing", "Create Ammunition"];
		var0004 = [0x0000, 0x002E];
		var0005 = [0x0000, 0x012C];
		var0006 = [0x0000, 0x00B4];
		goto labelFunc082A_018B;
	labelFunc082A_00C8:
		if(!(var0002 == 0x0003)) goto labelFunc082A_0105;
		var0003 = ["nothing", "Vibrate"];
		var0004 = [0x0000, 0x0036];
		var0005 = [0x0000, 0x015E];
		var0006 = [0x0000, 0x00FA];
		goto labelFunc082A_018B;
	labelFunc082A_0105:
		if(!(var0002 == 0x0004)) goto labelFunc082A_014E;
		var0003 = ["nothing", "Invoke Serpent", "Serpent Bond"];
		var0004 = [0x0000, 0x003C, 0x003D];
		var0005 = [0x0000, 0x017C, 0x01C2];
		var0006 = [0x0000, 0x00A0, 0x0113];
		goto labelFunc082A_018B;
	labelFunc082A_014E:
		if(!(var0002 == 0x0005)) goto labelFunc082A_018B;
		var0003 = ["nothing", "Imbalance"];
		var0004 = [0x0000, 0x0047];
		var0005 = [0x0000, 0x0320];
		var0006 = [0x0000, 0x0320];
		goto labelFunc082A_018B;
	labelFunc082A_018B:
		UcMessage("\"What spell dost thou wish to buy?\"");
		UcSay;
		var0007 = Func0957(var0003);
		if(!(var0007 == 0x0001)) goto labelFunc082A_01A9;
		UcMessage("\"So be it...\"");
		UcSay;
		goto labelFunc082A_0250;
	labelFunc082A_01A9:
		var0008 = var0004[var0007];
		var0009 = var0005[var0007];
		var000A = var0006[var0007];
		var000B = var0003[var0007];
		UcMessage("\"I will sell thee ");
		UcMessage(var000B);
		UcMessage(" for ");
		UcMessage(var0009);
		UcMessage(" gold. Dost thou accept?\"");
		UcSay;
		var000C = Func082B(var0009, var000A);
		var000D = 0x0000;
		if(!(var000C > 0x0000)) goto labelFunc082A_0208;
		var000D = Func096F(var0008, var0001, var000C);
	labelFunc082A_0208:
		if(!(var000D == 0x0001)) goto labelFunc082A_0219;
		UcMessage("\"'Tis thine!\"");
		UcSay;
		goto labelFunc082A_0250;
	labelFunc082A_0219:
		if(!(var000D == 0x0002)) goto labelFunc082A_022E;
		UcMessage("\"Ask me again when thou dost have a spellbook!\"");
		UcSay;
		var0000 = false;
		goto labelFunc082A_025D;
	labelFunc082A_022E:
		if(!(var000D == 0x0003)) goto labelFunc082A_023F;
		UcMessage("\"Thou dost not have enough gold to buy that spell!\"");
		UcSay;
		goto labelFunc082A_0250;
	labelFunc082A_023F:
		if(!(var000D == 0x0004)) goto labelFunc082A_0250;
		UcMessage("\"Thou dost already have that spell!\"");
		UcSay;
		goto labelFunc082A_0250;
	labelFunc082A_0250:
		UcMessage("\"Wouldst thou care for another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc082A_0012;
	labelFunc082A_025D:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func082B 0x82B (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = Func0954();
	var0005 = (0x000F - (UI_get_npc_id_BC(0x03F7) / 0x0002));
	var0006 = 0x0000;
	var0007 = 0x0001;
	var0008 = 0x0000;
	var0009 = 0x0002;
	var000A = UI_get_npc_id_BC(0x03F7);
	labelFunc082B_004E:
		if(!var0007) goto labelFunc082B_0423;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc082B_0077;
		rr = 0x0000;
		goto labelFunc082B_008A;
	labelFunc082B_0077:
		if(!(var000B == "yes")) goto labelFunc082B_008A;
		var000C = 0x0000;
		goto labelFunc082B_00D9;
	labelFunc082B_008A:
		var000D = Func0999(var0002, var0000, var0009, var0003, var0008, var0005, var0006);
		var0008 = (var0008 + 0x0001);
		var0006 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0002;
		var0002 = var000D[0x0002];
		var0003 = var000D[0x0001];
	labelFunc082B_00D9:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc082B_027A;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc082B_0130;
		if(!(var000F == 0x0001)) goto labelFunc082B_0111;
		UcMessage("\"Normally I would never accept such an offer, but who do I have to train here? I hope this war ends soon...\"");
		UcSay;
	labelFunc082B_0111:
		if(!(var000F == 0x0002)) goto labelFunc082B_011F;
		UcMessage("\"I have no choice but to accept it at thy price. Assuredly, I have no other offers.\"");
		UcSay;
	labelFunc082B_011F:
		if(!(var000F == 0x0003)) goto labelFunc082B_012D;
		UcMessage("\"I will accept	thine offer. But I shall deny it to my dying day... I have a reputation to uphold, thou knowest.\"");
		UcSay;
	labelFunc082B_012D:
		goto labelFunc082B_01F2;
	labelFunc082B_0130:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc082B_017F;
		if(!(var000F == 0x0001)) goto labelFunc082B_015A;
		UcMessage("\"Times are strange, ");
		UcMessage(var0004);
		UcMessage(". But thou hast the spell, and I have a bit more gold.\"");
		UcSay;
	labelFunc082B_015A:
		if(!(var000F == 0x0002)) goto labelFunc082B_016E;
		UcMessage("\"Thou dost bargain well, ");
		UcMessage(var0004);
		UcMessage(". I will accept this price.\"");
		UcSay;
	labelFunc082B_016E:
		if(!(var000F == 0x0003)) goto labelFunc082B_017C;
		UcMessage("\"I hope thou dost realize that thou art getting a bargain with this price.\"");
		UcSay;
	labelFunc082B_017C:
		goto labelFunc082B_01F2;
	labelFunc082B_017F:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc082B_01C8;
		if(!(var000F == 0x0001)) goto labelFunc082B_01A9;
		UcMessage("\"Only ");
		UcMessage(var0002);
		UcMessage("??! All right, all right... I will accept this price.\"");
		UcSay;
	labelFunc082B_01A9:
		if(!(var000F == 0x0002)) goto labelFunc082B_01B7;
		UcMessage("\"A decent price.\"");
		UcSay;
	labelFunc082B_01B7:
		if(!(var000F == 0x0003)) goto labelFunc082B_01C5;
		UcMessage("\"How else shall I make money, eh? I will accept this price.\"");
		UcSay;
	labelFunc082B_01C5:
		goto labelFunc082B_01F2;
	labelFunc082B_01C8:
		if(!(var000F == 0x0001)) goto labelFunc082B_01D6;
		UcMessage("\"I accept thine offer!\"");
		UcSay;
	labelFunc082B_01D6:
		if(!(var000F == 0x0002)) goto labelFunc082B_01E4;
		UcMessage("\"I accept thine offer. Thou hast a fine eye for a bargain!\"");
		UcSay;
	labelFunc082B_01E4:
		if(!(var000F == 0x0003)) goto labelFunc082B_01F2;
		UcMessage("\"Yes, a good price that is!\"");
		UcSay;
	labelFunc082B_01F2:
		UcMessage("\"So, dost thou agree to a price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc082B_0223;
		if(!(var000A > 0x0001)) goto labelFunc082B_021C;
		UI_set_npc_id_BD(0x03F7, (var000A - 0x0002));
	labelFunc082B_021C:
		rr = var0002;
		goto labelFunc082B_027A;
	labelFunc082B_0223:
		if(!(var000F == 0x0001)) goto labelFunc082B_0231;
		UcMessage("\"I am bored, 'tis true. But I do not take kindly to wasting my time!\"");
		UcSay;
	labelFunc082B_0231:
		if(!(var000F == 0x0002)) goto labelFunc082B_023F;
		UcMessage("\"Now thou hast taken all sport out of the deal!\"");
		UcSay;
	labelFunc082B_023F:
		if(!(var000F == 0x0003)) goto labelFunc082B_024D;
		UcMessage("\"Where are thy manners\"?!\"");
		UcSay;
	labelFunc082B_024D:
		if(!(0x001F < (var000A + 0x000A))) goto labelFunc082B_0268;
		UI_set_npc_id_BD(0x03F7, 0x001F);
		goto labelFunc082B_0276;
	labelFunc082B_0268:
		UI_set_npc_id_BD(0x03F7, (var000A + 0x000A));
	labelFunc082B_0276:
		rr = 0x0000;
	labelFunc082B_027A:
		if(!(var0006 == 0x0001)) goto labelFunc082B_02EA;
		if(!(var000C == 0x0005)) goto labelFunc082B_02C5;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou want it at this price?\"");
		UcSay;
		if(!(var000A < 0x001C)) goto labelFunc082B_02B0;
		UI_set_npc_id_BD(0x03F7, (var000A + 0x0004));
	labelFunc082B_02B0:
		if(!(Func0955() == true)) goto labelFunc082B_02BC;
		rr = var0002;
	labelFunc082B_02BC:
		var0007 = 0x0000;
		goto labelFunc082B_02E7;
	labelFunc082B_02C5:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(".  I will go no lower.\"");
		UcSay;
		if(!(var000A < 0x001E)) goto labelFunc082B_02E7;
		UI_set_npc_id_BD(0x03F7, (var000A + 0x0002));
	labelFunc082B_02E7:
		goto labelFunc082B_0420;
	labelFunc082B_02EA:
		if(!(var000C == 0x0002)) goto labelFunc082B_0330;
		if(!(var000F == 0x0001)) goto labelFunc082B_0308;
		UcMessage("\"Thou dost barter well. How does ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc082B_0308:
		if(!(var000F == 0x0002)) goto labelFunc082B_031C;
		UcMessage("\"I see thou dost understand the value of this fine spell. How does ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc082B_031C:
		if(!(var000F == 0x0003)) goto labelFunc082B_0330;
		UcMessage("\"I shall make thee a deal. For thee only I offer it for ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082B_0330:
		if(!(var000C == 0x0003)) goto labelFunc082B_0376;
		if(!(var000F == 0x0001)) goto labelFunc082B_034E;
		UcMessage("\"Hmmm.... Wouldst thou pay ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082B_034E:
		if(!(var000F == 0x0002)) goto labelFunc082B_0362;
		UcMessage("\"Thou dost drive a hard bargain. ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082B_0362:
		if(!(var000F == 0x0003)) goto labelFunc082B_0376;
		UcMessage("\"What dost thou say to ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082B_0376:
		if(!(var000C == 0x0004)) goto labelFunc082B_03BC;
		if(!(var000F == 0x0001)) goto labelFunc082B_0394;
		UcMessage("\"Better I should fling my spells to the Chaos hordes! ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082B_0394:
		if(!(var000F == 0x0002)) goto labelFunc082B_03A8;
		UcMessage("\"Thou dost mock my years of training with such an offer! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082B_03A8:
		if(!(var000F == 0x0003)) goto labelFunc082B_03BC;
		UcMessage("\"I am no fool! This fine spell is worth at least ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082B_03BC:
		if(!(var000C == 0x0005)) goto labelFunc082B_0420;
		var0002 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc082B_03E0;
		UcMessage("\"My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(". This spell is not some paltry bauble that thou mayest find anywhere.\"");
		UcSay;
	labelFunc082B_03E0:
		if(!(var000F == 0x0002)) goto labelFunc082B_03F4;
		UcMessage("\"Do not be insulting! ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc082B_03F4:
		if(!(var000F == 0x0003)) goto labelFunc082B_0408;
		UcMessage("\"My offer stands at ");
		UcMessage(var0002);
		UcMessage(". Thou art a stranger, after all. I know not what use thou wilt make of this.\"");
		UcSay;
	labelFunc082B_0408:
		if(!(var000A < 0x001F)) goto labelFunc082B_0420;
		UI_set_npc_id_BD(0x03F7, (var000A + 0x0001));
	labelFunc082B_0420:
		goto labelFunc082B_004E;
	labelFunc082B_0423:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func096E 0x96E (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func0964 0x964 (var var0000, var var0001);
extern Func0962 0x962 (var var0000, var var0001);

Func082C 0x82C ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = Func0954();
	var0001 = 0x0284;
	var0002 = [0x0002, 0x0006];
	var0003 = 0x0096;
	UcMessage("\"I charge 150 gold to train thee in the use of magic. Dost thou agree?\"");
	UcSay;
	var0004 = Func0956(["Yes", "No"]);
	if(!(var0004 == "No")) goto labelFunc082C_0040;
	UcMessage("\"Suit thyself... It is thy loss.\"");
	UcSay;
	abrt();
	labelFunc082C_0040:
		if(!(var0004 == "Yes")) goto labelFunc082C_012E;
		var0005 = Func096E(var0002, var0001, var0003, 0xFE9C, 0x0002);
		if(!(var0005 == 0x0000)) goto labelFunc082C_006D;
		UcMessage("\"Thou art not ready to learn yet!\"");
		UcSay;
	labelFunc082C_006D:
		if(!(var0005 == 0x0001)) goto labelFunc082C_007C;
		UcMessage("\"Thou dost not have 150 gold! Speak with me when thou dost have the money.\"");
		UcSay;
		abrt();
	labelFunc082C_007C:
		if(!(var0005 == 0x0002)) goto labelFunc082C_009D;
		if(!(Func095C(0xFE9C, 0x0006) < 0x001E)) goto labelFunc082C_0099;
		goto labelFunc082C_00A7;
	labelFunc082C_0099:
		UcMessage("\"Thou dost already possess more skill than I could teach thee!\"");
		UcSay;
	labelFunc082C_009D:
		if(!(var0005 == 0x0003)) goto labelFunc082C_012E;
	labelFunc082C_00A7:
		UcMessage("\"Let me see how thou dost handle the reagents...");
		UcSay;
		UcMessage("\"No, no! This is not chicken feed that thou dost handle!\"");
		UcSay;
		UcMessage("\"All right, now speak the words of power...");
		UcSay;
		UcMessage("\"Slowly, slowly! If thou dost mis-pronounce them, the spell will go awry and thou wilt have wasted the reagents.\"");
		UcSay;
		UcMessage("\"Unleash the spell... NOW!\"");
		UcSay;
		var0006 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x001A, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UcMessage("\"Thou hast potential but thou must pratice, or thou wilt be undone when haste is called for.\"");
		UcSay;
		var0007 = UI_remove_party_items_34(var0003, var0001, 0xFE99, 0xFE99, true);
		if(!(Func095C(0xFE9C, 0x0006) < 0x001E)) goto labelFunc082C_0115;
		Func0964(0xFE9C, 0x0001);
	labelFunc082C_0115:
		if(!(Func095C(0xFE9C, 0x0002) < 0x001E)) goto labelFunc082C_012E;
		Func0962(0xFE9C, 0x0001);
	labelFunc082C_012E:
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func082E 0x82E (var var0000, var var0001);

Func082D 0x82D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	UI_push_answers_0E();
	var0000 = true;
	UcMessage("\"With what coinage dost thou wish to pay?\"");
	UcSay;
	var0001 = Func0956(["Guilders", "Gold Coins"]);
	if(!(var0001 == "Guilders")) goto labelFunc082D_002B;
	var0002 = 0x03B8;
	labelFunc082D_002B:
		if(!(var0001 == "Gold Coins")) goto labelFunc082D_0041;
		var0002 = 0x0284;
		var0003 = 0x0001;
	labelFunc082D_0041:
		if(!var0000) goto labelFunc082D_0454;
		UcMessage("\"In which circle art thou interested?\"");
		UcSay;
		var0004 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth"]);
		var0004 = (var0004 - 0x0001);
		if(!(var0004 == 0x0000)) goto labelFunc082D_0089;
		goto labelFunc082D_0454;
	labelFunc082D_0089:
		if(!(var0004 == 0x0001)) goto labelFunc082D_00DE;
		var0005 = ["nothing", "Create Food", "Great Douse", "Locate"];
		var0006 = [0x0000, 0x0000, 0x0003, 0x0006];
		var0007 = [0x0000, 0x0014, 0x0012, 0x001A];
		var0008 = [0x0000, 0x000C, 0x0009, 0x000D];
		goto labelFunc082D_0302;
	labelFunc082D_00DE:
		if(!(var0004 == 0x0002)) goto labelFunc082D_011B;
		var0005 = ["nothing", "False Coin"];
		var0006 = [0x0000, 0x000A];
		var0007 = [0x0000, 0x0050];
		var0008 = [0x0000, 0x0032];
		goto labelFunc082D_0302;
	labelFunc082D_011B:
		if(!(var0004 == 0x0003)) goto labelFunc082D_0164;
		var0005 = ["nothing", "Paralyze", "Sleep"];
		var0006 = [0x0000, 0x0015, 0x0016];
		var0007 = [0x0000, 0x0046, 0x003C];
		var0008 = [0x0000, 0x0023, 0x0022];
		goto labelFunc082D_0302;
	labelFunc082D_0164:
		if(!(var0004 == 0x0004)) goto labelFunc082D_01A1;
		var0005 = ["nothing", "Deter"];
		var0006 = [0x0000, 0x0019];
		var0007 = [0x0000, 0x005A];
		var0008 = [0x0000, 0x0032];
		goto labelFunc082D_0302;
	labelFunc082D_01A1:
		if(!(var0004 == 0x0005)) goto labelFunc082D_01EA;
		var0005 = ["nothing", "Mass Sleep", "Erstam's Surprise"];
		var0006 = [0x0000, 0x0025, 0x0027];
		var0007 = [0x0000, 0x0091, 0x00A0];
		var0008 = [0x0000, 0x0050, 0x0064];
		goto labelFunc082D_0302;
	labelFunc082D_01EA:
		if(!(var0004 == 0x0006)) goto labelFunc082D_0227;
		var0005 = ["nothing", "Fire Ring"];
		var0006 = [0x0000, 0x002C];
		var0007 = [0x0000, 0x00B4];
		var0008 = [0x0000, 0x006E];
		goto labelFunc082D_0302;
	labelFunc082D_0227:
		if(!(var0004 == 0x0007)) goto labelFunc082D_0264;
		var0005 = ["nothing", "Vibrate"];
		var0006 = [0x0000, 0x0036];
		var0007 = [0x0000, 0x00DC];
		var0008 = [0x0000, 0x006E];
		goto labelFunc082D_0302;
	labelFunc082D_0264:
		if(!(var0004 == 0x0008)) goto labelFunc082D_02AD;
		var0005 = ["nothing", "Mind Blast", "Swordstrike"];
		var0006 = [0x0000, 0x0039, 0x003F];
		var0007 = [0x0000, 0x012C, 0x011D];
		var0008 = [0x0000, 0x00B9, 0x00A5];
		goto labelFunc082D_0302;
	labelFunc082D_02AD:
		if(!(var0004 == 0x0009)) goto labelFunc082D_0302;
		var0005 = ["nothing", "Death Vortex", "Mass Death", "Spiral Missiles"];
		var0006 = [0x0000, 0x0040, 0x0041, 0x0043];
		var0007 = [0x0000, 0x015E, 0x0190, 0x01A9];
		var0008 = [0x0000, 0x00DC, 0x00FA, 0x0104];
		goto labelFunc082D_0302;
	labelFunc082D_0302:
		UcMessage("\"What spell dost thou wish to buy?\"");
		UcSay;
		var0009 = Func0957(var0005);
		if(!(var0009 == 0x0001)) goto labelFunc082D_0320;
		UcMessage("\"So be it...\"");
		UcSay;
		goto labelFunc082D_0447;
	labelFunc082D_0320:
		var000A = var0006[var0009];
		var000B = (var0007[var0009] * var0003);
		var000C = (var0008[var0009] * var0003);
		var000D = var0005[var0009];
		if(!(var0001 == "Guilders")) goto labelFunc082D_0378;
		var000B = ((var0007[var0009] * 0x0003) / 0x0002);
		var000C = ((var0008[var0009] * 0x0003) / 0x0002);
	labelFunc082D_0378:
		if(!(var000B == var000C)) goto labelFunc082D_03B8;
		UcMessage("\"I will sell thee ");
		UcMessage(var000D);
		UcMessage(" for ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Dost thou accept?\"");
		UcSay;
		var000E = 0x0000;
		if(!(Func0955() == true)) goto labelFunc082D_03B5;
		var000E = Func096F(var000A, var0002, var000B);
	labelFunc082D_03B5:
		goto labelFunc082D_03F9;
	labelFunc082D_03B8:
		UcMessage("\"I will sell thee ");
		UcMessage(var000D);
		UcMessage(" for ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Dost thou accept?\"");
		UcSay;
		var000F = Func082E(var000B, var000C);
		var000E = 0x0000;
		if(!(var000F > 0x0000)) goto labelFunc082D_03F9;
		var000E = Func096F(var000A, var0002, var000F);
	labelFunc082D_03F9:
		if(!(var000E == 0x0001)) goto labelFunc082D_040A;
		UcMessage("\"'Tis thine!\"");
		UcSay;
		goto labelFunc082D_0447;
	labelFunc082D_040A:
		if(!(var000E == 0x0002)) goto labelFunc082D_041F;
		UcMessage("\"Find thyself a spellbook before thou dost seek to buy from me again!\"");
		UcSay;
		var0000 = false;
		goto labelFunc082D_0454;
	labelFunc082D_041F:
		if(!(var000E == 0x0003)) goto labelFunc082D_0436;
		UcMessage("\"Thou dost not have enough ");
		UcMessage(var0001);
		UcMessage(" to buy that spell!\"");
		UcSay;
		goto labelFunc082D_0447;
	labelFunc082D_0436:
		if(!(var000E == 0x0004)) goto labelFunc082D_0447;
		UcMessage("\"If thou wilt look, thou wilt find thou dost already have that spell!\"");
		UcSay;
		goto labelFunc082D_0447;
	labelFunc082D_0447:
		UcMessage("\"Wouldst thou care for another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc082D_0041;
	labelFunc082D_0454:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func082E 0x82E (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = (0x000F - (UI_get_npc_id_BC(0xFFAF) / 0x0002));
	var0005 = 0x0000;
	var0006 = 0x0001;
	var0007 = 0x0000;
	var0008 = 0x0002;
	var0009 = UI_get_npc_id_BC(0xFFAF);
	labelFunc082E_0048:
		if(!var0006) goto labelFunc082E_0411;
		var000A = Func0956(["yes", "no", "haggle"]);
		if(!(var000A == "no")) goto labelFunc082E_0071;
		rr = 0x0000;
		goto labelFunc082E_0084;
	labelFunc082E_0071:
		if(!(var000A == "yes")) goto labelFunc082E_0084;
		var000B = 0x0000;
		goto labelFunc082E_00D3;
	labelFunc082E_0084:
		var000C = Func0999(var0002, var0000, var0008, var0003, var0007, var0004, var0005);
		var0007 = (var0007 + 0x0001);
		var0005 = var000C[0x0004];
		var000B = var000C[0x0003];
		var000D = var0002;
		var0002 = var000C[0x0002];
		var0003 = var000C[0x0001];
	labelFunc082E_00D3:
		var000E = UI_get_random_00(0x0003);
		if(!(var000B < 0x0002)) goto labelFunc082E_0268;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc082E_012A;
		if(!(var000E == 0x0001)) goto labelFunc082E_010B;
		UcMessage("\"Thou dost drive a hard bargain, indeed. But I must accept in order to be able to continue drinking...\"");
		UcSay;
	labelFunc082E_010B:
		if(!(var000E == 0x0002)) goto labelFunc082E_0119;
		UcMessage("\"'Twill hurt, but I have no choice but to accept it at this price.\"");
		UcSay;
	labelFunc082E_0119:
		if(!(var000E == 0x0003)) goto labelFunc082E_0127;
		UcMessage("\"I must be a fool for doing this, but I will accept thine offer. Please, do not tell anyone about this...\"");
		UcSay;
	labelFunc082E_0127:
		goto labelFunc082E_01E0;
	labelFunc082E_012A:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc082E_016D;
		if(!(var000E == 0x0001)) goto labelFunc082E_014E;
		UcMessage("\"One must have money to drink, eh? I will accept this price.\"");
		UcSay;
	labelFunc082E_014E:
		if(!(var000E == 0x0002)) goto labelFunc082E_015C;
		UcMessage("\"Thou dost bargain well, hero. I will accept this price.\"");
		UcSay;
	labelFunc082E_015C:
		if(!(var000E == 0x0003)) goto labelFunc082E_016A;
		UcMessage("\"Ummph. Thou art getting a good bargain with this price.\"");
		UcSay;
	labelFunc082E_016A:
		goto labelFunc082E_01E0;
	labelFunc082E_016D:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc082E_01B6;
		if(!(var000E == 0x0001)) goto labelFunc082E_0197;
		UcMessage("\"Only ");
		UcMessage(var0002);
		UcMessage("??! All right, all right... I will accept this price.\"");
		UcSay;
	labelFunc082E_0197:
		if(!(var000E == 0x0002)) goto labelFunc082E_01A5;
		UcMessage("\"A decent price.\"");
		UcSay;
	labelFunc082E_01A5:
		if(!(var000E == 0x0003)) goto labelFunc082E_01B3;
		UcMessage("\"One must make a living, must one not? I will accept this price.\"");
		UcSay;
	labelFunc082E_01B3:
		goto labelFunc082E_01E0;
	labelFunc082E_01B6:
		if(!(var000E == 0x0001)) goto labelFunc082E_01C4;
		UcMessage("\"I accept thine offer!\"");
		UcSay;
	labelFunc082E_01C4:
		if(!(var000E == 0x0002)) goto labelFunc082E_01D2;
		UcMessage("\"I accept thine offer. And did I say how much of a pleasure it is doing business with thee?\"");
		UcSay;
	labelFunc082E_01D2:
		if(!(var000E == 0x0003)) goto labelFunc082E_01E0;
		UcMessage("\"Yes, a good price that is!\"");
		UcSay;
	labelFunc082E_01E0:
		UcMessage("\"So, have we agreed on the price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc082E_0211;
		if(!(var0009 > 0x0001)) goto labelFunc082E_020A;
		UI_set_npc_id_BD(0xFFAF, (var0009 - 0x0002));
	labelFunc082E_020A:
		rr = var0002;
		goto labelFunc082E_0268;
	labelFunc082E_0211:
		if(!(var000E == 0x0001)) goto labelFunc082E_021F;
		UcMessage("\"Thou didst do this for jest?!\"");
		UcSay;
	labelFunc082E_021F:
		if(!(var000E == 0x0002)) goto labelFunc082E_022D;
		UcMessage("\"I did not enjoy this waste of my time!\"");
		UcSay;
	labelFunc082E_022D:
		if(!(var000E == 0x0003)) goto labelFunc082E_023B;
		UcMessage("\"Do not expect me to be so courteous to thee next time!\"");
		UcSay;
	labelFunc082E_023B:
		if(!(0x001F < (var0009 + 0x000A))) goto labelFunc082E_0256;
		UI_set_npc_id_BD(0xFFAF, 0x001F);
		goto labelFunc082E_0264;
	labelFunc082E_0256:
		UI_set_npc_id_BD(0xFFAF, (var0009 + 0x000A));
	labelFunc082E_0264:
		rr = 0x0000;
	labelFunc082E_0268:
		if(!(var0005 == 0x0001)) goto labelFunc082E_02D8;
		if(!(var000B == 0x0005)) goto labelFunc082E_02B3;
		UcMessage("\"I said that ");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou want it at this price?\"");
		UcSay;
		if(!(var0009 < 0x001C)) goto labelFunc082E_029E;
		UI_set_npc_id_BD(0xFFAF, (var0009 + 0x0004));
	labelFunc082E_029E:
		if(!(Func0955() == true)) goto labelFunc082E_02AA;
		rr = var0002;
	labelFunc082E_02AA:
		var0006 = 0x0000;
		goto labelFunc082E_02D5;
	labelFunc082E_02B3:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer.  I will go no lower.\"");
		UcSay;
		if(!(var0009 < 0x001E)) goto labelFunc082E_02D5;
		UI_set_npc_id_BD(0xFFAF, (var0009 + 0x0002));
	labelFunc082E_02D5:
		goto labelFunc082E_040E;
	labelFunc082E_02D8:
		if(!(var000B == 0x0002)) goto labelFunc082E_031E;
		if(!(var000E == 0x0001)) goto labelFunc082E_02F6;
		UcMessage("\"Ahhh, I see thou hast a fine understanding of bartering. How does ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc082E_02F6:
		if(!(var000E == 0x0002)) goto labelFunc082E_030A;
		UcMessage("\"I see thou dost understand the value of this fine spell. How does ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc082E_030A:
		if(!(var000E == 0x0003)) goto labelFunc082E_031E;
		UcMessage("\"What a pleasure it is to deal with thee. I offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_031E:
		if(!(var000B == 0x0003)) goto labelFunc082E_0364;
		if(!(var000E == 0x0001)) goto labelFunc082E_033C;
		UcMessage("\"Hmmm.... Wouldst thou pay ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082E_033C:
		if(!(var000E == 0x0002)) goto labelFunc082E_0350;
		UcMessage("\"Thou dost drive a hard bargain. ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082E_0350:
		if(!(var000E == 0x0003)) goto labelFunc082E_0364;
		UcMessage("\"I must make a living, thou knowest. What dost thou say to ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc082E_0364:
		if(!(var000B == 0x0004)) goto labelFunc082E_03AA;
		if(!(var000E == 0x0001)) goto labelFunc082E_0382;
		UcMessage("\"I spit upon thy pittance! Does ");
		UcMessage(var0002);
		UcMessage(" better please thy miserly nature?\"");
		UcSay;
	labelFunc082E_0382:
		if(!(var000E == 0x0002)) goto labelFunc082E_0396;
		UcMessage("\"I worked for more years than thou hast lived to acquire this knowledge! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_0396:
		if(!(var000E == 0x0003)) goto labelFunc082E_03AA;
		UcMessage("\"Dost thou take me for a fool? This fine spell is worth at least ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_03AA:
		if(!(var000B == 0x0005)) goto labelFunc082E_040E;
		var0002 = var000D;
		if(!(var000E == 0x0001)) goto labelFunc082E_03CE;
		UcMessage("\"Thou must not be serious about this... My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_03CE:
		if(!(var000E == 0x0002)) goto labelFunc082E_03E2;
		UcMessage("\"I will not be insulted! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_03E2:
		if(!(var000E == 0x0003)) goto labelFunc082E_03F6;
		UcMessage("\"Dog! I could not even afford a decent glass of ale for what thou hast offered! I will not lower my prices for such a fiend as thou. My offer stands at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc082E_03F6:
		if(!(var0009 < 0x001F)) goto labelFunc082E_040E;
		UI_set_npc_id_BD(0xFFAF, (var0009 + 0x0001));
	labelFunc082E_040E:
		goto labelFunc082E_0048;
	labelFunc082E_0411:
		return rr;
}
Func082F 0x82F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = [0x03B4, 0x03B8, 0x03B7, 0x0284, 0x0285, 0x0286, 0x02F8];
	enum();
	labelFunc082F_001C:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc082F_0061);
		var0004 = UI_find_nearby_41(0xFE9C, var0003, 0x0014, 0x0000);
		if(!var0004) goto labelFunc082F_005E;
		var0005 = UI_set_last_created_2E(var0004);
		var0006 = UI_get_npc_object_23(0xFE9C);
		var0005 = UI_give_last_created_42(var0006);
	labelFunc082F_005E:
		goto labelFunc082F_001C;
	labelFunc082F_0061:
		return;
}
// externs
extern var Func0953 0x953 ();

Func0830 0x830 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	if(!((UI_get_random_00(0x0003) == 0x0001) && UI_npc_nearby_3A(0xFFF6))) goto labelFunc0830_0119;
	UI_show_npc_face1_06(0xFED6, 0x0000);
	var0000 = ["MageLord, the documents are ready for thy signature.", "The sorceress Frigidazzi hath arrived, honor.", "Thou art needed in the treasury, MageLord.", "It is time for thine appointment, MageLord.", "MageLord, thou art needed to handle a tax matter.", "Thou art urgently needed, MageLord."];
	var0001 = var0000[UI_get_random_00(UI_get_array_size_73(var0000))];
	UcMessage("\"");
	UcMessage(var0001);
	UcMessage("\"");
	UcSay;
	UI_set_conversation_slot_09(0x0000);
	var0001 = UI_get_random_00(0x0003);
	if(!(var0001 == 0x0001)) goto labelFunc0830_00F7;
	var0002 = Func0953();
	UcMessage("\"Then I must go immediately. Please excuse me, ");
	UcMessage(var0002);
	UcMessage(".\"");
	UcSay;
	var0003 = UI_get_object_position_20(0xFFEE);
	UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_move_object_4B(0xFFEE, [0x05F4, 0x078F, 0x0000]);
	var0003 = UI_get_object_position_20(0xFFF6);
	UI_sprite_effect_68(0x0007, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_move_object_4B(0xFFF6, [0x05F6, 0x078F, 0x0000]);
	abrt();
	labelFunc0830_00F7:
		if(!(var0001 == 0x0002)) goto labelFunc0830_010B;
		UcMessage("\"Surely that can wait! ");
		UcMessage(var0002);
		UcMessage(", as thou canst see, the strain of ruling this great city hath left me little more than skin and bones...\"");
		UcSay;
	labelFunc0830_010B:
		if(!(var0001 > 0x0002)) goto labelFunc0830_0119;
		UcMessage("\"In a moment, automaton.\"");
		UcSay;
	labelFunc0830_0119:
		return;
}
var Func0831 0x831 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0002 = var0001;
	var0003 = 0x0000;
	var0004 = 0x0000;
	var0003 = (var0001[0x0001] - var0000[0x0001]);
	if(!(var0003 < 0x0000)) goto labelFunc0831_0036;
	var0003 = (var0003 * Dupre);
	labelFunc0831_0036:
		var0004 = (var0001[0x0002] - var0000[0x0002]);
		if(!(var0003 < 0x0000)) goto labelFunc0831_005A;
		var0003 = (var0003 * Dupre);
	labelFunc0831_005A:
		if(!((var0003 < 0x0002) && (var0004 < 0x0002))) goto labelFunc0831_0070;
		rr = 0x0000;
	labelFunc0831_0070:
		var0003 = 0x0000;
		var0004 = 0x0000;
		if(!(var0000[0x0001] < var0001[0x0001])) goto labelFunc0831_0099;
		var0003 = UI_die_roll_17(Shamino, 0x0000);
	labelFunc0831_0099:
		if(!(var0000[0x0001] == var0001[0x0001])) goto labelFunc0831_00B6;
		var0003 = UI_die_roll_17(Dupre, 0x0001);
	labelFunc0831_00B6:
		if(!(var0000[0x0001] > var0001[0x0001])) goto labelFunc0831_00D3;
		var0003 = UI_die_roll_17(0x0000, 0x0002);
	labelFunc0831_00D3:
		if(!(var0000[0x0002] < var0001[0x0002])) goto labelFunc0831_00F0;
		var0004 = UI_die_roll_17(Shamino, 0x0000);
	labelFunc0831_00F0:
		if(!(var0000[0x0002] == var0001[0x0002])) goto labelFunc0831_010D;
		var0004 = UI_die_roll_17(Dupre, 0x0001);
	labelFunc0831_010D:
		if(!(var0000[0x0002] > var0001[0x0002])) goto labelFunc0831_012A;
		var0004 = UI_die_roll_17(0x0000, 0x0002);
	labelFunc0831_012A:
		var0001[0x0001] = (var0001[0x0001] + var0003);
		var0001[0x0002] = (var0001[0x0002] + var0004);
		if(!(var0001[0x0003] > 0x0000)) goto labelFunc0831_019C;
		var0002 = var0001;
		var0002[0x0003] = (var0002[0x0003] - 0x0001);
		if(!((!UI_is_not_blocked_A0(var0001, 0x037F, 0x0001)) && UI_is_not_blocked_A0(var0002, 0x037F, 0x0001))) goto labelFunc0831_019C;
		var0001[0x0003] = (var0001[0x0003] - 0x0001);
	labelFunc0831_019C:
		var0002 = var0001;
		var0002[0x0003] = (var0002[0x0003] + 0x0001);
		if(!((!UI_is_not_blocked_A0(var0001, 0x037F, 0x0001)) && UI_is_not_blocked_A0(var0002, 0x037F, 0x0001))) goto labelFunc0831_01E1;
		var0001[0x0003] = (var0001[0x0003] + 0x0001);
	labelFunc0831_01E1:
		rr = var0001;
		return rr;
}
var Func0832 0x832 (var var0000)
{
	var rr;
	if(!((var0000 == 0x0000) || (var0000 == 0x0001))) goto labelFunc0832_0016;
	rr = 0x0000;
	labelFunc0832_0016:
		if(!((var0000 == 0x0002) || (var0000 == 0x0003))) goto labelFunc0832_002C;
		rr = Dupre;
	labelFunc0832_002C:
		if(!((var0000 == 0x0004) || (var0000 == 0x0005))) goto labelFunc0832_0042;
		rr = Shamino;
	labelFunc0832_0042:
		if(!((var0000 == 0x0006) || (var0000 == 0x0007))) goto labelFunc0832_0058;
		rr = Iolo;
	labelFunc0832_0058:
		if(!((var0000 == 0x0008) || (var0000 == 0x0009))) goto labelFunc0832_006E;
		rr = 0xFFFB;
	labelFunc0832_006E:
		if(!((var0000 == 0x000A) || (var0000 == 0x000B))) goto labelFunc0832_0084;
		rr = 0xFFFA;
	labelFunc0832_0084:
		if(!((var0000 == 0x000C) || (var0000 == 0x000D))) goto labelFunc0832_009A;
		rr = 0xFFF9;
	labelFunc0832_009A:
		if(!((var0000 == 0x000E) || (var0000 == 0x000F))) goto labelFunc0832_00B0;
		rr = 0xFFF7;
	labelFunc0832_00B0:
		return rr;
}
// externs
extern var Func0920 0x920 ();

Func0833 0x833 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0001 = UI_find_nearby_41(0xFFB0, 0x03B5, 0x0014, 0x0000);
	if(!(var0000 == 0x0001)) goto labelFunc0833_0045;
	if(!var0001) goto labelFunc0833_0045;
	var0002 = UI_get_object_position_20(var0001);
	UI_si_path_run_usecode_C1(0xFFB0, var0002, 0x000A, UI_get_npc_object_23(0xFFB0), 0x0450, true);
	labelFunc0833_0045:
		if(!(var0000 == 0x000A)) goto labelFunc0833_00DB;
		UI_set_schedule_type_25(0xFFB0, 0x000F);
		var0003 = (UI_find_nearby_avatar_3C(0x010F) & UI_find_nearby_avatar_3C(0x0110));
		var0004 = false;
		enum();
	labelFunc0833_0070:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0833_00A4);
		var0008 = Func0920();
		var0008 = UI_execute_usecode_array_01(var0001, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0006]);
		var0004 = true;
		goto labelFunc0833_0070;
	labelFunc0833_00A4:
		var0008 = UI_execute_usecode_array_01(0xFFB0, [0x59, 0x0006, 0x01, 0x6C, 0x61, 0x0B, Shamino, 0x0004]);
		var0008 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x0450], 0x0014);
	labelFunc0833_00DB:
		if(!(var0000 == 0x0002)) goto labelFunc0833_0160;
		UI_run_schedule_B7(0xFFB0);
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0009 = UI_find_nearby_41(0xFFB0, 0x010F, 0x0014, 0x0000);
		if(!var0009) goto labelFunc0833_0160;
		if(!UI_npc_nearby_3A(var0009)) goto labelFunc0833_0133;
		var0008 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x0450], 0x0014);
		goto labelFunc0833_0160;
	labelFunc0833_0133:
		var000A = UI_get_object_position_20(var0009);
		var0008 = UI_set_last_created_2E(var0009);
		if(!var0008) goto labelFunc0833_0160;
		var000A[0x0003] = 0x0000;
		var0008 = UI_update_last_created_2F(var000A);
	labelFunc0833_0160:
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();

Func0834 0x834 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	UcMessage("\"As thou hast aided me in mine experiments, I shall teach thee spells free of charge.\"");
	UcSay;
	UI_push_answers_0E();
	var0000 = true;
	labelFunc0834_000C:
		if(!var0000) goto labelFunc0834_0274;
		UcMessage("\"In which circle of magic art thou interested?\"");
		UcSay;
		var0001 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth"]);
		var0001 = (var0001 - 0x0001);
		if(!(var0001 == 0x0000)) goto labelFunc0834_0054;
		goto labelFunc0834_0274;
	labelFunc0834_0054:
		if(!(var0001 == 0x0001)) goto labelFunc0834_007F;
		var0002 = ["nothing", "Detect Trap", "Create Food"];
		var0003 = [0x0000, 0x0002, 0x0000];
		goto labelFunc0834_01B9;
	labelFunc0834_007F:
		if(!(var0001 == 0x0002)) goto labelFunc0834_00AA;
		var0002 = ["nothing", "Cold Blast", "Mass Cure"];
		var0003 = [0x0000, 0x000B, 0x000E];
		goto labelFunc0834_01B9;
	labelFunc0834_00AA:
		if(!(var0001 == 0x0003)) goto labelFunc0834_00CF;
		var0002 = ["nothing", "Enchant Missiles"];
		var0003 = [0x0000, 0x0012];
		goto labelFunc0834_01B9;
	labelFunc0834_00CF:
		if(!(var0001 == 0x0004)) goto labelFunc0834_00F4;
		var0002 = ["nothing", "Unlock Magic"];
		var0003 = [0x0000, 0x001F];
		goto labelFunc0834_01B9;
	labelFunc0834_00F4:
		if(!(var0001 == 0x0005)) goto labelFunc0834_011F;
		var0002 = ["nothing", "Conjure", "Great Heal"];
		var0003 = [0x0000, 0x0020, 0x0023];
		goto labelFunc0834_01B9;
	labelFunc0834_011F:
		if(!(var0001 == 0x0006)) goto labelFunc0834_0144;
		var0002 = ["nothing", "Fire Field"];
		var0003 = [0x0000, 0x002B];
		goto labelFunc0834_01B9;
	labelFunc0834_0144:
		if(!(var0001 == 0x0007)) goto labelFunc0834_0169;
		var0002 = ["nothing", "Restoration"];
		var0003 = [0x0000, 0x0035];
		goto labelFunc0834_01B9;
	labelFunc0834_0169:
		if(!(var0001 == 0x0008)) goto labelFunc0834_018E;
		var0002 = ["nothing", "Delayed Blast"];
		var0003 = [0x0000, 0x003A];
		goto labelFunc0834_01B9;
	labelFunc0834_018E:
		if(!(var0001 == 0x0009)) goto labelFunc0834_01B9;
		var0002 = ["nothing", "Spiral Missiles", "Stop Storm"];
		var0003 = [0x0000, 0x0043, 0x0044];
		goto labelFunc0834_01B9;
	labelFunc0834_01B9:
		UcMessage("\"What spell dost thou wish to learn?\"");
		UcSay;
		var0004 = Func0957(var0002);
		if(!(var0004 == 0x0001)) goto labelFunc0834_01D7;
		UcMessage("\"As thou dost wish...\"");
		UcSay;
		goto labelFunc0834_0267;
	labelFunc0834_01D7:
		var0005 = var0003[var0004];
		var0006 = var0002[var0004];
		var0007 = UI_find_object_32(0xFE9B, 0x02F9, 0xFE99, 0xFE99);
		if(!var0007) goto labelFunc0834_0224;
		if(!UI_add_spell_66(var0005, 0x0000, var0007)) goto labelFunc0834_021B;
		var0008 = 0x0001;
		goto labelFunc0834_0221;
	labelFunc0834_021B:
		var0008 = 0x0003;
	labelFunc0834_0221:
		goto labelFunc0834_022A;
	labelFunc0834_0224:
		var0008 = 0x0002;
	labelFunc0834_022A:
		if(!(var0008 == 0x0001)) goto labelFunc0834_0241;
		UcMessage("\"The spell ");
		UcMessage(var0006);
		UcMessage(" is thine.\"");
		UcSay;
		goto labelFunc0834_0267;
	labelFunc0834_0241:
		if(!(var0008 == 0x0002)) goto labelFunc0834_0256;
		UcMessage("\"Thou dost not have a spellbook! Return to me when thou dost have one.\"");
		UcSay;
		var0000 = false;
		goto labelFunc0834_0274;
	labelFunc0834_0256:
		if(!(var0008 == 0x0003)) goto labelFunc0834_0267;
		UcMessage("\"I believe thou dost already have that spell.\"");
		UcSay;
		goto labelFunc0834_0267;
	labelFunc0834_0267:
		UcMessage("\"Perhaps thou wouldst care to learn another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc0834_000C;
	labelFunc0834_0274:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func0835 0x835 ()
{
	var var0000;

	if(!UI_get_cont_items_33(0xFF6B, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0835_007B;
	UcMessage("\"I have many items in my possession which may aid thee in thy journeys. Wouldst thou like them?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0835_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0010] = false;
	var0000 = Func09B3(0xFF6B);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc0835_003F;
	UcMessage("\"Thy companions will have to help thee with this burden.\"");
	UcSay;
	labelFunc0835_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc0835_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc0835_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc0835_0070;
	labelFunc0835_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc0835_0070:
		goto labelFunc0835_007B;
	labelFunc0835_0073:
		gflags[0010] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask.\"");
		UcSay;
	labelFunc0835_007B:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func0955 0x955 ();
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0836 0x836 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = Func0953();
	var0001 = 0x03B7;
	var0002 = UI_count_objects_31(0xFE9B, var0001, 0xFE99, 0xFE99);
	var0003 = false;
	var0004 = false;
	var0005 = true;
	if(!(!gflags[005B])) goto labelFunc0836_01F3;
	UcMessage("\"I charge 30 monetari, and no less, to perform mine healing. Is this acceptable?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0836_01EC;
	if(!(var0002 < 0x001E)) goto labelFunc0836_004B;
	UcMessage("\"Thou dost not have the monetari to pay me!\"");
	UcSay;
	abrt();
	labelFunc0836_004B:
		UcMessage("\"Whom dost thou wish to heal?\"");
		UcSay;
	labelFunc0836_004F:
		if(!var0005) goto labelFunc0836_01E9;
	labelFunc0836_0055:
		var0006 = 0x001E;
		if(!(var0003 == true)) goto labelFunc0836_0069;
		var0006 = 0x0000;
	labelFunc0836_0069:
		var0007 = Func098E();
		var0007 = (0x0000 & var0007);
		var0008 = ["nobody"];
		enum();
	labelFunc0836_0083:
		for (var000B in var0007 with var0009 to var000A atend labelFunc0836_00AA);
		if(!(!(var000B == 0x0000))) goto labelFunc0836_00A7;
		var0008 = (var0008 & UI_get_npc_name_30(var000B));
	labelFunc0836_00A7:
		goto labelFunc0836_0083;
	labelFunc0836_00AA:
		var000C = Func0957(var0008);
		var000C = var0007[var000C];
		if(!(var000C == 0x0000)) goto labelFunc0836_00C9;
		goto labelFunc0836_0208;
	labelFunc0836_00C9:
		var000D = UI_get_npc_number_47(var000C);
		var000E = UI_get_item_flag_A3(var000C, 0x0008);
		var000F = Func095C(var000C, 0x0000);
		var0010 = Func095C(var000C, 0x0003);
		var0011 = UI_get_npc_name_30(var000C);
		if(!(var000F > var0010)) goto labelFunc0836_0141;
		var0012 = (var000F - var0010);
		Func095E(var000D, 0x0003, var0012);
		var0013 = UI_remove_party_items_34(var0006, var0001, 0xFE99, 0xFE99, true);
		var0004 = true;
		UcMessage("\"The bodily wounds have been healed.\"");
		UcSay;
		goto labelFunc0836_0197;
	labelFunc0836_0141:
		if(!(var000E == false)) goto labelFunc0836_0167;
		if(!(var000D == 0xFE9C)) goto labelFunc0836_015A;
		UcMessage("\"Thou seemest quite healthy!\"");
		UcSay;
		goto labelFunc0836_0164;
	labelFunc0836_015A:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage(" is already healthy!\"");
		UcSay;
	labelFunc0836_0164:
		goto labelFunc0836_0197;
	labelFunc0836_0167:
		if(!(var000D == 0xFE9C)) goto labelFunc0836_018D;
		if(!(gflags[0098] && (!gflags[005A]))) goto labelFunc0836_0186;
		UcMessage("\"Before I can cure this affliction, thou must needs bring me five Varo leaves from Delphynia, the horticulturist in Fawn!\"");
		UcSay;
		goto labelFunc0836_0208;
		goto labelFunc0836_018A;
	labelFunc0836_0186:
		UcMessage("\"Thou art poisoned! Fortunately, the poison can easily be removed from thy body.\"");
		UcSay;
	labelFunc0836_018A:
		goto labelFunc0836_0197;
	labelFunc0836_018D:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage(" is poisoned! At least it is a simple venom to cure.\"");
		UcSay;
	labelFunc0836_0197:
		if(!((var000D == 0xFE9C) && ((gflags[0098] == true) && (gflags[005A] == false)))) goto labelFunc0836_01B4;
		UcMessage("\"I have healed thy body of the ravages of the poison, but the effects shall keep occurring until thou art dead. Thou must bring me five Varo leaves from Delphynia, the horticulturist in Fawn, before I can permanently cure thee of this affliction!\"");
		UcSay;
		goto labelFunc0836_0208;
	labelFunc0836_01B4:
		if(!(var000E == true)) goto labelFunc0836_01E6;
		if(!(var0004 == false)) goto labelFunc0836_01D8;
		var0013 = UI_remove_party_items_34(var0006, var0001, 0xFE99, 0xFE99, true);
	labelFunc0836_01D8:
		UI_clear_item_flag_A5(var000C, 0x0008);
		UcMessage("\"The poisoning hath been healed.\"");
		UcSay;
	labelFunc0836_01E6:
		goto labelFunc0836_004F;
	labelFunc0836_01E9:
		goto labelFunc0836_01F0;
	labelFunc0836_01EC:
		UcMessage("\"Some other time, then.\"");
		UcSay;
	labelFunc0836_01F0:
		goto labelFunc0836_0208;
	labelFunc0836_01F3:
		UcMessage("\"As thou hast aided me so shall I help thee, ");
		UcMessage(var0000);
		UcMessage(". I will perform mine healing free of charge.\"");
		UcSay;
		UcMessage("\"Whom dost thou wish to heal?\"");
		UcSay;
		var0003 = true;
		goto labelFunc0836_0055;
	labelFunc0836_0208:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0838 0x838 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0837 0x837 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "garlic", "ginseng", "onion", "apple", "carrot", "banana", "grapes"];
	var0003 = [0x0000, 0x034A, 0x034A, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x0004, 0x0005, 0x0016, 0x0010, 0x0012, 0x0011, 0x0013];
	var0005 = [0x0000, 0x0008, 0x0009, 0x0001, 0x0006, 0x0002, 0x0006, 0x0002];
	var0006 = [0x0000, 0x0004, 0x0005, 0x0001, 0x0003, 0x0002, 0x0003, 0x0002];
	var0007 = 0x03B7;
	var0008 = [0x0000, 0x0003, 0x0002, 0x0001, 0x0003, 0x0001, 0x0002, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc0837_00F6;
	var000A = "Milady";
	goto labelFunc0837_00FC;
	labelFunc0837_00F6:
		var000A = "Milord";
	labelFunc0837_00FC:
		if(!var0001) goto labelFunc0837_0419;
		var000B = Func0957(var0002);
		if(!(var000B == 0x0001)) goto labelFunc0837_0169;
		var000C = UI_die_roll_17(0x0001, 0x0003);
		if(!(var000C == 0x0001)) goto labelFunc0837_0132;
		var000D = "Perhaps later,";
	labelFunc0837_0132:
		if(!(var000C == 0x0002)) goto labelFunc0837_0142;
		var000D = "Another time, then,";
	labelFunc0837_0142:
		if(!(var000C == 0x0003)) goto labelFunc0837_0152;
		var000D = "Come again,";
	labelFunc0837_0152:
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc0837_0416;
	labelFunc0837_0169:
		var000E = var0005[var000B];
		var000F = 0x0000;
		var0010 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0010 == 0x0001)) goto labelFunc0837_0195;
		var0011 = "Dost thou accept?";
	labelFunc0837_0195:
		if(!(var0010 == 0x0002)) goto labelFunc0837_01A5;
		var0011 = "Wilt thou pay my price?";
	labelFunc0837_01A5:
		if(!(var0010 == 0x0003)) goto labelFunc0837_01B5;
		var0011 = "Dost thou agree?";
	labelFunc0837_01B5:
		if(!(var0010 == 0x0004)) goto labelFunc0837_01C5;
		var0011 = "Is the price acceptable?";
	labelFunc0837_01C5:
		if(!(var000B == 0x0002)) goto labelFunc0837_01E6;
		UcMessage("\"I can sell thee three cloves for ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "cloves of garlic, in bunches of three,";
	labelFunc0837_01E6:
		if(!(var000B == 0x0003)) goto labelFunc0837_020A;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage(" monetari is what I ask for two bunches of ginseng roots.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "ginseng roots, in bunches of two,";
	labelFunc0837_020A:
		if(!(var000B == 0x0004)) goto labelFunc0837_022E;
		UcMessage("\"For an onion, I ask ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "onions";
	labelFunc0837_022E:
		if(!(var000B == 0x0005)) goto labelFunc0837_0255;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage(" monetari will buy thee three apples, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "apples, in bunches of three,";
	labelFunc0837_0255:
		if(!(var000B == 0x0006)) goto labelFunc0837_0279;
		UcMessage("\"My carrots are exceptionally good this season! ");
		UcMessage(var000E);
		UcMessage(" monetari is the price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "carrots";
	labelFunc0837_0279:
		if(!(var000B == 0x0007)) goto labelFunc0837_02A0;
		UcMessage("\"");
		UcMessage(var000A);
		UcMessage(", thou shouldst try my bananas! I can sell thee two for ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "bananas, in bunches of two,";
	labelFunc0837_02A0:
		if(!(var000B == 0x0008)) goto labelFunc0837_02C1;
		UcMessage("\"I can sell thee one bunch of grapes for ");
		UcMessage(var000E);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "bunches of grapes";
	labelFunc0837_02C1:
		if(!(var000E == var0006[var000B])) goto labelFunc0837_02E6;
		if(!Func0955()) goto labelFunc0837_02DD;
		var0013 = var000E;
		goto labelFunc0837_02E3;
	labelFunc0837_02DD:
		var0013 = 0x0000;
	labelFunc0837_02E3:
		goto labelFunc0837_02F8;
	labelFunc0837_02E6:
		var0013 = Func0838(var0005[var000B], var0006[var000B]);
	labelFunc0837_02F8:
		if(!(var0013 > 0x0000)) goto labelFunc0837_0363;
		if(!(var0009[var000B] == 0x0001)) goto labelFunc0837_0341;
		UcMessage("\"How many ");
		UcMessage(var0012);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000F = Func0943(var0003[var000B], var0004[var000B], var0008[var000B], var0007, var0013, 0x000A, 0x0001, false);
		goto labelFunc0837_0363;
	labelFunc0837_0341:
		var000F = Func0943(var0003[var000B], var0004[var000B], 0x0001, var0007, var0013, 0x0000, 0x0001, false);
	labelFunc0837_0363:
		if(!(var000F == 0x0001)) goto labelFunc0837_037A;
		UcMessage("\"");
		UcMessage(var000A);
		UcMessage(", I hope thou dost enjoy thy purchase!\"");
		UcSay;
		goto labelFunc0837_040C;
	labelFunc0837_037A:
		if(!(var000F == 0x0002)) goto labelFunc0837_0391;
		UcMessage("\"I believe that thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0837_040C;
	labelFunc0837_0391:
		if(!(var000F == 0x0003)) goto labelFunc0837_040C;
		var0014 = Func0992(0x0001, (("@But " + var0000) + ", we have not the monetari to purchase this.@"), 0x0000, false);
		if(!(var0014 != 0xFE9C)) goto labelFunc0837_03D4;
		UI_show_npc_face0_05(0xFFBD, 0x0000);
		UcMessage("\"Then I am afraid thou canst not purchase any of my goods, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0837_03D8;
	labelFunc0837_03D4:
		UcMessage("\"I am afraid thou dost not have enough to pay for this...\"");
		UcSay;
	labelFunc0837_03D8:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFBD) + 0x0006))) goto labelFunc0837_03F7;
		UI_set_npc_id_BD(0xFFBD, 0x001F);
		goto labelFunc0837_0409;
	labelFunc0837_03F7:
		UI_set_npc_id_BD(0xFFBD, (UI_get_npc_id_BC(0xFFBD) + 0x0006));
	labelFunc0837_0409:
		goto labelFunc0837_0419;
	labelFunc0837_040C:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0837_0416:
		goto labelFunc0837_00FC;
	labelFunc0837_0419:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0838 0x838 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	if(!UI_is_pc_female_6F()) goto labelFunc0838_0016;
	var0003 = "Milady";
	goto labelFunc0838_001C;
	labelFunc0838_0016:
		var0003 = "Milord";
	labelFunc0838_001C:
		var0004 = var0001;
		var0005 = ((var0000 / 0x0003) * 0x0002);
		var0006 = (0x000F - (UI_get_npc_id_BC(0xFFBD) / 0x0002));
		var0007 = 0x0000;
		var0008 = 0x0001;
		var0009 = 0x0000;
		var000A = 0x0002;
		var000B = UI_get_npc_id_BC(0xFFBD);
	labelFunc0838_0064:
		if(!var0008) goto labelFunc0838_045D;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc0838_008D;
		rr = 0x0000;
		goto labelFunc0838_00A0;
	labelFunc0838_008D:
		if(!(var000C == "yes")) goto labelFunc0838_00A0;
		var000D = 0x0000;
		goto labelFunc0838_00EF;
	labelFunc0838_00A0:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc0838_00EF:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc0838_02AC;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0838_0152;
		if(!(var0010 == 0x0001)) goto labelFunc0838_012D;
		UcMessage("\"Please do not tell anyone in town of this, ");
		UcMessage(var0002);
		UcMessage("! Else I will no longer be able to make a living...\"");
		UcSay;
	labelFunc0838_012D:
		if(!(var0010 == 0x0002)) goto labelFunc0838_0141;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", thou hast the heart of a true trader...\"");
		UcSay;
	labelFunc0838_0141:
		if(!(var0010 == 0x0003)) goto labelFunc0838_014F;
		UcMessage("\"I must be losing my mind to agree to such a price!\"");
		UcSay;
	labelFunc0838_014F:
		goto labelFunc0838_0220;
	labelFunc0838_0152:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0838_019B;
		if(!(var0010 == 0x0001)) goto labelFunc0838_0176;
		UcMessage("\"Thou canst see that my prices are fair...\"");
		UcSay;
	labelFunc0838_0176:
		if(!(var0010 == 0x0002)) goto labelFunc0838_018A;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", thou hast charmed me, I am certain! I would never offer prices this low!\"");
		UcSay;
	labelFunc0838_018A:
		if(!(var0010 == 0x0003)) goto labelFunc0838_0198;
		UcMessage("\"Who would have thought I would lose my mind so young! To accept such a price...\"");
		UcSay;
	labelFunc0838_0198:
		goto labelFunc0838_0220;
	labelFunc0838_019B:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0838_01EA;
		if(!(var0010 == 0x0001)) goto labelFunc0838_01BF;
		UcMessage("\"A good deal, if I do say so myself.\"");
		UcSay;
	labelFunc0838_01BF:
		if(!(var0010 == 0x0002)) goto labelFunc0838_01D3;
		UcMessage("\"Thou art a worthy customer, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0838_01D3:
		if(!(var0010 == 0x0003)) goto labelFunc0838_01E7;
		UcMessage("\"'Tis a pleasure doing business with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0838_01E7:
		goto labelFunc0838_0220;
	labelFunc0838_01EA:
		if(!(var0010 == 0x0001)) goto labelFunc0838_01FE;
		UcMessage("\"Thou hast made me a happy woman, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0838_01FE:
		if(!(var0010 == 0x0002)) goto labelFunc0838_0212;
		UcMessage("\"I appreciate thy business, ");
		UcMessage(var0002);
		UcMessage(".");
		UcSay;
	labelFunc0838_0212:
		if(!(var0010 == 0x0003)) goto labelFunc0838_0220;
		UcMessage("\"I hate charging such prices, but times are hard...\"");
		UcSay;
	labelFunc0838_0220:
		UcMessage("\"Wilt thou agree to a price of ");
		UcMessage(var0004);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0838_0255;
		if(!(var000B > 0x0001)) goto labelFunc0838_024E;
		UI_set_npc_id_BD(0xFFBD, (var000B - 0x0002));
	labelFunc0838_024E:
		rr = var0004;
		goto labelFunc0838_02AC;
	labelFunc0838_0255:
		if(!(var0010 == 0x0001)) goto labelFunc0838_0263;
		UcMessage("\"But what of our agreement?\"");
		UcSay;
	labelFunc0838_0263:
		if(!(var0010 == 0x0002)) goto labelFunc0838_0271;
		UcMessage("\"Why hast thou changed thy mind?\"");
		UcSay;
	labelFunc0838_0271:
		if(!(var0010 == 0x0003)) goto labelFunc0838_027F;
		UcMessage("\"I thought thou wert in need of my produce!\"");
		UcSay;
	labelFunc0838_027F:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc0838_029A;
		UI_set_npc_id_BD(0xFFBD, 0x001F);
		goto labelFunc0838_02A8;
	labelFunc0838_029A:
		UI_set_npc_id_BD(0xFFBD, (var000B + 0x000A));
	labelFunc0838_02A8:
		rr = 0x0000;
	labelFunc0838_02AC:
		if(!(var0007 == 0x0001)) goto labelFunc0838_0320;
		if(!(var000D == 0x0005)) goto labelFunc0838_02FB;
		UcMessage("\"Wert thou not listening, ");
		UcMessage(var0002);
		UcMessage(", I said that ");
		UcMessage(var0004);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc0838_02E8;
		UI_set_npc_id_BD(0xFFBD, (var000B + 0x0004));
	labelFunc0838_02E8:
		if(!Func0955()) goto labelFunc0838_02F2;
		rr = var0004;
	labelFunc0838_02F2:
		var0008 = 0x0000;
		goto labelFunc0838_031D;
	labelFunc0838_02FB:
		UcMessage("\"Very well. ");
		UcMessage(var0004);
		UcMessage(" monetari is my final offer.\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc0838_031D;
		UI_set_npc_id_BD(0xFFBD, (var000B + 0x0002));
	labelFunc0838_031D:
		goto labelFunc0838_045A;
	labelFunc0838_0320:
		if(!(var000D == 0x0002)) goto labelFunc0838_0366;
		if(!(var0010 == 0x0001)) goto labelFunc0838_033E;
		UcMessage("\"Thou art a challenge to deal with... How does ");
		UcMessage(var0004);
		UcMessage(" monetari sound?\"");
		UcSay;
	labelFunc0838_033E:
		if(!(var0010 == 0x0002)) goto labelFunc0838_0352;
		UcMessage("\"So, have we agreed on ");
		UcMessage(var0004);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0838_0352:
		if(!(var0010 == 0x0003)) goto labelFunc0838_0366;
		UcMessage("\"I offer thee ");
		UcMessage(var0004);
		UcMessage(" monetari. Dost thou accept?\"");
		UcSay;
	labelFunc0838_0366:
		if(!(var000D == 0x0003)) goto labelFunc0838_03AC;
		if(!(var0010 == 0x0001)) goto labelFunc0838_0384;
		UcMessage("\"I must make a living... Wouldst thou pay ");
		UcMessage(var0004);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0838_0384:
		if(!(var0010 == 0x0002)) goto labelFunc0838_0398;
		UcMessage("\"Let me consider... ");
		UcMessage(var0004);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0838_0398:
		if(!(var0010 == 0x0003)) goto labelFunc0838_03AC;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" monetari, then? I must show some profit or become a beggar.\"");
		UcSay;
	labelFunc0838_03AC:
		if(!(var000D == 0x0004)) goto labelFunc0838_03F6;
		if(!(var0010 == 0x0001)) goto labelFunc0838_03CE;
		UcMessage("\"I cannot accept less than ");
		UcMessage(var0004);
		UcMessage(" monetari!\"");
		UcSay;
		UcMessage("\"Wilt thou agree?\"");
		UcSay;
	labelFunc0838_03CE:
		if(!(var0010 == 0x0002)) goto labelFunc0838_03E2;
		UcMessage("\"Surely thou canst see that I can go no lower than ");
		UcMessage(var0004);
		UcMessage(" monetari. It is difficult to garden because of the Goblin raids...\"");
		UcSay;
	labelFunc0838_03E2:
		if(!(var0010 == 0x0003)) goto labelFunc0838_03F6;
		UcMessage("\"My produce is worth no less than ");
		UcMessage(var0004);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0838_03F6:
		if(!(var000D == 0x0005)) goto labelFunc0838_045A;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc0838_041A;
		UcMessage("\"My previous price stands, at ");
		UcMessage(var0004);
		UcMessage(" monetari. I am at risk from the Goblins while gardening!\"");
		UcSay;
	labelFunc0838_041A:
		if(!(var0010 == 0x0002)) goto labelFunc0838_042E;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" monetari, and no less! Thou shalt find no one with a better price, I will warrant.\"");
		UcSay;
	labelFunc0838_042E:
		if(!(var0010 == 0x0003)) goto labelFunc0838_0442;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" monetari is where I stand. I must pay someone to stand watch while I garden.\"");
		UcSay;
	labelFunc0838_0442:
		if(!(var000B < 0x001F)) goto labelFunc0838_045A;
		UI_set_npc_id_BD(0xFFBD, (var000B + 0x0001));
	labelFunc0838_045A:
		goto labelFunc0838_0064;
	labelFunc0838_045D:
		return rr;
}
// externs
extern var Func0944 0x944 (var var0000, var var0001, var var0002);

var Func0839 0x839 ()
{
	var var0000;
	var rr;

	var0000 = UI_get_object_position_20(0xFFD8);
	rr = Func0944(var0000, [0x04F1, 0x08B0, 0x0000], [0x051E, 0x08CE, 0x0000]);
	return rr;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func083A 0x83A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0001 = Func09A0(0x0002, 0x0001);
	UI_show_npc_face0_05(0xFFD8, 0x0000);
	UcMessage("\"I'd advise ye ta hold fast an' keep a weather eye on that there horizon! We'll be runnin' afore the wind hard enough to splinter the mast as it is.\"");
	UcSay;
	UI_remove_npc_face0_07();
	UI_set_item_flag_A4(0xFE9C, 0x0011);
	UI_set_item_flag_A4(var0000, 0x001A);
	if(!(!UI_in_usecode_8F(var0000))) goto labelFunc083A_0070;
	var0002 = [0x2C, 0x32, 0x21, 0x0B, Shamino, 0x0005, 0x55, 0x07E4];
	var0003 = UI_execute_usecode_array_01(var0000, var0002);
	var0003 = UI_set_item_quality_1D(var0001, 0x0000);
	labelFunc083A_0070:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func083B 0x83B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(var0000[0x0001] == Dupre)) goto labelFunc083B_0068;
	var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Woof woof! Rrruff!@"]);
	UI_set_schedule_type_25(item, 0x0004);
	var0002 = Func0992(0x0001, 0x0000, 0x0000, false);
	UI_clear_item_say_4E(var0002);
	Func097F(var0002, "@We must be close!@", 0x0004);
	var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x036A], 0x0014);
	abrt();
	labelFunc083B_0068:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Woof woof! Woof!@"]);
		var0003 = UI_get_object_position_20(item);
		var0004 = (var0000[0x0002] - var0003[0x0002]);
		var0005 = (var0000[0x0001] - var0003[0x0001]);
		var0006 = var0004;
		if(!(var0004 < 0x0000)) goto labelFunc083B_00BC;
		var0006 = (var0006 * Dupre);
	labelFunc083B_00BC:
		var0007 = var0005;
		if(!(var0005 < 0x0000)) goto labelFunc083B_00D6;
		var0007 = (var0007 * Dupre);
	labelFunc083B_00D6:
		if(!(var0007 > var0006)) goto labelFunc083B_0128;
		if(!(var0005 > 0x0000)) goto labelFunc083B_0109;
		var0008 = 0x0002;
		var0009 = "east";
		var0003[0x0001] = (var0003[0x0001] + 0x0014);
		goto labelFunc083B_0125;
	labelFunc083B_0109:
		var0008 = 0x0006;
		var0009 = "west";
		var0003[0x0001] = (var0003[0x0001] - 0x0014);
	labelFunc083B_0125:
		goto labelFunc083B_016D;
	labelFunc083B_0128:
		if(!(var0004 > 0x0000)) goto labelFunc083B_0151;
		var0008 = 0x0004;
		var0009 = "south";
		var0003[0x0002] = (var0003[0x0002] + 0x0014);
		goto labelFunc083B_016D;
	labelFunc083B_0151:
		var0008 = 0x0000;
		var0009 = "north";
		var0003[0x0002] = (var0003[0x0002] - 0x0014);
	labelFunc083B_016D:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x59, var0008]);
		var0001 = Func0992(0x0001, (("@The dog points " + var0009) + "!@"), (("@" + var0009) + "!@"), true);
		UI_si_path_run_usecode_C1(item, var0003, 0x000D, item, 0x036A, true);
		abrt();
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func083C 0x83C ()
{
	var var0000;

	if(!UI_get_cont_items_33(Iolo, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc083C_007B;
	UcMessage("\"I am carrying many items, some of which may be of use to thee. Wouldst thou care to have these before I depart?\"");
	UcSay;
	if(!Func0955()) goto labelFunc083C_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0019] = false;
	var0000 = Func09B3(Iolo);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc083C_003F;
	UcMessage("\"Thy friends will have to help carry these things.\"");
	UcSay;
	labelFunc083C_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc083C_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc083C_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc083C_0070;
	labelFunc083C_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc083C_0070:
		goto labelFunc083C_007B;
	labelFunc083C_0073:
		gflags[0019] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask again.\"");
		UcSay;
	labelFunc083C_007B:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func083F 0x83F (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func083D 0x83D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "mutton", "ham", "rolls", "seabass", "tarpin"];
	var0003 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x0008, 0x000B, 0x0002, 0x000C, 0x000D];
	var0005 = [0x0000, 0x002A, 0x0032, 0x0008, 0x0023, 0x0028];
	var0006 = [0x0000, 0x0016, 0x001C, 0x0006, 0x0014, 0x0018];
	var0007 = 0x03B4;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What dost thou care for, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc083D_00D2:
		if(!var0001) goto labelFunc083D_0386;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc083D_00FC;
		UcMessage("\"Let me know if thou dost change thy mind, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc083D_0383;
	labelFunc083D_00FC:
		var000B = var0005[var000A];
		var000C = 0x0000;
		var000D = UI_die_roll_17(0x0001, 0x0006);
		if(!(var000D == 0x0001)) goto labelFunc083D_0128;
		var000E = "Dost thou accept?";
	labelFunc083D_0128:
		if(!(var000D == 0x0002)) goto labelFunc083D_0138;
		var000E = "Wilt thou pay this price?";
	labelFunc083D_0138:
		if(!(var000D == 0x0003)) goto labelFunc083D_0148;
		var000E = "Dost thou find the price agreeable?";
	labelFunc083D_0148:
		if(!(var000D == 0x0004)) goto labelFunc083D_0158;
		var000E = "Dost thou agree?";
	labelFunc083D_0158:
		if(!(var000D == 0x0005)) goto labelFunc083D_0168;
		var000E = "Is the price acceptable?";
	labelFunc083D_0168:
		if(!(var000D == 0x0006)) goto labelFunc083D_0178;
		var000E = "Is the price acceptable?";
	labelFunc083D_0178:
		if(!(var000A == 0x0002)) goto labelFunc083D_019C;
		UcMessage("\"We do not see much meat here in Fawn, so the price is a bit steep. I sell mutton for ");
		UcMessage(var000B);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var000F = "joints of mutton";
	labelFunc083D_019C:
		if(!(var000A == 0x0003)) goto labelFunc083D_01C0;
		UcMessage("\"The ham dinner costs ");
		UcMessage(var000B);
		UcMessage(" filari. 'Tis not too bad...\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var000F = "ham dinners";
	labelFunc083D_01C0:
		if(!(var000A == 0x0004)) goto labelFunc083D_01E4;
		UcMessage("\"The rolls are hard, but nourishing. They cost ");
		UcMessage(var000B);
		UcMessage(" filari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var000F = "rolls";
	labelFunc083D_01E4:
		if(!(var000A == 0x0005)) goto labelFunc083D_020E;
		UcMessage("\"Caught fresh every day, ");
		UcMessage(var0000);
		UcMessage(". ");
		UcMessage(var000B);
		UcMessage(" filari is my price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var000F = "seabass";
	labelFunc083D_020E:
		if(!(var000A == 0x0006)) goto labelFunc083D_0232;
		UcMessage("\"The tarpin costs ");
		UcMessage(var000B);
		UcMessage(" filari. 'Tis caught from the shore now that the fleet is gone.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var000F = "tarpin";
	labelFunc083D_0232:
		if(!(var000B == var0006[var000A])) goto labelFunc083D_0257;
		if(!Func0955()) goto labelFunc083D_024E;
		var0010 = var000B;
		goto labelFunc083D_0254;
	labelFunc083D_024E:
		var0010 = 0x0000;
	labelFunc083D_0254:
		goto labelFunc083D_0269;
	labelFunc083D_0257:
		var0010 = Func083F(var0005[var000A], var0006[var000A]);
	labelFunc083D_0269:
		if(!(var0010 > 0x0000)) goto labelFunc083D_02D4;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc083D_02AF;
		UcMessage("\"How many ");
		UcMessage(var000F);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000A = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var0010, 0x0014, 0x0001, false);
		goto labelFunc083D_02D4;
	labelFunc083D_02AF:
		var000A = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var0010, 0x0000, 0x0001, false);
	labelFunc083D_02D4:
		if(!(var000A == 0x0001)) goto labelFunc083D_02EB;
		UcMessage("\"Eat hearty, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc083D_0379;
	labelFunc083D_02EB:
		if(!(var000A == 0x0002)) goto labelFunc083D_0302;
		UcMessage("\"Thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc083D_0379;
	labelFunc083D_0302:
		if(!(var000A == 0x0003)) goto labelFunc083D_0379;
		var000D = Func0992(0x0001, (("@But " + var0000) + ", we haven't the filari to pay for this.@"), 0x0000, false);
		if(!(var000D != 0xFE9C)) goto labelFunc083D_0340;
		UI_show_npc_face0_05(Jendon, 0x0000);
		UcMessage("\"I do not allow beggars in here!\"");
		UcSay;
		abrt();
		goto labelFunc083D_0345;
	labelFunc083D_0340:
		UcMessage("\"If thou canst not pay, then thou canst leave!\"");
		UcSay;
		abrt();
	labelFunc083D_0345:
		if(!(0x001F < (UI_get_npc_id_BC(Jendon) + 0x0006))) goto labelFunc083D_0364;
		UI_set_npc_id_BD(Jendon, 0x001F);
		goto labelFunc083D_0376;
	labelFunc083D_0364:
		UI_set_npc_id_BD(Jendon, (UI_get_npc_id_BC(Jendon) + 0x0006));
	labelFunc083D_0376:
		goto labelFunc083D_0379;
	labelFunc083D_0379:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc083D_0383:
		goto labelFunc083D_00D2;
	labelFunc083D_0386:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func083F 0x83F (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func083E 0x83E ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "ale"];
	var0004 = [0x0000, 0x0268];
	var0005 = [0xFE99, 0x0009];
	var0006 = [0x0000, 0x000C];
	var0007 = [0x0000, 0x0006];
	var0008 = 0x03B4;
	var0009 = [0x0000, 0x0001];
	var000A = [0x0000, 0x0001];
	UcMessage("\"What can I get ye?\"");
	UcSay;
	labelFunc083E_0072:
		if(!var0002) goto labelFunc083E_0201;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc083E_0096;
		UcMessage("\"Then why'dst thou ask in the first place?\"");
		UcSay;
		var0002 = false;
		goto labelFunc083E_01FE;
	labelFunc083E_0096:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc083E_00B9;
		UcMessage("\"That'll be ");
		UcMessage(var000C);
		UcMessage(" filari for a bottle of fine Fawn ale. Wouldst thou care for any?\"");
		UcSay;
	labelFunc083E_00B9:
		if(!(var000C == var0007[var000B])) goto labelFunc083E_00DE;
		if(!Func0955()) goto labelFunc083E_00D5;
		var000E = var000C;
		goto labelFunc083E_00DB;
	labelFunc083E_00D5:
		var000E = 0x0000;
	labelFunc083E_00DB:
		goto labelFunc083E_00F0;
	labelFunc083E_00DE:
		var000E = Func083F(var0006[var000B], var0007[var000B]);
	labelFunc083E_00F0:
		if(!(var000E > 0x0000)) goto labelFunc083E_0155;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc083E_0130;
		UcMessage("\"How many bottles wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], 0x0001, var0008, var000E, 0x0014, 0x0001, false);
		goto labelFunc083E_0155;
	labelFunc083E_0130:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000E, 0x0000, 0x0001, false);
	labelFunc083E_0155:
		if(!(var000D == 0x0001)) goto labelFunc083E_016C;
		UcMessage("\"Cheers, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc083E_01F4;
	labelFunc083E_016C:
		if(!(var000D == 0x0002)) goto labelFunc083E_017D;
		UcMessage("\"Thou shouldst not travel so heavily burdened -- I do not think that thou canst bear the bottles that thou desirest!\"");
		UcSay;
		goto labelFunc083E_01F4;
	labelFunc083E_017D:
		if(!(var000D == 0x0003)) goto labelFunc083E_01F4;
		var000F = Func0992(0x0001, (("@But " + var0000) + ", we do not have the filari to pay for this.@"), 0x0000, false);
		if(!(var000F != 0xFE9C)) goto labelFunc083E_01BB;
		UI_show_npc_face0_05(Jendon, 0x0000);
		UcMessage("\"I don't allow no beggars in here!\"");
		UcSay;
		abrt();
		goto labelFunc083E_01C0;
	labelFunc083E_01BB:
		UcMessage("\"If thou canst not pay, then thou canst leave!\"");
		UcSay;
		abrt();
	labelFunc083E_01C0:
		if(!(0x001F < (UI_get_npc_id_BC(Jendon) + 0x0006))) goto labelFunc083E_01DF;
		UI_set_npc_id_BD(Jendon, 0x001F);
		goto labelFunc083E_01F1;
	labelFunc083E_01DF:
		UI_set_npc_id_BD(Jendon, (UI_get_npc_id_BC(Jendon) + 0x0006));
	labelFunc083E_01F1:
		goto labelFunc083E_01F4;
	labelFunc083E_01F4:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc083E_01FE:
		goto labelFunc083E_0072;
	labelFunc083E_0201:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);

var Func083F 0x83F (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var rr;

	var0002 = Func0954();
	var0003 = var0001;
	var0004 = ((var0000 / 0x0003) * 0x0002);
	var0005 = (0x000F - (UI_get_npc_id_BC(Jendon) / 0x0002));
	var0006 = 0x0000;
	var0007 = 0x0001;
	var0008 = 0x0000;
	var0009 = 0x0002;
	var000A = UI_get_npc_id_BC(Jendon);
	labelFunc083F_004E:
		if(!var0007) goto labelFunc083F_045A;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc083F_0077;
		rr = 0x0000;
		goto labelFunc083F_008A;
	labelFunc083F_0077:
		if(!(var000B == "yes")) goto labelFunc083F_008A;
		var000C = 0x0000;
		goto labelFunc083F_00D9;
	labelFunc083F_008A:
		var000D = Func0999(var0003, var0000, var0009, var0004, var0008, var0005, var0006);
		var0008 = (var0008 + 0x0001);
		var0006 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0003;
		var0003 = var000D[0x0002];
		var0004 = var000D[0x0001];
	labelFunc083F_00D9:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc083F_0284;
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc083F_0136;
		if(!(var000F == 0x0001)) goto labelFunc083F_0111;
		UcMessage("\"Shh! Don't let Olon hear what price thou didst pay. He would never let me hear the last of it!\"");
		UcSay;
	labelFunc083F_0111:
		if(!(var000F == 0x0002)) goto labelFunc083F_0125;
		UcMessage("\"Thou dost drive a hard bargain, ");
		UcMessage(var0002);
		UcMessage(". I should sell the inn an' become one o' them monks!\"");
		UcSay;
	labelFunc083F_0125:
		if(!(var000F == 0x0003)) goto labelFunc083F_0133;
		UcMessage("\"Out-bargained by a stranger! What be next, a goblin?\"");
		UcSay;
	labelFunc083F_0133:
		goto labelFunc083F_01F8;
	labelFunc083F_0136:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc083F_0179;
		if(!(var000F == 0x0001)) goto labelFunc083F_015A;
		UcMessage("\"Fairest prices thou wilt find hereabouts...\"");
		UcSay;
	labelFunc083F_015A:
		if(!(var000F == 0x0002)) goto labelFunc083F_0168;
		UcMessage("\"I must be going slack-witted, ta offer thee a price like this!\"");
		UcSay;
	labelFunc083F_0168:
		if(!(var000F == 0x0003)) goto labelFunc083F_0176;
		UcMessage("\"Art thou sure thou art not a wizard... Ta talk me into a price such as this?\"");
		UcSay;
	labelFunc083F_0176:
		goto labelFunc083F_01F8;
	labelFunc083F_0179:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc083F_01C2;
		if(!(var000F == 0x0001)) goto labelFunc083F_019D;
		UcMessage("\"Not bad... Not bad at all.\"");
		UcSay;
	labelFunc083F_019D:
		if(!(var000F == 0x0002)) goto labelFunc083F_01AB;
		UcMessage("\"If this is the best I can get, I had best take it.\"");
		UcSay;
	labelFunc083F_01AB:
		if(!(var000F == 0x0003)) goto labelFunc083F_01BF;
		UcMessage("\"Remember me, if thou dost need anythin' more, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc083F_01BF:
		goto labelFunc083F_01F8;
	labelFunc083F_01C2:
		if(!(var000F == 0x0001)) goto labelFunc083F_01D6;
		UcMessage("\"Not a bad piece of business, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc083F_01D6:
		if(!(var000F == 0x0002)) goto labelFunc083F_01E4;
		UcMessage("\"Thou art tough... like an ol' sailor!\"");
		UcSay;
	labelFunc083F_01E4:
		if(!(var000F == 0x0003)) goto labelFunc083F_01F8;
		UcMessage("\"I wish things were better, ");
		UcMessage(var0002);
		UcMessage(". Thou wouldst find me prices fairer, ta be sure.\"");
		UcSay;
	labelFunc083F_01F8:
		UcMessage("\"Dost thou agree ta a price of ");
		UcMessage(var0003);
		UcMessage(" filari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc083F_022D;
		if(!(var000A > 0x0001)) goto labelFunc083F_0226;
		UI_set_npc_id_BD(Jendon, (var000A - 0x0002));
	labelFunc083F_0226:
		rr = var0003;
		goto labelFunc083F_0284;
	labelFunc083F_022D:
		if(!(var000F == 0x0001)) goto labelFunc083F_023B;
		UcMessage("\"Hast thou forgotten already? We had an agreement!\"");
		UcSay;
	labelFunc083F_023B:
		if(!(var000F == 0x0002)) goto labelFunc083F_0249;
		UcMessage("\"Then be gone with thee -- I have no time ta play games.\"");
		UcSay;
	labelFunc083F_0249:
		if(!(var000F == 0x0003)) goto labelFunc083F_0257;
		UcMessage("\"Dost thou think me a fool, ta argue with me only ta change thy mind? I shall spread the word about thee in this town, wait and see!\"");
		UcSay;
	labelFunc083F_0257:
		if(!(0x001F < (var000A + 0x000A))) goto labelFunc083F_0272;
		UI_set_npc_id_BD(Jendon, 0x001F);
		goto labelFunc083F_0280;
	labelFunc083F_0272:
		UI_set_npc_id_BD(Jendon, (var000A + 0x000A));
	labelFunc083F_0280:
		rr = 0x0000;
	labelFunc083F_0284:
		if(!(var0006 == 0x0001)) goto labelFunc083F_02F8;
		if(!(var000C == 0x0005)) goto labelFunc083F_02D3;
		UcMessage("\"Look, ");
		UcMessage(var0002);
		UcMessage(", I said that ");
		UcMessage(var0003);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000A < 0x001C)) goto labelFunc083F_02C0;
		UI_set_npc_id_BD(Jendon, (var000A + 0x0004));
	labelFunc083F_02C0:
		if(!Func0955()) goto labelFunc083F_02CA;
		rr = var0003;
	labelFunc083F_02CA:
		var0007 = 0x0000;
		goto labelFunc083F_02F5;
	labelFunc083F_02D3:
		UcMessage("\"Well... ");
		UcMessage(var0003);
		UcMessage(" filari is my final offer.\"");
		UcSay;
		if(!(var000A < 0x001E)) goto labelFunc083F_02F5;
		UI_set_npc_id_BD(Jendon, (var000A + 0x0002));
	labelFunc083F_02F5:
		goto labelFunc083F_0457;
	labelFunc083F_02F8:
		if(!(var000C == 0x0002)) goto labelFunc083F_033E;
		if(!(var000F == 0x0001)) goto labelFunc083F_0316;
		UcMessage("\"It pleases me ta do business with such a worthy soul. How does ");
		UcMessage(var0003);
		UcMessage(" filari sound?\"");
		UcSay;
	labelFunc083F_0316:
		if(!(var000F == 0x0002)) goto labelFunc083F_032A;
		UcMessage("\"May the Beauty bless thee, friend. So, have we agreed on ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc083F_032A:
		if(!(var000F == 0x0003)) goto labelFunc083F_033E;
		UcMessage("\"My price is ");
		UcMessage(var0003);
		UcMessage(" filari -- A price I would never offer strangers. Dost thou accept?\"");
		UcSay;
	labelFunc083F_033E:
		if(!(var000C == 0x0003)) goto labelFunc083F_0384;
		if(!(var000F == 0x0001)) goto labelFunc083F_035C;
		UcMessage("\"I have few customers left these days... ");
		UcMessage(var0003);
		UcMessage(" filari?\"");
		UcSay;
	labelFunc083F_035C:
		if(!(var000F == 0x0002)) goto labelFunc083F_0370;
		UcMessage("\"Wouldst thou pay ");
		UcMessage(var0003);
		UcMessage("?\"");
		UcSay;
	labelFunc083F_0370:
		if(!(var000F == 0x0003)) goto labelFunc083F_0384;
		UcMessage("\"Perhaps ");
		UcMessage(var0003);
		UcMessage(" filari? Thou wilt find no better...\"");
		UcSay;
	labelFunc083F_0384:
		if(!(var000C == 0x0004)) goto labelFunc083F_03CA;
		if(!(var000F == 0x0001)) goto labelFunc083F_03A2;
		UcMessage("\"I will take no less than ");
		UcMessage(var0003);
		UcMessage(". How doth that suit thee?\"");
		UcSay;
	labelFunc083F_03A2:
		if(!(var000F == 0x0002)) goto labelFunc083F_03B6;
		UcMessage("I have no supplies coming, with these storms. ");
		UcMessage(var0003);
		UcMessage(" filari, no less.\"");
		UcSay;
	labelFunc083F_03B6:
		if(!(var000F == 0x0003)) goto labelFunc083F_03CA;
		UcMessage("\"Sharper folks than thee have tried ta cheat me! ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc083F_03CA:
		if(!(var000C == 0x0005)) goto labelFunc083F_0457;
		var0003 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc083F_03EE;
		UcMessage("\"I would rather be eaten by rats than accept such a pitiful offer. My previous price stands, at ");
		UcMessage(var0003);
		UcMessage(" filari.\"");
		UcSay;
	labelFunc083F_03EE:
		if(!(var000F == 0x0002)) goto labelFunc083F_0402;
		UcMessage("\"What dost thou take me for? ");
		UcMessage(var0003);
		UcMessage(" filari, and no less!\"");
		UcSay;
	labelFunc083F_0402:
		if(!(var000F == 0x0003)) goto labelFunc083F_043F;
		UcMessage("\"Why, if I accepted such a price as this, I may as well sell the inn ta Olon!\"");
		UcSay;
		if(!Func0942(0xFFC6)) goto labelFunc083F_0435;
		UI_show_npc_face1_06(0xFFC6, 0x0000);
		UcMessage("\"Sounds good ta me!\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(Jendon, 0x0000);
	labelFunc083F_0435:
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" filari is where I stand.\"");
		UcSay;
	labelFunc083F_043F:
		if(!(var000A < 0x001F)) goto labelFunc083F_0457;
		UI_set_npc_id_BD(Jendon, (var000A + 0x0001));
	labelFunc083F_0457:
		goto labelFunc083F_004E;
	labelFunc083F_045A:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0841 0x841 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0840 0x840 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "wine", "ice wine", "vintage wine"];
	var0004 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0005 = [0xFE99, 0x0001, 0x0010, 0x0011];
	var0006 = [0x0000, 0x000F, 0x0019, 0x0032];
	var0007 = [0x0000, 0x0009, 0x000F, 0x001E];
	var0008 = 0x03B8;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What wouldst thou care to try, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc0840_00A2:
		if(!var0002) goto labelFunc0840_028B;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc0840_00CC;
		UcMessage("\"If thou art thirsty again, return, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		var0002 = false;
		goto labelFunc0840_0288;
	labelFunc0840_00CC:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc0840_00F9;
		UcMessage("\"Our wine is the finest in all of Serpent Isle! l can sell thee a bottle for ");
		UcMessage(var000C);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Dost thou accept?\"");
		UcSay;
		var000E = "wine bottles";
	labelFunc0840_00F9:
		if(!(var000B == 0x0003)) goto labelFunc0840_011B;
		UcMessage("\"The ice wine is special indeed! I will not tell thee the secret of how it is made, but be assured that it is most flavorful!\"");
		UcSay;
		UcMessage("\"I charge ");
		UcMessage(var000C);
		UcMessage(" guilders for a bottle.\"");
		UcSay;
		UcMessage("\"Dost thou agree?\"");
		UcSay;
		var000E = "bottles of ice wine";
	labelFunc0840_011B:
		if(!(var000B == 0x0004)) goto labelFunc0840_0139;
		UcMessage("\"The vintage stock hath been aged for over ten years, and is quite delicious. For ");
		UcMessage(var000C);
		UcMessage(" guilders, I can sell thee a bottle.\"");
		UcSay;
		UcMessage("\"Is the price acceptable?\"");
		UcSay;
		var000E = "bottles of vintage wine";
	labelFunc0840_0139:
		if(!(var000C == var0007[var000B])) goto labelFunc0840_015E;
		if(!Func0955()) goto labelFunc0840_0155;
		var000F = var000C;
		goto labelFunc0840_015B;
	labelFunc0840_0155:
		var000F = 0x0000;
	labelFunc0840_015B:
		goto labelFunc0840_0170;
	labelFunc0840_015E:
		var000F = Func0841(var0006[var000B], var0007[var000B]);
	labelFunc0840_0170:
		if(!(var000F > 0x0000)) goto labelFunc0840_01DB;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc0840_01B6;
		UcMessage("\"How many ");
		UcMessage(var000E);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], 0x0001, var0008, var000F, 0x000A, 0x0001, false);
		goto labelFunc0840_01DB;
	labelFunc0840_01B6:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0000, 0x0001, false);
	labelFunc0840_01DB:
		if(!(var000D == 0x0001)) goto labelFunc0840_01F2;
		UcMessage("\"To thine health, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0840_027E;
	labelFunc0840_01F2:
		if(!(var000D == 0x0002)) goto labelFunc0840_0209;
		UcMessage("\"Thou canst not carry thy purchase, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0840_027E;
	labelFunc0840_0209:
		if(!(var000D == 0x0003)) goto labelFunc0840_027E;
		var0010 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0010 != 0xFE9C)) goto labelFunc0840_0246;
		UI_show_npc_face0_05(0xFFE9, 0x0000);
		UcMessage("\"Thou dost not have the guilders to buy that!\"");
		UcSay;
		goto labelFunc0840_024A;
	labelFunc0840_0246:
		UcMessage("\"Thou dost not have the guilders to buy that!\"");
		UcSay;
	labelFunc0840_024A:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE9) + 0x0006))) goto labelFunc0840_0269;
		UI_set_npc_id_BD(0xFFE9, 0x001F);
		goto labelFunc0840_027B;
	labelFunc0840_0269:
		UI_set_npc_id_BD(0xFFE9, (UI_get_npc_id_BC(0xFFE9) + 0x0006));
	labelFunc0840_027B:
		goto labelFunc0840_027E;
	labelFunc0840_027E:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0840_0288:
		goto labelFunc0840_00A2;
	labelFunc0840_028B:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0841 0x841 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = (0x000F - (UI_get_npc_id_BC(0xFFE9) / 0x0002));
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	var000B = UI_get_npc_id_BC(0xFFE9);
	labelFunc0841_0055:
		if(!var0008) goto labelFunc0841_044B;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc0841_007E;
		rr = 0x0000;
		goto labelFunc0841_0091;
	labelFunc0841_007E:
		if(!(var000C == "yes")) goto labelFunc0841_0091;
		var000D = 0x0000;
		goto labelFunc0841_00E0;
	labelFunc0841_0091:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc0841_00E0:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc0841_0298;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0841_0137;
		if(!(var0010 == 0x0001)) goto labelFunc0841_0118;
		UcMessage("\"If thou sayest a word about this price to anyone, I will deny it!\"");
		UcSay;
	labelFunc0841_0118:
		if(!(var0010 == 0x0002)) goto labelFunc0841_0126;
		UcMessage("\"Perhaps I should give this away in the streets, after agreeing to this price!\"");
		UcSay;
	labelFunc0841_0126:
		if(!(var0010 == 0x0003)) goto labelFunc0841_0134;
		UcMessage("\"Thou art certainly a fast talker. I will have to watch thee carefully...\"");
		UcSay;
	labelFunc0841_0134:
		goto labelFunc0841_01FF;
	labelFunc0841_0137:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0841_017A;
		if(!(var0010 == 0x0001)) goto labelFunc0841_015B;
		UcMessage("\"A good price for such fine wine, eh?\"");
		UcSay;
	labelFunc0841_015B:
		if(!(var0010 == 0x0002)) goto labelFunc0841_0169;
		UcMessage("\"I am feeling generous today... Thou art lucky!\"");
		UcSay;
	labelFunc0841_0169:
		if(!(var0010 == 0x0003)) goto labelFunc0841_0177;
		UcMessage("\"I shall have to count my fingers after thou dost leave. Thou art a slick bargainer, indeed!\"");
		UcSay;
	labelFunc0841_0177:
		goto labelFunc0841_01FF;
	labelFunc0841_017A:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0841_01C3;
		if(!(var0010 == 0x0001)) goto labelFunc0841_019E;
		UcMessage("\"Good price. Good wine.\"");
		UcSay;
	labelFunc0841_019E:
		if(!(var0010 == 0x0002)) goto labelFunc0841_01AC;
		UcMessage("\"I shall have no profit today, it seems.\"");
		UcSay;
	labelFunc0841_01AC:
		if(!(var0010 == 0x0003)) goto labelFunc0841_01C0;
		UcMessage("\"Tell everyone thou dost meet about our wine, ");
		UcMessage(var0002);
		UcMessage("... and about our fair prices!\"");
		UcSay;
	labelFunc0841_01C0:
		goto labelFunc0841_01FF;
	labelFunc0841_01C3:
		if(!(var0010 == 0x0001)) goto labelFunc0841_01D7;
		UcMessage("\"A well-made bargain, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0841_01D7:
		if(!(var0010 == 0x0002)) goto labelFunc0841_01EB;
		UcMessage("\"Enjoy thy stay here in Moonshade, ");
		UcMessage(var0002);
		UcMessage(". I am certain that I shall not have any trouble from thee.\"");
		UcSay;
	labelFunc0841_01EB:
		if(!(var0010 == 0x0003)) goto labelFunc0841_01FF;
		UcMessage("\"Our wine is in great demand during these hard times, ");
		UcMessage(var0002);
		UcMessage(". So our prices are higher than they once were.\"");
		UcSay;
	labelFunc0841_01FF:
		UcMessage("\"Wilt thou agree to ");
		UcMessage(var0004);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0841_0234;
		if(!(var000B > 0x0001)) goto labelFunc0841_022D;
		UI_set_npc_id_BD(0xFFE9, (var000B - 0x0002));
	labelFunc0841_022D:
		rr = var0004;
		goto labelFunc0841_0298;
	labelFunc0841_0234:
		if(!(var0010 == 0x0001)) goto labelFunc0841_0242;
		UcMessage("\"Thou art a fine one! I thought we had an agreement.\"");
		UcSay;
	labelFunc0841_0242:
		if(!(var0010 == 0x0002)) goto labelFunc0841_0256;
		UcMessage("\"Thou art about to make me angry, ");
		UcMessage(var0002);
		UcMessage(". 'Tis a dangerous thing to break a deal...\"");
		UcSay;
	labelFunc0841_0256:
		if(!(var0010 == 0x0003)) goto labelFunc0841_026B;
		UcMessage("\"I am a busy woman, ");
		UcMessage(var0002);
		UcMessage(". I do not take it kindly when someone wastes my time. Thou hadst best walk carefully here in Moonshade from now on.\"");
		UcSay;
		abrt();
	labelFunc0841_026B:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc0841_0286;
		UI_set_npc_id_BD(0xFFE9, 0x001F);
		goto labelFunc0841_0294;
	labelFunc0841_0286:
		UI_set_npc_id_BD(0xFFE9, (var000B + 0x000A));
	labelFunc0841_0294:
		rr = 0x0000;
	labelFunc0841_0298:
		if(!(var0007 == 0x0001)) goto labelFunc0841_0306;
		if(!(var000D == 0x0005)) goto labelFunc0841_02E1;
		UcMessage("\"That ");
		UcMessage(var0004);
		UcMessage(" was my final offer. I have no more time to deal with thee. Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc0841_02CE;
		UI_set_npc_id_BD(0xFFE9, (var000B + 0x0004));
	labelFunc0841_02CE:
		if(!Func0955()) goto labelFunc0841_02D8;
		rr = var0004;
	labelFunc0841_02D8:
		var0008 = 0x0000;
		goto labelFunc0841_0303;
	labelFunc0841_02E1:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders... Or take thy business elsewhere.\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc0841_0303;
		UI_set_npc_id_BD(0xFFE9, (var000B + 0x0002));
	labelFunc0841_0303:
		goto labelFunc0841_0448;
	labelFunc0841_0306:
		if(!(var000D == 0x0002)) goto labelFunc0841_034C;
		if(!(var0010 == 0x0001)) goto labelFunc0841_0324;
		UcMessage("\"I like thee... How does ");
		UcMessage(var0004);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0841_0324:
		if(!(var0010 == 0x0002)) goto labelFunc0841_0338;
		UcMessage("\"Thou art a fine sort. How about ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0841_0338:
		if(!(var0010 == 0x0003)) goto labelFunc0841_034C;
		UcMessage("\"I will make thee a special deal -- How does ");
		UcMessage(var0004);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0841_034C:
		if(!(var000D == 0x0003)) goto labelFunc0841_0392;
		if(!(var0010 == 0x0001)) goto labelFunc0841_036A;
		UcMessage("\"Wilt thou consider ");
		UcMessage(var0004);
		UcMessage(" guilders? I must pay the MageLord, after all.\"");
		UcSay;
	labelFunc0841_036A:
		if(!(var0010 == 0x0002)) goto labelFunc0841_037E;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage("? Any less and I shall have to face the Council.\"");
		UcSay;
	labelFunc0841_037E:
		if(!(var0010 == 0x0003)) goto labelFunc0841_0392;
		UcMessage("\"Perhaps ");
		UcMessage(var0004);
		UcMessage(" guilders? 'Tis not a great amount.\"");
		UcSay;
	labelFunc0841_0392:
		if(!(var000D == 0x0004)) goto labelFunc0841_03DE;
		if(!(var0010 == 0x0001)) goto labelFunc0841_03B0;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is as low as I can go. I dare not take any less, if I am to pay the taxes.\"");
		UcSay;
	labelFunc0841_03B0:
		if(!(var0010 == 0x0002)) goto labelFunc0841_03CA;
		UcMessage("\"This is the only magical wine thou wilt ever find, ");
		UcMessage(var0002);
		UcMessage(". Surely thou canst see that I can go no lower than ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0841_03CA:
		if(!(var0010 == 0x0003)) goto labelFunc0841_03DE;
		UcMessage("\"Even the MageLord pays ");
		UcMessage(var0004);
		UcMessage(" guilders. I can go no lower than that.\"");
		UcSay;
	labelFunc0841_03DE:
		if(!(var000D == 0x0005)) goto labelFunc0841_0448;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc0841_0408;
		UcMessage("\"My previous price stands, at ");
		UcMessage(var0004);
		UcMessage(" guilders. I am no fool, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0841_0408:
		if(!(var0010 == 0x0002)) goto labelFunc0841_041C;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders, and no less! Thou wilt not take advantage of my good nature so!\"");
		UcSay;
	labelFunc0841_041C:
		if(!(var0010 == 0x0003)) goto labelFunc0841_0430;
		UcMessage("\"I have a reputation to consider... ");
		UcMessage(var0004);
		UcMessage(" guilders is where I stand.\"");
		UcSay;
	labelFunc0841_0430:
		if(!(var000B < 0x001F)) goto labelFunc0841_0448;
		UI_set_npc_id_BD(0xFFE9, (var000B + 0x0001));
	labelFunc0841_0448:
		goto labelFunc0841_0055;
	labelFunc0841_044B:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0844 0x844 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0842 0x842 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	if(!UI_is_pc_female_6F()) goto labelFunc0842_001E;
	var0002 = "Milady";
	goto labelFunc0842_0024;
	labelFunc0842_001E:
		var0002 = "Milord";
	labelFunc0842_0024:
		if(!var0001) goto labelFunc0842_05DE;
		var0003 = Func0956(["nothing", "leather goods", "supplies"]);
		if(!(var0003 == "nothing")) goto labelFunc0842_0053;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0842_05DE;
	labelFunc0842_0053:
		if(!(var0003 == "leather goods")) goto labelFunc0842_010B;
		var0004 = ["nothing", "leather armour", "leather gloves", "leather boots", "leather helm", "leather leggings"];
		var0005 = [0x0000, 0x0239, 0x0243, 0x024B, 0x03EC, 0x023E];
		var0006 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000];
		var0007 = [0x0000, 0x004B, 0x000F, 0x0019, 0x0014, 0x002D];
		var0008 = [0x0000, 0x0032, 0x0008, 0x000F, 0x000C, 0x0019];
		var0009 = 0x03B7;
		var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
		var000B = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	labelFunc0842_010B:
		if(!(var0003 == "supplies")) goto labelFunc0842_0202;
		var0004 = ["nothing", "kidney belt", "backpack", "shovel", "torch", "bedroll", "pick", "jerky", "hard-tack"];
		var0005 = [0x0000, 0x0248, 0x0321, 0x0271, 0x0253, 0x0247, 0x0270, 0x0179, 0x0179];
		var0006 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x000F, 0x0002];
		var0007 = [0x0000, 0x000C, 0x004B, 0x0028, 0x0008, 0x0032, 0x003C, 0x0006, 0x0004];
		var0008 = [0x0000, 0x0005, 0x002D, 0x0012, 0x0002, 0x001E, 0x0028, 0x0004, 0x0002];
		var0009 = 0x03B7;
		var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0002, 0x0002];
		var000B = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0000, 0x0001, 0x0001];
	labelFunc0842_0202:
		var000C = Func0957(var0004);
		if(!(var000C == 0x0001)) goto labelFunc0842_021B;
		goto labelFunc0842_05D1;
		goto labelFunc0842_05DB;
	labelFunc0842_021B:
		var000D = var0007[var000C];
		var000E = 0x0000;
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0842_0247;
		var0010 = "Dost thou accept?";
	labelFunc0842_0247:
		if(!(var000F == 0x0002)) goto labelFunc0842_0257;
		var0010 = "Dost thou find this price acceptable?";
	labelFunc0842_0257:
		if(!(var000F == 0x0003)) goto labelFunc0842_0267;
		var0010 = "Dost thou find the price agreeable?";
	labelFunc0842_0267:
		if(!(var000F == 0x0004)) goto labelFunc0842_027B;
		var0010 = (var0002 + ", dost thou agree?");
	labelFunc0842_027B:
		if(!(var000F == 0x0005)) goto labelFunc0842_028F;
		var0010 = (var0002 + ", is the price acceptable?");
	labelFunc0842_028F:
		if(!(var0003 == "leather goods")) goto labelFunc0842_035C;
		if(!(var000C == 0x0002)) goto labelFunc0842_02BA;
		UcMessage("\"That will be ");
		UcMessage(var000D);
		UcMessage(" monetari for the finest leather armour in town!\"");
		UcSay;
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "suits of leather armour";
	labelFunc0842_02BA:
		if(!(var000C == 0x0003)) goto labelFunc0842_02DE;
		UcMessage("\"I sell my gloves for ");
		UcMessage(var000D);
		UcMessage(" monetari each.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of leather gloves";
	labelFunc0842_02DE:
		if(!(var000C == 0x0004)) goto labelFunc0842_0308;
		UcMessage("\"Thou wilt surely require boots if thou dost desire to adventure, ");
		UcMessage(var0000);
		UcMessage(". I will sell a pair to thee for the fair price of ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of leather boots";
	labelFunc0842_0308:
		if(!(var000C == 0x0005)) goto labelFunc0842_0332;
		UcMessage("\"My leather helms are sturdy and will last thee for a long time, ");
		UcMessage(var0000);
		UcMessage(". I can sell thee a helm for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "leather helms";
	labelFunc0842_0332:
		if(!(var000C == 0x0006)) goto labelFunc0842_035C;
		UcMessage("\"Ah, if thou dost wish affordable protection for thy legs, then thou shouldst buy my leather leggings, ");
		UcMessage(var0000);
		UcMessage("! I can sell thee a pair for only ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of leather leggings";
	labelFunc0842_035C:
		if(!(var0003 == "supplies")) goto labelFunc0842_048C;
		if(!(var000C == 0x0002)) goto labelFunc0842_038A;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" monetari for the finest kidney belts found in Monitor is a small amount to pay!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "kidney belts";
	labelFunc0842_038A:
		if(!(var000C == 0x0003)) goto labelFunc0842_03AE;
		UcMessage("\"The backpacks I stock are made from the finest materials! I can sell one to thee for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "backpacks";
	labelFunc0842_03AE:
		if(!(var000C == 0x0004)) goto labelFunc0842_03D2;
		UcMessage("\"Ah, for the low price of ");
		UcMessage(var000D);
		UcMessage(" monetari, I can sell a fine shovel.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "shovels";
	labelFunc0842_03D2:
		if(!(var000C == 0x0005)) goto labelFunc0842_03F6;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" monetari is a small price to pay for one of my torches.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "torches";
	labelFunc0842_03F6:
		if(!(var000C == 0x0006)) goto labelFunc0842_041A;
		UcMessage("\"Thou wilt sleep most comfortably on one of my bedrolls.\" ~\"I swear!\" *\"I will sell thee one for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "bedrolls";
	labelFunc0842_041A:
		if(!(var000C == 0x0007)) goto labelFunc0842_043E;
		UcMessage("\"I can sell thee a fine pick for ");
		UcMessage(var000D);
		UcMessage(" monetari that will not break even upon the hardest stone!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "picks";
	labelFunc0842_043E:
		if(!(var000C == 0x0008)) goto labelFunc0842_0468;
		UcMessage("\"My jerky is well preserved and will last for many months, ");
		UcMessage(var0000);
		UcMessage(". ");
		UcMessage(var000D);
		UcMessage(" monetari is my price for two strips.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "strips of jerky, in bundles of two,";
	labelFunc0842_0468:
		if(!(var000C == 0x0009)) goto labelFunc0842_048C;
		UcMessage("\"I can sell thee two rolls of hard-tack for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "rolls, in bundles of two,";
	labelFunc0842_048C:
		if(!(var000D == var0008[var000C])) goto labelFunc0842_04B1;
		if(!Func0955()) goto labelFunc0842_04A8;
		var0012 = var000D;
		goto labelFunc0842_04AE;
	labelFunc0842_04A8:
		var0012 = 0x0000;
	labelFunc0842_04AE:
		goto labelFunc0842_04C3;
	labelFunc0842_04B1:
		var0012 = Func0844(var0007[var000C], var0008[var000C]);
	labelFunc0842_04C3:
		if(!(var0012 > 0x0000)) goto labelFunc0842_052E;
		if(!(var000B[var000C] == 0x0001)) goto labelFunc0842_050C;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0005[var000C], var0006[var000C], var000A[var000C], var0009, var0012, 0x0005, 0x0001, false);
		goto labelFunc0842_052E;
	labelFunc0842_050C:
		var000E = Func0943(var0005[var000C], var0006[var000C], 0x0001, var0009, var0012, 0x0000, 0x0001, false);
	labelFunc0842_052E:
		if(!(var000E == 0x0001)) goto labelFunc0842_0545;
		UcMessage("\"It hath been a pleasure, ");
		UcMessage(var0000);
		UcMessage("! Enjoy thy purchase!\"");
		UcSay;
		goto labelFunc0842_05D1;
	labelFunc0842_0545:
		if(!(var000E == 0x0002)) goto labelFunc0842_055C;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(", thine hands are full!\"");
		UcSay;
		goto labelFunc0842_05D1;
	labelFunc0842_055C:
		if(!(var000E == 0x0003)) goto labelFunc0842_05D1;
		var0013 = Func0992(0x0001, (("@But " + var0000) + ", we haven't the coins to purchase this.@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0842_0599;
		UI_show_npc_face0_05(0xFFBC, 0x0000);
		UcMessage("\"If thou canst not pay, please leave!\"");
		UcSay;
		goto labelFunc0842_059D;
	labelFunc0842_0599:
		UcMessage("\"Thou dost not have enough monetari to purchase this...\"");
		UcSay;
	labelFunc0842_059D:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFBC) + 0x0006))) goto labelFunc0842_05BC;
		UI_set_npc_id_BD(0xFFBC, 0x001F);
		goto labelFunc0842_05CE;
	labelFunc0842_05BC:
		UI_set_npc_id_BD(0xFFBC, (UI_get_npc_id_BC(0xFFBC) + 0x0006));
	labelFunc0842_05CE:
		goto labelFunc0842_05D1;
	labelFunc0842_05D1:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0842_05DB:
		goto labelFunc0842_0024;
	labelFunc0842_05DE:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0843 0x843 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;

	var0000 = Func0954();
	var0001 = "Milord";
	if(!UI_is_pc_female_6F()) goto labelFunc0843_0019;
	var0001 = "Milady";
	labelFunc0843_0019:
		UI_push_answers_0E();
		var0002 = true;
		var0003 = 0x03B7;
		UcMessage("\"I will buy leather goods from thee, if thou dost have any.\"");
		UcSay;
	labelFunc0843_002B:
		if(!var0002) goto labelFunc0843_05F3;
		var0004 = UI_count_objects_31(0xFE9B, 0x0239, 0xFE99, 0xFE99);
		var0005 = UI_count_objects_31(0xFE9B, 0x0243, 0xFE99, 0x0000);
		var0006 = UI_count_objects_31(0xFE9B, 0x024B, 0xFE99, 0x0000);
		var0007 = UI_count_objects_31(0xFE9B, 0x03EC, 0xFE99, 0x0000);
		var0008 = UI_count_objects_31(0xFE9B, 0x023E, 0xFE99, 0x0000);
		var0009 = ["nothing"];
		var000A = false;
		var000B = 0xFE99;
		if(!var0004) goto labelFunc0843_00B7;
		var0009 = (var0009 & "leather armour");
		var000A = true;
	labelFunc0843_00B7:
		if(!var0005) goto labelFunc0843_00CB;
		var0009 = (var0009 & "leather gloves");
		var000A = true;
	labelFunc0843_00CB:
		if(!var0006) goto labelFunc0843_00DF;
		var0009 = (var0009 & "leather boots");
		var000A = true;
	labelFunc0843_00DF:
		if(!var0007) goto labelFunc0843_00F3;
		var0009 = (var0009 & "leather helm");
		var000A = true;
	labelFunc0843_00F3:
		if(!var0008) goto labelFunc0843_0107;
		var0009 = (var0009 & "leather leggings");
		var000A = true;
	labelFunc0843_0107:
		if(!(var000A == true)) goto labelFunc0843_05E8;
		UcMessage("\"What dost thou care to sell, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		var000C = Func0956(var0009);
		if(!(var000C == "nothing")) goto labelFunc0843_0137;
		UcMessage("\"Perhaps later.\"");
		UcSay;
		var0002 = false;
		goto labelFunc0843_05E5;
	labelFunc0843_0137:
		var000D = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000D == 0x0001)) goto labelFunc0843_0154;
		var000E = "Take it or leave it!";
	labelFunc0843_0154:
		if(!(var000D == 0x0002)) goto labelFunc0843_0164;
		var000E = "Wilt thou sell at my price?";
	labelFunc0843_0164:
		if(!(var000D == 0x0003)) goto labelFunc0843_0174;
		var000E = "Dost thou find my price agreeable?";
	labelFunc0843_0174:
		if(!(var000D == 0x0004)) goto labelFunc0843_0184;
		var000E = "What dost thou think?";
	labelFunc0843_0184:
		if(!(var000D == 0x0005)) goto labelFunc0843_0198;
		var000E = (var0001 + ", is the price acceptable?");
	labelFunc0843_0198:
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0843_01BB;
		var0010 = "I am not certain...";
		var0011 = "Hmmm... they are certainly shoddy!";
	labelFunc0843_01BB:
		if(!(var000F == 0x0002)) goto labelFunc0843_01D1;
		var0010 = "It doth have mold on it!";
		var0011 = "They are moldy! Where didst thou dig these up?!";
	labelFunc0843_01D1:
		if(!(var000F == 0x0003)) goto labelFunc0843_01E7;
		var0010 = "'Tis falling apart!";
		var0011 = "Harrumph! They are falling to pieces!";
	labelFunc0843_01E7:
		if(!(var000F == 0x0004)) goto labelFunc0843_0209;
		var0010 = (var0001 + (", is this what thou wishest to sell?" * "'Tis not in very good shape!"));
		var0011 = (var0001 + ", these goods are in horrible condition!");
	labelFunc0843_0209:
		if(!(var000F == 0x0005)) goto labelFunc0843_021F;
		var0010 = "Didst thou take this from the body of a Goblin?";
		var0011 = "I would wager thou didst find these on dead Goblins?";
	labelFunc0843_021F:
		if(!(var000C == "leather armour")) goto labelFunc0843_02D5;
		var0012 = 0x0239;
		var0013 = 0x000F;
		if(!(var0004 > 0x0001)) goto labelFunc0843_02B1;
		UcMessage("\"How many suits of leather armour wouldst thou care to part with?\"");
		UcSay;
		var0014 = UI_input_numeric_value_13(0x0000, var0004, 0x0001, 0x0000);
		if(!(var0014 == 0x0001)) goto labelFunc0843_0263;
		goto labelFunc0843_02B1;
	labelFunc0843_0263:
		var0013 = (0x000F * var0014);
		if(!(var0014 == 0x0000)) goto labelFunc0843_0284;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0843_05DB;
	labelFunc0843_0284:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		UcMessage("\"For thee, ");
		UcMessage(var0000);
		UcMessage(", I can give ");
		UcMessage(var0013);
		UcMessage(" monetari for the ");
		UcMessage(var0014);
		UcMessage(" suits of leather armour.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		goto labelFunc0843_02D5;
	labelFunc0843_02B1:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Very well, I will buy thy leather armour from thee for ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var0014 = 0x0001;
	labelFunc0843_02D5:
		if(!(var000C == "leather gloves")) goto labelFunc0843_0385;
		var0012 = 0x0243;
		var0013 = 0x0002;
		if(!(var0005 > 0x0001)) goto labelFunc0843_0361;
		UcMessage("\"How many pairs of leather gloves wouldst thou care to sell?\"");
		UcSay;
		var0014 = UI_input_numeric_value_13(0x0000, var0005, 0x0001, 0x0000);
		if(!(var0014 == 0x0001)) goto labelFunc0843_0319;
		goto labelFunc0843_0361;
	labelFunc0843_0319:
		var0013 = (0x0002 * var0014);
		if(!(var0014 == 0x0000)) goto labelFunc0843_033A;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0843_05DB;
	labelFunc0843_033A:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Hmmm... for thy ");
		UcMessage(var0014);
		UcMessage(" pairs of leather gloves I can offer thee ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		goto labelFunc0843_0385;
	labelFunc0843_0361:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I can pay thee ");
		UcMessage(var0013);
		UcMessage(" monetari for a pair of leather gloves.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var0014 = 0x0001;
	labelFunc0843_0385:
		if(!(var000C == "leather boots")) goto labelFunc0843_043B;
		var0012 = 0x024B;
		var0013 = 0x0004;
		if(!(var0006 > 0x0001)) goto labelFunc0843_0411;
		UcMessage("\"So, how many pairs of leather boots wouldst thou like to sell?\"");
		UcSay;
		var0014 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0014 == 0x0001)) goto labelFunc0843_03C9;
		goto labelFunc0843_0411;
	labelFunc0843_03C9:
		var0013 = (0x0004 * var0014);
		if(!(var0014 == 0x0000)) goto labelFunc0843_03EA;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0843_05DB;
	labelFunc0843_03EA:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I can give ");
		UcMessage(var0013);
		UcMessage(" monetari for thy ");
		UcMessage(var0014);
		UcMessage(" pairs of leather boots.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		goto labelFunc0843_0435;
	labelFunc0843_0411:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		UcMessage("\"For this pair of leather boots I can offer ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var0014 = 0x0001;
	labelFunc0843_0435:
		var000B = 0x0000;
	labelFunc0843_043B:
		if(!(var000C == "leather helm")) goto labelFunc0843_04F1;
		var0012 = 0x03EC;
		var0013 = 0x0005;
		if(!(var0007 > 0x0001)) goto labelFunc0843_04C7;
		UcMessage("\"Well, how many leather helms wouldst thou care to sell?\"");
		UcSay;
		var0014 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0014 == 0x0001)) goto labelFunc0843_047F;
		goto labelFunc0843_04C7;
	labelFunc0843_047F:
		var0013 = (0x0005 * var0014);
		if(!(var0014 == 0x0000)) goto labelFunc0843_04A0;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0843_05DB;
	labelFunc0843_04A0:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Thy ");
		UcMessage(var0014);
		UcMessage(" leather helms will give thee ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		goto labelFunc0843_04EB;
	labelFunc0843_04C7:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I can offer ");
		UcMessage(var0013);
		UcMessage(" monetari for this leather helm.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var0014 = 0x0001;
	labelFunc0843_04EB:
		var000B = 0x0000;
	labelFunc0843_04F1:
		if(!(var000C == "leather leggings")) goto labelFunc0843_05A1;
		var0012 = 0x023E;
		var0013 = 0x000A;
		if(!(var0008 > 0x0001)) goto labelFunc0843_057D;
		UcMessage("\"How many pairs of leather leggings wouldst thou like to sell?\"");
		UcSay;
		var0014 = UI_input_numeric_value_13(0x0000, var0008, 0x0001, 0x0000);
		if(!(var0014 == 0x0001)) goto labelFunc0843_0535;
		goto labelFunc0843_057D;
	labelFunc0843_0535:
		var0013 = (0x000A * var0014);
		if(!(var0014 == 0x0000)) goto labelFunc0843_0556;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0843_05DB;
	labelFunc0843_0556:
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Thy ");
		UcMessage(var0014);
		UcMessage(" pairs of leather leggings will give thee ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		goto labelFunc0843_05A1;
	labelFunc0843_057D:
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		UcMessage("\"So be it, I will buy thy pair of leather leggings from thee for ");
		UcMessage(var0013);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage("\"");
		UcSay;
		var0014 = 0x0001;
	labelFunc0843_05A1:
		if(!Func0955()) goto labelFunc0843_05D7;
		var0015 = UI_remove_party_items_34(var0014, var0012, 0xFE99, var000B, true);
		var0015 = Func099B(0xFE9C, var0013, var0003, 0xFE99, 0xFE99, 0x0000, true);
		goto labelFunc0843_05DB;
	labelFunc0843_05D7:
		UcMessage("\"If thou dost not want to sell, 'tis fine by me.\"");
		UcSay;
	labelFunc0843_05DB:
		UcMessage("\"Dost thou wish to sell more items?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0843_05E5:
		goto labelFunc0843_05F0;
	labelFunc0843_05E8:
		UcMessage("\"Thou dost not have anything that I want to buy!\"");
		UcSay;
		var0002 = false;
	labelFunc0843_05F0:
		goto labelFunc0843_002B;
	labelFunc0843_05F3:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0844 0x844 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!UI_is_pc_female_6F()) goto labelFunc0844_001D;
	var0004 = "Milady";
	goto labelFunc0844_0023;
	labelFunc0844_001D:
		var0004 = "Milord";
	labelFunc0844_0023:
		var0005 = var0001;
		var0006 = ((var0000 / 0x0003) * 0x0002);
		var0007 = (0x000F - (UI_get_npc_id_BC(0xFFBC) / 0x0002));
		var0008 = 0x0000;
		var0009 = 0x0001;
		var000A = 0x0000;
		var000B = 0x0002;
		var000C = UI_get_npc_id_BC(0xFFBC);
	labelFunc0844_006B:
		if(!var0009) goto labelFunc0844_0499;
		var000D = Func0956(["yes", "no", "haggle"]);
		if(!(var000D == "no")) goto labelFunc0844_0094;
		rr = 0x0000;
		goto labelFunc0844_00A7;
	labelFunc0844_0094:
		if(!(var000D == "yes")) goto labelFunc0844_00A7;
		var000E = 0x0000;
		goto labelFunc0844_00F6;
	labelFunc0844_00A7:
		var000F = Func0999(var0005, var0000, var000B, var0006, var000A, var0007, var0008);
		var000A = (var000A + 0x0001);
		var0008 = var000F[0x0004];
		var000E = var000F[0x0003];
		var0010 = var0005;
		var0005 = var000F[0x0002];
		var0006 = var000F[0x0001];
	labelFunc0844_00F6:
		var0011 = UI_get_random_00(0x0003);
		if(!(var000E < 0x0002)) goto labelFunc0844_02D8;
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0844_015F;
		if(!(var0011 == 0x0001)) goto labelFunc0844_0134;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage(". I would be hard pressed to make a profit with such a price.\"");
		UcSay;
	labelFunc0844_0134:
		if(!(var0011 == 0x0002)) goto labelFunc0844_0148;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thy skill at bargaining is excellent. I believe I have actually lost money in this deal.\"");
		UcSay;
	labelFunc0844_0148:
		if(!(var0011 == 0x0003)) goto labelFunc0844_015C;
		UcMessage("\"Thy trading skills are very sharp, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0844_015C:
		goto labelFunc0844_0245;
	labelFunc0844_015F:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0844_01B4;
		if(!(var0011 == 0x0001)) goto labelFunc0844_0189;
		UcMessage("\"Thou art lucky I am in such a good mood today, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not often I lower my prices such...\"");
		UcSay;
	labelFunc0844_0189:
		if(!(var0011 == 0x0002)) goto labelFunc0844_019D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art a scoundrel! I would be penniless very soon if I bargained such a price more than a few times!\"");
		UcSay;
	labelFunc0844_019D:
		if(!(var0011 == 0x0003)) goto labelFunc0844_01B1;
		UcMessage("\"'Tis not often I practically give my goods away! Thou art a skilled trader, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0844_01B1:
		goto labelFunc0844_0245;
	labelFunc0844_01B4:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0844_0209;
		if(!(var0011 == 0x0001)) goto labelFunc0844_01DE;
		UcMessage("\"My prices are just, ");
		UcMessage(var0002);
		UcMessage(".  Thou shouldst travel to Fawn if thou dost believe mine steep.\"");
		UcSay;
	labelFunc0844_01DE:
		if(!(var0011 == 0x0002)) goto labelFunc0844_01F2;
		UcMessage("\"'Tis a pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0844_01F2:
		if(!(var0011 == 0x0003)) goto labelFunc0844_0206;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I shall remember thee!  Please come to my shop whenever thou art in Monitor!\"");
		UcSay;
	labelFunc0844_0206:
		goto labelFunc0844_0245;
	labelFunc0844_0209:
		if(!(var0011 == 0x0001)) goto labelFunc0844_021D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast my gratitude!\"");
		UcSay;
	labelFunc0844_021D:
		if(!(var0011 == 0x0002)) goto labelFunc0844_0231;
		UcMessage("\"A blessing upon thee, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0844_0231:
		if(!(var0011 == 0x0003)) goto labelFunc0844_0245;
		UcMessage("\"My prices are steep, ");
		UcMessage(var0002);
		UcMessage(", for supplies are very scarce due to the Goblin raids.\"");
		UcSay;
	labelFunc0844_0245:
		UcMessage("\"Thou hast agreed to a price of ");
		UcMessage(var0005);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0844_027A;
		if(!(var000C > 0x0001)) goto labelFunc0844_0273;
		UI_set_npc_id_BD(0xFFBC, (var000C - 0x0002));
	labelFunc0844_0273:
		rr = var0005;
		goto labelFunc0844_02D8;
	labelFunc0844_027A:
		if(!(var0011 == 0x0001)) goto labelFunc0844_0288;
		UcMessage("\"Thou shouldst not argue with me only to change thy mind when we have agreed to a firm price!\"");
		UcSay;
	labelFunc0844_0288:
		if(!(var0011 == 0x0002)) goto labelFunc0844_029C;
		UcMessage("\"What of our bargain? Thou hast disappointed me, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0844_029C:
		if(!(var0011 == 0x0003)) goto labelFunc0844_02AB;
		UcMessage("\"This is not honorable! I do not have time to play games with thee! Begone!\"");
		UcSay;
		abrt();
	labelFunc0844_02AB:
		if(!(0x001F < (var000C + 0x000A))) goto labelFunc0844_02C6;
		UI_set_npc_id_BD(0xFFBC, 0x001F);
		goto labelFunc0844_02D4;
	labelFunc0844_02C6:
		UI_set_npc_id_BD(0xFFBC, (var000C + 0x000A));
	labelFunc0844_02D4:
		rr = 0x0000;
	labelFunc0844_02D8:
		if(!(var0008 == 0x0001)) goto labelFunc0844_0346;
		if(!(var000E == 0x0005)) goto labelFunc0844_0321;
		UcMessage("\"I said that ");
		UcMessage(var0005);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000C < 0x001C)) goto labelFunc0844_030E;
		UI_set_npc_id_BD(0xFFBC, (var000C + 0x0004));
	labelFunc0844_030E:
		if(!Func0955()) goto labelFunc0844_0318;
		rr = var0005;
	labelFunc0844_0318:
		var0009 = 0x0000;
		goto labelFunc0844_0343;
	labelFunc0844_0321:
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" monetari is my final offer.\"");
		UcSay;
		if(!(var000C < 0x001E)) goto labelFunc0844_0343;
		UI_set_npc_id_BD(0xFFBC, (var000C + 0x0002));
	labelFunc0844_0343:
		goto labelFunc0844_0496;
	labelFunc0844_0346:
		if(!(var000E == 0x0002)) goto labelFunc0844_039E;
		if(!(var0011 == 0x0001)) goto labelFunc0844_036A;
		UcMessage("\"'Tis a pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(". How doth ");
		UcMessage(var0005);
		UcMessage(" monetari sound?\"");
		UcSay;
	labelFunc0844_036A:
		if(!(var0011 == 0x0002)) goto labelFunc0844_0384;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", only for thee I will give a special price. How doth ");
		UcMessage(var0005);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0844_0384:
		if(!(var0011 == 0x0003)) goto labelFunc0844_039E;
		UcMessage("\"My price is ");
		UcMessage(var0005);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage(". Dost thou accept?\"");
		UcSay;
	labelFunc0844_039E:
		if(!(var000E == 0x0003)) goto labelFunc0844_03E4;
		if(!(var0011 == 0x0001)) goto labelFunc0844_03BC;
		UcMessage("\"I am not sure. Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0844_03BC:
		if(!(var0011 == 0x0002)) goto labelFunc0844_03D0;
		UcMessage("\"Hmmm... I am not certain... ");
		UcMessage(var0005);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0844_03D0:
		if(!(var0011 == 0x0003)) goto labelFunc0844_03E4;
		UcMessage("\"The cost of my goods hath increased. Perhaps ");
		UcMessage(var0005);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0844_03E4:
		if(!(var000E == 0x0004)) goto labelFunc0844_042E;
		if(!(var0011 == 0x0001)) goto labelFunc0844_0406;
		UcMessage("\"If I did not know better, I would believe thou dost jest with me. ");
		UcMessage(var0005);
		UcMessage(" monetari is as low as I can go.\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0844_0406:
		if(!(var0011 == 0x0002)) goto labelFunc0844_041A;
		UcMessage("\"Even if the storms are driving away my customers, I still cannot accept less than ");
		UcMessage(var0005);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0844_041A:
		if(!(var0011 == 0x0003)) goto labelFunc0844_042E;
		UcMessage("\"Thou dost think too highly of thyself, my friend. I can accept no less than ");
		UcMessage(var0005);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0844_042E:
		if(!(var000E == 0x0005)) goto labelFunc0844_0496;
		var0005 = var0010;
		if(!(var0011 == 0x0001)) goto labelFunc0844_0452;
		UcMessage("\"Thou art touched by the storms if thou dost think I would accept such a ridiculous offer! My previous price stands, at ");
		UcMessage(var0005);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0844_0452:
		if(!(var0011 == 0x0002)) goto labelFunc0844_0466;
		UcMessage("\"I do not give my goods away! ");
		UcMessage(var0005);
		UcMessage(" monetari, and no less!\"");
		UcSay;
	labelFunc0844_0466:
		if(!(var0011 == 0x0003)) goto labelFunc0844_047E;
		UcMessage("\"I would rather belong to the Bear Command than accept such an offer!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" monetari is as low as I will go!\"");
		UcSay;
	labelFunc0844_047E:
		if(!(var000C < 0x001F)) goto labelFunc0844_0496;
		UI_set_npc_id_BD(0xFFBC, (var000C + 0x0001));
	labelFunc0844_0496:
		goto labelFunc0844_006B;
	labelFunc0844_0499:
		return rr;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0847 0x847 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0845 0x845 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	var0001 = UI_is_pc_female_6F();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "poultry", "beef", "ribs", "bread", "fish", "sausage", "cake"];
	var0004 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0005 = [0xFE99, 0x000A, 0x0009, 0x0017, 0x0000, 0x000C, 0x0007, 0x0004];
	var0006 = [0x0000, 0x0008, 0x000C, 0x000D, 0x0004, 0x0006, 0x0009, 0x0004];
	var0007 = [0x0000, 0x0005, 0x0008, 0x0008, 0x0002, 0x0004, 0x0006, 0x0002];
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var000A = 0x03B7;
	UcMessage("\"Name thine appetites, ");
	UcMessage(var0000);
	UcMessage(".\"");
	UcSay;
	labelFunc0845_00F7:
		if(!var0002) goto labelFunc0845_0404;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc0845_0128;
		if(!var0001) goto labelFunc0845_011D;
		UcMessage("\"As thou dost wish.\"");
		UcSay;
		goto labelFunc0845_0121;
	labelFunc0845_011D:
		UcMessage("\"As thou dost wish, love.\"");
		UcSay;
	labelFunc0845_0121:
		var0002 = false;
		goto labelFunc0845_0401;
	labelFunc0845_0128:
		var000C = var0006[var000B];
		var000D = 0x0000;
		var000E = UI_die_roll_17(0x0001, 0x0006);
		if(!(var000E == 0x0001)) goto labelFunc0845_0154;
		var000F = "Doth that sound good?";
	labelFunc0845_0154:
		if(!(var000E == 0x0002)) goto labelFunc0845_0164;
		var000F = "Dost thou take this price?";
	labelFunc0845_0164:
		if(!(var000E == 0x0003)) goto labelFunc0845_0174;
		var000F = "Dost thou find the price agreeable?";
	labelFunc0845_0174:
		if(!(var000E == 0x0004)) goto labelFunc0845_0184;
		var000F = "Dost thou agree?";
	labelFunc0845_0184:
		if(!(var000E == 0x0005)) goto labelFunc0845_0194;
		var000F = "How doth that sound?";
	labelFunc0845_0194:
		if(!(var000E == 0x0006)) goto labelFunc0845_01A4;
		var000F = "Wilt thou agree to my price?";
	labelFunc0845_01A4:
		if(!(var000B == 0x0002)) goto labelFunc0845_01C8;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" monetari for the most delectable fowl thou hast ever tasted.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "fowl";
	labelFunc0845_01C8:
		if(!(var000B == 0x0003)) goto labelFunc0845_01EC;
		UcMessage("\"The beef dinner costs ");
		UcMessage(var000C);
		UcMessage(" monetari, a bargain at twice the price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "beef dinners";
	labelFunc0845_01EC:
		if(!(var000B == 0x0004)) goto labelFunc0845_0210;
		UcMessage("\"The ribs are a specialty of mine. Special spices, thou seest... They cost ");
		UcMessage(var000C);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "ribs";
	labelFunc0845_0210:
		if(!(var000B == 0x0005)) goto labelFunc0845_0234;
		UcMessage("\"My bread is baked fresh every day. ");
		UcMessage(var000C);
		UcMessage(" monetari is my price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "loaves of bread";
	labelFunc0845_0234:
		if(!(var000B == 0x0006)) goto labelFunc0845_025E;
		UcMessage("\"The fish dinner costs ");
		UcMessage(var000C);
		UcMessage(" monetari. 'Tis grilled trout with a nice butter sauce to top it. Very delicious, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "fish dinners";
	labelFunc0845_025E:
		if(!(var000B == 0x0007)) goto labelFunc0845_0288;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" monetari for my fine sausage dinner, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "sausages";
	labelFunc0845_0288:
		if(!(var000B == 0x0008)) goto labelFunc0845_02B2;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" monetari is a low price to pay for my cake, ");
		UcMessage(var0000);
		UcMessage(", if thou dost like things that are sweet...\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "cakes";
	labelFunc0845_02B2:
		if(!(var000C == var0007[var000B])) goto labelFunc0845_02D7;
		if(!Func0955()) goto labelFunc0845_02CE;
		var0011 = var000C;
		goto labelFunc0845_02D4;
	labelFunc0845_02CE:
		var0011 = 0x0000;
	labelFunc0845_02D4:
		goto labelFunc0845_02E9;
	labelFunc0845_02D7:
		var0011 = Func0847(var0006[var000B], var0007[var000B]);
	labelFunc0845_02E9:
		if(!(var0011 > 0x0000)) goto labelFunc0845_0354;
		if(!(var0009[var000B] == 0x0001)) goto labelFunc0845_0332;
		UcMessage("\"How many ");
		UcMessage(var0010);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], var0008[var000B], var000A, var0011, 0x000A, 0x0001, false);
		goto labelFunc0845_0354;
	labelFunc0845_0332:
		var000D = Func0943(var0004[var000B], var0005[var000B], 0x0001, var000A, var0011, 0x0000, 0x0001, false);
	labelFunc0845_0354:
		if(!(var000D == 0x0001)) goto labelFunc0845_0365;
		UcMessage("\"Enjoy thy meal!\"");
		UcSay;
		goto labelFunc0845_03F7;
	labelFunc0845_0365:
		if(!(var000D == 0x0002)) goto labelFunc0845_037C;
		UcMessage("\"I believe thou canst not carry so much food, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0845_03F7;
	labelFunc0845_037C:
		if(!(var000D == 0x0003)) goto labelFunc0845_03F7;
		var0012 = Func0992(0x0001, (("@But " + var0000) + ", we have not the monetari to pay for this.@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0845_03BF;
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		UcMessage("\"I am truly sorry, but thou dost not have enough money to pay for that, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0845_03C3;
	labelFunc0845_03BF:
		UcMessage("\"It would appear thou dost not have enough monetari for that...\"");
		UcSay;
	labelFunc0845_03C3:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFBA) + 0x0006))) goto labelFunc0845_03E2;
		UI_set_npc_id_BD(0xFFBA, 0x001F);
		goto labelFunc0845_03F4;
	labelFunc0845_03E2:
		UI_set_npc_id_BD(0xFFBA, (UI_get_npc_id_BC(0xFFBA) + 0x0006));
	labelFunc0845_03F4:
		goto labelFunc0845_03F7;
	labelFunc0845_03F7:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0845_0401:
		goto labelFunc0845_00F7;
	labelFunc0845_0404:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0847 0x847 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0846 0x846 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;

	var0000 = Func0954();
	var0001 = Func0953();
	var0002 = UI_is_pc_female_6F();
	UI_push_answers_0E();
	var0003 = true;
	var0004 = ["nothing", "wine", "mead", "ale"];
	var0005 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0006 = [0xFE99, 0x0000, 0x0005, 0x0003];
	var0007 = [0x0000, 0x0005, 0x0006, 0x0003];
	var0008 = [0x0000, 0x0002, 0x0004, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	var000B = 0x03B7;
	UcMessage("\"So what hast thou a thirst for, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc0846_00A9:
		if(!var0003) goto labelFunc0846_0297;
		var000C = Func0957(var0004);
		if(!(var000C == 0x0001)) goto labelFunc0846_00E0;
		if(!var0002) goto labelFunc0846_00D5;
		UcMessage("\"If thou dost become thirsty, ask me again, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0846_00D9;
	labelFunc0846_00D5:
		UcMessage("\"Ask me again, handsome, if thou dost become... thirsty.\"");
		UcSay;
	labelFunc0846_00D9:
		var0003 = false;
		goto labelFunc0846_0294;
	labelFunc0846_00E0:
		var000D = var0007[var000C];
		var000E = 0x0000;
		if(!(var000C == 0x0002)) goto labelFunc0846_010D;
		UcMessage("\"The wine is a bit dry and a little sweet. I will sell thee a bottle for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"Dost thou accept?\"");
		UcSay;
		var000F = "wine bottles";
	labelFunc0846_010D:
		if(!(var000C == 0x0003)) goto labelFunc0846_0131;
		UcMessage("\"Our mead is flavorful and very filling, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"For the price of ");
		UcMessage(var000D);
		UcMessage(" monetari, thou wilt accept some?\"");
		UcSay;
		var000F = "bottles of mead";
	labelFunc0846_0131:
		if(!(var000C == 0x0004)) goto labelFunc0846_014B;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" monetari for a mug of ale. All the men seem to enjoy it! Dost thou want any?\"");
		UcSay;
		var000F = "mugs of ale";
	labelFunc0846_014B:
		if(!(var000D == var0008[var000C])) goto labelFunc0846_0170;
		if(!Func0955()) goto labelFunc0846_0167;
		var0010 = var000D;
		goto labelFunc0846_016D;
	labelFunc0846_0167:
		var0010 = 0x0000;
	labelFunc0846_016D:
		goto labelFunc0846_0182;
	labelFunc0846_0170:
		var0010 = Func0847(var0007[var000C], var0008[var000C]);
	labelFunc0846_0182:
		if(!(var0010 > 0x0000)) goto labelFunc0846_01ED;
		if(!(var000A[var000C] == 0x0001)) goto labelFunc0846_01CB;
		UcMessage("\"How many ");
		UcMessage(var000F);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0005[var000C], var0006[var000C], var0009[var000C], var000B, var0010, 0x000A, 0x0001, false);
		goto labelFunc0846_01ED;
	labelFunc0846_01CB:
		var000E = Func0943(var0005[var000C], var0006[var000C], 0x0001, var000B, var0010, 0x0000, 0x0001, false);
	labelFunc0846_01ED:
		if(!(var000E == 0x0001)) goto labelFunc0846_0204;
		UcMessage("\"To thine health, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0846_028A;
	labelFunc0846_0204:
		if(!(var000E == 0x0002)) goto labelFunc0846_0215;
		UcMessage("\"Thou shouldst not travel so heavily burdened -- I do not think that thou canst bear the bottles that thou desirest!\"");
		UcSay;
		goto labelFunc0846_028A;
	labelFunc0846_0215:
		if(!(var000E == 0x0003)) goto labelFunc0846_028A;
		var0011 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0011 != 0xFE9C)) goto labelFunc0846_0252;
		UI_show_npc_face0_05(0xFFBA, 0x0000);
		UcMessage("\"Then thy thirst will not be quenched here.\"");
		UcSay;
		goto labelFunc0846_0256;
	labelFunc0846_0252:
		UcMessage("\"It seems thou dost not have the funds to pay me...\"");
		UcSay;
	labelFunc0846_0256:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFBA) + 0x0006))) goto labelFunc0846_0275;
		UI_set_npc_id_BD(0xFFBA, 0x001F);
		goto labelFunc0846_0287;
	labelFunc0846_0275:
		UI_set_npc_id_BD(0xFFBA, (UI_get_npc_id_BC(0xFFBA) + 0x0006));
	labelFunc0846_0287:
		goto labelFunc0846_028A;
	labelFunc0846_028A:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0003 = Func0955();
	labelFunc0846_0294:
		goto labelFunc0846_00A9;
	labelFunc0846_0297:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0847 0x847 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!var0003) goto labelFunc0847_001C;
	var0004 = "Milady";
	goto labelFunc0847_0022;
	labelFunc0847_001C:
		var0004 = "Milord";
	labelFunc0847_0022:
		if(!(gflags[0048] == true)) goto labelFunc0847_0076;
		if(!var0003) goto labelFunc0847_0039;
		var0004 = "Milady Knight";
		goto labelFunc0847_0076;
	labelFunc0847_0039:
		var0005 = UI_die_roll_17(0x0001, 0x0003);
		if(!(var0005 == 0x0001)) goto labelFunc0847_0056;
		var0004 = "My brave knight";
	labelFunc0847_0056:
		if(!(var0005 == 0x0002)) goto labelFunc0847_0066;
		var0004 = "My valiant knight";
	labelFunc0847_0066:
		if(!(var0005 == 0x0003)) goto labelFunc0847_0076;
		var0004 = "My sweet knight";
	labelFunc0847_0076:
		var0006 = var0001;
		var0007 = ((var0000 / 0x0003) * 0x0002);
		var0008 = (0x000F - (UI_get_npc_id_BC(0xFFBA) / 0x0002));
		var0009 = 0x0000;
		var000A = 0x0001;
		var000B = 0x0000;
		var000C = 0x0002;
		var000D = UI_get_npc_id_BC(0xFFBA);
	labelFunc0847_00BE:
		if(!var000A) goto labelFunc0847_074B;
		var000E = Func0956(["yes", "no", "haggle"]);
		if(!(var000E == "no")) goto labelFunc0847_00E7;
		rr = 0x0000;
		goto labelFunc0847_00FA;
	labelFunc0847_00E7:
		if(!(var000E == "yes")) goto labelFunc0847_00FA;
		var000F = 0x0000;
		goto labelFunc0847_0149;
	labelFunc0847_00FA:
		var0010 = Func0999(var0006, var0000, var000C, var0007, var000B, var0008, var0009);
		var000B = (var000B + 0x0001);
		var0009 = var0010[0x0004];
		var000F = var0010[0x0003];
		var0011 = var0006;
		var0006 = var0010[0x0002];
		var0007 = var0010[0x0001];
	labelFunc0847_0149:
		var0012 = UI_get_random_00(0x0003);
		if(!(var000F < 0x0002)) goto labelFunc0847_0464;
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0847_01E5;
		if(!var0003) goto labelFunc0847_01B2;
		if(!(var0012 == 0x0001)) goto labelFunc0847_018D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art very good at this... If I listened to thee much more, I would be penniless.\"");
		UcSay;
	labelFunc0847_018D:
		if(!(var0012 == 0x0002)) goto labelFunc0847_01A1;
		UcMessage("\"Thou dost bargain as well as any, ");
		UcMessage(var0002);
		UcMessage(". 'Tis truly a very low price I have agreed to!\"");
		UcSay;
	labelFunc0847_01A1:
		if(!(var0012 == 0x0003)) goto labelFunc0847_01AF;
		UcMessage("\"Oh, if I were better at this, perhaps I could make more monetari.\"");
		UcSay;
	labelFunc0847_01AF:
		goto labelFunc0847_01E2;
	labelFunc0847_01B2:
		if(!(var0012 == 0x0001)) goto labelFunc0847_01C0;
		UcMessage("\"If thou dost bargain so well as to bring my price this low, perhaps thou art better at other things as well...\"");
		UcSay;
	labelFunc0847_01C0:
		if(!(var0012 == 0x0002)) goto labelFunc0847_01D4;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thy words are very powerful... Perhaps thou dost wish to wrestle somewhat differently?\"");
		UcSay;
	labelFunc0847_01D4:
		if(!(var0012 == 0x0003)) goto labelFunc0847_01E2;
		UcMessage("\"Ah, my sweet... Thou hast a very quick wit to bargain me so low. Are other parts of thee as well-equipped as thy tongue?\"");
		UcSay;
	labelFunc0847_01E2:
		goto labelFunc0847_0384;
	labelFunc0847_01E5:
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0847_0277;
		if(!var0003) goto labelFunc0847_023A;
		if(!(var0012 == 0x0001)) goto labelFunc0847_020F;
		UcMessage("\"A low price, but thou hast bargained well, dost thou not think?\"");
		UcSay;
	labelFunc0847_020F:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0223;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast bargained fairly, but this is a very low price.\"");
		UcSay;
	labelFunc0847_0223:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0237;
		UcMessage("\"A bit lower than I had hoped, ");
		UcMessage(var0002);
		UcMessage(", but 'twill do.\"");
		UcSay;
	labelFunc0847_0237:
		goto labelFunc0847_0274;
	labelFunc0847_023A:
		if(!(var0012 == 0x0001)) goto labelFunc0847_024E;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art getting a very good value for thy monetari, even if thy clever tongue did lower my price...\"");
		UcSay;
	labelFunc0847_024E:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0262;
		UcMessage("\"'Tis not often a man gets the better of me! Thou shouldst enjoy thyself, ");
		UcMessage(var0002);
		UcMessage(", taking advantage of a poor girl so...\"");
		UcSay;
	labelFunc0847_0262:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0274;
		UcMessage("\"Oooh...\"");
		UcSay;
		UcMessage("\"Thou didst certainly haggle a good price from me! Thou art naughty...\"");
		UcSay;
	labelFunc0847_0274:
		goto labelFunc0847_0384;
	labelFunc0847_0277:
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0847_0309;
		if(!var0003) goto labelFunc0847_02D2;
		if(!(var0012 == 0x0001)) goto labelFunc0847_02A7;
		UcMessage("\"A fair enough price, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0847_02A7:
		if(!(var0012 == 0x0002)) goto labelFunc0847_02BB;
		UcMessage("\"It hath a been pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0847_02BB:
		if(!(var0012 == 0x0003)) goto labelFunc0847_02CF;
		UcMessage("\"Thou hast made a good bargain, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0847_02CF:
		goto labelFunc0847_0306;
	labelFunc0847_02D2:
		if(!(var0012 == 0x0001)) goto labelFunc0847_02EA;
		UcMessage("\"Oooh...\"");
		UcSay;
		UcMessage("\"Thou hast given me goose bumps, ");
		UcMessage(var0002);
		UcMessage(". Perhaps thou wilt spend more?\"");
		UcSay;
	labelFunc0847_02EA:
		if(!(var0012 == 0x0002)) goto labelFunc0847_02F8;
		UcMessage("\"It hath been a pleasure trading with thee! Most men would try to take advantage of my sweet nature and lower my price even further!\"");
		UcSay;
	labelFunc0847_02F8:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0306;
		UcMessage("\"Ah, my sweet, thou dost know how to make a girl feel well-liked!\"");
		UcSay;
	labelFunc0847_0306:
		goto labelFunc0847_0384;
	labelFunc0847_0309:
		if(!var0003) goto labelFunc0847_034E;
		if(!(var0012 == 0x0001)) goto labelFunc0847_0323;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou mayest buy from me anytime!\"");
		UcSay;
	labelFunc0847_0323:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0337;
		UcMessage("\"Thou art most generous to offer such a price, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0847_0337:
		if(!(var0012 == 0x0003)) goto labelFunc0847_034B;
		UcMessage("\"Enjoy thy stay in Monitor, ");
		UcMessage(var0002);
		UcMessage(". Thou art most welcome at The Slashing Blade!\"");
		UcSay;
	labelFunc0847_034B:
		goto labelFunc0847_0384;
	labelFunc0847_034E:
		if(!(var0012 == 0x0001)) goto labelFunc0847_0362;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast made me cry! 'Tis most generous of thee!\"");
		UcSay;
	labelFunc0847_0362:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0376;
		UcMessage("\"Dost thou give all of thy money to other girls too, ");
		UcMessage(var0002);
		UcMessage(", or only to me?\"");
		UcSay;
	labelFunc0847_0376:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0384;
		UcMessage("\"'Tis sweet of thee to agree to this price, love...\"");
		UcSay;
	labelFunc0847_0384:
		if(!var0003) goto labelFunc0847_039D;
		UcMessage("\"Thou hast agreed to a price of ");
		UcMessage(var0006);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		goto labelFunc0847_03A7;
	labelFunc0847_039D:
		UcMessage("\"So, handsome, thou hast agreed to ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_03A7:
		if(!Func0955()) goto labelFunc0847_03CC;
		if(!(var000D > 0x0001)) goto labelFunc0847_03C5;
		UI_set_npc_id_BD(0xFFBA, (var000D - 0x0002));
	labelFunc0847_03C5:
		rr = var0006;
		goto labelFunc0847_0464;
	labelFunc0847_03CC:
		if(!var0003) goto labelFunc0847_0405;
		if(!(var0012 == 0x0001)) goto labelFunc0847_03E0;
		UcMessage("\"Thou art a vindictive woman to argue with me and then change thy mind out of spite!\"");
		UcSay;
	labelFunc0847_03E0:
		if(!(var0012 == 0x0002)) goto labelFunc0847_03F3;
		UcMessage("\"We in Monitor do not forget those who cross us!\"");
		UcSay;
		UcMessage("\"I do not think I shall be thy friend unless thou dost acquire better manners!\"");
		UcSay;
		abrt();
	labelFunc0847_03F3:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0402;
		UcMessage("\"Art thou jealous of me to change thy mind so? If so, I am not amused!\"");
		UcSay;
		abrt();
	labelFunc0847_0402:
		goto labelFunc0847_0437;
	labelFunc0847_0405:
		if(!(var0012 == 0x0001)) goto labelFunc0847_0414;
		UcMessage("\"Oooh! Thou dost infuriate me! Just like a man to lead a poor girl on so!\"");
		UcSay;
		abrt();
	labelFunc0847_0414:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0423;
		UcMessage("\"Do not think that I am fooled by thine handsome features! Thou art merely a mean- spirited man, the same as any other!\"");
		UcSay;
		abrt();
	labelFunc0847_0423:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0437;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", what of our bargain?! Dost thou think to take advantage of me?\"");
		UcSay;
	labelFunc0847_0437:
		if(!(0x001F < (var000D + 0x000A))) goto labelFunc0847_0452;
		UI_set_npc_id_BD(0xFFBA, 0x001F);
		goto labelFunc0847_0460;
	labelFunc0847_0452:
		UI_set_npc_id_BD(0xFFBA, (var000D + 0x000A));
	labelFunc0847_0460:
		rr = 0x0000;
	labelFunc0847_0464:
		if(!(var0009 == 0x0001)) goto labelFunc0847_04D2;
		if(!(var000F == 0x0005)) goto labelFunc0847_04AD;
		UcMessage("\"I said that ");
		UcMessage(var0006);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000D < 0x001C)) goto labelFunc0847_049A;
		UI_set_npc_id_BD(0xFFBA, (var000D + 0x0004));
	labelFunc0847_049A:
		if(!Func0955()) goto labelFunc0847_04A4;
		rr = var0006;
	labelFunc0847_04A4:
		var000A = 0x0000;
		goto labelFunc0847_04CF;
	labelFunc0847_04AD:
		UcMessage("\"");
		UcMessage(var0006);
		UcMessage(" monetari is my final offer.\"");
		UcSay;
		if(!(var000D < 0x001E)) goto labelFunc0847_04CF;
		UI_set_npc_id_BD(0xFFBA, (var000D + 0x0002));
	labelFunc0847_04CF:
		goto labelFunc0847_0748;
	labelFunc0847_04D2:
		if(!(var000F == 0x0002)) goto labelFunc0847_056F;
		if(!var0003) goto labelFunc0847_052D;
		if(!(var0012 == 0x0001)) goto labelFunc0847_04FC;
		UcMessage("\"'Tis a pleasure to barter with thee, ");
		UcMessage(var0002);
		UcMessage(". ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_04FC:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0516;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", we are both women and know good prices when we see them. How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0847_0516:
		if(!(var0012 == 0x0003)) goto labelFunc0847_052A;
		UcMessage("\"As one woman to another, wouldst thou consider ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_052A:
		goto labelFunc0847_056F;
	labelFunc0847_052D:
		if(!(var0012 == 0x0001)) goto labelFunc0847_0541;
		UcMessage("\"Sweetie, thou art a pleasure to trade with... How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound?\"");
		UcSay;
	labelFunc0847_0541:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0555;
		UcMessage("\"Well, handsome, how doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0847_0555:
		if(!(var0012 == 0x0003)) goto labelFunc0847_056F;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast offered a goodly price... Wouldst thou pay ");
		UcMessage(var0006);
		UcMessage(" monetari instead?\"");
		UcSay;
	labelFunc0847_056F:
		if(!(var000F == 0x0003)) goto labelFunc0847_0604;
		if(!var0003) goto labelFunc0847_05BE;
		if(!(var0012 == 0x0001)) goto labelFunc0847_0593;
		UcMessage("\"I am not quite certain, though 'tis not a bad offer. I would ask ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_0593:
		if(!(var0012 == 0x0002)) goto labelFunc0847_05A7;
		UcMessage("\"I need to make some profit... How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0847_05A7:
		if(!(var0012 == 0x0003)) goto labelFunc0847_05BB;
		UcMessage("\"Thou dost understand better than men how we women make less in our dealings... Perhaps ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_05BB:
		goto labelFunc0847_0604;
	labelFunc0847_05BE:
		if(!(var0012 == 0x0001)) goto labelFunc0847_05D2;
		UcMessage("\"Well, my sweet, 'tis not the highest amount thou couldst offer a girl. Perhaps ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_05D2:
		if(!(var0012 == 0x0002)) goto labelFunc0847_05E6;
		UcMessage("\"Certainly mine handsome warrior could offer a better price than that! How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0847_05E6:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0604;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", how thy muscles do bulge! Thou art certainly the stongest man in Monitor...\"");
		UcSay;
		UcMessage("\"Perhaps thou wilt agree to ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_0604:
		if(!(var000F == 0x0004)) goto labelFunc0847_0697;
		if(!var0003) goto labelFunc0847_0653;
		if(!(var0012 == 0x0001)) goto labelFunc0847_0628;
		UcMessage("\"What sort of offer is this?! How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thy shrewish ears?\"");
		UcSay;
	labelFunc0847_0628:
		if(!(var0012 == 0x0002)) goto labelFunc0847_063C;
		UcMessage("\"Thou dost not offer more than a selfish man would! ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0847_063C:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0650;
		UcMessage("\"Thou art a very deceptive female! And I thought thou wert better than most! I can offer no less than ");
		UcMessage(var0006);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0847_0650:
		goto labelFunc0847_0697;
	labelFunc0847_0653:
		if(!(var0012 == 0x0001)) goto labelFunc0847_0667;
		UcMessage("\"Certainly, thou wouldst not offer such a low price to me... How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0847_0667:
		if(!(var0012 == 0x0002)) goto labelFunc0847_067F;
		UcMessage("\"And I thought thou wert different than the other men in Monitor! This is not an acceptable price. ");
		UcMessage(var0006);
		UcMessage(" monetari is what I offer thee.\"");
		UcSay;
		UcMessage("\"What dost thou say?\"");
		UcSay;
	labelFunc0847_067F:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0697;
		UcMessage("\"Didst thou think thou couldst sweet-talk me like any simple country girl and convince me to lower my price?\"");
		UcSay;
		UcMessage("\"I want no fewer than ");
		UcMessage(var0006);
		UcMessage(" monetari. What dost thou think?\"");
		UcSay;
	labelFunc0847_0697:
		if(!(var000F == 0x0005)) goto labelFunc0847_0748;
		var0006 = var0011;
		if(!var0003) goto labelFunc0847_06F0;
		if(!(var0012 == 0x0001)) goto labelFunc0847_06C1;
		UcMessage("\"Thou art most ungenerous! My previous price stands, at ");
		UcMessage(var0006);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0847_06C1:
		if(!(var0012 == 0x0002)) goto labelFunc0847_06D5;
		UcMessage("\"Spiteful wench! I offer ");
		UcMessage(var0006);
		UcMessage(" monetari, and no less!\"");
		UcSay;
	labelFunc0847_06D5:
		if(!(var0012 == 0x0003)) goto labelFunc0847_06ED;
		UcMessage("\"I cannot accept such an offer!\"");
		UcSay;
		UcMessage("\"I stand at my price of ");
		UcMessage(var0006);
		UcMessage(" monetari, and no lower!\"");
		UcSay;
	labelFunc0847_06ED:
		goto labelFunc0847_0730;
	labelFunc0847_06F0:
		if(!(var0012 == 0x0001)) goto labelFunc0847_0704;
		UcMessage("\"Hmmpf! Just like a man to offer a ridiculous price! Well, I am no simpleton to accept such! My previous price stands, at ");
		UcMessage(var0006);
		UcMessage(" monetari.\"");
		UcSay;
	labelFunc0847_0704:
		if(!(var0012 == 0x0002)) goto labelFunc0847_0718;
		UcMessage("\"I would not accept such a price even if thou wert the most handsome man in Monitor! I want ");
		UcMessage(var0006);
		UcMessage(" monetari, and no less!\"");
		UcSay;
	labelFunc0847_0718:
		if(!(var0012 == 0x0003)) goto labelFunc0847_0730;
		UcMessage("\"Ugh! Thou hast the manners of a man -- if not a goblin, to offer a girl such a pitiful sum!\"");
		UcSay;
		UcMessage("\"I will make this very clear -- ");
		UcMessage(var0006);
		UcMessage(" monetari is as low as I will go!\"");
		UcSay;
	labelFunc0847_0730:
		if(!(var000D < 0x001F)) goto labelFunc0847_0748;
		UI_set_npc_id_BD(0xFFBA, (var000D + 0x0001));
	labelFunc0847_0748:
		goto labelFunc0847_00BE;
	labelFunc0847_074B:
		return rr;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0848 0x848 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	UcMessage("\"I shall certainly be sad to part with it, but if thou dost claim it, then I must give it to thee.\"");
	UcSay;
	var0000 = UI_remove_cont_items_37(0xFFB9, 0x0001, 0x01EA, 0xFE99, 0x0000, 0x0000);
	var0000 = Func099B(0xFE9C, 0x0001, 0x01EA, 0xFE99, 0xFE99, 0x0000, true);
	gflags[00B2] = true;
	UcMessage("\"Now I shall have to find myself another shield...\"");
	UcSay;
	if(!(gflags[028A] && Func097D(0xFE9B, 0x0001, 0x02D9, 0xFE99, 0x0000))) goto labelFunc0848_00BF;
	var0001 = Func0992(0x0001, "@But thou canst have this shield which we found!@", 0x0000, false);
	UI_set_conversation_slot_09(0x0000);
	UcMessage("\"That is most gracious of thee! Yes, this is my shield which so strangely disappeared during that storm!\"");
	UcSay;
	var0000 = UI_add_cont_items_36(0xFFB9, 0x0001, 0x02D9, 0xFE99, 0x0000, 0x0012);
	if(!var0000) goto labelFunc0848_00BF;
	var0000 = UI_create_new_object_2C(0x02D9);
	if(!var0000) goto labelFunc0848_00BF;
	UI_set_item_flag_A4(var0000, 0x0012);
	var0002 = UI_get_object_position_20(0xFFB9);
	var0003 = UI_update_last_created_2F(var0002);
	labelFunc0848_00BF:
		return;
}
Func0849 0x849 ()
{
	var var0000;

	if(!(!(gflags[00B1] || (gflags[00AF] || gflags[00B0])))) goto labelFunc0849_0010;
	exit2();
	labelFunc0849_0010:
		UcMessage("\"That is it, goat! Meet me at the List Field! There I shall ram thy words down thy throat!\"");
		UcSay;
		if(!gflags[0043]) goto labelFunc0849_001B;
		exit2();
	labelFunc0849_001B:
		UI_set_new_schedules_B6(0xFFB9, [0x0006, 0x0000], [0x000E, 0x001B], [0x0388, 0x0A46, 0x03DA, 0x0A86]);
		gflags[0043] = true;
		var0000 = UI_set_npc_prop_29(0xFFB9, 0x0000, 0xFFEE);
		var0000 = UI_set_npc_prop_29(0xFFB9, 0x0004, 0xFFF7);
		var0000 = UI_set_npc_prop_29(0xFFB9, 0x0001, 0xFFF8);
		return;
}
// externs
extern var Func0955 0x955 ();

Func084A 0x84A ()
{
	UcMessage("\"None can take the Test of Knighthood without the permission of the Lord of Monitor. Dost thou seek my permission?\"");
	UcSay;
	gflags[003C] = true;
	if(!Func0955()) goto labelFunc084A_001D;
	UcMessage("\"Very well. Shmed will ask thee the password. Tell him this --\"");
	UcSay;
	UcMessage("\"'Courage is the Soul of Life.'\"");
	UcSay;
	gflags[002F] = true;
	goto labelFunc084A_0021;
	labelFunc084A_001D:
		UcMessage("\"Do not take the Test before thou art ready, strange warrior. But do not let fear shake thy resolve.\"");
		UcSay;
	labelFunc084A_0021:
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func084C 0x84C (var var0000, var var0001);

Func084B 0x84B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	UI_push_answers_0E();
	var0000 = true;
	UcMessage("\"What coins wilt thou pay me with?\"");
	UcSay;
	var0001 = Func0956(["Guilders", "Gold Coins"]);
	if(!(var0001 == "Guilders")) goto labelFunc084B_002B;
	var0002 = 0x03B8;
	labelFunc084B_002B:
		if(!(var0001 == "Gold Coins")) goto labelFunc084B_0041;
		var0002 = 0x0284;
		var0003 = 0x0001;
	labelFunc084B_0041:
		if(!var0000) goto labelFunc084B_0402;
		UcMessage("\"In which circle art thou interested?\"");
		UcSay;
		var0004 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth"]);
		var0004 = (var0004 - 0x0001);
		if(!(var0004 == 0x0000)) goto labelFunc084B_0086;
		goto labelFunc084B_0402;
	labelFunc084B_0086:
		if(!(var0004 == 0x0001)) goto labelFunc084B_00CF;
		var0005 = ["nothing", "Telekinesis", "Cure"];
		var0006 = [0x0000, 0x0007, 0x0001];
		var0007 = [0x0000, 0x001E, 0x0016];
		var0008 = [0x0000, 0x0012, 0x000E];
		goto labelFunc084B_02AA;
	labelFunc084B_00CF:
		if(!(var0004 == 0x0002)) goto labelFunc084B_0118;
		var0005 = ["nothing", "Great Light", "Mass Cure"];
		var0006 = [0x0000, 0x000C, 0x000E];
		var0007 = [0x0000, 0x003C, 0x004B];
		var0008 = [0x0000, 0x0028, 0x0032];
		goto labelFunc084B_02AA;
	labelFunc084B_0118:
		if(!(var0004 == 0x0003)) goto labelFunc084B_0155;
		var0005 = ["nothing", "Enchant Missiles"];
		var0006 = [0x0000, 0x0012];
		var0007 = [0x0000, 0x0046];
		var0008 = [0x0000, 0x0023];
		goto labelFunc084B_02AA;
	labelFunc084B_0155:
		if(!(var0004 == 0x0004)) goto labelFunc084B_019E;
		var0005 = ["nothing", "Reveal", "Flash"];
		var0006 = [0x0000, 0x001D, 0x001A];
		var0007 = [0x0000, 0x0064, 0x005A];
		var0008 = [0x0000, 0x003C, 0x0032];
		goto labelFunc084B_02AA;
	labelFunc084B_019E:
		if(!(var0004 == 0x0005)) goto labelFunc084B_01DB;
		var0005 = ["nothing", "Explosion"];
		var0006 = [0x0000, 0x0022];
		var0007 = [0x0000, 0x0087];
		var0008 = [0x0000, 0x0050];
		goto labelFunc084B_02AA;
	labelFunc084B_01DB:
		if(!(var0004 == 0x0006)) goto labelFunc084B_0224;
		var0005 = ["nothing", "Dispel Illusion", "Betray"];
		var0006 = [0x0000, 0x0029, 0x0028];
		var0007 = [0x0000, 0x00A0, 0x0091];
		var0008 = [0x0000, 0x006E, 0x0050];
		goto labelFunc084B_02AA;
	labelFunc084B_0224:
		if(!(var0004 == 0x0007)) goto labelFunc084B_026D;
		var0005 = ["nothing", "Energy Field", "Mass Awaken"];
		var0006 = [0x0000, 0x0030, 0x0032];
		var0007 = [0x0000, 0x00E6, 0x00FA];
		var0008 = [0x0000, 0x006E, 0x008C];
		goto labelFunc084B_02AA;
	labelFunc084B_026D:
		if(!(var0004 == 0x0008)) goto labelFunc084B_02AA;
		var0005 = ["nothing", "Fetch"];
		var0006 = [0x0000, 0x003B];
		var0007 = [0x0000, 0x011D];
		var0008 = [0x0000, 0x00A5];
		goto labelFunc084B_02AA;
	labelFunc084B_02AA:
		UcMessage("\"What spell dost thou wish to buy?\"");
		UcSay;
		var0009 = Func0957(var0005);
		if(!(var0009 == 0x0001)) goto labelFunc084B_02C8;
		UcMessage("\"As thou wishest...\"");
		UcSay;
		goto labelFunc084B_03F5;
	labelFunc084B_02C8:
		var000A = var0006[var0009];
		var000B = (var0007[var0009] * var0003);
		var000C = (var0008[var0009] * var0003);
		var000D = var0005[var0009];
		if(!(var0001 == "Guilders")) goto labelFunc084B_0320;
		var000B = ((var0007[var0009] * 0x0003) / 0x0002);
		var000C = ((var0008[var0009] * 0x0003) / 0x0002);
	labelFunc084B_0320:
		if(!(var000B == var000C)) goto labelFunc084B_0360;
		UcMessage("\"The ");
		UcMessage(var000D);
		UcMessage(" spell will cost ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Is this acceptable?\"");
		UcSay;
		var000E = 0x0000;
		if(!(Func0955() == true)) goto labelFunc084B_035D;
		var000E = Func096F(var000A, var0002, var000B);
	labelFunc084B_035D:
		goto labelFunc084B_03A1;
	labelFunc084B_0360:
		UcMessage("\"The price to purchase ");
		UcMessage(var000D);
		UcMessage(" is ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Dost thou agree?\"");
		UcSay;
		var000F = Func084C(var000B, var000C);
		var000E = 0x0000;
		if(!(var000F > 0x0000)) goto labelFunc084B_03A1;
		var000E = Func096F(var000A, var0002, var000F);
	labelFunc084B_03A1:
		if(!(var000E == 0x0001)) goto labelFunc084B_03B8;
		UcMessage("\"Thou now hast ");
		UcMessage(var000D);
		UcMessage(" in thy spellbook!\"");
		UcSay;
		goto labelFunc084B_03F5;
	labelFunc084B_03B8:
		if(!(var000E == 0x0002)) goto labelFunc084B_03CD;
		UcMessage("\"Thou dost not have a spellbook.\"");
		UcSay;
		var0000 = false;
		goto labelFunc084B_0402;
	labelFunc084B_03CD:
		if(!(var000E == 0x0003)) goto labelFunc084B_03E4;
		UcMessage("\"Thou dost not have enough ");
		UcMessage(var0001);
		UcMessage(" for that!\"");
		UcSay;
		goto labelFunc084B_03F5;
	labelFunc084B_03E4:
		if(!(var000E == 0x0004)) goto labelFunc084B_03F5;
		UcMessage("\"Thou dost already have that spell!\"");
		UcSay;
		goto labelFunc084B_03F5;
	labelFunc084B_03F5:
		UcMessage("\"Wouldst thou like another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc084B_0041;
	labelFunc084B_0402:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func084C 0x84C (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = (0x000F - (UI_get_npc_id_BC(0xFFE8) / 0x0002));
	var0005 = 0x0000;
	var0006 = 0x0001;
	var0007 = 0x0000;
	var0008 = 0x0002;
	var0009 = UI_get_npc_id_BC(0xFFE8);
	labelFunc084C_0048:
		if(!var0006) goto labelFunc084C_040B;
		var000A = Func0956(["yes", "no", "haggle"]);
		if(!(var000A == "no")) goto labelFunc084C_0071;
		rr = 0x0000;
		goto labelFunc084C_0084;
	labelFunc084C_0071:
		if(!(var000A == "yes")) goto labelFunc084C_0084;
		var000B = 0x0000;
		goto labelFunc084C_00D3;
	labelFunc084C_0084:
		var000C = Func0999(var0002, var0000, var0008, var0003, var0007, var0004, var0005);
		var0007 = (var0007 + 0x0001);
		var0005 = var000C[0x0004];
		var000B = var000C[0x0003];
		var000D = var0002;
		var0002 = var000C[0x0002];
		var0003 = var000C[0x0001];
	labelFunc084C_00D3:
		var000E = UI_get_random_00(0x0003);
		if(!(var000B < 0x0002)) goto labelFunc084C_0262;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc084C_012A;
		if(!(var000E == 0x0001)) goto labelFunc084C_010B;
		UcMessage("\"Thou art a shrewd and crafty bargainer, to convince me to accept this price...\"");
		UcSay;
	labelFunc084C_010B:
		if(!(var000E == 0x0002)) goto labelFunc084C_0119;
		UcMessage("\"Art thou certain thou hast not cast a dweomer upon me? I usually do not lower my prices so.\"");
		UcSay;
	labelFunc084C_0119:
		if(!(var000E == 0x0003)) goto labelFunc084C_0127;
		UcMessage("\"'Tis truly amazing... thou hast a facile tongue to make me lower my price by so much.\"");
		UcSay;
	labelFunc084C_0127:
		goto labelFunc084C_01DA;
	labelFunc084C_012A:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc084C_016D;
		if(!(var000E == 0x0001)) goto labelFunc084C_014E;
		UcMessage("\"'Tis lower than I expected... but I shall agree to this price.\"");
		UcSay;
	labelFunc084C_014E:
		if(!(var000E == 0x0002)) goto labelFunc084C_015C;
		UcMessage("\"Thou art very good at bargaining. I will accept this price.\"");
		UcSay;
	labelFunc084C_015C:
		if(!(var000E == 0x0003)) goto labelFunc084C_016A;
		UcMessage("\"I see.\" *\"Very well, I will agree to this price even though 'tis lower than I did wish.\"");
		UcSay;
	labelFunc084C_016A:
		goto labelFunc084C_01DA;
	labelFunc084C_016D:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc084C_01B0;
		if(!(var000E == 0x0001)) goto labelFunc084C_0191;
		UcMessage("\"Hmm...\" ~\"I suppose one must accept such a price -- though it could have been higher.\"");
		UcSay;
	labelFunc084C_0191:
		if(!(var000E == 0x0002)) goto labelFunc084C_019F;
		UcMessage("\"'Tis not such an indecent offer.\" ~\"I accept.\"");
		UcSay;
	labelFunc084C_019F:
		if(!(var000E == 0x0003)) goto labelFunc084C_01AD;
		UcMessage("\"I will accept	this price.\" ~\"I can always use the extra funds for research.\"");
		UcSay;
	labelFunc084C_01AD:
		goto labelFunc084C_01DA;
	labelFunc084C_01B0:
		if(!(var000E == 0x0001)) goto labelFunc084C_01BE;
		UcMessage("\"Very well.\" *\"I accept thine offer!\"");
		UcSay;
	labelFunc084C_01BE:
		if(!(var000E == 0x0002)) goto labelFunc084C_01CC;
		UcMessage("\"It hath been a pleasure!\" *\"I will accept thine offer.\"");
		UcSay;
	labelFunc084C_01CC:
		if(!(var000E == 0x0003)) goto labelFunc084C_01DA;
		UcMessage("\"Yes...\"*\"'Tis a very good price.\"");
		UcSay;
	labelFunc084C_01DA:
		UcMessage("\"So, have we agreed on the price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc084C_020B;
		if(!(var0009 > 0x0001)) goto labelFunc084C_0204;
		UI_set_npc_id_BD(0xFFE8, (var0009 - 0x0002));
	labelFunc084C_0204:
		rr = var0002;
		goto labelFunc084C_0262;
	labelFunc084C_020B:
		if(!(var000E == 0x0001)) goto labelFunc084C_0219;
		UcMessage("\"Pray, settle thy mind!\"");
		UcSay;
	labelFunc084C_0219:
		if(!(var000E == 0x0002)) goto labelFunc084C_0227;
		UcMessage("\"Dost thou waste the time of other mages as well?\"");
		UcSay;
	labelFunc084C_0227:
		if(!(var000E == 0x0003)) goto labelFunc084C_0235;
		UcMessage("\"Thou art most rude to renege on an offer!\"");
		UcSay;
	labelFunc084C_0235:
		if(!(0x001F < (var0009 + 0x000A))) goto labelFunc084C_0250;
		UI_set_npc_id_BD(0xFFE8, 0x001F);
		goto labelFunc084C_025E;
	labelFunc084C_0250:
		UI_set_npc_id_BD(0xFFE8, (var0009 + 0x000A));
	labelFunc084C_025E:
		rr = 0x0000;
	labelFunc084C_0262:
		if(!(var0005 == 0x0001)) goto labelFunc084C_02D2;
		if(!(var000B == 0x0005)) goto labelFunc084C_02AD;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou want it at this price?\"");
		UcSay;
		if(!(var0009 < 0x001C)) goto labelFunc084C_0298;
		UI_set_npc_id_BD(0xFFE8, (var0009 + 0x0004));
	labelFunc084C_0298:
		if(!(Func0955() == true)) goto labelFunc084C_02A4;
		rr = var0002;
	labelFunc084C_02A4:
		var0006 = 0x0000;
		goto labelFunc084C_02CF;
	labelFunc084C_02AD:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer.  I will go no lower.\"");
		UcSay;
		if(!(var0009 < 0x001E)) goto labelFunc084C_02CF;
		UI_set_npc_id_BD(0xFFE8, (var0009 + 0x0002));
	labelFunc084C_02CF:
		goto labelFunc084C_0408;
	labelFunc084C_02D2:
		if(!(var000B == 0x0002)) goto labelFunc084C_0318;
		if(!(var000E == 0x0001)) goto labelFunc084C_02F0;
		UcMessage("\"'Tis pleasant to find thee amenable. ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc084C_02F0:
		if(!(var000E == 0x0002)) goto labelFunc084C_0304;
		UcMessage("\"Thou seemest to appreciate the finer spells and what they are truly worth. How doth ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc084C_0304:
		if(!(var000E == 0x0003)) goto labelFunc084C_0318;
		UcMessage("\"What a pleasure it is to deal with thee. I offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc084C_0318:
		if(!(var000B == 0x0003)) goto labelFunc084C_035E;
		if(!(var000E == 0x0001)) goto labelFunc084C_0336;
		UcMessage("\"I am not totally certain.... Perhaps ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc084C_0336:
		if(!(var000E == 0x0002)) goto labelFunc084C_034A;
		UcMessage("\"Thou wilt not obtain the spell so cheaply. I will give thee ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc084C_034A:
		if(!(var000E == 0x0003)) goto labelFunc084C_035E;
		UcMessage("\"I suppose I must needs take thy money...\" *\"but not at that price. What about ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc084C_035E:
		if(!(var000B == 0x0004)) goto labelFunc084C_03A4;
		if(!(var000E == 0x0001)) goto labelFunc084C_037C;
		UcMessage("\"This is not a price that inspires me to like thee. For ");
		UcMessage(var0002);
		UcMessage(" I will like thee better.\"");
		UcSay;
	labelFunc084C_037C:
		if(!(var000E == 0x0002)) goto labelFunc084C_0390;
		UcMessage("\"For such a pitiful sum I could not even gain a tenth of what this spell cost me to learn! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc084C_0390:
		if(!(var000E == 0x0003)) goto labelFunc084C_03A4;
		UcMessage("\"I am not certain who is the more foolish...\"*\"Thou for offering such a wretched amount, or myself for continuing to bargain with thee. I will offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc084C_03A4:
		if(!(var000B == 0x0005)) goto labelFunc084C_0408;
		var0002 = var000D;
		if(!(var000E == 0x0001)) goto labelFunc084C_03C8;
		UcMessage("\"Art thou joking? My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc084C_03C8:
		if(!(var000E == 0x0002)) goto labelFunc084C_03DC;
		UcMessage("\"Art thou deaf, or merely an imbecile? I offer ");
		UcMessage(var0002);
		UcMessage(", and no less!\"");
		UcSay;
	labelFunc084C_03DC:
		if(!(var000E == 0x0003)) goto labelFunc084C_03F0;
		UcMessage("\"Thine offer is an insult to any mage! Mine offer stands at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc084C_03F0:
		if(!(var0009 < 0x001F)) goto labelFunc084C_0408;
		UI_set_npc_id_BD(0xFFE8, (var0009 + 0x0001));
	labelFunc084C_0408:
		goto labelFunc084C_0048;
	labelFunc084C_040B:
		return rr;
}
var Func084D 0x84D (var var0000, var var0001)
{
	var rr;
	if(!(var0000 == 0x0001)) goto labelFunc084D_0035;
	if(!(var0001 == 0xFF2A)) goto labelFunc084D_0018;
	rr = 0x0012;
	labelFunc084D_0018:
		if(!((var0001 == 0xFF30) || (var0001 == 0xFF2E))) goto labelFunc084D_0031;
		rr = 0x0017;
		goto labelFunc084D_0035;
	labelFunc084D_0031:
		rr = 0x001A;
	labelFunc084D_0035:
		if(!(var0000 == 0x0002)) goto labelFunc084D_0064;
		if(!((var0001 == 0xFF2D) || ((var0001 == 0xFF2F) || (var0001 == 0xFF2C)))) goto labelFunc084D_0060;
		rr = 0x0007;
		goto labelFunc084D_0064;
	labelFunc084D_0060:
		rr = 0x0006;
	labelFunc084D_0064:
		if(!((var0000 == 0x0003) || (var0000 == 0x000A))) goto labelFunc084D_0093;
		if(!((var0001 == 0xFF31) || (var0001 == 0xFF29))) goto labelFunc084D_008F;
		rr = 0x0007;
		goto labelFunc084D_0093;
	labelFunc084D_008F:
		rr = 0x0010;
	labelFunc084D_0093:
		if(!(var0000 == 0x0004)) goto labelFunc084D_00C8;
		if(!((var0001 == 0xFF30) || (var0001 == 0xFF2E))) goto labelFunc084D_00B3;
		rr = 0x000C;
	labelFunc084D_00B3:
		if(!(var0001 == 0xFF2A)) goto labelFunc084D_00C4;
		rr = 0x0002;
		goto labelFunc084D_00C8;
	labelFunc084D_00C4:
		rr = 0x001E;
	labelFunc084D_00C8:
		if(!(var0000 == 0x0005)) goto labelFunc084D_00EF;
		if(!((var0001 == 0xFF2B) || (var0001 == 0xFF29))) goto labelFunc084D_00EB;
		rr = 0x0007;
		goto labelFunc084D_00EF;
	labelFunc084D_00EB:
		rr = 0x0010;
	labelFunc084D_00EF:
		if(!(var0000 == 0x0006)) goto labelFunc084D_00FD;
		rr = 0x0007;
	labelFunc084D_00FD:
		if(!(var0000 == 0x0007)) goto labelFunc084D_015B;
		if(!((var0001 == 0xFF29) || ((var0001 == 0xFF2F) || (var0001 == 0xFF31)))) goto labelFunc084D_0125;
		rr = 0x001E;
	labelFunc084D_0125:
		if(!((var0001 == 0xFF2D) || (var0001 == 0xFF2B))) goto labelFunc084D_013B;
		rr = 0x000C;
	labelFunc084D_013B:
		if(!(var0001 == 0xFF2C)) goto labelFunc084D_0149;
		rr = 0x0006;
	labelFunc084D_0149:
		if(!(var0001 == 0xFF2E)) goto labelFunc084D_0157;
		rr = 0x0002;
	labelFunc084D_0157:
		rr = 0x0012;
	labelFunc084D_015B:
		if(!(var0000 == 0x0008)) goto labelFunc084D_0169;
		rr = 0x000E;
	labelFunc084D_0169:
		if(!(var0000 == 0x0009)) goto labelFunc084D_0188;
		if(!(var0001 == 0xFF2B)) goto labelFunc084D_0184;
		rr = 0x0007;
		goto labelFunc084D_0188;
	labelFunc084D_0184:
		rr = 0x0004;
	labelFunc084D_0188:
		return rr;
}
var Func084E 0x84E (var var0000, var var0001)
{
	var rr;
	if(!(var0001 > 0x0000)) goto labelFunc084E_0014;
	var0001 = UI_get_npc_number_47(var0001);
	labelFunc084E_0014:
		if(!(var0001 == 0xFF31)) goto labelFunc084E_00EB;
		if(!(var0000 == 0x0001)) goto labelFunc084E_0035;
		rr = [0x096D, 0x0464, 0x0000];
	labelFunc084E_0035:
		if(!(var0000 == 0x0002)) goto labelFunc084E_004C;
		rr = [0x0909, 0x0497, 0x0000];
	labelFunc084E_004C:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_006B;
		rr = [0x0968, 0x0478, 0x0000];
	labelFunc084E_006B:
		if(!(var0000 == 0x0004)) goto labelFunc084E_0082;
		rr = [0x0977, 0x048C, 0x0000];
	labelFunc084E_0082:
		if(!(var0000 == 0x0005)) goto labelFunc084E_0099;
		rr = [0x091E, 0x0425, 0x0000];
	labelFunc084E_0099:
		if(!(var0000 == 0x0006)) goto labelFunc084E_00B0;
		rr = [0x0993, 0x0434, 0x0000];
	labelFunc084E_00B0:
		if(!(var0000 == 0x0007)) goto labelFunc084E_00C7;
		rr = [0x0977, 0x048C, 0x0000];
	labelFunc084E_00C7:
		if(!(var0000 == 0x0008)) goto labelFunc084E_00DE;
		rr = [0x0916, 0x04D8, 0x0000];
	labelFunc084E_00DE:
		rr = [0x095C, 0x04B1, 0x0000];
	labelFunc084E_00EB:
		if(!(var0001 == 0xFF2D)) goto labelFunc084E_01C2;
		if(!(var0000 == 0x0001)) goto labelFunc084E_010C;
		rr = [0x096D, 0x046A, 0x0000];
	labelFunc084E_010C:
		if(!(var0000 == 0x0002)) goto labelFunc084E_0123;
		rr = [0x09C4, 0x047E, 0x0000];
	labelFunc084E_0123:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_0142;
		rr = [0x0960, 0x047C, 0x0000];
	labelFunc084E_0142:
		if(!(var0000 == 0x0004)) goto labelFunc084E_0159;
		rr = [0x0977, 0x049A, 0x0000];
	labelFunc084E_0159:
		if(!(var0000 == 0x0005)) goto labelFunc084E_0170;
		rr = [0x0912, 0x0425, 0x0000];
	labelFunc084E_0170:
		if(!(var0000 == 0x0006)) goto labelFunc084E_0187;
		rr = [0x099C, 0x0434, 0x0000];
	labelFunc084E_0187:
		if(!(var0000 == 0x0007)) goto labelFunc084E_019E;
		rr = [0x09A6, 0x046F, 0x0000];
	labelFunc084E_019E:
		if(!(var0000 == 0x0008)) goto labelFunc084E_01B5;
		rr = [0x09C6, 0x0427, 0x0000];
	labelFunc084E_01B5:
		rr = [0x0980, 0x04B1, 0x0000];
	labelFunc084E_01C2:
		if(!(var0001 == 0xFF2F)) goto labelFunc084E_0299;
		if(!(var0000 == 0x0001)) goto labelFunc084E_01E3;
		rr = [0x0967, 0x046A, 0x0000];
	labelFunc084E_01E3:
		if(!(var0000 == 0x0002)) goto labelFunc084E_01FA;
		rr = [0x09C9, 0x0492, 0x0000];
	labelFunc084E_01FA:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_0219;
		rr = [0x0962, 0x047C, 0x0000];
	labelFunc084E_0219:
		if(!(var0000 == 0x0004)) goto labelFunc084E_0230;
		rr = [0x097A, 0x0498, 0x0000];
	labelFunc084E_0230:
		if(!(var0000 == 0x0005)) goto labelFunc084E_0247;
		rr = [0x0914, 0x0425, 0x0000];
	labelFunc084E_0247:
		if(!(var0000 == 0x0006)) goto labelFunc084E_025E;
		rr = [0x099C, 0x0437, 0x0000];
	labelFunc084E_025E:
		if(!(var0000 == 0x0007)) goto labelFunc084E_0275;
		rr = [0x097A, 0x0498, 0x0000];
	labelFunc084E_0275:
		if(!(var0000 == 0x0008)) goto labelFunc084E_028C;
		rr = [0x09A5, 0x04D6, 0x0000];
	labelFunc084E_028C:
		rr = [0x096F, 0x04B1, 0x0000];
	labelFunc084E_0299:
		if(!(var0001 == 0xFF2C)) goto labelFunc084E_0370;
		if(!(var0000 == 0x0001)) goto labelFunc084E_02BA;
		rr = [0x0973, 0x046A, 0x0000];
	labelFunc084E_02BA:
		if(!(var0000 == 0x0002)) goto labelFunc084E_02D1;
		rr = [0x09BA, 0x0487, 0x0000];
	labelFunc084E_02D1:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_02F0;
		rr = [0x096D, 0x047C, 0x0000];
	labelFunc084E_02F0:
		if(!(var0000 == 0x0004)) goto labelFunc084E_0307;
		rr = [0x0974, 0x048E, 0x0000];
	labelFunc084E_0307:
		if(!(var0000 == 0x0005)) goto labelFunc084E_031E;
		rr = [0x091C, 0x0425, 0x0000];
	labelFunc084E_031E:
		if(!(var0000 == 0x0006)) goto labelFunc084E_0335;
		rr = [0x0997, 0x0437, 0x0000];
	labelFunc084E_0335:
		if(!(var0000 == 0x0007)) goto labelFunc084E_034C;
		rr = [0x09BA, 0x0487, 0x0000];
	labelFunc084E_034C:
		if(!(var0000 == 0x0008)) goto labelFunc084E_0363;
		rr = [0x08E9, 0x0468, 0x0000];
	labelFunc084E_0363:
		rr = [0x096A, 0x04B1, 0x0000];
	labelFunc084E_0370:
		if(!(var0001 == 0xFF2B)) goto labelFunc084E_0447;
		if(!(var0000 == 0x0001)) goto labelFunc084E_0391;
		rr = [0x0973, 0x0464, 0x0000];
	labelFunc084E_0391:
		if(!(var0000 == 0x0002)) goto labelFunc084E_03A8;
		rr = [0x0909, 0x0469, 0x0000];
	labelFunc084E_03A8:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_03C7;
		rr = [0x096F, 0x047C, 0x0000];
	labelFunc084E_03C7:
		if(!(var0000 == 0x0004)) goto labelFunc084E_03DE;
		rr = [0x097A, 0x048E, 0x0000];
	labelFunc084E_03DE:
		if(!(var0000 == 0x0005)) goto labelFunc084E_03F5;
		rr = [0x0918, 0x0422, 0x0000];
	labelFunc084E_03F5:
		if(!(var0000 == 0x0006)) goto labelFunc084E_040C;
		rr = [0x0993, 0x0437, 0x0000];
	labelFunc084E_040C:
		if(!(var0000 == 0x0007)) goto labelFunc084E_0423;
		rr = [0x0918, 0x0422, 0x0000];
	labelFunc084E_0423:
		if(!(var0000 == 0x0008)) goto labelFunc084E_043A;
		rr = [0x095B, 0x048C, 0x0000];
	labelFunc084E_043A:
		rr = [0x0968, 0x04BA, 0x0000];
	labelFunc084E_0447:
		if(!(var0001 == 0xFF2A)) goto labelFunc084E_051E;
		if(!(var0000 == 0x0001)) goto labelFunc084E_0468;
		rr = [0x0963, 0x0463, 0x0000];
	labelFunc084E_0468:
		if(!(var0000 == 0x0002)) goto labelFunc084E_047F;
		rr = [0x0923, 0x0469, 0x0000];
	labelFunc084E_047F:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_049E;
		rr = [0x096D, 0x047F, 0x0000];
	labelFunc084E_049E:
		if(!(var0000 == 0x0004)) goto labelFunc084E_04B5;
		rr = [0x0967, 0x048E, 0x0000];
	labelFunc084E_04B5:
		if(!(var0000 == 0x0005)) goto labelFunc084E_04CC;
		rr = [0x091B, 0x0429, 0x0000];
	labelFunc084E_04CC:
		if(!(var0000 == 0x0006)) goto labelFunc084E_04E3;
		rr = [0x0993, 0x043A, 0x0000];
	labelFunc084E_04E3:
		if(!(var0000 == 0x0007)) goto labelFunc084E_04FA;
		rr = [0x0987, 0x0465, 0x0000];
	labelFunc084E_04FA:
		if(!(var0000 == 0x0008)) goto labelFunc084E_0511;
		rr = [0x0958, 0x049C, 0x0000];
	labelFunc084E_0511:
		rr = [0x0960, 0x04B1, 0x0000];
	labelFunc084E_051E:
		if(!(var0001 == 0xFF30)) goto labelFunc084E_05F5;
		if(!(var0000 == 0x0001)) goto labelFunc084E_053F;
		rr = [0x097A, 0x0469, 0x0000];
	labelFunc084E_053F:
		if(!(var0000 == 0x0002)) goto labelFunc084E_0556;
		rr = [0x0913, 0x0469, 0x0000];
	labelFunc084E_0556:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_0575;
		rr = [0x096F, 0x047F, 0x0000];
	labelFunc084E_0575:
		if(!(var0000 == 0x0004)) goto labelFunc084E_058C;
		rr = [0x0966, 0x0479, 0x0000];
	labelFunc084E_058C:
		if(!(var0000 == 0x0005)) goto labelFunc084E_05A3;
		rr = [0x091E, 0x0429, 0x0000];
	labelFunc084E_05A3:
		if(!(var0000 == 0x0006)) goto labelFunc084E_05BA;
		rr = [0x0997, 0x043A, 0x0000];
	labelFunc084E_05BA:
		if(!(var0000 == 0x0007)) goto labelFunc084E_05D1;
		rr = [0x097A, 0x0469, 0x0000];
	labelFunc084E_05D1:
		if(!(var0000 == 0x0008)) goto labelFunc084E_05E8;
		rr = [0x0958, 0x0499, 0x0000];
	labelFunc084E_05E8:
		rr = [0x0972, 0x04B1, 0x0000];
	labelFunc084E_05F5:
		if(!(var0001 == 0xFF2E)) goto labelFunc084E_06CC;
		if(!(var0000 == 0x0001)) goto labelFunc084E_0616;
		rr = [0x0987, 0x0465, 0x0000];
	labelFunc084E_0616:
		if(!(var0000 == 0x0002)) goto labelFunc084E_062D;
		rr = [0x0915, 0x047C, 0x0000];
	labelFunc084E_062D:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_064C;
		rr = [0x0960, 0x047F, 0x0000];
	labelFunc084E_064C:
		if(!(var0000 == 0x0004)) goto labelFunc084E_0663;
		rr = [0x0A3E, 0x04B2, 0x0000];
	labelFunc084E_0663:
		if(!(var0000 == 0x0005)) goto labelFunc084E_067A;
		rr = [0x0912, 0x0429, 0x0000];
	labelFunc084E_067A:
		if(!(var0000 == 0x0006)) goto labelFunc084E_0691;
		rr = [0x099B, 0x043A, 0x0000];
	labelFunc084E_0691:
		if(!(var0000 == 0x0007)) goto labelFunc084E_06A8;
		rr = [0x0967, 0x048E, 0x0000];
	labelFunc084E_06A8:
		if(!(var0000 == 0x0008)) goto labelFunc084E_06BF;
		rr = [0x0958, 0x0496, 0x0000];
	labelFunc084E_06BF:
		rr = [0x0968, 0x04B1, 0x0000];
	labelFunc084E_06CC:
		if(!(var0001 == 0xFF29)) goto labelFunc084E_07A3;
		if(!(var0000 == 0x0001)) goto labelFunc084E_06ED;
		rr = [0x0965, 0x0467, 0x0000];
	labelFunc084E_06ED:
		if(!(var0000 == 0x0002)) goto labelFunc084E_0704;
		rr = [0x0910, 0x0480, 0x0000];
	labelFunc084E_0704:
		if(!((var0000 == 0x000A) || (var0000 == 0x0003))) goto labelFunc084E_0723;
		rr = [0x0968, 0x0473, 0x0000];
	labelFunc084E_0723:
		if(!(var0000 == 0x0004)) goto labelFunc084E_073A;
		rr = [0x0958, 0x048E, 0x0000];
	labelFunc084E_073A:
		if(!(var0000 == 0x0005)) goto labelFunc084E_0751;
		rr = [0x091C, 0x0422, 0x0000];
	labelFunc084E_0751:
		if(!(var0000 == 0x0006)) goto labelFunc084E_0768;
		rr = [0x0998, 0x0434, 0x0000];
	labelFunc084E_0768:
		if(!(var0000 == 0x0007)) goto labelFunc084E_077F;
		rr = [0x0958, 0x048E, 0x0000];
	labelFunc084E_077F:
		if(!(var0000 == 0x0009)) goto labelFunc084E_0796;
		rr = [0x0956, 0x0463, 0x0000];
	labelFunc084E_0796:
		rr = [0x0965, 0x04B1, 0x0000];
	labelFunc084E_07A3:
		return rr;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func0850 0x850 (var var0000, var var0001);

Func084F 0x84F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	UI_push_answers_0E();
	var0000 = true;
	UcMessage("\"I will accept only guilders in exchange for teaching thee spells.\"");
	UcSay;
	labelFunc084F_000C:
		if(!var0000) goto labelFunc084F_0401;
		UcMessage("\"In which circle art thou interested?\"");
		UcSay;
		var0001 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth"]);
		var0001 = (var0001 - 0x0001);
		if(!(var0001 == 0x0000)) goto labelFunc084F_0054;
		goto labelFunc084F_0401;
	labelFunc084F_0054:
		if(!(var0001 == 0x0001)) goto labelFunc084F_0091;
		var0002 = ["nothing", "Telekinesis"];
		var0003 = [0x0000, 0x0007];
		var0004 = [0x0000, 0x0028];
		var0005 = [0x0000, 0x0019];
		goto labelFunc084F_02C1;
	labelFunc084F_0091:
		if(!(var0001 == 0x0002)) goto labelFunc084F_00CE;
		var0002 = ["nothing", "Cold Blast"];
		var0003 = [0x0000, 0x000B];
		var0004 = [0x0000, 0x0096];
		var0005 = [0x0000, 0x0064];
		goto labelFunc084F_02C1;
	labelFunc084F_00CE:
		if(!(var0001 == 0x0003)) goto labelFunc084F_0117;
		var0002 = ["nothing", "Curse", "Paralyze"];
		var0003 = [0x0000, 0x0011, 0x0015];
		var0004 = [0x0000, 0x0078, 0x008C];
		var0005 = [0x0000, 0x0046, 0x0055];
		goto labelFunc084F_02C1;
	labelFunc084F_0117:
		if(!(var0001 == 0x0004)) goto labelFunc084F_0160;
		var0002 = ["nothing", "Blink", "Mass Curse"];
		var0003 = [0x0000, 0x0018, 0x001C];
		var0004 = [0x0000, 0x00C8, 0x00AF];
		var0005 = [0x0000, 0x0082, 0x0064];
		goto labelFunc084F_02C1;
	labelFunc084F_0160:
		if(!(var0001 == 0x0005)) goto labelFunc084F_019D;
		var0002 = ["nothing", "Erstam's Surprise"];
		var0003 = [0x0000, 0x0027];
		var0004 = [0x0000, 0x00F0];
		var0005 = [0x0000, 0x00AA];
		goto labelFunc084F_02C1;
	labelFunc084F_019D:
		if(!(var0001 == 0x0006)) goto labelFunc084F_01DA;
		var0002 = ["nothing", "Cause Fear"];
		var0003 = [0x0000, 0x002A];
		var0004 = [0x0000, 0x012C];
		var0005 = [0x0000, 0x00D2];
		goto labelFunc084F_02C1;
	labelFunc084F_01DA:
		if(!(var0001 == 0x0007)) goto labelFunc084F_0217;
		var0002 = ["nothing", "Mass Might"];
		var0003 = [0x0000, 0x0033];
		var0004 = [0x0000, 0x015E];
		var0005 = [0x0000, 0x00F0];
		goto labelFunc084F_02C1;
	labelFunc084F_0217:
		if(!(var0001 == 0x0008)) goto labelFunc084F_026C;
		var0002 = ["nothing", "Mind Blast", "Invoke Serpent", "Serpent Bond"];
		var0003 = [0x0000, 0x0039, 0x003C, 0x003D];
		var0004 = [0x0000, 0x0190, 0x01A9, 0x01C2];
		var0005 = [0x0000, 0x011D, 0x0145, 0x015E];
		goto labelFunc084F_02C1;
	labelFunc084F_026C:
		if(!(var0001 == 0x0009)) goto labelFunc084F_02C1;
		var0002 = ["nothing", "Death Vortex", "Mass Death", "Imbalance"];
		var0003 = [0x0000, 0x0040, 0x0041, 0x0047];
		var0004 = [0x0000, 0x01F4, 0x0258, 0x04B0];
		var0005 = [0x0000, 0x01F4, 0x0258, 0x04B0];
		goto labelFunc084F_02C1;
	labelFunc084F_02C1:
		UcMessage("\"What spell dost thou wish to purchase?\"");
		UcSay;
		var0006 = Func0957(var0002);
		if(!(var0006 == 0x0001)) goto labelFunc084F_02DF;
		UcMessage("\"As thou wishest...\"");
		UcSay;
		goto labelFunc084F_03F4;
	labelFunc084F_02DF:
		var0007 = var0003[var0006];
		var0008 = var0004[var0006];
		var0009 = var0005[var0006];
		var000A = var0002[var0006];
		var000B = 0x03B8;
		if(!(gflags[0215] == true)) goto labelFunc084F_032B;
		var0008 = (var0004[var0006] / 0x0002);
		var0009 = (var0005[var0006] / 0x0002);
	labelFunc084F_032B:
		if(!(var0008 == var0009)) goto labelFunc084F_0365;
		UcMessage("\"I will sell thee ");
		UcMessage(var000A);
		UcMessage(" for ");
		UcMessage(var0008);
		UcMessage(" guilders. Dost thou accept?\"");
		UcSay;
		var000C = 0x0000;
		if(!(Func0955() == true)) goto labelFunc084F_0362;
		var000C = Func096F(var0007, var000B, var0008);
	labelFunc084F_0362:
		goto labelFunc084F_03A0;
	labelFunc084F_0365:
		UcMessage("\"I will sell thee ");
		UcMessage(var000A);
		UcMessage(" for ");
		UcMessage(var0008);
		UcMessage(" guilders. Dost thou accept?\"");
		UcSay;
		var000D = Func0850(var0008, var0009);
		var000C = 0x0000;
		if(!(var000D > 0x0000)) goto labelFunc084F_03A0;
		var000C = Func096F(var0007, var000B, var000D);
	labelFunc084F_03A0:
		if(!(var000C == 0x0001)) goto labelFunc084F_03B7;
		UcMessage("\"The spell ");
		UcMessage(var000A);
		UcMessage(" is thine!\"");
		UcSay;
		goto labelFunc084F_03F4;
	labelFunc084F_03B7:
		if(!(var000C == 0x0002)) goto labelFunc084F_03CC;
		UcMessage("\"Thou dost need a spellbook!\"");
		UcSay;
		var0000 = false;
		goto labelFunc084F_0401;
	labelFunc084F_03CC:
		if(!(var000C == 0x0003)) goto labelFunc084F_03E3;
		UcMessage("\"Thou dost not have enough guilders to buy ");
		UcMessage(var000A);
		UcMessage("!\"");
		UcSay;
		goto labelFunc084F_03F4;
	labelFunc084F_03E3:
		if(!(var000C == 0x0004)) goto labelFunc084F_03F4;
		UcMessage("\"Thou dost already have that spell!\"");
		UcSay;
		goto labelFunc084F_03F4;
	labelFunc084F_03F4:
		UcMessage("\"Perhaps another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc084F_000C;
	labelFunc084F_0401:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0850 0x850 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = 0x0005;
	var0005 = 0x0000;
	var0006 = 0x0001;
	var0007 = 0x0000;
	var0008 = 0x0002;
	labelFunc0850_0032:
		if(!var0006) goto labelFunc0850_0372;
		var0009 = Func0956(["yes", "no", "haggle"]);
		if(!(var0009 == "no")) goto labelFunc0850_005B;
		rr = 0x0000;
		goto labelFunc0850_006E;
	labelFunc0850_005B:
		if(!(var0009 == "yes")) goto labelFunc0850_006E;
		var000A = 0x0000;
		goto labelFunc0850_00BD;
	labelFunc0850_006E:
		var000B = Func0999(var0002, var0000, var0008, var0003, var0007, var0004, var0005);
		var0007 = (var0007 + 0x0001);
		var0005 = var000B[0x0004];
		var000A = var000B[0x0003];
		var000C = var0002;
		var0002 = var000B[0x0002];
		var0003 = var000B[0x0001];
	labelFunc0850_00BD:
		var000D = UI_get_random_00(0x0003);
		if(!(var000A < 0x0002)) goto labelFunc0850_0211;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0850_0114;
		if(!(var000D == 0x0001)) goto labelFunc0850_00F5;
		UcMessage("\"Thou dost bargain well, my friend.\"");
		UcSay;
	labelFunc0850_00F5:
		if(!(var000D == 0x0002)) goto labelFunc0850_0103;
		UcMessage("\"It pains me to agree... But what else can I do?\"");
		UcSay;
	labelFunc0850_0103:
		if(!(var000D == 0x0003)) goto labelFunc0850_0111;
		UcMessage("\"I must be spending too much time speaking with the dead. I cannot believe that I am agreeing to this!\"");
		UcSay;
	labelFunc0850_0111:
		goto labelFunc0850_01CA;
	labelFunc0850_0114:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0850_0157;
		if(!(var000D == 0x0001)) goto labelFunc0850_0138;
		UcMessage("\"I have little enough business these days. I shall have to accept.\"");
		UcSay;
	labelFunc0850_0138:
		if(!(var000D == 0x0002)) goto labelFunc0850_0146;
		UcMessage("\"Thou hast a talent for bargaining. I will accept this price.\"");
		UcSay;
	labelFunc0850_0146:
		if(!(var000D == 0x0003)) goto labelFunc0850_0154;
		UcMessage("\"I should retire from magery. I am losing mine edge.\"");
		UcSay;
	labelFunc0850_0154:
		goto labelFunc0850_01CA;
	labelFunc0850_0157:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0850_01A0;
		if(!(var000D == 0x0001)) goto labelFunc0850_0181;
		UcMessage("\"Only ");
		UcMessage(var0002);
		UcMessage("??! I suppose it is the best I can hope for.\"");
		UcSay;
	labelFunc0850_0181:
		if(!(var000D == 0x0002)) goto labelFunc0850_018F;
		UcMessage("\"A modest amount. Not bad...\"");
		UcSay;
	labelFunc0850_018F:
		if(!(var000D == 0x0003)) goto labelFunc0850_019D;
		UcMessage("\"There is simply no profit in selling spells...\"");
		UcSay;
	labelFunc0850_019D:
		goto labelFunc0850_01CA;
	labelFunc0850_01A0:
		if(!(var000D == 0x0001)) goto labelFunc0850_01AE;
		UcMessage("\"I accept thine offer!\"");
		UcSay;
	labelFunc0850_01AE:
		if(!(var000D == 0x0002)) goto labelFunc0850_01BC;
		UcMessage("\"It is a pleasure doing business with thee!\"");
		UcSay;
	labelFunc0850_01BC:
		if(!(var000D == 0x0003)) goto labelFunc0850_01CA;
		UcMessage("\"Thou art most generous! I accept.\"");
		UcSay;
	labelFunc0850_01CA:
		UcMessage("\"So, have we agreed on the price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0850_01E3;
		rr = var0002;
		goto labelFunc0850_0211;
	labelFunc0850_01E3:
		if(!(var000D == 0x0001)) goto labelFunc0850_01F1;
		UcMessage("\"Then why didst thou go to such trouble?!\"");
		UcSay;
	labelFunc0850_01F1:
		if(!(var000D == 0x0002)) goto labelFunc0850_01FF;
		UcMessage("\"I shall remember this outrage!\"");
		UcSay;
	labelFunc0850_01FF:
		if(!(var000D == 0x0003)) goto labelFunc0850_020D;
		UcMessage("\"All this time spent for nothing?! Thou art mad!\"");
		UcSay;
	labelFunc0850_020D:
		rr = 0x0000;
	labelFunc0850_0211:
		if(!(var0005 == 0x0001)) goto labelFunc0850_0251;
		if(!(var000A == 0x0005)) goto labelFunc0850_0244;
		UcMessage("\"I said that ");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou agree?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0850_023B;
		rr = var0002;
	labelFunc0850_023B:
		var0006 = 0x0000;
		goto labelFunc0850_024E;
	labelFunc0850_0244:
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer. I could make more profit from a shade...\"");
		UcSay;
	labelFunc0850_024E:
		goto labelFunc0850_036F;
	labelFunc0850_0251:
		if(!(var000A == 0x0002)) goto labelFunc0850_0297;
		if(!(var000D == 0x0001)) goto labelFunc0850_026F;
		UcMessage("\"How doth ");
		UcMessage(var0002);
		UcMessage(" sound? I like thee...\"");
		UcSay;
	labelFunc0850_026F:
		if(!(var000D == 0x0002)) goto labelFunc0850_0283;
		UcMessage("\"I can trust thee with my spells, surely. How doth ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0850_0283:
		if(!(var000D == 0x0003)) goto labelFunc0850_0297;
		UcMessage("\"Thou art worthy of my knowledge. I offer thee ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0850_0297:
		if(!(var000A == 0x0003)) goto labelFunc0850_02DD;
		if(!(var000D == 0x0001)) goto labelFunc0850_02B5;
		UcMessage("\"Hmmm.... Possibly ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0850_02B5:
		if(!(var000D == 0x0002)) goto labelFunc0850_02C9;
		UcMessage("\"I must consider this... ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0850_02C9:
		if(!(var000D == 0x0003)) goto labelFunc0850_02DD;
		UcMessage("\"What wouldst thou say to ");
		UcMessage(var0002);
		UcMessage("? I must be able to buy reagents...\"");
		UcSay;
	labelFunc0850_02DD:
		if(!(var000A == 0x0004)) goto labelFunc0850_0323;
		if(!(var000D == 0x0001)) goto labelFunc0850_02FB;
		UcMessage("\"Thief! Better that thou shouldst steal it from me! ");
		UcMessage(var0002);
		UcMessage(", no less.\"");
		UcSay;
	labelFunc0850_02FB:
		if(!(var000D == 0x0002)) goto labelFunc0850_030F;
		UcMessage("\"My knowledge is worth more than that! I can go no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0850_030F:
		if(!(var000D == 0x0003)) goto labelFunc0850_0323;
		UcMessage("\"This spell is worth at least ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0850_0323:
		if(!(var000A == 0x0005)) goto labelFunc0850_036F;
		var0002 = var000C;
		if(!(var000D == 0x0001)) goto labelFunc0850_0347;
		UcMessage("\"Thou must not want this spell... My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0850_0347:
		if(!(var000D == 0x0002)) goto labelFunc0850_035B;
		UcMessage("\"Dost thou dare to insult me?! ");
		UcMessage(var0002);
		UcMessage(", no less.\"");
		UcSay;
	labelFunc0850_035B:
		if(!(var000D == 0x0003)) goto labelFunc0850_036F;
		UcMessage("\"Mine offer stands at ");
		UcMessage(var0002);
		UcMessage(". Thou art a fool if thou dost not agree.\"");
		UcSay;
	labelFunc0850_036F:
		goto labelFunc0850_0032;
	labelFunc0850_0372:
		return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0851 0x851 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	UcMessage("\"The cost is 12 guilders per person. Wouldst thou like a room for the night?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0851_00A2;
	var0000 = (UI_get_array_size_73(UI_get_party_list_2B()) * 0x000C);
	var0001 = UI_count_objects_31(0xFE9B, 0x03B8, 0xFE99, 0xFE99);
	if(!(var0001 >= var0000)) goto labelFunc0851_0070;
	UcMessage("\"Here is thy key.\"");
	UcSay;
	var0002 = UI_remove_party_items_34(var0000, 0x03B8, 0xFE99, 0xFE99, 0x0000);
	var0003 = Func099B(0xFE9C, 0x0001, 0x0281, 0x00B8, 0x000B, 0x0000, true);
	UcMessage("\"'Tis the northwest corner room.\"");
	UcSay;
	goto labelFunc0851_009F;
	labelFunc0851_0070:
		var0004 = Func0992(0x0001, "@But Avatar, we do not have the guilders!@", 0x0000, false);
		if(!(var0004 != 0xFE9C)) goto labelFunc0851_009B;
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Then thou canst not stay at the inn. In these hard times, I cannot afford to keep thee and thy companions for free.\"");
		UcSay;
		goto labelFunc0851_009F;
	labelFunc0851_009B:
		UcMessage("\"Thou hast not enough guilders for my rooms.\"");
		UcSay;
	labelFunc0851_009F:
		goto labelFunc0851_00A6;
	labelFunc0851_00A2:
		UcMessage("\"Another time...\"");
		UcSay;
	labelFunc0851_00A6:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0854 0x854 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0852 0x852 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "jerky", "fish", "sausage", "roast lamb", "honey cake"];
	var0003 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x000F, 0x000D, 0x0007, 0x000E, 0x0006];
	var0005 = [0x0000, 0x0014, 0x0016, 0x0019, 0x0023, 0x000A];
	var0006 = [0x0000, 0x000C, 0x000D, 0x000A, 0x0013, 0x0006];
	var0007 = 0x03B8;
	var0008 = [0x0000, 0x0002, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc0852_00CC;
	var000A = "Milady";
	goto labelFunc0852_00D2;
	labelFunc0852_00CC:
		var000A = "Milord";
	labelFunc0852_00D2:
		UcMessage("\"What art thou hungry for, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0852_00DC:
		if(!var0001) goto labelFunc0852_035C;
		var000B = Func0957(var0002);
		if(!(var000B == 0x0001)) goto labelFunc0852_0100;
		UcMessage("\"Thou dost not know what thou art missing...\"");
		UcSay;
		var0001 = false;
		goto labelFunc0852_0359;
	labelFunc0852_0100:
		var000C = var0005[var000B];
		var000D = 0x0000;
		var000E = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000E == 0x0001)) goto labelFunc0852_012C;
		var000F = "Wilt thou have some?";
	labelFunc0852_012C:
		if(!(var000E == 0x0002)) goto labelFunc0852_013C;
		var000F = "Will this be fine with thee?";
	labelFunc0852_013C:
		if(!(var000E == 0x0003)) goto labelFunc0852_014C;
		var000F = "Dost thou find the price agreeable?";
	labelFunc0852_014C:
		if(!(var000E == 0x0004)) goto labelFunc0852_0160;
		var000F = (var000A + ", dost thou agree?");
	labelFunc0852_0160:
		if(!(var000E == 0x0005)) goto labelFunc0852_0174;
		var000F = (var000A + ", is the price acceptable?");
	labelFunc0852_0174:
		if(!(var000B == 0x0002)) goto labelFunc0852_0198;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" guilders will buy thee two strips of jerky.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "strips of jerky, in bunches of two,";
	labelFunc0852_0198:
		if(!(var000B == 0x0003)) goto labelFunc0852_01C0;
		UcMessage("\"Most people in Moonshade think that my fish is excellent. But have a care! When last I prepared a meal of fish it was stolen away by Mosh, the rat catcher! So I daresay she enjoys it greatly.\"");
		UcSay;
		UcMessage("\"The dinner costs ");
		UcMessage(var000C);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "fish dinners";
	labelFunc0852_01C0:
		if(!(var000B == 0x0004)) goto labelFunc0852_01E4;
		UcMessage("\"My sausage is very good. ");
		UcMessage(var000C);
		UcMessage(" guilders is my price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "sausages";
	labelFunc0852_01E4:
		if(!(var000B == 0x0005)) goto labelFunc0852_0208;
		UcMessage("\"I believe thou wilt find the taste to thy liking. I charge ");
		UcMessage(var000C);
		UcMessage(" guilders for my lamb roast.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "lamb roasts";
	labelFunc0852_0208:
		if(!(var000B == 0x0006)) goto labelFunc0852_0232;
		UcMessage("\"If thou dost crave something sweet, ");
		UcMessage(var0000);
		UcMessage(", thou shouldst try mine honey cake. ");
		UcMessage(var000C);
		UcMessage(" guilders will buy thee a treat.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "honey cakes";
	labelFunc0852_0232:
		if(!(var000C == var0006[var000B])) goto labelFunc0852_0257;
		if(!Func0955()) goto labelFunc0852_024E;
		var0011 = var000C;
		goto labelFunc0852_0254;
	labelFunc0852_024E:
		var0011 = 0x0000;
	labelFunc0852_0254:
		goto labelFunc0852_0269;
	labelFunc0852_0257:
		var0011 = Func0854(var0005[var000B], var0006[var000B]);
	labelFunc0852_0269:
		if(!(var0011 > 0x0000)) goto labelFunc0852_02D7;
		if(!(var0009[var000B] == 0x0001)) goto labelFunc0852_02B2;
		UcMessage("\"How many ");
		UcMessage(var0010);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0003[var000B], var0004[var000B], var0008[var000B], var0007, var0011, 0x0014, 0x0001, false);
		goto labelFunc0852_02D7;
	labelFunc0852_02B2:
		var000D = Func0943(var0003[var000B], var0004[var000B], var0008[var000B], var0007, var0011, 0x0000, 0x0001, false);
	labelFunc0852_02D7:
		if(!(var000D == 0x0001)) goto labelFunc0852_02EE;
		UcMessage("\"Enjoy thy meal, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0852_034F;
	labelFunc0852_02EE:
		if(!(var000D == 0x0002)) goto labelFunc0852_0305;
		UcMessage("\"Thou canst not carry so much food, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0852_034F;
	labelFunc0852_0305:
		if(!(var000D == 0x0003)) goto labelFunc0852_034F;
		var0012 = Func0992(0x0001, (("@But " + var0000) + ", we have not the guilders to pay for this.@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc0852_0348;
		UI_show_npc_face0_05(0xFFE4, 0x0000);
		UcMessage("\"I am sorry, but Rocco cannot afford to feed thee for free, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0852_034C;
	labelFunc0852_0348:
		UcMessage("\"Thou dost not have enough money for that...\"");
		UcSay;
	labelFunc0852_034C:
		goto labelFunc0852_034F;
	labelFunc0852_034F:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0852_0359:
		goto labelFunc0852_00DC;
	labelFunc0852_035C:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0854 0x854 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0853 0x853 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "wine", "mead", "ale"];
	var0004 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0005 = [0xFE99, 0x0000, 0x0005, 0x0003];
	var0006 = [0x0000, 0x000F, 0x0014, 0x0007];
	var0007 = [0x0000, 0x0008, 0x000B, 0x0004];
	var0008 = 0x03B8;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"What dost thou want to drink, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc0853_00A2:
		if(!var0002) goto labelFunc0853_0245;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc0853_00C6;
		UcMessage("\"If thou dost change thy mind, ask me again!\"");
		UcSay;
		var0002 = false;
		goto labelFunc0853_0242;
	labelFunc0853_00C6:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc0853_00EF;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" guilders is what Rocco charges for wine, though it is very good. Dost thou accept?\"");
		UcSay;
		var000E = "wine bottles";
	labelFunc0853_00EF:
		if(!(var000B == 0x0003)) goto labelFunc0853_010D;
		UcMessage("\"The mead Rocco imports is sweetly flavored with the honey of bees raised in the mountain highlands.\"");
		UcSay;
		UcMessage("\"For the price of ");
		UcMessage(var000C);
		UcMessage(" guilders, thou wilt accept some?\"");
		UcSay;
		var000E = "bottles of mead";
	labelFunc0853_010D:
		if(!(var000B == 0x0004)) goto labelFunc0853_0127;
		UcMessage("\"Our ale is weak, as it is imported from the mainland, but Rocco must still charge ");
		UcMessage(var000C);
		UcMessage(" guilders for it. Dost thou find the price acceptable?\"");
		UcSay;
		var000E = "flasks of ale";
	labelFunc0853_0127:
		if(!(var000C == var0007[var000B])) goto labelFunc0853_014C;
		if(!Func0955()) goto labelFunc0853_0143;
		var000F = var000C;
		goto labelFunc0853_0149;
	labelFunc0853_0143:
		var000F = 0x0000;
	labelFunc0853_0149:
		goto labelFunc0853_015E;
	labelFunc0853_014C:
		var000F = Func0854(var0006[var000B], var0007[var000B]);
	labelFunc0853_015E:
		if(!(var000F > 0x0000)) goto labelFunc0853_01CC;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc0853_01A7;
		UcMessage("\"How many ");
		UcMessage(var000E);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0014, 0x0001, false);
		goto labelFunc0853_01CC;
	labelFunc0853_01A7:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0000, 0x0001, false);
	labelFunc0853_01CC:
		if(!(var000D == 0x0001)) goto labelFunc0853_01E3;
		UcMessage("\"Enjoy thy drink, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0853_0238;
	labelFunc0853_01E3:
		if(!(var000D == 0x0002)) goto labelFunc0853_01F4;
		UcMessage("\"Thou canst not carry thy drink!\"");
		UcSay;
		goto labelFunc0853_0238;
	labelFunc0853_01F4:
		if(!(var000D == 0x0003)) goto labelFunc0853_0238;
		var0010 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0010 != 0xFE9C)) goto labelFunc0853_0231;
		UI_show_npc_face0_05(0xFFE4, 0x0000);
		UcMessage("\"Then thy thirst must be quenched by well water, I'm afraid.\"");
		UcSay;
		goto labelFunc0853_0235;
	labelFunc0853_0231:
		UcMessage("\"It seems thou dost not have the funds to pay me... Hast thou considered drinking from the public well?\"");
		UcSay;
	labelFunc0853_0235:
		goto labelFunc0853_0238;
	labelFunc0853_0238:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0853_0242:
		goto labelFunc0853_00A2;
	labelFunc0853_0245:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();
extern var Func0942 0x942 (var var0000);

var Func0854 0x854 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = 0x0005;
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	labelFunc0854_003F:
		if(!var0008) goto labelFunc0854_03C8;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc0854_0068;
		rr = 0x0000;
		goto labelFunc0854_007B;
	labelFunc0854_0068:
		if(!(var000B == "yes")) goto labelFunc0854_007B;
		var000C = 0x0000;
		goto labelFunc0854_00CA;
	labelFunc0854_007B:
		var000D = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0004;
		var0004 = var000D[0x0002];
		var0005 = var000D[0x0001];
	labelFunc0854_00CA:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc0854_0228;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0854_0127;
		if(!(var000F == 0x0001)) goto labelFunc0854_0102;
		UcMessage("\"Rocco would have me scrapped for lowering my prices like this. Please do not tell him...\"");
		UcSay;
	labelFunc0854_0102:
		if(!(var000F == 0x0002)) goto labelFunc0854_0116;
		UcMessage("\"Thou art most forceful, ");
		UcMessage(var0002);
		UcMessage("! We will not be in business long at this rate!\"");
		UcSay;
	labelFunc0854_0116:
		if(!(var000F == 0x0003)) goto labelFunc0854_0124;
		UcMessage("\"Rocco would never have been out-bargained so!\"");
		UcSay;
	labelFunc0854_0124:
		goto labelFunc0854_01DD;
	labelFunc0854_0127:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0854_016A;
		if(!(var000F == 0x0001)) goto labelFunc0854_014B;
		UcMessage("\"The Blue Boar doth have the finest prices, eh?\"");
		UcSay;
	labelFunc0854_014B:
		if(!(var000F == 0x0002)) goto labelFunc0854_0159;
		UcMessage("\"Today hath gone well, so I will be generous. On another day thou mayest not be so lucky!\"");
		UcSay;
	labelFunc0854_0159:
		if(!(var000F == 0x0003)) goto labelFunc0854_0167;
		UcMessage("\"Perhaps it is a human trait... To bargain so well.\"");
		UcSay;
	labelFunc0854_0167:
		goto labelFunc0854_01DD;
	labelFunc0854_016A:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0854_01AD;
		if(!(var000F == 0x0001)) goto labelFunc0854_018E;
		UcMessage("\"Even Rocco would consider this a fair deal...\"");
		UcSay;
	labelFunc0854_018E:
		if(!(var000F == 0x0002)) goto labelFunc0854_019C;
		UcMessage("\"We shall not profit this way...\"");
		UcSay;
	labelFunc0854_019C:
		if(!(var000F == 0x0003)) goto labelFunc0854_01AA;
		UcMessage("\"Good service and fair prices is what hath made the Blue Boar famous!\"");
		UcSay;
	labelFunc0854_01AA:
		goto labelFunc0854_01DD;
	labelFunc0854_01AD:
		if(!(var000F == 0x0001)) goto labelFunc0854_01C1;
		UcMessage("\"I am pleased, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0854_01C1:
		if(!(var000F == 0x0002)) goto labelFunc0854_01CF;
		UcMessage("\"Thou art a fine person!\"");
		UcSay;
	labelFunc0854_01CF:
		if(!(var000F == 0x0003)) goto labelFunc0854_01DD;
		UcMessage("\"If times were not so bad, our prices would be far lower...\"");
		UcSay;
	labelFunc0854_01DD:
		UcMessage("\"Dost thou agree to ");
		UcMessage(var0004);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0854_01FA;
		rr = var0004;
		goto labelFunc0854_0228;
	labelFunc0854_01FA:
		if(!(var000F == 0x0001)) goto labelFunc0854_0208;
		UcMessage("\"I thought thou didst agree to that price!\"");
		UcSay;
	labelFunc0854_0208:
		if(!(var000F == 0x0002)) goto labelFunc0854_0216;
		UcMessage("\"Take thy slick ways elsewhere then! I have more important things to do!\"");
		UcSay;
	labelFunc0854_0216:
		if(!(var000F == 0x0003)) goto labelFunc0854_0224;
		UcMessage("\"Be gone... Before I fetch Rocco to break thy thick head for thee!\"");
		UcSay;
	labelFunc0854_0224:
		rr = 0x0000;
	labelFunc0854_0228:
		if(!(var0007 == 0x0001)) goto labelFunc0854_0266;
		if(!(var000C == 0x0005)) goto labelFunc0854_0259;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" is my final offer. Dost thou accept?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0854_0250;
		rr = var0004;
	labelFunc0854_0250:
		var0008 = 0x0000;
		goto labelFunc0854_0263;
	labelFunc0854_0259:
		UcMessage("\"Fine... ");
		UcMessage(var0004);
		UcMessage(" guilders is my final offer.\"");
		UcSay;
	labelFunc0854_0263:
		goto labelFunc0854_03C5;
	labelFunc0854_0266:
		if(!(var000C == 0x0002)) goto labelFunc0854_02AC;
		if(!(var000F == 0x0001)) goto labelFunc0854_0284;
		UcMessage("\"It is so interesting bargaining with thee. How doth ");
		UcMessage(var0004);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0854_0284:
		if(!(var000F == 0x0002)) goto labelFunc0854_0298;
		UcMessage("\"Thou art a gem among customers. Have we agreed on ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0854_0298:
		if(!(var000F == 0x0003)) goto labelFunc0854_02AC;
		UcMessage("\"I offer thee a price of ");
		UcMessage(var0004);
		UcMessage(" guilders -- a special deal for those I consider good customers. Dost thou accept?\"");
		UcSay;
	labelFunc0854_02AC:
		if(!(var000C == 0x0003)) goto labelFunc0854_02F2;
		if(!(var000F == 0x0001)) goto labelFunc0854_02CA;
		UcMessage("\"We have so little in stock... Perhaps ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0854_02CA:
		if(!(var000F == 0x0002)) goto labelFunc0854_02DE;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage("? I should charge more, though...\"");
		UcSay;
	labelFunc0854_02DE:
		if(!(var000F == 0x0003)) goto labelFunc0854_02F2;
		UcMessage("\"I must consider what Rocco will say. Perhaps ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0854_02F2:
		if(!(var000C == 0x0004)) goto labelFunc0854_0338;
		if(!(var000F == 0x0001)) goto labelFunc0854_0310;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is as low as I can go. Wilt thou agree?\"");
		UcSay;
	labelFunc0854_0310:
		if(!(var000F == 0x0002)) goto labelFunc0854_0324;
		UcMessage("\"Surely thou canst see that I can go no lower than ");
		UcMessage(var0004);
		UcMessage(" guilders. We must pay for the upkeep on the inn.\"");
		UcSay;
	labelFunc0854_0324:
		if(!(var000F == 0x0003)) goto labelFunc0854_0338;
		UcMessage("\"I may be an automaton, but I am no fool! I will accept no less than ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0854_0338:
		if(!(var000C == 0x0005)) goto labelFunc0854_03C5;
		var0004 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc0854_035C;
		UcMessage("\"I would rather Rocco sell me for scrap! My previous price stands, at ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0854_035C:
		if(!(var000F == 0x0002)) goto labelFunc0854_0370;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders! I shall not be tricked into accepting less!\"");
		UcSay;
	labelFunc0854_0370:
		if(!(var000F == 0x0003)) goto labelFunc0854_03C5;
		UcMessage("\"Thou must think me witless!\"");
		UcSay;
		if(!Func0942(0xFFE2)) goto labelFunc0854_03BB;
		var0010 = "his";
		if(!var0003) goto labelFunc0854_0399;
		var0010 = "her";
	labelFunc0854_0399:
		UI_show_npc_face1_06(0xFFE2, 0x0000);
		UcMessage("\"If this person is bothering thee, Petra, I shall be happy to soften ");
		UcMessage(var0010);
		UcMessage(" skull for thee.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFE4, 0x0000);
	labelFunc0854_03BB:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is where I stand.\"");
		UcSay;
	labelFunc0854_03C5:
		goto labelFunc0854_003F;
	labelFunc0854_03C8:
		return rr;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0920 0x920 ();

Func0855 0x855 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0001 = UI_find_nearby_41(item, 0x03B5, 0x0014, 0x0000);
	if(!(var0000 == 0x0009)) goto labelFunc0855_004A;
	Func097F(item, "@Stand back...@", 0x0000);
	if(!var0001) goto labelFunc0855_004A;
	var0002 = [0x0465, 0x099C, 0x0000];
	UI_si_path_run_usecode_C1(item, var0002, 0x000A, item, 0x00E4, true);
	labelFunc0855_004A:
		if(!(var0000 == 0x000A)) goto labelFunc0855_00D7;
		var0003 = (UI_find_nearby_avatar_3C(0x010F) & UI_find_nearby_avatar_3C(0x0110));
		var0004 = false;
		enum();
	labelFunc0855_006B:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc0855_009F);
		var0008 = Func0920();
		var0008 = UI_execute_usecode_array_01(var0001, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0006]);
		var0004 = true;
		goto labelFunc0855_006B;
	labelFunc0855_009F:
		var0008 = UI_execute_usecode_array_01(item, [0x59, 0x0006, 0x01, 0x6C, 0x61, 0x0B, Shamino, 0x0004]);
		var0008 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x55, 0x00E4, 0x0000], 0x0014);
	labelFunc0855_00D7:
		if(!(var0000 == 0x0002)) goto labelFunc0855_0156;
		Func097F(item, "@Oooh, my back...@", 0x000C);
		var0009 = UI_find_nearby_41(item, 0x010F, 0x0014, 0x0000);
		if(!var0009) goto labelFunc0855_0156;
		if(!UI_npc_nearby_3A(var0009)) goto labelFunc0855_0129;
		var0008 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x00E4, 0x0000], 0x0014);
		goto labelFunc0855_0156;
	labelFunc0855_0129:
		var000A = UI_get_object_position_20(var0009);
		var0008 = UI_set_last_created_2E(var0009);
		if(!var0008) goto labelFunc0855_0156;
		var000A[0x0003] = 0x0000;
		var0008 = UI_update_last_created_2F(var000A);
	labelFunc0855_0156:
		var0009 = UI_find_nearby_41(item, 0x010F, 0x0014, 0x0000);
		enum();
	labelFunc0855_0168:
		for (var0008 in var0009 with var000B to var000C atend labelFunc0855_01A5);
		var000A = UI_get_object_position_20(var0009);
		if(!((var000A[0x0001] == 0x0469) && (var000A[0x0002] == 0x0998))) goto labelFunc0855_01A2;
		var0008 = UI_set_item_quality_1D(var0009, 0x004B);
	labelFunc0855_01A2:
		goto labelFunc0855_0168;
	labelFunc0855_01A5:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0856 0x856 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	Func097F(item, "@Attack him!@", 0x0000);
	if(!(UI_part_of_day_48() < 0x0002)) goto labelFunc0856_001E;
	var0000 = 0x0003;
	goto labelFunc0856_0024;
	labelFunc0856_001E:
		var0000 = 0x0006;
	labelFunc0856_0024:
		if(!(var0000 > 0x0000)) goto labelFunc0856_00DD;
		var0001 = UI_create_new_object2_2D(0x02B3, [0x0000, 0x0000, 0x0000]);
		if(!var0001) goto labelFunc0856_00D0;
		UI_set_schedule_type_25(var0001, 0x0000);
		UI_set_alignment_4A(var0001, 0x0002);
		UI_set_opponent_5B(0xFE9C, var0001);
		var0002 = UI_approach_avatar_BF(var0001, 0x0050, 0x0028);
		var0003 = UI_get_random_00(0x0006);
		if(!(var0003 == 0x0001)) goto labelFunc0856_009C;
		Func097F(var0001, "@Lor glak!@", UI_get_random_00(0x0014));
	labelFunc0856_009C:
		if(!(var0003 == 0x0002)) goto labelFunc0856_00B6;
		Func097F(var0001, "@Ska ska krak!@", UI_get_random_00(0x0014));
	labelFunc0856_00B6:
		if(!(var0003 == 0x0003)) goto labelFunc0856_00D0;
		Func097F(var0001, "@Grik!@", UI_get_random_00(0x0014));
	labelFunc0856_00D0:
		var0000 = (var0000 - 0x0001);
		goto labelFunc0856_0024;
	labelFunc0856_00DD:
		var0002 = UI_set_npc_prop_29(item, 0x0003, 0x001B);
		abrt();
		return;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0857 0x857 ()
{
	var var0000;
	var var0001;
	var var0002;

	var0000 = UI_count_objects_31(0xFE9B, 0x034A, 0xFE99, 0x000F);
	if(!(var0000 > 0x0001)) goto labelFunc0857_00B0;
	UcMessage("\"Thou dost have more than one! How many art thou willing to sell?\"");
	UcSay;
	var0001 = UI_input_numeric_value_13(0x0000, var0000, 0x0001, 0x0000);
	if(!(var0001 != 0x0000)) goto labelFunc0857_00A9;
	var0000 = UI_remove_party_items_34(var0001, 0x034A, 0xFE99, 0x000F, 0x0000);
	var0002 = (0x0078 * var0001);
	var0000 = Func099B(0xFE9C, var0002, 0x03B8, 0xFE99, 0xFE99, 0x0000, true);
	if(!(var0001 == 0x0001)) goto labelFunc0857_0092;
	UcMessage("\"I will take thy Stoneheart and give thee ");
	UcMessage(var0002);
	UcMessage(" guilders for it...\"");
	UcSay;
	UcMessage("\"There. 'Tis done!\"");
	UcSay;
	goto labelFunc0857_00A6;
	labelFunc0857_0092:
		UcMessage("\"I will take thy ");
		UcMessage(var0001);
		UcMessage(" Stonehearts and give thee ");
		UcMessage(var0002);
		UcMessage(" guilders for them...\"");
		UcSay;
		UcMessage("\"There. 'Tis done!\"");
		UcSay;
	labelFunc0857_00A6:
		goto labelFunc0857_00AD;
	labelFunc0857_00A9:
		UcMessage("\"But thou said thou wouldst sell the Stoneheart!\"");
		UcSay;
	labelFunc0857_00AD:
		goto labelFunc0857_00E3;
	labelFunc0857_00B0:
		UcMessage("\"There. 'Tis done!\"");
		UcSay;
		var0000 = UI_remove_party_items_34(0x0001, 0x034A, 0xFE99, 0x000F, 0x0000);
		var0000 = Func099B(0xFE9C, 0x0078, 0x03B8, 0xFE99, 0xFE99, 0x0000, true);
	labelFunc0857_00E3:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func085B 0x85B (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0858 0x858 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "sleeping", "healing", "light", "curing", "awakening", "protection", "invisibility"];
	var0003 = [0x0000, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154];
	var0004 = [0xFE99, 0x0000, 0x0001, 0x0006, 0x0002, 0x0004, 0x0005, 0x0007];
	var0005 = [0x0000, 0x0055, 0x0064, 0x0032, 0x004B, 0x0041, 0x0096, 0x00F0];
	var0006 = [0x0000, 0x0028, 0x0032, 0x0019, 0x002D, 0x001E, 0x004B, 0x0087];
	var0007 = 0x03B8;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	labelFunc0858_00E6:
		if(!var0001) goto labelFunc0858_0334;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc0858_0110;
		UcMessage("\"Later then, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc0858_0331;
	labelFunc0858_0110:
		var000B = var0005[var000A];
		var000C = 0x0000;
		if(!(var000A == 0x0002)) goto labelFunc0858_013D;
		UcMessage("\"That will be ");
		UcMessage(var000B);
		UcMessage(" guilders. If thou dost sleep poorly, this is the perfect solution, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Wilt thou accept?\"");
		UcSay;
	labelFunc0858_013D:
		if(!(var000A == 0x0003)) goto labelFunc0858_0155;
		UcMessage("\"I sell mine healing potions for ");
		UcMessage(var000B);
		UcMessage(" guilders each.\"");
		UcSay;
		UcMessage("\"How doth that sound?\"");
		UcSay;
	labelFunc0858_0155:
		if(!(var000A == 0x0004)) goto labelFunc0858_016D;
		UcMessage("\"I will sell a potion of illumination to thee for the fair price of ");
		UcMessage(var000B);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Dost thou agree?\"");
		UcSay;
	labelFunc0858_016D:
		if(!(var000A == 0x0005)) goto labelFunc0858_018B;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" guilders is a small price to pay if thou art in need of removing poisons from thy body, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Is the price acceptable?\"");
		UcSay;
	labelFunc0858_018B:
		if(!(var000A == 0x0006)) goto labelFunc0858_01A9;
		UcMessage("\"This potion, of course, will awaken anyone... or anything... from the deepest slumber. ");
		UcMessage(var000B);
		UcMessage(" guilders is the price.\"");
		UcSay;
		UcMessage("\"Is the price acceptable to thee, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0858_01A9:
		if(!(var000A == 0x0007)) goto labelFunc0858_01CD;
		UcMessage("\"I can sell this to thee for ");
		UcMessage(var000B);
		UcMessage(" guilders. The efficacy of this potion is guaranteed, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		UcMessage("\"Dost thou agree, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0858_01CD:
		if(!(var000A == 0x0008)) goto labelFunc0858_01EB;
		UcMessage("\"Needless to say, this is a very useful potion, ");
		UcMessage(var0000);
		UcMessage(". ");
		UcMessage(var000B);
		UcMessage(" guilders is an excellent price, if I do say so myself.\"");
		UcSay;
		UcMessage("\"What dost thou say?\"");
		UcSay;
	labelFunc0858_01EB:
		if(!(var000B == var0006[var000A])) goto labelFunc0858_0210;
		if(!Func0955()) goto labelFunc0858_0207;
		var000D = var000B;
		goto labelFunc0858_020D;
	labelFunc0858_0207:
		var000D = 0x0000;
	labelFunc0858_020D:
		goto labelFunc0858_0222;
	labelFunc0858_0210:
		var000D = Func085B(var0005[var000A], var0006[var000A]);
	labelFunc0858_0222:
		if(!(var000D > 0x0000)) goto labelFunc0858_0284;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc0858_0262;
		UcMessage("\"How many wouldst thou like?\"");
		UcSay;
		var000C = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var000D, 0x000A, 0x0001, false);
		goto labelFunc0858_0284;
	labelFunc0858_0262:
		var000C = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var000D, 0x0000, 0x0001, false);
	labelFunc0858_0284:
		if(!(var000C == 0x0001)) goto labelFunc0858_029B;
		UcMessage("\"Good luck with thy purchase, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0858_0327;
	labelFunc0858_029B:
		if(!(var000C == 0x0002)) goto labelFunc0858_02B2;
		UcMessage("\"Thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0858_0327;
	labelFunc0858_02B2:
		if(!(var000C == 0x0003)) goto labelFunc0858_0327;
		var000A = Func0992(0x0001, (("@But " + var0000) + ", we have not the guilders to purchase this.@"), 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc0858_02EF;
		UI_show_npc_face0_05(0xFFE3, 0x0000);
		UcMessage("\"I do not give my merchandise away!\"");
		UcSay;
		goto labelFunc0858_02F3;
	labelFunc0858_02EF:
		UcMessage("\"I am sorry, but thou dost not have enough guilders to purchase this!\"");
		UcSay;
	labelFunc0858_02F3:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE3) + 0x0006))) goto labelFunc0858_0312;
		UI_set_npc_id_BD(0xFFE3, 0x001F);
		goto labelFunc0858_0324;
	labelFunc0858_0312:
		UI_set_npc_id_BD(0xFFE3, (UI_get_npc_id_BC(0xFFE3) + 0x0006));
	labelFunc0858_0324:
		goto labelFunc0858_0327;
	labelFunc0858_0327:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0858_0331:
		goto labelFunc0858_00E6;
	labelFunc0858_0334:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func085B 0x85B (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0859 0x859 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "black pearls", "mandrake", "garlic", "spider silk", "ash", "worm heart"];
	var0003 = [0x0000, 0x034A, 0x034A, 0x034A, 0x034A, 0x034A, 0x034A];
	var0004 = [0xFE99, 0x0000, 0x0003, 0x0004, 0x0006, 0x0007, 0x000A];
	var0005 = [0x0000, 0x0032, 0x004B, 0x0008, 0x0023, 0x0024, 0x0064];
	var0006 = [0x0000, 0x0019, 0x002D, 0x0005, 0x0013, 0x0014, 0x003C];
	var0007 = 0x03B8;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	labelFunc0859_00D1:
		if(!var0001) goto labelFunc0859_02FB;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc0859_00FB;
		UcMessage("\"As thou dost wish, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc0859_02F8;
	labelFunc0859_00FB:
		var000B = var0005[var000A];
		var000C = 0x0000;
		if(!(var000A == 0x0002)) goto labelFunc0859_0122;
		UcMessage("\"My black pearls are sought after from across Serpent Isle for their potency. Surely ");
		UcMessage(var000B);
		UcMessage(" guilders is an equitable price?\"");
		UcSay;
		UcMessage("\"Dost thou accept?\"");
		UcSay;
	labelFunc0859_0122:
		if(!(var000A == 0x0003)) goto labelFunc0859_013A;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" guilders each for a mandrake root, which is a most excellent reagent for powerful spells.\"");
		UcSay;
		UcMessage("\"Dost thou find this price acceptable?\"");
		UcSay;
	labelFunc0859_013A:
		if(!(var000A == 0x0004)) goto labelFunc0859_0152;
		UcMessage("\"For the fair price of ");
		UcMessage(var000B);
		UcMessage(" guilders, I can sell thee garlic that is most efficacious for spellcasting.\"");
		UcSay;
		UcMessage("\"Dost thou agree?\"");
		UcSay;
	labelFunc0859_0152:
		if(!(var000A == 0x0005)) goto labelFunc0859_0170;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" guilders for the finest spun silk thou canst find, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"Is the price acceptable?\"");
		UcSay;
	labelFunc0859_0170:
		if(!(var000A == 0x0006)) goto labelFunc0859_0188;
		UcMessage("\"I went to great lengths to acquire the ash from Furnace itself! ");
		UcMessage(var000B);
		UcMessage(" guilders is the asking price.\"");
		UcSay;
		UcMessage("\"Wilt thou accept this price?\"");
		UcSay;
	labelFunc0859_0188:
		if(!(var000A == 0x0007)) goto labelFunc0859_01AC;
		UcMessage("\"Ah, these worm hearts are most precious, ");
		UcMessage(var0000);
		UcMessage(", and needless to say, they are very difficult to procure! I am asking ");
		UcMessage(var000B);
		UcMessage(" guilders each for these fine jewels.\"");
		UcSay;
		UcMessage("\"What dost thou think, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc0859_01AC:
		if(!(var000B == var0006[var000A])) goto labelFunc0859_01D1;
		if(!Func0955()) goto labelFunc0859_01C8;
		var000D = var000B;
		goto labelFunc0859_01CE;
	labelFunc0859_01C8:
		var000D = 0x0000;
	labelFunc0859_01CE:
		goto labelFunc0859_01E3;
	labelFunc0859_01D1:
		var000D = Func085B(var0005[var000A], var0006[var000A]);
	labelFunc0859_01E3:
		if(!(var000D > 0x0000)) goto labelFunc0859_0245;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc0859_0223;
		UcMessage("\"How many wouldst thou like?\"");
		UcSay;
		var000C = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var000D, 0x0014, 0x0001, false);
		goto labelFunc0859_0245;
	labelFunc0859_0223:
		var000C = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var000D, 0x0000, 0x0001, false);
	labelFunc0859_0245:
		if(!(var000C == 0x0001)) goto labelFunc0859_025C;
		UcMessage("\"Best of luck with thy purchase, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0859_02EE;
	labelFunc0859_025C:
		if(!(var000C == 0x0002)) goto labelFunc0859_0273;
		UcMessage("\"I believe that thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0859_02EE;
	labelFunc0859_0273:
		if(!(var000C == 0x0003)) goto labelFunc0859_02EE;
		var000A = Func0992(0x0001, (("@But " + var0000) + ", we have not the guilders to purchase this.@"), 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc0859_02B6;
		UI_show_npc_face0_05(0xFFE3, 0x0000);
		UcMessage("\"Ah... it dost appear that thy purse is empty, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc0859_02BA;
	labelFunc0859_02B6:
		UcMessage("\"I do not give my merchandise away! Thou dost not have the guilders to purchase this!\"");
		UcSay;
	labelFunc0859_02BA:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE3) + 0x0006))) goto labelFunc0859_02D9;
		UI_set_npc_id_BD(0xFFE3, 0x001F);
		goto labelFunc0859_02EB;
	labelFunc0859_02D9:
		UI_set_npc_id_BD(0xFFE3, (UI_get_npc_id_BC(0xFFE3) + 0x0006));
	labelFunc0859_02EB:
		goto labelFunc0859_02EE;
	labelFunc0859_02EE:
		UcMessage("\"Dost thou desire another purchase?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc0859_02F8:
		goto labelFunc0859_00D1;
	labelFunc0859_02FB:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func085B 0x85B (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func085A 0x85A ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "Magic Leggings", "Magic Boots", "Magic Axe", "Sword of Defense", "Magic Bolts", "Glass Sword"];
	var0003 = [0x0000, 0x02AE, 0x024B, 0x0228, 0x0237, 0x01A1, 0x025C];
	var0004 = [0xFE99, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000];
	var0005 = [0x0000, 0x0226, 0x0064, 0x0258, 0x04B0, 0x00C8, 0x05DC];
	var0006 = [0x0000, 0x0226, 0x0064, 0x0258, 0x04B0, 0x00C8, 0x05DC];
	var0007 = 0x03B8;
	var0008 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x000A, 0x0001];
	var0009 = [0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000];
	labelFunc085A_00D1:
		if(!var0001) goto labelFunc085A_02FC;
		var000A = Func0957(var0002);
		if(!(var000A == 0x0001)) goto labelFunc085A_00FB;
		UcMessage("\"Drop by again, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0001 = false;
		goto labelFunc085A_02F9;
	labelFunc085A_00FB:
		var000B = var0005[var000A];
		var000C = 0x0000;
		if(!(var000A == 0x0002)) goto labelFunc085A_0122;
		UcMessage("\"Well, for a warrior such as thou art, I suppose that magic leggings will prove useful. I will sell a pair to thee for ");
		UcMessage(var000B);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Wilt thou buy?\"");
		UcSay;
	labelFunc085A_0122:
		if(!(var000A == 0x0003)) goto labelFunc085A_013A;
		UcMessage("\"Hmmm... a pair of magic boots will protect thee quite well. I offer a pair for ");
		UcMessage(var000B);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Wilt thou take it?\"");
		UcSay;
	labelFunc085A_013A:
		if(!(var000A == 0x0004)) goto labelFunc085A_0152;
		UcMessage("\"I do not recall who enchanted my magic axes, but let me assure thee, they are well constructed! I can sell thee one for ");
		UcMessage(var000B);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Dost thou agree?\"");
		UcSay;
	labelFunc085A_0152:
		if(!(var000A == 0x0005)) goto labelFunc085A_016A;
		UcMessage("\"Ah, thou hast chosen what I consider to be the ultimate weapon for a warrior born! The Sword of Defense will protect thee just as well as plate armour, but without the encumbrance and weight. I can sell thee one for ");
		UcMessage(var000B);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"Dost thou accept the price?\"");
		UcSay;
	labelFunc085A_016A:
		if(!(var000A == 0x0006)) goto labelFunc085A_0188;
		UcMessage("\"For the low cost of ");
		UcMessage(var000B);
		UcMessage(" guilders I can sell thee ten magic bolts. They are more accurate and far more deadly than the mundane variety.\"");
		UcSay;
		UcMessage("\"Is the price acceptable?\"");
		UcSay;
		var000D = "magic bolts, in bundles of ten,";
	labelFunc085A_0188:
		if(!(var000A == 0x0007)) goto labelFunc085A_01A0;
		UcMessage("\"Some say that the Glass Sword is the deadliest weapon one can aspire to wield. I do not know for certain, but rest assured that it is most lethal. For ");
		UcMessage(var000B);
		UcMessage(" guilders it is thine.\"");
		UcSay;
		UcMessage("\"Wilt thou agree to this price?\"");
		UcSay;
	labelFunc085A_01A0:
		if(!(var000B == var0006[var000A])) goto labelFunc085A_01CF;
		if(!Func0955()) goto labelFunc085A_01BC;
		var000E = var000B;
		goto labelFunc085A_01CC;
	labelFunc085A_01BC:
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var000E = 0x0000;
	labelFunc085A_01CC:
		goto labelFunc085A_01E1;
	labelFunc085A_01CF:
		var000E = Func085B(var0005[var000A], var0006[var000A]);
	labelFunc085A_01E1:
		if(!(var000E > 0x0000)) goto labelFunc085A_024C;
		if(!(var0009[var000A] == 0x0001)) goto labelFunc085A_022A;
		UcMessage("\"How many ");
		UcMessage(var000D);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000C = Func0943(var0003[var000A], var0004[var000A], var0008[var000A], var0007, var000E, 0x0005, 0x0001, false);
		goto labelFunc085A_024C;
	labelFunc085A_022A:
		var000C = Func0943(var0003[var000A], var0004[var000A], 0x0001, var0007, var000E, 0x0000, 0x0001, false);
	labelFunc085A_024C:
		if(!(var000C == 0x0001)) goto labelFunc085A_0263;
		UcMessage("\"Good luck with thy purchase, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc085A_02EF;
	labelFunc085A_0263:
		if(!(var000C == 0x0002)) goto labelFunc085A_027A;
		UcMessage("\"Thine hands are full, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc085A_02EF;
	labelFunc085A_027A:
		if(!(var000C == 0x0003)) goto labelFunc085A_02EF;
		var000A = Func0992(0x0001, (("@But " + var0000) + ", we have not the guilders to purchase this.@"), 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc085A_02B7;
		UI_show_npc_face0_05(0xFFE3, 0x0000);
		UcMessage("\"I do not give my merchandise away!\"");
		UcSay;
		goto labelFunc085A_02BB;
	labelFunc085A_02B7:
		UcMessage("\"I am sorry, but thou dost not have enough guilders to purchase this!\"");
		UcSay;
	labelFunc085A_02BB:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE3) + 0x0006))) goto labelFunc085A_02DA;
		UI_set_npc_id_BD(0xFFE3, 0x001F);
		goto labelFunc085A_02EC;
	labelFunc085A_02DA:
		UI_set_npc_id_BD(0xFFE3, (UI_get_npc_id_BC(0xFFE3) + 0x0006));
	labelFunc085A_02EC:
		goto labelFunc085A_02EF;
	labelFunc085A_02EF:
		UcMessage("\"Dost thou wish something else?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc085A_02F9:
		goto labelFunc085A_00D1;
	labelFunc085A_02FC:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func085B 0x85B (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var rr;

	var0002 = Func0954();
	var0003 = var0001;
	var0004 = ((var0000 / 0x0003) * 0x0002);
	var0005 = (0x000F - (UI_get_npc_id_BC(0xFFE3) / 0x0002));
	var0006 = 0x0000;
	var0007 = 0x0001;
	var0008 = 0x0000;
	var0009 = 0x0002;
	var000A = UI_get_npc_id_BC(0xFFE3);
	labelFunc085B_004E:
		if(!var0007) goto labelFunc085B_043F;
		var000B = Func0956(["yes", "no", "haggle"]);
		if(!(var000B == "no")) goto labelFunc085B_0077;
		rr = 0x0000;
		goto labelFunc085B_008A;
	labelFunc085B_0077:
		if(!(var000B == "yes")) goto labelFunc085B_008A;
		var000C = 0x0000;
		goto labelFunc085B_00D9;
	labelFunc085B_008A:
		var000D = Func0999(var0003, var0000, var0009, var0004, var0008, var0005, var0006);
		var0008 = (var0008 + 0x0001);
		var0006 = var000D[0x0004];
		var000C = var000D[0x0003];
		var000E = var0003;
		var0003 = var000D[0x0002];
		var0004 = var000D[0x0001];
	labelFunc085B_00D9:
		var000F = UI_get_random_00(0x0003);
		if(!(var000C < 0x0002)) goto labelFunc085B_0290;
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc085B_0130;
		if(!(var000F == 0x0001)) goto labelFunc085B_0111;
		UcMessage("\"I shall never live this down, if thou dost tell anyone...\"");
		UcSay;
	labelFunc085B_0111:
		if(!(var000F == 0x0002)) goto labelFunc085B_011F;
		UcMessage("\"It is rare to find one who trades as well as thee...\"");
		UcSay;
	labelFunc085B_011F:
		if(!(var000F == 0x0003)) goto labelFunc085B_012D;
		UcMessage("\"Would that I had more stock, that I might make a better deal!\"");
		UcSay;
	labelFunc085B_012D:
		goto labelFunc085B_01FE;
	labelFunc085B_0130:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc085B_0173;
		if(!(var000F == 0x0001)) goto labelFunc085B_0154;
		UcMessage("\"I offer only the finest merchandise at the fairest prices!\"");
		UcSay;
	labelFunc085B_0154:
		if(!(var000F == 0x0002)) goto labelFunc085B_0162;
		UcMessage("\"It would do me better to tell everyone that thou hadst stolen this from me!\"");
		UcSay;
	labelFunc085B_0162:
		if(!(var000F == 0x0003)) goto labelFunc085B_0170;
		UcMessage("\"I could almost suspect thee of charming me...\"");
		UcSay;
	labelFunc085B_0170:
		goto labelFunc085B_01FE;
	labelFunc085B_0173:
		if(!(var0003 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc085B_01C8;
		if(!(var000F == 0x0001)) goto labelFunc085B_019D;
		UcMessage("\"I think we have both made a good deal, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc085B_019D:
		if(!(var000F == 0x0002)) goto labelFunc085B_01B1;
		UcMessage("\"Trading with thee is most challenging, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc085B_01B1:
		if(!(var000F == 0x0003)) goto labelFunc085B_01C5;
		UcMessage("\"There are not many others who sell such things, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc085B_01C5:
		goto labelFunc085B_01FE;
	labelFunc085B_01C8:
		if(!(var000F == 0x0001)) goto labelFunc085B_01D6;
		UcMessage("\"Thou art a fine customer... Return any time!\"");
		UcSay;
	labelFunc085B_01D6:
		if(!(var000F == 0x0002)) goto labelFunc085B_01EA;
		UcMessage("\"May fortune favor thee, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc085B_01EA:
		if(!(var000F == 0x0003)) goto labelFunc085B_01FE;
		UcMessage("\"If I had more stock, ");
		UcMessage(var0002);
		UcMessage(", I could offer thee a better price. \"");
		UcSay;
	labelFunc085B_01FE:
		UcMessage("\"Wilt thou agree on a price of ");
		UcMessage(var0003);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc085B_0233;
		if(!(var000A > 0x0001)) goto labelFunc085B_022C;
		UI_set_npc_id_BD(0xFFE3, (var000A - 0x0002));
	labelFunc085B_022C:
		rr = var0003;
		goto labelFunc085B_0290;
	labelFunc085B_0233:
		if(!(var000F == 0x0001)) goto labelFunc085B_0241;
		UcMessage("\"Thou didst agree! I had not thought that thou wouldst go back on thy word!\"");
		UcSay;
	labelFunc085B_0241:
		if(!(var000F == 0x0002)) goto labelFunc085B_024F;
		UcMessage("\"Is this the way the Avatar deals?\"");
		UcSay;
	labelFunc085B_024F:
		if(!(var000F == 0x0003)) goto labelFunc085B_0263;
		UcMessage("\"I shall be sure to let the Council know of thine underhanded dealing, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc085B_0263:
		if(!(0x001F < (var000A + 0x000A))) goto labelFunc085B_027E;
		UI_set_npc_id_BD(0xFFE3, 0x001F);
		goto labelFunc085B_028C;
	labelFunc085B_027E:
		UI_set_npc_id_BD(0xFFE3, (var000A + 0x000A));
	labelFunc085B_028C:
		rr = 0x0000;
	labelFunc085B_0290:
		if(!(var0006 == 0x0001)) goto labelFunc085B_02FE;
		if(!(var000C == 0x0005)) goto labelFunc085B_02D9;
		UcMessage("\"I said that ");
		UcMessage(var0003);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000A < 0x001C)) goto labelFunc085B_02C6;
		UI_set_npc_id_BD(0xFFE3, (var000A + 0x0004));
	labelFunc085B_02C6:
		if(!Func0955()) goto labelFunc085B_02D0;
		rr = var0003;
	labelFunc085B_02D0:
		var0007 = 0x0000;
		goto labelFunc085B_02FB;
	labelFunc085B_02D9:
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" guilders is my final offer. Take it or leave it...\"");
		UcSay;
		if(!(var000A < 0x001E)) goto labelFunc085B_02FB;
		UI_set_npc_id_BD(0xFFE3, (var000A + 0x0002));
	labelFunc085B_02FB:
		goto labelFunc085B_043C;
	labelFunc085B_02FE:
		if(!(var000C == 0x0002)) goto labelFunc085B_0344;
		if(!(var000F == 0x0001)) goto labelFunc085B_031C;
		UcMessage("\"None of the Mages care to bargain as thou dost... How doth ");
		UcMessage(var0003);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc085B_031C:
		if(!(var000F == 0x0002)) goto labelFunc085B_0330;
		UcMessage("\"Thou art a worthy opponent! Wilt thou agree on ");
		UcMessage(var0003);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc085B_0330:
		if(!(var000F == 0x0003)) goto labelFunc085B_0344;
		UcMessage("\"I offer thee ");
		UcMessage(var0003);
		UcMessage(" guilders. Dost thou accept?\"");
		UcSay;
	labelFunc085B_0344:
		if(!(var000C == 0x0003)) goto labelFunc085B_038A;
		if(!(var000F == 0x0001)) goto labelFunc085B_0362;
		UcMessage("\"I have so little to sell now... Perhaps ");
		UcMessage(var0003);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc085B_0362:
		if(!(var000F == 0x0002)) goto labelFunc085B_0376;
		UcMessage("\"Let me think... ");
		UcMessage(var0003);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc085B_0376:
		if(!(var000F == 0x0003)) goto labelFunc085B_038A;
		UcMessage("\"How shall I live! ");
		UcMessage(var0003);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc085B_038A:
		if(!(var000C == 0x0004)) goto labelFunc085B_03D4;
		if(!(var000F == 0x0001)) goto labelFunc085B_03AC;
		UcMessage("\"I cannot possibly accept less than ");
		UcMessage(var0003);
		UcMessage("	guilders!\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc085B_03AC:
		if(!(var000F == 0x0002)) goto labelFunc085B_03C0;
		UcMessage("\"Supply and demand... ");
		UcMessage(var0003);
		UcMessage(" guilders, no less.\"");
		UcSay;
	labelFunc085B_03C0:
		if(!(var000F == 0x0003)) goto labelFunc085B_03D4;
		UcMessage("\"I am not the fool everyone thinks me. I will not accept less than ");
		UcMessage(var0003);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc085B_03D4:
		if(!(var000C == 0x0005)) goto labelFunc085B_043C;
		var0003 = var000E;
		if(!(var000F == 0x0001)) goto labelFunc085B_03F8;
		UcMessage("\"I would rather endure the Mountains of Freedom! ");
		UcMessage(var0003);
		UcMessage(" guilders is what I offer.\"");
		UcSay;
	labelFunc085B_03F8:
		if(!(var000F == 0x0002)) goto labelFunc085B_040C;
		UcMessage("\"I am not a child to be so misled! ");
		UcMessage(var0003);
		UcMessage(" guilders, and no less!\"");
		UcSay;
	labelFunc085B_040C:
		if(!(var000F == 0x0003)) goto labelFunc085B_0424;
		UcMessage("\"If I accepted such a price, I would have to close my shop and begin begging!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" guilders is where I stand.\"");
		UcSay;
	labelFunc085B_0424:
		if(!(var000A < 0x001F)) goto labelFunc085B_043C;
		UI_set_npc_id_BD(0xFFE3, (var000A + 0x0001));
	labelFunc085B_043C:
		goto labelFunc085B_004E;
	labelFunc085B_043F:
		return rr;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func085C 0x85C ()
{
	var var0000;
	var var0001;

	var0000 = UI_find_direction_22(0xFF4B, 0xFE9C);
	var0001 = UI_execute_usecode_array_01(0xFF4B, [0x59, var0000, 0x68, 0x65, 0x66, 0x6F, 0x70, 0x6A, 0x61]);
	var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0000, 0x0001), [0x55, 0x04B5], 0x000A);
	return;
}
Func085D 0x85D (var var0000, var var0001)
{
	var var0002;

	var0002 = UI_get_object_position_20(0xFF4B);
	UI_sprite_effect_68(0x0011, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0015, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_move_object_4B(0xFF4B, [var0001, var0000, 0x0000]);
	UI_set_new_schedules_B6(0xFF4B, 0x0000, 0x0007, [var0001, var0000]);
	UI_run_schedule_B7(0xFF4B);
	return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0860 0x860 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func085E 0x85E ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = Func0954();
	UI_push_answers_0E();
	var0001 = true;
	var0002 = ["nothing", "jerky", "fish", "sausage", "roast lamb", "honey cake"];
	var0003 = [0x0000, 0x0179, 0x0179, 0x0179, 0x0179, 0x0179];
	var0004 = [0xFE99, 0x000F, 0x000D, 0x0007, 0x000E, 0x0006];
	var0005 = [0x0000, 0x0014, 0x0016, 0x0019, 0x0023, 0x000A];
	var0006 = [0x0000, 0x000C, 0x000D, 0x000A, 0x0013, 0x0006];
	var0007 = 0x03B8;
	var0008 = [0x0000, 0x0002, 0x0001, 0x0001, 0x0001, 0x0001];
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc085E_00CC;
	var000A = "Milady";
	goto labelFunc085E_00D2;
	labelFunc085E_00CC:
		var000A = "Milord";
	labelFunc085E_00D2:
		UcMessage("\"So what hast thou an appetite for, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
	labelFunc085E_00DC:
		if(!var0001) goto labelFunc085E_038D;
		var000B = Func0957(var0002);
		if(!(var000B == 0x0001)) goto labelFunc085E_0100;
		UcMessage("\"Perhaps another time, then.\"");
		UcSay;
		var0001 = false;
		goto labelFunc085E_038A;
	labelFunc085E_0100:
		var000C = var0005[var000B];
		var000D = 0x0000;
		var000E = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000E == 0x0001)) goto labelFunc085E_012C;
		var000F = "Dost thou accept?";
	labelFunc085E_012C:
		if(!(var000E == 0x0002)) goto labelFunc085E_013C;
		var000F = "Wilt thou have some?";
	labelFunc085E_013C:
		if(!(var000E == 0x0003)) goto labelFunc085E_014C;
		var000F = "Wilt thou pay such a charge?";
	labelFunc085E_014C:
		if(!(var000E == 0x0004)) goto labelFunc085E_0160;
		var000F = (var000A + ", dost thou agree?");
	labelFunc085E_0160:
		if(!(var000E == 0x0005)) goto labelFunc085E_0174;
		var000F = (var000A + ", is this a price that thou canst pay?");
	labelFunc085E_0174:
		if(!(var000B == 0x0002)) goto labelFunc085E_0198;
		UcMessage("\"I am afraid that the price is ");
		UcMessage(var000C);
		UcMessage(" guilders for two strips of jerky... these being terrible times and all.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "strips of jerky, in bunches of two,";
	labelFunc085E_0198:
		if(!(var000B == 0x0003)) goto labelFunc085E_01C0;
		UcMessage("\"No one prepares fish better than my Petra!\"");
		UcSay;
		UcMessage("\"The dinner costs ");
		UcMessage(var000C);
		UcMessage(" guilders, but if I were not such an honest innkeeper I would charge more and make a fortune!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "fish dinners";
	labelFunc085E_01C0:
		if(!(var000B == 0x0004)) goto labelFunc085E_01E4;
		UcMessage("\"Petra's sausage is very good. ");
		UcMessage(var000C);
		UcMessage(" guilders is my price.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "sausages";
	labelFunc085E_01E4:
		if(!(var000B == 0x0005)) goto labelFunc085E_020E;
		UcMessage("\"Personally, ");
		UcMessage(var0000);
		UcMessage(", this is my favorite meal that Petra prepares! ");
		UcMessage(var000C);
		UcMessage(" guilders is what I charge.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "lamb roasts";
	labelFunc085E_020E:
		if(!(var000B == 0x0006)) goto labelFunc085E_0232;
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" guilders will buy thee the sweetest honey cake thou hast ever tasted.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var000F);
		UcMessage("\"");
		UcSay;
		var0010 = "honey cakes";
	labelFunc085E_0232:
		if(!(var000C == var0006[var000B])) goto labelFunc085E_0257;
		if(!Func0955()) goto labelFunc085E_024E;
		var0011 = var000C;
		goto labelFunc085E_0254;
	labelFunc085E_024E:
		var0011 = 0x0000;
	labelFunc085E_0254:
		goto labelFunc085E_0269;
	labelFunc085E_0257:
		var0011 = Func0860(var0005[var000B], var0006[var000B]);
	labelFunc085E_0269:
		if(!(var0011 > 0x0000)) goto labelFunc085E_02D7;
		if(!(var0009[var000B] == 0x0001)) goto labelFunc085E_02B2;
		UcMessage("\"How many ");
		UcMessage(var0010);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0003[var000B], var0004[var000B], var0008[var000B], var0007, var0011, 0x0014, 0x0001, false);
		goto labelFunc085E_02D7;
	labelFunc085E_02B2:
		var000D = Func0943(var0003[var000B], var0004[var000B], var0008[var000B], var0007, var0011, 0x0000, 0x0001, false);
	labelFunc085E_02D7:
		if(!(var000D == 0x0001)) goto labelFunc085E_02EE;
		UcMessage("\"I'm certain that thou wilt enjoy thy meal, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc085E_0380;
	labelFunc085E_02EE:
		if(!(var000D == 0x0002)) goto labelFunc085E_0305;
		UcMessage("\"I believe thou canst not carry so much food, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc085E_0380;
	labelFunc085E_0305:
		if(!(var000D == 0x0003)) goto labelFunc085E_0380;
		var0012 = Func0992(0x0001, (("@But " + var0000) + ", we have not the guilders to pay for this.@"), 0x0000, false);
		if(!(var0012 != 0xFE9C)) goto labelFunc085E_0348;
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Well, I hate to see thee go hungry, but Petra and I can not afford to feed thee for free. I am sorry, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc085E_034C;
	labelFunc085E_0348:
		UcMessage("\"Thou dost not have enough guilders for that!\"");
		UcSay;
	labelFunc085E_034C:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE2) + 0x0006))) goto labelFunc085E_036B;
		UI_set_npc_id_BD(0xFFE2, 0x001F);
		goto labelFunc085E_037D;
	labelFunc085E_036B:
		UI_set_npc_id_BD(0xFFE2, (UI_get_npc_id_BC(0xFFE2) + 0x0006));
	labelFunc085E_037D:
		goto labelFunc085E_0380;
	labelFunc085E_0380:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0001 = Func0955();
	labelFunc085E_038A:
		goto labelFunc085E_00DC;
	labelFunc085E_038D:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0953 0x953 ();
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0860 0x860 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func085F 0x85F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = Func0954();
	var0001 = Func0953();
	UI_push_answers_0E();
	var0002 = true;
	var0003 = ["nothing", "wine", "mead", "ale"];
	var0004 = [0x0000, 0x0268, 0x0268, 0x0268];
	var0005 = [0xFE99, 0x0000, 0x0005, 0x0003];
	var0006 = [0x0000, 0x000F, 0x0014, 0x0007];
	var0007 = [0x0000, 0x0008, 0x000B, 0x0004];
	var0008 = 0x03B8;
	var0009 = [0x0000, 0x0001, 0x0001, 0x0001];
	var000A = [0x0000, 0x0001, 0x0001, 0x0001];
	UcMessage("\"So what hast thou a thirst for, ");
	UcMessage(var0000);
	UcMessage("?\"");
	UcSay;
	labelFunc085F_00A2:
		if(!var0002) goto labelFunc085F_0276;
		var000B = Func0957(var0003);
		if(!(var000B == 0x0001)) goto labelFunc085F_00C6;
		UcMessage("\"Remember, these wares shall be here when thou dost return!\"");
		UcSay;
		var0002 = false;
		goto labelFunc085F_0273;
	labelFunc085F_00C6:
		var000C = var0006[var000B];
		var000D = 0x0000;
		if(!(var000B == 0x0002)) goto labelFunc085F_00EF;
		UcMessage("\"I must charge the steep fee of ");
		UcMessage(var000C);
		UcMessage(" guilders, considering the terrible state of trade with the mainland. Is this a price that thou canst pay?\"");
		UcSay;
		var000E = "wine bottles";
	labelFunc085F_00EF:
		if(!(var000B == 0x0003)) goto labelFunc085F_010D;
		UcMessage("\"We have a most delectable brew for thee, sweetly flavored with the honey of bees raised in the mountain highlands.\"");
		UcSay;
		UcMessage("\"Surely at a price of ");
		UcMessage(var000C);
		UcMessage(" guilders, thou wilt accept some?\"");
		UcSay;
		var000E = "bottles of mead";
	labelFunc085F_010D:
		if(!(var000B == 0x0004)) goto labelFunc085F_0127;
		UcMessage("\"This ale is weak, imported from the mainland, but I must still charge ");
		UcMessage(var000C);
		UcMessage(" guilders for it. Wilt thou pay such a charge?\"");
		UcSay;
		var000E = "flasks of ale";
	labelFunc085F_0127:
		if(!(var000C == var0007[var000B])) goto labelFunc085F_014C;
		if(!Func0955()) goto labelFunc085F_0143;
		var000F = var000C;
		goto labelFunc085F_0149;
	labelFunc085F_0143:
		var000F = 0x0000;
	labelFunc085F_0149:
		goto labelFunc085F_015E;
	labelFunc085F_014C:
		var000F = Func0860(var0006[var000B], var0007[var000B]);
	labelFunc085F_015E:
		if(!(var000F > 0x0000)) goto labelFunc085F_01CC;
		if(!(var000A[var000B] == 0x0001)) goto labelFunc085F_01A7;
		UcMessage("\"How many ");
		UcMessage(var000E);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0014, 0x0001, false);
		goto labelFunc085F_01CC;
	labelFunc085F_01A7:
		var000D = Func0943(var0004[var000B], var0005[var000B], var0009[var000B], var0008, var000F, 0x0000, 0x0001, false);
	labelFunc085F_01CC:
		if(!(var000D == 0x0001)) goto labelFunc085F_01E3;
		UcMessage("\"Cheers, ");
		UcMessage(var0000);
		UcMessage("!\"");
		UcSay;
		goto labelFunc085F_0269;
	labelFunc085F_01E3:
		if(!(var000D == 0x0002)) goto labelFunc085F_01F4;
		UcMessage("\"Thou shouldst not travel so heavily burdened -- I do not think that thou canst bear the bottles that thou desirest!\"");
		UcSay;
		goto labelFunc085F_0269;
	labelFunc085F_01F4:
		if(!(var000D == 0x0003)) goto labelFunc085F_0269;
		var0010 = Func0992(0x0001, (("@But " + var0001) + ", we lack adequate funds!@"), 0x0000, false);
		if(!(var0010 != 0xFE9C)) goto labelFunc085F_0231;
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Then thou'rt not drinking here!\"");
		UcSay;
		goto labelFunc085F_0235;
	labelFunc085F_0231:
		UcMessage("\"Thou dost not have the guilders to pay me!\"");
		UcSay;
	labelFunc085F_0235:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE2) + 0x0006))) goto labelFunc085F_0254;
		UI_set_npc_id_BD(0xFFE2, 0x001F);
		goto labelFunc085F_0266;
	labelFunc085F_0254:
		UI_set_npc_id_BD(0xFFE2, (UI_get_npc_id_BC(0xFFE2) + 0x0006));
	labelFunc085F_0266:
		goto labelFunc085F_0269;
	labelFunc085F_0269:
		UcMessage("\"Wouldst thou care for more?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc085F_0273:
		goto labelFunc085F_00A2;
	labelFunc085F_0276:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0942 0x942 (var var0000);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0955 0x955 ();
extern Func094E 0x94E (var var0000, var var0001);

var Func0860 0x860 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	var0004 = var0001;
	var0005 = ((var0000 / 0x0003) * 0x0002);
	var0006 = (0x000F - (UI_get_npc_id_BC(0xFFE2) / 0x0002));
	var0007 = 0x0000;
	var0008 = 0x0001;
	var0009 = 0x0000;
	var000A = 0x0002;
	var000B = UI_get_npc_id_BC(0xFFE2);
	labelFunc0860_0055:
		if(!var0008) goto labelFunc0860_04FF;
		var000C = Func0956(["yes", "no", "haggle"]);
		if(!(var000C == "no")) goto labelFunc0860_007E;
		rr = 0x0000;
		goto labelFunc0860_0091;
	labelFunc0860_007E:
		if(!(var000C == "yes")) goto labelFunc0860_0091;
		var000D = 0x0000;
		goto labelFunc0860_00E0;
	labelFunc0860_0091:
		var000E = Func0999(var0004, var0000, var000A, var0005, var0009, var0006, var0007);
		var0009 = (var0009 + 0x0001);
		var0007 = var000E[0x0004];
		var000D = var000E[0x0003];
		var000F = var0004;
		var0004 = var000E[0x0002];
		var0005 = var000E[0x0001];
	labelFunc0860_00E0:
		var0010 = UI_get_random_00(0x0003);
		if(!(var000D < 0x0002)) goto labelFunc0860_02F4;
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0860_0166;
		if(!(var0010 == 0x0001)) goto labelFunc0860_0118;
		UcMessage("\"Please do not mention this to Petra -- she would never forgive me for lowering my prices like this.\"");
		UcSay;
	labelFunc0860_0118:
		if(!(var0010 == 0x0002)) goto labelFunc0860_012C;
		UcMessage("\"At this price, I might as well sell the inn and go live in a hut! Thou dost drive a hard bargain, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0860_012C:
		if(!(var0010 == 0x0003)) goto labelFunc0860_0163;
		UcMessage("\"I cannot believe that thou hast out-bargained me so...\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc0860_0163;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"Thou art too old to be an innkeeper, Rocco! Thy mind grows soft, like an over-ripe fruit.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		UcMessage("\"Isn't that the truth...\"");
		UcSay;
	labelFunc0860_0163:
		goto labelFunc0860_0268;
	labelFunc0860_0166:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0860_01F5;
		if(!(var0010 == 0x0001)) goto labelFunc0860_018A;
		UcMessage("\"Our prices are fair here at the Blue Boar, eh?\"");
		UcSay;
	labelFunc0860_018A:
		if(!(var0010 == 0x0002)) goto labelFunc0860_0198;
		UcMessage("\"Yesterday, thou wouldst not have found me in such a generous mood as this. I should starve, if I sold goods at this price every day!\"");
		UcSay;
	labelFunc0860_0198:
		if(!(var0010 == 0x0003)) goto labelFunc0860_01F2;
		UcMessage("\"Thou hast a bargaining tongue, my friend. It reminds me of when I was thine age...\"");
		UcSay;
		if(!var0003) goto labelFunc0860_01B5;
		var0011 = "lass";
		goto labelFunc0860_01BB;
	labelFunc0860_01B5:
		var0011 = "lad";
	labelFunc0860_01BB:
		UcMessage("\"Hast thou ever considered a change of employment? I'll be retiring someday, and perhaps a young ");
		UcMessage(var0011);
		UcMessage(" such as thyself might be interested in running an inn...\"");
		UcSay;
		if(!var0003) goto labelFunc0860_01D4;
		var0012 = "her";
		goto labelFunc0860_01DA;
	labelFunc0860_01D4:
		var0012 = "his";
	labelFunc0860_01DA:
		var0013 = Func0992(0x0001, (("@I think not, innkeeper. The Avatar is not one to let grass grow under " + var0012) + " feet.@"), 0x0000, false);
	labelFunc0860_01F2:
		goto labelFunc0860_0268;
	labelFunc0860_01F5:
		if(!(var0004 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0860_0238;
		if(!(var0010 == 0x0001)) goto labelFunc0860_0219;
		UcMessage("\"Most fair, if I do say so myself.\"");
		UcSay;
	labelFunc0860_0219:
		if(!(var0010 == 0x0002)) goto labelFunc0860_0227;
		UcMessage("\"I shall not become a rich man from customers like thee...\"");
		UcSay;
	labelFunc0860_0227:
		if(!(var0010 == 0x0003)) goto labelFunc0860_0235;
		UcMessage("\"And let me remind thee that we give service with a smile around here. 'Tis why the Blue Boar Inn is famous throughout these parts.\"");
		UcSay;
	labelFunc0860_0235:
		goto labelFunc0860_0268;
	labelFunc0860_0238:
		if(!(var0010 == 0x0001)) goto labelFunc0860_024C;
		UcMessage("\"Thou hast made me a happy man, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0860_024C:
		if(!(var0010 == 0x0002)) goto labelFunc0860_025A;
		UcMessage("\"Thou art a blessing to this inn, thee and thy companions!\"");
		UcSay;
	labelFunc0860_025A:
		if(!(var0010 == 0x0003)) goto labelFunc0860_0268;
		UcMessage("\"In times like these, I must charge high prices or close...\"");
		UcSay;
	labelFunc0860_0268:
		UcMessage("\"We have agreed on a price of ");
		UcMessage(var0004);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0860_029D;
		if(!(var000B > 0x0001)) goto labelFunc0860_0296;
		UI_set_npc_id_BD(0xFFE2, (var000B - 0x0002));
	labelFunc0860_0296:
		rr = var0004;
		goto labelFunc0860_02F4;
	labelFunc0860_029D:
		if(!(var0010 == 0x0001)) goto labelFunc0860_02AB;
		UcMessage("\"What? I thought we had an agreement.\"");
		UcSay;
	labelFunc0860_02AB:
		if(!(var0010 == 0x0002)) goto labelFunc0860_02B9;
		UcMessage("\"Then be gone with thee -- I have no time to play games.\"");
		UcSay;
	labelFunc0860_02B9:
		if(!(var0010 == 0x0003)) goto labelFunc0860_02C7;
		UcMessage("\"Dost thou think me a fool, to argue with me only to change thy mind? I shall spread the word about thee in this town, wait and see!\"");
		UcSay;
	labelFunc0860_02C7:
		if(!(0x001F < (var000B + 0x000A))) goto labelFunc0860_02E2;
		UI_set_npc_id_BD(0xFFE2, 0x001F);
		goto labelFunc0860_02F0;
	labelFunc0860_02E2:
		UI_set_npc_id_BD(0xFFE2, (var000B + 0x000A));
	labelFunc0860_02F0:
		rr = 0x0000;
	labelFunc0860_02F4:
		if(!(var0007 == 0x0001)) goto labelFunc0860_0368;
		if(!(var000D == 0x0005)) goto labelFunc0860_0343;
		UcMessage("\"Look, ");
		UcMessage(var0002);
		UcMessage(", I said that ");
		UcMessage(var0004);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000B < 0x001C)) goto labelFunc0860_0330;
		UI_set_npc_id_BD(0xFFE2, (var000B + 0x0004));
	labelFunc0860_0330:
		if(!Func0955()) goto labelFunc0860_033A;
		rr = var0004;
	labelFunc0860_033A:
		var0008 = 0x0000;
		goto labelFunc0860_0365;
	labelFunc0860_0343:
		UcMessage("\"Very well. ");
		UcMessage(var0004);
		UcMessage(" guilders is my final offer.\"");
		UcSay;
		if(!(var000B < 0x001E)) goto labelFunc0860_0365;
		UI_set_npc_id_BD(0xFFE2, (var000B + 0x0002));
	labelFunc0860_0365:
		goto labelFunc0860_04FC;
	labelFunc0860_0368:
		if(!(var000D == 0x0002)) goto labelFunc0860_03AE;
		if(!(var0010 == 0x0001)) goto labelFunc0860_0386;
		UcMessage("\"It pleases me to do business with such a worthy soul. How doth ");
		UcMessage(var0004);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0860_0386:
		if(!(var0010 == 0x0002)) goto labelFunc0860_039A;
		UcMessage("\"May the Spirit of Truth light thy way, dear friend. So, have we agreed on ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0860_039A:
		if(!(var0010 == 0x0003)) goto labelFunc0860_03AE;
		UcMessage("\"My price is ");
		UcMessage(var0004);
		UcMessage(" guilders -- a special price for my good friend, if I may call thee friend. Dost thou accept?\"");
		UcSay;
	labelFunc0860_03AE:
		if(!(var000D == 0x0003)) goto labelFunc0860_03F4;
		if(!(var0010 == 0x0001)) goto labelFunc0860_03CC;
		UcMessage("\"These are hard times, and goods are scarce... ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0860_03CC:
		if(!(var0010 == 0x0002)) goto labelFunc0860_03E0;
		UcMessage("\"I'm not certain... Perhaps ");
		UcMessage(var0004);
		UcMessage("?\"");
		UcSay;
	labelFunc0860_03E0:
		if(!(var0010 == 0x0003)) goto labelFunc0860_03F4;
		UcMessage("\"But I must make enough to pay for repairs on this inn, which is drafty in the winter... Perhaps ");
		UcMessage(var0004);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0860_03F4:
		if(!(var000D == 0x0004)) goto labelFunc0860_046F;
		if(!(var0010 == 0x0001)) goto labelFunc0860_0441;
		UcMessage("\"Petra, come and hear this! The customer jests with me!\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc0860_0433;
		Func094E(0xFFE4, (("@We cannot possibly accept less than " + var0004) + " guilders.@"));
		UI_show_npc_face0_05(0xFFE2, 0x0000);
		goto labelFunc0860_043D;
	labelFunc0860_0433:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is as low as I can go.\"");
		UcSay;
	labelFunc0860_043D:
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0860_0441:
		if(!(var0010 == 0x0002)) goto labelFunc0860_0455;
		UcMessage("\"But the storms have severed contact with the mainland, and my costs are soaring! Surely thou canst see that I can go no lower than ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0860_0455:
		if(!(var0010 == 0x0003)) goto labelFunc0860_046F;
		UcMessage("\"Thou art not talking to a fool, ");
		UcMessage(var0002);
		UcMessage(". I deserve no less than ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0860_046F:
		if(!(var000D == 0x0005)) goto labelFunc0860_04FC;
		var0004 = var000F;
		if(!(var0010 == 0x0001)) goto labelFunc0860_0493;
		UcMessage("\"I would rather be eaten by rats than accept such a pitiful offer. My previous price stands, at ");
		UcMessage(var0004);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0860_0493:
		if(!(var0010 == 0x0002)) goto labelFunc0860_04A7;
		UcMessage("\"Thou must think that I am deaf, blind and stupid, to accept such a deal. ");
		UcMessage(var0004);
		UcMessage(" guilders, and no less!\"");
		UcSay;
	labelFunc0860_04A7:
		if(!(var0010 == 0x0003)) goto labelFunc0860_04E4;
		UcMessage("\"Why, if I accepted such a price as this, I should have to break Petra into scrap metal and sell her to make ends meet!\"");
		UcSay;
		if(!Func0942(0xFFE4)) goto labelFunc0860_04DA;
		UI_show_npc_face1_06(0xFFE4, 0x0000);
		UcMessage("\"This person is a lout, my dear. Cast the fool out the door.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFE2, 0x0000);
	labelFunc0860_04DA:
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(" guilders is where I stand.\"");
		UcSay;
	labelFunc0860_04E4:
		if(!(var000B < 0x001F)) goto labelFunc0860_04FC;
		UI_set_npc_id_BD(0xFFE2, (var000B + 0x0001));
	labelFunc0860_04FC:
		goto labelFunc0860_0055;
	labelFunc0860_04FF:
		return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func0861 0x861 ()
{
	var var0000;

	if(!UI_get_cont_items_33(0xFFD4, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0861_007F;
	UcMessage("\"I have many items in my possession which may aid thee. Wouldst thou like to have them?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0861_0077;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0011] = false;
	var0000 = Func09B3(0xFFD4);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc0861_003F;
	UcMessage("\"Thy companions will have to help thee carry some of these things.\"");
	UcSay;
	labelFunc0861_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc0861_0074;
		var0000 = var0000[0x0002];
		UcMessage("\"Thou art encumbered like a pack mule!\"");
		UcSay;
		if(!(var0000 > 0x0001)) goto labelFunc0861_0070;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, they shall go at thy feet.\"");
		UcSay;
		goto labelFunc0861_0074;
	labelFunc0861_0070:
		UcMessage("\"Since thou dost not have enough room for this last item, it shall go at thy feet.\"");
		UcSay;
	labelFunc0861_0074:
		goto labelFunc0861_007F;
	labelFunc0861_0077:
		gflags[0011] = true;
		UcMessage("\"If that is what thou dost want, so be it.\"");
		UcSay;
	labelFunc0861_007F:
		return;
}
Func0862 0x862 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_cont_items_33(0xFFD4, 0xFE99, 0xFE99, 0xFE99);
	var0001 = UI_get_object_position_20(0xFFD4);
	enum();
	labelFunc0862_001E:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0862_0107);
		if(!(!((UI_get_item_shape_18(var0004) == 0x0128) && (UI_get_item_frame_1A(var0004) == 0x0002)))) goto labelFunc0862_0104;
		var0004 = UI_set_last_created_2E(var0004);
		if(!var0004) goto labelFunc0862_0104;
		UI_set_item_flag_A4(var0004, 0x000B);
		var0004 = UI_update_last_created_2F(var0001);
		if(!(!var0004)) goto labelFunc0862_008F;
		var0004 = UI_update_last_created_2F([(var0001[0x0001] - 0x0002), var0001[0x0002], var0001[0x0003]]);
	labelFunc0862_008F:
		if(!(!var0004)) goto labelFunc0862_00B6;
		var0004 = UI_update_last_created_2F([var0001[0x0001], (var0001[0x0002] - 0x0002), var0001[0x0003]]);
	labelFunc0862_00B6:
		if(!(!var0004)) goto labelFunc0862_00DD;
		var0004 = UI_update_last_created_2F([(var0001[0x0001] + 0x0002), var0001[0x0002], var0001[0x0003]]);
	labelFunc0862_00DD:
		if(!(!var0004)) goto labelFunc0862_0104;
		var0004 = UI_update_last_created_2F([var0001[0x0001], (var0001[0x0002] + 0x0002), var0001[0x0003]]);
	labelFunc0862_0104:
		goto labelFunc0862_001E;
	labelFunc0862_0107:
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func0863 0x863 ()
{
	var var0000;

	if(!UI_get_cont_items_33(Shamino, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0863_007B;
	UcMessage("\"I am carrying many items, some of which may be of use to thee. Wouldst thou care to have these back?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0863_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0018] = false;
	var0000 = Func09B3(Shamino);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc0863_003F;
	UcMessage("\"Thy friends will have to help carry these things.\"");
	UcSay;
	labelFunc0863_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc0863_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc0863_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, I will place them at thy feet.\"");
		UcSay;
		goto labelFunc0863_0070;
	labelFunc0863_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it at thy feet.\"");
		UcSay;
	labelFunc0863_0070:
		goto labelFunc0863_007B;
	labelFunc0863_0073:
		gflags[0018] = true;
		UcMessage("\"If thou changest thy mind, thou hast but to return and ask again.\"");
		UcSay;
	labelFunc0863_007B:
		return;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0864 0x864 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_remove_party_items_34(0x0001, 0x0289, 0x0000, 0x0000, true);
	UI_clear_item_flag_A5(item, 0x001E);
	UcMessage("\"Thank thee, Avatar! Thank thee for returning to me the Comb of Beauty. Take this key...\"");
	UcSay;
	var0001 = Func099B(0xFE9C, 0x0001, 0x0281, 0x000F, 0x0002, 0x0000, true);
	UcMessage("\"...And go to the southeast corner of the Throne Room. Seek the illusionary wall -- it will reveal the path to the treasure thou dost seek.\"");
	UcSay;
	UcMessage("\"The key will allow thee to open the gate to the Treasury Room. The armour that I did promise thee is stored there.\"");
	UcSay;
	gflags[0212] = false;
	UI_remove_npc_face0_07();
	Func097F(item, "@A thousand thanks!@", 0x0000);
	var0002 = UI_get_object_position_20(item);
	var0002[0x0001] = (var0002[0x0001] - (var0002[0x0003] / 0x0002));
	var0002[0x0002] = (var0002[0x0002] - (var0002[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0015, var0002[0x0001], var0002[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	var0003 = UI_get_item_shape_18(UI_get_npc_object_23(0xFFC9));
	UI_set_polymorph_B3(0xFFC9, var0003);
	UI_set_new_schedules_B6(0xFFC9, [0x0000, 0x0003, 0x0004], [0x000E, 0x0005, 0x000C], [0x0436, 0x06C9, 0x03AD, 0x06DD, 0x0407, 0x075B]);
	UI_sprite_effect_68(0x000D, (var0002[0x0001] + 0x0002), (var0002[0x0002] + 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_move_object_4B(0xFF2C, [(var0002[0x0001] + 0x0002), (var0002[0x0002] + 0x0002), 0x0000]);
	UI_set_schedule_type_25(0xFF2C, 0x000F);
	UI_set_schedule_type_25(0xFFC9, 0x000F);
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	UI_end_conversation_86();
	var0001 = UI_delayed_execute_usecode_array_02(0xFF2C, [0x23, 0x61, 0x55, 0x04D4], 0x000A);
	gflags[0212] = true;
	UI_remove_npc_face0_07();
	Func097F(0xFFC9, "@I am restored!@", 0x0002);
	UI_play_sound_effect_16(0x0051);
	UI_play_music_39(0x003F, Func09A0(0x0005, 0x0001));
	abrt();
	return;
}
// externs
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0865 0x865 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = true;
	UcMessage("\"To barter coins, I charge a small fee of the money exchanged. Dost thou agree?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0865_0A4D;
	labelFunc0865_000E:
		if(!var0000) goto labelFunc0865_0A4A;
		UcMessage("\"What coinage dost thou desire?\"");
		UcSay;
		var0001 = Func0956(["Monetari", "Guilders", "Filari", "Gold Coins"]);
		if(!(var0001 == "Monetari")) goto labelFunc0865_028E;
		UcMessage("\"What dost thou care to exchange for monetari?\"");
		UcSay;
		var0002 = 0x03B7;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc0865_0069;
		var0003 = (var0003 & "Guilders");
	labelFunc0865_0069:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc0865_0088;
		var0003 = (var0003 & "Filari");
	labelFunc0865_0088:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc0865_00A7;
		var0003 = (var0003 & "Gold Coins");
	labelFunc0865_00A7:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc0865_00BF;
		UcMessage("\"Thou shouldst not waste my time so! I am a busy man!\"");
		UcSay;
		abrt();
	labelFunc0865_00BF:
		if(!(var0004 == "Guilders")) goto labelFunc0865_00D3;
		UcMessage("\"I can give thee 1 monetari for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc0865_00D3:
		if(!(var0004 == "Filari")) goto labelFunc0865_00E7;
		UcMessage("\"I can give thee 1 monetari for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc0865_00E7:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_00FB;
		UcMessage("\"I can give thee 1 monetari for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc0865_00FB:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0865_028A;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc0865_012A;
		var0006 = 0x01F4;
	labelFunc0865_012A:
		if(!(var0006 != 0x0000)) goto labelFunc0865_0277;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc0865_0162;
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_0162:
		if(!(var0004 == "Guilders")) goto labelFunc0865_017C;
		var0008 = (var0007 / 0x0003);
		var0009 = 0x0006;
	labelFunc0865_017C:
		if(!(var0004 == "Filari")) goto labelFunc0865_0196;
		var0008 = (var0007 / 0x0004);
		var0009 = 0x0008;
	labelFunc0865_0196:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_01B0;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc0865_01B0:
		var000A = (var0008 / 0x0019);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc0865_01E7;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_01E7:
		if(!(var0008 == 0x0001)) goto labelFunc0865_01F8;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_01F8:
		if(!(var0008 <= 0x0019)) goto labelFunc0865_0212;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc0865_0212:
		if(!(var0007 >= 0x0001)) goto labelFunc0865_0270;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Monetari, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" Monetari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Monetari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The coins are thine!\"");
		UcSay;
		goto labelFunc0865_0274;
	labelFunc0865_0270:
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
	labelFunc0865_0274:
		goto labelFunc0865_0287;
	labelFunc0865_0277:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc0865_0287:
		goto labelFunc0865_028E;
	labelFunc0865_028A:
		UcMessage("\"Thou wilt find no better rates...\"");
		UcSay;
	labelFunc0865_028E:
		if(!(var0001 == "Guilders")) goto labelFunc0865_0529;
		UcMessage("\"Which coin dost thou care to exchange for guilders?\"");
		UcSay;
		var0002 = 0x03B8;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc0865_02CA;
		var0003 = (var0003 & "Monetari");
	labelFunc0865_02CA:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc0865_02E9;
		var0003 = (var0003 & "Filari");
	labelFunc0865_02E9:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc0865_0308;
		var0003 = (var0003 & "Gold Coins");
	labelFunc0865_0308:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc0865_0320;
		UcMessage("\"Thou shouldst not waste my time so! I am a busy man!\"");
		UcSay;
		abrt();
	labelFunc0865_0320:
		if(!(var0004 == "Monetari")) goto labelFunc0865_0334;
		UcMessage("\"I can give thee 3 guilders for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc0865_0334:
		if(!(var0004 == "Filari")) goto labelFunc0865_0348;
		UcMessage("\"I can give thee 3 guilders for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc0865_0348:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_035C;
		UcMessage("\"I can give thee 3 guilders for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc0865_035C:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0865_0525;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc0865_038B;
		var0006 = 0x01F4;
	labelFunc0865_038B:
		if(!(var0006 != 0x0000)) goto labelFunc0865_0512;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc0865_03C3;
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_03C3:
		if(!(var0004 == "Monetari")) goto labelFunc0865_03D7;
		var0008 = (var0007 * 0x0003);
	labelFunc0865_03D7:
		if(!(var0004 == "Filari")) goto labelFunc0865_03F5;
		var0008 = ((var0007 * 0x0003) / 0x0004);
		var0009 = 0x0003;
	labelFunc0865_03F5:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_0413;
		var0008 = ((var0007 * 0x0003) / 0x0002);
		var0009 = 0x0002;
	labelFunc0865_0413:
		var000A = (var0008 / 0x0019);
		var000B = (var0008 - var000A);
		var000E = "Guilders";
		var000F = "Guilders";
		if(!(var0008 == 0x0000)) goto labelFunc0865_0456;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_0456:
		if(!(var0008 == 0x0001)) goto labelFunc0865_0467;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_0467:
		if(!(var0008 <= 0x0019)) goto labelFunc0865_0481;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc0865_0481:
		if(!(var000B == 0x0001)) goto labelFunc0865_0491;
		var000E = "Guilder";
	labelFunc0865_0491:
		if(!(var000A == 0x0001)) goto labelFunc0865_04A1;
		var000F = "Guilder";
	labelFunc0865_04A1:
		if(!(var0007 >= 0x0001)) goto labelFunc0865_050B;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Guilders, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The coins are thine!\"");
		UcSay;
		goto labelFunc0865_050F;
	labelFunc0865_050B:
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
	labelFunc0865_050F:
		goto labelFunc0865_0522;
	labelFunc0865_0512:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc0865_0522:
		goto labelFunc0865_0529;
	labelFunc0865_0525:
		UcMessage("\"Thou wilt find no better rates...\"");
		UcSay;
	labelFunc0865_0529:
		if(!(var0001 == "Filari")) goto labelFunc0865_0792;
		UcMessage("\"Which coin dost thou care to exchange for filari?\"");
		UcSay;
		var0002 = 0x03B4;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc0865_0565;
		var0003 = (var0003 & "Monetari");
	labelFunc0865_0565:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc0865_0584;
		var0003 = (var0003 & "Guilders");
	labelFunc0865_0584:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc0865_05A3;
		var0003 = (var0003 & "Gold Coins");
	labelFunc0865_05A3:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc0865_05BB;
		UcMessage("\"Thou shouldst not waste my time so! I am a busy man!\"");
		UcSay;
		abrt();
	labelFunc0865_05BB:
		if(!(var0004 == "Monetari")) goto labelFunc0865_05CF;
		UcMessage("\"I can give thee 4 filari for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc0865_05CF:
		if(!(var0004 == "Guilders")) goto labelFunc0865_05E3;
		UcMessage("\"I can give thee 4 filari for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc0865_05E3:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_05F7;
		UcMessage("\"I can give thee 2 filari for every 1 gold coin thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc0865_05F7:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0865_078E;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc0865_0626;
		var0006 = 0x01F4;
	labelFunc0865_0626:
		if(!(var0006 != 0x0000)) goto labelFunc0865_077B;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc0865_065E;
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_065E:
		if(!(var0004 == "Monetari")) goto labelFunc0865_0672;
		var0008 = (var0007 * 0x0004);
	labelFunc0865_0672:
		if(!(var0004 == "Guilders")) goto labelFunc0865_0690;
		var0008 = ((var0007 * 0x0004) / 0x0003);
		var0009 = 0x0002;
	labelFunc0865_0690:
		if(!(var0004 == "Gold Coins")) goto labelFunc0865_06B4;
		var0008 = (var0007 * 0x0002);
		if(!(var0007 == 0x0001)) goto labelFunc0865_06B4;
		var0004 = "Gold Coin";
	labelFunc0865_06B4:
		var000A = (var0008 / 0x0019);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc0865_06EB;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_06EB:
		if(!(var0008 == 0x0001)) goto labelFunc0865_06FC;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_06FC:
		if(!(var0008 <= 0x0019)) goto labelFunc0865_0716;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc0865_0716:
		if(!(var0007 >= 0x0001)) goto labelFunc0865_0774;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Filari, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" Filari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Filari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The coins are thine!\"");
		UcSay;
		goto labelFunc0865_0778;
	labelFunc0865_0774:
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
	labelFunc0865_0778:
		goto labelFunc0865_078B;
	labelFunc0865_077B:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc0865_078B:
		goto labelFunc0865_0792;
	labelFunc0865_078E:
		UcMessage("\"Thou wilt find no better rates...\"");
		UcSay;
	labelFunc0865_0792:
		if(!(var0001 == "Gold Coins")) goto labelFunc0865_0A3D;
		UcMessage("\"Which coin dost thou care to exchange for gold?\"");
		UcSay;
		var0002 = 0x0284;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc0865_07CE;
		var0003 = (var0003 & "Monetari");
	labelFunc0865_07CE:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc0865_07ED;
		var0003 = (var0003 & "Filari");
	labelFunc0865_07ED:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc0865_080C;
		var0003 = (var0003 & "Guilders");
	labelFunc0865_080C:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc0865_0824;
		UcMessage("\"Thou shouldst not waste my time so! I am a busy man!\"");
		UcSay;
		abrt();
	labelFunc0865_0824:
		if(!(var0004 == "Monetari")) goto labelFunc0865_0838;
		UcMessage("\"I can give thee 2 gold coins for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc0865_0838:
		if(!(var0004 == "Guilders")) goto labelFunc0865_084C;
		UcMessage("\"I can give thee 2 gold coins for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc0865_084C:
		if(!(var0004 == "Filari")) goto labelFunc0865_0860;
		UcMessage("\"I can give thee 1 gold coin for every 2 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc0865_0860:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc0865_0874;
		UcMessage("\"I can give thee 20 gold coins for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc0865_0874:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0865_0A39;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc0865_08A3;
		var0006 = 0x01F4;
	labelFunc0865_08A3:
		if(!(var0006 != 0x0000)) goto labelFunc0865_0A26;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc0865_08DB;
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_08DB:
		if(!(var0004 == "Monetari")) goto labelFunc0865_08EF;
		var0008 = (var0007 * 0x0002);
	labelFunc0865_08EF:
		if(!(var0004 == "Guilders")) goto labelFunc0865_090D;
		var0008 = ((var0007 * 0x0002) / 0x0003);
		var0009 = 0x0003;
	labelFunc0865_090D:
		if(!(var0004 == "Filari")) goto labelFunc0865_0927;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc0865_0927:
		var000A = (var0008 / 0x0019);
		var000B = (var0008 - var000A);
		var000E = "Gold Coins";
		var000F = "Gold Coins";
		if(!(var0008 == 0x0000)) goto labelFunc0865_096A;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_096A:
		if(!(var0008 == 0x0001)) goto labelFunc0865_097B;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc0865_0A3D;
	labelFunc0865_097B:
		if(!(var0008 <= 0x0019)) goto labelFunc0865_0995;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc0865_0995:
		if(!(var000B == 0x0001)) goto labelFunc0865_09A5;
		var000E = "Gold Coin";
	labelFunc0865_09A5:
		if(!(var000A == 0x0001)) goto labelFunc0865_09B5;
		var000F = "Gold Coin";
	labelFunc0865_09B5:
		if(!(var0007 >= 0x0001)) goto labelFunc0865_0A1F;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and give thee ");
		UcMessage(var0008);
		UcMessage(" Gold Coins, subtracting my charge of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The coins are thine!\"");
		UcSay;
		goto labelFunc0865_0A23;
	labelFunc0865_0A1F:
		UcMessage("\"Please make up thy mind!\"");
		UcSay;
	labelFunc0865_0A23:
		goto labelFunc0865_0A36;
	labelFunc0865_0A26:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc0865_0A36:
		goto labelFunc0865_0A3D;
	labelFunc0865_0A39:
		UcMessage("\"Thou wilt find no better rates...\"");
		UcSay;
	labelFunc0865_0A3D:
		UcMessage("\"Dost thou wish to exchange more coins?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc0865_000E;
	labelFunc0865_0A4A:
		goto labelFunc0865_0A51;
	labelFunc0865_0A4D:
		UcMessage("\"Thou wilt find no other moneychangers with such a low fee as mine!\"");
		UcSay;
	labelFunc0865_0A51:
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0869 0x869 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0866 0x866 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = "friend";
	var0001 = UI_get_item_flag_A3(0xFFB2, 0x001C);
	if(!(!var0001)) goto labelFunc0866_0020;
	var0000 = "stranger";
	labelFunc0866_0020:
		UI_push_answers_0E();
		var0002 = true;
		var0003 = ["nothing", "scale mail", "chain armour", "plate mail", "chain leggings", "plate leggings", "gauntlets", "spiked shield", "great helm", "crested helm"];
		var0004 = [0x0000, 0x023A, 0x023B, 0x023D, 0x023F, 0x0240, 0x0244, 0x0242, 0x021D, 0x021E];
		var0005 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001];
		var0006 = [0x0000, 0x0096, 0x00C8, 0x015E, 0x0064, 0x0096, 0x003C, 0x005A, 0x004B, 0x002D];
		var0007 = [0x0000, 0x0055, 0x0064, 0x00AF, 0x0032, 0x005A, 0x0023, 0x0032, 0x0028, 0x0019];
		var0008 = 0x03B7;
		var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
		var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
		if(!UI_is_pc_female_6F()) goto labelFunc0866_013A;
		var000B = "Milady";
		goto labelFunc0866_0140;
	labelFunc0866_013A:
		var000B = "Friend";
	labelFunc0866_0140:
		if(!var0002) goto labelFunc0866_0487;
		UcMessage("\"What dost thou care to buy, ");
		UcMessage(var0000);
		UcMessage("?\"");
		UcSay;
		var000C = Func0957(var0003);
		if(!(var000C == 0x0001)) goto labelFunc0866_0174;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0002 = false;
		goto labelFunc0866_0484;
	labelFunc0866_0174:
		var000D = var0006[var000C];
		var000E = 0x0000;
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0866_01A0;
		var0010 = "Dost thou accept?";
	labelFunc0866_01A0:
		if(!(var000F == 0x0002)) goto labelFunc0866_01B0;
		var0010 = "Wilt thou pay my price?";
	labelFunc0866_01B0:
		if(!(var000F == 0x0003)) goto labelFunc0866_01C0;
		var0010 = "Dost thou find the price agreeable?";
	labelFunc0866_01C0:
		if(!(var000F == 0x0004)) goto labelFunc0866_01D4;
		var0010 = (var000B + ", dost thou agree?");
	labelFunc0866_01D4:
		if(!(var000F == 0x0005)) goto labelFunc0866_01E8;
		var0010 = (var000B + ", is the price acceptable?");
	labelFunc0866_01E8:
		if(!(var000C == 0x0002)) goto labelFunc0866_0209;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" monetari is a low price for durable scale armour, my friend.\"");
		UcSay;
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "suits of scale armour";
	labelFunc0866_0209:
		if(!(var000C == 0x0003)) goto labelFunc0866_022D;
		UcMessage("\"If thou art serious about fighting, then thou shouldst purchase the best chain armour found in Monitor. I charge ");
		UcMessage(var000D);
		UcMessage(" monetari for a chain byrnie.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "chain byrnies";
	labelFunc0866_022D:
		if(!(var000C == 0x0004)) goto labelFunc0866_0257;
		UcMessage("\"Ah, plate mail is the best armour a knight could ask for, ");
		UcMessage(var0000);
		UcMessage(". I will sell thee a suit for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "suits of plate armour";
	labelFunc0866_0257:
		if(!(var000C == 0x0005)) goto labelFunc0866_027B;
		UcMessage("\"I can sell thee chain leggings for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of chain leggings";
	labelFunc0866_027B:
		if(!(var000C == 0x0006)) goto labelFunc0866_02A5;
		UcMessage("\"Plate leggings will protect thy legs very well indeed, ");
		UcMessage(var0000);
		UcMessage(". I will sell thee a pair for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of plate leggings";
	labelFunc0866_02A5:
		if(!(var000C == 0x0007)) goto labelFunc0866_02C9;
		UcMessage("\"A pair of gauntlets sell for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "pairs of gauntlets";
	labelFunc0866_02C9:
		if(!(var000C == 0x0008)) goto labelFunc0866_02ED;
		UcMessage("\"An excellent choice, friend! The spiked shield can be used in close quarters to surprise thy foe. ");
		UcMessage(var000D);
		UcMessage(" monetari is a small price to pay for one of these shields.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "spiked shields";
	labelFunc0866_02ED:
		if(!(var000C == 0x0009)) goto labelFunc0866_0311;
		UcMessage("\"'Tis nothing fancy, but it serves its purpose well. I can sell thee a great helm for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "great helms";
	labelFunc0866_0311:
		if(!(var000C == 0x000A)) goto labelFunc0866_0335;
		UcMessage("\"Most Knights of Monitor prefer the great helm, but the crested helm doth not obstruct thy view as much. I charge ");
		UcMessage(var000D);
		UcMessage(" monetari for one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crested helms";
	labelFunc0866_0335:
		if(!(var000D == var0007[var000C])) goto labelFunc0866_035A;
		if(!Func0955()) goto labelFunc0866_0351;
		var0012 = var000D;
		goto labelFunc0866_0357;
	labelFunc0866_0351:
		var0012 = 0x0000;
	labelFunc0866_0357:
		goto labelFunc0866_036C;
	labelFunc0866_035A:
		var0012 = Func0869(var0006[var000C], var0007[var000C]);
	labelFunc0866_036C:
		if(!(var0012 > 0x0000)) goto labelFunc0866_03D7;
		if(!(var000A[var000C] == 0x0001)) goto labelFunc0866_03B5;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0004[var000C], var0005[var000C], var0009[var000C], var0008, var0012, 0x0005, 0x0001, false);
		goto labelFunc0866_03D7;
	labelFunc0866_03B5:
		var000E = Func0943(var0004[var000C], var0005[var000C], 0x0001, var0008, var0012, 0x0000, 0x0001, false);
	labelFunc0866_03D7:
		if(!(var000E == 0x0001)) goto labelFunc0866_03EE;
		UcMessage("\"It hath been a pleasure, ");
		UcMessage(var0000);
		UcMessage("! Enjoy thy purchase!\"");
		UcSay;
		goto labelFunc0866_047A;
	labelFunc0866_03EE:
		if(!(var000E == 0x0002)) goto labelFunc0866_0405;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(", thine hands are full!\"");
		UcSay;
		goto labelFunc0866_047A;
	labelFunc0866_0405:
		if(!(var000E == 0x0003)) goto labelFunc0866_047A;
		var0013 = Func0992(0x0001, (("@But " + var0000) + ", we do not have the monetari to purchase this.@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0866_0442;
		UI_show_npc_face0_05(0xFFB2, 0x0000);
		UcMessage("\"If thou canst not pay, please leave!\"");
		UcSay;
		goto labelFunc0866_0446;
	labelFunc0866_0442:
		UcMessage("\"Thou dost not have enough monetari to purchase this...\"");
		UcSay;
	labelFunc0866_0446:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFB2) + 0x0006))) goto labelFunc0866_0465;
		UI_set_npc_id_BD(0xFFB2, 0x001F);
		goto labelFunc0866_0477;
	labelFunc0866_0465:
		UI_set_npc_id_BD(0xFFB2, (UI_get_npc_id_BC(0xFFB2) + 0x0006));
	labelFunc0866_0477:
		goto labelFunc0866_047A;
	labelFunc0866_047A:
		UcMessage("\"Dost thou want to buy more armour?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0866_0484:
		goto labelFunc0866_0140;
	labelFunc0866_0487:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0869 0x869 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0867 0x867 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0000 = "friend";
	var0001 = UI_get_item_flag_A3(0xFFB2, 0x001C);
	if(!(!var0001)) goto labelFunc0867_0020;
	var0000 = "stranger";
	labelFunc0867_0020:
		UI_push_answers_0E();
		var0002 = true;
		var0003 = ["nothing", "spear", "morning star", "bow", "arrows", "sword", "two-handed sword", "two-handed axe", "halberd", "crossbow", "quarrels"];
		var0004 = [0x0000, 0x0250, 0x0254, 0x0255, 0x02D2, 0x0257, 0x025A, 0x0259, 0x025B, 0x0256, 0x02D3];
		var0005 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0007, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0007];
		var0006 = [0x0000, 0x0014, 0x0028, 0x0078, 0x0014, 0x007D, 0x00C8, 0x0096, 0x0064, 0x0091, 0x0012];
		var0007 = [0x0000, 0x000C, 0x0014, 0x003C, 0x000A, 0x0041, 0x0078, 0x005A, 0x0037, 0x004B, 0x000A];
		var0008 = 0x03B7;
		var0009 = [0x0000, 0x0001, 0x0001, 0x0001, 0x0014, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0014];
		var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
		if(!UI_is_pc_female_6F()) goto labelFunc0867_014F;
		var000B = "Milady";
		goto labelFunc0867_0155;
	labelFunc0867_014F:
		var000B = "Milord";
	labelFunc0867_0155:
		if(!var0002) goto labelFunc0867_04A0;
		UcMessage("\"What weapon wouldst thou care to purchase?\"");
		UcSay;
		var000C = Func0957(var0003);
		if(!(var000C == 0x0001)) goto labelFunc0867_0183;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0002 = false;
		goto labelFunc0867_049D;
	labelFunc0867_0183:
		var000D = var0006[var000C];
		var000E = 0x0000;
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0867_01AF;
		var0010 = "Dost thou accept?";
	labelFunc0867_01AF:
		if(!(var000F == 0x0002)) goto labelFunc0867_01BF;
		var0010 = "Wilt thou pay my price?";
	labelFunc0867_01BF:
		if(!(var000F == 0x0003)) goto labelFunc0867_01CF;
		var0010 = "Dost thou find the price agreeable?";
	labelFunc0867_01CF:
		if(!(var000F == 0x0004)) goto labelFunc0867_01DF;
		var0010 = "Dost thou agree?";
	labelFunc0867_01DF:
		if(!(var000F == 0x0005)) goto labelFunc0867_01EF;
		var0010 = "Is the price acceptable?";
	labelFunc0867_01EF:
		if(!(var000C == 0x0002)) goto labelFunc0867_0210;
		UcMessage("\"My spears can gut a goblin even as well as a sword can. I charge ");
		UcMessage(var000D);
		UcMessage(" monetari for one.\"");
		UcSay;
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "spears";
	labelFunc0867_0210:
		if(!(var000C == 0x0003)) goto labelFunc0867_0234;
		UcMessage("\"A true Knight doth have a selection of weapons to choose from. This is an excellent weapon. The morning star sells for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "morning stars";
	labelFunc0867_0234:
		if(!(var000C == 0x0004)) goto labelFunc0867_0258;
		UcMessage("\"I will sell thee a bow for ");
		UcMessage(var000D);
		UcMessage(" monetari. Though most Knights do not carry these weapons, I think one should always be prepared, eh?\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "bows";
	labelFunc0867_0258:
		if(!(var000C == 0x0005)) goto labelFunc0867_027C;
		UcMessage("\"I can sell thee 20 arrows for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "arrows, in bundles of 20,";
	labelFunc0867_027C:
		if(!(var000C == 0x0006)) goto labelFunc0867_02A0;
		UcMessage("\"");
		UcMessage(var000D);
		UcMessage(" monetari for the sharpest swords in all of Serpent Isle! Many of my blades have been blooded in goblin flesh, my friend.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "swords";
	labelFunc0867_02A0:
		if(!(var000C == 0x0007)) goto labelFunc0867_02C4;
		UcMessage("\"An excellent choice, my friend! Thou wilt have a decisive edge in combat with this blade! ");
		UcMessage(var000D);
		UcMessage(" monetari is what I charge.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "two-handed swords";
	labelFunc0867_02C4:
		if(!(var000C == 0x0008)) goto labelFunc0867_02E8;
		UcMessage("\"Not very subtle, but a goblin doth understand thine argument anyway, eh? I can sell thee a fine two-handed axe for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "two-handed axes";
	labelFunc0867_02E8:
		if(!(var000C == 0x0009)) goto labelFunc0867_030C;
		UcMessage("\"Mine halberds are nothing fancy, but they are inexpensive and they do the job well. I can sell thee one for ");
		UcMessage(var000D);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "halberds";
	labelFunc0867_030C:
		if(!(var000C == 0x000A)) goto labelFunc0867_0330;
		UcMessage("\"Crossbows are not the most Knightly of weapons, but they are useful indeed. For ");
		UcMessage(var000D);
		UcMessage(" monetari I will sell thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "crossbows";
	labelFunc0867_0330:
		if(!(var000C == 0x000B)) goto labelFunc0867_0354;
		UcMessage("\"For the cost of ");
		UcMessage(var000D);
		UcMessage(" monetari I can sell thee 20 quarrels.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0011 = "quarrels, in bundles of 20,";
	labelFunc0867_0354:
		if(!(var000D == var0007[var000C])) goto labelFunc0867_0379;
		if(!Func0955()) goto labelFunc0867_0370;
		var0012 = var000D;
		goto labelFunc0867_0376;
	labelFunc0867_0370:
		var0012 = 0x0000;
	labelFunc0867_0376:
		goto labelFunc0867_038B;
	labelFunc0867_0379:
		var0012 = Func0869(var0006[var000C], var0007[var000C]);
	labelFunc0867_038B:
		if(!(var0012 > 0x0000)) goto labelFunc0867_03F6;
		if(!(var000A[var000C] == 0x0001)) goto labelFunc0867_03D4;
		UcMessage("\"How many ");
		UcMessage(var0011);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000E = Func0943(var0004[var000C], var0005[var000C], var0009[var000C], var0008, var0012, 0x0005, 0x0001, false);
		goto labelFunc0867_03F6;
	labelFunc0867_03D4:
		var000E = Func0943(var0004[var000C], var0005[var000C], 0x0001, var0008, var0012, 0x0000, 0x0001, false);
	labelFunc0867_03F6:
		if(!(var000E == 0x0001)) goto labelFunc0867_0407;
		UcMessage("\"It hath been a pleasure, friend! Enjoy thy purchase!\"");
		UcSay;
		goto labelFunc0867_0493;
	labelFunc0867_0407:
		if(!(var000E == 0x0002)) goto labelFunc0867_041E;
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(", thine hands are full!\"");
		UcSay;
		goto labelFunc0867_0493;
	labelFunc0867_041E:
		if(!(var000E == 0x0003)) goto labelFunc0867_0493;
		var0013 = Func0992(0x0001, (("@But " + var0000) + ", we do not have the monetari to purchase this.@"), 0x0000, false);
		if(!(var0013 != 0xFE9C)) goto labelFunc0867_045B;
		UI_show_npc_face0_05(0xFFB2, 0x0000);
		UcMessage("\"If thou canst not pay, please leave!\"");
		UcSay;
		goto labelFunc0867_045F;
	labelFunc0867_045B:
		UcMessage("\"Thou dost not have enough monetari to purchase this!\"");
		UcSay;
	labelFunc0867_045F:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFB2) + 0x0006))) goto labelFunc0867_047E;
		UI_set_npc_id_BD(0xFFB2, 0x001F);
		goto labelFunc0867_0490;
	labelFunc0867_047E:
		UI_set_npc_id_BD(0xFFB2, (UI_get_npc_id_BC(0xFFB2) + 0x0006));
	labelFunc0867_0490:
		goto labelFunc0867_0493;
	labelFunc0867_0493:
		UcMessage("\"Dost thou wish to purchase more weapons?\"");
		UcSay;
		var0002 = Func0955();
	labelFunc0867_049D:
		goto labelFunc0867_0155;
	labelFunc0867_04A0:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0955 0x955 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0868 0x868 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;

	var0000 = "friend";
	var0001 = UI_get_item_flag_A3(0xFFB2, 0x001C);
	if(!(!var0001)) goto labelFunc0868_0020;
	var0000 = "stranger";
	labelFunc0868_0020:
		var0002 = "Friend";
		if(!UI_is_pc_female_6F()) goto labelFunc0868_0033;
		var0002 = "Milady";
	labelFunc0868_0033:
		UI_push_answers_0E();
		var0003 = true;
		var0004 = 0x03B7;
		UcMessage("\"I am interested only in buying plate, chain, or scale armour, plate or chain leggings, and great or crested helms.\"");
		UcSay;
	labelFunc0868_0045:
		if(!var0003) goto labelFunc0868_079D;
		var0005 = UI_count_objects_31(0xFE9B, 0x023A, 0xFE99, 0xFE99);
		var0006 = UI_count_objects_31(0xFE9B, 0x023B, 0xFE99, 0xFE99);
		var0007 = UI_count_objects_31(0xFE9B, 0x023D, 0xFE99, 0xFE99);
		var0008 = UI_count_objects_31(0xFE9B, 0x023F, 0xFE99, 0xFE99);
		var0009 = UI_count_objects_31(0xFE9B, 0x0240, 0xFE99, 0xFE99);
		var000A = UI_count_objects_31(0xFE9B, 0x021D, 0xFE99, 0xFE99);
		var000B = UI_count_objects_31(0xFE9B, 0x021E, 0xFE99, 0xFE99);
		var000C = ["nothing"];
		var000D = false;
		if(!var0005) goto labelFunc0868_00F1;
		var000C = (var000C & "scale armour");
		var000D = true;
	labelFunc0868_00F1:
		if(!var0006) goto labelFunc0868_0105;
		var000C = (var000C & "chain armour");
		var000D = true;
	labelFunc0868_0105:
		if(!var0007) goto labelFunc0868_0119;
		var000C = (var000C & "plate armour");
		var000D = true;
	labelFunc0868_0119:
		if(!var0008) goto labelFunc0868_012D;
		var000C = (var000C & "chain leggings");
		var000D = true;
	labelFunc0868_012D:
		if(!var0009) goto labelFunc0868_0141;
		var000C = (var000C & "plate leggings");
		var000D = true;
	labelFunc0868_0141:
		if(!var000A) goto labelFunc0868_0155;
		var000C = (var000C & "great helm");
		var000D = true;
	labelFunc0868_0155:
		if(!var000B) goto labelFunc0868_0169;
		var000C = (var000C & "crested helm");
		var000D = true;
	labelFunc0868_0169:
		if(!(var000D == true)) goto labelFunc0868_0792;
		UcMessage("\"What dost thou care to sell, friend?\"");
		UcSay;
		var000E = Func0956(var000C);
		if(!(var000E == "nothing")) goto labelFunc0868_0193;
		UcMessage("\"As thou dost wish.\"");
		UcSay;
		var0003 = false;
		goto labelFunc0868_078F;
	labelFunc0868_0193:
		var000F = UI_die_roll_17(0x0001, 0x0005);
		if(!(var000F == 0x0001)) goto labelFunc0868_01B0;
		var0010 = "Dost thou accept?";
	labelFunc0868_01B0:
		if(!(var000F == 0x0002)) goto labelFunc0868_01C0;
		var0010 = "Wilt thou sell at my price?";
	labelFunc0868_01C0:
		if(!(var000F == 0x0003)) goto labelFunc0868_01D0;
		var0010 = "Dost thou find the price agreeable?";
	labelFunc0868_01D0:
		if(!(var000F == 0x0004)) goto labelFunc0868_01E4;
		var0010 = (var0002 + ", dost thou agree?");
	labelFunc0868_01E4:
		if(!(var000F == 0x0005)) goto labelFunc0868_01F8;
		var0010 = (var0002 + ", is the price acceptable?");
	labelFunc0868_01F8:
		var0011 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0011 == 0x0001)) goto labelFunc0868_021B;
		var0012 = "Hmmm... I am not sure.";
		var0013 = "Well... these are not the best of wares.";
	labelFunc0868_021B:
		if(!(var0011 == 0x0002)) goto labelFunc0868_0231;
		var0012 = "It doth have rust on it!";
		var0013 = "They are rusted!";
	labelFunc0868_0231:
		if(!(var0011 == 0x0003)) goto labelFunc0868_0247;
		var0012 = "It is not in very good condition.";
		var0013 = "They are not in very good condition.";
	labelFunc0868_0247:
		if(!(var0011 == 0x0004)) goto labelFunc0868_0265;
		var0012 = (var0002 + ", this will take weeks to repair!");
		var0013 = (var0002 + ", these will take weeks to repair!");
	labelFunc0868_0265:
		if(!(var0011 == 0x0005)) goto labelFunc0868_027B;
		var0012 = "Where didst thou find this -- buried under the ground?";
		var0013 = "Where didst thou find these -- moldering under the ground?";
	labelFunc0868_027B:
		if(!(var000E == "scale armour")) goto labelFunc0868_032B;
		var0014 = 0x023A;
		var0015 = 0x001E;
		if(!(var0005 > 0x0001)) goto labelFunc0868_0307;
		UcMessage("\"How many suits of scale armour wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var0005, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_02BF;
		goto labelFunc0868_0307;
	labelFunc0868_02BF:
		var0015 = (0x001E * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_02E0;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_02E0:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Very well, I will buy thy ");
		UcMessage(var0016);
		UcMessage(" suits of scale armour from thee for ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_032B;
	labelFunc0868_0307:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Very well, I will buy this scale armour from thee for ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_032B:
		if(!(var000E == "chain armour")) goto labelFunc0868_03DB;
		var0014 = 0x023B;
		var0015 = 0x0032;
		if(!(var0006 > 0x0001)) goto labelFunc0868_03B7;
		UcMessage("\"How many suits of chain armour wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_036F;
		goto labelFunc0868_03B7;
	labelFunc0868_036F:
		var0015 = (0x0032 * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_0390;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_0390:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Hmmm... I suppose I could buy thy ");
		UcMessage(var0016);
		UcMessage(" suits of chain armour from thee for ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_03DB;
	labelFunc0868_03B7:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I suppose I could pay thee ");
		UcMessage(var0015);
		UcMessage(" monetari for a suit of chain armour.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_03DB:
		if(!(var000E == "plate armour")) goto labelFunc0868_048B;
		var0014 = 0x023D;
		var0015 = 0x004B;
		if(!(var0007 > 0x0001)) goto labelFunc0868_0467;
		UcMessage("\"How many suits of plate armour wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var0007, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_041F;
		goto labelFunc0868_0467;
	labelFunc0868_041F:
		var0015 = (0x004B * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_0440;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_0440:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I will give thee ");
		UcMessage(var0015);
		UcMessage(" monetari for thy ");
		UcMessage(var0016);
		UcMessage(" suits of plate armour.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_048B;
	labelFunc0868_0467:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"For this plate armour, I can offer ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_048B:
		if(!(var000E == "chain leggings")) goto labelFunc0868_053B;
		var0014 = 0x023F;
		var0015 = 0x0019;
		if(!(var0008 > 0x0001)) goto labelFunc0868_0517;
		UcMessage("\"How many pairs of chain leggings wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var0008, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_04CF;
		goto labelFunc0868_0517;
	labelFunc0868_04CF:
		var0015 = (0x0019 * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_04F0;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_04F0:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Hmmm... perhaps I can give thee ");
		UcMessage(var0015);
		UcMessage(" monetari for thy ");
		UcMessage(var0016);
		UcMessage(" pairs of chain leggings.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_053B;
	labelFunc0868_0517:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"So be it, I will offer ");
		UcMessage(var0015);
		UcMessage(" monetari for the chain leggings.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_053B:
		if(!(var000E == "plate leggings")) goto labelFunc0868_05EB;
		var0014 = 0x0240;
		var0015 = 0x002D;
		if(!(var0009 > 0x0001)) goto labelFunc0868_05C7;
		UcMessage("\"And how many pairs of plate leggings wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var0009, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_057F;
		goto labelFunc0868_05C7;
	labelFunc0868_057F:
		var0015 = (0x002D * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_05A0;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_05A0:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"For thy ");
		UcMessage(var0016);
		UcMessage(" pairs of plate leggings, I can give thee ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_05EB;
	labelFunc0868_05C7:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0015);
		UcMessage(" monetari is what I can give thee for the pair of plate leggings.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_05EB:
		if(!(var000E == "great helm")) goto labelFunc0868_069B;
		var0014 = 0x021D;
		var0015 = 0x0014;
		if(!(var000A > 0x0001)) goto labelFunc0868_0677;
		UcMessage("\"How many great helms wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var000A, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_062F;
		goto labelFunc0868_0677;
	labelFunc0868_062F:
		var0015 = (0x0014 * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_0650;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_0650:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Very well...\" ~\"I can offer thee ");
		UcMessage(var0015);
		UcMessage(" monetari for thy ");
		UcMessage(var0016);
		UcMessage(" great helms.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_069B;
	labelFunc0868_0677:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"Very well, I will buy thy great helm for ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_069B:
		if(!(var000E == "crested helm")) goto labelFunc0868_074B;
		var0014 = 0x021E;
		var0015 = 0x000A;
		if(!(var000B > 0x0001)) goto labelFunc0868_0727;
		UcMessage("\"How many crested helms wouldst thou care to sell?\"");
		UcSay;
		var0016 = UI_input_numeric_value_13(0x0000, var000B, 0x0001, 0x0000);
		if(!(var0016 == 0x0001)) goto labelFunc0868_06DF;
		goto labelFunc0868_0727;
	labelFunc0868_06DF:
		var0015 = (0x000A * var0016);
		if(!(var0016 == 0x0000)) goto labelFunc0868_0700;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage("...\"");
		UcSay;
		goto labelFunc0868_0785;
	labelFunc0868_0700:
		UcMessage("\"");
		UcMessage(var0013);
		UcMessage("\"");
		UcSay;
		UcMessage("\"I suppose I can give thee ");
		UcMessage(var0015);
		UcMessage(" monetari for thy ");
		UcMessage(var0016);
		UcMessage(" crested helms.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		goto labelFunc0868_074B;
	labelFunc0868_0727:
		UcMessage("\"");
		UcMessage(var0012);
		UcMessage("\"");
		UcSay;
		UcMessage("\"For this crested helm, I can give thee ");
		UcMessage(var0015);
		UcMessage(" monetari.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0010);
		UcMessage("\"");
		UcSay;
		var0016 = 0x0001;
	labelFunc0868_074B:
		if(!Func0955()) goto labelFunc0868_0781;
		var0017 = UI_remove_party_items_34(var0016, var0014, 0xFE99, 0xFE99, true);
		var0017 = Func099B(0xFE9C, var0015, var0004, 0xFE99, 0xFE99, 0x0000, true);
		goto labelFunc0868_0785;
	labelFunc0868_0781:
		UcMessage("\"Thy loss, then.\"");
		UcSay;
	labelFunc0868_0785:
		UcMessage("\"Dost thou wish to sell more armour?\"");
		UcSay;
		var0003 = Func0955();
	labelFunc0868_078F:
		goto labelFunc0868_079A;
	labelFunc0868_0792:
		UcMessage("\"Thou dost not have anything that I care to purchase!\"");
		UcSay;
		var0003 = false;
	labelFunc0868_079A:
		goto labelFunc0868_0045;
	labelFunc0868_079D:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0869 0x869 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var rr;

	var0002 = "friend";
	var0003 = UI_get_item_flag_A3(0xFFB2, 0x001C);
	if(!(!var0003)) goto labelFunc0869_0020;
	var0002 = "stranger";
	labelFunc0869_0020:
		var0004 = UI_is_pc_female_6F();
		if(!UI_is_pc_female_6F()) goto labelFunc0869_0037;
		var0005 = "Milady";
		goto labelFunc0869_003D;
	labelFunc0869_0037:
		var0005 = "Milord";
	labelFunc0869_003D:
		var0006 = var0001;
		var0007 = ((var0000 / 0x0003) * 0x0002);
		var0008 = (0x000F - (UI_get_npc_id_BC(0xFFB2) / 0x0002));
		var0009 = 0x0000;
		var000A = 0x0001;
		var000B = 0x0000;
		var000C = 0x0002;
		var000D = UI_get_npc_id_BC(0xFFB2);
	labelFunc0869_0085:
		if(!var000A) goto labelFunc0869_04AF;
		var000E = Func0956(["yes", "no", "haggle"]);
		if(!(var000E == "no")) goto labelFunc0869_00AE;
		rr = 0x0000;
		goto labelFunc0869_00C1;
	labelFunc0869_00AE:
		if(!(var000E == "yes")) goto labelFunc0869_00C1;
		var000F = 0x0000;
		goto labelFunc0869_0110;
	labelFunc0869_00C1:
		var0010 = Func0999(var0006, var0000, var000C, var0007, var000B, var0008, var0009);
		var000B = (var000B + 0x0001);
		var0009 = var0010[0x0004];
		var000F = var0010[0x0003];
		var0011 = var0006;
		var0006 = var0010[0x0002];
		var0007 = var0010[0x0001];
	labelFunc0869_0110:
		var0012 = UI_get_random_00(0x0003);
		if(!(var000F < 0x0002)) goto labelFunc0869_02F2;
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0869_0179;
		if(!(var0012 == 0x0001)) goto labelFunc0869_014E;
		UcMessage("\"Thou hast a good eye for a bargain, ");
		UcMessage(var0002);
		UcMessage(". I am thankful that more of my customers are not like thee.\"");
		UcSay;
	labelFunc0869_014E:
		if(!(var0012 == 0x0002)) goto labelFunc0869_0162;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(", thou hast good bargaining sense. I fear I have actually lost money in this deal.\"");
		UcSay;
	labelFunc0869_0162:
		if(!(var0012 == 0x0003)) goto labelFunc0869_0176;
		UcMessage("\"Thy trading skills are as sharp as one of my blades, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0869_0176:
		goto labelFunc0869_025F;
	labelFunc0869_0179:
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0869_01CE;
		if(!(var0012 == 0x0001)) goto labelFunc0869_01A3;
		UcMessage("\"Thou shouldst be glad that I like thee, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not often I lower my prices...\"");
		UcSay;
	labelFunc0869_01A3:
		if(!(var0012 == 0x0002)) goto labelFunc0869_01B7;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(", I hope thou dost leave town soon! If thou stayest much longer I will be penniless!\"");
		UcSay;
	labelFunc0869_01B7:
		if(!(var0012 == 0x0003)) goto labelFunc0869_01CB;
		UcMessage("\"I hope thou art as fine a warrior as thou art as a trader, ");
		UcMessage(var0002);
		UcMessage("! Thou wilt do my products honor.\"");
		UcSay;
	labelFunc0869_01CB:
		goto labelFunc0869_025F;
	labelFunc0869_01CE:
		if(!(var0006 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0869_0223;
		if(!(var0012 == 0x0001)) goto labelFunc0869_01F8;
		UcMessage("\"Thou art paying for quality work, ");
		UcMessage(var0002);
		UcMessage(". If thou dost not agree, then thou shouldst leave.\"");
		UcSay;
	labelFunc0869_01F8:
		if(!(var0012 == 0x0002)) goto labelFunc0869_020C;
		UcMessage("\"'Tis not often I have such a challenge in bargaining, ");
		UcMessage(var0002);
		UcMessage(". Please come again!\"");
		UcSay;
	labelFunc0869_020C:
		if(!(var0012 == 0x0003)) goto labelFunc0869_0220;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(", remember that we take great pride in our work!\"");
		UcSay;
	labelFunc0869_0220:
		goto labelFunc0869_025F;
	labelFunc0869_0223:
		if(!(var0012 == 0x0001)) goto labelFunc0869_0237;
		UcMessage("\"Many thanks, ");
		UcMessage(var0005);
		UcMessage("!\"");
		UcSay;
	labelFunc0869_0237:
		if(!(var0012 == 0x0002)) goto labelFunc0869_024B;
		UcMessage("\"May it serve thee well, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0869_024B:
		if(!(var0012 == 0x0003)) goto labelFunc0869_025F;
		UcMessage("\"I fear the Goblin raids have raised my prices, ");
		UcMessage(var0002);
		UcMessage(". It takes time to produce quality goods, and demand hath been great.\"");
		UcSay;
	labelFunc0869_025F:
		UcMessage("\"Thou hast agreed to a price of ");
		UcMessage(var0006);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0869_0294;
		if(!(var000D > 0x0001)) goto labelFunc0869_028D;
		UI_set_npc_id_BD(0xFFB2, (var000D - 0x0002));
	labelFunc0869_028D:
		rr = var0006;
		goto labelFunc0869_02F2;
	labelFunc0869_0294:
		if(!(var0012 == 0x0001)) goto labelFunc0869_02A2;
		UcMessage("\"'Tis unwise to change thy mind after agreeing to a firm price!\"");
		UcSay;
	labelFunc0869_02A2:
		if(!(var0012 == 0x0002)) goto labelFunc0869_02B6;
		UcMessage("\"Take care, ");
		UcMessage(var0002);
		UcMessage(". I am as skilled a warrior as I am a weaponsmith.\"");
		UcSay;
	labelFunc0869_02B6:
		if(!(var0012 == 0x0003)) goto labelFunc0869_02C5;
		UcMessage("\"Thou hast no honor! Leave, before I take thine head from thy shoulders!\"");
		UcSay;
		abrt();
	labelFunc0869_02C5:
		if(!(0x001F < (var000D + 0x000A))) goto labelFunc0869_02E0;
		UI_set_npc_id_BD(0xFFB2, 0x001F);
		goto labelFunc0869_02EE;
	labelFunc0869_02E0:
		UI_set_npc_id_BD(0xFFB2, (var000D + 0x000A));
	labelFunc0869_02EE:
		rr = 0x0000;
	labelFunc0869_02F2:
		if(!(var0009 == 0x0001)) goto labelFunc0869_0360;
		if(!(var000F == 0x0005)) goto labelFunc0869_033B;
		UcMessage("\"I said that ");
		UcMessage(var0006);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000D < 0x001C)) goto labelFunc0869_0328;
		UI_set_npc_id_BD(0xFFB2, (var000D + 0x0004));
	labelFunc0869_0328:
		if(!Func0955()) goto labelFunc0869_0332;
		rr = var0006;
	labelFunc0869_0332:
		var000A = 0x0000;
		goto labelFunc0869_035D;
	labelFunc0869_033B:
		UcMessage("\"");
		UcMessage(var0006);
		UcMessage(" monetari is my final offer.\"");
		UcSay;
		if(!(var000D < 0x001E)) goto labelFunc0869_035D;
		UI_set_npc_id_BD(0xFFB2, (var000D + 0x0002));
	labelFunc0869_035D:
		goto labelFunc0869_04AC;
	labelFunc0869_0360:
		if(!(var000F == 0x0002)) goto labelFunc0869_03B8;
		if(!(var0012 == 0x0001)) goto labelFunc0869_0384;
		UcMessage("\"'Tis a pleasure to trade with such an honorable person, ");
		UcMessage(var0002);
		UcMessage(". How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound?\"");
		UcSay;
	labelFunc0869_0384:
		if(!(var0012 == 0x0002)) goto labelFunc0869_039E;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(", I shall offer thee a special price. How doth ");
		UcMessage(var0006);
		UcMessage(" monetari sound to thee?\"");
		UcSay;
	labelFunc0869_039E:
		if(!(var0012 == 0x0003)) goto labelFunc0869_03B8;
		UcMessage("\"My price is ");
		UcMessage(var0006);
		UcMessage(" monetari, ");
		UcMessage(var0002);
		UcMessage(". Wilt thou accept?\"");
		UcSay;
	labelFunc0869_03B8:
		if(!(var000F == 0x0003)) goto labelFunc0869_03FE;
		if(!(var0012 == 0x0001)) goto labelFunc0869_03D6;
		UcMessage("\"Let me think... Perhaps ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0869_03D6:
		if(!(var0012 == 0x0002)) goto labelFunc0869_03EA;
		UcMessage("\"I must reconsider... ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0869_03EA:
		if(!(var0012 == 0x0003)) goto labelFunc0869_03FE;
		UcMessage("\"Thou dost realize that I make only quality products. Perhaps ");
		UcMessage(var0006);
		UcMessage(" monetari?\"");
		UcSay;
	labelFunc0869_03FE:
		if(!(var000F == 0x0004)) goto labelFunc0869_0448;
		if(!(var0012 == 0x0001)) goto labelFunc0869_0420;
		UcMessage("\"");
		UcMessage(var0006);
		UcMessage(" monetari is as low as I can go. I must keep some honor for myself.\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0869_0420:
		if(!(var0012 == 0x0002)) goto labelFunc0869_0434;
		UcMessage("\"I cannot accept less than ");
		UcMessage(var0006);
		UcMessage(" monetari. I have a business to run.\"");
		UcSay;
	labelFunc0869_0434:
		if(!(var0012 == 0x0003)) goto labelFunc0869_0448;
		UcMessage("\"I can accept no less than ");
		UcMessage(var0006);
		UcMessage(" monetari. What would the townsfolk say?\"");
		UcSay;
	labelFunc0869_0448:
		if(!(var000F == 0x0005)) goto labelFunc0869_04AC;
		var0006 = var0011;
		if(!(var0012 == 0x0001)) goto labelFunc0869_046C;
		UcMessage("\"My previous price stands, at ");
		UcMessage(var0006);
		UcMessage(" monetari. I am no fool!\"");
		UcSay;
	labelFunc0869_046C:
		if(!(var0012 == 0x0002)) goto labelFunc0869_0480;
		UcMessage("\"I am not a charity! ");
		UcMessage(var0006);
		UcMessage(" monetari, and no less!\"");
		UcSay;
	labelFunc0869_0480:
		if(!(var0012 == 0x0003)) goto labelFunc0869_0494;
		UcMessage("\"\"");
		UcMessage(var0006);
		UcMessage(" monetari is as low as I will go! I must eat and pay for my supplies...\"");
		UcSay;
	labelFunc0869_0494:
		if(!(var000D < 0x001F)) goto labelFunc0869_04AC;
		UI_set_npc_id_BD(0xFFB2, (var000D + 0x0001));
	labelFunc0869_04AC:
		goto labelFunc0869_0085;
	labelFunc0869_04AF:
		return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func086A 0x86A ()
{
	var var0000;

	if(!UI_get_cont_items_33(0xFF58, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc086A_007B;
	UcMessage("\"I have many of thy belongings in my possession. Dost thou want them returned?\"");
	UcSay;
	if(!Func0955()) goto labelFunc086A_0073;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[000F] = false;
	var0000 = Func09B3(0xFF58);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc086A_003F;
	UcMessage("\"Thy companions will have to help thee with this burden.\"");
	UcSay;
	labelFunc086A_003F:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc086A_0070;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc086A_006C;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, I will place them on the ground.\"");
		UcSay;
		goto labelFunc086A_0070;
	labelFunc086A_006C:
		UcMessage("\"Since thou dost not have enough room for this last item, I will place it on the ground.\"");
		UcSay;
	labelFunc086A_0070:
		goto labelFunc086A_007B;
	labelFunc086A_0073:
		gflags[000F] = true;
		UcMessage("\"Then I will continue to keep thy belongings for thee. Thou hast but to return and ask for them again.\"");
		UcSay;
	labelFunc086A_007B:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func086B 0x86B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0953();
	var0001 = true;
	UcMessage("\"Whom dost thou wish to heal?\"");
	UcSay;
	labelFunc086B_000E:
		if(!var0001) goto labelFunc086B_017E;
		var0002 = Func098E();
		var0002 = (0x0000 & var0002);
		var0003 = ["nobody"];
		enum();
	labelFunc086B_002E:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc086B_0055);
		if(!(!(var0006 == 0x0000))) goto labelFunc086B_0052;
		var0003 = (var0003 & UI_get_npc_name_30(var0006));
	labelFunc086B_0052:
		goto labelFunc086B_002E;
	labelFunc086B_0055:
		var0007 = Func0957(var0003);
		var0007 = var0002[var0007];
		if(!(var0007 == 0x0000)) goto labelFunc086B_0078;
		UcMessage("\"So be it.\"");
		UcSay;
		goto labelFunc086B_017E;
	labelFunc086B_0078:
		var0008 = UI_get_npc_number_47(var0007);
		var0009 = UI_get_item_flag_A3(var0007, 0x0008);
		var000A = Func095C(var0007, 0x0000);
		var000B = Func095C(var0007, 0x0003);
		var000C = UI_get_npc_name_30(var0007);
		var000D = "his";
		if(!(var000C == "Petra")) goto labelFunc086B_00C7;
		var000D = "her";
	labelFunc086B_00C7:
		if(!(var000A > var000B)) goto labelFunc086B_010B;
		var000E = (var000A - var000B);
		Func095E(var0008, 0x0003, var000E);
		if(!(var0008 == 0xFE9C)) goto labelFunc086B_00F8;
		UcMessage("\"I have healed thee of thy wounds. Rest easy, my friend.\"");
		UcSay;
		goto labelFunc086B_0108;
	labelFunc086B_00F8:
		UcMessage("\"I have healed thy companion ");
		UcMessage(var000C);
		UcMessage(" of ");
		UcMessage(var000D);
		UcMessage(" wounds.\"");
		UcSay;
	labelFunc086B_0108:
		goto labelFunc086B_017B;
	labelFunc086B_010B:
		if(!(var0009 == false)) goto labelFunc086B_0131;
		if(!(var0008 == 0xFE9C)) goto labelFunc086B_0124;
		UcMessage("\"Thou seemest quite healthy!\"");
		UcSay;
		goto labelFunc086B_012E;
	labelFunc086B_0124:
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" is already healthy!\"");
		UcSay;
	labelFunc086B_012E:
		goto labelFunc086B_017B;
	labelFunc086B_0131:
		if(!(var0008 == 0xFE9C)) goto labelFunc086B_0167;
		if(!(gflags[0098] && (!gflags[005A]))) goto labelFunc086B_0156;
		UcMessage("\"What is this?! I have never seen the like of such a poison! I am afraid I cannot heal this, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		goto labelFunc086B_017E;
		goto labelFunc086B_0164;
	labelFunc086B_0156:
		UcMessage("\"Ah, this poison I can remedy. A moment... *There, 'tis done. Thou art whole once more.\"");
		UcSay;
		UI_clear_item_flag_A5(0xFE9C, 0x0008);
	labelFunc086B_0164:
		goto labelFunc086B_017B;
	labelFunc086B_0167:
		UcMessage("\"Your companion ");
		UcMessage(var000C);
		UcMessage(" is badly poisoned. I shall remove it. *There. 'Tis done.\"");
		UcSay;
		UI_clear_item_flag_A5(var0007, 0x0008);
	labelFunc086B_017B:
		goto labelFunc086B_000E;
	labelFunc086B_017E:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func086C 0x86C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!UI_get_item_flag_A3(var0000, 0x0004)) goto labelFunc086C_0014;
	UI_UNKNOWN_64(var0000);
	labelFunc086C_0014:
		UI_clear_item_flag_A5(var0000, 0x0001);
		UI_clear_item_flag_A5(var0000, 0x0002);
		UI_clear_item_flag_A5(var0000, 0x0003);
		UI_clear_item_flag_A5(var0000, 0x0007);
		UI_clear_item_flag_A5(var0000, 0x0008);
		UI_clear_item_flag_A5(var0000, 0x0010);
		UI_clear_item_flag_A5(var0000, 0x0004);
		if(!(!Func0942(var0000))) goto labelFunc086C_00E1;
		var0001 = UI_get_object_position_20(item);
		var0002 = UI_die_roll_17(Shamino, 0x0002);
		var0003 = UI_die_roll_17(Shamino, 0x0002);
		var0001[0x0001] = (var0001[0x0001] + var0002);
		var0001[0x0002] = (var0001[0x0002] + var0003);
		UI_move_object_4B(var0000, [var0001[0x0001], var0001[0x0002], var0001[0x0003]]);
		UI_sprite_effect_68(0x0015, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc086C_00E1:
		var0004 = Func095C(var0000, 0x0000);
		var0005 = Func095C(var0000, 0x0003);
		var0006 = (var0004 - var0005);
		Func095E(var0000, 0x0003, var0006);
		if(!(!UI_get_item_flag_A3(var0000, 0x0006))) goto labelFunc086C_0124;
		UI_add_to_party_26(var0000);
	labelFunc086C_0124:
		UI_set_schedule_type_25(var0000, 0x001F);
		var0007 = UI_execute_usecode_array_01(var0000, [0x61]);
		return;
}
// externs
extern var Func08FB 0x8FB ();
extern Func086C 0x86C (var var0000);

Func086D 0x86D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func08FB();
	enum();
	labelFunc086D_0007:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc086D_0058);
		if(!(var0003 != UI_get_npc_object_23(0xFE9C))) goto labelFunc086D_0055;
		var0004 = UI_get_body_npc_65(var0003);
		if(!((var0004 == Iolo) || ((var0004 == Shamino) || (var0004 == Dupre)))) goto labelFunc086D_0055;
		var0005 = UI_resurrect_63(var0003);
		UI_add_to_party_26(var0004);
	labelFunc086D_0055:
		goto labelFunc086D_0007;
	labelFunc086D_0058:
		Func086C(Dupre);
		Func086C(Shamino);
		Func086C(Iolo);
		return;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func086E 0x86E ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_count_objects_31(0xFE9B, 0x02F8, 0xFE99, 0xFE99);
	UcMessage("\"Ah, thou dost wish to sell me gems? But, of course I will buy all that thou dost have! Master Ducio has a constant need for gems in his most important works! I will buy gems from thee for 100 guilders each.\"");
	UcSay;
	UcMessage("\"How many gems wouldst thou like to sell?\"");
	UcSay;
	if(!(var0000 != 0x0000)) goto labelFunc086E_00B3;
	var0001 = UI_input_numeric_value_13(0x0000, var0000, 0x0001, 0x0000);
	if(!(var0001 != 0x0000)) goto labelFunc086E_00AC;
	var0002 = (var0001 * 0x0064);
	var0003 = 0x03B8;
	var0004 = "gems";
	if(!(var0001 == 0x0001)) goto labelFunc086E_0068;
	var0004 = "gem";
	labelFunc086E_0068:
		var0005 = UI_remove_party_items_34(var0001, 0x02F8, 0xFE99, 0xFE99, false);
		UcMessage("\"Very well...~Here, take thy ");
		UcMessage(var0002);
		UcMessage(" guilders, and I wilt take thy ");
		UcMessage(var0001);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" in exchange.\"");
		UcSay;
		var0006 = Func099B(0xFE9C, var0002, var0003, 0xFE99, 0xFE99, false, true);
		goto labelFunc086E_00B0;
	labelFunc086E_00AC:
		UcMessage("\"Perhaps another time, then...\"");
		UcSay;
	labelFunc086E_00B0:
		goto labelFunc086E_00B7;
	labelFunc086E_00B3:
		UcMessage("\"Thou dost not have any gems to sell!\"");
		UcSay;
	labelFunc086E_00B7:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0942 0x942 (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func0870 0x870 (var var0000, var var0001);
extern var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007);
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func086F 0x86F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;

	var0000 = Func0954();
	var0001 = false;
	var0002 = UI_die_roll_17(0x0001, 0x0004);
	UI_push_answers_0E();
	var0003 = true;
	var0004 = ["nothing", "cloak", "sword", "shovel", "torch", "pick", "bucket", "pitcher", "lamp", "cloth", "bread", "rolls", "cake"];
	var0005 = [0x0000, 0x00E3, 0x0257, 0x0271, 0x0253, 0x0270, 0x032A, 0x0338, 0x0150, 0x0353, 0x0179, 0x0179, 0x0179];
	var0006 = [0xFE99, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0002, 0x0002, var0002, 0x0001, 0x0002, 0x0004];
	var0007 = [0x0000, 0x00C8, 0x015E, 0x0064, 0x000A, 0x008C, 0x001C, 0x001E, 0x000C, 0x0014, 0x0008, 0x0005, 0x000A];
	var0008 = [0x0000, 0x0050, 0x00A0, 0x0032, 0x0005, 0x004B, 0x000E, 0x000F, 0x0006, 0x000A, 0x0004, 0x0003, 0x0005];
	var0009 = 0x03B8;
	var000A = [0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	var000B = [0x0000, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001];
	if(!UI_is_pc_female_6F()) goto labelFunc086F_0170;
	var000C = "Milady";
	goto labelFunc086F_0176;
	labelFunc086F_0170:
		var000C = "Milord";
	labelFunc086F_0176:
		if(!(var0001 == false)) goto labelFunc086F_01AE;
		if(!Func0942(0xFFF1)) goto labelFunc086F_01A6;
		UcMessage("\"Oh, we sell all manner of things. Cloaks, swords...\"");
		UcSay;
		Func094E(0xFFF1, "@Shovels, too...@");
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Yes, Master, shovels too. Pitchers and other containers. Cloth and a few weapons. We also sell baked goods.\"");
		UcSay;
		goto labelFunc086F_01AA;
	labelFunc086F_01A6:
		UcMessage("\"Oh, we sell all manner of things. Cloaks, swords, and shovels, too. Pitchers and other containers. Cloth and a few weapons. We also sell baked goods.\"");
		UcSay;
	labelFunc086F_01AA:
		var0001 = true;
	labelFunc086F_01AE:
		UcMessage("\"So, ");
		UcMessage(var0000);
		UcMessage(", what dost thou wish to buy?\"");
		UcSay;
	labelFunc086F_01B8:
		if(!var0003) goto labelFunc086F_0566;
		var000D = Func0957(var0004);
		if(!(var000D == 0x0001)) goto labelFunc086F_01E2;
		UcMessage("\"Perhaps another time, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		var0003 = false;
		goto labelFunc086F_0563;
	labelFunc086F_01E2:
		var000E = var0007[var000D];
		var000F = 0x0000;
		var0010 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0010 == 0x0001)) goto labelFunc086F_0216;
		var0011 = (("Dost thou accept, " + var0000) + "?");
	labelFunc086F_0216:
		if(!(var0010 == 0x0002)) goto labelFunc086F_0226;
		var0011 = "What dost thou think?";
	labelFunc086F_0226:
		if(!(var0010 == 0x0003)) goto labelFunc086F_0236;
		var0011 = "Wilt thou pay my master's price?";
	labelFunc086F_0236:
		if(!(var0010 == 0x0004)) goto labelFunc086F_024A;
		var0011 = (var000C + ", dost thou agree?");
	labelFunc086F_024A:
		if(!(var0010 == 0x0005)) goto labelFunc086F_025E;
		var0011 = (var000C + ", is the price acceptable?");
	labelFunc086F_025E:
		if(!(var000D == 0x0002)) goto labelFunc086F_027F;
		UcMessage("\"Well, our cloaks are not fancy, but they are warm.\" *\"If thou dost want one, it will cost thee ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "cloaks";
	labelFunc086F_027F:
		if(!(var000D == 0x0003)) goto labelFunc086F_02A3;
		UcMessage("\"[\"Oh, we sell swords that the blacksmith automaton makes. They are very durable blades...\" *\"For ");
		UcMessage(var000E);
		UcMessage(" guilders I can sell thee one of our fine swords.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "swords";
	labelFunc086F_02A3:
		if(!(var000D == 0x0004)) goto labelFunc086F_02C7;
		UcMessage("\"Our shovels are very well made. I believe that even Mortegro hath bought a couple of them. I can sell thee one for ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "shovels";
	labelFunc086F_02C7:
		if(!(var000D == 0x0005)) goto labelFunc086F_02EB;
		UcMessage("\"The torches we sell are soaked in pitch, so they burn for a very long time.\" *\"I will sell a torch to thee for ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "torches";
	labelFunc086F_02EB:
		if(!(var000D == 0x0006)) goto labelFunc086F_030F;
		UcMessage("\"I believe our picks have been used in the Mountains of Freedom. Only ");
		UcMessage(var000E);
		UcMessage(" guilders will buy thee one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "picks";
	labelFunc086F_030F:
		if(!(var000D == 0x0007)) goto labelFunc086F_0339;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage(" guilders and one of our finely crafted buckets can be thine, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "buckets";
	labelFunc086F_0339:
		if(!(var000D == 0x0008)) goto labelFunc086F_035D;
		UcMessage("\"Even Petra uses our pitchers! I can sell thee a fine piece of crockery for ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "pitchers";
	labelFunc086F_035D:
		if(!(var000D == 0x0009)) goto labelFunc086F_0387;
		UcMessage("\"One of our oil lamps will last a long time, ");
		UcMessage(var0000);
		UcMessage(". I can sell thee one for ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "oil lamps";
	labelFunc086F_0387:
		if(!(var000D == 0x000A)) goto labelFunc086F_03AB;
		UcMessage("\"I can sell thee a bolt of dyed cloth for ");
		UcMessage(var000E);
		UcMessage(" guilders.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "bolts of cloth";
	labelFunc086F_03AB:
		if(!(var000D == 0x000B)) goto labelFunc086F_03D5;
		UcMessage("\"The bread baked by the automaton baker is quite filling, ");
		UcMessage(var0000);
		UcMessage(". For ");
		UcMessage(var000E);
		UcMessage(" guilders I will sell thee a fresh loaf.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "loaves of bread";
	labelFunc086F_03D5:
		if(!(var000D == 0x000C)) goto labelFunc086F_03F9;
		UcMessage("\"");
		UcMessage(var000E);
		UcMessage(" guilders will buy thee a delicious roll.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "rolls";
	labelFunc086F_03F9:
		if(!(var000D == 0x000D)) goto labelFunc086F_0423;
		UcMessage("\"The baker automaton makes a very sweet cake, ");
		UcMessage(var0000);
		UcMessage(". For ");
		UcMessage(var000E);
		UcMessage(" guilders thou canst have one.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0011);
		UcMessage("\"");
		UcSay;
		var0012 = "cakes";
	labelFunc086F_0423:
		if(!(var000E == var0008[var000D])) goto labelFunc086F_0448;
		if(!Func0955()) goto labelFunc086F_043F;
		var0013 = var000E;
		goto labelFunc086F_0445;
	labelFunc086F_043F:
		var0013 = 0x0000;
	labelFunc086F_0445:
		goto labelFunc086F_045A;
	labelFunc086F_0448:
		var0013 = Func0870(var0007[var000D], var0008[var000D]);
	labelFunc086F_045A:
		if(!(var0013 > 0x0000)) goto labelFunc086F_04C2;
		if(!(var000B[var000D] == 0x0001)) goto labelFunc086F_04A0;
		UcMessage("\"How many ");
		UcMessage(var0012);
		UcMessage(" wouldst thou like?\"");
		UcSay;
		var000F = Func0943(var0005[var000D], var0006[var000D], 0x0001, var0009, var0013, 0x000A, 0x0001, false);
		goto labelFunc086F_04C2;
	labelFunc086F_04A0:
		var000F = Func0943(var0005[var000D], var0006[var000D], 0x0001, var0009, var0013, 0x0000, 0x0001, false);
	labelFunc086F_04C2:
		if(!(var000F == 0x0001)) goto labelFunc086F_04D3;
		UcMessage("\"Enjoy thy purchase!\"");
		UcSay;
		goto labelFunc086F_0559;
	labelFunc086F_04D3:
		if(!(var000F == 0x0002)) goto labelFunc086F_04E4;
		UcMessage("\"Thine hands are full!\"");
		UcSay;
		goto labelFunc086F_0559;
	labelFunc086F_04E4:
		if(!(var000F == 0x0003)) goto labelFunc086F_0559;
		var0014 = Func0992(0x0001, (("@But " + var0000) + ", we do not have the guilders to purchase this.@"), 0x0000, false);
		if(!(var0014 != 0xFE9C)) goto labelFunc086F_0521;
		UI_show_npc_face0_05(0xFFE0, 0x0000);
		UcMessage("\"Please leave if thou canst not pay.\"");
		UcSay;
		goto labelFunc086F_0525;
	labelFunc086F_0521:
		UcMessage("\"Thou dost not have enough guilders to purchase this...\"");
		UcSay;
	labelFunc086F_0525:
		if(!(0x001F < (UI_get_npc_id_BC(0xFFE0) + 0x0006))) goto labelFunc086F_0544;
		UI_set_npc_id_BD(0xFFE0, 0x001F);
		goto labelFunc086F_0556;
	labelFunc086F_0544:
		UI_set_npc_id_BD(0xFFE0, (UI_get_npc_id_BC(0xFFE0) + 0x0006));
	labelFunc086F_0556:
		goto labelFunc086F_0559;
	labelFunc086F_0559:
		UcMessage("\"Dost thou care for something else?\"");
		UcSay;
		var0003 = Func0955();
	labelFunc086F_0563:
		goto labelFunc086F_01B8;
	labelFunc086F_0566:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0870 0x870 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0002 = Func0954();
	var0003 = UI_is_pc_female_6F();
	if(!UI_is_pc_female_6F()) goto labelFunc0870_001D;
	var0004 = "Milady";
	goto labelFunc0870_0023;
	labelFunc0870_001D:
		var0004 = "Milord";
	labelFunc0870_0023:
		var0005 = var0001;
		var0006 = ((var0000 / 0x0003) * 0x0002);
		var0007 = (0x000F - (UI_get_npc_id_BC(0xFFE0) / 0x0002));
		var0008 = 0x0000;
		var0009 = 0x0001;
		var000A = 0x0000;
		var000B = 0x0002;
		var000C = UI_get_npc_id_BC(0xFFE0);
	labelFunc0870_006B:
		if(!var0009) goto labelFunc0870_0499;
		var000D = Func0956(["yes", "no", "haggle"]);
		if(!(var000D == "no")) goto labelFunc0870_0094;
		rr = 0x0000;
		goto labelFunc0870_00A7;
	labelFunc0870_0094:
		if(!(var000D == "yes")) goto labelFunc0870_00A7;
		var000E = 0x0000;
		goto labelFunc0870_00F6;
	labelFunc0870_00A7:
		var000F = Func0999(var0005, var0000, var000B, var0006, var000A, var0007, var0008);
		var000A = (var000A + 0x0001);
		var0008 = var000F[0x0004];
		var000E = var000F[0x0003];
		var0010 = var0005;
		var0005 = var000F[0x0002];
		var0006 = var000F[0x0001];
	labelFunc0870_00F6:
		var0011 = UI_get_random_00(0x0003);
		if(!(var000E < 0x0002)) goto labelFunc0870_02D8;
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0870_015F;
		if(!(var0011 == 0x0001)) goto labelFunc0870_0134;
		UcMessage("\"Thou art a shrewd bargainer, ");
		UcMessage(var0002);
		UcMessage(". I would be hard pressed to make a profit with such a price.\"");
		UcSay;
	labelFunc0870_0134:
		if(!(var0011 == 0x0002)) goto labelFunc0870_0148;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thy skill at bargaining is excellent. I believe I have actually lost money in this deal.\"");
		UcSay;
	labelFunc0870_0148:
		if(!(var0011 == 0x0003)) goto labelFunc0870_015C;
		UcMessage("\"Thy trading skills are very sharp, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0870_015C:
		goto labelFunc0870_0245;
	labelFunc0870_015F:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0870_01B4;
		if(!(var0011 == 0x0001)) goto labelFunc0870_0189;
		UcMessage("\"Thou art lucky I am in such a good mood today, ");
		UcMessage(var0002);
		UcMessage("! 'Tis not often I lower my prices such...\"");
		UcSay;
	labelFunc0870_0189:
		if(!(var0011 == 0x0002)) goto labelFunc0870_019D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou art a scoundrel! I would be penniless very soon if I bargained such a price more than a few times!\"");
		UcSay;
	labelFunc0870_019D:
		if(!(var0011 == 0x0003)) goto labelFunc0870_01B1;
		UcMessage("\"'Tis not often I practically give my goods away! Thou art a skilled trader, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0870_01B1:
		goto labelFunc0870_0245;
	labelFunc0870_01B4:
		if(!(var0005 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0870_0209;
		if(!(var0011 == 0x0001)) goto labelFunc0870_01DE;
		UcMessage("\"My prices are just, ");
		UcMessage(var0002);
		UcMessage(". Thou shouldst travel to Fawn if thou dost believe mine steep.\"");
		UcSay;
	labelFunc0870_01DE:
		if(!(var0011 == 0x0002)) goto labelFunc0870_01F2;
		UcMessage("\"'Tis a pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0870_01F2:
		if(!(var0011 == 0x0003)) goto labelFunc0870_0206;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", I shall remember thee! Please come to my shop whenever thou art in Monitor!\"");
		UcSay;
	labelFunc0870_0206:
		goto labelFunc0870_0245;
	labelFunc0870_0209:
		if(!(var0011 == 0x0001)) goto labelFunc0870_021D;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", thou hast my gratitude!\"");
		UcSay;
	labelFunc0870_021D:
		if(!(var0011 == 0x0002)) goto labelFunc0870_0231;
		UcMessage("\"A blessing upon thee, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
	labelFunc0870_0231:
		if(!(var0011 == 0x0003)) goto labelFunc0870_0245;
		UcMessage("\"My prices are steep, ");
		UcMessage(var0002);
		UcMessage(", for supplies are very scarce due to the Goblin raids.\"");
		UcSay;
	labelFunc0870_0245:
		UcMessage("\"Thou hast agreed to a price of ");
		UcMessage(var0005);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!Func0955()) goto labelFunc0870_027A;
		if(!(var000C > 0x0001)) goto labelFunc0870_0273;
		UI_set_npc_id_BD(0xFFE0, (var000C - 0x0002));
	labelFunc0870_0273:
		rr = var0005;
		goto labelFunc0870_02D8;
	labelFunc0870_027A:
		if(!(var0011 == 0x0001)) goto labelFunc0870_0288;
		UcMessage("\"Thou shouldst not argue with me only to change thy mind when we have agreed to a firm price!\"");
		UcSay;
	labelFunc0870_0288:
		if(!(var0011 == 0x0002)) goto labelFunc0870_029C;
		UcMessage("\"What of our bargain? Thou hast disappointed me, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0870_029C:
		if(!(var0011 == 0x0003)) goto labelFunc0870_02AB;
		UcMessage("\"This is not honorable! I do not have time to play games with thee! Begone!\"");
		UcSay;
		abrt();
	labelFunc0870_02AB:
		if(!(0x001F < (var000C + 0x000A))) goto labelFunc0870_02C6;
		UI_set_npc_id_BD(0xFFE0, 0x001F);
		goto labelFunc0870_02D4;
	labelFunc0870_02C6:
		UI_set_npc_id_BD(0xFFE0, (var000C + 0x000A));
	labelFunc0870_02D4:
		rr = 0x0000;
	labelFunc0870_02D8:
		if(!(var0008 == 0x0001)) goto labelFunc0870_0346;
		if(!(var000E == 0x0005)) goto labelFunc0870_0321;
		UcMessage("\"I said that ");
		UcMessage(var0005);
		UcMessage(" was my final offer. Dost thou accept?\"");
		UcSay;
		if(!(var000C < 0x001C)) goto labelFunc0870_030E;
		UI_set_npc_id_BD(0xFFE0, (var000C + 0x0004));
	labelFunc0870_030E:
		if(!Func0955()) goto labelFunc0870_0318;
		rr = var0005;
	labelFunc0870_0318:
		var0009 = 0x0000;
		goto labelFunc0870_0343;
	labelFunc0870_0321:
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders is my final offer.\"");
		UcSay;
		if(!(var000C < 0x001E)) goto labelFunc0870_0343;
		UI_set_npc_id_BD(0xFFE0, (var000C + 0x0002));
	labelFunc0870_0343:
		goto labelFunc0870_0496;
	labelFunc0870_0346:
		if(!(var000E == 0x0002)) goto labelFunc0870_039E;
		if(!(var0011 == 0x0001)) goto labelFunc0870_036A;
		UcMessage("\"'Tis a pleasure to trade with thee, ");
		UcMessage(var0002);
		UcMessage(". How doth ");
		UcMessage(var0005);
		UcMessage(" guilders sound?\"");
		UcSay;
	labelFunc0870_036A:
		if(!(var0011 == 0x0002)) goto labelFunc0870_0384;
		UcMessage("\"");
		UcMessage(var0004);
		UcMessage(", only for thee I will give a special price. How doth ");
		UcMessage(var0005);
		UcMessage(" guilders sound to thee?\"");
		UcSay;
	labelFunc0870_0384:
		if(!(var0011 == 0x0003)) goto labelFunc0870_039E;
		UcMessage("\"My price is ");
		UcMessage(var0005);
		UcMessage(" guilders, ");
		UcMessage(var0002);
		UcMessage(". Dost thou accept?\"");
		UcSay;
	labelFunc0870_039E:
		if(!(var000E == 0x0003)) goto labelFunc0870_03E4;
		if(!(var0011 == 0x0001)) goto labelFunc0870_03BC;
		UcMessage("\"I am not sure. Wouldst thou consider ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0870_03BC:
		if(!(var0011 == 0x0002)) goto labelFunc0870_03D0;
		UcMessage("\"Hmmm... I am not certain... ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0870_03D0:
		if(!(var0011 == 0x0003)) goto labelFunc0870_03E4;
		UcMessage("\"The cost of my goods hath increased. Perhaps ");
		UcMessage(var0005);
		UcMessage(" guilders?\"");
		UcSay;
	labelFunc0870_03E4:
		if(!(var000E == 0x0004)) goto labelFunc0870_042E;
		if(!(var0011 == 0x0001)) goto labelFunc0870_0406;
		UcMessage("\"If I did not know better, I would believe thou dost jest with me. ");
		UcMessage(var0005);
		UcMessage(" guilders is as low as I can go.\"");
		UcSay;
		UcMessage("\"What dost thou say to this?\"");
		UcSay;
	labelFunc0870_0406:
		if(!(var0011 == 0x0002)) goto labelFunc0870_041A;
		UcMessage("\"Even if the storms are driving away my customers, I still cannot accept less than ");
		UcMessage(var0005);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0870_041A:
		if(!(var0011 == 0x0003)) goto labelFunc0870_042E;
		UcMessage("\"Thou dost think too highly of thyself, my friend. I can accept no less than ");
		UcMessage(var0005);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0870_042E:
		if(!(var000E == 0x0005)) goto labelFunc0870_0496;
		var0005 = var0010;
		if(!(var0011 == 0x0001)) goto labelFunc0870_0452;
		UcMessage("\"Thou art touched by the storms if thou dost think I would accept such a ridiculous offer! My previous price stands, at ");
		UcMessage(var0005);
		UcMessage(" guilders.\"");
		UcSay;
	labelFunc0870_0452:
		if(!(var0011 == 0x0002)) goto labelFunc0870_0466;
		UcMessage("\"I do not give my goods away! ");
		UcMessage(var0005);
		UcMessage(" guilders, and no less!\"");
		UcSay;
	labelFunc0870_0466:
		if(!(var0011 == 0x0003)) goto labelFunc0870_047E;
		UcMessage("\"I would rather belong to the Bear Command than accept such an offer!\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" guilders is as low as I will go!\"");
		UcSay;
	labelFunc0870_047E:
		if(!(var000C < 0x001F)) goto labelFunc0870_0496;
		UI_set_npc_id_BD(0xFFE0, (var000C + 0x0001));
	labelFunc0870_0496:
		goto labelFunc0870_006B;
	labelFunc0870_0499:
		return rr;
}
// externs
extern var Func0957 0x957 (var var0000);
extern var Func0955 0x955 ();
extern var Func096F 0x96F (var var0000, var var0001, var var0002);
extern var Func0872 0x872 (var var0000, var var0001);

Func0871 0x871 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	UI_push_answers_0E();
	var0000 = true;
	UcMessage("\"I accept guilders only!\"");
	UcSay;
	var0001 = "Guilders";
	var0002 = 0x03B8;
	labelFunc0871_0018:
		if(!var0000) goto labelFunc0871_03B0;
		UcMessage("\"In which circle art thou interested?\"");
		UcSay;
		var0003 = Func0957(["nothing", "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh"]);
		var0003 = (var0003 - 0x0001);
		if(!(var0003 == 0x0000)) goto labelFunc0871_005A;
		goto labelFunc0871_03B0;
	labelFunc0871_005A:
		if(!(var0003 == 0x0001)) goto labelFunc0871_00A3;
		var0004 = ["nothing", "Detect Trap", "Light"];
		var0005 = [0x0000, 0x0002, 0x0005];
		var0006 = [0x0000, 0x0028, 0x0023];
		var0007 = [0x0000, 0x0014, 0x0014];
		goto labelFunc0871_0292;
	labelFunc0871_00A3:
		if(!(var0003 == 0x0002)) goto labelFunc0871_00EC;
		var0004 = ["nothing", "Awaken", "Heal"];
		var0005 = [0x0000, 0x0008, 0x000D];
		var0006 = [0x0000, 0x0041, 0x004B];
		var0007 = [0x0000, 0x001E, 0x0026];
		goto labelFunc0871_0292;
	labelFunc0871_00EC:
		if(!(var0003 == 0x0003)) goto labelFunc0871_0135;
		var0004 = ["nothing", "Enchant Missiles", "Translate"];
		var0005 = [0x0000, 0x0012, 0x0017];
		var0006 = [0x0000, 0x0096, 0x00AF];
		var0007 = [0x0000, 0x0050, 0x0055];
		goto labelFunc0871_0292;
	labelFunc0871_0135:
		if(!(var0003 == 0x0004)) goto labelFunc0871_01B7;
		if(!gflags[00FF]) goto labelFunc0871_0184;
		var0004 = ["nothing", "Create Soul Prism", "Transcribe"];
		var0005 = [0x0000, 0x001B, 0x001E];
		var0006 = [0x0000, 0x012C, 0x00DC];
		var0007 = [0x0000, 0x00C8, 0x0082];
		goto labelFunc0871_01B4;
	labelFunc0871_0184:
		var0004 = ["nothing", "Transcribe"];
		var0005 = [0x0000, 0x001E];
		var0006 = [0x0000, 0x00DC];
		var0007 = [0x0000, 0x0082];
	labelFunc0871_01B4:
		goto labelFunc0871_0292;
	labelFunc0871_01B7:
		if(!(var0003 == 0x0005)) goto labelFunc0871_01F4;
		var0004 = ["nothing", "Great Heal"];
		var0005 = [0x0000, 0x0023];
		var0006 = [0x0000, 0x00FA];
		var0007 = [0x0000, 0x0082];
		goto labelFunc0871_0292;
	labelFunc0871_01F4:
		if(!(var0003 == 0x0006)) goto labelFunc0871_0249;
		var0004 = ["nothing", "Betray", "Cause Fear", "Create Automata"];
		var0005 = [0x0000, 0x0028, 0x002A, 0x002F];
		var0006 = [0x0000, 0x011D, 0x012C, 0x02EE];
		var0007 = [0x0000, 0x0096, 0x00AF, 0x0226];
		goto labelFunc0871_0292;
	labelFunc0871_0249:
		if(!(var0003 == 0x0007)) goto labelFunc0871_0292;
		var0004 = ["nothing", "Mass Might", "Lightning"];
		var0005 = [0x0000, 0x0033, 0x0037];
		var0006 = [0x0000, 0x0190, 0x015E];
		var0007 = [0x0000, 0x00C8, 0x00C8];
		goto labelFunc0871_0292;
	labelFunc0871_0292:
		UcMessage("\"What spell art thou interested in?\"");
		UcSay;
		var0008 = Func0957(var0004);
		if(!(var0008 == 0x0001)) goto labelFunc0871_02B0;
		UcMessage("\"Very well...\"");
		UcSay;
		goto labelFunc0871_03A3;
	labelFunc0871_02B0:
		var0009 = var0005[var0008];
		var000A = var0006[var0008];
		var000B = var0007[var0008];
		var000C = var0004[var0008];
		if(!(var000A == var000B)) goto labelFunc0871_0314;
		UcMessage("\"The ");
		UcMessage(var000C);
		UcMessage(" spell will cost ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Is this acceptable?\"");
		UcSay;
		var000D = 0x0000;
		if(!(Func0955() == true)) goto labelFunc0871_0311;
		var000D = Func096F(var0009, var0002, var000A);
	labelFunc0871_0311:
		goto labelFunc0871_0355;
	labelFunc0871_0314:
		UcMessage("\"The price for the ");
		UcMessage(var000C);
		UcMessage(" spell is ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var0001);
		UcMessage(". Dost thou find this acceptable?\"");
		UcSay;
		var000E = Func0872(var000A, var000B);
		var000D = 0x0000;
		if(!(var000E > 0x0000)) goto labelFunc0871_0355;
		var000D = Func096F(var0009, var0002, var000E);
	labelFunc0871_0355:
		if(!(var000D == 0x0001)) goto labelFunc0871_0366;
		UcMessage("\"Done!\"");
		UcSay;
		goto labelFunc0871_03A3;
	labelFunc0871_0366:
		if(!(var000D == 0x0002)) goto labelFunc0871_037B;
		UcMessage("\"Thou dost not have a spellbook.\"");
		UcSay;
		var0000 = false;
		goto labelFunc0871_03B0;
	labelFunc0871_037B:
		if(!(var000D == 0x0003)) goto labelFunc0871_0392;
		UcMessage("\"Thou dost not have enough ");
		UcMessage(var0001);
		UcMessage(" for that!\"");
		UcSay;
		goto labelFunc0871_03A3;
	labelFunc0871_0392:
		if(!(var000D == 0x0004)) goto labelFunc0871_03A3;
		UcMessage("\"Thou dost already have that spell!\"");
		UcSay;
		goto labelFunc0871_03A3;
	labelFunc0871_03A3:
		UcMessage("\"Wouldst thou like another spell?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc0871_0018;
	labelFunc0871_03B0:
		UI_pop_answers_0F();
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0955 0x955 ();

var Func0872 0x872 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	var0002 = var0001;
	var0003 = ((var0000 / 0x0003) * 0x0002);
	var0004 = (0x000F - (UI_get_npc_id_BC(0xFFDF) / 0x0002));
	var0005 = 0x0000;
	var0006 = 0x0001;
	var0007 = 0x0000;
	var0008 = 0x0002;
	var0009 = UI_get_npc_id_BC(0xFFDF);
	labelFunc0872_0048:
		if(!var0006) goto labelFunc0872_0411;
		var000A = Func0956(["yes", "no", "haggle"]);
		if(!(var000A == "no")) goto labelFunc0872_0071;
		rr = 0x0000;
		goto labelFunc0872_0084;
	labelFunc0872_0071:
		if(!(var000A == "yes")) goto labelFunc0872_0084;
		var000B = 0x0000;
		goto labelFunc0872_00D3;
	labelFunc0872_0084:
		var000C = Func0999(var0002, var0000, var0008, var0003, var0007, var0004, var0005);
		var0007 = (var0007 + 0x0001);
		var0005 = var000C[0x0004];
		var000B = var000C[0x0003];
		var000D = var0002;
		var0002 = var000C[0x0002];
		var0003 = var000C[0x0001];
	labelFunc0872_00D3:
		var000E = UI_get_random_00(0x0003);
		if(!(var000B < 0x0002)) goto labelFunc0872_0268;
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0004)))) goto labelFunc0872_012A;
		if(!(var000E == 0x0001)) goto labelFunc0872_010B;
		UcMessage("\"I do not know why, but I accept thine offer. Thou dost bargain well, friend.\"");
		UcSay;
	labelFunc0872_010B:
		if(!(var000E == 0x0002)) goto labelFunc0872_0119;
		UcMessage("\"'Twill not do my reputation any good, but I accept thine offer.\"");
		UcSay;
	labelFunc0872_0119:
		if(!(var000E == 0x0003)) goto labelFunc0872_0127;
		UcMessage("\"If thou dost tell anyone that I accepted such an offer, I will say that thou art a liar.\"");
		UcSay;
	labelFunc0872_0127:
		goto labelFunc0872_01E0;
	labelFunc0872_012A:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0003)))) goto labelFunc0872_016D;
		if(!(var000E == 0x0001)) goto labelFunc0872_014E;
		UcMessage("\"I have not had much business of late. I will accept thine offer.\"");
		UcSay;
	labelFunc0872_014E:
		if(!(var000E == 0x0002)) goto labelFunc0872_015C;
		UcMessage("\"Thou dost bargain well. I will accept this price.\"");
		UcSay;
	labelFunc0872_015C:
		if(!(var000E == 0x0003)) goto labelFunc0872_016A;
		UcMessage("\"I hope thou dost know that thou art getting a good bargain at this price.\"");
		UcSay;
	labelFunc0872_016A:
		goto labelFunc0872_01E0;
	labelFunc0872_016D:
		if(!(var0002 < (var0000 + ((var0001 - var0000) / 0x0002)))) goto labelFunc0872_01B6;
		if(!(var000E == 0x0001)) goto labelFunc0872_0197;
		UcMessage("\"Only ");
		UcMessage(var0002);
		UcMessage("??! I may as well give this away...\"");
		UcSay;
	labelFunc0872_0197:
		if(!(var000E == 0x0002)) goto labelFunc0872_01A5;
		UcMessage("\"Not bad...\"");
		UcSay;
	labelFunc0872_01A5:
		if(!(var000E == 0x0003)) goto labelFunc0872_01B3;
		UcMessage("\"Thou canst not fault me for trying to make a profit. I will accept this price.\"");
		UcSay;
	labelFunc0872_01B3:
		goto labelFunc0872_01E0;
	labelFunc0872_01B6:
		if(!(var000E == 0x0001)) goto labelFunc0872_01C4;
		UcMessage("\"I accept thine offer!\"");
		UcSay;
	labelFunc0872_01C4:
		if(!(var000E == 0x0002)) goto labelFunc0872_01D2;
		UcMessage("\"Thou art a fine customer. Please stop by any time.\"");
		UcSay;
	labelFunc0872_01D2:
		if(!(var000E == 0x0003)) goto labelFunc0872_01E0;
		UcMessage("\"'Tis a fine price by me!\"");
		UcSay;
	labelFunc0872_01E0:
		UcMessage("\"So, dost thou agree to a price of ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc0872_0211;
		if(!(var0009 > 0x0001)) goto labelFunc0872_020A;
		UI_set_npc_id_BD(0xFFDF, (var0009 - 0x0002));
	labelFunc0872_020A:
		rr = var0002;
		goto labelFunc0872_0268;
	labelFunc0872_0211:
		if(!(var000E == 0x0001)) goto labelFunc0872_021F;
		UcMessage("\"Then why didst thou come here?!\"");
		UcSay;
	labelFunc0872_021F:
		if(!(var000E == 0x0002)) goto labelFunc0872_022D;
		UcMessage("\"Thou art an ill-mannered buffoon!\"");
		UcSay;
	labelFunc0872_022D:
		if(!(var000E == 0x0003)) goto labelFunc0872_023B;
		UcMessage("\"I shall remember thy poor manners in the future! Mark my words!\"");
		UcSay;
	labelFunc0872_023B:
		if(!(0x001F < (var0009 + 0x000A))) goto labelFunc0872_0256;
		UI_set_npc_id_BD(0xFFDF, 0x001F);
		goto labelFunc0872_0264;
	labelFunc0872_0256:
		UI_set_npc_id_BD(0xFFDF, (var0009 + 0x000A));
	labelFunc0872_0264:
		rr = 0x0000;
	labelFunc0872_0268:
		if(!(var0005 == 0x0001)) goto labelFunc0872_02D8;
		if(!(var000B == 0x0005)) goto labelFunc0872_02B3;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage(" is my final offer. Dost thou agree or not?\"");
		UcSay;
		if(!(var0009 < 0x001C)) goto labelFunc0872_029E;
		UI_set_npc_id_BD(0xFFDF, (var0009 + 0x0004));
	labelFunc0872_029E:
		if(!(Func0955() == true)) goto labelFunc0872_02AA;
		rr = var0002;
	labelFunc0872_02AA:
		var0006 = 0x0000;
		goto labelFunc0872_02D5;
	labelFunc0872_02B3:
		UcMessage("\"I can offer no lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
		if(!(var0009 < 0x001E)) goto labelFunc0872_02D5;
		UI_set_npc_id_BD(0xFFDF, (var0009 + 0x0002));
	labelFunc0872_02D5:
		goto labelFunc0872_040E;
	labelFunc0872_02D8:
		if(!(var000B == 0x0002)) goto labelFunc0872_031E;
		if(!(var000E == 0x0001)) goto labelFunc0872_02F6;
		UcMessage("\"I am minded to give thee a good deal. How doth ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0872_02F6:
		if(!(var000E == 0x0002)) goto labelFunc0872_030A;
		UcMessage("\"I like the way thou dost barter. How doth ");
		UcMessage(var0002);
		UcMessage(" sound?\"");
		UcSay;
	labelFunc0872_030A:
		if(!(var000E == 0x0003)) goto labelFunc0872_031E;
		UcMessage("\"For thee only I offer ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0872_031E:
		if(!(var000B == 0x0003)) goto labelFunc0872_0364;
		if(!(var000E == 0x0001)) goto labelFunc0872_033C;
		UcMessage("\"Hmmm.... Perhaps ");
		UcMessage(var0002);
		UcMessage("?\"");
		UcSay;
	labelFunc0872_033C:
		if(!(var000E == 0x0002)) goto labelFunc0872_0350;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("? I have many expenses.\"");
		UcSay;
	labelFunc0872_0350:
		if(!(var000E == 0x0003)) goto labelFunc0872_0364;
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("? I cannot afford to be overly generous these days.\"");
		UcSay;
	labelFunc0872_0364:
		if(!(var000B == 0x0004)) goto labelFunc0872_03AA;
		if(!(var000E == 0x0001)) goto labelFunc0872_0382;
		UcMessage("\"Who dost thou think thou art dealing with -- a Mundane?! ");
		UcMessage(var0002);
		UcMessage(" and no less!\"");
		UcSay;
	labelFunc0872_0382:
		if(!(var000E == 0x0002)) goto labelFunc0872_0396;
		UcMessage("\"I will go no lower than ");
		UcMessage(var0002);
		UcMessage(". Thou dost not appreciate the work involved.\"");
		UcSay;
	labelFunc0872_0396:
		if(!(var000E == 0x0003)) goto labelFunc0872_03AA;
		UcMessage("\"This is worth at least ");
		UcMessage(var0002);
		UcMessage(". I think that thou shouldst reconsider.\"");
		UcSay;
	labelFunc0872_03AA:
		if(!(var000B == 0x0005)) goto labelFunc0872_040E;
		var0002 = var000D;
		if(!(var000E == 0x0001)) goto labelFunc0872_03CE;
		UcMessage("\"Thou must not want this very badly... My previous offer stands, at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0872_03CE:
		if(!(var000E == 0x0002)) goto labelFunc0872_03E2;
		UcMessage("\"Thou art a fool if thou dost think that I will go lower than ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0872_03E2:
		if(!(var000E == 0x0003)) goto labelFunc0872_03F6;
		UcMessage("\"I would sooner starve! Mine offer stands at ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0872_03F6:
		if(!(var0009 < 0x001F)) goto labelFunc0872_040E;
		UI_set_npc_id_BD(0xFFDF, (var0009 + 0x0001));
	labelFunc0872_040E:
		goto labelFunc0872_0048;
	labelFunc0872_0411:
		return rr;
}
// externs
extern var Func0953 0x953 ();
extern var Func0956 0x956 (var var0000);
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func096E 0x96E (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func0963 0x963 (var var0000, var var0001);
extern Func0960 0x960 (var var0000, var var0001);

Func0873 0x873 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0000 = Func0953();
	var0001 = 0x0284;
	var0002 = [0x0000, 0x0004];
	var0003 = 0x00C8;
	UcMessage("\"I charge 200 gold coins to instruct students in the ways of war. Dost thou agree?\"");
	UcSay;
	var0004 = Func0956(["Yes", "No"]);
	if(!(var0004 == "No")) goto labelFunc0873_0040;
	UcMessage("\"I knew thou didst lack Discipline!\"");
	UcSay;
	abrt();
	labelFunc0873_0040:
		if(!(var0004 == "Yes")) goto labelFunc0873_01DE;
		UcMessage("\"Whom dost thou wish to train?\"");
		UcSay;
		var0005 = Func098E();
		var0005 = (0x0000 & var0005);
		var0006 = ["Nobody"];
		enum();
	labelFunc0873_0068:
		for (var0009 in var0005 with var0007 to var0008 atend labelFunc0873_008F);
		if(!(!(var0009 == 0x0000))) goto labelFunc0873_008C;
		var0006 = (var0006 & UI_get_npc_name_30(var0009));
	labelFunc0873_008C:
		goto labelFunc0873_0068;
	labelFunc0873_008F:
		var000A = Func0957(var0006);
		var000A = var0005[var000A];
		var000B = UI_get_npc_number_47(var000A);
		var000C = UI_get_npc_name_30(var000A);
		if(!(var000A == 0x0000)) goto labelFunc0873_00C6;
		UcMessage("\"Thou wilt never be warrior with such weak resolve!\"");
		UcSay;
		goto labelFunc0873_01DE;
	labelFunc0873_00C6:
		var000D = Func096E(var0002, var0001, var0003, var000B, 0x0002);
		if(!(Func095C(var000A, 0x0007) < 0x0002)) goto labelFunc0873_00F1;
		var000D = 0x0000;
	labelFunc0873_00F1:
		if(!(var000D == 0x0000)) goto labelFunc0873_0116;
		if(!(var000B == 0xFE9C)) goto labelFunc0873_010C;
		UcMessage("\"Thou art not ready to learn yet!\"");
		UcSay;
		goto labelFunc0873_0116;
	labelFunc0873_010C:
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" is not ready to learn yet!\"");
		UcSay;
	labelFunc0873_0116:
		if(!(var000D == 0x0001)) goto labelFunc0873_0129;
		UcMessage("\"Thou dost not have 200 gold coins! I am not so easily cheated!");
		UcSay;
		UcMessage("\"Speak with me again when thou art serious about learning the secrets of combat.\"");
		UcSay;
		abrt();
	labelFunc0873_0129:
		if(!(var000D == 0x0002)) goto labelFunc0873_0174;
		if(!(Func095C(var000A, 0x0004) < 0x001E)) goto labelFunc0873_0146;
		goto labelFunc0873_017E;
	labelFunc0873_0146:
		if(!(Func095C(var000A, 0x0000) < 0x001E)) goto labelFunc0873_0159;
		goto labelFunc0873_017E;
	labelFunc0873_0159:
		if(!(var000B == 0xFE9C)) goto labelFunc0873_016A;
		UcMessage("\"Thou dost already possess more skill than I could teach thee!\"");
		UcSay;
		goto labelFunc0873_0174;
	labelFunc0873_016A:
		UcMessage("\"");
		UcMessage(var000C);
		UcMessage(" doth already possess more skill than I could ever teach!\"");
		UcSay;
	labelFunc0873_0174:
		if(!(var000D == 0x0003)) goto labelFunc0873_01DE;
	labelFunc0873_017E:
		UcMessage("\"Hold thy weapon at ready... Now swing... Again.");
		UcSay;
		UcMessage("\"I think I can see thy problem, ");
		UcMessage(var000C);
		UcMessage(". Thou dost hold thy weapon too tightly.");
		UcSay;
		UcMessage("\"If thou dost clutch it so thou shalt never have the proper fluidness to meet a foe's attack.");
		UcSay;
		UcMessage("\"Here, hold it like so. Seest thou? Thou hast sacrificed nothing of control, and have gained much in speed.");
		UcSay;
		UcMessage("\"I know this feels awkward. Practice with this and thou wilt see no loss of accuracy.\"");
		UcSay;
		var000E = UI_remove_party_items_34(var0003, var0001, 0xFE99, 0xFE99, true);
		if(!(Func095C(var000A, 0x0004) < 0x001E)) goto labelFunc0873_01C5;
		Func0963(var000A, 0x0001);
	labelFunc0873_01C5:
		if(!(Func095C(var000A, 0x0000) < 0x001E)) goto labelFunc0873_01DE;
		Func0960(var000A, 0x0001);
	labelFunc0873_01DE:
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func09B3 0x9B3 (var var0000);

Func0874 0x874 ()
{
	var var0000;

	if(!UI_get_cont_items_33(0xFFD3, 0xFE99, 0xFE99, 0xFE99)) goto labelFunc0874_007F;
	UcMessage("\"I still have some of thy worthless belongings. If thou wantest them, thou hadst best take them now.\"");
	UcSay;
	UcMessage("\"Dost thou want such items returned?\"");
	UcSay;
	if(!Func0955()) goto labelFunc0874_0077;
	UcMessage("\"Here they are.\"");
	UcSay;
	gflags[0016] = false;
	var0000 = Func09B3(0xFFD3);
	if(!(var0000[0x0001] != 0x0000)) goto labelFunc0874_0043;
	UcMessage("\"Thy companions will have to carry some of these useless things.\"");
	UcSay;
	labelFunc0874_0043:
		if(!(var0000[0x0002] > 0x0000)) goto labelFunc0874_0074;
		var0000 = var0000[0x0002];
		if(!(var0000 > 0x0001)) goto labelFunc0874_0070;
		UcMessage("\"Since thou canst not carry these remaining ");
		UcMessage(var0000);
		UcMessage(" items, they will go on the floor.\"");
		UcSay;
		goto labelFunc0874_0074;
	labelFunc0874_0070:
		UcMessage("\"Since thou dost not have enough room for this last item, it will go on the floor.\"");
		UcSay;
	labelFunc0874_0074:
		goto labelFunc0874_007F;
	labelFunc0874_0077:
		gflags[0016] = true;
		UcMessage("\"If that is what thou wantest, so be it.\"");
		UcSay;
	labelFunc0874_007F:
		return;
}
// externs
extern var Func0956 0x956 (var var0000);
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);
extern var Func096E 0x96E (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func0963 0x963 (var var0000, var var0001);
extern Func0960 0x960 (var var0000, var var0001);

Func0875 0x875 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = 0x03B7;
	var0001 = [0x0000, 0x0004];
	var0002 = 0x001E;
	if(!((gflags[01E1] == false) || ((gflags[01E3] == true) || (gflags[01E2] == true)))) goto labelFunc0875_0042;
	UcMessage("\"I charge 30 monetari to instruct students in my knowledge of combat. Dost thou agree?\"");
	UcSay;
	var0003 = Func0956(["Yes", "No"]);
	goto labelFunc0875_004F;
	labelFunc0875_0042:
		UcMessage("\"Since I have joined thee, I will not ask for mine usual fee!\"");
		UcSay;
		var0002 = 0x0000;
		goto labelFunc0875_0068;
	labelFunc0875_004F:
		if(!(var0003 == "No")) goto labelFunc0875_005E;
		UcMessage("\"Thou art a lout not to pay me!\"");
		UcSay;
		abrt();
	labelFunc0875_005E:
		if(!(var0003 == "Yes")) goto labelFunc0875_0216;
	labelFunc0875_0068:
		UcMessage("\"Whom dost thou wish to train?\"");
		UcSay;
		var0004 = Func098E();
		var0004 = (0x0000 & var0004);
		var0005 = ["Nobody"];
		enum();
	labelFunc0875_0086:
		for (var0008 in var0004 with var0006 to var0007 atend labelFunc0875_00AD);
		if(!(!(var0008 == 0x0000))) goto labelFunc0875_00AA;
		var0005 = (var0005 & UI_get_npc_name_30(var0008));
	labelFunc0875_00AA:
		goto labelFunc0875_0086;
	labelFunc0875_00AD:
		var0009 = Func0957(var0005);
		var0009 = var0004[var0009];
		var000A = UI_get_npc_number_47(var0009);
		var000B = UI_get_npc_name_30(var0009);
		if(!(var0009 == 0x0000)) goto labelFunc0875_00E4;
		UcMessage("\"Very well, but thou shouldst make up thy mind!\"");
		UcSay;
		goto labelFunc0875_0216;
	labelFunc0875_00E4:
		if(!(var000A == 0xFFD3)) goto labelFunc0875_00F5;
		UcMessage("\"I do not train myself!\"");
		UcSay;
		goto labelFunc0875_0216;
	labelFunc0875_00F5:
		var000C = Func096E(var0001, var0000, var0002, var000A, 0x0002);
		if(!(Func095C(var0009, 0x0007) < 0x0002)) goto labelFunc0875_0120;
		var000C = 0x0000;
	labelFunc0875_0120:
		if(!(var000C == 0x0000)) goto labelFunc0875_0145;
		if(!(var000A == 0xFE9C)) goto labelFunc0875_013B;
		UcMessage("\"Thou art not ready to learn yet!\"");
		UcSay;
		goto labelFunc0875_0145;
	labelFunc0875_013B:
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" is not ready to learn yet!\"");
		UcSay;
	labelFunc0875_0145:
		if(!(var000C == 0x0001)) goto labelFunc0875_016B;
		if(!((gflags[01E1] == false) || ((gflags[01E3] == true) || (gflags[01E2] == true)))) goto labelFunc0875_0168;
		UcMessage("\"Thou dost not have 30 monetari! Talk to me again when thou canst pay me!\"");
		UcSay;
		abrt();
	labelFunc0875_0168:
		goto labelFunc0875_01C0;
	labelFunc0875_016B:
		if(!(var000C == 0x0002)) goto labelFunc0875_01B6;
		if(!(Func095C(var0009, 0x0004) < 0x001E)) goto labelFunc0875_0188;
		goto labelFunc0875_01C0;
	labelFunc0875_0188:
		if(!(Func095C(var0009, 0x0000) < 0x001E)) goto labelFunc0875_019B;
		goto labelFunc0875_01C0;
	labelFunc0875_019B:
		if(!(var000A == 0xFE9C)) goto labelFunc0875_01AC;
		UcMessage("\"Thou dost already possess more skill than I could teach thee!\"");
		UcSay;
		goto labelFunc0875_01B6;
	labelFunc0875_01AC:
		UcMessage("\"");
		UcMessage(var000B);
		UcMessage(" doth already possess more skill than I could ever teach!\"");
		UcSay;
	labelFunc0875_01B6:
		if(!(var000C == 0x0003)) goto labelFunc0875_0216;
	labelFunc0875_01C0:
		UcMessage("\"First, let me see thy stance.\"");
		UcSay;
		UcMessage("\"Hmmm... If thou dost hold thy weapon higher, thou wilt have better leverage with which to smash thy foes.\"");
		UcSay;
		UcMessage("\"Secondly, thou shouldst always carry through with thy swing, as it will improve thy chances of recovering to land succeeding blows.\"");
		UcSay;
		UcMessage("\"I do see some improvement in thee!\"");
		UcSay;
		var000D = UI_remove_party_items_34(var0002, var0000, 0xFE99, 0xFE99, true);
		if(!(Func095C(var0009, 0x0004) < 0x001E)) goto labelFunc0875_01FD;
		Func0963(var0009, 0x0001);
	labelFunc0875_01FD:
		if(!(Func095C(var0009, 0x0000) < 0x001E)) goto labelFunc0875_0216;
		Func0960(var0009, 0x0001);
	labelFunc0875_0216:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0876 0x876 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0953();
	var0001 = (("I am " + var0000) + ".");
	if(!(!gflags[01FE])) goto labelFunc0876_0082;
	var0002 = UI_get_item_flag_A3(0xFF56, 0x001C);
	if(!var0002) goto labelFunc0876_0035;
	UcMessage("\"To be asking what you want with Zhelkas, ruler of Gargoyles! To be thinking how sad and sorry you look as you cower over to speak. To be telling you to be brave!  To be telling you to have pride.  To be telling you announce yourself.\"");
	UcSay;
	goto labelFunc0876_0047;
	labelFunc0876_0035:
		UcMessage("\"To be called ruler of gargoyles. To respond to Zhelkas. To mean `Iron Helm.'\"");
		UcSay;
		UcMessage("\"To ask who you are and why you are here.\"");
		UcSay;
		UI_set_item_flag_A4(0xFF56, 0x001C);
	labelFunc0876_0047:
		UI_add_answer_0C([var0001, "I am the Avatar.", "I am lost..."]);
		if(!(!gflags[02DA])) goto labelFunc0876_007F;
		gflags[02DA] = true;
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0004), [0x23, 0x55, 0x0377], 0x0064);
	labelFunc0876_007F:
		goto labelFunc0876_00E0;
	labelFunc0876_0082:
		UcMessage("\"To be glad to see you again, ");
		UcMessage(var0000);
		UcMessage(". To inquire what you seek from the Gargoyles this day.\"");
		UcSay;
		UI_add_answer_0C(["information", "aid"]);
		if(!(gflags[0278] == true)) goto labelFunc0876_00A8;
		UI_add_answer_0C("Serpent Staff");
	labelFunc0876_00A8:
		if(!(gflags[01FB] && (!gflags[01FA]))) goto labelFunc0876_00BA;
		UI_add_answer_0C("explain test");
	labelFunc0876_00BA:
		if(!(gflags[0201] || (gflags[01EB] && (gflags[01EC] && gflags[01ED])))) goto labelFunc0876_00E0;
		UI_add_answer_0C("leave Furnace");
		if(!gflags[01FF]) goto labelFunc0876_00E0;
		UI_remove_answer_0D("leave Furnace");
	labelFunc0876_00E0:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0877 0x877 ()
{
	var var0000;
	var var0001;

	var0000 = Func0953();
	if(!(gflags[01FD] == true)) goto labelFunc0877_0015;
	UcMessage("\"To be honored to see you, Avatar of Virtue! To be certain that you are the Hero we have dreamed about.\"");
	UcSay;
	goto labelFunc0877_001F;
	labelFunc0877_0015:
		UcMessage("\"To be certain that you are the Hero we have dreamed about, ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc0877_001F:
		UcMessage("\"To be relieved that you came before the dreaming sickness spread. To have feared that none would remain awake to give you the ring. Now it is yours.\"");
		UcSay;
		var0001 = Func099B(0xFE9C, 0x0001, 0x0377, 0xFE99, 0x0001, false, true);
		gflags[0207] = true;
		UI_add_answer_0C(["information", "aid", "dreaming sickness"]);
		return;
}
Func0878 0x878 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = [0x0673, 0x09CF];
	var0001 = [0x0683, 0x0A15];
	var0002 = [0x06CB, 0x0A27];
	var0003 = [0x06FB, 0x0A37];
	var0004 = [0x06EB, 0x0A37];
	var0005 = [0x063B, 0x0A37];
	var0006 = [0x06AB, 0x0A38];
	UI_set_new_schedules_B6(0xFF56, [0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006], [0x000B, 0x000C, 0x000C, 0x0002, 0x0001, 0x000C, 0x000C], [var0000, var0001, var0002, var0003, var0004, var0005, var0006]);
	UI_run_schedule_B7(0xFF56);
	return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0879 0x879 ()
{
	UcMessage("\"To be pleased... To bid you to go to the Pillars of Purity.\"");
	UcSay;
	UcMessage("\"To ask you to prepare yourself in virtue. Then to grasp the Pillar of Fire and let the Test begin...\"");
	UcSay;
	UcMessage("\"To admit you to the Underground City.\"");
	UcSay;
	Func097F(0xFF56, "@A moment!@", 0x0000);
	UI_set_new_schedules_B6(0xFF56, 0x0000, 0x001D, UI_get_object_position_20(0xFF56));
	UI_run_schedule_B7(0xFF56);
	abrt();
	return;
}
// externs
extern var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004);

Func087A 0x87A ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_find_nearby_41(0xFF56, 0x0203, 0x000A, 0x0000);
	if(!var0000) goto labelFunc087A_007E;
	var0001 = UI_get_item_frame_1A(var0000);
	if(!(var0001 == 0x0005)) goto labelFunc087A_004E;
	UI_set_item_frame_1B(var0000, 0x0007);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x04AA], 0x0002);
	labelFunc087A_004E:
		if(!(var0001 == 0x0007)) goto labelFunc087A_007E;
		var0003 = UI_get_object_position_20(var0000);
		UI_remove_item_84(var0000);
		var0004 = Func09AB(0x0366, 0x0004, 0xFE99, 0x0000, var0003);
	labelFunc087A_007E:
		return;
}
// externs
extern var Func0955 0x955 ();
extern var Func0956 0x956 (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func087B 0x87B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = true;
	UcMessage("\"I charge a small amount of the money exchanged. Dost thou accept?\"");
	UcSay;
	if(!Func0955()) goto labelFunc087B_0A4D;
	labelFunc087B_000E:
		if(!var0000) goto labelFunc087B_0A4A;
		UcMessage("\"What coinage dost thou want?\"");
		UcSay;
		var0001 = Func0956(["Monetari", "Guilders", "Filari", "Gold Coins"]);
		if(!(var0001 == "Monetari")) goto labelFunc087B_028E;
		UcMessage("\"What dost thou care to exchange for monetari?\"");
		UcSay;
		var0002 = 0x03B7;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc087B_0069;
		var0003 = (var0003 & "Guilders");
	labelFunc087B_0069:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc087B_0088;
		var0003 = (var0003 & "Filari");
	labelFunc087B_0088:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc087B_00A7;
		var0003 = (var0003 & "Gold Coins");
	labelFunc087B_00A7:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc087B_00BF;
		UcMessage("\"Thou shouldst do well not to waste my time so in the future! I am an important man!\"");
		UcSay;
		abrt();
	labelFunc087B_00BF:
		if(!(var0004 == "Guilders")) goto labelFunc087B_00D3;
		UcMessage("\"I can give thee 1 monetari for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc087B_00D3:
		if(!(var0004 == "Filari")) goto labelFunc087B_00E7;
		UcMessage("\"I can give thee 1 monetari for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc087B_00E7:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_00FB;
		UcMessage("\"I can give thee 1 monetari for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc087B_00FB:
		UcMessage("\"Wilt thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc087B_028A;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc087B_012A;
		var0006 = 0x01F4;
	labelFunc087B_012A:
		if(!(var0006 != 0x0000)) goto labelFunc087B_0277;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc087B_0162;
		UcMessage("\"Couldst thou please decide!?\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_0162:
		if(!(var0004 == "Guilders")) goto labelFunc087B_017C;
		var0008 = (var0007 / 0x0003);
		var0009 = 0x0006;
	labelFunc087B_017C:
		if(!(var0004 == "Filari")) goto labelFunc087B_0196;
		var0008 = (var0007 / 0x0004);
		var0009 = 0x0008;
	labelFunc087B_0196:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_01B0;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc087B_01B0:
		var000A = (var0008 / 0x0021);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc087B_01E7;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_01E7:
		if(!(var0008 == 0x0001)) goto labelFunc087B_01F8;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_01F8:
		if(!(var0008 <= 0x0021)) goto labelFunc087B_0212;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc087B_0212:
		if(!(var0007 >= 0x0001)) goto labelFunc087B_0270;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Hmmm...\"~\"Very well, I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0008);
		UcMessage(" Monetari, subtracting my fee of ");
		UcMessage(var000A);
		UcMessage(" Monetari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Monetari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The transaction is done!\"");
		UcSay;
		goto labelFunc087B_0274;
	labelFunc087B_0270:
		UcMessage("\"Couldst thou please make up thy mind!?\"");
		UcSay;
	labelFunc087B_0274:
		goto labelFunc087B_0287;
	labelFunc087B_0277:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc087B_0287:
		goto labelFunc087B_028E;
	labelFunc087B_028A:
		UcMessage("\"My rates are the same as every other moneychanger...\"");
		UcSay;
	labelFunc087B_028E:
		if(!(var0001 == "Guilders")) goto labelFunc087B_0529;
		UcMessage("\"Which coin dost thou care to exchange for guilders?\"");
		UcSay;
		var0002 = 0x03B8;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc087B_02CA;
		var0003 = (var0003 & "Monetari");
	labelFunc087B_02CA:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc087B_02E9;
		var0003 = (var0003 & "Filari");
	labelFunc087B_02E9:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc087B_0308;
		var0003 = (var0003 & "Gold Coins");
	labelFunc087B_0308:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc087B_0320;
		UcMessage("\"Thou shouldst do well not to waste my time so in the future! I am an important man!\"");
		UcSay;
		abrt();
	labelFunc087B_0320:
		if(!(var0004 == "Monetari")) goto labelFunc087B_0334;
		UcMessage("\"I can give thee 3 guilders for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc087B_0334:
		if(!(var0004 == "Filari")) goto labelFunc087B_0348;
		UcMessage("\"I can give thee 3 guilders for every 4 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc087B_0348:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_035C;
		UcMessage("\"I can give thee 3 guilders for every 2 gold coins thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc087B_035C:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc087B_0525;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc087B_038B;
		var0006 = 0x01F4;
	labelFunc087B_038B:
		if(!(var0006 != 0x0000)) goto labelFunc087B_0512;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc087B_03C3;
		UcMessage("\"Couldst thou please make a decision!?\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_03C3:
		if(!(var0004 == "Monetari")) goto labelFunc087B_03D7;
		var0008 = (var0007 * 0x0003);
	labelFunc087B_03D7:
		if(!(var0004 == "Filari")) goto labelFunc087B_03F5;
		var0008 = ((var0007 * 0x0003) / 0x0004);
		var0009 = 0x0003;
	labelFunc087B_03F5:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_0413;
		var0008 = ((var0007 * 0x0003) / 0x0002);
		var0009 = 0x0002;
	labelFunc087B_0413:
		var000A = (var0008 / 0x0021);
		var000B = (var0008 - var000A);
		var000E = "Guilders";
		var000F = "Guilders";
		if(!(var0008 == 0x0000)) goto labelFunc087B_0456;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_0456:
		if(!(var0008 == 0x0001)) goto labelFunc087B_0467;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_0467:
		if(!(var0008 <= 0x0021)) goto labelFunc087B_0481;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc087B_0481:
		if(!(var000B == 0x0001)) goto labelFunc087B_0491;
		var000E = "Guilder";
	labelFunc087B_0491:
		if(!(var000A == 0x0001)) goto labelFunc087B_04A1;
		var000F = "Guilder";
	labelFunc087B_04A1:
		if(!(var0007 >= 0x0001)) goto labelFunc087B_050B;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Hmmm...\"~\"Very well, I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0008);
		UcMessage(" Guilders, subtracting my fee of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The transaction is done!\"");
		UcSay;
		goto labelFunc087B_050F;
	labelFunc087B_050B:
		UcMessage("\"Couldst thou please make up thy mind!?\"");
		UcSay;
	labelFunc087B_050F:
		goto labelFunc087B_0522;
	labelFunc087B_0512:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc087B_0522:
		goto labelFunc087B_0529;
	labelFunc087B_0525:
		UcMessage("\"My rates are the same as every other moneychanger...\"");
		UcSay;
	labelFunc087B_0529:
		if(!(var0001 == "Filari")) goto labelFunc087B_0792;
		UcMessage("\"Which coin dost thou care to exchange for filari?\"");
		UcSay;
		var0002 = 0x03B4;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc087B_0565;
		var0003 = (var0003 & "Monetari");
	labelFunc087B_0565:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc087B_0584;
		var0003 = (var0003 & "Guilders");
	labelFunc087B_0584:
		if(!Func097D(0xFE9B, 0x0001, 0x0284, 0xFE99, 0xFE99)) goto labelFunc087B_05A3;
		var0003 = (var0003 & "Gold Coins");
	labelFunc087B_05A3:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc087B_05BB;
		UcMessage("\"Thou shouldst do well not to waste my time so in the future! I am an important man!\"");
		UcSay;
		abrt();
	labelFunc087B_05BB:
		if(!(var0004 == "Monetari")) goto labelFunc087B_05CF;
		UcMessage("\"I can give thee 4 filari for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc087B_05CF:
		if(!(var0004 == "Guilders")) goto labelFunc087B_05E3;
		UcMessage("\"I can give thee 4 filari for for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc087B_05E3:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_05F7;
		UcMessage("\"I can give thee 2 filari for every 1 gold coin thou hast.\"");
		UcSay;
		var0005 = 0x0284;
	labelFunc087B_05F7:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc087B_078E;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc087B_0626;
		var0006 = 0x01F4;
	labelFunc087B_0626:
		if(!(var0006 != 0x0000)) goto labelFunc087B_077B;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc087B_065E;
		UcMessage("\"Couldst thou please make up thy mind!?\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_065E:
		if(!(var0004 == "Monetari")) goto labelFunc087B_0672;
		var0008 = (var0007 * 0x0004);
	labelFunc087B_0672:
		if(!(var0004 == "Guilders")) goto labelFunc087B_0690;
		var0008 = ((var0007 * 0x0004) / 0x0003);
		var0009 = 0x0002;
	labelFunc087B_0690:
		if(!(var0004 == "Gold Coins")) goto labelFunc087B_06B4;
		var0008 = (var0007 * 0x0002);
		if(!(var0007 == 0x0001)) goto labelFunc087B_06B4;
		var0004 = "Gold Coin";
	labelFunc087B_06B4:
		var000A = (var0008 / 0x0021);
		var000B = (var0008 - var000A);
		if(!(var0008 == 0x0000)) goto labelFunc087B_06EB;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_06EB:
		if(!(var0008 == 0x0001)) goto labelFunc087B_06FC;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_06FC:
		if(!(var0008 <= 0x0021)) goto labelFunc087B_0716;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc087B_0716:
		if(!(var0007 >= 0x0001)) goto labelFunc087B_0774;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Hmmm...\"~\"Very well, I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0008);
		UcMessage(" Filari, subtracting my fee of ");
		UcMessage(var000A);
		UcMessage(" Filari, for a final sum of ");
		UcMessage(var000B);
		UcMessage(" Filari given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The transaction is done!\"");
		UcSay;
		goto labelFunc087B_0778;
	labelFunc087B_0774:
		UcMessage("\"Couldst thou please make up thy mind!?\"");
		UcSay;
	labelFunc087B_0778:
		goto labelFunc087B_078B;
	labelFunc087B_077B:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc087B_078B:
		goto labelFunc087B_0792;
	labelFunc087B_078E:
		UcMessage("\"My rates are the same as every other moneychanger...\"");
		UcSay;
	labelFunc087B_0792:
		if(!(var0001 == "Gold Coins")) goto labelFunc087B_0A3D;
		UcMessage("\"Which coin dost thou care to exchange for gold?\"");
		UcSay;
		var0002 = 0x0284;
		var0003 = ["Nothing"];
		if(!Func097D(0xFE9B, 0x0001, 0x03B7, 0xFE99, 0xFE99)) goto labelFunc087B_07CE;
		var0003 = (var0003 & "Monetari");
	labelFunc087B_07CE:
		if(!Func097D(0xFE9B, 0x0001, 0x03B4, 0xFE99, 0xFE99)) goto labelFunc087B_07ED;
		var0003 = (var0003 & "Filari");
	labelFunc087B_07ED:
		if(!Func097D(0xFE9B, 0x0001, 0x03B8, 0xFE99, 0xFE99)) goto labelFunc087B_080C;
		var0003 = (var0003 & "Guilders");
	labelFunc087B_080C:
		var0004 = Func0956(var0003);
		if(!(var0004 == "Nothing")) goto labelFunc087B_0824;
		UcMessage("\"Thou shouldst do well not to waste my time so in the future! I am an important man!\"");
		UcSay;
		abrt();
	labelFunc087B_0824:
		if(!(var0004 == "Monetari")) goto labelFunc087B_0838;
		UcMessage("\"I can give thee 2 gold coins for every 1 monetari thou hast.\"");
		UcSay;
		var0005 = 0x03B7;
	labelFunc087B_0838:
		if(!(var0004 == "Guilders")) goto labelFunc087B_084C;
		UcMessage("\"I can give thee 2 gold coins for every 3 guilders thou hast.\"");
		UcSay;
		var0005 = 0x03B8;
	labelFunc087B_084C:
		if(!(var0004 == "Filari")) goto labelFunc087B_0860;
		UcMessage("\"I can give thee 1 gold coin for every 2 filari thou hast.\"");
		UcSay;
		var0005 = 0x03B4;
	labelFunc087B_0860:
		if(!(var0004 == "Gold Nuggets")) goto labelFunc087B_0874;
		UcMessage("\"I can give thee 20 gold coins for every 1 gold nugget thou hast.\"");
		UcSay;
		var0005 = 0x0285;
	labelFunc087B_0874:
		UcMessage("\"Dost thou agree to my rate?\"");
		UcSay;
		if(!(Func0955() == true)) goto labelFunc087B_0A39;
		var0006 = UI_count_objects_31(0xFE9B, var0005, 0xFE99, 0xFE99);
		if(!(var0006 > 0x01F4)) goto labelFunc087B_08A3;
		var0006 = 0x01F4;
	labelFunc087B_08A3:
		if(!(var0006 != 0x0000)) goto labelFunc087B_0A26;
		UcMessage("\"How many ");
		UcMessage(var0004);
		UcMessage(" wouldst thou like to exchange?\"");
		UcSay;
		var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
		if(!(var0007 == 0x0000)) goto labelFunc087B_08DB;
		UcMessage("\"Couldst thou please decide!?\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_08DB:
		if(!(var0004 == "Monetari")) goto labelFunc087B_08EF;
		var0008 = (var0007 * 0x0002);
	labelFunc087B_08EF:
		if(!(var0004 == "Guilders")) goto labelFunc087B_090D;
		var0008 = ((var0007 * 0x0002) / 0x0003);
		var0009 = 0x0003;
	labelFunc087B_090D:
		if(!(var0004 == "Filari")) goto labelFunc087B_0927;
		var0008 = (var0007 / 0x0002);
		var0009 = 0x0004;
	labelFunc087B_0927:
		var000A = (var0008 / 0x0021);
		var000B = (var0008 - var000A);
		var000E = "Gold Coins";
		var000F = "Gold Coins";
		if(!(var0008 == 0x0000)) goto labelFunc087B_096A;
		UcMessage("\"Thou must offer at least ");
		UcMessage(var0009);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_096A:
		if(!(var0008 == 0x0001)) goto labelFunc087B_097B;
		UcMessage("\"My fee will leave thee with nothing!\"");
		UcSay;
		goto labelFunc087B_0A3D;
	labelFunc087B_097B:
		if(!(var0008 <= 0x0021)) goto labelFunc087B_0995;
		var000A = 0x0001;
		var000B = (var0008 - var000A);
	labelFunc087B_0995:
		if(!(var000B == 0x0001)) goto labelFunc087B_09A5;
		var000E = "Gold Coin";
	labelFunc087B_09A5:
		if(!(var000A == 0x0001)) goto labelFunc087B_09B5;
		var000F = "Gold Coin";
	labelFunc087B_09B5:
		if(!(var0007 >= 0x0001)) goto labelFunc087B_0A1F;
		var000C = UI_remove_party_items_34(var0007, var0005, 0xFE99, 0xFE99, false);
		UcMessage("\"Hmmm...\"~\"Very well, I will take thy ");
		UcMessage(var0007);
		UcMessage(" ");
		UcMessage(var0004);
		UcMessage(" and in exchange give thee ");
		UcMessage(var0008);
		UcMessage(" Gold Coins, subtracting my fee of ");
		UcMessage(var000A);
		UcMessage(" ");
		UcMessage(var000F);
		UcMessage(", for a final sum of ");
		UcMessage(var000B);
		UcMessage(" ");
		UcMessage(var000E);
		UcMessage(" given to thee.\"");
		UcSay;
		var000D = Func099B(0xFE9C, var000B, var0002, 0xFE99, 0xFE99, false, true);
		UcMessage("\"The transaction is done!\"");
		UcSay;
		goto labelFunc087B_0A23;
	labelFunc087B_0A1F:
		UcMessage("\"Couldst thou please make up thy mind!?\"");
		UcSay;
	labelFunc087B_0A23:
		goto labelFunc087B_0A36;
	labelFunc087B_0A26:
		UcMessage("\"Thou dost not have any ");
		UcMessage(var0004);
		UcMessage(" to exchange for ");
		UcMessage(var0001);
		UcMessage("!\"");
		UcSay;
	labelFunc087B_0A36:
		goto labelFunc087B_0A3D;
	labelFunc087B_0A39:
		UcMessage("\"My rates are the same as every other moneychanger...\"");
		UcSay;
	labelFunc087B_0A3D:
		UcMessage("\"Dost thou wish to exchange more coins?\"");
		UcSay;
		var0000 = Func0955();
		goto labelFunc087B_000E;
	labelFunc087B_0A4A:
		goto labelFunc087B_0A51;
	labelFunc087B_0A4D:
		UcMessage("\"Thou wilt find no other moneychangers with such a low fee as mine!\"");
		UcSay;
	labelFunc087B_0A51:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func087C 0x87C ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0000 = UI_find_nearby_41(item, 0x00A0, 0x000F, 0x0000);
	var0001 = false;
	enum();
	labelFunc087C_0016:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc087C_003C);
		var0005 = UI_get_item_frame_1A(var0004);
		if(!(var0005 < 0x0008)) goto labelFunc087C_0039;
		var0001 = true;
	labelFunc087C_0039:
		goto labelFunc087C_0016;
	labelFunc087C_003C:
		if(!(!var0001)) goto labelFunc087C_0056;
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"I must be near a Serpent Gate for the Amulet of Balance to work.\"");
		UcSay;
		UI_remove_npc_face0_07();
		abrt();
	labelFunc087C_0056:
		var0006 = UI_get_timer_7A(0x0007);
		if(!((!gflags[02EE]) || gflags[0313])) goto labelFunc087C_0071;
		var0006 = 0x00A8;
	labelFunc087C_0071:
		if(!(var0006 < 0x00A8)) goto labelFunc087C_00FE;
		var0007 = (0x0007 - (var0006 / 0x0018));
		var0008 = (0x0018 - (var0006 % 0x0018));
		if(!((var0006 >= 0x0090) && (var0006 < 0x00A8))) goto labelFunc087C_00AF;
		var0007 = 0x0000;
	labelFunc087C_00AF:
		UI_show_npc_face0_05(0xFE9C, 0x0000);
		UcMessage("\"It has not yet been a full week. The Amulet of Balance has not fully recharged.\"");
		UcSay;
		if(!(var0007 > 0x0000)) goto labelFunc087C_00D1;
		UcMessage("\"I cannot use it for another ");
		UcMessage(var0007);
		UcMessage(" days yet.\"");
		UcSay;
	labelFunc087C_00D1:
		if(!(var0007 == 0x0000)) goto labelFunc087C_00F6;
		if(!(var0008 > 0x0001)) goto labelFunc087C_00F2;
		UcMessage("\"I must wait another ");
		UcMessage(var0008);
		UcMessage(" hours.\"");
		UcSay;
		goto labelFunc087C_00F6;
	labelFunc087C_00F2:
		UcMessage("\"I must wait another hour.\"");
		UcSay;
	labelFunc087C_00F6:
		UI_remove_npc_face0_07();
		abrt();
		goto labelFunc087C_0105;
	labelFunc087C_00FE:
		UI_set_timer_7B(0x0007);
	labelFunc087C_0105:
		var0009 = UI_find_nearby_41(item, 0x0113, 0x0014, 0x0010);
		enum();
	labelFunc087C_0117:
		for (var000C in var0009 with var000A to var000B atend labelFunc087C_01B0);
		if(!(UI_get_item_frame_1A(var000C) == 0x0006)) goto labelFunc087C_01AD;
		UI_close_gumps_98();
		UI_clear_item_flag_A5(0xFE9C, 0x0025);
		gflags[0007] = false;
		gflags[0008] = false;
		gflags[0009] = false;
		gflags[000A] = false;
		var000D = UI_get_npc_prop_28(0xFE9C, 0x0005);
		var000D = (0x0000 - var000D);
		var000E = UI_set_npc_prop_29(0xFE9C, 0x0005, var000D);
		var000F = Func09A0(0x0000, 0x0002);
		UI_play_music_39(0x001D, var000F);
		var0010 = UI_get_object_position_20(var000C);
		Func090D(var000C, Dupre, Dupre, Dupre, 0x03BB, var000C, 0x000A);
	labelFunc087C_01AD:
		goto labelFunc087C_0117;
	labelFunc087C_01B0:
		return;
}
// externs
extern var Func0994 0x994 ();

Func087D 0x87D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!(Func0994() == 0x000D)) goto labelFunc087D_001C;
	var0000 = [0x0433, 0x09C3, 0x0002];
	goto labelFunc087D_004A;
	labelFunc087D_001C:
		if(!(Func0994() == 0x000E)) goto labelFunc087D_0038;
		var0000 = [0x090A, 0x0726, 0x0000];
		goto labelFunc087D_004A;
	labelFunc087D_0038:
		var0000 = [0x03F9, 0x0617, 0x0002];
		goto labelFunc087D_004A;
	labelFunc087D_004A:
		var0001 = UI_find_nearby_41(0xFE9C, 0x0320, 0x0041, 0x0000);
		enum();
	labelFunc087D_005E:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc087D_0081);
		if(!(UI_get_item_quality_1C(var0004) == 0x00EC)) goto labelFunc087D_007E;
		var0005 = true;
		goto labelFunc087D_00A8;
	labelFunc087D_007E:
		goto labelFunc087D_005E;
	labelFunc087D_0081:
		var0004 = UI_create_new_object_2C(0x0320);
		if(!var0004) goto labelFunc087D_00A8;
		var0006 = UI_set_item_quality_1D(var0004, 0x00EC);
		var0005 = UI_update_last_created_2F(var0000);
	labelFunc087D_00A8:
		var0007 = UI_get_party_list_2B();
		enum();
	labelFunc087D_00B0:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc087D_013E);
		var000B = UI_get_cont_items_33(var000A, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc087D_00CF:
		for (var000E in var000B with var000C to var000D atend labelFunc087D_013B);
		if(!(!((UI_get_item_shape_18(var000E) == 0x01E6) || (UI_get_item_shape_18(var000E) == 0x025F)))) goto labelFunc087D_0138;
		var0006 = UI_set_last_created_2E(var000E);
		if(!var0006) goto labelFunc087D_0138;
		if(!var0005) goto labelFunc087D_0123;
		if(!(!UI_give_last_created_43(var0004))) goto labelFunc087D_0120;
		var0006 = UI_give_last_created_42(var000A);
	labelFunc087D_0120:
		goto labelFunc087D_0138;
	labelFunc087D_0123:
		if(!(!UI_update_last_created_2F(var0000))) goto labelFunc087D_0138;
		var0006 = UI_give_last_created_42(var000A);
	labelFunc087D_0138:
		goto labelFunc087D_00CF;
	labelFunc087D_013B:
		goto labelFunc087D_00B0;
	labelFunc087D_013E:
		return;
}
var Func087E 0x87E (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var rr;

	var0002 = UI_input_numeric_value_13(0x0000, var0001, 0x0001, (var0001 / 0x0002));
	if(!((var0002 >= 0x0032) && (var0002 >= (var0001 / 0x0002)))) goto labelFunc087E_0046;
	var0003 = UI_remove_party_items_34(var0002, var0000, 0xFE99, 0xFE99, true);
	rr = true;
	goto labelFunc087E_0048;
	labelFunc087E_0046:
		rr = false;
	labelFunc087E_0048:
		return rr;
}
// externs
extern var Func0994 0x994 ();
extern Func094A 0x94A (var var0000);
extern var Func0880 0x880 (var var0000);
extern Func0624 0x624 (var var0000);
extern var Func0988 0x988 (var var0000, var var0001);

Func087F 0x87F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	UI_close_gumps_98();
	gflags[02D1] = false;
	var0001 = Func0994();
	if(!(var0001 == 0x001F)) goto labelFunc087F_002E;
	Func094A("I am weary, but I cannot fall asleep. It must be because I am already in the realm of dreams.");
	if(!Func0880(var0000)) goto labelFunc087F_002D;
	var0000;
	calle();
	labelFunc087F_002D:
		abrt();
	labelFunc087F_002E:
		if(!UI_in_combat_AB()) goto labelFunc087F_004D;
		Func094A("This is no time to sleep! Rouse thy bones!");
		if(!Func0880(var0000)) goto labelFunc087F_004A;
		var0000;
		calle();
	labelFunc087F_004A:
		goto labelFunc087F_012D;
	labelFunc087F_004D:
		var0002 = UI_get_item_frame_1A(var0000);
		var0003 = UI_get_item_shape_18(var0000);
		if(!((var0002 > 0x0003) && (!Func0880(var0000)))) goto labelFunc087F_00ED;
		var0004 = UI_get_object_position_20(var0000);
		var0005 = UI_find_nearby_41(var0000, var0003, 0x0002, 0x0000);
		enum();
	labelFunc087F_0091:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc087F_00ED);
		if(!(UI_get_item_frame_1A(var0008) <= 0x0002)) goto labelFunc087F_00EA;
		var0009 = UI_get_object_position_20(var0008);
		if(!((var0009[0x0001] == var0004[0x0001]) && ((var0009[0x0002] == var0004[0x0002]) && ((var0009[0x0003] + 0x0001) == var0004[0x0003])))) goto labelFunc087F_00EA;
		var0000 = var0008;
	labelFunc087F_00EA:
		goto labelFunc087F_0091;
	labelFunc087F_00ED:
		if(!Func0880(item)) goto labelFunc087F_010B;
		var000A = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x54, 0x0015, 0x0000]);
	labelFunc087F_010B:
		var000B = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list_2B());
		UI_set_schedule_type_25(0xFE9C, 0x000E);
		UI_nap_time_8D(var0000);
	labelFunc087F_012D:
		return;
}
var Func0880 0x880 (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = UI_get_item_frame_1A(var0000);
	var0002 = UI_get_item_shape_18(var0000);
	if(!((var0001 == 0x0015) && (var0002 == 0x03F3))) goto labelFunc0880_002B;
	rr = true;
	goto labelFunc0880_002D;
	labelFunc0880_002B:
		rr = false;
	labelFunc0880_002D:
		return rr;
}
Func0881 0x881 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000C, 0x00B0);
	var0000 = (var0000 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000C, 0x00B0));
	enum();
	labelFunc0881_002B:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0881_00CE);
		var0004 = UI_get_item_quality_1C(var0003);
		if(!((var0004 == 0x0001) || ((var0004 == 0x0002) || ((var0004 == 0x0003) || ((var0004 == 0x0004) || ((var0004 == 0x0005) || ((var0004 == 0x0006) || ((var0004 == 0x0007) || ((var0004 == 0x000B) || ((var0004 == 0x004A) || (var0004 == 0x00B8))))))))))) goto labelFunc0881_00CB;
		var0005 = 0x0002;
	labelFunc0881_0098:
		if(!(var0005 < 0x001F)) goto labelFunc0881_00CB;
		if(!(UI_get_item_frame_1A(var0003) == var0005)) goto labelFunc0881_00BE;
		UI_set_item_frame_1B(var0003, (var0005 - 0x0002));
	labelFunc0881_00BE:
		var0005 = (var0005 + 0x0004);
		goto labelFunc0881_0098;
	labelFunc0881_00CB:
		goto labelFunc0881_002B;
	labelFunc0881_00CE:
		return;
}
Func0882 0x882 ()
{
	var var0000;
	var var0001;

	var0000 = UI_get_object_position_20(0xFE9C);
	gflags[02EA] = false;
	gflags[02EB] = false;
	gflags[02EC] = false;
	var0001 = UI_create_new_object_2C(0x037F);
	if(!var0001) goto labelFunc0882_0041;
	var0001 = UI_update_last_created_2F(var0000);
	UI_play_sound_effect_16(0x0029);
	UI_set_item_flag_A4(var0001, 0x0012);
	labelFunc0882_0041:
		return;
}
Func0883 0x883 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(item, 0x0113, 0x0028, 0x0010);
	enum();
	labelFunc0883_0012:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0883_0035);
		if(!(UI_get_item_frame_1A(var0003) == 0x0007)) goto labelFunc0883_0032;
		UI_remove_item_84(var0003);
	labelFunc0883_0032:
		goto labelFunc0883_0012;
	labelFunc0883_0035:
		var0004 = UI_find_nearby_41(item, 0x02D8, 0x0032, 0x0000);
		enum();
	labelFunc0883_0047:
		for (var0003 in var0004 with var0005 to var0006 atend labelFunc0883_008C);
		var0007 = UI_get_object_position_20(var0003);
		UI_play_sound_effect_16(0x0021);
		UI_sprite_effect_68(0x001E, var0007[0x0001], var0007[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0003);
		goto labelFunc0883_0047;
	labelFunc0883_008C:
		return;
}
Func0884 0x884 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(var0000 == 0x0001)) goto labelFunc0884_0019;
	var0001 = [0x09E9, 0x0B90, 0x0000];
	labelFunc0884_0019:
		if(!(var0000 == 0x0002)) goto labelFunc0884_0032;
		var0001 = [0x09E9, 0x0B70, 0x0000];
	labelFunc0884_0032:
		if(!(var0000 == 0x0003)) goto labelFunc0884_004B;
		var0001 = [0x0B79, 0x0ADE, 0x0000];
	labelFunc0884_004B:
		var0002 = (UI_find_nearby_41(item, 0x010E, 0x000A, 0x0000) & UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000));
		enum();
	labelFunc0884_006C:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0884_0106);
		var0001 = UI_get_object_position_20(var0005);
		var0006 = UI_get_item_shape_18(var0005);
		UI_remove_item_84(var0005);
		if(!(var0006 == 0x010E)) goto labelFunc0884_00A5;
		var0006 = 0x0178;
		goto labelFunc0884_00AB;
	labelFunc0884_00A5:
		var0006 = 0x010E;
	labelFunc0884_00AB:
		var0007 = UI_create_new_object_2C(var0006);
		if(!var0007) goto labelFunc0884_0103;
		var0005 = UI_update_last_created_2F([var0001]);
		UI_play_sound_effect_16(0x0069);
		UI_set_item_frame_1B(var0007, 0x0007);
		if(!(var0000 == 0x0001)) goto labelFunc0884_00E7;
		gflags[02ED] = true;
	labelFunc0884_00E7:
		if(!(var0000 == 0x0002)) goto labelFunc0884_00F5;
		gflags[02EF] = true;
	labelFunc0884_00F5:
		if(!(var0000 == 0x0003)) goto labelFunc0884_0103;
		gflags[02F0] = true;
	labelFunc0884_0103:
		goto labelFunc0884_006C;
	labelFunc0884_0106:
		return;
}
// externs
extern Func095D 0x95D (var var0000);
extern Func0886 0x886 ();

Func0885 0x885 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0001 = UI_find_nearby_41(item, 0x0376, 0x0005, 0x0000);
	var0002 = UI_get_item_frame_1A(var0001);
	if(!(var0000 == 0x0004)) goto labelFunc0885_004B;
	if(!(var0002 == 0x0001)) goto labelFunc0885_004B;
	if(!((!gflags[02F2]) && (!gflags[02F3]))) goto labelFunc0885_0048;
	gflags[02F1] = true;
	Func095D(0x0032);
	goto labelFunc0885_004B;
	labelFunc0885_0048:
		Func0886();
	labelFunc0885_004B:
		if(!(var0000 == 0x0005)) goto labelFunc0885_007A;
		if(!(var0002 == 0x0000)) goto labelFunc0885_007A;
		if(!(gflags[02F1] && (!gflags[02F3]))) goto labelFunc0885_0077;
		gflags[02F2] = true;
		Func095D(0x0032);
		goto labelFunc0885_007A;
	labelFunc0885_0077:
		Func0886();
	labelFunc0885_007A:
		if(!(var0000 == 0x0006)) goto labelFunc0885_00A8;
		if(!(var0002 == 0x0001)) goto labelFunc0885_00A8;
		if(!(gflags[02F1] && gflags[02F2])) goto labelFunc0885_00A5;
		gflags[02F3] = true;
		Func095D(0x0032);
		goto labelFunc0885_00A8;
	labelFunc0885_00A5:
		Func0886();
	labelFunc0885_00A8:
		if(!(gflags[02F1] && (gflags[02F2] && gflags[02F3]))) goto labelFunc0885_00DD;
		var0003 = UI_find_nearby_41(item, 0x0386, 0x0078, 0x0000);
		enum();
	labelFunc0885_00C8:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0885_00DD);
		UI_remove_item_84(var0006);
		goto labelFunc0885_00C8;
	labelFunc0885_00DD:
		return;
}
Func0886 0x886 ()
{
	gflags[02F1] = false;
	gflags[02F2] = false;
	gflags[02F3] = false;
	return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern var Func0956 0x956 (var var0000);

Func0887 0x887 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(UI_get_item_frame_1A(var0000) == 0x0000)) goto labelFunc0887_006A;
	var0001 = UI_get_object_position_20(var0000);
	UI_remove_item_84(var0000);
	var0002 = UI_create_new_object_2C(0x03BE);
	if(!var0002) goto labelFunc0887_005B;
	var0003 = UI_remove_party_items_34(0x0001, 0x0289, 0xFE99, 0x000D, true);
	UI_set_item_frame_1B(var0002, 0x0003);
	var0004 = UI_update_last_created_2F(var0001);
	gflags[02FF] = true;
	labelFunc0887_005B:
		var0005 = [0x091F, 0x0BA1, 0x0000];
	labelFunc0887_006A:
		if(!(UI_get_item_frame_1A(var0000) == 0x0001)) goto labelFunc0887_00CE;
		var0006 = Func0992(0x0001, 0x0000, 0x0000, false);
		UI_show_npc_face0_05(var0006, 0x0000);
		UcMessage("\"Up or down?\"");
		UcSay;
		if(!(Func0956(["Up", "Down"]) == "Up")) goto labelFunc0887_00BB;
		var0005 = [0x092D, 0x0B71, 0x0000];
		goto labelFunc0887_00CA;
	labelFunc0887_00BB:
		var0005 = [0x094D, 0x0BC1, 0x0000];
	labelFunc0887_00CA:
		UI_remove_npc_face0_07();
	labelFunc0887_00CE:
		if(!(UI_get_item_frame_1A(var0000) == 0x0002)) goto labelFunc0887_00EB;
		var0005 = [0x091F, 0x0BA1, 0x0000];
	labelFunc0887_00EB:
		if(!(UI_get_item_frame_1A(var0000) == 0x0003)) goto labelFunc0887_0108;
		var0005 = [0x091F, 0x0BA1, 0x0000];
	labelFunc0887_0108:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9B, var0005);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x060D], 0x0003);
		return;
}
Func0888 0x888 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(gflags[02F5] && (gflags[02F6] && (gflags[02F7] && gflags[02F8])))) goto labelFunc0888_0082;
	var0000 = UI_find_nearby_41(item, 0x010E, 0x0014, 0x0000);
	enum();
	labelFunc0888_0024:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0888_0082);
		if(!(UI_get_item_quality_1C(var0003) == 0x00F1)) goto labelFunc0888_007F;
		var0004 = UI_get_object_position_20(var0003);
		UI_remove_item_84(var0003);
		var0005 = UI_create_new_object_2C(0x010E);
		if(!var0005) goto labelFunc0888_007F;
		var0003 = UI_update_last_created_2F([var0004]);
		UI_play_sound_effect2_A1(0x0046, var0005);
		UI_set_item_frame_1B(var0005, 0x0014);
	labelFunc0888_007F:
		goto labelFunc0888_0024;
	labelFunc0888_0082:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0889 0x889 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0001 = UI_click_on_item_3F();
	var0002 = var0001[0x0002];
	var0003 = var0001[0x0003];
	if(!(((var0002 > 0x05B3) && ((var0002 < 0x05BC) && ((var0003 > 0x03D2) && (var0003 < 0x03E1)))) || (((var0002 == 0x05B4) && ((var0003 > 0x03E0) && (var0003 < 0x03E3))) || (((var0002 == 0x05BB) && ((var0003 > 0x03E0) && (var0003 < 0x03E3))) || (((var0002 > 0x05B3) && ((var0002 < 0x05B6) && ((var0003 > 0x03E2) && (var0003 < 0x03E6)))) || (((var0002 > 0x05B9) && ((var0002 < 0x05BC) && ((var0003 > 0x03E2) && (var0003 < 0x03EC)))) || (((var0002 > 0x05A7) && ((var0002 < 0x05BA) && ((var0003 > 0x03E9) && (var0003 < 0x03EC)))) || ((var0002 > 0x05A7) && ((var0002 < 0x05B4) && ((var0003 > 0x03E3) && (var0003 < 0x03E6))))))))))) goto labelFunc0889_012C;
	var0004 = UI_find_nearest_15(0xFE9C, 0x025F, 0x001E);
	var0005 = [0x0000];
	var0006 = [0x0000];
	var0007 = Dupre;
	Func090D(var0004, var0005, var0006, var0007, 0x025F, var0000, 0x000B);
	exit2();
	labelFunc0889_012C:
		if(!(!var0001)) goto labelFunc0889_0134;
		exit2();
	labelFunc0889_0134:
		var0008 = false;
		if(!(var0001 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0889_0147;
		exit2();
	labelFunc0889_0147:
		var0009 = UI_get_item_shape_18(var0001);
		var000A = UI_get_item_frame_1A(var0001);
		if(!(var0009 == 0x02E5)) goto labelFunc0889_01C3;
		var0005 = [0x0000, 0x0001, 0x0001, 0x0000, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFC, Iolo, Shamino, Dupre];
		var0006 = [0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0001, 0x0001];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_01C3:
		if(!(var0009 == 0x02CF)) goto labelFunc0889_022B;
		var0005 = [0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Dupre];
		var0006 = [0x0000, Dupre, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFB, Iolo, Shamino, Dupre, 0x0000, Dupre];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_022B:
		if(!(var0009 == 0x019C)) goto labelFunc0889_0287;
		var000B = UI_find_nearest_15(var0001, 0x02CA, 0x0008);
		if(!var000B) goto labelFunc0889_0287;
		if(!(UI_get_item_frame_1A(var000B) != 0x0006)) goto labelFunc0889_0287;
		var0005 = [0x0001, Iolo, 0x0001, Iolo];
		var0006 = [0x0001, 0x0001, 0x0002, 0x0002];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_0287:
		if(!(var0009 == 0x02CA)) goto labelFunc0889_02E1;
		if(!(var000A != 0x0006)) goto labelFunc0889_02E1;
		var0005 = [0x0001, Iolo, Dupre, Shamino, 0x0001, Iolo, 0x0001, Iolo];
		var0006 = [Dupre, Dupre, 0x0001, 0x0001, 0xFFFA, 0xFFFA, Iolo, Iolo];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_02E1:
		if(!(((var0009 == 0x030A) && (var000A == 0x0006)) || ((var0009 == 0x0192) && (var000A == 0x0010)))) goto labelFunc0889_0351;
		if(!(UI_get_item_frame_1A(var0000) == 0x0000)) goto labelFunc0889_032B;
		UI_set_item_frame_1B(var0000, 0x0002);
		var000C = UI_set_item_quality_1D(var0000, 0x0009);
		goto labelFunc0889_0350;
	labelFunc0889_032B:
		if(!(UI_get_item_frame_1A(var0000) != 0x0006)) goto labelFunc0889_0350;
		UI_set_item_frame_1B(var0000, 0x0000);
		var000C = UI_set_item_quality_1D(var0000, 0x0000);
	labelFunc0889_0350:
		abrt();
	labelFunc0889_0351:
		if(!(var0009 == 0x0269)) goto labelFunc0889_0387;
		if(!(var000A == 0x0000)) goto labelFunc0889_0387;
		var0005 = [0xFFFB, 0xFFFB];
		var0006 = [Shamino, Dupre];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_0387:
		if(!(var0009 == 0x0102)) goto labelFunc0889_03BF;
		var0005 = [0x0000, Dupre, Shamino, Iolo];
		var0006 = [0x0002, 0x0002, 0x0002, 0x0002];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_03BF:
		if(!(var0009 == 0x01B2)) goto labelFunc0889_03F7;
		var0005 = [0x0002, 0x0002, 0x0002, 0x0002];
		var0006 = [0x0000, Dupre, Shamino, Iolo];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_03F7:
		if(!(var0009 == 0x01D6)) goto labelFunc0889_046A;
		if(!(UI_get_item_frame_1A(var0001) != 0x0000)) goto labelFunc0889_0448;
		var000D = UI_find_nearby_41(var0001, 0x01D6, 0x0002, 0x0000);
		enum();
	labelFunc0889_0423:
		for (var0010 in var000D with var000E to var000F atend labelFunc0889_0448);
		if(!(UI_get_item_frame_1A(var0010) == 0x0000)) goto labelFunc0889_0445;
		var0001 = var0010;
		goto labelFunc0889_0448;
	labelFunc0889_0445:
		goto labelFunc0889_0423;
	labelFunc0889_0448:
		var0005 = [0xFFFC, 0xFFFC];
		var0006 = [Shamino, Shamino];
		var0007 = Dupre;
		var0008 = true;
	labelFunc0889_046A:
		if(!var0008) goto labelFunc0889_0488;
		Func090D(var0001, var0005, var0006, var0007, var0009, var0000, 0x000B);
	labelFunc0889_0488:
		return;
}
// externs
extern Func08F4 0x8F4 ();
extern var Func090C 0x90C (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func062B 0x62B (var var0000);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func088A 0x88A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0001 = UI_click_on_item_3F();
	if(!(var0001 == UI_get_npc_object_23(0xFE9C))) goto labelFunc088A_0016;
	exit2();
	labelFunc088A_0016:
		if(!(var0001[0x0001] != 0x0000)) goto labelFunc088A_0470;
		if(!(UI_is_npc_3D(var0001[0x0001]) && (UI_get_npc_number_47(var0001[0x0001]) != 0xFE9C))) goto labelFunc088A_018A;
		var0002 = UI_get_item_quality_1C(var0000);
		var0003 = UI_get_npc_number_47(var0001);
		if(!(UI_get_item_frame_1A(var0000) < 0x0006)) goto labelFunc088A_0078;
		UI_set_item_frame_1B(var0000, 0x0000);
		var0004 = UI_set_item_quality_1D(var0000, 0x0000);
	labelFunc088A_0078:
		if(!var0002) goto labelFunc088A_015B;
		if(!((var0002 == 0x000D) && (var0003 == Iolo))) goto labelFunc088A_00B5;
		UI_clear_item_flag_A5(Iolo, 0x001E);
		if(!(!UI_get_item_flag_A3(Iolo, 0x0006))) goto labelFunc088A_00B2;
		UI_set_schedule_type_25(Iolo, 0x0003);
	labelFunc088A_00B2:
		Func08F4();
	labelFunc088A_00B5:
		if(!((var0002 == 0x000E) && (var0003 == Shamino))) goto labelFunc088A_00EC;
		UI_clear_item_flag_A5(Shamino, 0x001E);
		if(!(!UI_get_item_flag_A3(Shamino, 0x0006))) goto labelFunc088A_00E9;
		UI_set_schedule_type_25(Shamino, 0x0003);
	labelFunc088A_00E9:
		Func08F4();
	labelFunc088A_00EC:
		if(!((var0002 == 0x000F) && (var0003 == Dupre))) goto labelFunc088A_0123;
		UI_clear_item_flag_A5(Dupre, 0x001E);
		if(!(!UI_get_item_flag_A3(Dupre, 0x0006))) goto labelFunc088A_0120;
		UI_set_schedule_type_25(Dupre, 0x0003);
	labelFunc088A_0120:
		Func08F4();
	labelFunc088A_0123:
		if(!((var0002 == 0x000F) && (var0003 == 0xFF6B))) goto labelFunc088A_015A;
		UI_clear_item_flag_A5(0xFF6B, 0x001E);
		if(!(!UI_get_item_flag_A3(0xFF6B, 0x0006))) goto labelFunc088A_0157;
		UI_set_schedule_type_25(0xFF6B, 0x0003);
	labelFunc088A_0157:
		Func08F4();
	labelFunc088A_015A:
		exit2();
	labelFunc088A_015B:
		var0005 = Func090C(0xFE9C, var0001);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0005, 0x01, 0x6A]);
		Func097F(var0001, "@Cease and desist!@", 0x0000);
		exit2();
	labelFunc088A_018A:
		var0006 = UI_get_item_shape_18(var0001[0x0001]);
		if(!(var0006 == 0x01BD)) goto labelFunc088A_0219;
		if(!((UI_get_item_frame_1A(var0001) == 0x0001) && (UI_get_item_frame_1A(var0000) == 0x0001))) goto labelFunc088A_0218;
		var0002 = UI_get_item_quality_1C(var0000);
		if(!(var0002 == 0x000A)) goto labelFunc088A_01D9;
		UI_set_item_frame_1B(var0001, 0x0002);
	labelFunc088A_01D9:
		if(!(var0002 == 0x000B)) goto labelFunc088A_01ED;
		UI_set_item_frame_1B(var0001, 0x0003);
	labelFunc088A_01ED:
		if(!(var0002 == 0x000C)) goto labelFunc088A_0201;
		UI_set_item_frame_1B(var0001, 0x0004);
	labelFunc088A_0201:
		var0004 = UI_set_item_quality_1D(var0000, 0x0000);
		UI_set_item_frame_1B(var0000, 0x0000);
	labelFunc088A_0218:
		exit2();
	labelFunc088A_0219:
		if(!(UI_get_item_quality_1C(var0000) > 0x0000)) goto labelFunc088A_0231;
		event = 0x000A;
		var0000;
		calle();
	labelFunc088A_0231:
		var0007 = false;
		if(!((var0006 == 0x0152) || ((var0006 == 0x02BD) || (var0006 == 0x01B3)))) goto labelFunc088A_0295;
		var0008 = [0x0002, Shamino, 0x0000, 0x0002, Shamino, Shamino, 0x0000, Shamino];
		var0009 = [0x0000, Shamino, Shamino, Shamino, 0x0000, 0x0002, 0x0002, 0x0002];
		var000A = Shamino;
		var0007 = true;
	labelFunc088A_0295:
		if(!((var0006 == 0x02E3) || (var0006 == 0x0339))) goto labelFunc088A_0323;
		var0008 = [0x0001, 0x0001, 0x0001, 0x0001, 0x0000, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, Iolo, Shamino, Dupre, Dupre, 0x0000];
		var0009 = [0x0000, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, Iolo, Shamino, Dupre, 0x0000, Dupre, Dupre, Dupre, Dupre, Dupre];
		var000A = Dupre;
		var0007 = true;
	labelFunc088A_0323:
		if(!(var0006 == 0x02E5)) goto labelFunc088A_039A;
		if(!(UI_get_item_frame_1A(var0000) > 0x0000)) goto labelFunc088A_033C;
		abrt();
	labelFunc088A_033C:
		var0008 = [0x0000, 0x0001, 0x0001, 0x0000, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFC, Iolo, Shamino, Dupre];
		var0009 = [0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0001, 0x0001];
		var000A = Dupre;
		var0007 = true;
	labelFunc088A_039A:
		if(!(var0006 == 0x02CF)) goto labelFunc088A_0411;
		if(!(UI_get_item_frame_1A(var0000) > 0x0000)) goto labelFunc088A_03B3;
		abrt();
	labelFunc088A_03B3:
		var0008 = [0x0001, 0x0000, 0x0001, 0x0001, 0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Dupre];
		var0009 = [0x0000, Dupre, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFB, Iolo, Shamino, Dupre, 0x0000, Dupre];
		var000A = Dupre;
		var0007 = true;
	labelFunc088A_0411:
		if(!(var0006 == 0x035F)) goto labelFunc088A_0434;
		if(!(UI_get_item_frame_1A(var0001) == 0x0010)) goto labelFunc088A_0433;
		UI_set_item_frame_1B(var0001, 0x0012);
	labelFunc088A_0433:
		exit2();
	labelFunc088A_0434:
		if(!var0007) goto labelFunc088A_0455;
		Func090D(var0001, var0008, var0009, var000A, var0006, var0001, 0x000A);
		goto labelFunc088A_046D;
	labelFunc088A_0455:
		if(!(UI_get_item_frame_1A(var0000) < 0x0006)) goto labelFunc088A_046D;
		UI_set_item_frame_1B(var0000, 0x0000);
	labelFunc088A_046D:
		goto labelFunc088A_04A6;
	labelFunc088A_0470:
		var0004 = UI_path_run_usecode_94([var0001[0x0002], var0001[0x0003], var0001[0x0004]], 0x062B, var0000, 0x000A);
		if(!(!var0004)) goto labelFunc088A_04A6;
		event = 0x000A;
		var0000;
		calle();
	labelFunc088A_04A6:
		return;
}
// externs
extern var Func090C 0x90C (var var0000, var var0001);

Func088B 0x88B (var var0000, var var0001)
{
	var var0002;
	var var0003;

	var0002 = Func090C(0xFE9C, var0001);
	var0003 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0002, 0x01, 0x6C, 0x61]);
	var0003 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x55, var0000], 0x0002);
	return;
}
Func088C 0x88C ()
{
	var var0000;
	var var0001;
	var var0002;

	var0000 = UI_find_nearby_41(0xFE9C, 0x032A, 0x0001, 0x0000);
	if(!var0000) goto labelFunc088C_005D;
	var0001 = UI_get_object_position_20(var0000);
	var0002 = UI_set_last_created_2E(var0000);
	if(!var0002) goto labelFunc088C_0059;
	var0002 = UI_give_last_created_42(0xFE9C);
	if(!(!var0002)) goto labelFunc088C_0056;
	var0002 = UI_update_last_created_2F(var0001);
	UI_flash_mouse_7F(0x0005);
	abrt();
	labelFunc088C_0056:
		goto labelFunc088C_005A;
	labelFunc088C_0059:
		abrt();
	labelFunc088C_005A:
		goto labelFunc088C_005E;
	labelFunc088C_005D:
		abrt();
	labelFunc088C_005E:
		return;
}
Func088D 0x88D (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;

	var0002 = [];
	var0003 = UI_find_nearby_41(0xFE9C, var0000, 0x000F, 0x0000);
	enum();
	labelFunc088D_001A:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc088D_0098);
		var0007 = 0x0000;
		var0008 = 0x270F;
		enum();
	labelFunc088D_0032:
		for (var000B in var0003 with var0009 to var000A atend labelFunc088D_007F);
		var0007 = (var0007 + 0x0001);
		if(!((var000B != 0x0000) && (var000B != var0001))) goto labelFunc088D_007C;
		var000C = UI_get_distance_21(var0001, var000B);
		if(!(var000C < var0008)) goto labelFunc088D_007C;
		var0008 = var000C;
		var000D = var0007;
	labelFunc088D_007C:
		goto labelFunc088D_0032;
	labelFunc088D_007F:
		var0002 = (var0002 & var0003[var000D]);
		var0003[var000D] = 0x0000;
		goto labelFunc088D_001A;
	labelFunc088D_0098:
		UI_sit_down_54(0xFE9C, var0001);
		var000E = UI_get_array_size_73(var0002);
		var000F = UI_get_party_list_2B();
		var0007 = 0x0002;
		enum();
	labelFunc088D_00BA:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc088D_0109);
		if(!((var0007 - 0x0001) > var000E)) goto labelFunc088D_00D6;
		goto labelFunc088D_0109;
	labelFunc088D_00D6:
		if(!(!(UI_get_schedule_type_24(var0012) == 0x0010))) goto labelFunc088D_00FC;
		var0013 = (var0007 - 0x0001);
		UI_sit_down_54(var0012, var0002[var0013]);
	labelFunc088D_00FC:
		var0007 = (var0007 + 0x0001);
		goto labelFunc088D_00BA;
	labelFunc088D_0109:
		return;
}
var Func088E 0x88E (var var0000)
{
	var rr;
	if(!(var0000 < 0x0005)) goto labelFunc088E_0018;
	var0000 = (var0000 + 0x0002);
	rr = var0000;
	labelFunc088E_0018:
		if(!(var0000 == 0x0005)) goto labelFunc088E_003B;
		if(!gflags[0001]) goto labelFunc088E_0031;
		var0000 = 0x0007;
		goto labelFunc088E_0037;
	labelFunc088E_0031:
		var0000 = 0x0001;
	labelFunc088E_0037:
		rr = var0000;
	labelFunc088E_003B:
		if(!(var0000 > 0x0005)) goto labelFunc088E_004F;
		var0000 = 0x0001;
		rr = var0000;
	labelFunc088E_004F:
		return rr;
}
var Func088F 0x88F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0001 = UI_find_nearby_41(var0000, 0xFE99, 0x000A, 0x0000);
	var0002 = [0x0316];
	enum();
	labelFunc088F_001D:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc088F_0043);
		var0006 = UI_get_item_shape_18(var0005);
		if(!in(var0006, var0002)) goto labelFunc088F_0040;
		rr = 0x0316;
	labelFunc088F_0040:
		goto labelFunc088F_001D;
	labelFunc088F_0043:
		rr = 0x00C7;
		return rr;
}
var Func0890 0x890 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc0890_0008:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc0890_0036);
		var0004 = UI_get_item_frame_1A(var0003);
		if(!((!(var0004 == 0x000A)) && (!(var0004 == 0x001A)))) goto labelFunc0890_0033;
		rr = false;
	labelFunc0890_0033:
		goto labelFunc0890_0008;
	labelFunc0890_0036:
		rr = true;
		return rr;
}
var Func0891 0x891 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = ("soup" & ("*" & ("eruption" & ("*" & ("quagmire" & ("*" & ("bureaucracy" & ("bureaucracies" & ("hoe" & "*")))))))));
	var0000 = (var0000 & ("tyranny" & ("tyrannies" & ("monarchy" & ("monarchies" & ("hammer" & ("*" & ("sickle" & ("*" & ("imperialism" & "*"))))))))));
	var0000 = (var0000 & ("axle" & ("*" & ("wheel" & ("*" & ("Gump" & ("*" & ("lenticular cloud" & ("*" & ("clock" & ("*" & ("sloop" & ("*" & ("barge" & "*"))))))))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0002));
	var0002 = var0000[((var0001 * 0x0002) - 0x0001)];
	var0003 = var0000[(var0001 * 0x0002)];
	if(!(var0003 == "*")) goto labelFunc0891_00DD;
	var0003 = (var0002 + "s");
	labelFunc0891_00DD:
		rr = [var0002, var0003];
		return rr;
}
var Func0892 0x892 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = ("cage" & ("*" & ("flagpole" & ("*" & ("digit" & ("*" & ("nail" & ("*" & ("epaphite" & ("*" & ("sycophant" & ("*" & ("demagogue" & "*")))))))))))));
	var0000 = (var0000 & ("prophet" & ("*" & ("profit" & ("*" & ("pus" & ("pus" & ("mulch" & ("mulch" & ("Garden Gnome" & "*"))))))))));
	var0000 = (var0000 & ("personal crisis" & ("personal crises" & ("wit" & ("*" & ("bathysphere" & ("*" & ("pudding" & ("*" & ("origami ball" & ("*" & ("communion wafer" & ("*" & ("armageddon" & ("*" & ("balloon" & "*"))))))))))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0002));
	var0002 = var0000[((var0001 * 0x0002) - 0x0001)];
	var0003 = var0000[(var0001 * 0x0002)];
	if(!(var0003 == "*")) goto labelFunc0892_00F5;
	var0003 = (var0002 + "s");
	labelFunc0892_00F5:
		rr = [var0002, var0003];
		return rr;
}
var Func0893 0x893 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = ("constipated" & ("fractured" & ("dysfunctional" & ("dyslexic" & ("diuretic" & ("glandular" & ("hormonal" & ("obtuse" & ("obese" & ("partisan" & "bilateral"))))))))));
	var0000 = (var0000 & ("symmetrical" & ("frontal" & ("superfluous" & ("saturated" & ("molar" & ("low-pressure" & ("diagnostic" & ("acidic" & ("empirical" & ("basic" & ("suicidal" & ("comforting" & "passive")))))))))))));
	var0000 = (var0000 & ("hedonistic" & ("pagan" & ("philanthropic" & ("operatic" & ("staged" & ("affected" & ("grotesque" & ("orgasmic" & ("organic" & ("pedantic" & ("imperialist" & ("Gumpy" & "dependent")))))))))))));
	var0001 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0000));
	var0002 = var0000[var0001];
	var0001 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0000));
	var0003 = var0000[var0001];
	rr = [var0002, var0003];
	return rr;
}
var Func0894 0x894 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = ("lactate" & ("lactated" & ("lactating" & ("grovel" & ("grovelled" & ("grovelling" & ("brew" & ("*" & ("*" & ("digest" & ("*" & ("*" & ("complain" & ("*" & "*"))))))))))))));
	var0000 = (var0000 & ("gump" & ("*" & ("*" & ("guffaw" & ("*" & ("*" & ("loiter" & ("*" & ("*" & ("solicit" & ("*" & "*"))))))))))));
	var0000 = (var0000 & ("represent" & ("*" & ("*" & ("conjugate" & ("conjugated" & ("conjugating" & ("sink" & ("sank" & ("*" & ("harvest" & ("*" & ("*" & ("gossip" & ("*" & ("*" & ("falsify" & ("falsified" & ("*" & ("sue" & ("sued" & "suing")))))))))))))))))))));
	var0000 = (var0000 & ("gyrate" & ("gyrated" & ("gyrating" & ("outstretch" & ("*" & ("*" & ("deflower" & ("*" & "*")))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0003));
	var0002 = var0000[((var0001 * 0x0003) - 0x0002)];
	var0003 = var0000[((var0001 * 0x0003) - 0x0001)];
	var0004 = var0000[(var0001 * 0x0003)];
	if(!(var0003 == "*")) goto labelFunc0894_0150;
	var0003 = (var0002 + "ed");
	labelFunc0894_0150:
		if(!(var0004 == "*")) goto labelFunc0894_0164;
		var0004 = (var0002 + "ing");
	labelFunc0894_0164:
		rr = [var0002, var0003, var0004];
		return rr;
}
var Func0895 0x895 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = ("collate" & ("collated" & ("collating" & ("sear" & ("*" & ("*" & ("croak" & ("*" & ("*" & ("nap" & ("napped" & ("napping" & ("work" & ("*" & ("*" & ("conjure" & ("conjured" & "conjuring")))))))))))))))));
	var0000 = (var0000 & ("campaign" & ("*" & ("*" & ("protest" & ("*" & ("*" & ("spew" & ("*" & ("*" & ("inhabit" & ("*" & ("*" & ("censor" & ("*" & "*")))))))))))))));
	var0000 = (var0000 & ("lay off" & ("laid off" & ("laying off" & ("spray" & ("*" & ("*" & ("tan" & ("tanned" & "tanning")))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0003));
	var0002 = var0000[((var0001 * 0x0003) - 0x0002)];
	var0003 = var0000[((var0001 * 0x0003) - 0x0001)];
	var0004 = var0000[(var0001 * 0x0003)];
	if(!(var0003 == "*")) goto labelFunc0895_010E;
	var0003 = (var0002 + "ed");
	labelFunc0895_010E:
		if(!(var0004 == "*")) goto labelFunc0895_0122;
		var0004 = (var0002 + "ing");
	labelFunc0895_0122:
		rr = [var0002, var0003, var0004];
		return rr;
}
var Func0896 0x896 ()
{
	var var0000;
	var var0001;
	var var0002;
	var rr;

	var0000 = ("between the sheets" & ("with a melon" & ("assuredly" & ("above thine house" & "below the ground"))));
	var0000 = (var0000 & ("with much consternation" & ("Gumpily" & ("fiscally" & ("similarly" & "throughout the universe")))));
	var0001 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0000));
	var0002 = var0000[var0001];
	rr = var0002;
	return rr;
}
var Func0897 0x897 ()
{
	var var0000;
	var var0001;
	var var0002;
	var rr;

	var0000 = ("without my knowledge" & ("without the proper permit" & ("through the ages" & "against all odds")));
	var0000 = (var0000 & ("with thy mother" & ("in a roundabout manner" & ("implicitly" & ("explicitly" & "anxiously")))));
	var0001 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0000));
	var0002 = var0000[var0001];
	rr = var0002;
	return rr;
}
var Func0898 0x898 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = ("armadillo" & ("*" & ("octopus" & ("octopi" & ("ungulate" & ("*" & ("cockatoo" & ("*" & ("ferret" & ("*" & ("weasel" & ("*" & ("bassalope" & "*")))))))))))));
	var0000 = (var0000 & ("platypus" & ("platypuses" & ("no-see-um" & ("*" & ("alpaca" & ("*" & ("mooncow" & ("*" & ("thundermoose" & ("*" & ("llama" & "*"))))))))))));
	var0000 = (var0000 & ("iguana" & ("*" & ("reptile" & ("*" & ("amphibian" & ("*" & ("mammal" & ("*" & ("invertebrate" & "*"))))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0002));
	var0002 = var0000[((var0001 * 0x0002) - 0x0001)];
	var0003 = var0000[(var0001 * 0x0002)];
	if(!(var0003 == "*")) goto labelFunc0898_00E5;
	var0003 = (var0002 + "s");
	labelFunc0898_00E5:
		rr = [var0002, var0003];
		return rr;
}
var Func0899 0x899 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = ("dicot" & ("*" & ("conifer" & ("*" & ("slug" & ("*" & ("sloth" & ("*" & ("mole-person" & ("mole-people" & ("pod-person" & ("pod-people" & ("Saxon" & ("*" & ("Dominican" & ("*" & ("Basque" & "*")))))))))))))))));
	var0000 = (var0000 & ("Gypsy" & ("Gypsies" & ("Jute" & ("*" & ("Norman" & ("*" & ("Mongol" & ("*" & ("Slav" & ("*" & ("Hindu" & ("*" & ("Christian" & ("*" & ("Albigensian" & ("*" & ("cephalopod" & ("*" & ("rock critic" & "*"))))))))))))))))))));
	var0001 = UI_die_roll_17(0x0001, (UI_get_array_size_73(var0000) / 0x0002));
	var0002 = var0000[((var0001 * 0x0002) - 0x0001)];
	var0003 = var0000[(var0001 * 0x0002)];
	if(!(var0003 == "*")) goto labelFunc0899_00E7;
	var0003 = (var0002 + "s");
	labelFunc0899_00E7:
		rr = [var0002, var0003];
		return rr;
}
var Func089A 0x89A ()
{
	var var0000;
	var var0001;
	var var0002;
	var rr;

	var0000 = ("studmuffin" & ("creampuff" & ("sot" & ("guttersnipe" & ("yellowback" & ("four-eyes" & ("goofball" & ("wretch" & ("shmuck" & ("pox" & ("twig" & ("comrade" & ("babycakes" & ("smart-guy" & ("dumpling" & ("smartypants" & "Spankamiah"))))))))))))))));
	var0001 = UI_die_roll_17(0x0001, UI_get_array_size_73(var0000));
	var0002 = var0000[var0001];
	rr = var0002;
	return rr;
}
// externs
extern var Func0891 0x891 ();
extern var Func0892 0x892 ();
extern var Func0898 0x898 ();
extern var Func0899 0x899 ();
extern var Func0893 0x893 ();
extern var Func0894 0x894 ();
extern var Func0895 0x895 ();
extern var Func0896 0x896 ();
extern var Func0897 0x897 ();
extern var Func089A 0x89A ();

var Func089B 0x89B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var rr;

	if(!UI_die_roll_17(0x0000, 0x0003)) goto labelFunc089B_002C;
	if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_0023;
	var0000 = Func0891();
	goto labelFunc089B_0029;
	labelFunc089B_0023:
		var0000 = Func0892();
	labelFunc089B_0029:
		goto labelFunc089B_0048;
	labelFunc089B_002C:
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_0042;
		var0000 = Func0898();
		goto labelFunc089B_0048;
	labelFunc089B_0042:
		var0000 = Func0899();
	labelFunc089B_0048:
		var0001 = var0000[0x0001];
		var0002 = var0000[0x0002];
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_0070;
		var0003 = Func0891();
		goto labelFunc089B_0076;
	labelFunc089B_0070:
		var0003 = Func0892();
	labelFunc089B_0076:
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_008C;
		var0004 = Func0891();
		goto labelFunc089B_0092;
	labelFunc089B_008C:
		var0004 = Func0892();
	labelFunc089B_0092:
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_00A8;
		var0005 = Func0891();
		goto labelFunc089B_00AE;
	labelFunc089B_00A8:
		var0005 = Func0892();
	labelFunc089B_00AE:
		var0005 = var0005[0x0002];
		var0000 = Func0893();
		var0006 = var0000[0x0001];
		var0007 = var0000[0x0002];
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_00E5;
		var0000 = Func0894();
		goto labelFunc089B_00EB;
	labelFunc089B_00E5:
		var0000 = Func0895();
	labelFunc089B_00EB:
		var0008 = var0000[0x0001];
		var0009 = var0000[0x0002];
		var000A = var0000[0x0003];
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_011C;
		var000B = Func0896();
		goto labelFunc089B_0122;
	labelFunc089B_011C:
		var000B = Func0897();
	labelFunc089B_0122:
		if(!UI_die_roll_17(0x0000, 0x0001)) goto labelFunc089B_0138;
		var0000 = Func0898();
		goto labelFunc089B_013E;
	labelFunc089B_0138:
		var0000 = Func0899();
	labelFunc089B_013E:
		var000C = var0000[0x0001];
		var000D = var0000[0x0002];
		var000E = Func089A();
		var0000 = UI_die_roll_17(0x0000, 0x0024);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0183;
		var000F = (((("I will show thee my " + var0006) + " ") + var0001) + " if thou wilt show me thine.");
	labelFunc089B_0183:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_01BD;
		var000F = (((((((("All of my " + var0006) + " ") + var0002) + " are ") + var000A) + " ") + var000B) + ".");
	labelFunc089B_01BD:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_01EF;
		var000F = (((((("Stop " + var000A) + " my ") + var0006) + " ") + var0001) + ", please.");
	labelFunc089B_01EF:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0221;
		var000F = (((((("Hast thou seen my " + var0001) + "? 'Tis ") + var000A) + " ") + var000B) + ".");
	labelFunc089B_0221:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_024B;
		var000F = (((("There is no " + var0001) + " for thee today, little ") + var000C) + ", only death.");
	labelFunc089B_024B:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0287;
		var0010 = UI_a_or_an_B2(var0006);
		var000F = (((((("Am I having " + var0010) + " ") + var0006) + " ") + var0001) + " yet?");
	labelFunc089B_0287:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_02C3;
		var0010 = UI_a_or_an_B2(var0006);
		var000F = (((((("Where is mine advisor? I need " + var0010) + " ") + var0006) + " ") + var0001) + " immediately.");
	labelFunc089B_02C3:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_02FD;
		var000F = (((((((("Thou hast saved my " + var0006) + " ") + var000C) + " from ") + var0001) + ", ") + var000E) + ". How can I ever repay thee?");
	labelFunc089B_02FD:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0351;
		var0010 = UI_a_or_an_B2(var0001);
		var000F = (((((((((((("^" + var0010) + " ") + var0001) + ", ") + var0010) + " ") + var0001) + ", my kingdom for ") + var0010) + " ") + var0001) + "!");
	labelFunc089B_0351:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0385;
		var0010 = UI_a_or_an_B2(var0001);
		var000F = (((("Frankly, my dear, I don't give " + var0010) + " ") + var0001) + ".");
	labelFunc089B_0385:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_03AF;
		var000F = (((("As " + var0002) + " are my witness, I'll never go ") + var0006) + " again.");
	labelFunc089B_03AF:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_03D1;
		var000F = (("Oh, my, " + var000E) + ", I don't think we're in Britannia anymore.");
	labelFunc089B_03D1:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0403;
		var000F = (((((("May I borrow thy " + var0001) + "? Mine seems to be ") + var0006) + " ") + var000B) + ".");
	labelFunc089B_0403:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0435;
		var000F = (((((("My " + var000D) + " are ") + var000A) + " ") + var000B) + ".");
	labelFunc089B_0435:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0467;
		var000F = (((((("Thou shalt know the " + var0001) + " and the ") + var0001) + " shall make thee ") + var0006) + ".");
	labelFunc089B_0467:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_04AB;
		var0010 = UI_a_or_an_B2(var000C);
		var000F = (((((((("Thou shalt not " + var0008) + " to ") + var0010) + " ") + var000C) + ", ") + var000E) + ".");
	labelFunc089B_04AB:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_04D5;
		var000F = (((("Honor thy father and thy " + var0001) + ", ") + var000E) + ".");
	labelFunc089B_04D5:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_04FF;
		var000F = (((("Thou shalt not covet thy neighbor's " + var0001) + ", ") + var000E) + ".");
	labelFunc089B_04FF:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0533;
		var0010 = UI_a_or_an_B2(var0001);
		var000F = (((("Neither a borrower nor " + var0010) + " ") + var0001) + " be.");
	labelFunc089B_0533:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0565;
		var000F = (((((("Never " + var0008) + " a gift ") + var000C) + " in the ") + var0001) + ".");
	labelFunc089B_0565:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_058F;
		var000F = (((("A fool and his " + var0001) + " are soon ") + var0006) + ".");
	labelFunc089B_058F:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_05B9;
		var000F = (((("Workers of the world, " + var0008) + "! You have nothing to lose but your ") + var0002) + "!");
	labelFunc089B_05B9:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_05DB;
		var000F = (("Ich bin ein " + var0001) + "er.");
	labelFunc089B_05DB:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0605;
		var000F = (((("Damn the " + var0002) + "! ^") + var0006) + " speed ahead!");
	labelFunc089B_0605:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_063F;
		var000F = (((((((("Ask not what thy " + var0006) + " ") + var0001) + " can do for thee, but what thou canst do for thy ") + var0006) + " ") + var0001) + ".");
	labelFunc089B_063F:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0671;
		var000F = (((((("^" + var000E) + "! ") + var000E) + "! Thou damned ") + var000C) + ".");
	labelFunc089B_0671:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_06A3;
		var000F = (((((("Let me remind thee that the " + var0002) + " of ") + var0003) + " may be more ") + var0006) + " than they appear.");
	labelFunc089B_06A3:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_06D5;
		var000F = (((((("Destroy thy " + var0006) + " and ") + var0007) + " life before it is too late, ") + var000E) + ".");
	labelFunc089B_06D5:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0723;
		var0010 = UI_a_or_an_B2(var0006);
		var0011 = UI_a_or_an_B2(var0001);
		var000F = (((((((("Mine head feels like " + var0010) + " ") + var0006) + " with ") + var0011) + " ") + var0001) + " pointed at it.");
	labelFunc089B_0723:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0755;
		var000F = (((((("Beautiful, " + var000E) + ", I shall have my ") + var0001) + " call thy ") + var0001) + ".");
	labelFunc089B_0755:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0777;
		var000F = (("No, thank thee, I'm watching my " + var0001) + " intake.");
	labelFunc089B_0777:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 >= 0x0000)) goto labelFunc089B_0977;
		var0010 = UI_a_or_an_B2(var0006);
		var0012 = (((((("Ode to " + var0010) + " ") + var0006) + " ") + var0001) + ". ");
		if(!(var0000 == 0x0000)) goto labelFunc089B_07F3;
		var000F = (((((((((((("O how the " + var000D) + " of ") + var0001) + " ") + var0008) + " ") + var000B) + " amidst the ") + var0006) + " ") + var0003) + ".");
	labelFunc089B_07F3:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0837;
		var0010 = UI_a_or_an_B2(var0006);
		var000F = (((((((("Shall I compare thee to " + var0010) + " ") + var0006) + " ") + var0001) + "? Thou art far more ") + var0007) + ".");
	labelFunc089B_0837:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_08A3;
		var0013 = UI_a_or_an_B2(var0001);
		var000F = (((((((((((((((((("To be " + var0010) + " ") + var0001) + " or not to be. That is the ") + var0003) + ". Whether 'tis nobler in the ") + var0004) + " to ") + var0008) + " the ") + var0002) + " and ") + var0005) + " of ") + var0006) + " ") + var0003) + " or...");
	labelFunc089B_08A3:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_08E9;
		var000F = ((((((((((("This morning I saw a small " + var0001) + " ") + var000A) + " ") + var000B) + ". How the seasons of ") + var0006) + " ") + var0003) + " come and go.") + " Death falls upon us all.");
	labelFunc089B_08E9:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_0913;
		var000F = (((("Rage, rage against the " + var000A) + " of the ") + var0001) + ".");
	labelFunc089B_0913:
		var0000 = (var0000 - 0x0001);
		if(!(var0000 == 0x0000)) goto labelFunc089B_096D;
		var000F = (((((((((((((((("Love in the turning " + var0001) + ". The small ") + var000D) + " ") + var0008) + " ") + var000B) + ".  The ") + var0006) + " ") + var0005) + " whisper their ") + var0007) + " muses. Oh, the turning ") + var0001) + ".");
	labelFunc089B_096D:
		var0000 = (var0000 - 0x0001);
	labelFunc089B_0977:
		rr = (var0012 + var000F);
		return rr;
}
var Func089C 0x89C (var var0000, var var0001)
{
	var rr;
	rr = ((0x0406 + var0000) + ((0x0002 - var0001) * 0x0002));
	return rr;
}
// externs
extern Func094A 0x94A (var var0000);

var Func089D 0x89D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	enum();
	labelFunc089D_0001:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc089D_00BB);
		if(!(UI_get_item_shape_18(var0003) == 0x0366)) goto labelFunc089D_00B8;
		var0004 = UI_get_object_position_20(var0003);
		var0005 = var0004[0x0001];
		var0006 = var0004[0x0002];
		var0007 = var0004[0x0003];
		var0008 = UI_find_nearby_41(var0003, 0xFE99, 0x000A, 0x0000);
		enum();
	labelFunc089D_0053:
		for (var000B in var0008 with var0009 to var000A atend labelFunc089D_00B8);
		var0004 = UI_get_object_position_20(var000B);
		if(!(var0004[0x0003] > var0007)) goto labelFunc089D_00B5;
		if(!((var0004[0x0001] <= var0005) && (var0004[0x0001] >= (var0005 - 0x0003)))) goto labelFunc089D_00B5;
		if(!((var0004[0x0002] <= var0006) && (var0004[0x0002] >= (var0006 - 0x0006)))) goto labelFunc089D_00B5;
		Func094A("I believe the bridge is blocked.");
		rr = false;
	labelFunc089D_00B5:
		goto labelFunc089D_0053;
	labelFunc089D_00B8:
		goto labelFunc089D_0001;
	labelFunc089D_00BB:
		enum();
	labelFunc089D_00BC:
		for (var0003 in var0000 with var000C to var000D atend labelFunc089D_014B);
		if(!(UI_get_item_shape_18(var0003) == 0x0366)) goto labelFunc089D_0110;
		var000E = UI_execute_usecode_array_01(var0003, [0x46, 0x0000, 0x01, 0x58, 0x0022, 0x46, 0x0001, 0x01, 0x58, 0x0022, 0x55, 0x0611, 0x01, 0x46, 0x0000, 0x01, 0x58, 0x0022]);
		goto labelFunc089D_0148;
	labelFunc089D_0110:
		var000E = UI_execute_usecode_array_01(var0003, [0x46, 0x0000, 0x01, 0x58, 0x0022, 0x55, 0x0611, 0x01, 0x46, 0x0001, 0x01, 0x58, 0x0022, 0x46, 0x0000, 0x01, 0x58, 0x0022]);
	labelFunc089D_0148:
		goto labelFunc089D_00BC;
	labelFunc089D_014B:
		if(!(UI_get_array_size_73(var0000) == 0x0000)) goto labelFunc089D_015E;
		rr = false;
		goto labelFunc089D_0160;
	labelFunc089D_015E:
		rr = true;
	labelFunc089D_0160:
		return rr;
}
// externs
extern Func094A 0x94A (var var0000);

Func089E 0x89E ()
{
	var var0000;
	var var0001;

	var0000 = UI_get_barge_6D(0xFE9C);
	if(!UI_on_barge_82()) goto labelFunc089E_0044;
	var0001 = UI_get_object_position_20(var0000);
	var0001 = var0001[0x0003];
	var0001 = UI_execute_usecode_array_01(var0000, [0x39, 0x21, 0x0B, Shamino, (0x0004 - var0001)]);
	goto labelFunc089E_004A;
	labelFunc089E_0044:
		Func094A("@I think that the floor is trying to rise. I suggest that everyone board.@");
	labelFunc089E_004A:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func089F 0x89F ()
{
	var var0000;
	var var0001;

	var0000 = UI_get_barge_6D(0xFE9C);
	if(!(!UI_on_barge_82())) goto labelFunc089F_0019;
	Func094A("@I think that the floor is trying to lower. I suggest that everyone board.@");
	exit2();
	labelFunc089F_0019:
		if(!UI_get_item_flag_A3(var0000, 0x0015)) goto labelFunc089F_0059;
		var0001 = UI_get_object_position_20(var0000);
		var0001 = var0001[0x0003];
		var0001 = UI_execute_usecode_array_01(var0000, [0x38, 0x21, 0x0B, Shamino, (var0001 - 0x0001)]);
		goto labelFunc089F_005F;
	labelFunc089F_0059:
		Func094A("@I think that something is blocking the elevator.@");
	labelFunc089F_005F:
		return;
}
// externs
extern var Func098D 0x98D ();

var Func08A0 0x8A0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0001 = 0x0001;
	var0002 = 0x0001;
	var0003 = UI_get_party_list_2B();
	var0004 = (0xFE9C & Func098D());
	if(!(var0000 < 0x0002)) goto labelFunc08A0_0074;
	var0001 = UI_get_random_00(UI_get_array_size_73(var0003));
	if(!(var0000 == 0x0000)) goto labelFunc08A0_0049;
	rr = var0003[var0001];
	goto labelFunc08A0_0071;
	labelFunc08A0_0049:
		if(!(UI_get_npc_object_23(var0004[var0002]) != var0003[var0001])) goto labelFunc08A0_006A;
		var0002 = (var0002 + 0x0001);
		goto labelFunc08A0_0049;
	labelFunc08A0_006A:
		rr = var0004[var0002];
	labelFunc08A0_0071:
		goto labelFunc08A0_0104;
	labelFunc08A0_0074:
		if(!(UI_get_array_size_73(var0003) < 0x0002)) goto labelFunc08A0_0086;
		rr = 0x0045;
	labelFunc08A0_0086:
		var0001 = UI_get_random_00(UI_get_array_size_73(var0003));
	labelFunc08A0_0094:
		if(!(var0003[var0001] == UI_get_npc_object_23(0xFE9C))) goto labelFunc08A0_00B6;
		var0001 = UI_get_random_00(UI_get_array_size_73(var0003));
		goto labelFunc08A0_0094;
	labelFunc08A0_00B6:
		if(!(var0000 == 0x0002)) goto labelFunc08A0_00CA;
		rr = var0003[var0001];
		goto labelFunc08A0_0104;
	labelFunc08A0_00CA:
		if(!(UI_get_npc_object_23(var0004[var0002]) != var0003[var0001])) goto labelFunc08A0_00FD;
		var0002 = (var0002 + 0x0001);
		if(!(var0002 > UI_get_array_size_73(var0004))) goto labelFunc08A0_00FA;
		rr = 0x0045;
	labelFunc08A0_00FA:
		goto labelFunc08A0_00CA;
	labelFunc08A0_00FD:
		rr = var0004[var0002];
	labelFunc08A0_0104:
		return rr;
}
Func08A1 0x8A1 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_object_position_20(item);
	var0001 = UI_find_nearby_41(item, 0x02D8, 0x000D, 0x00B0);
	var0002 = UI_find_nearby_41(item, 0xFE99, 0x0008, 0x0004);
	UI_sprite_effect_68(0x0004, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	var0003 = (UI_create_new_object_2C(0x00D1) & (UI_create_new_object_2C(0x00C9) & (UI_create_new_object_2C(0x00C9) & (UI_create_new_object_2C(0x00C9) & (UI_create_new_object_2C(0x00C9) & UI_create_new_object_2C(0x00C9))))));
	UI_set_item_frame_1B(var0003[0x0001], 0x000D);
	UI_set_item_frame_1B(var0003[0x0002], 0x000D);
	UI_set_item_frame_1B(var0003[0x0003], 0x000E);
	UI_set_item_frame_1B(var0003[0x0004], 0x000E);
	UI_set_item_frame_1B(var0003[0x0005], 0x000F);
	UI_set_item_frame_1B(var0003[0x0006], 0x000F);
	var0004 = [(var0000[0x0001] - 0x0003), (var0000[0x0002] + 0x0001), 0x0000];
	var0005 = UI_update_last_created_2F(var0004);
	var0004 = [(var0000[0x0001] + 0x0002), (var0000[0x0002] - 0x0002), 0x0000];
	var0005 = UI_update_last_created_2F(var0004);
	var0004 = [(var0000[0x0001] + 0x0001), (var0000[0x0002] + 0x0002), 0x0000];
	var0005 = UI_update_last_created_2F(var0004);
	var0004 = [(var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0003), 0x0000];
	var0005 = UI_update_last_created_2F(var0004);
	var0004 = [(var0000[0x0001] + 0x0003), var0000[0x0002], 0x0000];
	var0005 = UI_update_last_created_2F(var0004);
	var0005 = UI_update_last_created_2F(var0000);
	enum();
	labelFunc08A1_0193:
		for (var0008 in var0002 with var0006 to var0007 atend labelFunc08A1_01D0);
		var0009 = UI_get_npc_prop_28(var0008, 0x0003);
		var0005 = UI_apply_damage_76(UI_get_npc_prop_28(var0008, 0x0000), ((var0009 / 0x0003) * 0x0002), 0x0001, var0008);
		goto labelFunc08A1_0193;
	labelFunc08A1_01D0:
		if(!(UI_get_item_frame_1A(var0001) == 0x0001)) goto labelFunc08A1_01FF;
		UI_set_item_frame_1B(var0001, 0x0002);
		var0005 = UI_delayed_execute_usecode_array_02(var0001, [0x23, 0x52, "@Thank thee.@"], 0x0005);
	labelFunc08A1_01FF:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func08A2 0x8A2 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = 0x0001;
	var0001 = ["I feel well!", "I feel younger!", "Amazing!", "I'm not tired now!", "I am rejuvenated!", "What was that?!", "That was nice..."];
	var0002 = UI_get_party_list_2B();
	enum();
	labelFunc08A2_0029:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc08A2_00B8);
		var0006 = UI_get_object_position_20(var0005);
		var0007 = UI_get_npc_prop_28(var0005, 0x0000);
		var0008 = UI_get_npc_prop_28(var0005, 0x0003);
		var0009 = UI_set_npc_prop_29(var0005, 0x0003, (var0007 - var0008));
		UI_sprite_effect_68(0x000D, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0040);
		if(!(var0000 < 0x0008)) goto labelFunc08A2_00B5;
		Func097F(var0005, var0001[var0000], var0000);
		var0000 = (var0000 + 0x0001);
	labelFunc08A2_00B5:
		goto labelFunc08A2_0029;
	labelFunc08A2_00B8:
		gflags[02C8] = true;
		return;
}
Func08A3 0x8A3 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	if(!(gflags[02C4] && (gflags[02C5] && (gflags[02C6] && (gflags[02C7] && (gflags[02C8] && (gflags[02CA] && (gflags[02CB] && (!gflags[02CC]))))))))) goto labelFunc08A3_0098;
	var0000 = UI_find_nearby_41(item, 0x0382, 0x0019, 0x0000);
	var0001 = UI_get_object_position_20(var0000);
	var0001[0x0003] = 0x0001;
	var0002 = UI_create_new_object_2C(0x00D1);
	if(!var0002) goto labelFunc08A3_0095;
	UI_set_item_frame_1B(var0002, 0x000B);
	if(!UI_update_last_created_2F(var0001)) goto labelFunc08A3_006F;
	gflags[02CC] = true;
	labelFunc08A3_006F:
		UI_sprite_effect_68(0x0012, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x006C);
	labelFunc08A3_0095:
		goto labelFunc08A3_0104;
	labelFunc08A3_0098:
		var0000 = UI_find_nearby_41(item, 0x0382, 0x0019, 0x0000);
		var0001 = UI_get_object_position_20(var0000);
		UI_sprite_effect_68(0x0009, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002B);
		if(!(!gflags[02C9])) goto labelFunc08A3_0100;
		var0003 = UI_set_item_quality_1D(item, 0x00CD);
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x07FA], 0x0005);
	labelFunc08A3_0100:
		gflags[02C9] = true;
	labelFunc08A3_0104:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func08A4 0x8A4 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = 0x0001;
	var0001 = UI_get_party_list_2B();
	var0002 = ["Ohh, ahh!", "That feels wonderful!", "Do thou that again!", "'Tis a marvel!", "More! More!", "Wondrous!", "What a sensation!"];
	enum();
	labelFunc08A4_0029:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc08A4_0079);
		var0006 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x0015, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(var0005, var0002[var0000], var0000);
		var0000 = (var0000 + 0x0001);
		goto labelFunc08A4_0029;
	labelFunc08A4_0079:
		gflags[02CA] = true;
		return;
}
// externs
extern var Func08A0 0x8A0 (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func08A5 0x8A5 ()
{
	var var0000;

	var0000 = Func08A0(0x0001);
	UI_item_say_4D(var0000, "@Happy happy!@");
	var0000 = Func08A0(0x0001);
	Func097F(var0000, "@Joy joy!@", 0x0003);
	gflags[02CB] = true;
	return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);

Func08A6 0x8A6 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = UI_find_nearby_41(0xFE9C, 0x01E9, 0x0002, 0x00B0);
	var0001 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
	var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x00B0));
	if(!var0000) goto labelFunc08A6_008C;
	enum();
	labelFunc08A6_0044:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08A6_0089);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x00DA)) goto labelFunc08A6_0086;
		if(!(Func0906(var0004) == 0x0000)) goto labelFunc08A6_0079;
		Func0907(var0004, 0x0002);
	labelFunc08A6_0079:
		var0006 = UI_set_item_quality_1D(var0004, 0x00DC);
	labelFunc08A6_0086:
		goto labelFunc08A6_0044;
	labelFunc08A6_0089:
		goto labelFunc08A6_00D2;
	labelFunc08A6_008C:
		enum();
	labelFunc08A6_008D:
		for (var0004 in var0001 with var0007 to var0008 atend labelFunc08A6_00D2);
		var0005 = UI_get_item_quality_1C(var0004);
		if(!(var0005 == 0x00DC)) goto labelFunc08A6_00CF;
		if(!(Func0906(var0004) == 0x0002)) goto labelFunc08A6_00C2;
		Func0907(var0004, 0x0000);
	labelFunc08A6_00C2:
		var0006 = UI_set_item_quality_1D(var0004, 0x00DA);
	labelFunc08A6_00CF:
		goto labelFunc08A6_008D;
	labelFunc08A6_00D2:
		return;
}
var Func08A7 0x8A7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var rr;

	var0001 = [0x0002, 0x0003, 0x0004, 0x0005, 0x0008, 0x0009, 0x000A, 0x000B];
	var0002 = [0x0001, 0x0004, 0x0005, 0x0007, 0x0002, 0x0004, 0x0006, 0x0008];
	var0003 = UI_get_item_frame_1A(var0000);
	if(!in(var0003, var0001)) goto labelFunc08A7_007A;
	var0004 = 0x0001;
	enum();
	labelFunc08A7_0057:
		for (var0007 in var0001 with var0005 to var0006 atend labelFunc08A7_0077);
		if(!(var0003 == var0007)) goto labelFunc08A7_0074;
		rr = var0002[var0004];
		abrt();
	labelFunc08A7_0074:
		goto labelFunc08A7_0057;
	labelFunc08A7_0077:
		goto labelFunc08A7_007C;
	labelFunc08A7_007A:
		rr = false;
	labelFunc08A7_007C:
		return rr;
}
var Func08A8 0x8A8 (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = [0x0000, 0x0000, 0x0000, Dupre, 0x0001, Dupre, 0x0001, 0x0000, 0x0001, 0x0001, 0x0000, 0x0001, Dupre, 0x0001, Dupre, 0x0000, Dupre, Dupre];
	var0002 = var0001[((0x0002 * var0000) & var0001[(((0x0002 * var0000) + 0x0001) & 0x0000)])];
	rr = var0001;
	return rr;
}
Func08A9 0x8A9 ()
{
	if(!(!gflags[014C])) goto labelFunc08A9_0063;
	gflags[014C] = true;
	UI_set_new_schedules_B6(0xFFD2, [0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007], [0x0003, 0x0003, 0x0003, 0x0003, 0x0003, 0x000E], [0x03A8, 0x0728, 0x03A8, 0x06C8, 0x0448, 0x06C4, 0x0408, 0x0788, 0x03A8, 0x0728, 0x03D7, 0x075B]);
	labelFunc08A9_0063:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08AA 0x8AA ()
{
	var var0000;

	if(!gflags[01B6]) goto labelFunc08AA_0007;
	abrt();
	labelFunc08AA_0007:
		if(!(gflags[018F] && (gflags[015D] && (gflags[0190] && ((((((((((((UI_get_item_flag_A3(0xFFD2, 0x001C) + UI_get_item_flag_A3(0xFFD1, 0x001C)) + UI_get_item_flag_A3(0xFFD0, 0x001C)) + UI_get_item_flag_A3(0xFFCD, 0x001C)) + UI_get_item_flag_A3(Jendon, 0x001C)) + UI_get_item_flag_A3(0xFFCB, 0x001C)) + UI_get_item_flag_A3(Kylista, 0x001C)) + UI_get_item_flag_A3(0xFFC6, 0x001C)) + UI_get_item_flag_A3(0xFFCF, 0x001C)) + UI_get_item_flag_A3(0xFFCE, 0x001C)) + UI_get_item_flag_A3(0xFFC3, 0x001C)) > 0x0004) && UI_npc_nearby_3A(Iolo)))))) goto labelFunc08AA_00BB;
		var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0435], 0x00C8);
		gflags[01B6] = true;
	labelFunc08AA_00BB:
		return;
}
// externs
extern var Func0994 0x994 ();
extern Func09AD 0x9AD (var var0000);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08AB 0x8AB ()
{
	var var0000;

	if(!((Func0994() == 0x0003) && ((!UI_get_item_flag_A3(0xFFC7, 0x0004)) && (gflags[0190] && UI_get_item_flag_A3(Jendon, 0x001C))))) goto labelFunc08AB_0063;
	var0000 = UI_approach_avatar_BF(0xFFC7, 0x0078, 0x0028);
	if(!var0000) goto labelFunc08AB_0063;
	Func09AD(0xFFC7);
	gflags[015D] = true;
	var0000 = UI_delayed_execute_usecode_array_02(Func09A0(0x0005, 0x0001), [0x23, 0x55, 0x0439], 0x0032);
	abrt();
	labelFunc08AB_0063:
		if(!(gflags[018F] && (gflags[015D] && (gflags[0190] && ((((((((((((UI_get_item_flag_A3(0xFFD2, 0x001C) + UI_get_item_flag_A3(0xFFD1, 0x001C)) + UI_get_item_flag_A3(0xFFD0, 0x001C)) + UI_get_item_flag_A3(0xFFCF, 0x001C)) + UI_get_item_flag_A3(0xFFCE, 0x001C)) + UI_get_item_flag_A3(0xFFCD, 0x001C)) + UI_get_item_flag_A3(Jendon, 0x001C)) + UI_get_item_flag_A3(0xFFCB, 0x001C)) + UI_get_item_flag_A3(0xFFC7, 0x001C)) + UI_get_item_flag_A3(Kylista, 0x001C)) + UI_get_item_flag_A3(0xFFC6, 0x001C)) + UI_get_item_flag_A3(0xFFC3, 0x001C)) > 0x0004))))) goto labelFunc08AB_0125;
		UI_modify_schedule_B5(0xFFCB, 0x0004, 0x000A, [0x040E, 0x06BF]);
		UI_modify_schedule_B5(0xFFCB, 0x0005, 0x000A, [0x040E, 0x06BF]);
	labelFunc08AB_0125:
		return;
}
var Func08AC 0x8AC (var var0000)
{
	var rr;
	if(!(gflags[0173] == true)) goto labelFunc08AC_0019;
	if(!var0000) goto labelFunc08AC_0015;
	rr = Dupre;
	goto labelFunc08AC_0019;
	labelFunc08AC_0015:
		rr = "Dupre";
	labelFunc08AC_0019:
		if(!(gflags[0174] == true)) goto labelFunc08AC_0032;
		if(!var0000) goto labelFunc08AC_002E;
		rr = Iolo;
		goto labelFunc08AC_0032;
	labelFunc08AC_002E:
		rr = "Iolo";
	labelFunc08AC_0032:
		if(!(gflags[0175] == true)) goto labelFunc08AC_004B;
		if(!var0000) goto labelFunc08AC_0047;
		rr = Shamino;
		goto labelFunc08AC_004B;
	labelFunc08AC_0047:
		rr = "Shamino";
	labelFunc08AC_004B:
		rr = false;
		return rr;
}
// externs
extern Func0620 0x620 (var var0000);
extern Func094F 0x94F (var var0000, var var0001);
extern Func0971 0x971 (var var0000);
extern Func0945 0x945 (var var0000);
extern var Func0983 0x983 (var var0000);

Func08AD 0x8AD (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0004 = UI_get_party_list_2B();
	var0005 = UI_get_item_shape_18(var0003);
	var0006 = UI_get_item_frame_1A(var0003);
	var0007 = UI_get_item_shape_18(var0000);
	if(!(in(var0000, var0004) && ((var0007 == 0x02EB) || (var0007 == 0x0292)))) goto labelFunc08AD_004A;
	UI_item_say_4D(var0000, "@I do not require food.@");
	abrt();
	labelFunc08AD_004A:
		if(!(in(var0000, var0004) && ((!UI_get_item_flag_A3(var0000, 0x0001)) && ((!UI_get_item_flag_A3(var0000, 0x0007)) && (!UI_get_item_flag_A3(var0000, 0x0004)))))) goto labelFunc08AD_0311;
		if(!((var0005 == 0x0268) && (var0006 == 0x0009))) goto labelFunc08AD_00EE;
		UI_halt_scheduled_71(var0000);
		var0000;
		calle();
		var0008 = UI_execute_usecode_array_01(var0000, [0x23, 0x27, 0x0005, 0x6C, 0x27, 0x0004, 0x6D, 0x27, 0x0004, 0x61]);
		Func094F(var0000, ["@Ohh!@", "@Eeehhh!@", "@Bleh!@", "@Gak!@"]);
		var0008 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0795], 0x000D);
		Func0971(var0003);
		exit2();
	labelFunc08AD_00EE:
		if(!((var0005 == 0x0194) && (var0006 == 0x0003))) goto labelFunc08AD_0118;
		var0009 = ("@I should eat that?@" & ("@Raw?@" & "@Not likely!@"));
		Func094F(var0000, var0009);
		abrt();
	labelFunc08AD_0118:
		var000A = UI_get_npc_prop_28(var0000, 0x0009);
		var000B = (var000A + var0002);
		if(!(var000A > 0x0018)) goto labelFunc08AD_0142;
		var000C = "@No, thank thee.@";
		goto labelFunc08AD_0288;
	labelFunc08AD_0142:
		Func0945(var0003);
		if(!((UI_get_item_shape_18(var0003) == 0x0268) && (UI_get_item_frame_1A(var0003) == 0x0014))) goto labelFunc08AD_016F;
		UI_play_sound_effect2_A1(var0001, var0003);
		goto labelFunc08AD_017F;
	labelFunc08AD_016F:
		UI_play_sound_effect2_A1(var0001, var0003);
		Func0971(var0003);
	labelFunc08AD_017F:
		var000D = UI_get_random_00(0x000A);
		if(!(var000A <= 0x0004)) goto labelFunc08AD_0233;
		if(!(var000B <= 0x0004)) goto labelFunc08AD_01BA;
		var000C = "@More!@";
		if(!(var000D < 0x0006)) goto labelFunc08AD_01B7;
		var000C = (var000C & "@I must have more!@");
	labelFunc08AD_01B7:
		goto labelFunc08AD_0288;
	labelFunc08AD_01BA:
		if(!(var000B < 0x000A)) goto labelFunc08AD_01F0;
		var000C = "@I am still hungry.@";
		if(!(var000D < 0x0006)) goto labelFunc08AD_01ED;
		if(!(!(var0000 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc08AD_01ED;
		var000C = (var000C & "@May I have some more?@");
	labelFunc08AD_01ED:
		goto labelFunc08AD_0288;
	labelFunc08AD_01F0:
		if(!(var000B < 0x0014)) goto labelFunc08AD_0216;
		if(!(var0005 == 0x034A)) goto labelFunc08AD_020D;
		var000C = "@Yum, garlic!@";
		goto labelFunc08AD_0213;
	labelFunc08AD_020D:
		var000C = "@Ah yes, much better.@";
	labelFunc08AD_0213:
		goto labelFunc08AD_0288;
	labelFunc08AD_0216:
		var000C = "@That did satisfy me!@";
		if(!(var000D < 0x0006)) goto labelFunc08AD_0230;
		var000C = (var000C & "@Burp@");
	labelFunc08AD_0230:
		goto labelFunc08AD_0288;
	labelFunc08AD_0233:
		if(!(var000A < 0x0014)) goto labelFunc08AD_0275;
		if(!(var0005 == 0x034A)) goto labelFunc08AD_0250;
		var000C = "@Yum, garlic!@";
		goto labelFunc08AD_0256;
	labelFunc08AD_0250:
		var000C = "@Ahh, very tasty.@";
	labelFunc08AD_0256:
		if(!((var000B > 0x0018) && (var000D < 0x0003))) goto labelFunc08AD_0272;
		var000C = (var000C & "@Belch@");
	labelFunc08AD_0272:
		goto labelFunc08AD_0288;
	labelFunc08AD_0275:
		if(!(var000D < 0x0005)) goto labelFunc08AD_0288;
		var000C = "@I shall soon be plump.@";
		goto labelFunc08AD_0288;
	labelFunc08AD_0288:
		if(!((var0005 == 0x0179) && ((var0006 == 0x001F) && (var000A < 0x0019)))) goto labelFunc08AD_02B8;
		var000C = (var000C & ("@It is very crunchy...@" & ("@Strange taste...@" & ("" & "@How very filling!@"))));
	labelFunc08AD_02B8:
		if(!(!(var000C == ""))) goto labelFunc08AD_02EC;
		if(!Func0983(var0000)) goto labelFunc08AD_02EC;
		if(!((event != 0x0008) || (var000A < 0x0019))) goto labelFunc08AD_02EC;
		UI_clear_item_say_4E(var0000);
		Func094F(var0000, var000C);
	labelFunc08AD_02EC:
		if(!(var000A < 0x0019)) goto labelFunc08AD_0306;
		var0008 = UI_set_npc_prop_29(var0000, 0x0009, var0002);
	labelFunc08AD_0306:
		if(!(var000A > 0x0018)) goto labelFunc08AD_0311;
		abrt();
	labelFunc08AD_0311:
		return;
}
// externs
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);

Func08AE 0x8AE ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = Dupre;
	var0001 = Dupre;
	var0002 = Iolo;
	var0003 = (UI_get_object_position_20(0xFF57) & (0xFE99 & 0x0006));
	var0004 = UI_find_nearby_41(var0003, 0x0113, 0x0028, 0x0010);
	enum();
	labelFunc08AE_0038:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc08AE_008A);
		if(!(UI_get_item_quality_1C(var0007) == 0x0064)) goto labelFunc08AE_0087;
		var0008 = UI_get_object_position_20(var0007);
		Func090E(0xFF57, var0007, var0000, var0001, var0002, 0x04A9, UI_get_npc_object_23(0xFF57), 0x000A, true);
		UI_set_path_failure_A7(0x04A9, item, 0x000A);
		exit2();
	labelFunc08AE_0087:
		goto labelFunc08AE_0038;
	labelFunc08AE_008A:
		enum();
	labelFunc08AE_008B:
		for (var0007 in var0004 with var0009 to var000A atend labelFunc08AE_00DD);
		if(!(UI_get_item_quality_1C(var0007) == 0x0000)) goto labelFunc08AE_00DA;
		var0008 = UI_get_object_position_20(var0007);
		Func090E(0xFF57, var0007, var0000, var0001, var0002, 0x04A9, UI_get_npc_object_23(0xFF57), 0x000A, true);
		UI_set_path_failure_A7(0x04A9, item, 0x000A);
		exit2();
	labelFunc08AE_00DA:
		goto labelFunc08AE_008B;
	labelFunc08AE_00DD:
		return;
}
// externs
extern var Func08B0 0x8B0 (var var0000, var var0001, var var0002);
extern Func08B1 0x8B1 (var var0000, var var0001, var var0002, var var0003);

Func08AF 0x8AF (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(gflags[00CF] == false)) goto labelFunc08AF_0009;
	abrt();
	labelFunc08AF_0009:
		UI_obj_sprite_effect_91(0xFE9C, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x004C);
		var0002 = 0x0001;
		var0003 = UI_get_container_83(var0001);
		if(!(!var0003)) goto labelFunc08AF_0053;
		var0002 = 0x0000;
		var0003 = UI_get_object_position_20(var0001);
	labelFunc08AF_0053:
		if(!(!var0000)) goto labelFunc08AF_005D;
		goto labelFunc08AF_014B;
	labelFunc08AF_005D:
		var0004 = UI_get_readied_BE(0xFE9C, 0x0001);
		var0005 = UI_get_readied_BE(0xFE9C, 0x0000);
		if(!(var0004 || var0005)) goto labelFunc08AF_014B;
		var0006 = Func08B0(var0004, var0005, 0x0001);
		var0006 = UI_set_last_created_2E(var0001);
		if(!(!UI_give_last_created_42(0xFE9C))) goto labelFunc08AF_010E;
		if(!var0002) goto labelFunc08AF_00B8;
		var0006 = UI_give_last_created_42(var0003);
		goto labelFunc08AF_00C2;
	labelFunc08AF_00B8:
		var0006 = UI_update_last_created_2F(var0003);
	labelFunc08AF_00C2:
		Func08B1(0xFE9C, var0001, 0x0001, 0xFF5B);
		if(!(!Func08B0(var0004, var0005, 0x0000))) goto labelFunc08AF_010B;
		var0007 = UI_get_object_position_20(0xFE9C);
		if(!var0004) goto labelFunc08AF_00FB;
		var0006 = UI_update_last_created_2F(var0007);
	labelFunc08AF_00FB:
		if(!var0005) goto labelFunc08AF_010B;
		var0006 = UI_update_last_created_2F(var0007);
	labelFunc08AF_010B:
		goto labelFunc08AF_0148;
	labelFunc08AF_010E:
		if(!(!Func08B0(var0004, var0005, 0x0000))) goto labelFunc08AF_0148;
		var0007 = UI_get_object_position_20(0xFE9C);
		if(!var0004) goto labelFunc08AF_0138;
		var0006 = UI_update_last_created_2F(var0007);
	labelFunc08AF_0138:
		if(!var0005) goto labelFunc08AF_0148;
		var0006 = UI_update_last_created_2F(var0007);
	labelFunc08AF_0148:
		goto labelFunc08AF_018C;
	labelFunc08AF_014B:
		var0006 = UI_set_last_created_2E(var0001);
		if(!(!UI_give_last_created_42(0xFE9C))) goto labelFunc08AF_018C;
		if(!var0002) goto labelFunc08AF_0173;
		var0006 = UI_give_last_created_42(var0003);
		goto labelFunc08AF_017D;
	labelFunc08AF_0173:
		var0006 = UI_update_last_created_2F(var0003);
	labelFunc08AF_017D:
		Func08B1(0xFE9C, var0001, var0002, var0003);
	labelFunc08AF_018C:
		return;
}
var Func08B0 0x8B0 (var var0000, var var0001, var var0002)
{
	var var0003;
	var rr;

	if(!var0000) goto labelFunc08B0_0033;
	var0003 = 0x0000;
	if(!var0002) goto labelFunc08B0_001C;
	var0003 = UI_set_last_created_2E(var0002);
	labelFunc08B0_001C:
		if(!var0001) goto labelFunc08B0_002C;
		var0003 = UI_set_last_created_2E(var0001);
	labelFunc08B0_002C:
		rr = var0003;
		goto labelFunc08B0_005B;
	labelFunc08B0_0033:
		var0003 = false;
		if(!var0002) goto labelFunc08B0_0047;
		var0003 = UI_give_last_created_42(0xFE9C);
	labelFunc08B0_0047:
		if(!var0001) goto labelFunc08B0_0057;
		var0003 = UI_give_last_created_42(0xFE9C);
	labelFunc08B0_0057:
		rr = var0003;
	labelFunc08B0_005B:
		return rr;
}
Func08B1 0x8B1 (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0004 = 0x0000;
	var0005 = 0x0000;
	labelFunc08B1_000C:
		var0006 = UI_get_readied_BE(var0003, var0005);
		if(!var0006) goto labelFunc08B1_0070;
		var0007 = UI_set_last_created_2E(var0006);
		if(!var0007) goto labelFunc08B1_0039;
		var0007 = UI_set_last_created_2E(var0002);
	labelFunc08B1_0039:
		var0004 = (var0004 + 0x0001);
		if(!UI_give_last_created_42(var0003)) goto labelFunc08B1_0053;
		goto labelFunc08B1_0182;
		goto labelFunc08B1_0070;
	labelFunc08B1_0053:
		if(!var0001) goto labelFunc08B1_0066;
		var0007 = UI_give_last_created_42(var0000);
		goto labelFunc08B1_0070;
	labelFunc08B1_0066:
		var0007 = UI_update_last_created_2F(var0000);
	labelFunc08B1_0070:
		if(!(var0005 == 0x0000)) goto labelFunc08B1_0083;
		var0005 = 0x0005;
		goto labelFunc08B1_000C;
	labelFunc08B1_0083:
		if(!(var0005 == 0x0005)) goto labelFunc08B1_0096;
		var0005 = 0x0010;
		goto labelFunc08B1_000C;
	labelFunc08B1_0096:
		if(!(var0005 == 0x0010)) goto labelFunc08B1_00A9;
		var0005 = 0x0011;
		goto labelFunc08B1_000C;
	labelFunc08B1_00A9:
		if(!(var0005 == 0x0011)) goto labelFunc08B1_00BC;
		var0005 = 0x000F;
		goto labelFunc08B1_000C;
	labelFunc08B1_00BC:
		if(!(var0005 == 0x000F)) goto labelFunc08B1_00CF;
		var0005 = 0x000B;
		goto labelFunc08B1_000C;
	labelFunc08B1_00CF:
		if(!(var0005 == 0x000B)) goto labelFunc08B1_00E2;
		var0005 = 0x0001;
		goto labelFunc08B1_000C;
	labelFunc08B1_00E2:
		if(!(var0005 == 0x0001)) goto labelFunc08B1_00F5;
		var0005 = 0x000C;
		goto labelFunc08B1_000C;
	labelFunc08B1_00F5:
		if(!(var0005 == 0x000C)) goto labelFunc08B1_0108;
		var0005 = 0x0004;
		goto labelFunc08B1_000C;
	labelFunc08B1_0108:
		if(!(var0005 == 0x0004)) goto labelFunc08B1_011B;
		var0005 = 0x000E;
		goto labelFunc08B1_000C;
	labelFunc08B1_011B:
		if(!(var0005 == 0x000E)) goto labelFunc08B1_012E;
		var0005 = 0x000D;
		goto labelFunc08B1_000C;
	labelFunc08B1_012E:
		if(!(var0005 == 0x000D)) goto labelFunc08B1_0141;
		var0005 = 0x0002;
		goto labelFunc08B1_000C;
	labelFunc08B1_0141:
		if(!(var0005 == 0x0002)) goto labelFunc08B1_0154;
		var0005 = 0x0003;
		goto labelFunc08B1_000C;
	labelFunc08B1_0154:
		if(!(var0005 == 0x0003)) goto labelFunc08B1_0182;
		var0007 = UI_set_last_created_2E(var0002);
		if(!var0007) goto labelFunc08B1_0182;
		var0008 = UI_get_object_position_20(var0003);
		var0007 = UI_update_last_created_2F(var0008);
	labelFunc08B1_0182:
		var0008 = UI_get_object_position_20(var0003);
		var0007 = UI_update_last_created_2F(var0008);
		var0004 = (var0004 - 0x0001);
		if(!(var0004 == 0x0000)) goto labelFunc08B1_01AE;
		exit2();
		goto labelFunc08B1_01B1;
	labelFunc08B1_01AE:
		goto labelFunc08B1_0182;
	labelFunc08B1_01B1:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);
extern Func0809 0x809 ();

Func08B2 0x8B2 ()
{
	if(!((event == 0x000D) || (event == 0x000E))) goto labelFunc08B2_0012;
	Func09AD(item);
	labelFunc08B2_0012:
		if(!UI_get_item_flag_A3(item, 0x001E)) goto labelFunc08B2_0021;
		Func0809();
		abrt();
	labelFunc08B2_0021:
		return;
}
// externs
extern var Func09A6 0x9A6 (var var0000);

Func08B3 0x8B3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	abrt();
	var0001 = UI_find_nearby_41(Shmed, 0x0320, 0x0064, 0x0000);
	var0002 = 0x0000;
	enum();
	labelFunc08B3_001B:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc08B3_003D);
		if(!(UI_get_item_quality_1C(var0005) == 0x0000)) goto labelFunc08B3_003A;
		var0002 = var0005;
	labelFunc08B3_003A:
		goto labelFunc08B3_001B;
	labelFunc08B3_003D:
		if(!(var0002 == 0x0000)) goto labelFunc08B3_0082;
		var0006 = UI_create_new_object_2C(0x0320);
		if(!var0006) goto labelFunc08B3_007B;
		var0007 = UI_set_item_quality_1D(var0006, 0x0000);
		var0007 = UI_update_last_created_2F(UI_get_object_position_20(0xFE9C));
		var0002 = var0006;
		goto labelFunc08B3_0082;
	labelFunc08B3_007B:
		UI_error_message_40("backup chest creation failed.");
	labelFunc08B3_0082:
		var0008 = 0x0000;
		var0009 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc08B3_009B:
		if(!(var0008 < 0x0002)) goto labelFunc08B3_0130;
		enum();
	labelFunc08B3_00A6:
		for (var000C in var0009 with var000A to var000B atend labelFunc08B3_0110);
		if(!(Func09A6(var000C) || (var0008 == 0x0001))) goto labelFunc08B3_010D;
		var000D = UI_get_item_shape_18(var000C);
		if(!(!((var000D == 0x01E6) || ((var000D == 0x025F) || in(var000D, var0000))))) goto labelFunc08B3_010D;
		if(!(!UI_set_last_created_2E(var000C))) goto labelFunc08B3_00FA;
		UI_error_message_40(" failed the push!");
		abrt();
	labelFunc08B3_00FA:
		if(!(!UI_give_last_created_43(var0002))) goto labelFunc08B3_010D;
		UI_error_message_40(" failed the pop!");
		abrt();
	labelFunc08B3_010D:
		goto labelFunc08B3_00A6;
	labelFunc08B3_0110:
		var0008 = (var0008 + 0x0001);
		var0009 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc08B3_009B;
	labelFunc08B3_0130:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);

Func08B4 0x8B4 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	var0000 = Func0988(UI_get_npc_object_23(0xFE9C), UI_get_party_list_2B());
	enum();
	labelFunc08B4_0012:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08B4_002A);
		UI_set_schedule_type_25(var0003, 0x000F);
		goto labelFunc08B4_0012;
	labelFunc08B4_002A:
		return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);

var Func08B5 0x8B5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0000 = UI_get_party_list_2B();
	var0001 = UI_get_npc_object_23(0xFE9C);
	var0002 = Func0988(var0001, var0000);
	if(!var0002) goto labelFunc08B5_0055;
	enum();
	labelFunc08B5_0024:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc08B5_004E);
		var0006 = false;
		var0006 = UI_get_item_flag_A3(var0005, 0x0001);
		if(!(!var0006)) goto labelFunc08B5_004B;
		rr = var0005;
	labelFunc08B5_004B:
		goto labelFunc08B5_0024;
	labelFunc08B5_004E:
		rr = [];
		goto labelFunc08B5_0059;
	labelFunc08B5_0055:
		rr = [];
	labelFunc08B5_0059:
		return rr;
}
var Func08B6 0x8B6 ()
{
	var var0000;
	var rr;

	var0000 = UI_get_party_list2_AA();
	rr = var0000;
	return rr;
}
Func08B7 0x8B7 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	var0000 = [0x03A5, 0x035B, 0x03B4, 0x0357, 0x0380, 0x0457];
	var0001 = [0x0425, 0x034B, 0x0441, 0x0347, 0x038E, 0x04A7];
	var0002 = [0x0003, 0x0006, 0x0008];
	var0003 = [0x000E, 0x000C, 0x000C];
	UI_set_new_schedules_B6(UI_get_npc_object_23(0xFF66), var0002, var0003, var0000);
	UI_set_new_schedules_B6(UI_get_npc_object_23(0xFF67), var0002, var0003, var0001);
	return;
}
Func08B8 0x8B8 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;

	var0000 = false;
	var0001 = false;
	var0002 = false;
	var0003 = false;
	var0004 = UI_get_object_position_20(0xFE9C);
	var0005 = var0004[0x0001];
	var0006 = var0004[0x0002];
	if(!((var0005 > 0x098F) && ((var0005 < 0x09EF) && ((var0006 > 0x0A8F) && (var0006 < 0x0AEF))))) goto labelFunc08B8_0081;
	var0000 = true;
	UI_move_object_4B(0xFE9C, [0x09F7, 0x0AB6, 0x0000]);
	UI_obj_sprite_effect_91(0xFE9C, 0x0012, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08B8_0081:
		if(!((var0005 > 0x090F) && ((var0005 < 0x096F) && ((var0006 > 0x0A8F) && (var0006 < 0x0AEF))))) goto labelFunc08B8_00D6;
		var0001 = true;
		UI_move_object_4B(0xFE9C, [0x09C6, 0x0AB3, 0x0000]);
		UI_obj_sprite_effect_91(0xFE9C, 0x0012, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08B8_00D6:
		if(!((var0005 > 0x090F) && ((var0005 < 0x096F) && ((var0006 > 0x0A0F) && (var0006 < 0x0A6F))))) goto labelFunc08B8_012B;
		var0002 = true;
		UI_move_object_4B(0xFE9C, [0x0935, 0x0AA2, 0x0000]);
		UI_obj_sprite_effect_91(0xFE9C, 0x0012, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08B8_012B:
		if(!((var0005 > 0x098F) && ((var0005 < 0x09EF) && ((var0006 > 0x0A0F) && (var0006 < 0x0A6F))))) goto labelFunc08B8_0180;
		var0003 = true;
		UI_move_object_4B(0xFE9C, [0x0956, 0x0A53, 0x0000]);
		UI_obj_sprite_effect_91(0xFE9C, 0x0012, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08B8_0180:
		if(!var0000) goto labelFunc08B8_01DA;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x098F, 0x0A8F], [0x09EF, 0x0AEF]);
	labelFunc08B8_01DA:
		if(!var0001) goto labelFunc08B8_0234;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x090F, 0x0A8F], [0x096F, 0x0AEF]);
	labelFunc08B8_0234:
		if(!var0002) goto labelFunc08B8_028E;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x090F, 0x0A0F], [0x096F, 0x0A6F]);
	labelFunc08B8_028E:
		if(!var0003) goto labelFunc08B8_0304;
		UI_remove_from_area_C4(0x02D8, 0x0004, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x01DB, 0x000A, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x0216, 0x0000, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
		UI_remove_from_area_C4(0x0097, 0x000B, [0x098F, 0x0A0F], [0x09EF, 0x0A6F]);
	labelFunc08B8_0304:
		if(!(var0000 == true)) goto labelFunc08B8_0428;
		var0007 = [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999];
		var0007 = (var0007 & [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999]);
		var0008 = [0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF];
		var0008 = (var0008 & [0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F]);
	labelFunc08B8_0428:
		if(!(var0001 == true)) goto labelFunc08B8_052E;
		var0007 = [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x0969, 0x0959, 0x0929, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919];
		var0007 = (var0007 & [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x0969, 0x0949, 0x0939, 0x0929, 0x0919, 0x0959, 0x0949, 0x0939, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919]);
		var0008 = [0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0AEF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ADF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF, 0x0ACF];
		var0008 = (var0008 & [0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0ABF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0AAF, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A9F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F, 0x0A8F]);
	labelFunc08B8_052E:
		if(!(var0002 == true)) goto labelFunc08B8_0634;
		var0007 = [0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0969, 0x0959, 0x0949, 0x0939, 0x0919];
		var0007 = (var0007 & [0x0969, 0x0959, 0x0949, 0x0939, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0919, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0969, 0x0959, 0x0949, 0x0939, 0x0929, 0x0919]);
		var0008 = [0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A4F];
		var0008 = (var0008 & [0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F]);
	labelFunc08B8_0634:
		if(!(var0003 == true)) goto labelFunc08B8_0728;
		var0007 = [0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09C9, 0x09B9, 0x09A9, 0x0999, 0x09E9, 0x09A9, 0x0999];
		var0007 = (var0007 & [0x09E9, 0x09D9, 0x09C9, 0x09A9, 0x0999, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x09E9, 0x09D9, 0x09B9, 0x09A9, 0x09E9, 0x09D9, 0x09C9, 0x09B9, 0x09A9, 0x0999]);
		var0008 = [0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A6F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A5F, 0x0A4F, 0x0A4F, 0x0A4F];
		var0008 = (var0008 & [0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A3F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A2F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A1F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F, 0x0A0F]);
	labelFunc08B8_0728:
		var0009 = 0x0000;
		enum();
	labelFunc08B8_072F:
		for (var000C in var0007 with var000A to var000B atend labelFunc08B8_0774);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x02D8);
		UI_set_item_frame_1B(var000D, 0x0004);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc08B8_072F;
	labelFunc08B8_0774:
		if(!(var0000 == true)) goto labelFunc08B8_088C;
		var0007 = [0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F];
		var0007 = (var0007 & [0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F]);
		var0008 = [0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9];
		var0008 = (var0008 & [0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99]);
	labelFunc08B8_088C:
		if(!(var0001 == true)) goto labelFunc08B8_0998;
		var0007 = [0x096F, 0x095F, 0x094F, 0x093F, 0x091F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x091F, 0x090F];
		var0007 = (var0007 & [0x096F, 0x095F, 0x094F, 0x092F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x090F]);
		var0008 = [0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AE9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AD9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9, 0x0AC9];
		var0008 = (var0008 & [0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AB9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0AA9, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99, 0x0A99]);
	labelFunc08B8_0998:
		if(!(var0002 == true)) goto labelFunc08B8_0A7A;
		var0007 = [0x096F, 0x095F, 0x093F, 0x092F, 0x090F, 0x096F, 0x095F, 0x090F, 0x096F, 0x095F, 0x092F, 0x091F, 0x090F];
		var0007 = (var0007 & [0x096F, 0x095F, 0x094F, 0x093F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x092F, 0x091F, 0x090F, 0x096F, 0x095F, 0x094F, 0x093F, 0x092F, 0x090F]);
		var0008 = [0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A59, 0x0A59, 0x0A59, 0x0A49, 0x0A49, 0x0A49, 0x0A49, 0x0A49];
		var0008 = (var0008 & [0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A19, 0x0A19, 0x0A19, 0x0A19, 0x0A19, 0x0A19]);
	labelFunc08B8_0A7A:
		if(!(var0003 == true)) goto labelFunc08B8_0B50;
		var0007 = [0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x099F, 0x098F, 0x09EF, 0x099F, 0x098F];
		var0007 = (var0007 & [0x09EF, 0x09DF, 0x09CF, 0x099F, 0x098F, 0x09EF, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x098F, 0x09EF, 0x09BF, 0x09AF, 0x098F]);
		var0008 = [0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A69, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A49, 0x0A49, 0x0A49];
		var0008 = (var0008 & [0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A39, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A29, 0x0A19, 0x0A19, 0x0A19, 0x0A19]);
	labelFunc08B8_0B50:
		var0009 = 0x0000;
		enum();
	labelFunc08B8_0B57:
		for (var000C in var0007 with var000F to var0010 atend labelFunc08B8_0B9C);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x01DB);
		UI_set_item_frame_1B(var000D, 0x000A);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc08B8_0B57;
	labelFunc08B8_0B9C:
		if(!(var0000 == true)) goto labelFunc08B8_0BBC;
		var0007 = [0x09EF, 0x09DF];
		var0008 = [0x0AB9, 0x0AB9];
	labelFunc08B8_0BBC:
		if(!(var0001 == true)) goto labelFunc08B8_0C06;
		var0007 = [0x092F, 0x0949, 0x0939, 0x092F, 0x093F, 0x091F, 0x0959, 0x0969, 0x0929];
		var0008 = [0x0AE9, 0x0ADF, 0x0ADF, 0x0AC9, 0x0AB9, 0x0AB9, 0x0AAF, 0x0A9F, 0x0A9F];
	labelFunc08B8_0C06:
		if(!(var0002 == true)) goto labelFunc08B8_0C7A;
		var0007 = [0x094F, 0x091F, 0x0919, 0x094F, 0x093F, 0x092F, 0x091F, 0x0929, 0x094F, 0x093F, 0x0929, 0x092F, 0x091F, 0x0929, 0x0919, 0x091F];
		var0008 = [0x0A69, 0x0A69, 0x0A5F, 0x0A59, 0x0A59, 0x0A59, 0x0A59, 0x0A4F, 0x0A49, 0x0A49, 0x0A3F, 0x0A39, 0x0A39, 0x0A2F, 0x0A1F, 0x0A19];
	labelFunc08B8_0C7A:
		if(!(var0003 == true)) goto labelFunc08B8_0D06;
		var0007 = [0x09D9, 0x09CF, 0x09BF, 0x09AF, 0x09D9, 0x09C9, 0x09B9, 0x09DF, 0x09CF, 0x09BF, 0x09AF, 0x09B9, 0x09BF, 0x09AF, 0x0999, 0x099F, 0x09C9, 0x0999, 0x09CF, 0x099F];
		var0008 = [0x0A5F, 0x0A59, 0x0A59, 0x0A59, 0x0A4F, 0x0A4F, 0x0A4F, 0x0A49, 0x0A49, 0x0A49, 0x0A49, 0x0A3F, 0x0A39, 0x0A39, 0x0A2F, 0x0A29, 0x0A1F, 0x0A1F, 0x0A19, 0x0A19];
	labelFunc08B8_0D06:
		var0009 = 0x0000;
		enum();
	labelFunc08B8_0D0D:
		for (var000C in var0007 with var0011 to var0012 atend labelFunc08B8_0D52);
		var0009 = (var0009 + 0x0001);
		var000D = UI_create_new_object_2C(0x0216);
		UI_set_item_frame_1B(var000D, 0x0000);
		var000E = UI_update_last_created_2F([var0007[var0009], var0008[var0009], 0x0000]);
		goto labelFunc08B8_0D0D;
	labelFunc08B8_0D52:
		if(!(var0003 == true)) goto labelFunc08B8_0D81;
		var000D = UI_create_new_object_2C(0x0097);
		UI_set_item_frame_1B(var000D, 0x000B);
		var000E = UI_update_last_created_2F([0x09DF, 0x0A19, 0x0000]);
	labelFunc08B8_0D81:
		return;
}
Func08B9 0x8B9 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0002 = [0x02D1, 0x01D1, 0x01E7, 0x0294, 0x038A, 0x0292, 0x0319, 0x035E];
	var0003 = UI_get_party_list2_AA();
	if(!var0001) goto labelFunc08B9_0063;
	enum();
	labelFunc08B9_002C:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc08B9_0060);
		UI_obj_sprite_effect_91(var0006, 0x0036, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_polymorph_B3(var0006, 0x00EF);
		goto labelFunc08B9_002C;
	labelFunc08B9_0060:
		goto labelFunc08B9_00C5;
	labelFunc08B9_0063:
		enum();
	labelFunc08B9_0064:
		for (var0006 in var0003 with var0007 to var0008 atend labelFunc08B9_00C5);
		UI_obj_sprite_effect_91(var0006, 0x0036, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		if(!var0000) goto labelFunc08B9_00AE;
		var0009 = UI_die_roll_17(0x0001, 0x0008);
		UI_set_polymorph_B3(var0006, var0002[var0009]);
		goto labelFunc08B9_00C2;
	labelFunc08B9_00AE:
		var0009 = UI_get_item_shape_18(var0006);
		UI_set_polymorph_B3(var0006, var0009);
	labelFunc08B9_00C2:
		goto labelFunc08B9_0064;
	labelFunc08B9_00C5:
		UI_play_sound_effect_16(0x0082);
		return;
}
// externs
extern var Func097E 0x97E (var var0000);
extern var Func09A1 0x9A1 (var var0000);

Func08BA 0x8BA ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!(event == 0x0001)) goto labelFunc08BA_003E;
	var0000 = UI_get_object_position_20(0xFF64);
	UI_obj_sprite_effect_91(0xFF64, 0x000C, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	var0001 = UI_execute_usecode_array_01(item, [0x55, 0x0334]);
	labelFunc08BA_003E:
		if(!(event == 0x0002)) goto labelFunc08BA_00EA;
		var0002 = UI_die_roll_17(0x0001, 0x0005);
		var0003 = [0x0361, 0x0219, 0x012E, 0x0149, 0x036D];
		var0004 = ["Spiders", "Wolves", "Bears", "Boars", "Doom"];
		UI_item_say_4D(0xFF64, (("Morghrim, send me " + var0004[var0002]) + "."));
		var0005 = UI_die_roll_17(0x0001, Func097E((var0002 - 0x0005)));
	labelFunc08BA_00A6:
		if(!(var0005 > 0x0000)) goto labelFunc08BA_00EA;
		var0001 = Func09A1(var0003[var0002]);
		if(!(!(var0001 == 0x0000))) goto labelFunc08BA_00D4;
		var0005 = (var0005 - 0x0001);
		goto labelFunc08BA_00E7;
	labelFunc08BA_00D4:
		if(!UI_die_roll_17(0x0001, 0x000A)) goto labelFunc08BA_00E7;
		var0005 = 0x0000;
	labelFunc08BA_00E7:
		goto labelFunc08BA_00A6;
	labelFunc08BA_00EA:
		return;
}
Func08BB 0x8BB ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc08BB_0079;
	if(!(UI_get_item_quality_1C(item) == 0x0001)) goto labelFunc08BB_0067;
	var0000 = UI_get_object_position_20(item);
	var0001 = UI_find_nearest_15(item, 0x0210, 0x0000);
	if(!(!var0001)) goto labelFunc08BB_003E;
	var0001 = UI_create_new_object2_2D(0x0210, var0000);
	labelFunc08BB_003E:
		if(!var0001) goto labelFunc08BB_0067;
		UI_set_schedule_type_25(var0001, 0x000F);
		var0002 = UI_execute_usecode_array_01(var0001, [0x23, 0x59, 0x0004, 0x55, 0x07E7]);
	labelFunc08BB_0067:
		if(!(UI_get_item_quality_1C(item) == 0x0002)) goto labelFunc08BB_0079;
		var0001 = 0x0000;
	labelFunc08BB_0079:
		if(!(event == 0x0002)) goto labelFunc08BB_0153;
		var0001 = false;
		if(!(UI_get_item_shape_18(item) == 0x0210)) goto labelFunc08BB_0095;
		var0001 = item;
	labelFunc08BB_0095:
		if(!var0001) goto labelFunc08BB_0153;
		if(!(UI_get_distance_21(var0001, 0xFE9C) <= 0x0008)) goto labelFunc08BB_013C;
		var0003 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0003 == 0x0001)) goto labelFunc08BB_00C9;
		var0004 = "@Avatar, please assist me.@";
	labelFunc08BB_00C9:
		if(!(var0003 == 0x0002)) goto labelFunc08BB_00D9;
		var0004 = "@Will no one help me?@";
	labelFunc08BB_00D9:
		if(!(var0003 == 0x0003)) goto labelFunc08BB_00E9;
		var0004 = "@Please... help me.@";
	labelFunc08BB_00E9:
		if(!(var0003 == 0x0004)) goto labelFunc08BB_00F9;
		var0004 = "@I beg of thee, aid me.@";
	labelFunc08BB_00F9:
		if(!(var0003 == 0x0005)) goto labelFunc08BB_0109;
		var0004 = "@Will I never be free?@";
	labelFunc08BB_0109:
		var0003 = UI_die_roll_17(0x0000, 0x000F);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x52, var0004, 0x27, 0x000F, 0x55, 0x07E7], (0x0014 + var0003));
		goto labelFunc08BB_0153;
	labelFunc08BB_013C:
		var0002 = UI_execute_usecode_array_01(var0001, [0x27, 0x0003, 0x55, 0x07E7]);
	labelFunc08BB_0153:
		return;
}
// externs
extern Func0178 0x178 (var var0000);

Func08BC 0x8BC ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	if(!(event == 0x0003)) goto labelFunc08BC_0132;
	if(!(UI_get_item_quality_1C(item) == 0x0003)) goto labelFunc08BC_0048;
	var0000 = UI_find_nearby_41(0xFE9C, 0x00F3, 0x0028, 0x0000);
	if(!var0000) goto labelFunc08BC_0048;
	if(!(!gflags[0248])) goto labelFunc08BC_0048;
	var0001 = UI_execute_usecode_array_01(var0000, [0x23, 0x55, 0x07E7]);
	labelFunc08BC_0048:
		if(!(UI_get_item_quality_1C(item) == 0x0005)) goto labelFunc08BC_00FD;
		var0002 = (UI_get_object_position_20(item) & (0x0049 & 0x0016));
		var0003 = UI_find_nearby_41(var0002, 0x0178, 0x0005, 0x0000);
		var0002[0x0005] = 0x000E;
		var0004 = UI_find_nearby_41(var0002, 0x01B1, 0x0005, 0x0000);
		if(!(var0003 && var0004)) goto labelFunc08BC_00FD;
		UI_set_item_frame_1B(var0003, 0x0014);
		UI_set_item_frame_1B(var0004, 0x000C);
		event = 0x0001;
		var0003;
		calle();
		var0002 = (UI_get_object_position_20(0xFE9C) & (0x00DE & 0x0000));
		var0000 = UI_find_nearby_41(var0002, 0x00F3, 0x0028, 0x0000);
		if(!var0000) goto labelFunc08BC_00FD;
		var0001 = UI_execute_usecode_array_01(var0000, [0x27, 0x0005, 0x55, 0x0526]);
	labelFunc08BC_00FD:
		if(!(UI_get_item_quality_1C(item) == 0x0006)) goto labelFunc08BC_0132;
		if(!(!gflags[0248])) goto labelFunc08BC_0132;
		gflags[0248] = true;
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x27, 0x000F, 0x55, 0x0526]);
		UI_remove_item_84(item);
	labelFunc08BC_0132:
		if(!(event == 0x0002)) goto labelFunc08BC_016A;
		if(!((UI_get_item_shape_18(item) == 0x00F3) && (!gflags[0248]))) goto labelFunc08BC_016A;
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, "Scratch... scratch.", 0x27, 0x000F, 0x55, 0x07E7], 0x000A);
	labelFunc08BC_016A:
		return;
}
Func08BD 0x8BD ()
{
	gflags[0243] = false;
	gflags[0244] = false;
	gflags[0245] = false;
	gflags[0246] = false;
	gflags[0247] = false;
	return;
}
var Func08BE 0x8BE (var var0000)
{
	var rr;
	if(!(var0000 == 0x0001)) goto labelFunc08BE_0012;
	if(!gflags[0243]) goto labelFunc08BE_0012;
	rr = false;
	labelFunc08BE_0012:
		if(!(var0000 == 0x0002)) goto labelFunc08BE_0029;
		if(!((!gflags[0243]) || gflags[0244])) goto labelFunc08BE_0029;
		rr = false;
	labelFunc08BE_0029:
		if(!(var0000 == 0x0003)) goto labelFunc08BE_0040;
		if(!((!gflags[0244]) || gflags[0245])) goto labelFunc08BE_0040;
		rr = false;
	labelFunc08BE_0040:
		if(!(var0000 == 0x0004)) goto labelFunc08BE_0057;
		if(!((!gflags[0245]) || gflags[0246])) goto labelFunc08BE_0057;
		rr = false;
	labelFunc08BE_0057:
		if(!(var0000 == 0x0005)) goto labelFunc08BE_006E;
		if(!((!gflags[0246]) || gflags[0247])) goto labelFunc08BE_006E;
		rr = false;
	labelFunc08BE_006E:
		rr = true;
		return rr;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func08C1 0x8C1 ();
extern Func08C0 0x8C0 (var var0000);
extern Func0922 0x922 (var var0000);

Func08BF 0x8BF ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;

	if(!(event == 0x0003)) goto labelFunc08BF_03E3;
	if(!((UI_get_item_quality_1C(item) == 0x0007) && (gflags[023E] && (gflags[0241] && (gflags[0240] && gflags[023F]))))) goto labelFunc08BF_0160;
	gflags[0242] = false;
	var0000 = UI_find_nearby_41(item, 0x0392, 0x0001, 0x0000);
	enum();
	labelFunc08BF_003A:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08BF_0160);
		var0004 = UI_get_object_position_20(var0003);
		var0005 = UI_get_object_position_20(item);
		if(!((UI_get_item_quality_1C(var0003) == 0x0001) && ((UI_get_item_frame_1A(var0003) == 0x0000) && (var0004[0x0003] == 0x0002)))) goto labelFunc08BF_015C;
		UI_clear_item_say_4E(0xFE9C);
		Func097F(0xFE9C, "@In pri kli ort ailem!@", 0x0000);
		Func097F(0xFE9C, "@Priin ort inten mani!@", 0x0007);
		UI_sprite_effect_68(0x0030, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0008);
		gflags[0242] = true;
		UI_remove_item_84(var0003);
		var0006 = (UI_find_nearby_41(item, 0x037F, 0x0032, 0x0000) & UI_find_nearby_41(item, 0x0113, 0x001E, 0x0010));
		enum();
	labelFunc08BF_00ED:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc08BF_012B);
		var000A = UI_get_object_position_20(var0009);
		UI_sprite_effect_68(0x0004, var000A[0x0001], var000A[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0009);
		goto labelFunc08BF_00ED;
	labelFunc08BF_012B:
		if(!Func08C1()) goto labelFunc08BF_015C;
		var000B = UI_find_nearest_15(0xFE9C, 0x017C, 0x0014);
		if(!var000B) goto labelFunc08BF_015C;
		var000C = UI_delayed_execute_usecode_array_02(var000B, [0x55, 0x07E7], 0x001B);
	labelFunc08BF_015C:
		abrt();
		goto labelFunc08BF_003A;
	labelFunc08BF_0160:
		if(!(UI_get_item_quality_1C(item) == 0x0008)) goto labelFunc08BF_0215;
		gflags[023E] = false;
		var000D = UI_find_nearby_41(item, 0x0106, 0x0002, 0x0000);
		enum();
	labelFunc08BF_0182:
		for (var0010 in var000D with var000E to var000F atend labelFunc08BF_0211);
		var0011 = UI_get_object_position_20(var0010);
		var0005 = UI_get_object_position_20(item);
		if(!((var0011[0x0001] <= var0005[0x0001]) && ((var0011[0x0003] == 0x0002) && (UI_get_item_frame_1A(var0010) == 0x0003)))) goto labelFunc08BF_020E;
		var000C = UI_set_last_created_2E(var0010);
		if(!var000C) goto labelFunc08BF_01F0;
		var0005[0x0002] = (var0005[0x0002] + 0x0002);
		var000C = UI_update_last_created_2F(var0005);
	labelFunc08BF_01F0:
		gflags[023E] = true;
		Func08C0(true);
		var000C = UI_delayed_execute_usecode_array_02(var0010, [0x55, 0x07E7], 0x0014);
		abrt();
	labelFunc08BF_020E:
		goto labelFunc08BF_0182;
	labelFunc08BF_0211:
		Func08C0(false);
	labelFunc08BF_0215:
		if(!((UI_get_item_quality_1C(item) == 0x0009) && gflags[023E])) goto labelFunc08BF_02AF;
		gflags[0241] = false;
		var0012 = UI_find_nearby_41(item, 0x01BD, 0x0001, 0x0000);
		enum();
	labelFunc08BF_023B:
		for (var0015 in var0012 with var0013 to var0014 atend labelFunc08BF_02AF);
		if(!(UI_get_item_frame_1A(var0015) == 0x0005)) goto labelFunc08BF_02AC;
		gflags[0241] = true;
		var0005 = UI_get_object_position_20(item);
		UI_remove_item_84(var0015);
		UI_remove_item_84(item);
		var0016 = UI_create_new_object_2C(0x037F);
		if(!var0016) goto labelFunc08BF_02AC;
		UI_play_sound_effect_16(0x0061);
		var0016 = UI_update_last_created_2F(var0005);
		UI_sprite_effect_68(0x0027, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08BF_02AC:
		goto labelFunc08BF_023B;
	labelFunc08BF_02AF:
		if(!((UI_get_item_quality_1C(item) == 0x000A) && gflags[023E])) goto labelFunc08BF_0349;
		gflags[0240] = false;
		var0012 = UI_find_nearby_41(item, 0x01BD, 0x0001, 0x0000);
		enum();
	labelFunc08BF_02D5:
		for (var0015 in var0012 with var0017 to var0018 atend labelFunc08BF_0349);
		if(!(UI_get_item_frame_1A(var0015) == 0x0006)) goto labelFunc08BF_0346;
		gflags[0240] = true;
		var0005 = UI_get_object_position_20(item);
		UI_remove_item_84(item);
		UI_remove_item_84(var0015);
		var0016 = UI_create_new_object_2C(0x037F);
		if(!var0016) goto labelFunc08BF_0346;
		UI_play_sound_effect_16(0x0061);
		var0016 = UI_update_last_created_2F(var0005);
		UI_sprite_effect_68(0x0027, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08BF_0346:
		goto labelFunc08BF_02D5;
	labelFunc08BF_0349:
		if(!((UI_get_item_quality_1C(item) == 0x000B) && gflags[023E])) goto labelFunc08BF_03E3;
		gflags[023F] = false;
		var0012 = UI_find_nearby_41(item, 0x01BD, 0x0001, 0x0000);
		enum();
	labelFunc08BF_036F:
		for (var0015 in var0012 with var0019 to var001A atend labelFunc08BF_03E3);
		if(!(UI_get_item_frame_1A(var0015) == 0x0007)) goto labelFunc08BF_03E0;
		gflags[023F] = true;
		var0005 = UI_get_object_position_20(item);
		UI_remove_item_84(item);
		UI_remove_item_84(var0015);
		var0016 = UI_create_new_object_2C(0x037F);
		if(!var0016) goto labelFunc08BF_03E0;
		UI_play_sound_effect_16(0x0061);
		var0016 = UI_update_last_created_2F(var0005);
		UI_sprite_effect_68(0x0027, var0005[0x0001], var0005[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	labelFunc08BF_03E0:
		goto labelFunc08BF_036F;
	labelFunc08BF_03E3:
		if(!(event == 0x0002)) goto labelFunc08BF_055A;
		if(!(UI_get_item_shape_18(item) == 0x0106)) goto labelFunc08BF_0422;
		if(!Func08C1()) goto labelFunc08BF_0422;
		var000B = UI_find_nearest_15(0xFE9C, 0x017C, 0x0028);
		var000C = UI_delayed_execute_usecode_array_02(var000B, [0x55, 0x07E7], 0x0002);
	labelFunc08BF_0422:
		if(!(UI_get_item_shape_18(item) == 0x017C)) goto labelFunc08BF_055A;
		if(!gflags[024A]) goto labelFunc08BF_0527;
		var001B = false;
		var001C = UI_get_object_position_20(0xFE9C);
		if(!(var001C[0x0002] <= 0x04A6)) goto labelFunc08BF_047D;
		var001C[0x0001] = 0x03FF;
		var001C[0x0002] = 0x04AA;
		var001C[0x0003] = 0x0000;
		var001B = 0x0000;
		UI_set_item_frame_1B(0xFF29, 0x000C);
		goto labelFunc08BF_04A8;
	labelFunc08BF_047D:
		var001C[0x0001] = 0x03FF;
		var001C[0x0002] = 0x04A2;
		var001C[0x0003] = 0x0000;
		var001B = 0x0004;
		UI_set_item_frame_1B(0xFF29, 0x001C);
	labelFunc08BF_04A8:
		var001D = UI_part_of_day_48();
		UI_move_object_4B(0xFF29, var001C);
		Func097F(0xFF29, "@Wait!@", 0x0000);
		UI_set_schedule_type_25(0xFF29, 0x0003);
		UI_set_new_schedules_B6(0xFF29, 0x0000, 0x0003, var001C);
		var000C = UI_execute_usecode_array_01(0xFF29, [0x6D, 0x27, 0x0003, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003]);
		UI_obj_sprite_effect_91(0xFF29, 0x0007, 0x0001, 0x0001, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		goto labelFunc08BF_055A;
	labelFunc08BF_0527:
		gflags[024A] = true;
		Func0922(0x0019);
		Func08C0(false);
		var000B = UI_find_nearest_15(0xFE9C, 0x017C, 0x0028);
		var000C = UI_delayed_execute_usecode_array_02(var000B, [0x55, 0x07E7], 0x001E);
	labelFunc08BF_055A:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08C0 0x8C0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0001 = UI_find_nearby_41(0xFE9C, 0x0267, 0x0028, 0x0000);
	var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x017C, 0x0028, 0x0000));
	var0001 = (var0001 & UI_find_nearby_41(0xFE9C, 0x01D9, 0x0028, 0x0000));
	if(!var0000) goto labelFunc08C0_0095;
	var0002 = Func09A0(0x0007, 0x0001);
	if(!var0002) goto labelFunc08C0_0063;
	UI_play_music_39(0x0041, var0002);
	labelFunc08C0_0063:
		enum();
	labelFunc08C0_0064:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc08C0_0092);
		var0006 = UI_execute_usecode_array_01(var0005, [0x2C, 0x23, 0x4D, 0x27, 0x0001, 0x0B, Iolo, 0x0008]);
		goto labelFunc08C0_0064;
	labelFunc08C0_0092:
		goto labelFunc08C0_00C4;
	labelFunc08C0_0095:
		enum();
	labelFunc08C0_0096:
		for (var0005 in var0001 with var0007 to var0008 atend labelFunc08C0_00C4);
		var0006 = UI_execute_usecode_array_01(var0005, [0x2C, 0x23, 0x4F, 0x27, 0x0001, 0x0B, Iolo, 0x0008]);
		goto labelFunc08C0_0096;
	labelFunc08C0_00C4:
		return;
}
var Func08C1 0x8C1 ()
{
	var rr;
	if(!(gflags[0241] && (gflags[0240] && (gflags[023F] && (gflags[0242] && (gflags[023E] && (!gflags[024A]))))))) goto labelFunc08C1_001D;
	rr = true;
	labelFunc08C1_001D:
		rr = false;
		return rr;
}
Func08C2 0x8C2 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = (UI_get_object_position_20(0xFE9C) & (0xFE99 & 0x0006));
	var0001 = UI_find_nearby_41(var0000, 0x0113, 0x0050, 0x0010);
	enum();
	labelFunc08C2_0026:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08C2_022C);
		var0005 = UI_get_object_position_20(var0004);
		var0006 = UI_get_item_quality_1C(var0004);
		var0007 = false;
		if(!(var0006 == 0x0002)) goto labelFunc08C2_005F;
		var0007 = 0xFFC9;
		var0008 = 0x0002;
	labelFunc08C2_005F:
		if(!(var0006 == 0x0004)) goto labelFunc08C2_0075;
		var0007 = 0xFFCE;
		var0008 = 0x0006;
	labelFunc08C2_0075:
		if(!(var0006 == 0x0005)) goto labelFunc08C2_008B;
		var0007 = 0xFFCF;
		var0008 = 0x0006;
	labelFunc08C2_008B:
		if(!(var0006 == 0x0006)) goto labelFunc08C2_00B1;
		if(!gflags[0170]) goto labelFunc08C2_00AA;
		var0007 = 0xFFCD;
		var0008 = 0x0006;
		goto labelFunc08C2_00B1;
	labelFunc08C2_00AA:
		UI_remove_npc_4C(0xFFCD);
	labelFunc08C2_00B1:
		if(!(var0006 == 0x0007)) goto labelFunc08C2_00D9;
		if(!(gflags[0170] == true)) goto labelFunc08C2_00D2;
		var0007 = 0xFFCB;
		var0008 = 0x0002;
		goto labelFunc08C2_00D9;
	labelFunc08C2_00D2:
		UI_remove_npc_4C(0xFFCB);
	labelFunc08C2_00D9:
		if(!(var0006 == 0x0008)) goto labelFunc08C2_00FF;
		if(!gflags[0170]) goto labelFunc08C2_00F8;
		var0007 = 0xFFC4;
		var0008 = 0x0002;
		goto labelFunc08C2_00FF;
	labelFunc08C2_00F8:
		UI_remove_npc_4C(0xFFC4);
	labelFunc08C2_00FF:
		if(!(var0006 == 0x000A)) goto labelFunc08C2_0115;
		var0007 = 0xFFC3;
		var0008 = 0x0002;
	labelFunc08C2_0115:
		if(!(var0006 == 0x000B)) goto labelFunc08C2_0131;
		if(!gflags[0170]) goto labelFunc08C2_0131;
		var0007 = 0xFFC8;
		var0008 = 0x0002;
	labelFunc08C2_0131:
		if(!(var0006 == 0x000C)) goto labelFunc08C2_014F;
		if(!(gflags[0170] == true)) goto labelFunc08C2_014F;
		var0007 = 0xFFC5;
		var0008 = 0x0002;
	labelFunc08C2_014F:
		if(!(var0006 == 0x000D)) goto labelFunc08C2_0177;
		if(!(gflags[0170] == true)) goto labelFunc08C2_0170;
		var0007 = Kylista;
		var0008 = 0x0006;
		goto labelFunc08C2_0177;
	labelFunc08C2_0170:
		UI_remove_npc_4C(Kylista);
	labelFunc08C2_0177:
		if(!(var0006 == 0x000E)) goto labelFunc08C2_018D;
		var0007 = 0xFFD1;
		var0008 = 0x0006;
	labelFunc08C2_018D:
		if(!(var0006 == 0x000F)) goto labelFunc08C2_01B3;
		if(!gflags[0170]) goto labelFunc08C2_01AC;
		var0007 = 0xFFD2;
		var0008 = 0x0006;
		goto labelFunc08C2_01B3;
	labelFunc08C2_01AC:
		UI_remove_npc_4C(0xFFD2);
	labelFunc08C2_01B3:
		if(!(var0006 == 0x0010)) goto labelFunc08C2_01C9;
		var0007 = Jendon;
		var0008 = 0x0006;
	labelFunc08C2_01C9:
		if(!(var0006 == 0x0011)) goto labelFunc08C2_01DF;
		var0007 = 0xFFC6;
		var0008 = 0x0006;
	labelFunc08C2_01DF:
		if(!(var0006 == 0x0012)) goto labelFunc08C2_01F5;
		var0007 = 0xFFD0;
		var0008 = 0x0006;
	labelFunc08C2_01F5:
		if(!var0007) goto labelFunc08C2_0229;
		UI_move_object_4B(UI_get_npc_object_23(var0007), var0005);
		UI_set_schedule_type_25(var0007, 0x000F);
		var0009 = UI_execute_usecode_array_01(var0007, [0x59, var0008, 0x01, 0x6B]);
	labelFunc08C2_0229:
		goto labelFunc08C2_0026;
	labelFunc08C2_022C:
		return;
}
Func08C3 0x8C3 ()
{
	var var0000;
	var var0001;
	var var0002;

	if(!((gflags[0170] || (gflags[0172] && (!gflags[0171]))) && (!(gflags[0170] && gflags[0172])))) goto labelFunc08C3_006F;
	var0000 = UI_find_nearby_41(item, 0x017D, 0x0001, 0x0008);
	if(!(!var0000)) goto labelFunc08C3_006F;
	var0001 = UI_get_object_position_20(item);
	var0000 = UI_create_new_object2_2D(0x017D, var0001);
	UI_set_schedule_type_25(var0000, 0x000F);
	var0002 = UI_execute_usecode_array_01(var0000, [0x59, 0x0004, 0x01, 0x61]);
	UI_set_item_flag_A4(var0000, 0x0012);
	labelFunc08C3_006F:
		return;
}
// externs
extern var Func08AC 0x8AC (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func08C4 0x8C4 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = Func08AC(true);
	if(!var0000) goto labelFunc08C4_00CE;
	var0001 = UI_execute_usecode_array_01(var0000, [0x59, 0x0004, 0x01, 0x6B]);
	var0002 = UI_get_object_position_20(item);
	UI_move_object_4B(var0000, var0002);
	Func09AC(var0000, var0002[0x0001], var0002[0x0002], 0x0007);
	var0003 = UI_part_of_day_48();
	if(!((var0003 == 0x0000) || (var0003 == 0x0001))) goto labelFunc08C4_00CE;
	var0004 = (UI_get_object_position_20(item) & (0x0032 & 0x0004));
	var0005 = UI_find_nearby_41(var0004, 0x036C, 0x0014, 0x0000);
	if(!var0005) goto labelFunc08C4_00CE;
	var0002 = UI_get_object_position_20(var0005);
	UI_remove_item_84(var0005);
	var0006 = UI_create_new_object_2C(0x03A7);
	if(!var0006) goto labelFunc08C4_00CE;
	var0001 = UI_set_item_quality_1D(var0006, 0x00B3);
	UI_set_item_frame_1B(var0006, 0x0000);
	var0001 = UI_update_last_created_2F(var0002);
	labelFunc08C4_00CE:
		return;
}
Func08C5 0x8C5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc08C5_0008:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08C5_0062);
		var0004 = UI_die_roll_17(0x0001, 0x0005);
		var0005 = 0x0000;
		var0006 = UI_die_roll_17(0x0000, 0x0001);
		if(!var0006) goto labelFunc08C5_0042;
		var0005 = 0x0002;
		goto labelFunc08C5_0048;
	labelFunc08C5_0042:
		var0005 = 0x0004;
	labelFunc08C5_0048:
		var0007 = UI_execute_usecode_array_01(var0003, [0x27, var0004, 0x59, var0005]);
		goto labelFunc08C5_0008;
	labelFunc08C5_0062:
		return;
}
Func08C6 0x8C6 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc08C6_0008:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08C6_0062);
		var0004 = UI_die_roll_17(0x0001, 0x0005);
		var0005 = 0x0000;
		var0006 = UI_die_roll_17(0x0000, 0x0001);
		if(!var0006) goto labelFunc08C6_0042;
		var0005 = 0x0000;
		goto labelFunc08C6_0048;
	labelFunc08C6_0042:
		var0005 = 0x0002;
	labelFunc08C6_0048:
		var0007 = UI_execute_usecode_array_01(var0003, [0x27, var0004, 0x59, var0005]);
		goto labelFunc08C6_0008;
	labelFunc08C6_0062:
		return;
}
Func08C7 0x8C7 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc08C7_0008:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08C7_0062);
		var0004 = UI_die_roll_17(0x0001, 0x0005);
		var0005 = 0x0000;
		var0006 = UI_die_roll_17(0x0000, 0x0001);
		if(!var0006) goto labelFunc08C7_0042;
		var0005 = 0x0000;
		goto labelFunc08C7_0048;
	labelFunc08C7_0042:
		var0005 = 0x0006;
	labelFunc08C7_0048:
		var0007 = UI_execute_usecode_array_01(var0003, [0x27, var0004, 0x59, var0005]);
		goto labelFunc08C7_0008;
	labelFunc08C7_0062:
		return;
}
Func08C8 0x8C8 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_get_party_list_2B();
	enum();
	labelFunc08C8_0008:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08C8_0047);
		var0004 = UI_die_roll_17(0x0001, 0x0005);
		var0005 = UI_direction_from_A2(var0003, 0xFE9C);
		var0006 = UI_execute_usecode_array_01(var0003, [0x27, var0004, 0x59, var0005]);
		goto labelFunc08C8_0008;
	labelFunc08C8_0047:
		return;
}
Func08C9 0x8C9 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0000 = UI_find_nearest_15(item, 0x012F, 0x0002);
	if(!(!var0000)) goto labelFunc08C9_0055;
	var0000 = UI_find_nearest_15(item, 0x036C, 0x0002);
	if(!(!var0000)) goto labelFunc08C9_0055;
	var0000 = UI_find_nearest_15(item, 0x03A8, 0x0002);
	if(!(!var0000)) goto labelFunc08C9_0055;
	var0000 = UI_find_nearest_15(item, 0x03A7, 0x0002);
	if(!(!var0000)) goto labelFunc08C9_0055;
	abrt();
	labelFunc08C9_0055:
		var0001 = UI_get_item_shape_18(var0000);
		var0002 = UI_get_item_quality_1C(var0000);
		if(!(var0002 <= 0x001A)) goto labelFunc08C9_02E4;
		var0003 = UI_get_cont_items_33(0xFE9C, 0x022B, 0xFE99, 0xFE99);
		var0004 = UI_get_cont_items_33(var0003, 0x022F, 0xFE99, 0xFE99);
		if(!var0003) goto labelFunc08C9_02E4;
		var0005 = UI_get_array_size_73(var0004);
		var0006 = 0x0000;
		if(!(!var0004)) goto labelFunc08C9_00B9;
		goto labelFunc08C9_0238;
	labelFunc08C9_00B9:
		enum();
	labelFunc08C9_00BA:
		for (var0009 in var0004 with var0007 to var0008 atend labelFunc08C9_02E4);
		var000A = (UI_get_item_frame_1A(var0009) + 0x0001);
		var0006 = (var0006 + 0x0001);
		if(!((var0002 == 0x0013) && ((var000A == 0x0002) || (var000A == 0x0003)))) goto labelFunc08C9_00FA;
		goto labelFunc08C9_01B5;
	labelFunc08C9_00FA:
		if(!((var0002 == 0x0014) && ((var000A == 0x0004) || (var000A == 0x0005)))) goto labelFunc08C9_0117;
		goto labelFunc08C9_01B5;
	labelFunc08C9_0117:
		if(!((var0002 == 0x0015) && ((var000A == 0x000A) || ((var000A == 0x000B) || ((var000A == 0x000C) || (var000A == 0x000D)))))) goto labelFunc08C9_0144;
		goto labelFunc08C9_01B5;
	labelFunc08C9_0144:
		if(!((var0002 == 0x0016) && ((var000A == 0x0006) || ((var000A == 0x0007) || ((var000A == 0x0008) || (var000A == 0x0009)))))) goto labelFunc08C9_0171;
		goto labelFunc08C9_01B5;
	labelFunc08C9_0171:
		if(!((var0002 == 0x0017) && ((var000A == 0x000E) || (var000A == 0x000F)))) goto labelFunc08C9_018E;
		goto labelFunc08C9_01B5;
	labelFunc08C9_018E:
		if(!((var0002 == 0x0018) && ((var000A == 0x0011) || (var000A == 0x0012)))) goto labelFunc08C9_01AB;
		goto labelFunc08C9_01B5;
	labelFunc08C9_01AB:
		if(!(var000A == var0002)) goto labelFunc08C9_022E;
	labelFunc08C9_01B5:
		var000B = false;
		if(!(var0001 == 0x012F)) goto labelFunc08C9_01CD;
		var000C = 0x03A8;
		var000B = true;
	labelFunc08C9_01CD:
		if(!(var0001 == 0x036C)) goto labelFunc08C9_01E1;
		var000C = 0x03A7;
		var000B = true;
	labelFunc08C9_01E1:
		if(!var000B) goto labelFunc08C9_022D;
		var000D = UI_execute_usecode_array_01(var0000, [0x27, 0x0001, 0x46, 0x000D, 0x27, 0x0001, 0x46, 0x000C, 0x27, 0x0001, 0x46, 0x000B, 0x27, 0x0001, 0x46, 0x000A, 0x27, 0x0001, 0x55, var000C]);
		UI_play_sound_effect_16(0x0059);
	labelFunc08C9_022D:
		abrt();
	labelFunc08C9_022E:
		if(!(var0006 == var0005)) goto labelFunc08C9_02E1;
	labelFunc08C9_0238:
		var000B = false;
		if(!(var0001 == 0x03A8)) goto labelFunc08C9_0254;
		var000B = true;
		var000E = UI_create_new_object_2C(0x012F);
	labelFunc08C9_0254:
		if(!(var0001 == 0x03A7)) goto labelFunc08C9_026C;
		var000B = true;
		var000E = UI_create_new_object_2C(0x036C);
	labelFunc08C9_026C:
		if(!var000B) goto labelFunc08C9_02E0;
		var000F = UI_get_object_position_20(var0000);
		UI_set_item_frame_1B(var000E, 0x000A);
		var000D = UI_set_item_quality_1D(var000E, var0002);
		UI_remove_item_84(var0000);
		var000D = UI_update_last_created_2F(var000F);
		var000D = UI_execute_usecode_array_01(var000E, [0x27, 0x0001, 0x46, 0x000B, 0x27, 0x0001, 0x46, 0x000C, 0x27, 0x0001, 0x46, 0x000D, 0x27, 0x0001, 0x46, 0x000E]);
		UI_play_sound_effect_16(0x0058);
	labelFunc08C9_02E0:
		abrt();
	labelFunc08C9_02E1:
		goto labelFunc08C9_00BA;
	labelFunc08C9_02E4:
		return;
}
// externs
extern Func09A3 0x9A3 (var var0000);
extern Func09AA 0x9AA ();
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func08CA 0x8CA ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	if(!(event == 0x0003)) goto labelFunc08CA_019E;
	if(!(UI_get_item_quality_1C(item) == 0x0001)) goto labelFunc08CA_0062;
	var0000 = UI_find_nearby_41(item, 0x0103, 0x0003, 0x0008);
	if(!var0000) goto labelFunc08CA_0062;
	UI_set_schedule_type_25(var0000, 0x000F);
	UI_set_alignment_4A(var0000, 0x0000);
	UI_set_npc_id_BD(var0000, 0x0002);
	var0001 = UI_execute_usecode_array_01(var0000, [0x59, 0x0006, 0x6D, 0x55, 0x07DF]);
	labelFunc08CA_0062:
		if(!(UI_get_item_quality_1C(item) == 0x000D)) goto labelFunc08CA_00DF;
		var0000 = UI_find_nearby_41(item, 0x0103, 0x0005, 0x0008);
		if(!var0000) goto labelFunc08CA_00DF;
		UI_remove_item_84(item);
		var0002 = (UI_get_object_position_20(var0000) & [0xFE99, 0x0015]);
		var0003 = UI_find_nearby_41(var0002, 0x0190, 0x0005, 0x0000);
		if(!var0003) goto labelFunc08CA_00CB;
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, "@She loved flowers so...@");
		goto labelFunc08CA_00DF;
	labelFunc08CA_00CB:
		UI_item_say_4D(var0000, "@If I had flowers...@");
		UI_set_alignment_4A(var0000, 0x0000);
	labelFunc08CA_00DF:
		if(!(UI_get_item_quality_1C(item) == 0x0011)) goto labelFunc08CA_019E;
		var0000 = UI_find_nearby_41(item, 0x0103, 0x0014, 0x0008);
		if(!var0000) goto labelFunc08CA_019E;
		var0003 = UI_find_nearby_41(item, 0x0190, 0x000A, 0x0000);
		if(!var0003) goto labelFunc08CA_018A;
		var0004 = UI_find_nearby_41(item, 0x03E7, 0x000A, 0x0000);
		if(!var0004) goto labelFunc08CA_0187;
		UI_clear_item_say_4E(var0000);
		UI_halt_scheduled_71(var0000);
		var0005 = UI_direction_from_A2(var0000, 0xFE9C);
		var0001 = UI_execute_usecode_array_01(var0000, [0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x52, "@I shall repay thy kindness.@", 0x59, var0005]);
		var0001 = UI_execute_usecode_array_01(var0003, [0x27, 0x0012, 0x55, 0x07DF]);
	labelFunc08CA_0187:
		goto labelFunc08CA_019E;
	labelFunc08CA_018A:
		UI_item_say_4D(var0000, "@If I had flowers...@");
		UI_set_alignment_4A(var0000, 0x0000);
	labelFunc08CA_019E:
		if(!(event == 0x0002)) goto labelFunc08CA_03FE;
		if(!(UI_get_item_shape_18(item) == 0x0103)) goto labelFunc08CA_023F;
		var0006 = UI_die_roll_17(0x0001, 0x0005);
		if(!(var0006 == 0x0001)) goto labelFunc08CA_01CF;
		var0007 = "@Oh, my love.@";
	labelFunc08CA_01CF:
		if(!(var0006 == 0x0002)) goto labelFunc08CA_01DF;
		var0007 = "@What have they done?@";
	labelFunc08CA_01DF:
		if(!(var0006 == 0x0003)) goto labelFunc08CA_01EF;
		var0007 = "@They shall pay!@";
	labelFunc08CA_01EF:
		if(!(var0006 == 0x0004)) goto labelFunc08CA_01FF;
		var0007 = "@I'll never forget thee.@";
	labelFunc08CA_01FF:
		if(!(var0006 == 0x0005)) goto labelFunc08CA_020F;
		var0007 = "@Thy life was my life.@";
	labelFunc08CA_020F:
		var0006 = UI_die_roll_17(0x0000, 0x000F);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x52, var0007, 0x27, 0x000F, 0x55, 0x07DF], (0x0014 + var0006));
	labelFunc08CA_023F:
		if(!(UI_get_item_shape_18(item) == 0x0190)) goto labelFunc08CA_02AF;
		var0000 = UI_find_nearby_41(item, 0x0103, 0x0014, 0x0008);
		if(!var0000) goto labelFunc08CA_02AF;
		var0005 = UI_direction_from_A2(0xFE9C, var0000);
		var0001 = UI_execute_usecode_array_01(0xFE9C, [0x59, var0005]);
		UI_set_schedule_type_25(var0000, 0x000F);
		var0008 = [0x0A09, 0x055A, 0x0000];
		UI_si_path_run_usecode_C1(var0000, var0008, 0x000A, var0000, 0x07DF, true);
		abrt();
	labelFunc08CA_02AF:
		if(!(UI_get_item_shape_18(item) == 0x0313)) goto labelFunc08CA_03B4;
		if(!(UI_get_item_quality_1C(item) == 0x00A3)) goto labelFunc08CA_0334;
		var0000 = UI_find_nearby_41(item, 0x0103, 0x0005, 0x0008);
		if(!var0000) goto labelFunc08CA_0331;
		UI_play_sound_effect_16(0x0046);
		var0001 = UI_set_item_quality_1D(item, 0x009D);
		var0001 = UI_execute_usecode_array_01(var0000, [0x27, 0x0005, 0x6C, 0x27, 0x0003, 0x61, 0x27, 0x0003, 0x64]);
		UI_item_say_4D(var0000, "@Now I can rest!@");
		var0001 = UI_execute_usecode_array_01(item, [0x27, 0x000F, 0x55, 0x07DF]);
	labelFunc08CA_0331:
		goto labelFunc08CA_03B4;
	labelFunc08CA_0334:
		var0000 = UI_find_nearby_41(item, 0x0103, 0x000F, 0x0008);
		if(!var0000) goto labelFunc08CA_03B4;
		var0008 = UI_get_object_position_20(var0000);
		var0009 = UI_get_item_frame_rot_80(var0000);
		Func09A3(var0000);
		var000A = UI_create_new_object2_2D(0x0210, var0008);
		UI_set_schedule_type_25(var000A, 0x000F);
		UI_set_item_frame_rot_81(var000A, var0009);
		var0001 = UI_execute_usecode_array_01(var000A, [0x64, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D, 0x27, 0x0002, 0x6E, 0x27, 0x000A, 0x55, 0x07DF]);
	labelFunc08CA_03B4:
		if(!(UI_get_item_shape_18(item) == 0x0210)) goto labelFunc08CA_03FE;
		Func09AA();
		var0008 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0009, (var0008[0x0001] - 0x0001), (var0008[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		Func09A3(item);
		abrt();
	labelFunc08CA_03FE:
		if(!(event == 0x000A)) goto labelFunc08CA_0503;
		if(!(UI_get_item_shape_18(item) == 0x0103)) goto labelFunc08CA_0503;
		var0000 = UI_find_nearby_41(item, 0x0103, 0x001E, 0x0008);
		var0002 = (UI_get_object_position_20(item) & (0x00A3 & 0xFE99));
		var000B = UI_find_nearby_41(var0002, 0x0313, 0x001E, 0x0000);
		var0002 = (UI_get_object_position_20(item) & (0x0098 & 0xFE99));
		var000C = UI_find_nearby_41(var0002, 0x0313, 0x001E, 0x0000);
		if(!(var0000 && (var000B && var000C))) goto labelFunc08CA_0503;
		UI_clear_item_say_4E(var0000);
		var0005 = UI_direction_from_A2(var0000, var000B);
		var0001 = UI_execute_usecode_array_01(var0000, [0x27, 0x0007, 0x52, "@I will fix this lever.@", 0x59, var0005, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D]);
		var0001 = UI_execute_usecode_array_01(var000B, [0x27, 0x0014, 0x55, 0x07DF]);
		var000D = 0x0001;
		var000E = Iolo;
		var000F = 0x0000;
		Func090D(var000C, var000D, var000E, var000F, 0x07DF, var0000, 0x000B);
		UI_set_path_failure_A7(0x07DF, var0000, 0x000B);
	labelFunc08CA_0503:
		return;
}
Func08CB 0x8CB ()
{
	var var0000;
	var var0001;

	gflags[0007] = false;
	gflags[0008] = false;
	gflags[0009] = false;
	gflags[000A] = false;
	UI_set_item_flag_A4(0xFF5B, 0x001D);
	UI_set_item_flag_A4(0xFF5D, 0x001D);
	UI_set_item_flag_A4(0xFF57, 0x001D);
	UI_set_schedule_type_25(0xFF57, 0x000F);
	var0000 = UI_find_nearest_15(item, 0x02EB, 0x0014);
	if(!var0000) goto labelFunc08CB_006D;
	UI_item_say_4D(var0000, "@Good morning.@");
	var0001 = UI_execute_usecode_array_01(var0000, [0x27, 0x000C, 0x55, 0x04A0]);
	labelFunc08CB_006D:
		return;
}
Func08CC 0x8CC ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(event == 0x0003)) goto labelFunc08CC_00FA;
	if(!(UI_get_item_quality_1C(item) == 0x0003)) goto labelFunc08CC_0056;
	var0000 = UI_find_nearby_41(item, 0x037F, 0x000A, 0x0000);
	enum();
	labelFunc08CC_0026:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08CC_0056);
		var0004 = UI_delayed_execute_usecode_array_02(var0003, [0x23, 0x2C, 0x58, 0x0021, 0x2D], UI_die_roll_17(0x0005, 0x000A));
		goto labelFunc08CC_0026;
	labelFunc08CC_0056:
		if(!(UI_get_item_quality_1C(item) == 0x00CB)) goto labelFunc08CC_00FA;
		var0000 = UI_find_nearby_41(item, 0x037F, 0x000A, 0x0000);
		if(!(!var0000)) goto labelFunc08CC_00FA;
		var0005 = UI_find_nearest_15(item, 0x00E0, 0x000A);
		if(!var0005) goto labelFunc08CC_00FA;
		var0006 = UI_get_object_position_20(0xFE9C);
		UI_sprite_effect_68(0x001F, (var0006[0x0001] - 0x0001), (var0006[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x002A);
		var0004 = UI_execute_usecode_array_01(var0005, [0x27, 0x0006, 0x55, 0x07E3, 0x27, 0x0006, 0x55, 0x07DF]);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x27, 0x000E]);
		abrt();
	labelFunc08CC_00FA:
		if(!(event == 0x0002)) goto labelFunc08CC_01B0;
		if(!(UI_get_item_shape_18(item) == 0x037F)) goto labelFunc08CC_014A;
		var0006 = UI_get_object_position_20(item);
		UI_remove_item_84(item);
		UI_sprite_effect_68(0x0009, (var0006[0x0001] - 0x0001), (var0006[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0021);
		abrt();
	labelFunc08CC_014A:
		if(!(UI_get_item_shape_18(item) == 0x00E0)) goto labelFunc08CC_01B0;
		var0006 = [0x0987, 0x05F7, 0x0000];
		UI_move_object_4B(0xFE9B, var0006);
		var0004 = UI_execute_usecode_array_01(0xFE9C, [0x55, 0x07E3]);
		UI_sprite_effect_68(0x0007, (var0006[0x0001] - 0x0001), (var0006[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		abrt();
	labelFunc08CC_01B0:
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func08CD 0x8CD ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(event == 0x0003)) goto labelFunc08CD_00CB;
	var0000 = [0x08FA, 0x055F, 0x0001];
	UI_move_object_4B(0xFF5D, var0000);
	UI_set_schedule_type_25(0xFF5D, 0x000F);
	UI_set_schedule_type_25(item, 0x000F);
	var0001 = UI_find_nearby_41(item, 0x017D, 0x0000, 0x0008);
	var0002 = (UI_get_object_position_20(var0001) & (0xFE99 & 0x0000));
	var0003 = UI_find_nearby_41(var0002, 0x0113, 0x0000, 0x0000);
	if(!var0001) goto labelFunc08CD_00CB;
	var0004 = UI_execute_usecode_array_01(var0001, [0x59, 0x0006, 0x27, 0x0003, 0x52, "@Forgive me, master Lorthondo.@", 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6D]);
	var0004 = UI_execute_usecode_array_01(0xFF5D, [0x59, 0x0002, 0x6B, 0x27, 0x0002, 0x27, 0x0001, 0x27, 0x0002, 0x27, 0x0003, 0x27, 0x000A, 0x55, 0x07DF]);
	labelFunc08CD_00CB:
		if(!(event == 0x0002)) goto labelFunc08CD_02D3;
		if(!((UI_get_item_shape_18(item) == 0x02D1) || (UI_get_item_shape_18(item) == 0x03DD))) goto labelFunc08CD_0151;
		var0002 = (UI_get_object_position_20(0xFE9C) & (0x0004 & 0x0007));
		var0005 = UI_find_nearby_41(var0002, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc08CD_0151;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0006 = 0x0006;
		var0007 = 0x0000;
		var0008 = 0x0000;
		Func090D(var0005, var0006, var0007, var0008, 0x07DF, item, 0x000A);
		UI_set_path_failure_A7(0x07DF, item, 0x000A);
	labelFunc08CD_0151:
		if(!(UI_get_item_shape_18(item) == 0x0331)) goto labelFunc08CD_01D7;
		var0001 = UI_find_nearby_41(item, 0x017D, 0x000A, 0x0008);
		var0004 = UI_execute_usecode_array_01(var0001, [0x27, 0x0001, 0x27, 0x0004, 0x27, 0x0004, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x55, 0x07DF]);
		var0004 = UI_execute_usecode_array_01(item, [0x52, "@Thou hast failed me for the last time.@", 0x27, 0x0003, 0x6C, 0x27, 0x0003, 0x61, 0x27, 0x0003, 0x70, 0x27, 0x0003, 0x6F, 0x27, 0x0005, 0x70, 0x27, 0x0003, 0x61]);
	labelFunc08CD_01D7:
		if(!(UI_get_item_shape_18(item) == 0x017D)) goto labelFunc08CD_02D3;
		var0000 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0011, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_sprite_effect_68(0x001E, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0074);
		UI_remove_item_84(item);
		var0009 = UI_create_new_object_2C(0x037F);
		if(!var0009) goto labelFunc08CD_025F;
		UI_set_item_frame_1B(var0009, 0x0000);
	labelFunc08CD_025F:
		var000A = UI_create_new_object_2C(0x01FB);
		if(!var000A) goto labelFunc08CD_029F;
		UI_set_item_frame_1B(var000A, 0x0000);
		var0004 = UI_update_last_created_2F(var0000);
		var0004 = UI_execute_usecode_array_01(var000A, [0x52, "@NOOOooooo!!!@", 0x27, 0x0015, 0x55, 0x04A3]);
	labelFunc08CD_029F:
		if(!var0009) goto labelFunc08CD_02D3;
		var0000[0x0003] = (var0000[0x0003] + 0x0001);
		var0004 = UI_update_last_created_2F(var0000);
		var0004 = UI_execute_usecode_array_01(var0009, [0x27, 0x0016, 0x2D]);
	labelFunc08CD_02D3:
		return;
}
Func08CE 0x8CE ()
{
	var var0000;
	var var0001;
	var var0002;

	UI_set_schedule_type_25(0xFF27, 0x000F);
	var0000 = [0x0A18, 0x054F, 0x0001];
	UI_move_object_4B(0xFF27, var0000);
	var0001 = UI_execute_usecode_array_01(0xFF27, [0x59, 0x0006, 0x01, 0x6E]);
	var0002 = UI_find_nearby_41(item, 0x0375, 0x0019, 0x0000);
	if(!var0002) goto labelFunc08CE_005A;
	UI_set_item_flag_A4(var0002, 0x001D);
	labelFunc08CE_005A:
		UI_remove_item_84(item);
		return;
}
Func08CF 0x8CF (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc08CF_0008:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08CF_0054);
		var0005 = UI_get_object_position_20(var0004);
		if(!(!var0000)) goto labelFunc08CF_0037;
		var0005[0x0002] = (var0005[0x0002] - 0x0010);
		goto labelFunc08CF_0047;
	labelFunc08CF_0037:
		var0005[0x0002] = (var0005[0x0002] + 0x0010);
	labelFunc08CF_0047:
		UI_move_object_4B(var0004, var0005);
		goto labelFunc08CF_0008;
	labelFunc08CF_0054:
		abrt();
		return;
}
Func08D0 0x8D0 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = UI_get_object_position_20(item);
	if(!(!((var0000[0x0001] == 0x09BF) && ((var0000[0x0002] == 0x06EA) && (var0000[0x0003] == 0x0000))))) goto labelFunc08D0_002D;
	abrt();
	labelFunc08D0_002D:
		var0001 = (UI_get_object_position_20(item) & [0xFE99, 0x0006]);
		var0002 = UI_find_nearby_41(var0001, 0x0113, 0x001E, 0x0010);
		enum();
	labelFunc08D0_0053:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc08D0_01C1);
		var0000 = UI_get_object_position_20(var0005);
		var0006 = false;
		if(!(UI_get_item_quality_1C(var0005) == 0x0000)) goto labelFunc08D0_00FF;
		UI_clear_item_flag_A5(0xFF5D, 0x0004);
		UI_set_schedule_type_25(0xFF5D, 0x000F);
		UI_move_object_4B(0xFF5D, var0000);
		UI_sprite_effect_68(0x0007, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		var0007 = UI_direction_from_A2(0xFF5D, 0xFE9C);
		var0008 = UI_execute_usecode_array_01(0xFF5D, [0x52, "@Prepare to die...@", 0x59, var0007, 0x6F, 0x27, 0x0004, 0x70, 0x27, 0x0003, 0x61, 0x55, 0x04A3]);
	labelFunc08D0_00FF:
		if(!(UI_get_item_quality_1C(var0005) == 0x0064)) goto labelFunc08D0_0128;
		UI_remove_item_84(var0005);
		var0006 = UI_create_new_object_2C(0x00A3);
		UI_set_item_frame_1B(var0006, 0x0009);
	labelFunc08D0_0128:
		if(!(UI_get_item_quality_1C(var0005) == 0x0096)) goto labelFunc08D0_0151;
		UI_remove_item_84(var0005);
		var0006 = UI_create_new_object_2C(0x00A3);
		UI_set_item_frame_1B(var0006, 0x0003);
	labelFunc08D0_0151:
		if(!(UI_get_item_quality_1C(var0005) == 0x00C8)) goto labelFunc08D0_017A;
		UI_remove_item_84(var0005);
		var0006 = UI_create_new_object_2C(0x00A3);
		UI_set_item_frame_1B(var0006, 0x0003);
	labelFunc08D0_017A:
		if(!var0006) goto labelFunc08D0_01BE;
		var0008 = UI_update_last_created_2F(var0000);
		if(!var0008) goto labelFunc08D0_01BE;
		var0009 = UI_die_roll_17(0x0001, 0x0003);
		var0008 = UI_execute_usecode_array_01(var0006, [0x27, var0009, 0x4E, 0x27, var0009, 0x0B, Iolo, 0x0004]);
	labelFunc08D0_01BE:
		goto labelFunc08D0_0053;
	labelFunc08D0_01C1:
		UI_earthquake_6E(0x0001);
		var0008 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0326], 0x0039);
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

Func08D1 0x8D1 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(item, 0x020B, 0x000A, 0x0008);
	var0001 = 0x0000;
	enum();
	labelFunc08D1_0018:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc08D1_0099);
		var0001 = (var0001 + 0x0009);
		var0005 = UI_get_object_position_20(var0004);
		UI_remove_item_84(var0004);
		UI_play_sound_effect_16(0x0041);
		UI_sprite_effect_68(0x0006, (var0005[0x0001] - 0x0001), (var0005[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0006 = UI_create_new_object2_2D(0x017E, var0005);
		Func09AD(var0006);
		var0007 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x52, "@Fresh flesh!@"], var0001);
		goto labelFunc08D1_0018;
	labelFunc08D1_0099:
		UI_play_sound_effect_16(0x0061);
		return;
}
Func08D2 0x8D2 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = (UI_get_object_position_20(0xFF27) & (0xFE99 & 0x0007));
	var0001 = UI_find_nearby_41(var0000, 0x0113, 0x0005, 0x0010);
	var0001 = (var0001 & UI_find_nearby_41(0xFF27, 0x01B8, 0x0005, 0x0080));
	enum();
	labelFunc08D2_003D:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08D2_0052);
		UI_remove_item_84(var0004);
		goto labelFunc08D2_003D;
	labelFunc08D2_0052:
		var0005[0x0001] = (var0000[0x0001] + 0x0001);
		var0005[0x0002] = (var0000[0x0002] + 0x0001);
		var0005[0x0003] = 0x0000;
		UI_move_object_4B(0xFF27, var0005);
		var0006 = UI_direction_from_A2(0xFF27, 0xFE9C);
		var0007 = UI_execute_usecode_array_01(0xFF27, [0x62, 0x59, var0006, 0x27, 0x0002, 0x52, "@Please... Help me...@", 0x27, 0x000F, 0x52, "@Lead me to my nightmare.@"]);
		var0007 = UI_execute_usecode_array_01(0xFE9C, [0x27, 0x0003]);
		UI_set_alignment_4A(0xFF27, 0x0000);
		UI_set_schedule_type_25(0xFF27, 0x0009);
		return;
}
Func08D3 0x8D3 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0000[0x0001] = (var0000[0x0001] - (var0000[0x0003] / 0x0002));
	var0000[0x0002] = (var0000[0x0002] - (var0000[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0011, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0001, (var0000[0x0001] - 0x0001), (var0000[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
	UI_UNKNOWN_72();
	UI_play_sound_effect_16(0x002A);
	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc08D3_0099:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08D3_00C1);
		var0005 = UI_apply_damage_76(UI_get_npc_prop_28(var0004, 0x0000), 0x001E, 0x0003, var0004);
		goto labelFunc08D3_0099;
	labelFunc08D3_00C1:
		return;
}
// externs
extern Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);

Func08D4 0x8D4 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc08D4_006A;
	var0000 = UI_find_nearby_41(item, 0x0375, 0x000C, 0x0000);
	if(!var0000) goto labelFunc08D4_006A;
	UI_set_schedule_type_25(0xFF27, 0x000F);
	var0001 = Dupre;
	var0002 = Dupre;
	var0003 = Iolo;
	Func090E(0xFF27, item, var0001, var0002, var0003, 0x07DF, UI_get_npc_object_23(0xFF27), 0x000A, true);
	UI_set_path_failure_A7(0x07DF, UI_get_npc_object_23(0xFF27), 0x000A);
	labelFunc08D4_006A:
		if(!(event == 0x000A)) goto labelFunc08D4_00F8;
		UI_set_schedule_type_25(item, 0x000A);
		var0000 = UI_find_nearby_41(item, 0x0375, 0x000A, 0x0000);
		if(!var0000) goto labelFunc08D4_00F8;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var0004 = UI_direction_from_A2(item, var0000);
		var0005 = UI_execute_usecode_array_01(item, [0x52, "@Wake up, girl!@", 0x59, var0004, 0x27, 0x000F, 0x52, "@Dost thou crave a carrot?@"]);
		var0006 = UI_direction_from_A2(var0000, item);
		var0005 = UI_execute_usecode_array_01(var0000, [0x27, 0x000A, 0x61, 0x27, 0x0006, 0x59, var0006, 0x27, 0x000C, 0x55, 0x07DF]);
	labelFunc08D4_00F8:
		if(!(event == 0x0002)) goto labelFunc08D4_01B5;
		if(!(UI_get_item_shape_18(item) == 0x0375)) goto labelFunc08D4_016A;
		var0007 = UI_get_cont_items_33(0xFF27, 0x0179, 0xFE99, 0x0012);
		if(!var0007) goto labelFunc08D4_016A;
		var0005 = UI_execute_usecode_array_01(item, [0x27, 0x0005, 0x64, 0x27, 0x0001, 0x65, 0x27, 0x0001, 0x66, 0x27, 0x0001, 0x67, 0x27, 0x0001, 0x61]);
		var0005 = UI_execute_usecode_array_01(var0007, [0x27, 0x000C, 0x55, 0x07DF]);
	labelFunc08D4_016A:
		if(!(UI_get_item_shape_18(item) == 0x0179)) goto labelFunc08D4_01B5;
		var0000 = UI_find_nearby_41(item, 0x0375, 0x000A, 0x0000);
		if(!var0000) goto labelFunc08D4_01B5;
		UI_kill_npc_57(0xFF27);
		UI_clear_item_flag_A5(var0000, 0x0004);
		var0005 = UI_execute_usecode_array_01(var0000, [0x27, 0x0005, 0x55, 0x0375]);
	labelFunc08D4_01B5:
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);

var Func08D5 0x8D5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var rr;

	var0000 = (UI_get_object_position_20(item) & [0x009B, 0x0000]);
	if(!UI_find_nearby_41(var0000, 0x03A8, 0x000A, 0x0000)) goto labelFunc08D5_00C0;
	var0001 = UI_find_nearby_41(item, 0x0210, 0x001E, 0x0008);
	var0002 = 0x0000;
	enum();
	labelFunc08D5_003D:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc08D5_00BE);
		var0002 = (var0002 + 0x0006);
		var0006 = UI_get_object_position_20(var0005);
		UI_remove_item_84(var0005);
		UI_play_sound_effect_16(0x0041);
		UI_sprite_effect_68(0x0012, (var0006[0x0001] - 0x0001), (var0006[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		var0007 = UI_create_new_object2_2D(0x00E4, var0006);
		Func09AD(var0007);
		var0008 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x52, "@I obey, master!@"], var0002);
		goto labelFunc08D5_003D;
	labelFunc08D5_00BE:
		rr = true;
	labelFunc08D5_00C0:
		rr = false;
		return rr;
}
var Func08D6 0x8D6 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0000 = 0x0000;
	var0001 = (UI_get_object_position_20(item) & [0x009F, 0x0000]);
	if(!UI_find_nearby_41(var0001, 0x03A7, 0x000A, 0x0000)) goto labelFunc08D6_0082;
	var0002 = UI_find_nearby_41(item, 0x0174, 0x001E, 0x0008);
	enum();
	labelFunc08D6_003D:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc08D6_0080);
		var0000 = (var0000 + 0x0007);
		UI_set_alignment_4A(var0005, 0x0002);
		UI_set_schedule_type_25(var0005, 0x0000);
		var0006 = UI_delayed_execute_usecode_array_02(var0005, [0x23, 0x52, "@I kill thee!@"], var0000);
		goto labelFunc08D6_003D;
	labelFunc08D6_0080:
		rr = true;
	labelFunc08D6_0082:
		rr = false;
		return rr;
}
// externs
extern Func09AA 0x9AA ();

Func08D7 0x8D7 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	if(!(event == 0x0003)) goto labelFunc08D7_0138;
	var0000 = (UI_get_object_position_20(item) & (0xFE99 & 0x0012));
	var0001 = UI_find_nearby_41(var0000, 0x0179, 0x0006, 0x0000);
	if(!var0001) goto labelFunc08D7_0138;
	var0002 = UI_find_nearby_41(item, 0x032B, 0x000A, 0x0008);
	if(!var0002) goto labelFunc08D7_0138;
	UI_remove_item_84(item);
	var0003 = UI_get_object_position_20(var0001);
	UI_remove_item_84(var0001);
	UI_sprite_effect_68(0x000D, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0082);
	var0003 = UI_get_object_position_20(var0002);
	UI_set_polymorph_B3(var0002, 0x02E6);
	UI_sprite_effect_68(0x0009, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_set_item_frame_1B(var0002, 0x0012);
	var0004 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x07DF], 0x001E);
	var0005 = UI_create_new_object_2C(0x0349);
	if(!var0005) goto labelFunc08D7_0118;
	UI_set_item_frame_1B(var0005, 0x0005);
	var0004 = UI_update_last_created_2F(var0003);
	var0004 = UI_execute_usecode_array_01(var0005, [0x52, "@I thank thee...@", 0x27, 0x000F, 0x52, "@...and here is thy reward.@"]);
	labelFunc08D7_0118:
		var0006 = UI_find_nearby_41(var0002, 0x0113, 0x0000, 0x0010);
		if(!var0006) goto labelFunc08D7_0138;
		UI_remove_item_84(var0006);
	labelFunc08D7_0138:
		if(!(event == 0x0002)) goto labelFunc08D7_020A;
		var0003 = UI_get_object_position_20(item);
		UI_sprite_effect_68(0x0009, (var0003[0x0001] - 0x0001), (var0003[0x0002] - 0x0001), 0x0000, 0x0000, 0x0000, Dupre);
		UI_set_polymorph_B3(item, 0x032B);
		UI_set_schedule_type_25(item, 0x0011);
		var0007 = UI_create_new_object_2C(0x03E7);
		if(!var0007) goto labelFunc08D7_01C3;
		UI_set_item_frame_1B(var0007, 0x0004);
		var0003[0x0001] = (var0003[0x0001] + 0x0001);
		var0003[0x0002] = (var0003[0x0002] + 0x0001);
		var0004 = UI_update_last_created_2F(var0003);
	labelFunc08D7_01C3:
		UI_sprite_effect_68(0x000D, var0003[0x0001], var0003[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0082);
		var0005 = UI_find_nearby_41(item, 0x0349, 0x000A, 0x0000);
		if(!var0005) goto labelFunc08D7_0207;
		UI_remove_item_84(var0005);
	labelFunc08D7_0207:
		Func09AA();
	labelFunc08D7_020A:
		return;
}
Func08D8 0x8D8 ()
{
	UI_set_schedule_type_25(0xFF57, 0x0003);
	return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func094A 0x94A (var var0000);
extern Func0907 0x907 (var var0000, var var0001);

Func08D9 0x8D9 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0001 = Func0906(var0000);
	var0002 = UI_get_item_quality_1C(item);
	var0003 = Dupre;
	if(!(var0001 == 0x0000)) goto labelFunc08D9_0027;
	var0003 = 0x0002;
	labelFunc08D9_0027:
		if(!(var0001 == 0x0001)) goto labelFunc08D9_0041;
		var0004 = ("@Pardon, but the door is already open. " + "Is it not rather futile to lock it now?@");
		Func094A(var0004);
	labelFunc08D9_0041:
		if(!(var0001 == 0x0002)) goto labelFunc08D9_0051;
		var0003 = 0x0000;
	labelFunc08D9_0051:
		if(!(var0001 == 0x0003)) goto labelFunc08D9_007C;
		if(!(UI_die_roll_17(0x0001, 0x000A) == 0x0001)) goto labelFunc08D9_007C;
		var0004 = ("@Pardon, but the door appears magically locked. " + "Is it not rather difficult to unlock it with a key?@");
		Func094A(var0004);
	labelFunc08D9_007C:
		if(!(var0003 != Dupre)) goto labelFunc08D9_008F;
		Func0907(var0000, var0003);
	labelFunc08D9_008F:
		return;
}
// externs
extern Func08DB 0x8DB (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func0924 0x924 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func08E2 0x8E2 (var var0000);
extern Func08E4 0x8E4 (var var0000);
extern var Func090B 0x90B (var var0000);
extern var Func090A 0x90A (var var0000);

Func08DA 0x8DA (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;

	var0001 = false;
	var0002 = UI_get_item_quality_1C(var0000);
	if(!(var0002 == 0x0000)) goto labelFunc08DA_011D;
	var0003 = UI_find_nearby_avatar_3C(0x020E);
	enum();
	labelFunc08DA_0023:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc08DA_00B8);
		UI_set_item_shape_14(var0006, 0x0379);
		var0007 = UI_find_nearby_41(var0006, 0x01B8, 0x000A, 0x0080);
		var0008 = UI_get_object_position_20(var0006);
		var0008 = [(var0008[0x0001] + 0x0003), (var0008[0x0002] + 0x0003), var0008[0x0003]];
		enum();
	labelFunc08DA_0076:
		for (var000B in var0007 with var0009 to var000A atend labelFunc08DA_00B5);
		var000C = UI_get_object_position_20(var000B);
		if(!(var0008[0x0001] == var000C[0x0001])) goto labelFunc08DA_00B2;
		if(!(var0008[0x0002] == var000C[0x0002])) goto labelFunc08DA_00B2;
		UI_remove_item_84(var000B);
	labelFunc08DA_00B2:
		goto labelFunc08DA_0076;
	labelFunc08DA_00B5:
		goto labelFunc08DA_0023;
	labelFunc08DA_00B8:
		var0003 = UI_find_nearby_avatar_3C(0x0379);
		enum();
	labelFunc08DA_00C3:
		for (var0006 in var0003 with var000D to var000E atend labelFunc08DA_0119);
		UI_set_item_shape_14(var0006, 0x020E);
		var000B = UI_create_new_object_2C(0x01B8);
		if(!var000B) goto labelFunc08DA_0116;
		var0008 = UI_get_object_position_20(var0006);
		var0001 = UI_update_last_created_2F([(var0008[0x0001] + 0x0003), (var0008[0x0002] + 0x0003), var0008[0x0003]]);
	labelFunc08DA_0116:
		goto labelFunc08DA_00C3;
	labelFunc08DA_0119:
		var0001 = true;
	labelFunc08DA_011D:
		if(!(var0002 == 0x000A)) goto labelFunc08DA_0140;
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0601], 0x0001);
		var0001 = true;
	labelFunc08DA_0140:
		if(!(var0002 == 0x0046)) goto labelFunc08DA_0152;
		Func08DB(item);
		var0001 = true;
	labelFunc08DA_0152:
		if(!((var0002 == 0x0094) || (var0002 == 0x0095))) goto labelFunc08DA_0168;
		var0001 = true;
	labelFunc08DA_0168:
		if(!((var0002 >= 0x0096) && (var0002 <= 0x00A3))) goto labelFunc08DA_029D;
		var0001 = true;
		if(!(var0002 == 0x00A0)) goto labelFunc08DA_0192;
		if(!(!gflags[0238])) goto labelFunc08DA_0192;
		goto labelFunc08DA_04A7;
	labelFunc08DA_0192:
		if(!(var0002 == 0x00A1)) goto labelFunc08DA_0270;
		Func097F(0xFE9C, "@That did something.@", 0x0002);
		Func097F(0xFF58, "@I hope nothing bad...@", 0x0012);
		UI_play_sound_effect_16(0x0058);
		if(!(UI_get_item_frame_1A(item) == 0x0000)) goto labelFunc08DA_01D2;
		UI_set_item_frame_1B(item, 0x0001);
		goto labelFunc08DA_01DA;
	labelFunc08DA_01D2:
		UI_set_item_frame_1B(item, 0x0000);
	labelFunc08DA_01DA:
		var000F = UI_find_nearby_41(item, 0x0313, 0x0014, 0x0000);
		enum();
	labelFunc08DA_01EC:
		for (var0012 in var000F with var0010 to var0011 atend labelFunc08DA_026F);
		var0002 = UI_get_item_quality_1C(var0012);
		if(!(var0002 == 0x009F)) goto labelFunc08DA_0236;
		var0008 = UI_get_object_position_20(var0012);
		var0001 = UI_execute_usecode_array_01(var0012, [0x23, 0x52, "@click@"]);
		var0013 = UI_set_item_quality_1D(var0012, 0x00A0);
	labelFunc08DA_0236:
		if(!(var0002 == 0x00A0)) goto labelFunc08DA_026B;
		var0008 = UI_get_object_position_20(var0012);
		var0001 = UI_execute_usecode_array_01(var0012, [0x23, 0x52, "@click@"]);
		var0013 = UI_set_item_quality_1D(var0012, 0x009F);
	labelFunc08DA_026B:
		abrt();
		goto labelFunc08DA_01EC;
	labelFunc08DA_026F:
		abrt();
	labelFunc08DA_0270:
		if(!(var0002 == 0x00A2)) goto labelFunc08DA_0281;
		gflags[0238] = true;
		goto labelFunc08DA_04A7;
	labelFunc08DA_0281:
		if(!(var0002 == 0x00A3)) goto labelFunc08DA_0296;
		UI_item_say_4D(0xFE9C, "@'Tis jammed.@");
		abrt();
	labelFunc08DA_0296:
		Func0924(item, 0xFE99);
	labelFunc08DA_029D:
		if(!((var0002 == 0x0047) || ((var0002 == 0x0048) || (var0002 == 0x0049)))) goto labelFunc08DA_02CF;
		var0001 = ("@It's stuck...@" & "@I cannot budge it!@");
		Func094F(0xFE9C, var0001);
		var0001 = false;
		abrt();
	labelFunc08DA_02CF:
		if(!(var0002 == 0x00CC)) goto labelFunc08DA_0311;
		if(!gflags[01B8]) goto labelFunc08DA_0311;
		var0008 = UI_get_object_position_20(0xFE9C);
		var0014 = true;
		UI_move_object_4B(0xFFDE, [(var0008[0x0001] + 0x0003), (var0008[0x0002] - 0x0002), var0008[0x0003]]);
	labelFunc08DA_0311:
		if(!((var0002 > 0x00DC) && (var0002 < 0x00EC))) goto labelFunc08DA_0327;
		var0001 = true;
	labelFunc08DA_0327:
		if(!(var0002 == 0x00ED)) goto labelFunc08DA_0346;
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x060E], 0x0001);
	labelFunc08DA_0346:
		if(!((var0002 > 0x000A) && (var0002 < 0x0010))) goto labelFunc08DA_036B;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x55, 0x0357]);
		abrt();
	labelFunc08DA_036B:
		if(!(var0002 == 0x0014)) goto labelFunc08DA_037C;
		var0001 = Func08E2(item);
	labelFunc08DA_037C:
		if(!(var0002 == 0x0015)) goto labelFunc08DA_0397;
		var0015 = UI_set_item_quality_1D(var0000, 0x0014);
		var0001 = true;
	labelFunc08DA_0397:
		if(!((var0002 > 0x005A) && (var0002 < 0x0065))) goto labelFunc08DA_03B3;
		Func08E4(var0002);
		var0001 = true;
	labelFunc08DA_03B3:
		if(!(((var0002 >= 0x0001) && (var0002 <= 0x0005)) || (var0002 == 0x0012))) goto labelFunc08DA_0431;
		var0016 = (UI_find_nearby_41(var0000, 0x034D, 0x0050, 0x0000) & UI_find_nearby_41(var0000, 0x033C, 0x0050, 0x0000));
		enum();
	labelFunc08DA_03F2:
		for (var0019 in var0016 with var0017 to var0018 atend labelFunc08DA_0431);
		if(!(var0002 == UI_get_item_quality_1C(var0019))) goto labelFunc08DA_042E;
		if(!(UI_get_item_shape_18(var0019) == 0x034D)) goto labelFunc08DA_0425;
		var0001 = Func090B(var0019);
		goto labelFunc08DA_042E;
	labelFunc08DA_0425:
		var0001 = Func090A(var0019);
	labelFunc08DA_042E:
		goto labelFunc08DA_03F2;
	labelFunc08DA_0431:
		if(!((var0002 >= 0x00F0) && (var0002 <= 0x00FA))) goto labelFunc08DA_04A7;
		var0016 = (UI_find_nearby_41(var0000, 0x034D, 0x0064, 0x0000) & UI_find_nearby_41(var0000, 0x033C, 0x0064, 0x0000));
		enum();
	labelFunc08DA_0468:
		for (var0019 in var0016 with var001A to var001B atend labelFunc08DA_04A7);
		if(!(var0002 == UI_get_item_quality_1C(var0019))) goto labelFunc08DA_04A4;
		if(!(UI_get_item_shape_18(var0019) == 0x034D)) goto labelFunc08DA_049B;
		var0001 = Func090B(var0019);
		goto labelFunc08DA_04A4;
	labelFunc08DA_049B:
		var0001 = Func090A(var0019);
	labelFunc08DA_04A4:
		goto labelFunc08DA_0468;
	labelFunc08DA_04A7:
		if(!var0001) goto labelFunc08DA_04EF;
		var001C = UI_get_item_frame_1A(var0000);
		if(!((var001C % 0x0002) == 0x0000)) goto labelFunc08DA_04D6;
		UI_set_item_frame_1B(var0000, (var001C + 0x0001));
		goto labelFunc08DA_04E4;
	labelFunc08DA_04D6:
		UI_set_item_frame_1B(var0000, (var001C - 0x0001));
	labelFunc08DA_04E4:
		UI_play_sound_effect2_A1(0x0046, item);
		goto labelFunc08DA_04F6;
	labelFunc08DA_04EF:
		UI_flash_mouse_7F(0x0000);
	labelFunc08DA_04F6:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08E5 0x8E5 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08DB 0x8DB (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	gflags[0007] = false;
	if(!(gflags[0060] && (!gflags[0061]))) goto labelFunc08DB_00EB;
	var0001 = UI_get_object_position_20(Dupre);
	var0002 = UI_get_object_position_20(0xFE9C);
	if(!((UI_get_distance_21(0xFE9C, Dupre) < 0x0008) && (var0001[0x0003] == var0002[0x0003]))) goto labelFunc08DB_00EB;
	Func097F(Dupre, "@Stand back, Avatar!@", 0x0000);
	UI_show_npc_face0_05(Dupre, 0x0000);
	UcMessage("\"I cannot allow thee to throw away thy life! Thou must live to ensure Britannia's safety!\"");
	UcSay;
	UcMessage("\"I cannot live with the shame of the deaths I have caused... If I can redeem myself by becoming the required martyr, so be it!\"");
	UcSay;
	UcMessage("\"Let it be said that Sir Dupre died bravely!\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0001 = UI_get_object_position_20(Dupre);
	var0001[0x0001] = (var0001[0x0001] - 0x0003);
	var0001[0x0002] = (var0001[0x0002] - 0x0003);
	UI_sprite_effect_68(0x0009, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	gflags[0007] = true;
	gflags[0061] = true;
	if(!UI_get_item_flag_A3(Dupre, 0x0006)) goto labelFunc08DB_00CD;
	UI_remove_from_party_27(Dupre);
	labelFunc08DB_00CD:
		UI_set_item_flag_A4(Dupre, 0x0004);
		Func08E5();
		UI_remove_npc_4C(Dupre);
		UI_play_music_39(0x0036, 0x0000);
	labelFunc08DB_00EB:
		var0003 = UI_find_nearby_41(var0000, 0x03ED, 0x000F, 0x0000);
		enum();
	labelFunc08DB_00FF:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc08DB_0176);
		var0002 = UI_get_item_frame_1A(var0006);
		if(!(var0002 < 0x0003)) goto labelFunc08DB_014A;
		var0001 = UI_execute_usecode_array_01(var0006, [0x46, 0x0000, 0x46, 0x0001, 0x46, 0x0000, 0x46, 0x0002, 0x0B, 0xFFF8, 0x0014]);
		goto labelFunc08DB_0173;
	labelFunc08DB_014A:
		var0001 = UI_execute_usecode_array_01(var0006, [0x46, 0x0005, 0x46, 0x0003, 0x46, 0x0005, 0x46, 0x0004, 0x0B, 0xFFF8, 0x0014]);
	labelFunc08DB_0173:
		goto labelFunc08DB_00FF;
	labelFunc08DB_0176:
		var0003 = UI_find_nearby_41(var0000, 0x03F2, 0x000F, 0x0000);
		enum();
	labelFunc08DB_018A:
		for (var0009 in var0003 with var0007 to var0008 atend labelFunc08DB_0325);
		var0002 = UI_get_item_frame_1A(var0009);
		if(!(var0002 < 0x0007)) goto labelFunc08DB_0301;
		var0001 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0002), 0x0000);
		var0001 = UI_execute_usecode_array_01(var0009, [0x46, 0x0000, 0x4E, 0x0B, Dupre, 0x0005, 0x27, 0x0002, 0x46, 0x0005, 0x50, 0x0B, Dupre, 0x0004]);
		if(!(!gflags[0007])) goto labelFunc08DB_0301;
		var000A = [];
		var000B = [0x03ED, 0x03EF, 0x03F2, 0x02D1, 0x0313];
		var000C = UI_find_nearby_41(var0009, 0xFE99, 0x0003, 0x0000);
		enum();
	labelFunc08DB_0222:
		for (var000F in var000C with var000D to var000E atend labelFunc08DB_0301);
		var0001 = UI_get_object_position_20(var000F);
		if(!(var0001[0x0003] < 0x000B)) goto labelFunc08DB_02FE;
		var0010 = UI_get_item_shape_18(var000F);
		var0001 = UI_get_item_frame_1A(var000F);
		if(!(!in(var0010, var000B))) goto labelFunc08DB_02FE;
		if(!(((var0010 == 0x0192) && (var0001 == 0x000B)) || (((var0010 == 0x0190) && (var0001 == 0x0005)) || ((var0010 == 0x0190) && (var0001 == 0x0006))))) goto labelFunc08DB_0299;
		gflags[00BE] = true;
	labelFunc08DB_0299:
		var0001 = UI_get_object_position_20(var000F);
		var0001[0x0001] = (var0001[0x0001] - 0x0003);
		var0001[0x0002] = (var0001[0x0002] - 0x0003);
		if(!(!UI_is_npc_3D(var000F))) goto labelFunc08DB_02FE;
		UI_sprite_effect_68(0x0009, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		var000A = (var000A & var000F);
		UI_remove_item_84(var000F);
	labelFunc08DB_02FE:
		goto labelFunc08DB_0222;
	labelFunc08DB_0301:
		if(!(var000A || gflags[0007])) goto labelFunc08DB_0322;
		var0001 = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x03F2], 0x0028);
	labelFunc08DB_0322:
		goto labelFunc08DB_018A;
	labelFunc08DB_0325:
		return;
}
Func08DC 0x8DC (var var0000)
{
	var var0001;

	var0001 = UI_get_object_position_20(var0000);
	UI_sprite_effect_68(0x0009, (var0001[0x0001] - 0x0006), (var0001[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(var0000);
	return;
}
Func08DD 0x8DD (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;

	var0003 = UI_get_object_position_20(var0002);
	UI_sprite_effect_68(0x0009, (var0003[0x0001] - 0x0006), (var0003[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(var0002);
	var0004 = UI_create_new_object_2C(var0001);
	if(!var0004) goto labelFunc08DD_0066;
	UI_set_item_flag_A4(var0004, 0x0012);
	UI_set_item_frame_1B(var0004, var0000);
	var0005 = UI_update_last_created_2F(var0003);
	labelFunc08DD_0066:
		return;
}
Func08DE 0x8DE (var var0000, var var0001)
{
	var var0002;

	var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x59, 0x0002, 0x68, 0x6A, 0x61], 0x000A);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x2D], 0x000F);
	return;
}
// externs
extern Func08DE 0x8DE (var var0000, var var0001);

Func08DF 0x8DF (var var0000, var var0001)
{
	var var0002;
	var var0003;

	var0002 = UI_get_object_position_20(var0001);
	UI_sprite_effect_68(0x0015, (var0002[0x0001] - 0x0006), (var0002[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
	UI_remove_item_84(var0001);
	if(!(var0000 == 0x01EF)) goto labelFunc08DF_00A1;
	var0003 = UI_create_new_object2_2D(var0000, var0002);
	if(!var0003) goto labelFunc08DF_009E;
	UI_set_item_flag_A4(var0003, 0x0012);
	UI_set_schedule_type_25(var0003, 0x0011);
	UI_set_item_frame_1B(var0003, 0x0000);
	var0000 = UI_find_nearest_15(var0003, 0x0179, 0x0001);
	if(!(var0000 && (UI_get_item_frame_1A(var0000) == 0x000C))) goto labelFunc08DF_009E;
	Func08DE(var0003, var0000);
	labelFunc08DF_009E:
		goto labelFunc08DF_00CF;
	labelFunc08DF_00A1:
		var0003 = UI_create_new_object_2C(var0000);
		if(!var0003) goto labelFunc08DF_00CF;
		UI_set_item_flag_A4(var0003, 0x0012);
		UI_set_item_frame_1B(var0003, 0x0000);
		var0000 = UI_update_last_created_2F(var0002);
	labelFunc08DF_00CF:
		return;
}
var Func08E0 0x8E0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0001 = UI_find_nearby_41(var0000, 0x03B5, 0x0014, 0x0000);
	enum();
	labelFunc08E0_0014:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc08E0_002A);
		rr = UI_get_item_quality_1C(var0004);
		goto labelFunc08E0_0014;
	labelFunc08E0_002A:
		rr = 0x0000;
		return rr;
}
var Func08E1 0x8E1 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var rr;

	var0001 = UI_find_nearby_41(var0000, 0x01B9, 0x0004, 0x0000);
	var0002 = 0x0000;
	var0003 = UI_get_object_position_20(var0000);
	enum();
	labelFunc08E1_0024:
		for (var0006 in var0001 with var0004 to var0005 atend labelFunc08E1_0066);
		var0007 = UI_get_object_position_20(var0006);
		if(!(((var0007[0x0002] - var0003[0x0002]) < 0x0002) && ((var0007[0x0002] - var0003[0x0002]) > Shamino))) goto labelFunc08E1_0063;
		rr = var0006;
	labelFunc08E1_0063:
		goto labelFunc08E1_0024;
	labelFunc08E1_0066:
		rr = 0x0000;
		return rr;
}
// externs
extern var Func08E0 0x8E0 (var var0000);
extern var Func08E1 0x8E1 (var var0000);
extern Func08DC 0x8DC (var var0000);
extern Func08DD 0x8DD (var var0000, var var0001, var var0002);
extern Func08DF 0x8DF (var var0000, var var0001);
extern Func08DE 0x8DE (var var0000, var var0001);

var Func08E2 0x8E2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0001 = Func08E0(var0000);
	if(!((var0001 != 0x00CA) && (var0001 != 0x00CC))) goto labelFunc08E2_003F;
	var0002 = UI_set_item_quality_1D(var0000, 0x0015);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x0313], 0x0005);
	rr = true;
	labelFunc08E2_003F:
		var0003 = Func08E1(var0000);
		if(!var0003) goto labelFunc08E2_049F;
		var0004 = UI_get_object_position_20(var0003);
		var0005 = 0x0000;
		var0006 = 0x0000;
		var0007 = UI_find_nearby_41(var0003, 0xFE99, 0x0001, 0x0000);
		if(!var0007) goto labelFunc08E2_0398;
		enum();
	labelFunc08E2_007E:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc08E2_0398);
		var000B = false;
		var000C = UI_get_item_shape_18(var000A);
		if(!(var000C == 0x0179)) goto labelFunc08E2_0194;
		var000D = UI_get_item_frame_1A(var000A);
		if(!((var000D != 0x000C) && (var000D != 0x0014))) goto labelFunc08E2_00D9;
		var0006 = 0x07F2;
		var0005 = 0x0029;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_00D9;
		Func08DC(var000A);
	labelFunc08E2_00D9:
		if(!(var000D == 0x000C)) goto labelFunc08E2_0172;
		var0006 = 0x07F3;
		var0005 = 0x002A;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_0172;
		var000E = UI_find_nearest_15(var000A, 0x01EF, 0x0014);
		if(!var000E) goto labelFunc08E2_0116;
		var000B = true;
		goto labelFunc08E2_0126;
	labelFunc08E2_0116:
		var000E = UI_find_nearest_15(var000A, 0x021E, 0x0014);
	labelFunc08E2_0126:
		if(!var000E) goto labelFunc08E2_016B;
		var000F = UI_create_new_object_2C(0x0179);
		if(!var000F) goto labelFunc08E2_0167;
		UI_set_item_frame_1B(var000F, 0x000C);
		UI_set_item_flag_A4(var000F, 0x0012);
		var0010 = UI_get_object_position_20(var000E);
		var0002 = UI_update_last_created_2F(var0010);
		goto labelFunc08E2_016B;
	labelFunc08E2_0167:
		var000B = false;
	labelFunc08E2_016B:
		UI_remove_item_84(var000A);
	labelFunc08E2_0172:
		if(!(var000D == 0x0014)) goto labelFunc08E2_0194;
		var0006 = 0x07F4;
		var0005 = 0x002B;
		Func08DD(var000A, 0x0369, 0x0000);
	labelFunc08E2_0194:
		if(!(var000C == 0x0274)) goto labelFunc08E2_01BA;
		var0006 = 0x07F2;
		var0005 = 0x0029;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_01BA;
		Func08DC(var000A);
	labelFunc08E2_01BA:
		if(!(var000C == 0x02CD)) goto labelFunc08E2_01E3;
		var0006 = 0x07F3;
		var0005 = 0x002A;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_01E3;
		Func08DF(var000A, 0x0108);
	labelFunc08E2_01E3:
		if(!(var000C == 0x021E)) goto labelFunc08E2_020C;
		var0006 = 0x07F3;
		var0005 = 0x002A;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_020C;
		Func08DF(var000A, 0x01EF);
	labelFunc08E2_020C:
		if(!(var000C == 0x023C)) goto labelFunc08E2_0232;
		var0006 = 0x07F2;
		var0005 = 0x0029;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_0232;
		Func08DC(var000A);
	labelFunc08E2_0232:
		if(!(var000C == 0x0272)) goto labelFunc08E2_025B;
		var0006 = 0x07F3;
		var0005 = 0x002A;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_025B;
		Func08DF(var000A, 0x00CB);
	labelFunc08E2_025B:
		if(!(var000C == 0x0369)) goto labelFunc08E2_027D;
		var0006 = 0x07F4;
		var0005 = 0x002B;
		Func08DD(var000A, 0x0179, 0x0014);
	labelFunc08E2_027D:
		if(!((var000C == 0x0108) || ((var000C == 0x01EF) || (var000C == 0x00CB)))) goto labelFunc08E2_02B3;
		var0006 = 0x07F2;
		var0005 = 0x0029;
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_02B3;
		Func08DC(var000A);
	labelFunc08E2_02B3:
		if(!(var000C == 0x0346)) goto labelFunc08E2_0353;
		if(!(var0001 == 0x00CC)) goto labelFunc08E2_0353;
		var000D = UI_get_item_frame_1A(var000A);
		if(!(var000D == 0x0001)) goto labelFunc08E2_0353;
		var0006 = 0x07F4;
		var0005 = 0x002B;
		var0010 = UI_get_object_position_20(var000A);
		UI_sprite_effect_68(0x0009, (var0010[0x0001] - 0x0006), (var0010[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var000A);
		UI_move_object_4B(0xFFF0, var0010);
		UI_set_schedule_type_25(0xFFF0, 0x0003);
		UI_set_new_schedules_B6(0xFFF0, 0x0000, 0x000C, [var0010[0x0001], var0010[0x0002]]);
		gflags[00E6] = true;
	labelFunc08E2_0353:
		if(!var000B) goto labelFunc08E2_0362;
		Func08DE(var000E, var000F);
	labelFunc08E2_0362:
		if(!((var0001 == 0x00CC) && ((var0006 != 0x0000) && (var0005 != 0x002B)))) goto labelFunc08E2_0395;
		var0005 = 0x002B;
		Func08DD(var000A, 0x0179, UI_die_roll_17(0x0000, 0x0014));
	labelFunc08E2_0395:
		goto labelFunc08E2_007E;
	labelFunc08E2_0398:
		if(!(var0006 == 0x0000)) goto labelFunc08E2_0428;
		var0006 = 0x07F1;
		var0005 = 0x0028;
		var0010 = var0004;
		var0010[0x0003] = (var0010[0x0003] + 0x0001);
		UI_sprite_effect_68(0x0015, (var0010[0x0001] - 0x0006), (var0010[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
		var0011 = [0x0108, 0x0179, 0x0274, 0x023C];
		var000A = UI_create_new_object_2C(var0011[UI_get_random_00(0x0004)]);
		if(!var000A) goto labelFunc08E2_0428;
		UI_set_item_flag_A4(var000A, 0x0012);
		var0002 = UI_update_last_created_2F(var0010);
	labelFunc08E2_0428:
		if(!(var0001 == 0x00CA)) goto labelFunc08E2_0449;
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, var0006], 0x000A);
	labelFunc08E2_0449:
		UI_sprite_effect_68(var0005, (var0004[0x0001] - 0x0006), (var0004[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0074);
		UI_UNKNOWN_72();
		var0002 = UI_set_item_quality_1D(var0000, 0x0015);
		var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x0313], 0x0005);
		rr = true;
	labelFunc08E2_049F:
		rr = false;
		return rr;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func08E3 0x8E3 ()
{
	var var0000;

	gflags[00E3] = true;
	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	if(!(var0000 == 0xFE9C)) goto labelFunc08E3_002B;
	UI_item_say_4D(0xFE9C, "@Now I know the secret!@");
	goto labelFunc08E3_0039;
	labelFunc08E3_002B:
		UI_show_npc_face0_05(var0000, 0x0000);
		UcMessage("\"Dost thou not see? Red, green and yellow -- and we have observed their properties. Now we can report to Gustacio.\"");
		UcSay;
	labelFunc08E3_0039:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern Func0907 0x907 (var var0000, var var0001);

Func08E4 0x8E4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0001 = [0x0178, 0x010E, 0x01B0, 0x01B1];
	var0002 = [];
	enum();
	labelFunc08E4_0019:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc08E4_003C);
		var0002 = (var0002 & UI_find_nearby_41(item, var0005, 0x006E, 0x0000));
		goto labelFunc08E4_0019;
	labelFunc08E4_003C:
		var0006 = false;
		enum();
	labelFunc08E4_0041:
		for (var0005 in var0002 with var0007 to var0008 atend labelFunc08E4_0063);
		if(!(UI_get_item_quality_1C(var0005) == var0000)) goto labelFunc08E4_0060;
		var0006 = var0005;
	labelFunc08E4_0060:
		goto labelFunc08E4_0041;
	labelFunc08E4_0063:
		if(!var0006) goto labelFunc08E4_008E;
		var0009 = 0x0002;
		if(!(Func0906(var0006) == 0x0002)) goto labelFunc08E4_0082;
		var0009 = 0x0001;
	labelFunc08E4_0082:
		Func0907(var0006, var0009);
		goto labelFunc08E4_00A0;
	labelFunc08E4_008E:
		var000A = UI_execute_usecode_array_01(item, [0x23, 0x52, "@No door!@"]);
	labelFunc08E4_00A0:
		return;
}
Func08E5 0x8E5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = UI_get_cont_items_33(Dupre, 0xFE99, 0xFE99, 0xFE99);
	enum();
	labelFunc08E5_0014:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc08E5_0154);
		if(!UI_set_last_created_2E(var0003)) goto labelFunc08E5_0151;
		var0004 = UI_update_last_created_2F([0x0337, 0x0A25, 0x0005]);
		if(!(!var0004)) goto labelFunc08E5_0056;
		var0004 = UI_update_last_created_2F([0x0335, 0x0A25, 0x0005]);
	labelFunc08E5_0056:
		if(!(!var0004)) goto labelFunc08E5_0070;
		var0004 = UI_update_last_created_2F([0x0333, 0x0A25, 0x0005]);
	labelFunc08E5_0070:
		if(!(!var0004)) goto labelFunc08E5_008A;
		var0004 = UI_update_last_created_2F([0x0331, 0x0A25, 0x0005]);
	labelFunc08E5_008A:
		if(!(!var0004)) goto labelFunc08E5_00A4;
		var0004 = UI_update_last_created_2F([0x0337, 0x0A27, 0x0005]);
	labelFunc08E5_00A4:
		if(!(!var0004)) goto labelFunc08E5_00BE;
		var0004 = UI_update_last_created_2F([0x0335, 0x0A27, 0x0005]);
	labelFunc08E5_00BE:
		if(!(!var0004)) goto labelFunc08E5_00D8;
		var0004 = UI_update_last_created_2F([0x0333, 0x0A27, 0x0005]);
	labelFunc08E5_00D8:
		if(!(!var0004)) goto labelFunc08E5_00F2;
		var0004 = UI_update_last_created_2F([0x0331, 0x0A27, 0x0005]);
	labelFunc08E5_00F2:
		if(!(!var0004)) goto labelFunc08E5_010C;
		var0004 = UI_update_last_created_2F([0x0336, 0x0A29, 0x0005]);
	labelFunc08E5_010C:
		if(!(!var0004)) goto labelFunc08E5_0126;
		var0004 = UI_update_last_created_2F([0x0333, 0x0A29, 0x0005]);
	labelFunc08E5_0126:
		if(!(!var0004)) goto labelFunc08E5_0140;
		var0004 = UI_update_last_created_2F([0x032B, 0x0A27, 0x0000]);
	labelFunc08E5_0140:
		if(!(!var0004)) goto labelFunc08E5_0151;
		var0004 = UI_give_last_created_43(0xFE9C);
	labelFunc08E5_0151:
		goto labelFunc08E5_0014;
	labelFunc08E5_0154:
		return;
}
// externs
extern Func0982 0x982 (var var0000, var var0001);

Func08E6 0x8E6 ()
{
	var var0000;

	var0000 = UI_get_object_position_20(0xFE9C);
	UI_play_sound_effect_16(0x002A);
	UI_obj_sprite_effect_91(0xFE9C, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	Func0982(0xFE9C, 0x007E);
	return;
}
// externs
extern var Func0988 0x988 (var var0000, var var0001);
extern var Func0989 0x989 (var var0000, var var0001);

var Func08E7 0x8E7 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var rr;

	var0001 = 0x0001;
	var0002 = 0x0000;
	var0003 = false;
	var0004 = UI_get_party_list_2B();
	var0005 = UI_get_barge_6D(var0000);
	var0006 = UI_find_nearby_41(var0000, 0x0124, 0x001E, 0x0000);
	var0007 = [];
	var0008 = [];
	enum();
	labelFunc08E7_0041:
		for (var000B in var0006 with var0009 to var000A atend labelFunc08E7_00AC);
		if(!(UI_get_barge_6D(var000B) == var0005)) goto labelFunc08E7_00A9;
		if(!((!var0003) && (UI_get_item_quality_1C(var000B) == 0x00FF))) goto labelFunc08E7_008E;
		UI_sit_down_54(0xFE9C, var000B);
		var0004 = Func0988(UI_get_npc_object_23(0xFE9C), var0004);
		var0003 = true;
		goto labelFunc08E7_00A9;
	labelFunc08E7_008E:
		var0008 = (var0008 & UI_get_distance_21(var000B, 0xFE9C));
		var0007 = (var0007 & var000B);
	labelFunc08E7_00A9:
		goto labelFunc08E7_0041;
	labelFunc08E7_00AC:
		var000C = UI_get_array_size_73(var0004);
		var0007 = Func0989(var0007, var0008);
		enum();
	labelFunc08E7_00C3:
		for (var000B in var0007 with var000D to var000E atend labelFunc08E7_00F7);
		if(!(var000C >= var0001)) goto labelFunc08E7_00F2;
		UI_sit_down_54(var0004[var0001], var000B);
		var0001 = (var0001 + 0x0001);
		goto labelFunc08E7_00F4;
	labelFunc08E7_00F2:
		rr = true;
	labelFunc08E7_00F4:
		goto labelFunc08E7_00C3;
	labelFunc08E7_00F7:
		rr = false;
		return rr;
}
Func08E8 0x8E8 ()
{
	gflags[022E] = false;
	gflags[022F] = false;
	gflags[0230] = false;
	gflags[0231] = false;
	gflags[0232] = false;
	UI_obj_sprite_effect_91(0xFE9C, 0x0011, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
	return;
}
Func08E9 0x8E9 ()
{
	gflags[022E] = false;
	gflags[022F] = false;
	gflags[0230] = false;
	gflags[0231] = false;
	gflags[0232] = false;
	UI_move_object_4B(0xFE9B, [0x0AB7, 0x0094, 0x0000]);
	return;
}
var Func08EA 0x8EA (var var0000)
{
	var var0001;
	var rr;

	var0001 = var0000;
	var0001 = (var0001 / 0x0002);
	var0001 = (var0001 * 0x0002);
	if(!(var0001 == var0000)) goto labelFunc08EA_0029;
	rr = false;
	goto labelFunc08EA_002B;
	labelFunc08EA_0029:
		rr = true;
	labelFunc08EA_002B:
		return rr;
}
// externs
extern var Func08EA 0x8EA (var var0000);

var Func08EB 0x8EB (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0002 = 0x0000;
	var0003 = 0x0001;
	var0004 = var0001;
	labelFunc08EB_0012:
		if(!(var0002 < var0000)) goto labelFunc08EB_0033;
		var0004 = (var0004 / 0x0002);
		var0002 = (var0002 + 0x0001);
		goto labelFunc08EB_0012;
	labelFunc08EB_0033:
		rr = Func08EA(var0004);
		return rr;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func07D1 0x7D1 (var var0000);

Func08EC 0x8EC ()
{
	var var0000;
	var var0001;

	UI_play_sound_effect_16(0x0082);
	var0000 = Func09A0(0x0000, 0x0001);
	if(!var0000) goto labelFunc08EC_0023;
	UI_play_music_39(0x001B, var0000);
	labelFunc08EC_0023:
		Func09AC(0xFFEE, Dupre, 0x0000, 0x000F);
		UI_move_object_4B(0xFFEE, [0x097A, 0x074C, 0x0000]);
		UI_sprite_effect_68(0x0007, 0x097A, 0x074C, 0x0000, 0x0000, 0x0000, Dupre);
		Func097F(0xFFEE, "@Darling, I'm here...!@", 0x0002);
		0xFFEE;
		calle();
		gflags[00E2] = true;
		var0001 = UI_delayed_execute_usecode_array_02(0xFFEE, [0x23, 0x55, 0x01C7], 0x000F);
		abrt();
		return;
}
// externs
extern var Func0953 0x953 ();

var Func08ED 0x8ED (var var0000)
{
	var var0001;
	var rr;

	var0001 = Func0953();
	var0000 = (var0000 + 0x0001);
	if(!(var0000 == 0x0001)) goto labelFunc08ED_002C;
	UcMessage("\"");
	UcMessage(var0001);
	UcMessage(", we are all warriors here. It is not necessary for thee to attempt to impress us with exaggerated tales...\"");
	UcSay;
	UcMessage("\"What else didst thou see in the Knight's Test?\"");
	UcSay;
	rr = var0000;
	labelFunc08ED_002C:
		if(!(var0000 == 0x0002)) goto labelFunc08ED_0069;
		UcMessage("\"Art thou certain of thy facts?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB9, 0x0000);
		if(!UI_is_pc_female_6F()) goto labelFunc08ED_0052;
		UcMessage("\"Didst thou fight a dragon as well? She is full of jests.\"");
		UcSay;
		goto labelFunc08ED_0056;
	labelFunc08ED_0052:
		UcMessage("\"Listen to his tales -- I think that he is attracted to thee, Shazzana.\"");
		UcSay;
	labelFunc08ED_0056:
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Be still, Luther -- I think something strange is happening. Tell me more of what thou didst see...\"");
		UcSay;
		rr = var0000;
	labelFunc08ED_0069:
		if(!(var0000 == 0x0003)) goto labelFunc08ED_0098;
		UcMessage("\"Knights, have you been listening? Our new warrior hath had a terrible experience...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFB3, 0x0000);
		UcMessage("\"I'm sure there is an explanation for everything.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"This time, I think thou art wrong, Spektor! What else didst thou see in the dungeon?\"");
		UcSay;
		rr = var0000;
	labelFunc08ED_0098:
		if(!(var0000 == 0x0004)) goto labelFunc08ED_00CD;
		UcMessage("\"There must be something wrong...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFBB, 0x0000);
		UcMessage("\"I shall have a talk with Shmed tomorrow. If half of what this Knight says is true, then the dungeonkeeper hath been seriously delinquent in his duties.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(", I apologize for what hath been done to thee in the Knight's Test. 'Tis an outrage!\"");
		UcSay;
		rr = var0000;
	labelFunc08ED_00CD:
		return rr;
}
// externs
extern var Func0994 0x994 ();

Func08EE 0x8EE (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0001 = Func0994();
	if(!(var0001 == 0x000E)) goto labelFunc08EE_0026;
	var0002 = 0x0190;
	var0003 = UI_die_roll_17(0x0012, 0x0013);
	goto labelFunc08EE_0092;
	labelFunc08EE_0026:
		if(!(var0001 == 0x000D)) goto labelFunc08EE_005F;
		if(!(UI_die_roll_17(0x0001, 0x0004) == 0x0001)) goto labelFunc08EE_0050;
		var0002 = 0x019E;
		var0003 = 0x0004;
		goto labelFunc08EE_005C;
	labelFunc08EE_0050:
		var0002 = 0x0192;
		var0003 = 0x000B;
	labelFunc08EE_005C:
		goto labelFunc08EE_0092;
	labelFunc08EE_005F:
		if(!(var0001 == 0x0003)) goto labelFunc08EE_0078;
		var0002 = 0x019E;
		var0003 = 0x0011;
		goto labelFunc08EE_0092;
	labelFunc08EE_0078:
		if(!(var0001 == 0x0009)) goto labelFunc08EE_0091;
		var0002 = 0x0190;
		var0003 = 0x0006;
		goto labelFunc08EE_0092;
	labelFunc08EE_0091:
		exit2();
	labelFunc08EE_0092:
		var0004 = UI_create_new_object_2C(var0002);
		if(!var0004) goto labelFunc08EE_00B6;
		UI_set_item_frame_1B(var0004, var0003);
		var0005 = UI_update_last_created_2F(var0000);
	labelFunc08EE_00B6:
		return;
}
Func08EF 0x8EF ()
{
	var var0000;
	var var0001;

	gflags[0007] = true;
	if(!gflags[0072]) goto labelFunc08EF_000F;
	UcMessage("\"Caladin is already deceased!\"");
	UcSay;
	abrt();
	labelFunc08EF_000F:
		var0000 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x55, 0x07DB], 0x0008);
		var0001 = UI_direction_from_A2(0xFEF9, 0xFFC1);
		var0000 = UI_execute_usecode_array_01(0xFEF9, [0x59, var0001, 0x70, 0x6F, 0x70, 0x58, 0x0040, 0x6A, 0x27, 0x0002, 0x61]);
		var0000 = UI_execute_usecode_array_01(0xFFC1, [0x23, 0x27, 0x000A]);
		abrt();
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func08F0 0x8F0 ()
{
	var var0000;

	if(!((gflags[003E] && (gflags[007E] && gflags[0091])) && ((!gflags[0048]) && (gflags[00A5] || (!gflags[002D]))))) goto labelFunc08F0_0077;
	var0000 = UI_get_random_00(0x0003);
	if(!(var0000 == 0x0001)) goto labelFunc08F0_0034;
	UcMessage("\"'Tis time for thy banquet, Avatar. Thou shouldst make haste.\"");
	UcSay;
	labelFunc08F0_0034:
		if(!(var0000 == 0x0002)) goto labelFunc08F0_0042;
		UcMessage("\"I shall see thee at the Banquet Hall, Avatar. It is in the south part of town.\"");
		UcSay;
	labelFunc08F0_0042:
		if(!(var0000 == 0x0003)) goto labelFunc08F0_0050;
		UcMessage("\"Forgive me, Avatar. I must prepare for thy banquet.\"");
		UcSay;
	labelFunc08F0_0050:
		Func097F(item, "@The banquet!@", 0x0000);
		UI_set_schedule_type_25(item, 0x0014);
		UI_set_new_schedules_B6(item, 0x0000, 0x000C, [0x0000, 0x0000]);
		abrt();
	labelFunc08F0_0077:
		return;
}
var Func08F1 0x8F1 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = [0x03A3, 0x0A46, 0x0000];
	var0001 = UI_get_object_position_20(0xFF6A);
	var0002 = (var0000[0x0001] - var0001[0x0001]);
	if(!(var0002 < 0x0000)) goto labelFunc08F1_003D;
	var0002 = (var0002 * Dupre);
	labelFunc08F1_003D:
		var0003 = (var0000[0x0002] - var0001[0x0002]);
		if(!(var0003 < 0x0000)) goto labelFunc08F1_0061;
		var0003 = (var0003 * Dupre);
	labelFunc08F1_0061:
		var0004 = (var0002 + var0003);
		rr = var0004;
		return rr;
}
Func08F2 0x8F2 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0000[0x0002] = (var0000[0x0002] - 0x0003);
	var0001 = [0xFF2D, 0xFF2C, 0xFF2B, 0xFF31, 0xFF2F, 0xFF2A, 0xFF30, 0xFF2E];
	var0002 = 0x0000;
	labelFunc08F2_0034:
		if(!(var0002 < 0x0007)) goto labelFunc08F2_00CA;
		if(!(var0002 > 0x0003)) goto labelFunc08F2_007C;
		var0003 = (var0002 - 0x0003);
		UI_move_object_4B(var0001[var0002], [(var0000[0x0001] - var0003), (var0000[0x0002] + var0003), var0000[0x0003]]);
		goto labelFunc08F2_00A3;
	labelFunc08F2_007C:
		UI_move_object_4B(var0001[var0002], [(var0000[0x0001] + var0002), (var0000[0x0002] + var0002), var0000[0x0003]]);
	labelFunc08F2_00A3:
		UI_set_schedule_type_25(var0001[var0002], 0x000F);
		UI_set_npc_id_BD(var0001[var0002], var0002);
		var0002 = (var0002 + 0x0001);
		goto labelFunc08F2_0034;
	labelFunc08F2_00CA:
		return;
}
var Func08F3 0x8F3 ()
{
	var rr;
	if(!((gflags[00D4] && (!UI_get_item_flag_A3(Shamino, 0x001E))) && ((gflags[00D3] && (!UI_get_item_flag_A3(Dupre, 0x001E))) && (gflags[00D5] && (!UI_get_item_flag_A3(Iolo, 0x001E)))))) goto labelFunc08F3_0034;
	rr = true;
	labelFunc08F3_0034:
		rr = false;
		return rr;
}
// externs
extern var Func08F3 0x8F3 ();

Func08F4 0x8F4 ()
{
	var var0000;

	if(!(Func08F3() && (!UI_get_item_flag_A3(0xFF29, 0x001C)))) goto labelFunc08F4_0051;
	var0000 = UI_get_object_position_20(0xFE9C);
	var0000[0x0002] = (var0000[0x0002] - 0x0002);
	UI_move_object_4B(0xFF31, var0000);
	UI_play_sound_effect_16(0x0051);
	UI_set_npc_id_BD(0xFF31, 0x001F);
	UI_set_schedule_type_25(0xFF31, 0x0003);
	labelFunc08F4_0051:
		return;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);
extern var Func08B6 0x8B6 ();

Func08F5 0x8F5 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	UI_show_npc_face0_05(var0000, 0x0000);
	UcMessage("\"Enough, arrogant fool! Thou canst not kill a Xenkan Monk!\"");
	UcSay;
	UcMessage("\"Stand thou in awe of my true power... Let there be PEACE!\"");
	UcSay;
	UI_remove_npc_face0_07();
	var0001 = UI_get_object_position_20(var0000);
	var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
	var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
	UI_sprite_effect_68(0x001A, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0007, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_sprite_effect_68(0x0007, var0001[0x0001], var0001[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	var0002 = [0xFF2D, 0xFF2C, 0xFF2B, 0xFF31, 0xFF2F, 0xFF2A, 0xFF30, 0xFF2E];
	enum();
	labelFunc08F5_00CA:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc08F5_0135);
		UI_halt_scheduled_71(var0005);
		var0006 = UI_get_npc_object_23(var0005);
		UI_set_schedule_type_25(var0006, 0x000A);
		UI_set_alignment_4A(var0006, 0x0000);
		UI_set_opponent_5B(var0006, 0x0000);
		var0007 = Func095C(var0006, 0x0000);
		var0008 = Func095C(var0006, 0x0003);
		var0009 = (var0007 - var0008);
		Func095E(var0006, 0x0003, var0009);
		goto labelFunc08F5_00CA;
	labelFunc08F5_0135:
		var000A = Func08B6();
		var000A = [0xFE9C, var000A];
		enum();
	labelFunc08F5_0148:
		for (var0005 in var000A with var000B to var000C atend labelFunc08F5_01B0);
		UI_halt_scheduled_71(var0005);
		var000D = UI_execute_usecode_array_01(var0005, [0x23, 0x61]);
		UI_set_schedule_type_25(var0005, 0x001F);
		UI_set_opponent_5B(var0005, 0x0000);
		var0007 = Func095C(var0005, 0x0000);
		var0008 = Func095C(var0005, 0x0003);
		var0009 = (var0007 - var0008);
		Func095E(var0005, 0x0003, var0009);
		goto labelFunc08F5_0148;
	labelFunc08F5_01B0:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08F6 0x8F6 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	var0000 = Func09A0(0x0002, 0x0001);
	var0001 = Func09A0(0x0002, 0x0002);
	var0002 = Func09A0(0x0002, 0x0003);
	var0003 = Func09A0(0x0002, 0x0004);
	var0004 = Func09A0(0x0000, 0x0004);
	var0005 = UI_get_object_position_20(0xFE9C);
	var0006 = (var0005[0x0001] / 0x0100);
	var0007 = (var0005[0x0001] - (var0006 * 0x0100));
	var0008 = UI_set_item_quality_1D(var0000, var0006);
	var0008 = UI_set_item_quality_1D(var0001, var0007);
	var0006 = (var0005[0x0002] / 0x0100);
	var0007 = (var0005[0x0002] - (var0006 * 0x0100));
	var0008 = UI_set_item_quality_1D(var0002, var0006);
	var0008 = UI_set_item_quality_1D(var0003, var0007);
	var0008 = UI_set_item_quality_1D(var0004, var0005[0x0003]);
	return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

var Func08F7 0x8F7 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var rr;

	var0000 = [0x0000, 0x0000, 0x0000];
	var0001 = Func09A0(0x0002, 0x0001);
	var0002 = Func09A0(0x0002, 0x0002);
	var0003 = Func09A0(0x0002, 0x0003);
	var0004 = Func09A0(0x0002, 0x0004);
	var0005 = Func09A0(0x0000, 0x0004);
	var0006 = UI_get_item_quality_1C(var0001);
	var0007 = UI_get_item_quality_1C(var0002);
	var0000[0x0001] = ((var0006 * 0x0100) + var0007);
	var0006 = UI_get_item_quality_1C(var0003);
	var0007 = UI_get_item_quality_1C(var0004);
	var0000[0x0002] = ((var0006 * 0x0100) + var0007);
	var0000[0x0003] = UI_get_item_quality_1C(var0005);
	rr = var0000;
	return rr;
}
var Func08F8 0x8F8 (var var0000, var var0001, var var0002)
{
	var rr;
	if(!((var0002[0x0001] > var0001[0x0001]) && ((var0002[0x0001] < var0000[0x0001]) && ((var0002[0x0002] > var0001[0x0002]) && (var0002[0x0002] < var0000[0x0002]))))) goto labelFunc08F8_003F;
	rr = true;
	goto labelFunc08F8_0041;
	labelFunc08F8_003F:
		rr = false;
	labelFunc08F8_0041:
		return rr;
}
// externs
extern var Func08F7 0x8F7 ();
extern var Func0993 0x993 (var var0000);
extern var Func08F8 0x8F8 (var var0000, var var0001, var var0002);

var Func08F9 0x8F9 ()
{
	var var0000;
	var var0001;
	var rr;

	var0000 = Func08F7();
	var0001 = Func0993(var0000);
	if(!(var0001 == 0x0004)) goto labelFunc08F9_001B;
	rr = true;
	labelFunc08F9_001B:
		if(!(var0001 == 0x000B)) goto labelFunc08F9_0027;
		rr = true;
	labelFunc08F9_0027:
		if(!(var0001 == 0x000F)) goto labelFunc08F9_0033;
		rr = true;
	labelFunc08F9_0033:
		if(!(var0001 == 0x000C)) goto labelFunc08F9_003F;
		rr = true;
	labelFunc08F9_003F:
		if(!(!UI_get_item_flag_A3(0xFFB0, 0x001C))) goto labelFunc08F9_004F;
		rr = true;
	labelFunc08F9_004F:
		if(!(Func08F8(var0000, [0x08A3, 0x07B1], [0x08CE, 0x07DF]) || Func08F8(var0000, [0x0853, 0x0821], [0x087E, 0x083D]))) goto labelFunc08F9_0085;
		rr = true;
	labelFunc08F9_0085:
		if(!Func08F8(var0000, [0x0324, 0x0A6C], [0x03BF, 0x0ADC])) goto labelFunc08F9_00A2;
		rr = true;
	labelFunc08F9_00A2:
		if(!Func08F8(var0000, [0x0444, 0x06D5], [0x047A, 0x072A])) goto labelFunc08F9_00BF;
		rr = true;
	labelFunc08F9_00BF:
		if(!Func08F8(var0000, [0x0423, 0x0343], [0x0452, 0x039B])) goto labelFunc08F9_00DC;
		rr = true;
	labelFunc08F9_00DC:
		if(!Func08F8(var0000, [0x0000, 0x0000], [0x04F7, 0x0246])) goto labelFunc08F9_00F9;
		rr = true;
	labelFunc08F9_00F9:
		if(!Func08F8(var0000, [0x0000, 0x0000], [0x03E0, 0x02FE])) goto labelFunc08F9_0116;
		rr = true;
	labelFunc08F9_0116:
		if(!Func08F8(var0000, [0x0000, 0x0000], [0x0366, 0x0402])) goto labelFunc08F9_0133;
		rr = true;
	labelFunc08F9_0133:
		if(!Func08F8(var0000, [0x0133, 0x0373], [0x0331, 0x0480])) goto labelFunc08F9_0150;
		rr = true;
	labelFunc08F9_0150:
		if(!Func08F8(var0000, [0x0913, 0x01BA], [0x093A, 0x01DC])) goto labelFunc08F9_016D;
		rr = true;
	labelFunc08F9_016D:
		if(!Func08F8(var0000, [0x0A70, 0x016F], [0x0B80, 0x0280])) goto labelFunc08F9_018A;
		rr = true;
	labelFunc08F9_018A:
		rr = false;
		return rr;
}
// externs
extern var Func08F7 0x8F7 ();
extern var Func0993 0x993 (var var0000);
extern var Func08F9 0x8F9 ();
extern var Func08B6 0x8B6 ();
extern var Func0995 0x995 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func08FA 0x8FA ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	UcMessage("\"We have restored life to thy flesh, as promised, Hero from Another World. Now thou must continue thy quest.\"");
	UcSay;
	UcMessage("\"We know not for certain from where thou wilt continue...\"");
	UcSay;
	var0000 = [0x0408, 0x07CE];
	var0001 = [0x036B, 0x0ABB];
	var0002 = [0x0804, 0x0740];
	var0003 = [0x03FC, 0x03AC];
	var0004 = var0000;
	if(!gflags[01CC]) goto labelFunc08FA_0093;
	if(!gflags[01FE]) goto labelFunc08FA_008A;
	var0005 = UI_die_roll_17(0x0001, 0x0003);
	if(!(var0005 == 0x0001)) goto labelFunc08FA_0067;
	var0004 = var0000;
	labelFunc08FA_0067:
		if(!(var0005 == 0x0002)) goto labelFunc08FA_0077;
		var0004 = var0001;
	labelFunc08FA_0077:
		if(!(var0005 == 0x0003)) goto labelFunc08FA_0087;
		var0004 = var0002;
	labelFunc08FA_0087:
		goto labelFunc08FA_0090;
	labelFunc08FA_008A:
		var0004 = var0002;
	labelFunc08FA_0090:
		goto labelFunc08FA_00B3;
	labelFunc08FA_0093:
		if(!(UI_die_roll_17(0x0001, 0x0002) == 0x0001)) goto labelFunc08FA_00AD;
		var0004 = var0000;
		goto labelFunc08FA_00B3;
	labelFunc08FA_00AD:
		var0004 = var0001;
	labelFunc08FA_00B3:
		var0006 = Func08F7();
		var0007 = Func0993(var0006);
		if(!((var0007 == 0x0005) || ((var0007 == 0x0008) || ((var0007 == 0x000A) || ((var0007 == 0x0011) || ((var0007 == 0x0012) || ((var0007 == 0x0014) || ((var0007 == 0x0015) || ((var0007 == 0x0016) || ((var0007 == 0x0017) || ((var0007 == 0x0018) || ((var0007 == 0x0019) || (var0007 == 0x001D))))))))))))) goto labelFunc08FA_012A;
		var0004 = var0003;
	labelFunc08FA_012A:
		if(!Func08F9()) goto labelFunc08FA_0136;
		var0004 = Func08F7();
	labelFunc08FA_0136:
		var0008 = Func08B6();
		var0008 = [0xFE9C, var0008];
		enum();
	labelFunc08FA_0149:
		for (var000B in var0008 with var0009 to var000A atend labelFunc08FA_016B);
		UI_clear_item_flag_A5(var000B, 0x0001);
		UI_move_object_4B(var000B, var0004);
		goto labelFunc08FA_0149;
	labelFunc08FA_016B:
		UI_sprite_effect_68(0x0007, var0004[0x0001], var0004[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0051);
		gflags[026F] = false;
		if(!Func0995()) goto labelFunc08FA_01A5;
		UI_set_item_flag_A4(0xFE9C, 0x0025);
	labelFunc08FA_01A5:
		var000C = Func09A0(0x0005, 0x0001);
		var000D = Func09A0(0x0005, 0x0002);
		UI_halt_scheduled_71(var000C);
		UI_halt_scheduled_71(var000D);
		abrt();
		return;
}
// externs
extern var Func099F 0x99F (var var0000, var var0001, var var0002);
extern var Func098D 0x98D ();
extern var Func09A8 0x9A8 (var var0000, var var0001);

var Func08FB 0x8FB ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var rr;

	var0000 = [];
	var0001 = Func099F(0x0190, 0xFE99, 0xFE99);
	var0000 = (var0000 & var0001);
	var0001 = Func099F(0x019E, 0xFE99, 0xFE99);
	var0000 = (var0000 & var0001);
	var0001 = UI_find_nearby_41(0xFE9C, 0x0190, 0x0050, 0x0000);
	var0000 = (var0000 & var0001);
	var0001 = UI_find_nearby_41(0xFE9C, 0x019E, 0x0050, 0x0000);
	var0000 = (var0000 & var0001);
	var0001 = [];
	var0002 = Func098D();
	var0002 = (var0002 & 0xFFC0);
	enum();
	labelFunc08FB_0089:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc08FB_012D);
		var0006 = UI_get_item_quality_1C(var0005);
		var0007 = UI_get_item_quantity_1E(var0005, 0x0000);
		var0008 = UI_get_object_position_20(var0005);
		var0009 = UI_get_body_npc_65(var0005);
		if(!Func09A8(var0009, var0002)) goto labelFunc08FB_012A;
		if(!(var0009 == Dupre)) goto labelFunc08FB_0108;
		var000A = UI_get_item_frame_1A(var0005);
		var000B = UI_get_item_shape_18(var0005);
		if(!((var000B == 0x019E) && (var000A == 0x0014))) goto labelFunc08FB_0105;
		var0001 = (var0001 & var0005);
	labelFunc08FB_0105:
		goto labelFunc08FB_012A;
	labelFunc08FB_0108:
		var0001 = (var0001 & var0005);
		if(!((var0009 == Shamino) && gflags[025B])) goto labelFunc08FB_012A;
		UI_set_item_flag_A4(Shamino, 0x001D);
	labelFunc08FB_012A:
		goto labelFunc08FB_0089;
	labelFunc08FB_012D:
		rr = var0001;
		return rr;
}
// externs
extern var Func08FB 0x8FB ();
extern var Func0994 0x994 ();

var Func08FC 0x8FC ()
{
	var var0000;
	var rr;

	var0000 = Func08FB();
	if(!((UI_get_array_size_73(var0000) > 0x0000) && (Func0994() != 0x0020))) goto labelFunc08FC_001E;
	rr = true;
	labelFunc08FC_001E:
		rr = false;
		return rr;
}
var Func08FD 0x8FD ()
{
	var var0000;
	var rr;

	var0000 = ["Dupre", "Shamino", "Iolo", "Gwenno", "Petra", "Mortegro", "Wilfred", "Boydon", "Selina", "Sethys", "Stefano"];
	rr = var0000;
	return rr;
}
// externs
extern var Func08FB 0x8FB ();
extern var Func098D 0x98D ();
extern var Func08FD 0x8FD ();
extern var Func09A8 0x9A8 (var var0000, var var0001);
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func08FE 0x8FE ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0000 = Func08FB();
	var0001 = Func098D();
	var0001 = (var0001 & 0xFFC0);
	var0002 = Func08FD();
	var0002 = (var0002 & "Cantra");
	enum();
	labelFunc08FE_0027:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc08FE_0140);
		if(!(var0005 != UI_get_npc_object_23(0xFE9C))) goto labelFunc08FE_013D;
		var0006 = UI_get_body_npc_65(var0005);
		var0007 = Func09A8(var0006, var0001);
		var0008 = var0002[var0007];
		var0009 = UI_get_object_position_20(var0005);
		var000A = UI_resurrect_63(var0005);
		if(!var000A) goto labelFunc08FE_0133;
		UcMessage("\"Now thy friend ");
		UcMessage(var0008);
		UcMessage(" doth live again.\"");
		UcSay;
		if(!(UI_get_item_flag_A3(var0006, 0x0006) && UI_get_item_flag_A3(var0006, 0x001E))) goto labelFunc08FE_00A2;
		UI_remove_from_party_27(var0006);
	labelFunc08FE_00A2:
		UI_set_new_schedules_B6(var0006, 0x0000, 0x000F, [var0009[0x0001], var0009[0x0002]]);
		UI_run_schedule_B7(var0006);
		UI_set_schedule_type_25(var0006, 0x000F);
		var000B = Func095C(var0006, 0x0009);
		var000C = (0x001F - var000B);
		Func095E(var0006, 0x0009, var000C);
		if(!(var0006 == 0xFFC0)) goto labelFunc08FE_00FF;
		gflags[0047] = true;
	labelFunc08FE_00FF:
		if(!(var0006 == 0xFF6B)) goto labelFunc08FE_0130;
		UI_set_schedule_type_25(0xFF6B, 0x0003);
		gflags[026A] = false;
		var000A = UI_delayed_execute_usecode_array_02(UI_get_npc_object_23(0xFE9C), [0x55, 0x0495], 0x0005);
	labelFunc08FE_0130:
		goto labelFunc08FE_013D;
	labelFunc08FE_0133:
		UcMessage("\"Thy friend ");
		UcMessage(var0008);
		UcMessage(" hath been lost forever.\"");
		UcSay;
	labelFunc08FE_013D:
		goto labelFunc08FE_0027;
	labelFunc08FE_0140:
		return;
}
// externs
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func08FF 0x8FF ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	if(!gflags[0146]) goto labelFunc08FF_0007;
	abrt();
	labelFunc08FF_0007:
		if(!gflags[00D9]) goto labelFunc08FF_001B;
		UI_set_schedule_type_25(0xFFEE, 0x0004);
		gflags[0146] = true;
	labelFunc08FF_001B:
		if(!gflags[00D7]) goto labelFunc08FF_0022;
		abrt();
	labelFunc08FF_0022:
		var0000 = (((((((((((((((UI_get_item_flag_A3(0xFFEA, 0x001C) + UI_get_item_flag_A3(0xFFE6, 0x001C)) + UI_get_item_flag_A3(0xFFEF, 0x001C)) + UI_get_item_flag_A3(0xFFDF, 0x001C)) + UI_get_item_flag_A3(0xFFF2, 0x001C)) + UI_get_item_flag_A3(0xFFE8, 0x001C)) + UI_get_item_flag_A3(0xFFF1, 0x001C)) + UI_get_item_flag_A3(0xFFE0, 0x001C)) + UI_get_item_flag_A3(0xFFE9, 0x001C)) + UI_get_item_flag_A3(0xFFE2, 0x001C)) + UI_get_item_flag_A3(0xFFE4, 0x001C)) + UI_get_item_flag_A3(0xFFF3, 0x001C)) + UI_get_item_flag_A3(0xFFE5, 0x001C)) + UI_get_item_flag_A3(0xFFFC, 0x001C)) + UI_get_item_flag_A3(0xFFED, 0x001C)) + gflags[00D6]);
		if(!((var0000 >= 0x0003) && (!gflags[00D7]))) goto labelFunc08FF_0120;
		var0001 = UI_approach_avatar_BF(0xFFE7, 0x005A, 0x0028);
		if(!var0001) goto labelFunc08FF_0120;
		UI_set_schedule_type_25(0xFFE7, 0x0003);
		var0002 = UI_get_object_position_20(0xFE9C);
		var0003 = Func0954();
		Func097F(0xFFE7, (("@One moment, " + var0003) + " .@"), 0x0002);
	labelFunc08FF_0120:
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func0900 0x900 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0001 = UI_get_array_size_73(UI_get_party_list_2B());
	if(!((var0001 <= var0000) || (var0001 < 0x0002))) goto labelFunc0900_001F;
	rr = false;
	labelFunc0900_001F:
		var0002 = [];
	labelFunc0900_0025:
		if(!(UI_get_array_size_73(var0002) != var0000)) goto labelFunc0900_0075;
		var0003 = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!(!in(var0003, var0002))) goto labelFunc0900_0072;
		if(!(UI_get_array_size_73(var0002) == 0x0000)) goto labelFunc0900_0068;
		var0002 = [var0003];
		goto labelFunc0900_0072;
	labelFunc0900_0068:
		var0002 = (var0002 & var0003);
	labelFunc0900_0072:
		goto labelFunc0900_0025;
	labelFunc0900_0075:
		rr = var0002;
		return rr;
}
// externs
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func0901 0x901 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	UI_clear_item_flag_A5(0xFE9C, 0x0000);
	var0000 = UI_create_new_object_2C(0x0320);
	if(!var0000) goto labelFunc0901_0231;
	UI_set_item_frame_1B(var0000, 0x0000);
	var0001 = UI_set_item_quality_1D(var0000, 0x003D);
	UI_clear_item_flag_A5(var0000, 0x0012);
	var0001 = UI_update_last_created_2F([0x0937, 0x0738, 0x0000]);
	if(!var0001) goto labelFunc0901_0231;
	UI_sprite_effect_68(0x0015, 0x0939, 0x0732, 0x0000, 0x0000, 0x0000, Dupre);
	var0002 = 0x0000;
	var0003 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0901_0086:
		if(!(var0002 < 0x0002)) goto labelFunc0901_0115;
		enum();
	labelFunc0901_0091:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0901_00F5);
		if(!(Func09A6(var0006) || (var0002 == 0x0001))) goto labelFunc0901_00F2;
		var0001 = UI_get_item_shape_18(var0006);
		if(!(!((var0001 == 0x01E6) || (var0001 == 0x025F)))) goto labelFunc0901_00F2;
		if(!(!UI_set_last_created_2E(var0006))) goto labelFunc0901_00DE;
		Func092F(0xFE9C, 0x0011);
	labelFunc0901_00DE:
		if(!(!UI_give_last_created_43(var0000))) goto labelFunc0901_00F2;
		Func092F(0xFE9C, 0x0012);
	labelFunc0901_00F2:
		goto labelFunc0901_0091;
	labelFunc0901_00F5:
		var0002 = (var0002 + 0x0001);
		var0003 = UI_get_cont_items_33(0xFE9C, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0901_0086;
	labelFunc0901_0115:
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0000);
		var0007 = 0x0000;
		var0002 = 0x0000;
		var0003 = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0901_014D:
		if(!(var0002 < 0x0002)) goto labelFunc0901_01FF;
		enum();
	labelFunc0901_0158:
		for (var0006 in var0003 with var0008 to var0009 atend labelFunc0901_01DF);
		if(!(Func09A6(var0006) || (var0002 == 0x0001))) goto labelFunc0901_01DC;
		var0001 = UI_get_item_shape_18(var0006);
		if(!((var0001 == 0x02F9) || ((var0001 == 0x034A) || ((var0001 == 0x0347) || ((var0001 == 0x01E5) || ((var0001 == 0x0128) && (UI_get_item_frame_1A(var0006) == 0x0003))))))) goto labelFunc0901_01DC;
		if(!(!UI_set_last_created_2E(var0006))) goto labelFunc0901_01C8;
		Func092F(0xFE9C, 0x0011);
	labelFunc0901_01C8:
		if(!(!UI_give_last_created_43(0xFE9C))) goto labelFunc0901_01DC;
		Func092F(0xFE9C, 0x0012);
	labelFunc0901_01DC:
		goto labelFunc0901_0158;
	labelFunc0901_01DF:
		var0002 = (var0002 + 0x0001);
		var0003 = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0901_014D;
	labelFunc0901_01FF:
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x00F1, 0xFE99, 0x0000, 0x0000);
		var0001 = UI_add_cont_items_36(0xFE9C, 0x0001, 0x023A, 0xFE99, 0x0000, 0x0000);
	labelFunc0901_0231:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		if(!UI_get_item_flag_A3(Shamino, 0x0004)) goto labelFunc0901_02C8;
		UI_UNKNOWN_64(Shamino);
		UI_remove_from_party_27(Shamino);
		UI_set_npc_id_BD(Shamino, 0x001E);
		gflags[012B] = true;
		var0001 = UI_remove_cont_items_37(0xFE9C, 0xFE99, 0x019E, 0xFE99, 0x0013, 0x0012);
		var0001 = UI_remove_cont_items_37(Dupre, 0xFE99, 0x019E, 0xFE99, 0x0013, 0x0012);
		var0001 = UI_remove_cont_items_37(Iolo, 0xFE99, 0x019E, 0xFE99, 0x0013, 0x0012);
		var0001 = UI_remove_cont_items_37(0xFFDE, 0xFE99, 0x019E, 0xFE99, 0x0013, 0x0012);
	labelFunc0901_02C8:
		UI_init_conversation_85();
		UI_remove_npc_4C(0xFFEE);
		UI_remove_npc_4C(0xFFEC);
		UI_revert_schedule_B4(0xFFF3);
		UI_set_schedule_type_25(0xFFF3, 0x0010);
		UI_revert_schedule_B4(0xFFEA);
		UI_set_schedule_type_25(0xFFEA, 0x0010);
		var000A = [0x0935, 0x06E3];
		var000B = [0x08B9, 0x070B];
		var000C = [0x08CB, 0x074A];
		var000D = [0x087E, 0x0747];
		var000E = [0x0942, 0x077E];
		UI_set_new_schedules_B6(0xFFD6, [0x0000, 0x0003, 0x0005, 0x0006, 0x0007], [0x000E, 0x001A, 0x0007, 0x0007, 0x0007], [var000A, var000B, var000C, var000D, var000E]);
		UI_set_schedule_type_25(0xFFD6, 0x0010);
		UI_set_new_schedules_B6(0xFFD5, 0x0000, 0x0010, [0x09A6, 0x07F8]);
		UI_run_schedule_B7(0xFFD5);
		UI_set_new_schedules_B6(0xFFDB, 0x0000, 0x000C, [0x09A7, 0x07F7]);
		UI_run_schedule_B7(0xFFDB);
		Func09AC(0xFFE6, 0x060E, 0x020F, 0x0007);
		if(!(UI_get_npc_id_BC(Dupre) == 0x001E)) goto labelFunc0901_03E5;
		Func09AC(Dupre, 0x08BC, 0x0705, 0x001A);
	labelFunc0901_03E5:
		if(!(UI_get_npc_id_BC(Iolo) == 0x001E)) goto labelFunc0901_0402;
		Func09AC(Iolo, 0x099E, 0x07F9, 0x0010);
	labelFunc0901_0402:
		if(!(UI_get_npc_id_BC(Shamino) == 0x001E)) goto labelFunc0901_041F;
		Func09AC(Shamino, 0x07F8, 0x0799, 0x000C);
	labelFunc0901_041F:
		if(!(UI_get_npc_id_BC(0xFFDE) == 0x001E)) goto labelFunc0901_0468;
		UI_set_new_schedules_B6(0xFFDE, [0x0000, 0x0003, 0x0007], [0x000A, 0x000C, 0x0010], [0x0912, 0x06D1, 0x08D5, 0x0754, 0x08C4, 0x070B]);
		UI_run_schedule_B7(0xFFDE);
	labelFunc0901_0468:
		abrt();
		return;
}
// externs
extern Func00F6 0xF6 (var var0000);
extern Func01D7 0x1D7 (var var0000);
extern Func0204 0x204 (var var0000);
extern Func00E1 0xE1 (var var0000);

Func0902 0x902 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0002 = UI_find_nearby_41(var0001, var0000, 0x0005, 0x0000);
	var0003 = UI_get_item_frame_1A(var0001);
	enum();
	labelFunc0902_001E:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc0902_009C);
		var0007 = UI_get_item_frame_1A(var0006);
		if(!(((var0007 > 0x000F) && (var0003 <= 0x000F)) || ((var0007 <= 0x000F) && (var0003 > 0x000F)))) goto labelFunc0902_0099;
		if(!(var0000 == 0x00F6)) goto labelFunc0902_0066;
		var0006;
		calle();
		exit2();
	labelFunc0902_0066:
		if(!(var0000 == 0x01D7)) goto labelFunc0902_0077;
		var0006;
		calle();
		exit2();
	labelFunc0902_0077:
		if(!(var0000 == 0x0204)) goto labelFunc0902_0088;
		var0006;
		calle();
		exit2();
	labelFunc0902_0088:
		if(!(var0000 == 0x00E1)) goto labelFunc0902_0099;
		var0006;
		calle();
		exit2();
	labelFunc0902_0099:
		goto labelFunc0902_001E;
	labelFunc0902_009C:
		return;
}
// externs
extern Func094A 0x94A (var var0000);

Func0903 0x903 ()
{
	Func094A("@The door appears blocked.@");
	return;
}
Func0904 0x904 (var var0000)
{
	UI_item_say_4D(var0000, "Locked");
	return;
}
Func0905 0x905 (var var0000)
{
	UI_item_say_4D(var0000, "Magically Locked");
	return;
}
var Func0906 0x906 (var var0000)
{
	var rr;
	rr = (UI_get_item_frame_1A(var0000) % 0x0004);
	return rr;
}
Func0907 0x907 (var var0000, var var0001)
{
	var var0002;
	var var0003;

	var0002 = UI_get_item_frame_1A(var0001);
	var0003 = (var0002 % 0x0004);
	UI_set_item_frame_1B(var0001, ((var0002 - var0003) + var0000));
	if(!(var0000 == 0x0002)) goto labelFunc0907_003A;
	UI_item_say_4D(var0001, "Click");
	labelFunc0907_003A:
		return;
}
// externs
extern Func0907 0x907 (var var0000, var var0001);

var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005)
{
	var var0006;
	var var0007;
	var rr;

	Func0907(var0005, var0003);
	UI_set_item_shape_14(var0005, var0004);
	var0006 = UI_get_object_position_20(var0005);
	var0006[0x0001] = (var0006[0x0001] + var0002);
	var0006[0x0002] = (var0006[0x0002] + var0001);
	if(!UI_set_last_created_2E(var0005)) goto labelFunc0908_0051;
	var0007 = UI_update_last_created_2F(var0006);
	labelFunc0908_0051:
		rr = true;
		return rr;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);

Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008)
{
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;

	var0009 = UI_get_object_position_20(var0008);
	var000A = var0009[var0005];
	var000B = UI_find_nearby_41(var0008, var0007, 0x0007, 0x0000);
	var000C = false;
	enum();
	labelFunc0909_002B:
		for (var000F in var000B with var000D to var000E atend labelFunc0909_0076);
		var0010 = UI_get_object_position_20(var000F);
		var0010 = var0010[0x0003];
		if(!((Func0906(var000F) == var0006) && ((var0009[var0005] == var000A) && (var0009[0x0003] == var0010)))) goto labelFunc0909_0073;
		var000C = true;
		goto labelFunc0909_0076;
	labelFunc0909_0073:
		goto labelFunc0909_002B;
	labelFunc0909_0076:
		if(!var000C) goto labelFunc0909_0094;
		var000C = Func0908(var000F, var0004, var0003, var0002, var0001, var0000);
	labelFunc0909_0094:
		return;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0903 0x903 ();

var Func090A 0x90A (var var0000)
{
	var var0001;
	var rr;

	var0001 = Func0906(var0000);
	if(!(var0001 == 0x0001)) goto labelFunc090A_003B;
	if(!Func0908(var0000, 0x034D, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc090A_0036;
	UI_play_sound_effect2_A1(0x0069, item);
	goto labelFunc090A_003B;
	labelFunc090A_0036:
		Func0903();
		rr = false;
	labelFunc090A_003B:
		if(!(var0001 == 0x0000)) goto labelFunc090A_006D;
		if(!Func0908(var0000, 0x034D, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc090A_0068;
		UI_play_sound_effect2_A1(0x006A, item);
		goto labelFunc090A_006D;
	labelFunc090A_0068:
		Func0903();
		rr = false;
	labelFunc090A_006D:
		rr = true;
		return rr;
}
// externs
extern var Func0906 0x906 (var var0000);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0903 0x903 ();

var Func090B 0x90B (var var0000)
{
	var var0001;
	var rr;

	var0001 = Func0906(var0000);
	if(!(var0001 == 0x0001)) goto labelFunc090B_003B;
	if(!Func0908(var0000, 0x033C, 0x0000, 0x0000, 0x0000, 0x0007)) goto labelFunc090B_0036;
	UI_play_sound_effect2_A1(0x0069, item);
	goto labelFunc090B_003B;
	labelFunc090B_0036:
		Func0903();
		rr = false;
	labelFunc090B_003B:
		if(!(var0001 == 0x0000)) goto labelFunc090B_006D;
		if(!Func0908(var0000, 0x033C, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc090B_0068;
		UI_play_sound_effect2_A1(0x006A, item);
		goto labelFunc090B_006D;
	labelFunc090B_0068:
		Func0903();
		rr = false;
	labelFunc090B_006D:
		rr = true;
		return rr;
}
var Func090C 0x90C (var var0000, var var0001)
{
	var rr;
	rr = UI_find_direction_22(var0001, var0000);
	return rr;
}
Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006)
{
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	if(!UI_get_container_83(var0006)) goto labelFunc090D_0012;
	UI_flash_mouse_7F(0x0000);
	abrt();
	labelFunc090D_0012:
		UI_halt_scheduled_71(0xFE9C);
		var0007 = UI_get_object_position_20(var0006);
		if(!((var0005 < 0x0000) && (UI_get_array_size_73(var0005) == 0x0001))) goto labelFunc090D_00E2;
		var0008 = var0003;
	labelFunc090D_003F:
		if(!(var0008 <= var0007[0x0003])) goto labelFunc090D_00DF;
		var0009[0x0003] = (var0007[0x0003] + var0008);
		var000A = (Dupre * var0005);
	labelFunc090D_0066:
		if(!(var000A >= var0005)) goto labelFunc090D_00D2;
		var0009[0x0001] = (var0007[0x0001] + var000A);
		var000B = (Dupre * var0004);
	labelFunc090D_008A:
		if(!(var000B >= var0004)) goto labelFunc090D_00C5;
		var0009[0x0002] = (var0007[0x0002] + var000B);
		if(!UI_path_run_usecode_94(var0009, var0002, var0001, var0000)) goto labelFunc090D_00B8;
		exit2();
	labelFunc090D_00B8:
		var000B = (var000B - 0x0001);
		goto labelFunc090D_008A;
	labelFunc090D_00C5:
		var000A = (var000A - 0x0001);
		goto labelFunc090D_0066;
	labelFunc090D_00D2:
		var0008 = (var0008 + 0x0001);
		goto labelFunc090D_003F;
	labelFunc090D_00DF:
		goto labelFunc090D_01C6;
	labelFunc090D_00E2:
		var000C = 0x0000;
		enum();
	labelFunc090D_00E9:
		for (var000A in var0005 with var000D to var000E atend labelFunc090D_01BE);
		var000C = (var000C + 0x0001);
		var000B = var0004[var000C];
		var0008 = var0003[var000C];
		var0009[0x0001] = (var0007[0x0001] + var000A);
		var0009[0x0002] = (var0007[0x0002] + var000B);
		if(!(var0003 < Dupre)) goto labelFunc090D_017E;
		var0008 = 0x0000;
	labelFunc090D_0140:
		if(!(var0008 >= var0003)) goto labelFunc090D_017B;
		var0009[0x0003] = (var0007[0x0003] + var0008);
		if(!UI_path_run_usecode_94(var0009, var0002, var0001, var0000)) goto labelFunc090D_016E;
		exit2();
	labelFunc090D_016E:
		var0008 = (var0008 - 0x0001);
		goto labelFunc090D_0140;
	labelFunc090D_017B:
		goto labelFunc090D_01BB;
	labelFunc090D_017E:
		if(!(var0003 == Dupre)) goto labelFunc090D_0197;
		var0009[0x0003] = var0007[0x0003];
		goto labelFunc090D_01A7;
	labelFunc090D_0197:
		var0009[0x0003] = (var0007[0x0003] + var0008);
	labelFunc090D_01A7:
		if(!UI_path_run_usecode_94(var0009, var0002, var0001, var0000)) goto labelFunc090D_01BB;
		exit2();
	labelFunc090D_01BB:
		goto labelFunc090D_00E9;
	labelFunc090D_01BE:
		UI_flash_mouse_7F(0x0000);
		abrt();
	labelFunc090D_01C6:
		return;
}
Func090E 0x90E (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008)
{
	var var0009;

	var0009 = UI_get_object_position_20(var0007);
	UI_si_path_run_usecode_C1(var0008, var0009, var0001, var0002, var0003, var0000);
	return;
}
var Func090F 0x90F (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var rr;

	var0004 = UI_get_object_position_20(var0003);
	if(!((var0002 < 0x0000) && (UI_get_array_size_73(var0002) == 0x0001))) goto labelFunc090F_00C3;
	var0005 = var0000;
	labelFunc090F_0026:
		if(!(var0005 <= var0004[0x0003])) goto labelFunc090F_00C0;
		var0006[0x0003] = (var0004[0x0003] + var0005);
		var0007 = (Dupre * var0002);
	labelFunc090F_004D:
		if(!(var0007 >= var0002)) goto labelFunc090F_00B3;
		var0006[0x0001] = (var0004[0x0001] + var0007);
		var0008 = (Dupre * var0001);
	labelFunc090F_0071:
		if(!(var0008 >= var0001)) goto labelFunc090F_00A6;
		var0006[0x0002] = (var0004[0x0002] + var0008);
		if(!UI_UNKNOWN_96(var0006)) goto labelFunc090F_0099;
		rr = var0006;
	labelFunc090F_0099:
		var0008 = (var0008 - 0x0001);
		goto labelFunc090F_0071;
	labelFunc090F_00A6:
		var0007 = (var0007 - 0x0001);
		goto labelFunc090F_004D;
	labelFunc090F_00B3:
		var0005 = (var0005 + 0x0001);
		goto labelFunc090F_0026;
	labelFunc090F_00C0:
		goto labelFunc090F_0196;
	labelFunc090F_00C3:
		var0009 = 0x0000;
		enum();
	labelFunc090F_00CA:
		for (var0007 in var0002 with var000A to var000B atend labelFunc090F_0193);
		var0009 = (var0009 + 0x0001);
		var0008 = var0001[var0009];
		var0005 = var0000[var0009];
		var0006[0x0001] = (var0004[0x0001] + var0007);
		var0006[0x0002] = (var0004[0x0002] + var0008);
		if(!(var0000 < Dupre)) goto labelFunc090F_0159;
		var0005 = 0x0000;
	labelFunc090F_0121:
		if(!(var0005 >= var0000)) goto labelFunc090F_0156;
		var0006[0x0003] = (var0004[0x0003] + var0005);
		if(!UI_UNKNOWN_96(var0006)) goto labelFunc090F_0149;
		rr = var0006;
	labelFunc090F_0149:
		var0005 = (var0005 - 0x0001);
		goto labelFunc090F_0121;
	labelFunc090F_0156:
		goto labelFunc090F_0190;
	labelFunc090F_0159:
		if(!(var0000 == Dupre)) goto labelFunc090F_0172;
		var0006[0x0003] = var0004[0x0003];
		goto labelFunc090F_0182;
	labelFunc090F_0172:
		var0006[0x0003] = (var0004[0x0003] + var0005);
	labelFunc090F_0182:
		if(!UI_UNKNOWN_96(var0006)) goto labelFunc090F_0190;
		rr = var0006;
	labelFunc090F_0190:
		goto labelFunc090F_00CA;
	labelFunc090F_0193:
		rr = false;
		abrt();
	labelFunc090F_0196:
		return rr;
}
// externs
extern var Func0913 0x913 (var var0000, var var0001, var var0002, var var0003);
extern var Func0914 0x914 (var var0000, var var0001, var var0002);

var Func0910 0x910 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var rr;

	var0001 = [Iolo, 0x0000, 0x0001, 0x0000];
	var0002 = [0x0000, Iolo, 0x0000, 0x0001];
	var0003 = [0x0096, 0x0096, 0x030D, 0x030D];
	var0004 = [0x02A8];
	var0005 = UI_get_item_shape_18(var0000);
	var0006 = UI_get_item_frame_1A(var0000);
	var0007 = UI_get_object_position_20(var0000);
	var0008 = var0003[(var0006 + 0x0001)];
	var0009[0x0001] = var0001[(var0006 + 0x0001)];
	var0009[0x0002] = var0002[(var0006 + 0x0001)];
	var0009[0x0003] = 0x0001;
	if(!(var0005 == var0008)) goto labelFunc0910_00C3;
	if(!Func0913(var0000, var0007, Iolo, var0004)) goto labelFunc0910_00B1;
	rr = false;
	labelFunc0910_00B1:
		var0007 = Func0914(var0007, var0009, var0005);
		goto labelFunc0910_00E6;
	labelFunc0910_00C3:
		var0007 = Func0914(var0007, var0009, var0005);
		if(!Func0913(var0000, var0007, Iolo, var0004)) goto labelFunc0910_00E6;
		rr = false;
	labelFunc0910_00E6:
		if(!(var0005 == 0x0096)) goto labelFunc0910_00FD;
		UI_set_item_shape_14(var0000, 0x030D);
		goto labelFunc0910_0107;
	labelFunc0910_00FD:
		UI_set_item_shape_14(var0000, 0x0096);
	labelFunc0910_0107:
		var000A = UI_set_last_created_2E(var0000);
		if(!var000A) goto labelFunc0910_0126;
		var000A = UI_update_last_created_2F(var0007);
		rr = true;
		goto labelFunc0910_0128;
	labelFunc0910_0126:
		rr = false;
	labelFunc0910_0128:
		return rr;
}
var Func0911 0x911 (var var0000, var var0001, var var0002)
{
	var var0003;
	var rr;

	var0003 = 0x0000;
	labelFunc0911_0006:
		var0003 = (var0003 + 0x0001);
		var0002[var0003] = (var0002[var0003] + var0001[var0003]);
		if(!(!(var0003 == var0000))) goto labelFunc0911_0031;
		goto labelFunc0911_0006;
	labelFunc0911_0031:
		rr = var0002;
		return rr;
}
var Func0912 0x912 (var var0000, var var0001)
{
	var var0002;
	var rr;

	var0002 = 0x0000;
	labelFunc0912_0006:
		var0002 = (var0002 + 0x0001);
		var0001[var0002] = (var0001[var0002] * Dupre);
		if(!(!(var0002 == var0000))) goto labelFunc0912_002E;
		goto labelFunc0912_0006;
	labelFunc0912_002E:
		rr = var0001;
		return rr;
}
// externs
extern var Func097E 0x97E (var var0000);

var Func0913 0x913 (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var rr;

	var0004 = UI_find_nearby_41(var0003, 0xFE99, Func097E(var0001), 0x0020);
	enum();
	labelFunc0913_0017:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0913_009F);
		var0008 = UI_get_object_position_20(var0007);
		if(!((var0008[0x0001] <= var0002[0x0001]) && ((var0008[0x0001] >= (var0002[0x0001] + var0001)) && ((var0008[0x0002] <= var0002[0x0002]) && ((var0008[0x0002] >= (var0002[0x0002] + var0001)) && ((var0008[0x0003] <= 0x0002) && ((!(var0007 == var0003)) && ((!in(UI_get_item_shape_18(var0007), var0000)) && UI_get_item_flag_A3(var0003, 0x0018))))))))) goto labelFunc0913_009C;
		rr = true;
	labelFunc0913_009C:
		goto labelFunc0913_0017;
	labelFunc0913_009F:
		rr = false;
		return rr;
}
// externs
extern var Func0912 0x912 (var var0000, var var0001);
extern var Func0911 0x911 (var var0000, var var0001, var var0002);

var Func0914 0x914 (var var0000, var var0001, var var0002)
{
	var rr;
	if(!(var0000 == 0x030D)) goto labelFunc0914_0025;
	var0001 = Func0912(var0001, 0x0003);
	var0002 = Func0911(var0002, var0001, 0x0003);
	labelFunc0914_0025:
		if(!(var0000 == 0x0096)) goto labelFunc0914_003E;
		var0002 = Func0911(var0002, var0001, 0x0003);
	labelFunc0914_003E:
		rr = var0002;
		return rr;
}
Func0915 0x915 (var var0000)
{
	UI_remove_item_84(item);
	return;
}
// externs
extern Func0922 0x922 (var var0000);
extern var Func0994 0x994 ();

Func0916 0x916 ()
{
	if(!(UI_get_item_flag_A3(0xFF6B, 0x001E) && gflags[025F])) goto labelFunc0916_0018;
	Func0922(0x000F);
	abrt();
	labelFunc0916_0018:
		if(!((Func0994() == 0x0017) && (!UI_get_item_flag_A3(0xFEDA, 0x0004)))) goto labelFunc0916_0035;
		Func0922(0x000D);
		abrt();
	labelFunc0916_0035:
		if(!((Func0994() == 0x001F) && (!gflags[02E2]))) goto labelFunc0916_004B;
		Func0922(0x0002);
		abrt();
	labelFunc0916_004B:
		if(!((Func0994() == 0x0018) && gflags[02DC])) goto labelFunc0916_0060;
		Func0922(0x0014);
		abrt();
	labelFunc0916_0060:
		if(!(!gflags[02D9])) goto labelFunc0916_006E;
		Func0922(0x0010);
		abrt();
	labelFunc0916_006E:
		if(!(gflags[02D9] && (!gflags[02DA]))) goto labelFunc0916_0080;
		Func0922(0x0011);
		abrt();
	labelFunc0916_0080:
		if(!(gflags[02DA] && (!gflags[02DB]))) goto labelFunc0916_0092;
		Func0922(0x0012);
		abrt();
	labelFunc0916_0092:
		if(!(gflags[02DB] && ((!gflags[02E2]) && (!gflags[0004])))) goto labelFunc0916_00D9;
		if(!(UI_get_random_00(0x0003) == 0x0001)) goto labelFunc0916_00BA;
		Func0922(0x0013);
		abrt();
		goto labelFunc0916_00D9;
	labelFunc0916_00BA:
		if(!(UI_get_random_00(0x0002) == 0x0001)) goto labelFunc0916_00D2;
		Func0922(0x0000);
		abrt();
		goto labelFunc0916_00D9;
	labelFunc0916_00D2:
		Func0922(0x000C);
		abrt();
	labelFunc0916_00D9:
		if(!(gflags[02E2] && (!gflags[0250]))) goto labelFunc0916_00EB;
		Func0922(0x000A);
		abrt();
	labelFunc0916_00EB:
		if(!(gflags[0004] && (!gflags[02E1]))) goto labelFunc0916_00FD;
		Func0922(0x0014);
		abrt();
	labelFunc0916_00FD:
		if(!(gflags[02E1] && (!gflags[025F]))) goto labelFunc0916_010F;
		Func0922(0x000B);
		abrt();
	labelFunc0916_010F:
		if(!(gflags[02DE] && (!gflags[024A]))) goto labelFunc0916_0121;
		Func0922(0x000E);
		abrt();
	labelFunc0916_0121:
		if(!(gflags[02E6] && (!gflags[02E5]))) goto labelFunc0916_0133;
		Func0922(0x0006);
		abrt();
	labelFunc0916_0133:
		if(!(gflags[02E7] && (!gflags[02E5]))) goto labelFunc0916_0145;
		Func0922(0x0005);
		abrt();
	labelFunc0916_0145:
		if(!(gflags[02E4] && (!gflags[02E3]))) goto labelFunc0916_0157;
		Func0922(0x0008);
		abrt();
	labelFunc0916_0157:
		if(!gflags[02E3]) goto labelFunc0916_0164;
		Func0922(0x0009);
		abrt();
	labelFunc0916_0164:
		if(!(UI_get_random_00(0x0002) == 0x0001)) goto labelFunc0916_017C;
		Func0922(0x0000);
		abrt();
		goto labelFunc0916_0183;
	labelFunc0916_017C:
		Func0922(0x000C);
		abrt();
	labelFunc0916_0183:
		return;
}
Func0917 0x917 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	if(!(var0000 == 0x0001)) goto labelFunc0917_0041;
	var0002 = 0xFFFC;
	var0003 = 0x007C;
	var0004 = UI_find_nearby_41(var0001[0x0001], 0x00C7, 0x0019, 0x0000);
	var0005 = UI_execute_usecode_array_01(var0004, [0x54, 0x000C, 0x0000]);
	labelFunc0917_0041:
		if(!(var0000 == 0x0000)) goto labelFunc0917_0057;
		var0002 = 0x0004;
		var0003 = 0x0034;
	labelFunc0917_0057:
		enum();
	labelFunc0917_0058:
		for (var0008 in var0001 with var0006 to var0007 atend labelFunc0917_007E);
		var0009 = UI_get_item_frame_rot_80(var0008);
		UI_set_item_frame_rot_81(var0008, (var0009 + var0002));
		goto labelFunc0917_0058;
	labelFunc0917_007E:
		UI_play_sound_effect_16(var0003);
		return;
}
// externs
extern var Func0910 0x910 (var var0000);
extern Func094A 0x94A (var var0000);
extern Func0917 0x917 (var var0000, var var0001);

Func0918 0x918 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	gflags[0005] = false;
	var0001 = UI_get_object_position_20(var0000);
	var0001 = (var0001 & UI_get_item_quality_1C(var0000));
	var0001 = (var0001 & 0xFE99);
	var0002 = UI_find_nearby_41(var0001, 0x0096, 0x000C, 0x0000);
	enum();
	labelFunc0918_003A:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0918_0059);
		if(!(!Func0910(var0005))) goto labelFunc0918_0056;
		Func094A("@One of the gangplanks seems to be blocked. It must be lowered to sail.@");
		exit2();
	labelFunc0918_0056:
		goto labelFunc0918_003A;
	labelFunc0918_0059:
		var0006 = UI_find_nearby_41(var0001, 0x00FB, 0x0012, 0x0000);
		Func0917(var0006, 0x0001);
		UI_clear_item_flag_A5(0xFE9C, 0x0014);
		UI_set_item_flag_A4(var0000, 0x000A);
		UI_set_item_flag_A4(UI_get_barge_6D(0xFE9C), 0x001A);
		return;
}
// externs
extern Func09AD 0x9AD (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0919 0x919 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0001 = [0xFEDB, 0xFF33, 0xFF35, 0xFF34];
	if(!(UI_get_npc_id_BC(0xFF34) == 0x0000)) goto labelFunc0919_0049;
	enum();
	labelFunc0919_0021:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0919_003C);
		UI_clear_item_say_4E(var0004);
		Func09AD(var0004);
		goto labelFunc0919_0021;
	labelFunc0919_003C:
		UI_set_npc_id_BD(0xFF34, 0x0001);
		goto labelFunc0919_0136;
	labelFunc0919_0049:
		if(!(UI_get_npc_id_BC(0xFF34) == 0x0001)) goto labelFunc0919_0136;
		Func097F(0xFEDB, "@Master!@", 0x0000);
		Func097F(0xFEDB, "@Come quickly!@", 0x0007);
		var0005 = [0x0752, 0x03E5, 0x0006];
		var0006 = UI_create_new_object2_2D(0x013E, var0005);
		if(!var0006) goto labelFunc0919_0136;
		UI_set_alignment_4A(var0006, 0x0000);
		UI_set_schedule_type_25(var0006, 0x001D);
		UI_set_item_flag_A4(var0006, 0x001D);
		UI_set_npc_id_BD(0xFF34, 0x0002);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x0321, 0xFE99, 0x0000, 0x0012);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x0358, 0x0003, 0xFE99, 0x0012);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x0327, 0x0003, 0xFE99, 0x0012);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x011F, 0x0001, 0xFE99, 0x0012);
		var0007 = UI_add_cont_items_36(var0006, 0x0001, 0x02DB, 0x0006, 0xFE99, 0x0012);
	labelFunc0919_0136:
		return;
}
Func091A 0x91A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	if(!((UI_die_roll_17(0x0001, 0x0007) == 0x0007) && ((UI_game_hour_45() < 0x0007) && (gflags[0004] == true)))) goto labelFunc091A_002A;
	var0001 = UI_click_on_item_3F();
	goto labelFunc091A_002B;
	labelFunc091A_002A:
		abrt();
	labelFunc091A_002B:
		if(!UI_is_npc_3D(var0001)) goto labelFunc091A_009A;
		UI_play_sound_effect_16(0x0077);
		var0002 = UI_get_npc_number_47(var0001);
		if(!UI_get_item_flag_A3(var0002, 0x0006)) goto labelFunc091A_009A;
		UI_show_npc_face0_05(var0002, 0x0000);
		UcMessage("\"I am the Lizard King. I can do anything.\"");
		UcSay;
		UI_remove_npc_face0_07();
		if(!(var0002 == 0xFE9C)) goto labelFunc091A_0079;
		UI_set_item_flag_A4(var0002, 0x0019);
	labelFunc091A_0079:
		UI_set_item_flag_A4(var0002, 0x0024);
		var0003 = UI_delayed_execute_usecode_array_02(var0002, [0x23, 0x55, 0x03C0], 0x0014);
	labelFunc091A_009A:
		return;
}
Func091B 0x91B ()
{
	if(!(event == 0x0001)) goto labelFunc091B_001E;
	UI_show_npc_face0_05(0xFF6A, 0x0000);
	UcMessage("\"Avatar! Release thou me from this vile cell!\"");
	UcSay;
	UcMessage("\"Some fell sorcery brought me here and nothing I do can unlock the door. Release me and together we shall find the key to this mystery!\"");
	UcSay;
	UI_remove_npc_face0_07();
	labelFunc091B_001E:
		return;
}
Func091C 0x91C ()
{
	if(!(event == 0x0001)) goto labelFunc091C_001E;
	UI_show_npc_face0_05(0xFFBA, 0x0000);
	UcMessage("\"Avatar! Save me!\"");
	UcSay;
	UcMessage("\"Some fell sorcery brought me here and nothing I do can unlock the door. Release me, I beg thee! -- Before the fiend that did this comes for me!\"");
	UcSay;
	UI_remove_npc_face0_07();
	labelFunc091C_001E:
		return;
}
// externs
extern Func010E 0x10E (var var0000);

Func091D 0x91D ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;

	var0000 = UI_find_nearby_41(0xFE9C, 0x0210, 0x0028, 0x0008);
	if(!var0000) goto labelFunc091D_0121;
	var0001 = UI_get_object_position_20(var0000);
	if(!((var0001[0x0001] >= 0x0432) && ((var0001[0x0001] <= 0x0439) && ((var0001[0x0002] >= 0x03E4) && ((var0001[0x0002] <= 0x03EB) && (var0001[0x0003] == 0x0000)))))) goto labelFunc091D_0121;
	UI_set_alignment_4A(var0000, 0x0002);
	UI_set_schedule_type_25(var0000, 0x0000);
	UI_set_opponent_5B(0xFE9C, var0000);
	UI_sprite_effect_68(0x000D, (var0001[0x0001] - 0x0002), (var0001[0x0002] - 0x0002), 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0082);
	UI_clear_item_say_4E(var0000);
	UI_halt_scheduled_71(var0000);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x52, "@Thank thee!@", 0x27, 0x000A, 0x52, "@Now I feed!!@"], 0x0000);
	var0002 = UI_find_nearby_41(var0000, 0x0113, 0x0000, 0x0010);
	if(!var0002) goto labelFunc091D_00F7;
	UI_remove_item_84(var0002);
	labelFunc091D_00F7:
		var0003 = UI_find_nearest_15(var0000, 0x010E, 0x0005);
		if(!var0003) goto labelFunc091D_0121;
		UI_set_item_frame_1B(var0003, 0x0004);
		event = 0x0001;
		var0003;
		calle();
	labelFunc091D_0121:
		return;
}
// externs
extern Func0921 0x921 (var var0000);

Func091E 0x91E (var var0000, var var0001)
{
	var var0002;
	var var0003;

	Func0921(var0001);
	var0002 = UI_get_item_frame_1A(var0001);
	if(!(var0002 <= 0x0004)) goto labelFunc091E_0023;
	var0002 = 0x0004;
	goto labelFunc091E_003C;
	labelFunc091E_0023:
		if(!(var0002 >= 0x000A)) goto labelFunc091E_0036;
		var0002 = 0x000E;
		goto labelFunc091E_003C;
	labelFunc091E_0036:
		var0002 = 0x0009;
	labelFunc091E_003C:
		var0003 = UI_execute_usecode_array_01(var0001, [0x46, var0002, 0x50, 0x58, 0x0059, 0x0B, Iolo, 0x0003, 0x55, var0000, 0x58, 0x0058]);
		return;
}
Func091F 0x91F (var var0000, var var0001)
{
	var var0002;

	var0002 = UI_execute_usecode_array_01(var0001, [0x55, var0000]);
	return;
}
var Func0920 0x920 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var rr;

	var0000 = (UI_find_nearby_41(0xFE9C, 0x0114, 0x0019, 0x0000) & UI_find_nearby_41(0xFE9C, 0x0115, 0x0019, 0x0000));
	var0001 = (UI_find_nearby_41(0xFE9C, 0x010F, 0x0019, 0x0000) & UI_find_nearby_41(0xFE9C, 0x0110, 0x0019, 0x0000));
	enum();
	labelFunc0920_0049:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0920_01E6);
		var0005 = UI_get_lift_50(var0004);
		if(!(var0005 == 0x0000)) goto labelFunc0920_00B2;
		var0006 = UI_execute_usecode_array_01(var0004, [0x58, 0x0059, 0x55, 0x0607, 0x0B, 0xFFFB, 0x0003]);
		enum();
	labelFunc0920_0088:
		for (var0009 in var0000 with var0007 to var0008 atend labelFunc0920_00B2);
		var0006 = UI_execute_usecode_array_01(var0009, [0x46, 0x0001, 0x46, 0x0002, 0x46, 0x0003]);
		goto labelFunc0920_0088;
	labelFunc0920_00B2:
		if(!(var0005 == 0x0001)) goto labelFunc0920_0103;
		var0006 = UI_execute_usecode_array_01(var0004, [0x23, 0x58, 0x0059, 0x55, 0x0607, 0x0B, 0xFFFB, 0x0002]);
		enum();
	labelFunc0920_00DE:
		for (var0009 in var0000 with var000A to var000B atend labelFunc0920_0103);
		var0006 = UI_execute_usecode_array_01(var0009, [0x46, 0x0002, 0x46, 0x0003]);
		goto labelFunc0920_00DE;
	labelFunc0920_0103:
		if(!(var0005 == 0x0002)) goto labelFunc0920_014D;
		var0006 = UI_execute_usecode_array_01(var0004, [0x58, 0x0059, 0x55, 0x0607, 0x0B, 0xFFFB, 0x0001]);
		enum();
	labelFunc0920_012D:
		for (var0009 in var0000 with var000C to var000D atend labelFunc0920_014D);
		var0006 = UI_execute_usecode_array_01(var0009, [0x46, 0x0003]);
		goto labelFunc0920_012D;
	labelFunc0920_014D:
		if(!(var0005 == 0x0003)) goto labelFunc0920_018F;
		var0006 = UI_execute_usecode_array_01(var0004, [0x58, 0x0059, 0x55, 0x0607]);
		enum();
	labelFunc0920_016F:
		for (var0009 in var0000 with var000E to var000F atend labelFunc0920_018F);
		var0006 = UI_execute_usecode_array_01(var0009, [0x46, 0x0003]);
		goto labelFunc0920_016F;
	labelFunc0920_018F:
		if(!(var0005 == 0x0004)) goto labelFunc0920_01B8;
		var0006 = UI_execute_usecode_array_01(var0004, [0x58, 0x0059, 0x55, 0x0609, 0x0B, 0xFFFB, 0x0003]);
	labelFunc0920_01B8:
		enum();
	labelFunc0920_01B9:
		for (var0009 in var0000 with var0010 to var0011 atend labelFunc0920_01E3);
		var0006 = UI_execute_usecode_array_01(var0009, [0x46, 0x0002, 0x46, 0x0001, 0x46, 0x0000]);
		goto labelFunc0920_01B9;
	labelFunc0920_01E3:
		goto labelFunc0920_0049;
	labelFunc0920_01E6:
		rr = true;
		return rr;
}
Func0921 0x921 (var var0000)
{
	var var0001;
	var var0002;

	var0001 = UI_get_item_quality_1C(var0000);
	if(!(var0001 == 0x005B)) goto labelFunc0921_0089;
	if(!(!gflags[0265])) goto labelFunc0921_0059;
	UI_obj_sprite_effect_91(var0000, 0x0009, 0x0002, 0x0004, 0x0000, 0x0000, 0x0000, Dupre);
	var0002 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0701], 0x0008);
	UI_play_sound_effect_16(0x0027);
	abrt();
	goto labelFunc0921_0089;
	labelFunc0921_0059:
		UI_item_say_4D(0xFE9C, "@Isal Sal Cra Gaas Iskar!@");
		UI_obj_sprite_effect_91(var0000, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_music_39(0x0035, var0000);
	labelFunc0921_0089:
		return;
}
// externs
extern Func0614 0x614 (var var0000);

Func0922 0x922 (var var0000)
{
	if(!(!UI_start_speech_8A(var0000))) goto labelFunc0922_0014;
	0x0000;
	calle();
	goto labelFunc0922_0018;
	labelFunc0922_0014:
		UI_close_gumps_98();
	labelFunc0922_0018:
		return;
}
// externs
extern var Func0942 0x942 (var var0000);

var Func0923 0x923 ()
{
	var rr;
	if(!(!Func0942(Iolo))) goto labelFunc0923_000C;
	rr = false;
	labelFunc0923_000C:
		if(!(!Func0942(Shamino))) goto labelFunc0923_0018;
		rr = false;
	labelFunc0923_0018:
		if(!(!Func0942(Dupre))) goto labelFunc0923_0024;
		rr = false;
	labelFunc0923_0024:
		if(!(!UI_get_item_flag_A3(Iolo, 0x0006))) goto labelFunc0923_0034;
		rr = false;
	labelFunc0923_0034:
		if(!(!UI_get_item_flag_A3(Shamino, 0x0006))) goto labelFunc0923_0044;
		rr = false;
	labelFunc0923_0044:
		if(!(!UI_get_item_flag_A3(Dupre, 0x0006))) goto labelFunc0923_0054;
		rr = false;
	labelFunc0923_0054:
		if(!UI_get_item_flag_A3(Iolo, 0x0004)) goto labelFunc0923_0063;
		rr = false;
	labelFunc0923_0063:
		if(!UI_get_item_flag_A3(Shamino, 0x0004)) goto labelFunc0923_0072;
		rr = false;
	labelFunc0923_0072:
		if(!UI_get_item_flag_A3(Dupre, 0x0004)) goto labelFunc0923_0081;
		rr = false;
	labelFunc0923_0081:
		rr = true;
		return rr;
}
// externs
extern Func091E 0x91E (var var0000, var var0001);
extern Func091F 0x91F (var var0000, var var0001);

Func0924 0x924 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0002 = UI_get_item_quality_1C(var0001);
	var0003 = [];
	if(!((var0000 == 0x0001) || (var0000 == 0xFE99))) goto labelFunc0924_003E;
	var0003 = (var0003 & UI_find_nearby_avatar_3C(0x012F));
	var0003 = (var0003 & UI_find_nearby_avatar_3C(0x036C));
	labelFunc0924_003E:
		if(!((var0000 == 0x0000) || (var0000 == 0xFE99))) goto labelFunc0924_006C;
		var0003 = (var0003 & UI_find_nearby_avatar_3C(0x03A8));
		var0003 = (var0003 & UI_find_nearby_avatar_3C(0x03A7));
	labelFunc0924_006C:
		if(!var0003) goto labelFunc0924_0164;
		enum();
	labelFunc0924_0073:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0924_0113);
		if(!(UI_get_item_quality_1C(var0006) == var0002)) goto labelFunc0924_0110;
		var0007 = UI_get_item_frame_1A(var0006);
		var0008 = UI_get_item_shape_18(var0006);
		if(!(var0008 == 0x012F)) goto labelFunc0924_00BC;
		var0008 = 0x03A8;
		Func091E(var0006, var0008);
		goto labelFunc0924_0110;
	labelFunc0924_00BC:
		if(!(var0008 == 0x036C)) goto labelFunc0924_00D8;
		var0008 = 0x03A7;
		Func091E(var0006, var0008);
		goto labelFunc0924_0110;
	labelFunc0924_00D8:
		if(!(var0008 == 0x03A8)) goto labelFunc0924_00F4;
		var0008 = 0x012F;
		Func091F(var0006, var0008);
		goto labelFunc0924_0110;
	labelFunc0924_00F4:
		if(!(var0008 == 0x03A7)) goto labelFunc0924_0110;
		var0008 = 0x036C;
		Func091F(var0006, var0008);
		goto labelFunc0924_0110;
	labelFunc0924_0110:
		goto labelFunc0924_0073;
	labelFunc0924_0113:
		if(!(var0002 == 0x007B)) goto labelFunc0924_0164;
		var0009 = UI_find_nearby_41(0xFE9C, 0x037C, 0x0019, 0x0000);
		if(!var0009) goto labelFunc0924_0164;
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		var000A = UI_set_item_quality_1D(var0009, 0x0001);
		var000A = UI_delayed_execute_usecode_array_02(var0009, [0x23, 0x55, 0x0780], 0x000A);
	labelFunc0924_0164:
		return;
}
Func0925 0x925 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0000 = UI_find_nearby_41(item, 0x02CE, 0x000A, 0x0000);
	var0001 = UI_find_nearby_41(var0000, 0x034A, 0x0003, 0x0000);
	var0002 = [0x0000, 0x0000, 0x0000];
	enum();
	labelFunc0925_0034:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0925_00C4);
		if(!(UI_get_item_frame_1A(var0005) == 0x000B)) goto labelFunc0925_0068;
		var0002[0x0001] = (var0002[0x0001] + UI_get_item_quantity_1E(var0005, 0x0000));
		var0006 = true;
	labelFunc0925_0068:
		if(!(UI_get_item_frame_1A(var0005) == 0x000C)) goto labelFunc0925_0091;
		var0002[0x0002] = (var0002[0x0002] + UI_get_item_quantity_1E(var0005, 0x0000));
		var0007 = true;
	labelFunc0925_0091:
		if(!(UI_get_item_frame_1A(var0005) == 0x000D)) goto labelFunc0925_00BA;
		var0002[0x0003] = (var0002[0x0003] + UI_get_item_quantity_1E(var0005, 0x0000));
		var0008 = true;
	labelFunc0925_00BA:
		UI_remove_item_84(var0005);
		goto labelFunc0925_0034;
	labelFunc0925_00C4:
		if(!(var0006 && (var0007 && var0008))) goto labelFunc0925_0183;
		var0009 = var0002[0x0001];
		if(!(var0002[0x0002] < var0009)) goto labelFunc0925_00F1;
		var0009 = var0002[0x0002];
	labelFunc0925_00F1:
		if(!(var0002[0x0003] < var0009)) goto labelFunc0925_0107;
		var0009 = var0002[0x0003];
	labelFunc0925_0107:
		var000A = UI_get_object_position_20(var0000);
		var000A[0x0003] = 0x0002;
		var000B = UI_create_new_object_2C(0x034A);
		if(!var000B) goto labelFunc0925_014B;
		UI_set_item_frame_1B(var000B, 0x000E);
		var000C = UI_set_item_quantity_1F(var000B, var0009);
		var000C = UI_update_last_created_2F(var000A);
	labelFunc0925_014B:
		var000D = UI_create_new_object_2C(0x0231);
		if(!var000D) goto labelFunc0925_016F;
		UI_set_item_frame_1B(var000D, 0x0000);
		var000C = UI_update_last_created_2F(var000A);
	labelFunc0925_016F:
		var000C = UI_delayed_execute_usecode_array_02(var000D, [0x23, 0x2D], 0x0019);
	labelFunc0925_0183:
		var0006 = false;
		var0007 = false;
		var0008 = false;
		abrt();
		return;
}
// externs
extern Func0927 0x927 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);
extern Func0909 0x909 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007, var var0008);
extern Func0903 0x903 ();

Func0926 0x926 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	if(!(var0000 == 0x0017)) goto labelFunc0926_000D;
	Func0927();
	labelFunc0926_000D:
		if(!(var0000 == 0x0018)) goto labelFunc0926_009A;
		var0001 = [0xFF55, 0xFF54, 0xFF53, 0xFF52, 0xFF51];
		var0002 = ("@Thank thee!@" & ("@Bless thee!@" & ("@We are saved!@" & "@Praise the Hero!@")));
		enum();
	labelFunc0926_003F:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0926_007E);
		UI_clear_item_say_4E(var0005);
		Func097F(var0005, var0002[UI_get_random_00(UI_get_array_size_73(var0002))], UI_get_random_00(0x000A));
		Func09AC(var0005, Dupre, 0x0000, 0x0004);
		goto labelFunc0926_003F;
	labelFunc0926_007E:
		gflags[01EC] = true;
		var0006 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07F7], 0x000F);
		abrt();
	labelFunc0926_009A:
		if(!((var0000 == 0x003D) && (gflags[0227] && (!UI_get_item_flag_A3(0xFE9C, 0x0020))))) goto labelFunc0926_0120;
		var0006 = UI_get_object_position_20(0xFFE4);
		if(!((var0006[0x0001] == 0x06E3) && ((var0006[0x0002] == 0x0273) && (var0006[0x0003] == 0x0001)))) goto labelFunc0926_0120;
		var0007 = UI_create_new_object_2C(0x025F);
		if(!var0007) goto labelFunc0926_0120;
		UI_set_item_frame_1B(var0007, 0x0006);
		var0006 = UI_update_last_created_2F([0x06EC, 0x0273, 0x0001]);
		var0006 = UI_execute_usecode_array_01(var0007, [0x55, 0x033D]);
	labelFunc0926_0120:
		if(!((var0000 == 0x0055) || (var0000 == 0x0059))) goto labelFunc0926_01A6;
		var0008 = UI_find_nearby_41(item, 0x0178, 0x001E, 0x0000);
		enum();
	labelFunc0926_0144:
		for (var000B in var0008 with var0009 to var000A atend labelFunc0926_01A6);
		if(!(UI_get_item_quality_1C(var000B) == var0000)) goto labelFunc0926_01A3;
		if(!Func0908(var000B, 0x010E, 0x0001, 0x0000, 0x0000, 0x0007)) goto labelFunc0926_01A0;
		Func0909(var000B, 0x01B1, 0x0000, 0x0002, 0x01B0, 0x0001, Iolo, 0x0000, 0x0007);
		UI_play_sound_effect2_A1(0x0020, var000B);
		goto labelFunc0926_01A3;
	labelFunc0926_01A0:
		Func0903();
	labelFunc0926_01A3:
		goto labelFunc0926_0144;
	labelFunc0926_01A6:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0927 0x927 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	UI_play_music_39(0x001C, Func09A0(0x0005, 0x0001));
	var0000 = [0xFF55, 0xFF54, 0xFF53, 0xFF52, 0xFF51];
	var0001 = ["@Ohh! Yes!@", "@Most pleasant!@", "@Oh, my!@", "@Do thou that again!@", "@Oh, baby...@"];
	enum();
	labelFunc0927_003B:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0927_0069);
		var0005 = UI_die_roll_17(0x0001, 0x0005);
		Func097F(var0004, var0001[var0005], UI_get_random_00(0x000A));
		goto labelFunc0927_003B;
	labelFunc0927_0069:
		if(!(gflags[01EE] == true)) goto labelFunc0927_0089;
		var0006 = UI_delayed_execute_usecode_array_02(0xFF4D, [0x55, 0x04B3], 0x0019);
		goto labelFunc0927_0157;
	labelFunc0927_0089:
		if(!UI_is_pc_female_6F()) goto labelFunc0927_00F5;
		UI_clear_item_say_4E(0xFF51);
		Func097F(0xFF51, "@I can't resist...@", 0x0000);
		var0007 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
		if(!var0007) goto labelFunc0927_00F2;
		var0008 = UI_get_object_position_20(var0007);
		UI_si_path_run_usecode_C1(0xFF51, [(var0008[0x0001] + 0x0001), var0008[0x0002], var0008[0x0003]], 0x0007, UI_get_npc_object_23(0xFF51), 0x04B3, true);
	labelFunc0927_00F2:
		goto labelFunc0927_0157;
	labelFunc0927_00F5:
		UI_clear_item_say_4E(0xFF53);
		Func097F(0xFF53, "@I can't resist...@", 0x0000);
		var0007 = UI_find_nearby_41(item, 0x0178, 0x000A, 0x0000);
		if(!var0007) goto labelFunc0927_0157;
		var0008 = UI_get_object_position_20(var0007);
		UI_si_path_run_usecode_C1(0xFF53, [(var0008[0x0001] + 0x0001), var0008[0x0002], var0008[0x0003]], 0x0007, UI_get_npc_object_23(0xFF53), 0x04B3, true);
	labelFunc0927_0157:
		abrt();
		return;
}
// externs
extern Func0907 0x907 (var var0000, var var0001);
extern var Func090B 0x90B (var var0000);
extern Func0929 0x929 ();
extern var Func0906 0x906 (var var0000);

Func0928 0x928 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	if(!(var0000 == 0x0065)) goto labelFunc0928_0039;
	var0001 = UI_find_nearby_41(item, 0x034D, 0x000A, 0x0000);
	if(!var0001) goto labelFunc0928_0039;
	Func0907(var0001[0x0001], 0x0000);
	var0001 = Func090B(var0001[0x0001]);
	labelFunc0928_0039:
		if(!((var0000 > 0x0077) && (var0000 < 0x0097))) goto labelFunc0928_004E;
		Func0929();
	labelFunc0928_004E:
		if(!(var0000 == 0x006F)) goto labelFunc0928_00A8;
		var0002 = UI_find_nearby_41(item, 0x0300, 0x001E, 0x0000);
		enum();
	labelFunc0928_006A:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0928_00A8);
		var0006 = UI_get_object_position_20(var0005);
		UI_sprite_effect_68(0x000C, var0006[0x0001], var0006[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
		UI_remove_item_84(var0005);
		goto labelFunc0928_006A;
	labelFunc0928_00A8:
		if(!(var0000 == 0x0070)) goto labelFunc0928_0199;
		var0002 = UI_find_nearby_41(0xFE9C, 0x010E, 0x000A, 0x00B0);
		var0002 = (var0002 & UI_find_nearby_41(0xFE9C, 0x0178, 0x000A, 0x00B0));
		var0002 = (var0002 & UI_find_nearby_41(0xFE9C, 0x01B1, 0x000A, 0x00B0));
		var0002 = (var0002 & UI_find_nearby_41(0xFE9C, 0x01B0, 0x000A, 0x00B0));
		var0002 = (var0002 & UI_find_nearby_41(0xFE9C, 0x033C, 0x000A, 0x00B0));
		var0002 = (var0002 & UI_find_nearby_41(0xFE9C, 0x034D, 0x000A, 0x00B0));
		var0007 = var0002[0x0001];
		enum();
	labelFunc0928_0142:
		for (var0005 in var0002 with var0008 to var0009 atend labelFunc0928_016A);
		if(!(UI_get_distance_21(item, var0005) < UI_get_distance_21(item, var0007))) goto labelFunc0928_0167;
		var0007 = var0005;
	labelFunc0928_0167:
		goto labelFunc0928_0142;
	labelFunc0928_016A:
		var000A = Func0906(var0007);
		if(!(var000A == 0x0002)) goto labelFunc0928_0186;
		Func0907(var0007, 0x0000);
	labelFunc0928_0186:
		if(!(var000A == 0x0000)) goto labelFunc0928_0199;
		Func0907(var0007, 0x0002);
	labelFunc0928_0199:
		return;
}
// externs
extern var Func089D 0x89D (var var0000);
extern Func0924 0x924 (var var0000, var var0001);

Func0929 0x929 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = UI_find_nearby_41(item, 0x0366, 0x000F, 0x0000);
	var0001 = UI_find_nearby_41(item, 0x0203, 0x000F, 0x0000);
	var0000 = (var0000 & var0001);
	var0001 = [];
	var0002 = UI_get_item_quality_1C(item);
	enum();
	labelFunc0929_003B:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc0929_0061);
		if(!(UI_get_item_quality_1C(var0005) == var0002)) goto labelFunc0929_005E;
		var0001 = (var0001 & var0005);
	labelFunc0929_005E:
		goto labelFunc0929_003B;
	labelFunc0929_0061:
		var0006 = Func089D(var0001);
		Func0924(item, 0xFE99);
		return;
}
Func092A 0x92A (var var0000)
{
	var var0001;
	var var0002;

	if(!(var0000 == 0x00C9)) goto labelFunc092A_0019;
	var0001 = [0x007B, 0x06BB, 0x0000];
	labelFunc092A_0019:
		if(!(var0000 == 0x00CA)) goto labelFunc092A_0032;
		var0001 = [0x0087, 0x06BB, 0x0000];
	labelFunc092A_0032:
		if(!(var0000 == 0x00CB)) goto labelFunc092A_004B;
		var0001 = [0x0093, 0x06BB, 0x0000];
	labelFunc092A_004B:
		if(!(var0000 == 0x00CC)) goto labelFunc092A_0064;
		var0001 = [0x007B, 0x06D4, 0x0000];
	labelFunc092A_0064:
		if(!(var0000 == 0x00CD)) goto labelFunc092A_007D;
		var0001 = [0x0087, 0x06D4, 0x0000];
	labelFunc092A_007D:
		if(!(var0000 == 0x00CE)) goto labelFunc092A_0096;
		var0001 = [0x0093, 0x06D4, 0x0000];
	labelFunc092A_0096:
		if(!(var0000 == 0x00CF)) goto labelFunc092A_00AF;
		var0001 = [0x0095, 0x06C7, 0x0000];
	labelFunc092A_00AF:
		if(!(var0000 == 0x00D3)) goto labelFunc092A_00C8;
		var0001 = [0x0512, 0x08A0, 0x0006];
	labelFunc092A_00C8:
		if(!(var0000 == 0x00D4)) goto labelFunc092A_00E1;
		var0001 = [0x0501, 0x0892, 0x0006];
	labelFunc092A_00E1:
		if(!(var0000 == 0x00D5)) goto labelFunc092A_00FA;
		var0001 = [0x0504, 0x08A2, 0x0006];
	labelFunc092A_00FA:
		if(!(var0000 == 0x00D6)) goto labelFunc092A_0113;
		var0001 = [0x04F4, 0x08B7, 0x0006];
	labelFunc092A_0113:
		if(!(var0000 == 0x00D7)) goto labelFunc092A_012C;
		var0001 = [0x04F2, 0x08C7, 0x0006];
	labelFunc092A_012C:
		if(!(var0000 == 0x00D8)) goto labelFunc092A_0145;
		var0001 = [0x0502, 0x08C7, 0x0006];
	labelFunc092A_0145:
		if(!(var0000 == 0x00D9)) goto labelFunc092A_015E;
		var0001 = [0x0512, 0x08C7, 0x0006];
	labelFunc092A_015E:
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_move_object_4B(0xFE9B, var0001);
		var0002 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x0636], 0x0003);
		return;
}
// externs
extern var Func092C 0x92C (var var0000);
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);

Func092B 0x92B ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0000 = Func092C(0x0001);
	var0001 = Func092C(0x0002);
	var0002 = Func092C(0x0003);
	var0003 = 0x0001;
	var0004 = (UI_get_array_size_73(var0000) + 0x0001);
	labelFunc092B_002F:
		if(!(var0003 < var0004)) goto labelFunc092B_0185;
		if(!Func097D(0xFE9B, 0x0001, var0000[var0003], var0001[var0003], var0002[var0003])) goto labelFunc092B_0178;
		if(!(var0000[var0003] == 0x0108)) goto labelFunc092B_0068;
		gflags[027A] = true;
	labelFunc092B_0068:
		if(!(var0000[var0003] == 0x0241)) goto labelFunc092B_0079;
		gflags[0283] = true;
	labelFunc092B_0079:
		if(!(var0000[var0003] == 0x034A)) goto labelFunc092B_008A;
		gflags[028B] = true;
	labelFunc092B_008A:
		if(!(var0000[var0003] == 0x02ED)) goto labelFunc092B_009B;
		gflags[027D] = true;
	labelFunc092B_009B:
		if(!(var0000[var0003] == 0x010B)) goto labelFunc092B_00AC;
		gflags[027E] = true;
	labelFunc092B_00AC:
		if(!(var0000[var0003] == 0x011D)) goto labelFunc092B_00BD;
		gflags[0284] = true;
	labelFunc092B_00BD:
		if(!(var0000[var0003] == 0x0377)) goto labelFunc092B_00CE;
		gflags[027F] = true;
	labelFunc092B_00CE:
		if(!(var0000[var0003] == 0x02A5)) goto labelFunc092B_00DF;
		gflags[027A] = true;
	labelFunc092B_00DF:
		if(!(var0000[var0003] == 0x00F4)) goto labelFunc092B_00F0;
		gflags[0288] = true;
	labelFunc092B_00F0:
		if(!(var0000[var0003] == 0x02D9)) goto labelFunc092B_0101;
		gflags[028A] = true;
	labelFunc092B_0101:
		if(!(var0000[var0003] == 0x0268)) goto labelFunc092B_0112;
		gflags[0285] = true;
	labelFunc092B_0112:
		if(!(var0000[var0003] == 0x0392)) goto labelFunc092B_0123;
		gflags[027C] = true;
	labelFunc092B_0123:
		if(!(var0000[var0003] == 0x024B)) goto labelFunc092B_0134;
		gflags[0281] = true;
	labelFunc092B_0134:
		if(!(var0000[var0003] == 0x03B4)) goto labelFunc092B_0145;
		gflags[0287] = true;
	labelFunc092B_0145:
		if(!(var0000[var0003] == 0x031A)) goto labelFunc092B_0156;
		gflags[0289] = true;
	labelFunc092B_0156:
		if(!(var0000[var0003] == 0x03EC)) goto labelFunc092B_0167;
		gflags[0280] = true;
	labelFunc092B_0167:
		if(!(var0000[var0003] == 0x01A3)) goto labelFunc092B_0178;
		gflags[0282] = true;
	labelFunc092B_0178:
		var0003 = (var0003 + 0x0001);
		goto labelFunc092B_002F;
	labelFunc092B_0185:
		return;
}
var Func092C 0x92C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var rr;

	if(!(var0000 == 0x0001)) goto labelFunc092C_004A;
	var0001 = [0x0108, 0x0241, 0x034A, 0x02ED, 0x010B, 0x011D, 0x0377, 0x02A5, 0x0179, 0x00F4, 0x02D9, 0x0268, 0x0392, 0x024B, 0x03B4, 0x031A, 0x03EC, 0x01A3];
	rr = var0001;
	labelFunc092C_004A:
		if(!(var0000 == 0x0002)) goto labelFunc092C_0074;
		var0002 = [false, false, false, false, false, false, false, false, false, false, false, false, 0x00FF, false, 0x0014, false, false, false];
		rr = var0002;
	labelFunc092C_0074:
		if(!(var0000 == 0x0003)) goto labelFunc092C_00BE;
		var0003 = [0x0000, 0x0003, 0x000F, 0x0001, 0x0000, 0x0006, 0x0000, 0x0000, 0x0015, 0x0000, 0x0000, 0x0010, 0x0000, 0x0005, 0x0000, 0x0000, 0x0004, 0x0000];
		rr = var0003;
	labelFunc092C_00BE:
		return rr;
}
Func092D 0x92D (var var0000, var var0001, var var0002)
{
	if(!((var0000 == 0x0001) || (var0000 == 0x0002))) goto labelFunc092D_0030;
	UI_set_item_shape_14(var0002, var0001);
	UI_halt_scheduled_71(var0002);
	UI_play_sound_effect_16(0x0021);
	UI_UNKNOWN_9C(item, true);
	labelFunc092D_0030:
		if(!(var0000 == 0x000A)) goto labelFunc092D_0058;
		UI_set_item_shape_14(var0002, var0001);
		UI_halt_scheduled_71(var0002);
		UI_play_sound_effect_16(0x0021);
		UI_UNKNOWN_9C(item, true);
	labelFunc092D_0058:
		if(!(var0000 == 0x0005)) goto labelFunc092D_0068;
		UI_UNKNOWN_9C(item, true);
	labelFunc092D_0068:
		if(!(var0000 == 0x0006)) goto labelFunc092D_0078;
		UI_UNKNOWN_9C(item, false);
	labelFunc092D_0078:
		return;
}
// externs
extern var Func0932 0x932 (var var0000);
extern var Func0930 0x930 (var var0000, var var0001, var var0002);
extern Func092F 0x92F (var var0000, var var0001);
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func092E 0x92E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0001 = [0xFFC1, 0xFFB1, 0xFFB6, 0xFFB9, 0xFF6A];
	var0001 = (var0001 & var0000);
	UI_end_conversation_86();
	UI_set_item_flag_A4(0xFE9C, 0x0010);
	enum();
	labelFunc092E_002E:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc092E_0184);
		if(!Func0932(var0004)) goto labelFunc092E_0181;
		UI_set_oppressor_5E(var0004, Dupre);
		UI_set_attack_mode_59(var0004, 0x0007);
		UI_set_opponent_5B(var0004, Dupre);
		UI_set_item_flag_A4(var0004, 0x0004);
		gflags[0009] = true;
		if(!(var0004 == var0000)) goto labelFunc092E_0181;
		if(!(!gflags[000A])) goto labelFunc092E_00AC;
		if(!(!gflags[0085])) goto labelFunc092E_00A9;
		gflags[0085] = true;
		UI_set_item_flag_A4(var0000, 0x0004);
		var0004 = UI_delayed_execute_usecode_array_02(var0000, [0x55, 0x07FD], 0x000C);
	labelFunc092E_00A9:
		goto labelFunc092E_0181;
	labelFunc092E_00AC:
		UI_clear_item_flag_A5(var0000, 0x0004);
		var0004 = Func0930(var0000, 0x0178, 0x003C);
		if(!(!var0004)) goto labelFunc092E_00D5;
		Func092F(var0000, 0x0001);
	labelFunc092E_00D5:
		if(!((var0000 == UI_get_npc_object_23(0xFE9C)) || (var0000 == 0xFE9C))) goto labelFunc092E_013F;
		UI_set_schedule_type_25(0xFE9C, 0x001F);
		UI_end_conversation_86();
		Func090D(var0004, [0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC], [Dupre, Shamino, 0x0000, Iolo, Dupre], 0x0000, 0x07F9, var0000, 0x0008);
		UI_set_path_failure_A7(0x07F9, var0000, 0x000E);
		goto labelFunc092E_0181;
	labelFunc092E_013F:
		UI_set_schedule_type_25(var0000, 0x000F);
		var0004 = UI_get_object_position_20(var0004);
		UI_si_path_run_usecode_C1(var0000, [(var0004[0x0001] - 0x0004), (var0004[0x0002] - 0x0001), var0004[0x0003]], 0x0008, var0000, 0x07F9, true);
	labelFunc092E_0181:
		goto labelFunc092E_002E;
	labelFunc092E_0184:
		return;
}
Func092F 0x92F (var var0000, var var0001)
{
	var var0002;

	UI_init_conversation_85();
	UI_show_npc_face0_05(0xFEED, 0x0000);
	if(!(var0000 == 0x0001)) goto labelFunc092F_001C;
	UcMessage("\"Failure in NowSettleDownBoys() because we could not find the tournament door.\"");
	UcSay;
	labelFunc092F_001C:
		if(!(var0000 == 0x0002)) goto labelFunc092F_002A;
		UcMessage("\"Failure in Brendan2Usable(_Action, $Temp1Flag) because we	//$ couldn't find the wall at the top of the stairs.\"");
		UcSay;
	labelFunc092F_002A:
		if(!(var0000 == 0x0003)) goto labelFunc092F_0038;
		UcMessage("\"Failure in Brendan2Usable(_Action, $Temp2Flag) because we	//$ couldn't find the door.\"");
		UcSay;
	labelFunc092F_0038:
		if(!(var0000 == 0x0004)) goto labelFunc092F_0046;
		UcMessage("\"Failure in BrendanUsable(_Polymorph) because we couldn't find the door.\"");
		UcSay;
	labelFunc092F_0046:
		if(!(var0000 == 0x0005)) goto labelFunc092F_0054;
		UcMessage("\"Failure in BrendanUsable(_Polymorph) because we couldn't pop a path egg next to the door.\"");
		UcSay;
	labelFunc092F_0054:
		if(!(var0000 == 0x0006)) goto labelFunc092F_0062;
		UcMessage("\"Failure in BrendanUsable(_Talking) because we couldn't find the door.\"");
		UcSay;
	labelFunc092F_0062:
		if(!(var0000 == 0x0007)) goto labelFunc092F_0070;
		UcMessage("\"Failure in BrendanUsable(_Path_Failure) because we failed in our pathfind.\"");
		UcSay;
	labelFunc092F_0070:
		if(!(var0000 == 0x0008)) goto labelFunc092F_007E;
		UcMessage("\"Failure in BrendanUsable(_Pathfind1) because we couldn't find the guard of the list fields.\"");
		UcSay;
	labelFunc092F_007E:
		if(!(var0000 == 0x0009)) goto labelFunc092F_008C;
		UcMessage("\"Failure in BrendanUsable(_Pathfind2) because we couldn't find the door.\"");
		UcSay;
	labelFunc092F_008C:
		if(!(var0000 == 0x000A)) goto labelFunc092F_009A;
		UcMessage("\"Failure in BrendanUsable(_Pathfind2) because we failed in our pop of a path egg.\"");
		UcSay;
	labelFunc092F_009A:
		if(!(var0000 == 0x000B)) goto labelFunc092F_00A8;
		UcMessage("\"Failure in BrendanUsable(_Action, not $Temp1Flag) because	//$ we were unable to find the guard.\"");
		UcSay;
	labelFunc092F_00A8:
		if(!(var0000 == 0x000C)) goto labelFunc092F_00B6;
		UcMessage("\"Failure in BrendanUsable(_Path_Success) because we couldn't find the door.\"");
		UcSay;
	labelFunc092F_00B6:
		if(!(var0000 == 0x000D)) goto labelFunc092F_00C4;
		UcMessage("\"Failure in CleanUpTournament() because we couldn't push an item into the ethereal void. We were doing this during the transfer of inventory from the chest into the student.\"");
		UcSay;
	labelFunc092F_00C4:
		if(!(var0000 == 0x000E)) goto labelFunc092F_00D2;
		UcMessage("\"Failure in CleanUpTournament() because we couldn't pop an item into the student's inventory.\"");
		UcSay;
	labelFunc092F_00D2:
		if(!(var0000 == 0x000F)) goto labelFunc092F_00E0;
		UcMessage("\"Failure in CleanUpTournament() because we couldn't find the guard.\"");
		UcSay;
	labelFunc092F_00E0:
		if(!(var0000 == 0x0010)) goto labelFunc092F_00EE;
		UcMessage("\"Failure in StartTournament() because we couldn't find the chest.\"");
		UcSay;
	labelFunc092F_00EE:
		if(!(var0000 == 0x0011)) goto labelFunc092F_00FC;
		UcMessage("\"Failure in StartTournament() because we couldn't push an item into the ethereal void.\"");
		UcSay;
	labelFunc092F_00FC:
		if(!(var0000 == 0x0012)) goto labelFunc092F_010A;
		UcMessage("\"Failure in StartTournament() because we couldn't pop an item into the chest.\"");
		UcSay;
	labelFunc092F_010A:
		if(!(var0000 == 0x0013)) goto labelFunc092F_0118;
		UcMessage("\"Failure in ContStartOfTournament() because we couldn't find the door.\"");
		UcSay;
	labelFunc092F_0118:
		if(!(var0000 == 0x0014)) goto labelFunc092F_0126;
		UcMessage("\"Failure in ContStartOfTournament() because we couldn't find the guard.\"");
		UcSay;
	labelFunc092F_0126:
		if(!(var0000 == 0x0015)) goto labelFunc092F_0134;
		UcMessage("\"Failure in Brendan2Usable(_Path_Failure) because we failed in our pathfind.\"");
		UcSay;
	labelFunc092F_0134:
		if(!(var0000 == 0x0016)) goto labelFunc092F_0142;
		UcMessage("\"Failure in Brendan2Usable(_Action) because we couldn't find the guard that is supposedly pathfinding to the door.\"");
		UcSay;
	labelFunc092F_0142:
		UI_remove_npc_face0_07();
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		var0002 = UI_delayed_execute_usecode_array_02(var0001, [0x55, 0x07FF], 0x0001);
		abrt();
		return;
}
var Func0930 0x930 (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0003 = UI_find_nearby_41(var0002, var0001, var0000, 0x0000);
	enum();
	labelFunc0930_0014:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0930_0034);
		if(!(UI_get_item_quality_1C(var0006) == 0x006C)) goto labelFunc0930_0031;
		rr = var0006;
	labelFunc0930_0031:
		goto labelFunc0930_0014;
	labelFunc0930_0034:
		rr = false;
		return rr;
}
// externs
extern Func09AA 0x9AA ();
extern var Func095C 0x95C (var var0000, var var0001);
extern Func0961 0x961 (var var0000, var var0001);
extern Func0963 0x963 (var var0000, var var0001);
extern Func0960 0x960 (var var0000, var var0001);
extern var Func0932 0x932 (var var0000);
extern var Func09A6 0x9A6 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0931 0x931 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;

	Func09AA();
	var0001 = UI_set_npc_prop_29(var0000, 0x0008, UI_die_roll_17(0x0001, 0x0032));
	gflags[0007] = false;
	gflags[0008] = false;
	gflags[0009] = false;
	gflags[000A] = false;
	gflags[0085] = false;
	if(!(UI_get_npc_id_BC(0xFF6A) && gflags[0084])) goto labelFunc0931_0087;
	if(!(Func095C(var0000, 0x0001) < 0x001E)) goto labelFunc0931_0055;
	Func0961(var0000, 0x0001);
	labelFunc0931_0055:
		if(!(Func095C(var0000, 0x0004) < 0x001E)) goto labelFunc0931_006E;
		Func0963(var0000, 0x0001);
	labelFunc0931_006E:
		if(!(Func095C(var0000, 0x0004) < 0x001E)) goto labelFunc0931_0087;
		Func0963(var0000, 0x0001);
	labelFunc0931_0087:
		if(!(UI_get_npc_id_BC(0xFFC1) && gflags[0084])) goto labelFunc0931_00E0;
		if(!(Func095C(var0000, 0x0000) < 0x001E)) goto labelFunc0931_00AE;
		Func0960(var0000, 0x0001);
	labelFunc0931_00AE:
		if(!(Func095C(var0000, 0x0000) < 0x001E)) goto labelFunc0931_00C7;
		Func0960(var0000, 0x0001);
	labelFunc0931_00C7:
		if(!(Func095C(var0000, 0x0004) < 0x001E)) goto labelFunc0931_00E0;
		Func0963(var0000, 0x0001);
	labelFunc0931_00E0:
		if(!(UI_get_npc_id_BC(0xFFB6) && gflags[0084])) goto labelFunc0931_0139;
		if(!(Func095C(var0000, 0x0001) < 0x001E)) goto labelFunc0931_0107;
		Func0961(var0000, 0x0001);
	labelFunc0931_0107:
		if(!(Func095C(var0000, 0x0001) < 0x001E)) goto labelFunc0931_0120;
		Func0961(var0000, 0x0001);
	labelFunc0931_0120:
		if(!(Func095C(var0000, 0x0004) < 0x001E)) goto labelFunc0931_0139;
		Func0963(var0000, 0x0001);
	labelFunc0931_0139:
		if(!(UI_get_npc_id_BC(0xFFB9) && gflags[0084])) goto labelFunc0931_0192;
		if(!(Func095C(var0000, 0x0000) < 0x001E)) goto labelFunc0931_0160;
		Func0960(var0000, 0x0001);
	labelFunc0931_0160:
		if(!(Func095C(var0000, 0x0000) < 0x001E)) goto labelFunc0931_0179;
		Func0960(var0000, 0x0001);
	labelFunc0931_0179:
		if(!(Func095C(var0000, 0x0000) < 0x001E)) goto labelFunc0931_0192;
		Func0960(var0000, 0x0001);
	labelFunc0931_0192:
		var0002 = [0xFFC1, 0xFFB1, 0xFFB6, 0xFFB9, 0xFF6A];
		enum();
	labelFunc0931_01A8:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0931_01DA);
		if(!Func0932(var0005)) goto labelFunc0931_01D7;
		UI_clear_item_flag_A5(var0005, 0x0004);
		UI_run_schedule_B7(var0005);
		UI_set_npc_id_BD(var0005, 0x0000);
	labelFunc0931_01D7:
		goto labelFunc0931_01A8;
	labelFunc0931_01DA:
		gflags[0084] = false;
		if(!(!(UI_get_npc_object_23(0xFE9C) == var0000))) goto labelFunc0931_01F7;
		UI_clear_item_flag_A5(var0000, 0x001D);
	labelFunc0931_01F7:
		UI_show_npc_face0_05(0xFEED, 0x0000);
		UcMessage("\"Very good, very good,\" he says as he returns your equipment.");
		UcSay;
		UI_set_alignment_4A(var0000, 0x0001);
		var0006 = UI_find_nearby_41(var0000, 0x020A, 0x002D, 0x0000);
		enum();
	labelFunc0931_0223:
		for (var0009 in var0006 with var0007 to var0008 atend labelFunc0931_0248);
		if(!(UI_get_item_quality_1C(var0009) == 0x00EB)) goto labelFunc0931_0245;
		var000A = var0009;
		goto labelFunc0931_024F;
	labelFunc0931_0245:
		goto labelFunc0931_0223;
	labelFunc0931_0248:
		UcMessage("\"Well, I seem to have misplaced thy belongings. Mine apologies. As a favor to thee, I shall let thee keep what thou dost have right now.\"");
		UcSay;
		goto labelFunc0931_031E;
	labelFunc0931_024F:
		var000B = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
		enum();
	labelFunc0931_0263:
		for (var000E in var000B with var000C to var000D atend labelFunc0931_0293);
		if(!(!((UI_get_item_shape_18(var000E) == 0x01E6) || (UI_get_item_shape_18(var000E) == 0x025F)))) goto labelFunc0931_0290;
		UI_remove_item_84(var000E);
	labelFunc0931_0290:
		goto labelFunc0931_0263;
	labelFunc0931_0293:
		var000F = 0x0000;
		var000B = UI_get_cont_items_33(var000A, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0931_02AC:
		if(!(var000F < 0x0002)) goto labelFunc0931_031E;
		enum();
	labelFunc0931_02B7:
		for (var000E in var000B with var0010 to var0011 atend labelFunc0931_02FE);
		if(!(Func09A6(var000E) || (var000F == 0x0001))) goto labelFunc0931_02FB;
		if(!(!UI_set_last_created_2E(var000E))) goto labelFunc0931_02E7;
		Func092F(var0000, 0x000D);
	labelFunc0931_02E7:
		if(!(!UI_give_last_created_43(var0000))) goto labelFunc0931_02FB;
		Func092F(var0000, 0x000E);
	labelFunc0931_02FB:
		goto labelFunc0931_02B7;
	labelFunc0931_02FE:
		var000F = (var000F + 0x0001);
		var000B = UI_get_cont_items_33(var000A, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0931_02AC;
	labelFunc0931_031E:
		var0012 = Func09A0(0x0001, 0x0002);
		var0013 = UI_get_item_quality_1C(var0012);
		if(!var0013) goto labelFunc0931_03B0;
		var0014 = (UI_get_item_quality_1C(var0012) - UI_get_npc_prop_28(0xFE9C, 0x0003));
		var0001 = UI_set_npc_prop_29(0xFE9C, 0x0003, var0014);
		var0001 = UI_set_item_quality_1D(var0012, 0x0000);
		var0002 = UI_find_nearby_41(0xFE9C, Dupre, 0x002D, 0x0004);
		enum();
	labelFunc0931_0380:
		for (var0005 in var0002 with var0015 to var0016 atend labelFunc0931_03AD);
		if(!(UI_get_npc_id_BC(var0005) == 0x000D)) goto labelFunc0931_03AA;
		UI_add_to_party_26(var0005);
		UI_set_npc_id_BD(var0005, 0x0000);
	labelFunc0931_03AA:
		goto labelFunc0931_0380;
	labelFunc0931_03AD:
		goto labelFunc0931_03E6;
	labelFunc0931_03B0:
		var0014 = (UI_get_npc_id_BC(var0000) - UI_get_npc_prop_28(var0000, 0x0003));
		var0001 = UI_set_npc_prop_29(var0000, 0x0003, var0014);
		UI_set_npc_id_BD(var0000, 0x0000);
		UI_add_to_party_26(var0000);
	labelFunc0931_03E6:
		if(!(!(var0000 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0931_040A;
		UI_set_camera_AE(UI_get_npc_object_23(0xFE9C));
		UI_set_schedule_type_25(var0000, 0x001F);
	labelFunc0931_040A:
		var0017 = UI_find_nearby_41(var0000, 0x00E4, 0x0023, 0x0000);
		enum();
	labelFunc0931_041E:
		for (var001A in var0017 with var0018 to var0019 atend labelFunc0931_043D);
		if(!(UI_get_npc_id_BC(var001A) == 0x0009)) goto labelFunc0931_043A;
		goto labelFunc0931_0446;
	labelFunc0931_043A:
		goto labelFunc0931_041E;
	labelFunc0931_043D:
		Func092F(var0000, 0x000F);
	labelFunc0931_0446:
		UI_si_path_run_usecode_C1(var001A, [0x03FB, 0x0A77, 0x0006], 0x000D, var001A, 0x00E4, true);
		return;
}
var Func0932 0x932 (var var0000)
{
	var var0001;
	var rr;

	var0001 = UI_get_object_position_20(var0000);
	if(!(((var0001[0x0001] > 0x03C3) && ((var0001[0x0001] < 0x03EC) && ((var0001[0x0002] > 0x0A73) && (var0001[0x0002] < 0x0A9C)))) || ((var0001[0x0001] == 0x03EC) && ((var0001[0x0002] > 0x0A83) && ((var0001[0x0002] < 0x0A8C) && (var0001[0x0003] == 0x0000)))))) goto labelFunc0932_0066;
	rr = true;
	labelFunc0932_0066:
		rr = false;
		return rr;
}
// externs
extern var Func096E 0x96E (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func0934 0x934 (var var0000);

Func0933 0x933 (var var0000, var var0001)
{
	UI_show_npc_face0_05(var0001, 0x0000);
	UI_set_npc_id_BD(0xFFB6, 0x0000);
	UI_set_npc_id_BD(0xFFB9, 0x0000);
	UI_set_npc_id_BD(0xFFC1, 0x0000);
	UI_set_npc_id_BD(0xFFB1, 0x0000);
	UI_set_npc_id_BD(0xFF6A, 0x0000);
	UI_set_npc_id_BD(var0001, 0x0009);
	if(!(var0001 == 0xFF6A)) goto labelFunc0933_00A5;
	var0001 = Func096E([0x0001, 0x0004, 0x0004], 0x03B7, 0x0032, var0000, 0x0003);
	if(!(var0001 == 0x0000)) goto labelFunc0933_007F;
	UcMessage("\"Thou dost not have enough experience. Come back when thou art more knowledgeable of the world!\"");
	UcSay;
	goto labelFunc0933_01E1;
	labelFunc0933_007F:
		if(!(var0001 == 0x0001)) goto labelFunc0933_0090;
		UcMessage("\"Thou dost not have enough money.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_0090:
		if(!(var0001 == 0x0002)) goto labelFunc0933_00A1;
		UcMessage("\"Thou art already as proficient as I. Thou mightest consider consulting one of the other trainers that specialize in other areas.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_00A1:
		UcMessage("\"I will train thee now.\"");
		UcSay;
	labelFunc0933_00A5:
		if(!(var0001 == 0xFFB6)) goto labelFunc0933_0104;
		var0001 = Func096E([0x0001, 0x0001, 0x0004], 0x03B7, 0x0032, var0000, 0x0003);
		if(!(var0001 == 0x0000)) goto labelFunc0933_00DE;
		UcMessage("\"Thou dost not have enough experience. Come back when thou art more knowledgeable of the world!\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_00DE:
		if(!(var0001 == 0x0001)) goto labelFunc0933_00EF;
		UcMessage("\"Thou dost not have enough money.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_00EF:
		if(!(var0001 == 0x0002)) goto labelFunc0933_0100;
		UcMessage("\"Thou art already as proficient as I. Thou mightest consider consulting one of the other trainers that specialize in other areas.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_0100:
		UcMessage("\"I will train thee now.\"");
		UcSay;
	labelFunc0933_0104:
		if(!(var0001 == 0xFFB9)) goto labelFunc0933_0163;
		var0001 = Func096E([0x0000, 0x0000, 0x0000], 0x03B7, 0x0032, var0000, 0x0003);
		if(!(var0001 == 0x0000)) goto labelFunc0933_013D;
		UcMessage("\"Thou dost not have enough experience. Come back when thou art more knowledgeable of the world!\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_013D:
		if(!(var0001 == 0x0001)) goto labelFunc0933_014E;
		UcMessage("\"Thou dost not have enough money.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_014E:
		if(!(var0001 == 0x0002)) goto labelFunc0933_015F;
		UcMessage("\"Thou art already as proficient as I. Thou mightest consider consulting one of the other trainers that specialize in other areas.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_015F:
		UcMessage("\"I will train thee now.\"");
		UcSay;
	labelFunc0933_0163:
		if(!(var0001 == 0xFFC1)) goto labelFunc0933_01C2;
		var0001 = Func096E([0x0000, 0x0000, 0x0004], 0x03B7, 0x0032, var0000, 0x0003);
		if(!(var0001 == 0x0000)) goto labelFunc0933_019C;
		UcMessage("\"Thou dost not have enough experience. Come back when thou art more knowledgeable of the world!\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_019C:
		if(!(var0001 == 0x0001)) goto labelFunc0933_01AD;
		UcMessage("\"Thou dost not have enough money.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_01AD:
		if(!(var0001 == 0x0002)) goto labelFunc0933_01BE;
		UcMessage("\"Thou art already as proficient as I. Thou mightest consider consulting one of the other trainers that specialize in other areas.\"");
		UcSay;
		goto labelFunc0933_01E1;
	labelFunc0933_01BE:
		UcMessage("\"I will train thee now.\"");
		UcSay;
	labelFunc0933_01C2:
		var0001 = UI_remove_party_items_34(0x0032, 0x03B7, 0xFE99, 0xFE99, false);
		gflags[0084] = true;
		Func0934(var0000);
		abrt();
	labelFunc0933_01E1:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func092F 0x92F (var var0000, var var0001);
extern var Func09A6 0x9A6 (var var0000);
extern Func0935 0x935 (var var0000);

Func0934 0x934 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0001 = UI_get_npc_prop_28(var0000, 0x0003);
	if(!(var0000 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0934_0037;
	var0002 = Func09A0(0x0001, 0x0002);
	var0003 = UI_set_item_quality_1D(var0002, var0001);
	goto labelFunc0934_005A;
	labelFunc0934_0037:
		UI_set_npc_id_BD(var0000, var0001);
		var0002 = Func09A0(0x0001, 0x0002);
		var0003 = UI_set_item_quality_1D(var0002, 0x0000);
	labelFunc0934_005A:
		var0003 = UI_set_npc_prop_29(var0000, 0x0003, (UI_get_npc_prop_28(var0000, 0x0000) - var0001));
		gflags[0083] = true;
		if(!(var0000 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0934_00C6;
		var0003 = UI_get_party_list2_AA();
		enum();
	labelFunc0934_008F:
		for (var0002 in var0003 with var0004 to var0005 atend labelFunc0934_00C3);
		if(!(!(var0002 == var0000))) goto labelFunc0934_00C0;
		UI_set_npc_id_BD(var0002, 0x000D);
		UI_remove_from_party_27(var0002);
		UI_set_schedule_type_25(var0002, 0x000F);
	labelFunc0934_00C0:
		goto labelFunc0934_008F;
	labelFunc0934_00C3:
		goto labelFunc0934_00E1;
	labelFunc0934_00C6:
		UI_remove_from_party_27(var0000);
		UI_set_schedule_type_25(var0000, 0x000F);
		UI_set_alignment_4A(var0000, 0x0001);
	labelFunc0934_00E1:
		UI_set_item_flag_A4(var0000, 0x001D);
		var0003 = UI_find_nearby_41(var0000, 0x020A, 0x000F, 0x0000);
		enum();
	labelFunc0934_00FF:
		for (var0002 in var0003 with var0006 to var0007 atend labelFunc0934_012E);
		if(!(UI_get_item_quality_1C(var0002) == 0x00EB)) goto labelFunc0934_012B;
		var0008 = var0002;
		UI_set_item_shape_14(var0008, 0x0320);
		goto labelFunc0934_0137;
	labelFunc0934_012B:
		goto labelFunc0934_00FF;
	labelFunc0934_012E:
		Func092F(var0000, 0x0010);
	labelFunc0934_0137:
		var0009 = 0x0000;
		var000A = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
	labelFunc0934_0150:
		if(!(var0009 < 0x0002)) goto labelFunc0934_01DF;
		enum();
	labelFunc0934_015B:
		for (var0002 in var000A with var000B to var000C atend labelFunc0934_01BF);
		if(!(Func09A6(var0002) || (var0009 == 0x0001))) goto labelFunc0934_01BC;
		var0003 = UI_get_item_shape_18(var0002);
		if(!(!((var0003 == 0x01E6) || (var0003 == 0x025F)))) goto labelFunc0934_01BC;
		if(!(!UI_set_last_created_2E(var0002))) goto labelFunc0934_01A8;
		Func092F(var0000, 0x0011);
	labelFunc0934_01A8:
		if(!(!UI_give_last_created_43(var0008))) goto labelFunc0934_01BC;
		Func092F(var0000, 0x0012);
	labelFunc0934_01BC:
		goto labelFunc0934_015B;
	labelFunc0934_01BF:
		var0009 = (var0009 + 0x0001);
		var000A = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
		goto labelFunc0934_0150;
	labelFunc0934_01DF:
		UI_set_item_shape_14(var0008, 0x020A);
		Func0935(var0000);
		return;
}
// externs
extern var Func0957 0x957 (var var0000);
extern Func092F 0x92F (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0935 0x935 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	UI_show_npc_face0_05(0xFEED, 0x0000);
	UcMessage("\"What weapon dost thou favor?\"");
	UcSay;
	var0001 = ["nothing", "sword", "spear", "hammer", "morning star", "mace", "halberd", "battle axe"];
	var0002 = Func0957(var0001);
	if(!(var0002 == 0x0001)) goto labelFunc0935_0043;
	UcMessage("\"Indeed. If that's what thou wantest.... Best of luck to ya.\"");
	UcSay;
	labelFunc0935_0043:
		if(!(var0002 == 0x0002)) goto labelFunc0935_0073;
		if(!UI_is_pc_female_6F()) goto labelFunc0935_005B;
		UcMessage("\"Take care with that blade. 'Tis sharp.\"");
		UcSay;
		goto labelFunc0935_005F;
	labelFunc0935_005B:
		UcMessage("\"Be thou careful with that blade.\"");
		UcSay;
	labelFunc0935_005F:
		var0003 = UI_create_new_object_2C(0x0257);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_0073:
		if(!(var0002 == 0x0003)) goto labelFunc0935_0095;
		UcMessage("\"Only a coward fights from a distance, not that I be referring to thee or nothing.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x0250);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_0095:
		if(!(var0002 == 0x0004)) goto labelFunc0935_00B7;
		UcMessage("\"Aaahh, a fine weapon a war hammer is. There's nothing quite like the feeling of whacking someone with a mallet.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x0258);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_00B7:
		if(!(var0002 == 0x0005)) goto labelFunc0935_00D9;
		UcMessage("\"A respectable weapon that is. Leaves quite a mess, though.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x0254);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_00D9:
		if(!(var0002 == 0x0006)) goto labelFunc0935_00FB;
		UcMessage("\"Squeamish at the sight of blood, are ya? The morning star is the true warrior's mace.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x0293);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_00FB:
		if(!(var0002 == 0x0007)) goto labelFunc0935_011D;
		UcMessage("\"A fine enough weapon for a coward. I never did care for that fightin' at a distance and all. I thinks that the only way to victory is to close and hack, and I should know, seeing that I've seen many a battle in my time.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x025B);
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_011D:
		if(!(var0002 == 0x0008)) goto labelFunc0935_014D;
		UcMessage("\"Thou knowest thy weapons well.\"");
		UcSay;
		UcMessage("\"Sweet is the sight of a battle axe swinging in the pitch of battle.\"");
		UcSay;
		UcMessage("\"Lovely is the sound of bone crunching under its mighty arc.\"");
		UcSay;
		var0003 = UI_create_new_object_2C(0x0259);
		if(!var0003) goto labelFunc0935_014D;
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_014D:
		var0003 = UI_create_new_object_2C(0x0239);
		if(!var0003) goto labelFunc0935_0167;
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_0167:
		var0003 = UI_create_new_object_2C(0x024B);
		if(!var0003) goto labelFunc0935_0181;
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_0181:
		var0003 = UI_create_new_object_2C(0x03EC);
		if(!var0003) goto labelFunc0935_019B;
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_019B:
		var0003 = UI_create_new_object_2C(0x0243);
		if(!var0003) goto labelFunc0935_01B5;
		var0001 = UI_give_last_created_42(var0000);
	labelFunc0935_01B5:
		UcMessage("\"All right. If thou'lt follow me, then.\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_play_music_39(0x0022, 0x0000);
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_end_conversation_86();
		var0004 = UI_find_nearby_41(0xFE9C, 0x00E4, 0x0023, 0x0000);
		enum();
	labelFunc0935_01E9:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc0935_0208);
		if(!(UI_get_npc_id_BC(var0007) == 0x0009)) goto labelFunc0935_0205;
		goto labelFunc0935_0211;
	labelFunc0935_0205:
		goto labelFunc0935_01E9;
	labelFunc0935_0208:
		Func092F(var0000, 0x0014);
	labelFunc0935_0211:
		UI_clear_item_say_4E(var0007);
		Func097F(var0007, "@Follow me...@", 0x000F);
		var0008 = UI_find_nearby_41(var0000, 0x036F, 0x001E, 0x0000);
		enum();
	labelFunc0935_0238:
		for (var000B in var0008 with var0009 to var000A atend labelFunc0935_0276);
		var000C = UI_get_object_position_20(var000B);
		if(!((var000C[0x0001] == 0x03F4) && ((var000C[0x0002] == 0x0A7F) && (var000C[0x0003] == 0x0006)))) goto labelFunc0935_0273;
		goto labelFunc0935_027F;
	labelFunc0935_0273:
		goto labelFunc0935_0238;
	labelFunc0935_0276:
		Func092F(var0000, 0x0002);
	labelFunc0935_027F:
		var000D = [Shamino, Iolo, Dupre];
		var000E = [0x0000, 0x0000, 0x0000];
		UI_si_path_run_usecode_C1(var0007, [(var000C[0x0001] - 0x0002), (var000C[0x0002] - 0x0000), var000C[0x0003]], 0x000B, var0000, 0x07FD, true);
		return;
}
// externs
extern var Func098D 0x98D ();
extern var Func0932 0x932 (var var0000);
extern Func092E 0x92E (var var0000);
extern var Func0953 0x953 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func0988 0x988 (var var0000, var var0001);

Func0936 0x936 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	var0002 = Func098D();
	var0002 = (var0002 & 0xFE9C);
	var0003 = [];
	enum();
	labelFunc0936_0017:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc0936_0033);
		var0003 = (var0003 & UI_get_npc_object_23(var0006));
		goto labelFunc0936_0017;
	labelFunc0936_0033:
		if(!(!(in(var0001, var0003) || in(var0000, var0003)))) goto labelFunc0936_0047;
		exit2();
	labelFunc0936_0047:
		UI_init_conversation_85();
		if(!in(var0001, var0003)) goto labelFunc0936_02F8;
		UI_set_attack_mode_59(var0000, 0x0007);
		if(!(!gflags[0084])) goto labelFunc0936_0198;
		if(!(gflags[0043] && ((var0000 == UI_get_npc_object_23(0xFFB9)) && ((!gflags[0041]) && (var0001 == UI_get_npc_object_23(0xFE9C)))))) goto labelFunc0936_008F;
		goto labelFunc0936_0461;
		goto labelFunc0936_00A0;
	labelFunc0936_008F:
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, "@Thou hast beaten me!@");
	labelFunc0936_00A0:
		if(!(((!Func0932(0xFF6A)) || (Func0932(0xFF6A) && (UI_get_attack_mode_5A(0xFF6A) == 0x0007))) && (((!Func0932(0xFFB9)) || (Func0932(0xFFB9) && (UI_get_attack_mode_5A(0xFFB9) == 0x0007))) && (((!Func0932(0xFFB6)) || (Func0932(0xFFB6) && (UI_get_attack_mode_5A(0xFFB6) == 0x0007))) && (((!Func0932(0xFFC1)) || (Func0932(0xFFC1) && (UI_get_attack_mode_5A(0xFFC1) == 0x0007))) && ((!Func0932(0xFFB1)) || (Func0932(0xFFB1) && (UI_get_attack_mode_5A(0xFFB1) == 0x0007)))))))) goto labelFunc0936_0191;
		UI_show_npc_face0_05(0xFEED, 0x0000);
		var0002 = UI_get_npc_name_30(var0001);
		UcMessage("\"Nice show, ");
		UcMessage(var0002);
		UcMessage(", thou hast beaten us all! Where didst thou learn to fight like that?\"");
		UcSay;
		var0002 = (("@Hail, " + var0002) + "!@");
		var0007 = UI_find_nearby_41(var0001, Dupre, 0x001E, 0x0008);
		enum();
	labelFunc0936_0169:
		for (var0000 in var0007 with var0008 to var0009 atend labelFunc0936_0188);
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, var0002);
		goto labelFunc0936_0169;
	labelFunc0936_0188:
		Func092E(var0001);
		goto labelFunc0936_0195;
	labelFunc0936_0191:
		gflags[0007] = false;
	labelFunc0936_0195:
		goto labelFunc0936_02F5;
	labelFunc0936_0198:
		if(!(var0000 == UI_get_npc_object_23(0xFFB9))) goto labelFunc0936_0200;
		if(!((gflags[0043] && (!gflags[0041])) && (var0001 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0936_01C0;
		goto labelFunc0936_0461;
	labelFunc0936_01C0:
		if(!(UI_get_npc_id_BC(0xFFB9) == 0x0009)) goto labelFunc0936_01EA;
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		UcMessage("\"Thou hast beaten me. I am impressed.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0001);
		exit2();
		goto labelFunc0936_01FF;
	labelFunc0936_01EA:
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, "@Thou hast beaten me!@");
		gflags[0007] = false;
	labelFunc0936_01FF:
		exit2();
	labelFunc0936_0200:
		if(!(var0000 == UI_get_npc_object_23(0xFFB6))) goto labelFunc0936_0243;
		if(!(UI_get_npc_id_BC(0xFFB6) == 0x0009)) goto labelFunc0936_0238;
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		UcMessage("\"Quite amazing. I have been beaten by thee! Perhaps it is time for the teacher to learn from the student.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0001);
		exit2();
		goto labelFunc0936_0242;
	labelFunc0936_0238:
		UI_item_say_4D(var0000, "@Thou hast bested me!@");
	labelFunc0936_0242:
		exit2();
	labelFunc0936_0243:
		if(!(var0000 == UI_get_npc_object_23(0xFF6A))) goto labelFunc0936_0291;
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0009)) goto labelFunc0936_027B;
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"A good showing! Thou hast gotten lucky and bested me! Perhaps it is time for the master to learn from his student!!!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0001);
		exit2();
		goto labelFunc0936_0290;
	labelFunc0936_027B:
		UI_clear_item_say_4E(0xFF6A);
		UI_item_say_4D(var0000, "@Thou hast bested me again!@");
		gflags[0007] = false;
	labelFunc0936_0290:
		exit2();
	labelFunc0936_0291:
		if(!(var0000 == UI_get_npc_object_23(0xFFC1))) goto labelFunc0936_02DF;
		if(!(UI_get_npc_id_BC(0xFFC1) == 0x0009)) goto labelFunc0936_02C9;
		UI_show_npc_face0_05(0xFFC1, 0x0000);
		UcMessage("\"Thou hast gotten lucky and bested me! Do not consider this the image of the wilds. The goblins are fierce.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0001);
		exit2();
		goto labelFunc0936_02DE;
	labelFunc0936_02C9:
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, "@I surrender to thee!@");
		gflags[0007] = false;
	labelFunc0936_02DE:
		exit2();
	labelFunc0936_02DF:
		UI_clear_item_say_4E(var0000);
		UI_item_say_4D(var0000, "@I can take it no longer!@");
		gflags[0007] = false;
		exit2();
	labelFunc0936_02F5:
		goto labelFunc0936_0460;
	labelFunc0936_02F8:
		if(!gflags[0084]) goto labelFunc0936_039D;
		if(!(UI_get_npc_id_BC(0xFFB6) == 0x0009)) goto labelFunc0936_0325;
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		UcMessage("\"Thou hast been beaten by my blade. Remember this day, and learn.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_0325:
		if(!(UI_get_npc_id_BC(0xFFB9) == 0x0009)) goto labelFunc0936_034C;
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		UcMessage("\"Thou hast been beaten, as was expected. Though thou art insignificant, try to remember the lessons I have taught thee this day.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_034C:
		if(!(UI_get_npc_id_BC(0xFF6A) == 0x0009)) goto labelFunc0936_0373;
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"Thou made a good showing, but fell to my superior skill in the end. With more experience, thou wilt make a fine warrior.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_0373:
		if(!(UI_get_npc_id_BC(0xFFC1) == 0x0009)) goto labelFunc0936_039A;
		UI_show_npc_face0_05(0xFFC1, 0x0000);
		UcMessage("\"I have overwhelmed thee with sheer strength. Learn from this lesson, my friend.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_039A:
		goto labelFunc0936_0460;
	labelFunc0936_039D:
		if(!(var0001 == UI_get_npc_object_23(0xFFB6))) goto labelFunc0936_03C4;
		UI_show_npc_face0_05(0xFFB6, 0x0000);
		UcMessage("\"Thou hast lost this match.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_03C4:
		if(!(var0001 == UI_get_npc_object_23(0xFFB9))) goto labelFunc0936_03EB;
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		UcMessage("\"Hah, I have bested thee. Away with thee!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_03EB:
		if(!(var0001 == UI_get_npc_object_23(0xFF6A))) goto labelFunc0936_0412;
		UI_show_npc_face0_05(0xFF6A, 0x0000);
		UcMessage("\"Thou hast been beaten in a fair spar. Perhaps now thou wilt be more humble.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_0412:
		if(!(var0001 == UI_get_npc_object_23(0xFFC1))) goto labelFunc0936_0439;
		UI_show_npc_face0_05(0xFFC1, 0x0000);
		UcMessage("\"Thou hast lost to my prowess.\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_0439:
		if(!(var0001 == UI_get_npc_object_23(0xFFB1))) goto labelFunc0936_0460;
		UI_show_npc_face0_05(0xFFB1, 0x0000);
		UcMessage("\"I have beaten thee!\"");
		UcSay;
		UI_remove_npc_face0_07();
		Func092E(var0000);
		exit2();
	labelFunc0936_0460:
		exit2();
	labelFunc0936_0461:
		UI_show_npc_face0_05(0xFFB9, 0x0000);
		UcMessage("\"I wouldn't have believed it... thou didst beat me... in a fair fight...\"");
		UcSay;
		var0002 = Func0953();
		if(!UI_is_pc_female_6F()) goto labelFunc0936_0489;
		UcMessage("\"Thou art one hell of a warrior, ");
		UcMessage(var0002);
		UcMessage("!\"");
		UcSay;
		goto labelFunc0936_0493;
	labelFunc0936_0489:
		UcMessage("\"Thou art a better man than I am, ");
		UcMessage(var0002);
		UcMessage(".\"");
		UcSay;
	labelFunc0936_0493:
		UI_revert_schedule_B4(0xFFB9);
		gflags[0041] = true;
		var0002 = UI_set_npc_prop_29(0xFFB9, 0x0000, 0x0012);
		var0002 = UI_set_npc_prop_29(0xFFB9, 0x0004, 0x0009);
		var0002 = UI_set_npc_prop_29(0xFFB9, 0x0001, 0x0008);
		UI_clear_item_say_4E(0xFFB9);
		Func097F(0xFFB9, "@Hail the Avatar!@", 0x0000);
		var0000 = UI_find_nearby_41(0xFE9C, Dupre, 0x0032, 0x0008);
		var0000 = Func0988(UI_get_npc_object_23(0xFFB9), var0000);
		enum();
	labelFunc0936_0505:
		for (var0002 in var0000 with var000A to var000B atend labelFunc0936_052D);
		UI_clear_item_say_4E(var0002);
		Func097F(var0002, "@Hail the Avatar!@", UI_die_roll_17(0x0000, 0x0001));
		goto labelFunc0936_0505;
	labelFunc0936_052D:
		Func092E(var0001);
		return;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

Func0937 0x937 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007)
{
	var var0008;

	if(!(var0007 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0937_0036;
	Func090D(var0006, var0005, var0004, var0003, var0002, var0001, var0000);
	UI_set_path_failure_A7(var0002, var0001, 0x000E);
	goto labelFunc0937_007A;
	labelFunc0937_0036:
		var0008 = UI_get_object_position_20(var0006);
		var0008 = [(var0008[0x0001] + var0005[0x0001]), (var0008[0x0002] + var0004[0x0001]), var0008[0x0003]];
		UI_si_path_run_usecode_C1(var0007, var0008, var0000, var0001, var0002, true);
	labelFunc0937_007A:
		return;
}
Func0938 0x938 (var var0000)
{
	UI_error_message_40("Obsolete routine TRIAL in conversation");
	return;
}
DID NOT FIND ALL OPCODE PARAMETERS.
// externs
extern var Func08AC 0x8AC (var var0000);
extern Func08C5 0x8C5 ();
extern var Func0954 0x954 ();
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0939 0x939 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	Func08C5();
	Func097F();
	((SOMETHING_GOES_HERE() + SOMETHING_GOES_HERE()) + "...@");
	var0001;
	Func0954();
	var0001 = Func08AC(false);
	0x0005;
	(("@" + var0001) + "!@");
	0xFE9C;
	Func0954();
	abrt();
	labelFunc0939_0072:
		if(!(var0000 == 0x00F9)) goto labelFunc0939_00D2;
		UI_add_to_party_26(Func08AC(true));
		var0001 = UI_get_party_list2_AA();
		enum();
	labelFunc0939_008C:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc0939_00A4);
		UI_set_schedule_type_25(var0004, 0x000F);
		goto labelFunc0939_008C;
	labelFunc0939_00A4:
		var0001 = UI_create_new_object2_2D(0x017D, [0x0407, 0x0679]);
		UI_si_path_run_usecode_C1(var0001, [0x0408, 0x066F], 0x000D, var0001, 0x07F8, false);
		abrt();
	labelFunc0939_00D2:
		if(!(var0000 == 0x00FA)) goto labelFunc0939_010C;
		UI_set_schedule_type_25(item, 0x000F);
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0002, 0x6C]);
		var0001 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x0005);
		abrt();
	labelFunc0939_010C:
		if(!(var0000 == 0x00FB)) goto labelFunc0939_0189;
		var0001 = UI_create_new_object_2C(0x017A);
		if(!var0001) goto labelFunc0939_014A;
		UI_set_item_frame_1B(var0001, 0x0005);
		UI_play_sound_effect_16(0x0075);
		var0001 = UI_update_last_created_2F([0x0408, 0x066E, 0x0000]);
	labelFunc0939_014A:
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0002, 0x61, 0x27, 0x0002, 0x55, 0x07F8]);
		var0001 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@This trial will now come to order.@", 0x27, 0x0005, 0x6C, 0x27, 0x0002, 0x6B]);
		abrt();
	labelFunc0939_0189:
		if(!(var0000 == 0x00FC)) goto labelFunc0939_01BC;
		var0001 = UI_get_object_position_20(item);
		var0001[0x0001] = (var0001[0x0001] + 0x0003);
		UI_si_path_run_usecode_C1(item, var0001, 0x000D, item, 0x07F8, false);
		abrt();
	labelFunc0939_01BC:
		if(!(var0000 == 0x00FD)) goto labelFunc0939_0271;
		var0001 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0002, 0x59, 0x0004, 0x01, 0x61]);
		if(!gflags[0170]) goto labelFunc0939_0235;
		var0001 = UI_execute_usecode_array_01(Kylista, [0x23, 0x6C, 0x27, 0x0003, 0x52, "@Hear ye!@", 0x61, 0x27, 0x0003, 0x6F, 0x58, 0x001E, 0x27, 0x0003, 0x70, 0x58, 0x001E, 0x27, 0x0003, 0x61, 0x58, 0x001E, 0x27, 0x0003, 0x55, 0x07F8]);
		goto labelFunc0939_0270;
	labelFunc0939_0235:
		0x000F;
		"@Zulith...@";
		0xFFC9;
		Func0954();
		var0001 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x6C, 0x27, 0x0003, 0x61, 0x27, 0x0002, 0x59, 0x0004, 0x27, 0x0002, 0x55, 0x07F8], 0x000A);
	labelFunc0939_0270:
		abrt();
	labelFunc0939_0271:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func08AC 0x8AC (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func0907 0x907 (var var0000, var var0001);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern Func095D 0x95D (var var0000);

Func093A 0x93A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var var001C;
	var var001D;
	var var001E;
	var var001F;
	var var0020;
	var var0021;
	var var0022;
	var var0023;
	var var0024;
	var var0025;
	var var0026;
	var var0027;
	var var0028;
	var var0029;
	var var002A;

	var0001 = Func0953();
	var0002 = "his";
	if(!UI_is_pc_female_6F()) goto labelFunc093A_0019;
	var0002 = "her";
	labelFunc093A_0019:
		if(!gflags[0170]) goto labelFunc093A_0351;
		if(!(var0000 == 0x0057)) goto labelFunc093A_0119;
		var0003 = UI_execute_usecode_array_01(0xFFCD, [0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6B]);
		UI_init_conversation_85();
		UI_show_npc_face0_05(Kylista, 0x0000);
		UcMessage("\"I thank thee, Captain Voldin.\"");
		UcSay;
		var0003 = Func08AC(false);
		UcMessage("\"We shall recess until tomorrow, and then return to hear ");
		UcMessage(var0003);
		UcMessage("'s defense. Dost thou agree with this course of action, Lady Yelinda?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Oh... why, yes... of course. Make it so.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", know that thou mayest defend thyself or appoint any willing person to speak on thy behalf. Dost thou have a preference?\"");
		UcSay;
		UI_show_npc_face1_06(Func08AC(true), 0x0000);
		UcMessage("\"Yes, I wish my friend -- ");
		UcMessage(var0001);
		UcMessage(", the Avatar -- to present my case. I have faith that I will be acquitted.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Very well, ");
		UcMessage(var0001);
		UcMessage(" shall be thy champion. Guard, please take the defendant to his cell.\"");
		UcSay;
		UI_end_conversation_86();
		var0004 = UI_find_nearby_41(0xFE9C, 0x017D, 0x000A, 0x0008);
		if(!var0004) goto labelFunc093A_0118;
		var0003 = UI_execute_usecode_array_01(var0004, [0x23, 0x52, "@Yes, Priestess.@"]);
		var0005 = UI_get_object_position_20(var0004);
		var0005[0x0001] = (var0005[0x0001] - 0x0003);
		UI_si_path_run_usecode_C1(var0004, var0005, 0x000D, var0004, 0x07F8, false);
	labelFunc093A_0118:
		abrt();
	labelFunc093A_0119:
		if(!(var0000 == 0x0058)) goto labelFunc093A_0140;
		var0003 = UI_execute_usecode_array_01(item, [0x59, 0x0000, 0x27, 0x0002, 0x6C, 0x55, 0x07F8]);
		abrt();
	labelFunc093A_0140:
		if(!(var0000 == 0x0059)) goto labelFunc093A_0189;
		var0003 = UI_find_nearby_41(item, 0x017A, 0x0005, 0x0000);
		if(!var0003) goto labelFunc093A_0188;
		UI_remove_item_84(var0003);
		UI_play_sound_effect_16(0x0075);
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x27, 0x0002, 0x61, 0x55, 0x07F8]);
	labelFunc093A_0188:
		abrt();
	labelFunc093A_0189:
		if(!(var0000 == 0x005A)) goto labelFunc093A_01BF;
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x52, "@Come with me, prisoner.@"]);
		UI_si_path_run_usecode_C1(item, [0x0407, 0x0679, 0x0000], 0x000D, item, 0x07F8, false);
		abrt();
	labelFunc093A_01BF:
		if(!(var0000 == 0x005B)) goto labelFunc093A_020A;
		UI_remove_item_84(item);
		var0003 = Func08AC(true);
		UI_remove_from_party_27(var0003);
		UI_si_path_run_usecode_C1(var0003, [0x0408, 0x067A, 0x0000], 0x000D, UI_get_npc_object_23(var0003), 0x07F8, false);
		Func097F(var0003, "@Goodbye...@", 0x0000);
		abrt();
	labelFunc093A_020A:
		if(!(var0000 == 0x005C)) goto labelFunc093A_02C7;
		gflags[0171] = true;
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x52, "@This trial is now in recess!@"]);
		var0004 = ("" & ("@What a farce!@" & ("@What shall I do?@" & "@Woe is me...@")));
		Func094F(0xFE9C, var0004);
		UI_remove_npc_4C(Func08AC(true));
		UI_si_path_run_usecode_C1(0xFE9C, [0x0407, 0x068D, 0x0000], 0x000D, UI_get_npc_object_23(0xFE9C), 0x07F8, false);
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0002), 0x0000);
		var0003 = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0002), [0x23, 0x55, 0x042E], 0x01F4);
		var0003 = UI_execute_usecode_array_01(Func09A0(0x0001, 0x0002), [0x23, 0x55, 0x07F8]);
		abrt();
	labelFunc093A_02C7:
		if(!(var0000 == 0x005D)) goto labelFunc093A_034E;
		gflags[0170] = false;
		gflags[0172] = true;
		var0003 = UI_get_party_list2_AA();
		enum();
	labelFunc093A_02E1:
		for (var0008 in var0003 with var0006 to var0007 atend labelFunc093A_02F9);
		UI_set_schedule_type_25(var0008, 0x001F);
		goto labelFunc093A_02E1;
	labelFunc093A_02F9:
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		var0003 = (UI_find_nearby_41(item, 0x01B0, 0x000A, 0x0000) & UI_find_nearby_41(item, 0x010E, 0x000A, 0x0000));
		enum();
	labelFunc093A_0328:
		for (var0008 in var0003 with var0009 to var000A atend labelFunc093A_034D);
		if(!(UI_get_item_quality_1C(var0008) == 0x00B3)) goto labelFunc093A_034A;
		Func0907(var0008, 0x0002);
	labelFunc093A_034A:
		goto labelFunc093A_0328;
	labelFunc093A_034D:
		abrt();
	labelFunc093A_034E:
		goto labelFunc093A_1406;
	labelFunc093A_0351:
		if(!(var0000 == 0x0057)) goto labelFunc093A_04BF;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"Both sides have stated their facts, and called their witnesses. Let it not be said that there is no justice in Fawn!\"");
		UcSay;
		var0003 = Func08AC(false);
		UcMessage("\"Now, before the face of Beauty, I call for a verdict upon ");
		UcMessage(var0003);
		UcMessage("!\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x27, 0x0001, 0x6C, 0x27, 0x0002, 0x61, 0x52, "@All rise and face the Oracle!", 0x27, 0x0001, 0x59, 0x0000]);
		var0008 = UI_get_party_list2_AA();
		enum();
	labelFunc093A_03B4:
		for (var0004 in var0008 with var000B to var000C atend labelFunc093A_03E7);
		var0003 = (0x0007 + UI_get_random_00(0x0003));
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x59, 0x0000], var0003);
		goto labelFunc093A_03B4;
	labelFunc093A_03E7:
		var0008 = [0xFFC6, 0xFFD1, 0xFFD0, Jendon];
		enum();
	labelFunc093A_03FA:
		for (var0004 in var0008 with var000D to var000E atend labelFunc093A_0433);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0001, 0x59, 0x0000], (0x0007 + UI_get_random_00(0x0005)));
		goto labelFunc093A_03FA;
	labelFunc093A_0433:
		var0008 = [0xFFCF, 0xFFCE];
		enum();
	labelFunc093A_0440:
		for (var0004 in var0008 with var000F to var0010 atend labelFunc093A_0479);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0001, 0x59, 0x0006], (0x0007 + UI_get_random_00(0x0005)));
		goto labelFunc093A_0440;
	labelFunc093A_0479:
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x59, 0x0002, 0x61], 0x0005);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC3, [0x23, 0x59, 0x0000, 0x61], 0x0007);
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x0014);
		abrt();
	labelFunc093A_04BF:
		if(!(var0000 == 0x0058)) goto labelFunc093A_0622;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEFB, 0x0000);
		var0003 = Func08AC(false);
		if(!gflags[016E]) goto labelFunc093A_04FE;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" is innocent! ");
		UcMessage(var0001);
		UcMessage(" and ");
		UcMessage(var0002);
		UcMessage(" companions have no wish to destroy Beauty!\"");
		UcSay;
		UcMessage("\"Free them at once!\"");
		UcSay;
	labelFunc093A_04FE:
		if(!gflags[016F]) goto labelFunc093A_0512;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" is innocent! Set him and his companions free!\"");
		UcSay;
		UcMessage("\"The true criminals are Priestess Kylista and Great Captain Voldin, who have conspired to convict this innocent man!\"");
		UcSay;
	labelFunc093A_0512:
		if(!((!gflags[016F]) && (!gflags[016E]))) goto labelFunc093A_05F6;
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" is guilty of associating with Daemons to destroy our Beauty! The fiend, ");
		UcMessage(var0001);
		UcMessage(", is also guilty!\"");
		UcSay;
		UcMessage("\"Such offense to Beauty cannot go unpunished... The stain of their presence must be washed away with their blood.\"");
		UcSay;
		Func097F(0xFFC3, "@It cries for their blood...@", 0x0000);
		Func097F(0xFFCF, "@Stone them!@", 0x0003);
		Func097F(Jendon, "@Behead the fiends!@", 0x0005);
		Func097F(Func08AC(true), "@What shall we do?@", 0x0001);
		Func097F(0xFFC9, "@Oh, my...@", 0x0005);
		UI_end_conversation_86();
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_05F3;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		UI_move_object_4B(0xFFD2, var0005);
		UI_si_path_run_usecode_C1(0xFFD2, [0x0408, 0x0670, 0x0000], 0x000D, UI_get_npc_object_23(0xFFD2), 0x07F8, false);
	labelFunc093A_05F3:
		goto labelFunc093A_0621;
	labelFunc093A_05F6:
		UI_end_conversation_86();
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0062);
		var0003 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x55, 0x07F8]);
	labelFunc093A_0621:
		abrt();
	labelFunc093A_0622:
		if(!(var0000 == 0x0059)) goto labelFunc093A_078C;
		UI_clear_item_say_4E(0xFFD2);
		Func097F(0xFFD2, "@Stop the proceedings!@", 0x0000);
		UI_set_schedule_type_25(0xFFD2, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFD2, [0x23, 0x70, 0x27, 0x0002, 0x6F, 0x27, 0x0002, 0x61]);
		var0008 = UI_get_party_list2_AA();
		enum();
	labelFunc093A_0670:
		for (var0004 in var0008 with var0011 to var0012 atend labelFunc093A_069B);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0004], (0x0002 + UI_get_random_00(0x0003)));
		goto labelFunc093A_0670;
	labelFunc093A_069B:
		var0008 = [0xFFC6, 0xFFD1, 0xFFD0, 0xFFCF, 0xFFCE, Jendon];
		enum();
	labelFunc093A_06B4:
		for (var0004 in var0008 with var0013 to var0014 atend labelFunc093A_06E3);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x6C, 0x61, 0x59, 0x0006], (0x0004 + UI_get_random_00(0x0004)));
		goto labelFunc093A_06B4;
	labelFunc093A_06E3:
		var0008 = [0xFFC9, 0xFFC3];
		enum();
	labelFunc093A_06F0:
		for (var0004 in var0008 with var0015 to var0016 atend labelFunc093A_071B);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0002], (0x0003 + UI_get_random_00(0x0003)));
		goto labelFunc093A_06F0;
	labelFunc093A_071B:
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_078B;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_move_object_4B(0xFFCB, var0005);
		UI_si_path_run_usecode_C1(0xFFCB, [0x0406, 0x0670, 0x0000], 0x000D, UI_get_npc_object_23(0xFFCB), 0x07F8, false);
	labelFunc093A_078B:
		abrt();
	labelFunc093A_078C:
		if(!(var0000 == 0x005A)) goto labelFunc093A_08D9;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFD2, 0x0000);
		UcMessage("\"We have found the real traitors!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"What is this all about, Captain Jorvin?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Now we know the truth about this town...\"");
		UcSay;
		UI_show_npc_face1_06(0xFFCB, 0x0000);
		UcMessage("\"I have grave news, dearest Lady. There have been foul deeds done in this Temple!\"");
		UcSay;
		UI_clear_item_say_4E(0xFFCB);
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_07FA;
		UcMessage("\"Acting upon information supplied by Alyssand, I did enter a secret room within this building. Here, I discovered Priestess Kylista manipulating some form of machine.\"");
		UcSay;
		Func097F(0xFFCB, "@Guards, send in the traitor!@", 0x0000);
		goto labelFunc093A_080A;
	labelFunc093A_07FA:
		UcMessage("\"Acting upon information supplied by Alyssand, I did enter a secret room within this building. Here, I discovered Priestess Kylista and Great Captain Voldin manipulating some form of machine.\"");
		UcSay;
		Func097F(0xFFCB, "@Guards, send in the traitors!@", 0x0000);
	labelFunc093A_080A:
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFCB, [0x27, 0x0001, 0x59, 0x0002]);
		var0003 = UI_execute_usecode_array_01(0xFFD2, [0x27, 0x0003, 0x59, 0x0000]);
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_08B8;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_move_object_4B(Kylista, var0005);
		UI_si_path_run_usecode_C1(Kylista, [0x0408, 0x0672, 0x0000], 0x000D, UI_get_npc_object_23(Kylista), 0x07F8, false);
		Func097F(Kylista, "@Don't shove me!@", 0x0007);
	labelFunc093A_08B8:
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_08D8;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x005C);
	labelFunc093A_08D8:
		abrt();
	labelFunc093A_08D9:
		if(!(var0000 == 0x005B)) goto labelFunc093A_0960;
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_095F;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_move_object_4B(0xFFCD, var0005);
		UI_si_path_run_usecode_C1(0xFFCD, [0x0406, 0x0672, 0x0000], 0x000D, UI_get_npc_object_23(0xFFCD), 0x07F8, false);
		Func097F(0xFFCD, "@Save us, Lady Yelinda!@", 0x0002);
	labelFunc093A_095F:
		abrt();
	labelFunc093A_0960:
		if(!(var0000 == 0x005C)) goto labelFunc093A_0A16;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFD2, 0x0000);
		UcMessage("\"Voldin and Kylista have played us all for fools! And we have followed blindly along...\"");
		UcSay;
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_0996;
		UI_show_npc_face1_06(Kylista, 0x0000);
		goto labelFunc093A_09A0;
	labelFunc093A_0996:
		UI_show_npc_face1_06(0xFFCD, 0x0000);
	labelFunc093A_09A0:
		UcMessage("\"Silence, chit! What dost thou know of these matters?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I am certain that heaven built the levers in the secret room! Kylista, hath it been a great boon to thee, being a mouthpiece of the heavens?\"");
		UcSay;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"Delin, take thy daughter in hand! She speaks out of turn.\"");
		UcSay;
		UcMessage("\"As for the levers -- why, they are prayer levers, by which I commune with Beauty! They are sacred, not to be profaned by doubters such as Alyssand.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFD2, 0x0000);
		UcMessage("\"Then the outcome of the trial would not change, say, if I moved those prayer levers...?\"");
		UcSay;
		UcMessage("\"Lady Yelinda, wouldst thou please call once again upon the Oracle, for its decision?\"");
		UcSay;
		UI_end_conversation_86();
		UI_clear_item_say_4E(Kylista);
		Func097F(Kylista, "@It hath already spoken!@", 0x0000);
		Func097F(0xFFD2, "@See what it says now!@", 0x0002);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x55, 0x07F8], 0x000A);
		abrt();
	labelFunc093A_0A16:
		if(!(var0000 == 0x005D)) goto labelFunc093A_0B66;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"What can it hurt, Kylista, to speak again to the great Oracle?\"");
		UcSay;
		var0003 = Func08AC(false);
		UcMessage("\"Again, before the face of Beauty, I call for a verdict upon ");
		UcMessage(var0003);
		UcMessage("!\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@All rise and face the Oracle!", 0x27, 0x0001, 0x59, 0x0000]);
		var0008 = UI_get_party_list2_AA();
		enum();
	labelFunc093A_0A6B:
		for (var0004 in var0008 with var0017 to var0018 atend labelFunc093A_0A9E);
		var0003 = (0x0007 + UI_get_random_00(0x0003));
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x23, 0x59, 0x0000], var0003);
		goto labelFunc093A_0A6B;
	labelFunc093A_0A9E:
		var0008 = [0xFFC6, 0xFFD1, 0xFFD0, Jendon, 0xFFCD, Kylista, 0xFFD2, 0xFFCB];
		enum();
	labelFunc093A_0ABD:
		for (var0004 in var0008 with var0019 to var001A atend labelFunc093A_0AE8);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0000], (0x0007 + UI_get_random_00(0x0005)));
		goto labelFunc093A_0ABD;
	labelFunc093A_0AE8:
		var0008 = [0xFFCF, 0xFFCE];
		enum();
	labelFunc093A_0AF5:
		for (var0004 in var0008 with var001B to var001C atend labelFunc093A_0B20);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0006], (0x0007 + UI_get_random_00(0x0005)));
		goto labelFunc093A_0AF5;
	labelFunc093A_0B20:
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x59, 0x0002, 0x61], 0x0005);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC3, [0x23, 0x59, 0x0000, 0x61], 0x0007);
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x0014);
		abrt();
	labelFunc093A_0B66:
		if(!(var0000 == 0x005E)) goto labelFunc093A_0C4D;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFEFB, 0x0000);
		UcMessage("\"Kylista and Voldin have defiled these proceedings! False evidence hath been offered! This trial is a farce!\"");
		UcSay;
		var0003 = Func08AC(false);
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(" is innocent! Set ");
		UcMessage(var0003);
		UcMessage(" and his companions free!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"What doth this mean? The verdict hath changed...\"");
		UcSay;
		UI_remove_npc_face0_07();
		UI_remove_npc_face1_08();
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		UcMessage("\"This means, dearest Lady, that the Oracle will proclaim any result which the secret levers request. I saw Alyssand instruct the Oracle to give this verdict, with my very own eyes!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_0BDB;
		UcMessage("\"We are betrayed! Take Kylista from my sight! I shall deal with her perfidy later...\"");
		UcSay;
		goto labelFunc093A_0BDF;
	labelFunc093A_0BDB:
		UcMessage("\"We are betrayed! Take them from my sight! I shall deal with their perfidy later...\"");
		UcSay;
	labelFunc093A_0BDF:
		UI_end_conversation_86();
		Func097F(0xFFCB, "@Come with me...@", 0x0000);
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_0C4C;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_si_path_run_usecode_C1(0xFFCB, var0005, 0x000D, UI_get_npc_object_23(0xFFCB), 0x07F8, false);
	labelFunc093A_0C4C:
		abrt();
	labelFunc093A_0C4D:
		if(!(var0000 == 0x005F)) goto labelFunc093A_0CEA;
		UI_move_object_4B(0xFFCB, [0x0000, 0x0000, 0x0000]);
		UI_set_schedule_type_25(0xFFCB, 0x000F);
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_0CE9;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000B);
		UI_si_path_run_usecode_C1(Kylista, var0005, 0x000D, UI_get_npc_object_23(Kylista), 0x07F8, false);
		Func097F(Kylista, "@Vengeance shall be mine!@", 0x0000);
		Func097F(0xFFD2, "@Truth shall prevail!@", 0x0004);
	labelFunc093A_0CE9:
		abrt();
	labelFunc093A_0CEA:
		if(!(var0000 == 0x0060)) goto labelFunc093A_0DA4;
		Func09AC(Kylista, 0x03DC, 0x0616, 0x0007);
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_0D3A;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0062);
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x07F8]);
		goto labelFunc093A_0DA3;
	labelFunc093A_0D3A:
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_0DA3;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_si_path_run_usecode_C1(0xFFCD, var0005, 0x000D, UI_get_npc_object_23(0xFFCD), 0x07F8, false);
		Func097F(0xFFCD, "@She lied to me...@", 0x0000);
	labelFunc093A_0DA3:
		abrt();
	labelFunc093A_0DA4:
		if(!(var0000 == 0x0061)) goto labelFunc093A_0DD1;
		Func09AC(0xFFCD, 0x03DC, 0x0617, 0x0007);
		var0003 = UI_execute_usecode_array_01(0xFE9C, [0x23, 0x55, 0x07F8]);
	labelFunc093A_0DD1:
		if(!(var0000 == 0x0062)) goto labelFunc093A_0ED2;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		var0003 = Func08AC(false);
		UcMessage("\"");
		UcMessage(var0003);
		UcMessage(", we have wronged thee. There is nothing I can do to erase our shame, but I would be pleased if thou wouldst accept a token of our regret.\"");
		UcSay;
		UcMessage("\"Here is the Crystal Rose of Love...\"");
		UcSay;
		var0003 = Func08AC(true);
		var0003 = Func099B(var0003, 0x0001, 0x0289, 0xFE99, 0x0003, 0x0000, true);
		Func095D(0x0190);
		if(!gflags[016F]) goto labelFunc093A_0EB9;
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_0EB1;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
		UI_move_object_4B(0xFFD2, var0005);
		var0005[0x0002] = (var0005[0x0002] - 0x0008);
		UI_si_path_run_usecode_C1(0xFFD2, var0005, 0x000D, UI_get_npc_object_23(0xFFD2), 0x07F8, false);
	labelFunc093A_0EB1:
		UI_end_conversation_86();
		abrt();
		goto labelFunc093A_0ED2;
	labelFunc093A_0EB9:
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0066);
		var0000 = 0x0065;
	labelFunc093A_0ED2:
		if(!(var0000 == 0x0063)) goto labelFunc093A_103C;
		UI_clear_item_say_4E(0xFFD2);
		Func097F(0xFFD2, "@Good news!@", 0x0000);
		UI_set_schedule_type_25(0xFFD2, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFD2, [0x23, 0x70, 0x27, 0x0002, 0x6F, 0x27, 0x0002, 0x61]);
		var0008 = UI_get_party_list2_AA();
		enum();
	labelFunc093A_0F20:
		for (var0004 in var0008 with var001D to var001E atend labelFunc093A_0F4B);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0004], (0x0002 + UI_get_random_00(0x0003)));
		goto labelFunc093A_0F20;
	labelFunc093A_0F4B:
		var0008 = [0xFFC6, 0xFFD1, 0xFFD0, 0xFFCF, 0xFFCE, Jendon];
		enum();
	labelFunc093A_0F64:
		for (var0004 in var0008 with var001F to var0020 atend labelFunc093A_0F93);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x6C, 0x61, 0x59, 0x0006], (0x0004 + UI_get_random_00(0x0004)));
		goto labelFunc093A_0F64;
	labelFunc093A_0F93:
		var0008 = [0xFFC9, 0xFFC3];
		enum();
	labelFunc093A_0FA0:
		for (var0004 in var0008 with var0021 to var0022 atend labelFunc093A_0FCB);
		var0003 = UI_delayed_execute_usecode_array_02(var0004, [0x59, 0x0002], (0x0003 + UI_get_random_00(0x0003)));
		goto labelFunc093A_0FA0;
	labelFunc093A_0FCB:
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_103B;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x000A);
		UI_move_object_4B(0xFFCB, var0005);
		UI_si_path_run_usecode_C1(0xFFCB, [0x0406, 0x0670, 0x0000], 0x000D, UI_get_npc_object_23(0xFFCB), 0x07F8, false);
	labelFunc093A_103B:
		abrt();
	labelFunc093A_103C:
		if(!(var0000 == 0x0064)) goto labelFunc093A_1117;
		UI_set_schedule_type_25(0xFFCB, 0x000F);
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_1072;
		UcMessage("\"We have captured the falsehearted traitor, Lady Yelinda! Kylista is in chains, and Great Captain Voldin hath been found dead...\"");
		UcSay;
		goto labelFunc093A_1076;
	labelFunc093A_1072:
		UcMessage("\"We have captured the falsehearted traitors, Lady Yelinda! Kylista and Voldin are in chains.\"");
		UcSay;
	labelFunc093A_1076:
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		UcMessage("\"Thou hast acted correctly, Jorvin -- the Oracle hath just denounced them...\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"The Priestess of Beauty hath confessed to me that she and Great Captain Voldin were united in an evil conspiracy.\"");
		UcSay;
		UcMessage("\"By use of secret levers, they dared to control the utterings of the sacred Oracle! Only by the actions of the brave ");
		UcMessage(var0001);
		UcMessage(" hath the Oracle been freed to utter the truth!\"");
		UcSay;
		UI_show_npc_face1_06(0xFFD2, 0x0000);
		UcMessage("\"Who knows how long this deception hath been practiced! Have the citizens of Fawn always been the victims of the Great Captains and the Priestess?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I did mistrust thy words previously, Alyssand, but now that Kylista hath confessed... I know not what to believe.\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC9, 0x0000);
		if(!UI_get_item_flag_A3(0xFFCD, 0x0004)) goto labelFunc093A_10DC;
		UcMessage("\"Such perfidy makes my blood run cold. Have the Priestess jailed until I decide what fate she deserves!\"");
		UcSay;
		UcMessage("\"As for Voldin's death -- that saves me the trouble of having him executed. Praise the deed!\"");
		UcSay;
		goto labelFunc093A_10EF;
	labelFunc093A_10DC:
		UcMessage("\"Such perfidy makes my blood run cold. Have the traitors jailed until I decide what fate they deserve!\"");
		UcSay;
		Func09AC(0xFFCD, 0x03DC, 0x0617, 0x0007);
	labelFunc093A_10EF:
		var0003 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x55, 0x07F8]);
		UI_end_conversation_86();
		Func09AC(Kylista, 0x03DC, 0x0616, 0x0007);
		abrt();
	labelFunc093A_1117:
		if(!(var0000 == 0x0065)) goto labelFunc093A_11C5;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		var0003 = Func08AC(false);
		UcMessage("\"I am sorry that we have delayed thee in thy quest, ");
		UcMessage(var0003);
		UcMessage(". Please forgive us.\"");
		UcSay;
		UcMessage("\"Thou mayest leave Fawn freely, and be assured of a warm welcome if thou shouldst return. Thou hast shown me that I have much to learn about being a ruler... And I thank thee.\"");
		UcSay;
		UcMessage("\"Guards, release ");
		UcMessage(var0003);
		UcMessage(".\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_11C4;
		var0004 = UI_find_nearby_41(var0003, 0x017D, 0x0003, 0x0008);
		if(!var0004) goto labelFunc093A_11C4;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(var0004, var0005, 0x000D, var0004, 0x07F8, false);
	labelFunc093A_11C4:
		abrt();
	labelFunc093A_11C5:
		if(!(var0000 == 0x0066)) goto labelFunc093A_11EC;
		var0003 = UI_execute_usecode_array_01(item, [0x59, 0x0000, 0x27, 0x0002, 0x6C, 0x55, 0x07F8]);
		abrt();
	labelFunc093A_11EC:
		if(!(var0000 == 0x0067)) goto labelFunc093A_12C7;
		var0003 = UI_find_nearby_41(item, 0x017A, 0x0005, 0x0000);
		enum();
	labelFunc093A_1208:
		for (var0008 in var0003 with var0023 to var0024 atend labelFunc093A_1232);
		if(!(UI_get_item_frame_1A(var0008) == 0x0005)) goto labelFunc093A_122F;
		UI_play_sound_effect_16(0x0075);
		UI_remove_item_84(var0008);
	labelFunc093A_122F:
		goto labelFunc093A_1208;
	labelFunc093A_1232:
		var0003 = UI_find_nearby_41(item, 0x017A, 0x0032, 0x0000);
		enum();
	labelFunc093A_1244:
		for (var0008 in var0003 with var0025 to var0026 atend labelFunc093A_1267);
		if(!(UI_get_item_frame_1A(var0008) == 0x0006)) goto labelFunc093A_1264;
		UI_remove_item_84(var0008);
	labelFunc093A_1264:
		goto labelFunc093A_1244;
	labelFunc093A_1267:
		var0003 = (UI_find_nearby_41(item, 0x01B1, 0x0032, 0x0000) & UI_find_nearby_41(item, 0x0178, 0x0032, 0x0000));
		enum();
	labelFunc093A_1288:
		for (var0008 in var0003 with var0027 to var0028 atend labelFunc093A_12AD);
		if(!(UI_get_item_quality_1C(var0008) == 0x0028)) goto labelFunc093A_12AA;
		Func0907(var0008, 0x0000);
	labelFunc093A_12AA:
		goto labelFunc093A_1288;
	labelFunc093A_12AD:
		var0003 = UI_execute_usecode_array_01(item, [0x6C, 0x27, 0x0002, 0x61, 0x55, 0x07F8]);
		abrt();
	labelFunc093A_12C7:
		if(!(var0000 == 0x0068)) goto labelFunc093A_1337;
		var0003 = (UI_get_object_position_20(0xFE9C) & (0x0001 & 0x0006));
		var0003 = UI_find_nearby_41(var0003, 0x0113, 0x000A, 0x0010);
		if(!var0003) goto labelFunc093A_1336;
		var0005 = UI_get_object_position_20(var0003);
		var0005[0x0001] = (var0005[0x0001] + 0x0003);
		var0005[0x0002] = (var0005[0x0002] + 0x0001);
		UI_si_path_run_usecode_C1(item, var0005, 0x000D, item, 0x07F8, false);
	labelFunc093A_1336:
		abrt();
	labelFunc093A_1337:
		if(!(var0000 == 0x0069)) goto labelFunc093A_1406;
		UI_clear_item_flag_A5(0xFE9C, 0x0010);
		UI_init_conversation_85();
		UI_set_schedule_type_25(item, 0x000A);
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@This trial is now dismissed!@"]);
		var0003 = [0xFFC6, 0xFFD1, 0xFFD0, Jendon, 0xFFCF, 0xFFCE, 0xFFC9, 0xFFC3, 0xFFCB, 0xFFD2];
		enum();
	labelFunc093A_138E:
		for (var0004 in var0003 with var0029 to var002A atend labelFunc093A_13E2);
		UI_run_schedule_B7(var0004);
		var0008 = UI_get_random_00(0x0008);
		var0005 = [0x23];
	labelFunc093A_13B2:
		if(!(var0008 > 0x0000)) goto labelFunc093A_13D2;
		var0005 = (var0005 & 0x61);
		var0008 = (var0008 - 0x0001);
		goto labelFunc093A_13B2;
	labelFunc093A_13D2:
		var0008 = UI_execute_usecode_array_01(var0004, var0005);
		goto labelFunc093A_138E;
	labelFunc093A_13E2:
		gflags[0173] = false;
		gflags[0174] = false;
		gflags[0175] = false;
		gflags[0170] = true;
		if(!gflags[016E]) goto labelFunc093A_1406;
		UI_run_schedule_B7(Kylista);
		UI_run_schedule_B7(0xFFCD);
	labelFunc093A_1406:
		return;
}
// externs
extern var Func0953 0x953 ();
extern var Func08AC 0x8AC (var var0000);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func08C6 0x8C6 ();
extern Func08C7 0x8C7 ();
extern var Func09A0 0x9A0 (var var0000, var var0001);
extern Func094F 0x94F (var var0000, var var0001);
extern var Func095B 0x95B (var var0000);
extern Func093C 0x93C (var var0000);
extern var Func0957 0x957 (var var0000);
extern Func08C5 0x8C5 ();

Func093B 0x93B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0001 = Func0953();
	var0002 = Func08AC(false);
	if(!(var0000 == 0x0014)) goto labelFunc093B_010F;
	if(!gflags[0170]) goto labelFunc093B_00B6;
	UI_init_conversation_85();
	UI_show_npc_face0_05(Kylista, 0x0000);
	UcMessage("\"Let it be known that ");
	UcMessage(var0002);
	UcMessage(", companion of ");
	UcMessage(var0001);
	UcMessage(", doth stand accused of treason!\"");
	UcSay;
	UcMessage("\"In blatant disregard for the law, ");
	UcMessage(var0002);
	UcMessage(" hath sought to incite rebellion against Lady Yelinda.\"");
	UcSay;
	UcMessage("\"Worse yet, he doth admit allegiance to that archfiend, Beast British!\"");
	UcSay;
	UI_end_conversation_86();
	var0003 = UI_execute_usecode_array_01(Kylista, [0x27, 0x0002, 0x59, 0x0006]);
	var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x000F);
	Func097F(0xFFD1, "@Not the Beast!@", 0x0000);
	Func097F(0xFFC6, "@Execute him!@", 0x0003);
	Func097F(0xFFCD, "@Blasphemy!@", 0x0005);
	Func097F(0xFFC8, "@The lord of Britannia?@", 0x0002);
	Func097F(0xFFC3, "@Cleanse the Temple!@", 0x0004);
	goto labelFunc093B_010E;
	labelFunc093B_00B6:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"Where is the Priestess of Beauty? And where is Great Captain Voldin?\"");
		UcSay;
		UI_show_npc_face1_06(0xFFC3, 0x0000);
		UcMessage("\"Um... I am not sure, thy Ladyship. Nor is Jorvin to be found.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"It is most improper that neither Voldin nor Kylista are here... But I shall not have justice detained.\"");
		UcSay;
		UcMessage("\"I shall continue in Kylista's place...\"");
		UcSay;
		UI_end_conversation_86();
		UI_si_path_run_usecode_C1(0xFFC9, [0x03FE, 0x0666, 0x0006], 0x000D, UI_get_npc_object_23(0xFFC9), 0x07F8, false);
	labelFunc093B_010E:
		abrt();
	labelFunc093B_010F:
		if(!(var0000 == 0x0015)) goto labelFunc093B_0192;
		if(!gflags[0170]) goto labelFunc093B_0162;
		UI_init_conversation_85();
		UI_show_npc_face0_05(Kylista, 0x0000);
		UcMessage("\"Lady Yelinda, as thou dost rule this city, dost thou wish to conduct the questioning?\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x6C, 0x27, 0x0002, 0x61, 0x52, "@No...@", 0x27, 0x0007, 0x55, 0x07F8], 0x0002);
		goto labelFunc093B_0191;
	labelFunc093B_0162:
		UI_set_schedule_type_25(item, 0x000F);
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x23, 0x52, "@Hail the Lady!@", 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x55, 0x07F8]);
	labelFunc093B_0191:
		abrt();
	labelFunc093B_0192:
		if(!(var0000 == 0x0016)) goto labelFunc093B_02DA;
		if(!gflags[0170]) goto labelFunc093B_0255;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"I fear that the witnesses might be tempted to spare my sensibilities, instead of reciting the bare facts.\"");
		UcSay;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"Wouldst thou wish one of thy Councillors to act in thy stead?\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"Let it be so! As most senior of my Councillors, Voldin always doth have my best interests at heart.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x6C, 0x6B]);
		var0003 = UI_execute_usecode_array_01(Kylista, [0x27, 0x0002, 0x59, 0x0000, 0x01, 0x62, 0x27, 0x0002, 0x01, 0x61]);
		Func08C6();
		Func097F(Kylista, "@Dost thou accept?@", 0x0000);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x23, 0x6C, 0x61, 0x52, "@Yes.@", 0x27, 0x0001, 0x6C, 0x27, 0x0001, 0x6D, 0x27, 0x0001, 0x6C, 0x61, 0x55, 0x07F8], 0x000A);
		goto labelFunc093B_02D9;
	labelFunc093B_0255:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		UcMessage("\"All hail the Lady Yelinda, who hath condescended to conduct this portion of the trial in person.\"");
		UcSay;
		UI_end_conversation_86();
		Func08C6();
		Func097F(0xFFCF, "@To the Lady!@", 0x0002);
		Func097F(Jendon, "@All hail!@", 0x0000);
		Func097F(0xFFD1, "@Hail the Lady!@", 0x0005);
		Func097F(0xFFD0, "@Oh great Lady!@", 0x0009);
		Func097F(0xFFC6, "@Whatever...!@", 0x000F);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x6F, 0x27, 0x0002, 0x70, 0x27, 0x0002, 0x0B, 0xFFFA, 0x0002, 0x61, 0x55, 0x07F8], 0x0014);
	labelFunc093B_02D9:
		abrt();
	labelFunc093B_02DA:
		if(!(var0000 == 0x0017)) goto labelFunc093B_03BD;
		if(!gflags[0170]) goto labelFunc093B_0363;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"It would be my pleasure to act on the Lady's behalf.\"");
		UcSay;
		UI_show_npc_face1_06(Kylista, 0x0000);
		UcMessage("\"We shall now hear the evidence against the traitor.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(Kylista, [0x27, 0x0002, 0x59, 0x0006, 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x6B]);
		Func08C7();
		var0003 = UI_execute_usecode_array_01(0xFFCB, [0x52, "@A moment...@", 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0002, 0x55, 0x07F8]);
		goto labelFunc093B_03BC;
	labelFunc093B_0363:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC9, 0x0000);
		UcMessage("\"");
		UcMessage(var0002);
		UcMessage("'s representative, ");
		UcMessage(var0001);
		UcMessage(", shall now present the facts to defend his friend.\"");
		UcSay;
		UcMessage("\"");
		UcMessage(var0001);
		UcMessage(", thou mayest call upon any citizen present in the Temple, and mayest ask any questions pertinent to this case.\"");
		UcSay;
		UI_end_conversation_86();
		Func08C7();
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@Pardon, Lady...@", 0x27, 0x0002, 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0002, 0x55, 0x07F8]);
	labelFunc093B_03BC:
		abrt();
	labelFunc093B_03BD:
		if(!(var0000 == 0x0018)) goto labelFunc093B_04F8;
		if(!gflags[0170]) goto labelFunc093B_0486;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCB, 0x0000);
		UcMessage("\"For the purpose of this trial, it hath been necessary to admit certain disreputable characters into the city --\"");
		UcSay;
		UcMessage("\"Namely, those who belong to the organization called The Fellowship, which doth dare to preach contrary to Beauty.\"");
		UcSay;
		UcMessage("\"I would remind our Fellowship guests that they are here on sufferance, and that they should mind their manners.\"");
		UcSay;
		UI_play_music_39(0x001A, Func09A0(0x0005, 0x0001));
		UI_show_npc_face1_06(0xFFC8, 0x0000);
		UcMessage("\"We shall behave ourselves, milord. The Fellowship is an enlightened brotherhood, not a group to be feared.\"");
		UcSay;
		UI_remove_npc_face1_08();
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"We shall see...\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_delayed_execute_usecode_array_02(0xFFCB, [0x23, 0x6C, 0x27, 0x0002, 0x6B], 0x0004);
		var0004 = (UI_get_object_position_20(0xFFCD) & (0x0003 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x001E, 0x0010);
		if(!var0005) goto labelFunc093B_0480;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(0xFFCD, var0006, 0x000D, UI_get_npc_object_23(0xFFCD), 0x07F8, false);
	labelFunc093B_0480:
		Func08C6();
		goto labelFunc093B_04F7;
	labelFunc093B_0486:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		UcMessage("\"Excuse me, Great Lady, but I must address a point of order.\"");
		UcSay;
		UcMessage("\"Since The Fellowship troublemakers were so disagreeable in our earlier meeting, they have been excluded from this session of the trial.\"");
		UcSay;
		UI_end_conversation_86();
		Func097F(0xFFC3, "@Avatar...@", 0x0002);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x55, 0x07F8], 0x0007);
		gflags[0176] = false;
		gflags[0177] = false;
		gflags[0178] = false;
		gflags[0179] = false;
		gflags[017A] = false;
		gflags[017B] = false;
		gflags[017C] = false;
		gflags[017D] = false;
		gflags[017E] = false;
		gflags[017F] = false;
		gflags[0180] = false;
		gflags[0181] = false;
		gflags[0182] = false;
	labelFunc093B_04F7:
		abrt();
	labelFunc093B_04F8:
		if(!(var0000 == 0x0019)) goto labelFunc093B_054B;
		if(!gflags[0170]) goto labelFunc093B_0521;
		var0003 = UI_execute_usecode_array_01(0xFFCD, [0x23, 0x64, 0x59, 0x0004]);
		goto labelFunc093B_0537;
	labelFunc093B_0521:
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x23, 0x52, "@Avatar...@", 0x64]);
	labelFunc093B_0537:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07F8], 0x0006);
		abrt();
	labelFunc093B_054B:
		if(!(var0000 == 0x001A)) goto labelFunc093B_0BD1;
		if(!gflags[0170]) goto labelFunc093B_0562;
		var0007 = false;
		goto labelFunc093B_0568;
	labelFunc093B_0562:
		var0007 = [];
	labelFunc093B_0568:
		if(!(!gflags[0181])) goto labelFunc093B_0604;
		if(!(gflags[0170] && (((((((((((gflags[0176] + gflags[0177]) + gflags[0178]) + gflags[0179]) + gflags[017A]) + gflags[017C]) + gflags[017D]) + gflags[017E]) + gflags[017F]) + gflags[0180]) + gflags[0182]) > 0x0003))) goto labelFunc093B_05F4;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"I call the Lady Yelinda to witness before the Oracle.\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x52, "@Now wait, Voldin!@", 0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x55, 0x07FB]);
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0034);
		abrt();
	labelFunc093B_05F4:
		if(!gflags[0172]) goto labelFunc093B_0604;
		var0007 = (var0007 & 0xFFC9);
	labelFunc093B_0604:
		if(!(!gflags[017E])) goto labelFunc093B_0696;
		if(!(gflags[0170] && ((((((((((((gflags[0176] + gflags[0177]) + gflags[0178]) + gflags[0179]) + gflags[017A]) + gflags[017C]) + gflags[017D]) + gflags[017E]) + gflags[017F]) + gflags[0180]) + gflags[0181]) + gflags[0182]) > 0x0001))) goto labelFunc093B_0686;
		var0008 = ["@I have had enough!@", "@I'm off fer a drink.@"];
		Func094F(0xFFC6, var0008);
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002E);
		var0003 = UI_execute_usecode_array_01(0xFFC6, [0x23, 0x6C, 0x61, 0x55, 0x07FB]);
		abrt();
	labelFunc093B_0686:
		if(!gflags[0172]) goto labelFunc093B_0696;
		var0007 = (var0007 & 0xFFC6);
	labelFunc093B_0696:
		if(!(!gflags[0182])) goto labelFunc093B_06C4;
		if(!(gflags[0170] && UI_get_item_flag_A3(0xFFC3, 0x001C))) goto labelFunc093B_06B4;
		var0007 = 0xFFC3;
	labelFunc093B_06B4:
		if(!gflags[0172]) goto labelFunc093B_06C4;
		var0007 = (var0007 & 0xFFC3);
	labelFunc093B_06C4:
		if(!((!gflags[0180]) && (UI_get_item_flag_A3(0xFFC4, 0x001C) && ((!UI_get_item_flag_A3(0xFFC4, 0x0004)) && gflags[0170])))) goto labelFunc093B_06EC;
		var0007 = 0xFFC4;
	labelFunc093B_06EC:
		if(!((!gflags[0176]) && UI_get_item_flag_A3(0xFFD2, 0x001C))) goto labelFunc093B_070A;
		if(!gflags[0170]) goto labelFunc093B_070A;
		var0007 = 0xFFD2;
	labelFunc093B_070A:
		if(!(!gflags[0179])) goto labelFunc093B_0738;
		if(!(gflags[0170] && UI_get_item_flag_A3(Jendon, 0x001C))) goto labelFunc093B_0728;
		var0007 = Jendon;
	labelFunc093B_0728:
		if(!gflags[0172]) goto labelFunc093B_0738;
		var0007 = (var0007 & Jendon);
	labelFunc093B_0738:
		if(!((!gflags[017A]) && (gflags[0170] && UI_get_item_flag_A3(0xFFCB, 0x001C)))) goto labelFunc093B_0754;
		var0007 = 0xFFCB;
	labelFunc093B_0754:
		if(!((!gflags[017C]) && (UI_get_item_flag_A3(Kylista, 0x001C) && gflags[0170]))) goto labelFunc093B_0770;
		var0007 = Kylista;
	labelFunc093B_0770:
		if(!(!gflags[017F])) goto labelFunc093B_07AA;
		if(!(gflags[0170] && (UI_get_item_flag_A3(0xFFC5, 0x001C) && (!UI_get_item_flag_A3(0xFFC5, 0x0004))))) goto labelFunc093B_079A;
		var0007 = 0xFFC5;
	labelFunc093B_079A:
		if(!gflags[0172]) goto labelFunc093B_07AA;
		var0007 = (var0007 & 0xFFCF);
	labelFunc093B_07AA:
		if(!(!gflags[0177])) goto labelFunc093B_07D8;
		if(!(gflags[0170] && UI_get_item_flag_A3(0xFFD1, 0x001C))) goto labelFunc093B_07C8;
		var0007 = 0xFFD1;
	labelFunc093B_07C8:
		if(!gflags[0172]) goto labelFunc093B_07D8;
		var0007 = (var0007 & 0xFFD1);
	labelFunc093B_07D8:
		if(!(!gflags[017D])) goto labelFunc093B_0812;
		if(!(gflags[0170] && (UI_get_item_flag_A3(0xFFC8, 0x001C) && (!UI_get_item_flag_A3(0xFFC8, 0x0004))))) goto labelFunc093B_0802;
		var0007 = 0xFFC8;
	labelFunc093B_0802:
		if(!gflags[0172]) goto labelFunc093B_0812;
		var0007 = (var0007 & 0xFFCE);
	labelFunc093B_0812:
		if(!(!gflags[0178])) goto labelFunc093B_0840;
		if(!(gflags[0170] && UI_get_item_flag_A3(0xFFD0, 0x001C))) goto labelFunc093B_0830;
		var0007 = 0xFFD0;
	labelFunc093B_0830:
		if(!gflags[0172]) goto labelFunc093B_0840;
		var0007 = (var0007 & 0xFFD0);
	labelFunc093B_0840:
		if(!((!gflags[017B]) && var0007)) goto labelFunc093B_08CC;
		if(!(gflags[0170] && ((((((((((((gflags[0176] + gflags[0177]) + gflags[0178]) + gflags[0179]) + gflags[017A]) + gflags[017C]) + gflags[017D]) + gflags[017E]) + gflags[017F]) + gflags[0180]) + gflags[0181]) + gflags[0182]) > 0x0004))) goto labelFunc093B_08CC;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0022);
		var0003 = UI_execute_usecode_array_01(0xFFCD, [0x23, 0x61]);
		var0003 = UI_execute_usecode_array_01(0xFFC9, [0x23, 0x52, "@If I may...@", 0x6C, 0x27, 0x0001, 0x61, 0x55, 0x07FB]);
		abrt();
	labelFunc093B_08CC:
		if(!(var0007 && gflags[0170])) goto labelFunc093B_09BE;
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		var0009 = Func095B(var0007);
		UcMessage("\"I call ");
		UcMessage(var0009);
		UcMessage(" to witness before the Oracle.\"");
		UcSay;
		UI_end_conversation_86();
		Func093C(var0007);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x23, 0x61], 0x0005);
		if(!(var0007 == 0xFFD2)) goto labelFunc093B_092F;
		UI_play_music_39(0x0014, Func09A0(0x0005, 0x0001));
	labelFunc093B_092F:
		if(!(var0007 == 0xFFD1)) goto labelFunc093B_0949;
		UI_play_music_39(0x000C, Func09A0(0x0005, 0x0001));
	labelFunc093B_0949:
		if(!(var0007 == 0xFFCB)) goto labelFunc093B_095F;
		Func097F(0xFFCB, "@Yes, yes...@", 0x000A);
	labelFunc093B_095F:
		if(!(var0007 == Kylista)) goto labelFunc093B_0975;
		Func097F(Kylista, "@Really, Voldin!@", 0x000E);
	labelFunc093B_0975:
		if(!(var0007 == 0xFFC5)) goto labelFunc093B_09A7;
		Func097F(0xFFC9, "@He is so ugly...@", 0x000A);
		Func097F(0xFFD2, "@Oh, my...@", 0x000E);
		UI_play_music_39(0x000A, Func09A0(0x0005, 0x0001));
	labelFunc093B_09A7:
		if(!(var0007 == 0xFFC3)) goto labelFunc093B_09BD;
		Func097F(0xFFC3, "@What!@", 0x000A);
	labelFunc093B_09BD:
		abrt();
	labelFunc093B_09BE:
		if(!(gflags[0170] && (!var0007))) goto labelFunc093B_0A8D;
		UI_play_music_39(0x0013, Func09A0(0x0005, 0x0001));
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFCD, 0x0000);
		UcMessage("\"I have called my last witness, and have presented proof that ");
		UcMessage(var0002);
		UcMessage(" is guilty of the crimes with which he is charged.\"");
		UcSay;
		UcMessage("\"I yield the floor to Priestess Kylista...\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_execute_usecode_array_01(Kylista, [0x23, 0x52, "@Hear ye!@", 0x6C, 0x61, 0x70, 0x01, 0x58, 0x001E, 0x6F, 0x01, 0x58, 0x001E, 0x61, 0x01, 0x58, 0x001E]);
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0057);
		var0004 = (UI_get_object_position_20(0xFFCD) & (0x0006 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0028, 0x0010);
		if(!var0005) goto labelFunc093B_0A8C;
		var0006 = UI_get_object_position_20(var0005);
		UI_si_path_run_usecode_C1(0xFFCD, var0006, 0x000D, UI_get_npc_object_23(0xFFCD), 0x07F8, false);
	labelFunc093B_0A8C:
		abrt();
	labelFunc093B_0A8D:
		UI_init_conversation_85();
		UI_show_npc_face0_05(0xFFC3, 0x0000);
		if(!(gflags[0172] && var0007)) goto labelFunc093B_0B00;
		UcMessage("\"Whom wouldst thou care to call before the Oracle?\"");
		UcSay;
		var0009 = Func0957((UI_get_npc_name_30(var0007) & "no one"));
		var000A = UI_get_array_size_73(var0007);
		if(!(var0009 > UI_get_array_size_73(var0007))) goto labelFunc093B_0ADB;
		var0007 = [];
		goto labelFunc093B_0B00;
	labelFunc093B_0ADB:
		var0003 = UI_get_npc_name_30(var0007[var0009]);
		UcMessage("\"I call ");
		UcMessage(var0003);
		UcMessage(" to witness before the Oracle.\"");
		UcSay;
		Func093C(var0007[var0009]);
		UI_end_conversation_86();
		abrt();
	labelFunc093B_0B00:
		if(!(gflags[0172] && (!var0007))) goto labelFunc093B_0BD1;
		UI_play_music_39(0x0013, Func09A0(0x0005, 0x0001));
		var000B = (((((((((((gflags[0176] + gflags[0177]) + gflags[0178]) + gflags[0179]) + gflags[017A]) + gflags[017C]) + gflags[017D]) + gflags[017E]) + gflags[017F]) + gflags[0180]) + gflags[0181]) + gflags[0182]);
		if(!(var000B == 0x0000)) goto labelFunc093B_0B5B;
		UcMessage("\"Thou hast not even called one person... No doubt thy trust in the Oracle's perception will be rewarded.\"");
		UcSay;
	labelFunc093B_0B5B:
		if(!(var000B == 0x0001)) goto labelFunc093B_0B69;
		UcMessage("\"Thou hast called but one person... No doubt thy trust in the Oracle's perception will be rewarded.\"");
		UcSay;
	labelFunc093B_0B69:
		if(!((var000B == 0x0002) || (var000B == 0x0003))) goto labelFunc093B_0B7F;
		UcMessage("\"So few hast thou called... No doubt thy trust in the Oracle's perception will be rewarded.\"");
		UcSay;
	labelFunc093B_0B7F:
		UcMessage("\"I yield the floor to Her Graciousness, the Lady Yelinda...\"");
		UcSay;
		UI_end_conversation_86();
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0057);
		var0003 = UI_execute_usecode_array_01(0xFFC3, [0x23, 0x6C, 0x6B]);
		Func097F(0xFFC9, "@Hear ye!@", 0x0003);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFC9, [0x23, 0x55, 0x07F8], 0x000A);
		abrt();
	labelFunc093B_0BD1:
		if(!(var0000 == 0x001B)) goto labelFunc093B_0C2F;
		var0004 = (UI_get_object_position_20(item) & (0x0001 & 0x0006));
		var0005 = UI_find_nearby_41(var0004, 0x0113, 0x0014, 0x0010);
		if(!var0005) goto labelFunc093B_0C2E;
		var0006 = UI_get_object_position_20(var0005);
		var0006[0x0002] = (var0006[0x0002] + 0x0005);
		UI_si_path_run_usecode_C1(item, var0006, 0x000D, item, 0x07F8, false);
	labelFunc093B_0C2E:
		abrt();
	labelFunc093B_0C2F:
		if(!(var0000 == 0x001C)) goto labelFunc093B_0E39;
		if(!(item == UI_get_npc_object_23(0xFFD2))) goto labelFunc093B_0C58;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001E);
	labelFunc093B_0C58:
		if(!(item == UI_get_npc_object_23(0xFFD1))) goto labelFunc093B_0CA8;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x001F);
		if(!gflags[0170]) goto labelFunc093B_0CA8;
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, 0x0004, 0x61]);
		Func08C5();
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FB], 0x0005);
		abrt();
	labelFunc093B_0CA8:
		if(!(item == UI_get_npc_object_23(0xFFD0))) goto labelFunc093B_0CC7;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0026);
	labelFunc093B_0CC7:
		if(!(item == UI_get_npc_object_23(Jendon))) goto labelFunc093B_0CE6;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0027);
	labelFunc093B_0CE6:
		if(!(item == UI_get_npc_object_23(0xFFCB))) goto labelFunc093B_0D05;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0028);
	labelFunc093B_0D05:
		if(!(item == UI_get_npc_object_23(Kylista))) goto labelFunc093B_0D24;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0029);
	labelFunc093B_0D24:
		if(!((item == UI_get_npc_object_23(0xFFC8)) || (item == UI_get_npc_object_23(0xFFCE)))) goto labelFunc093B_0D4D;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002C);
	labelFunc093B_0D4D:
		if(!((item == UI_get_npc_object_23(0xFFC5)) || (item == UI_get_npc_object_23(0xFFCF)))) goto labelFunc093B_0D76;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002F);
	labelFunc093B_0D76:
		if(!(item == UI_get_npc_object_23(0xFFC4))) goto labelFunc093B_0D95;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0030);
	labelFunc093B_0D95:
		if(!(item == UI_get_npc_object_23(0xFFC6))) goto labelFunc093B_0DB4;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x002E);
	labelFunc093B_0DB4:
		if(!(item == UI_get_npc_object_23(0xFFC9))) goto labelFunc093B_0DD3;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0034);
	labelFunc093B_0DD3:
		if(!(item == UI_get_npc_object_23(0xFFC3))) goto labelFunc093B_0DF2;
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0033);
	labelFunc093B_0DF2:
		var0003 = UI_execute_usecode_array_01(item, [0x23, 0x59, 0x0000, 0x61]);
		Func08C5();
		if(!gflags[0170]) goto labelFunc093B_0E25;
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FB], 0x0005);
		goto labelFunc093B_0E38;
	labelFunc093B_0E25:
		var0003 = UI_delayed_execute_usecode_array_02(item, [0x55, 0x07FC], 0x0005);
	labelFunc093B_0E38:
		abrt();
	labelFunc093B_0E39:
		if(!(var0000 == 0x001D)) goto labelFunc093B_0EB9;
		var0006 = UI_get_object_position_20(item);
		if(!(var0006[0x0001] < 0x0407)) goto labelFunc093B_0E61;
		var000C = 0x0002;
		goto labelFunc093B_0E67;
	labelFunc093B_0E61:
		var000C = 0x0006;
	labelFunc093B_0E67:
		var0003 = UI_execute_usecode_array_01(item, [0x59, var000C, 0x27, 0x0003, 0x6C, 0x27, 0x0002, 0x6B]);
		Func08C6();
		UI_set_schedule_type_25(item, 0x000F);
		var0003 = UI_set_item_quality_1D(Func09A0(0x0001, 0x0001), 0x0019);
		var0003 = UI_delayed_execute_usecode_array_02(0xFFCD, [0x55, 0x07F8], 0x0005);
		abrt();
	labelFunc093B_0EB9:
		return;
}
Func093C 0x93C (var var0000)
{
	var var0001;
	var var0002;
	var var0003;

	var0001 = [", come forward!@", ", stand before the Oracle!@", ", step forward!@", ", please come forward.@", ", come on down!@", "...@"];
	var0002 = (("@" + UI_get_npc_name_30(var0000)) + var0001[UI_get_random_00(UI_get_array_size_73(var0001))]);
	var0003 = UI_execute_usecode_array_01(0xFFC3, [0x6C, 0x27, 0x0002, 0x61, 0x27, 0x0003, 0x52, var0002, 0x27, 0x0007, 0x6C, 0x27, 0x0002, 0x6B]);
	var0003 = UI_execute_usecode_array_01(var0000, [0x27, 0x000A, 0x6C, 0x27, 0x0003, 0x61]);
	var0003 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x07F8], 0x0012);
	return;
}
var Func093D 0x93D (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var rr;

	var0002 = [0x0108, 0x0116, 0x029F, 0x00C9, 0x00CB, 0x019F];
	var0003 = [0x0004, 0x0006, 0x0012, 0x0013, 0x0015, 0x0020];
	var0004 = UI_find_nearby_41(item, 0xFE99, var0000, 0x0000);
	enum();
	labelFunc093D_0042:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc093D_0077);
		var0008 = UI_get_item_shape_18(var0007);
		enum();
	labelFunc093D_0058:
		for (var000B in var0002 with var0009 to var000A atend labelFunc093D_0074);
		if(!(var000B == var0008)) goto labelFunc093D_0071;
		rr = var0007;
	labelFunc093D_0071:
		goto labelFunc093D_0058;
	labelFunc093D_0074:
		goto labelFunc093D_0042;
	labelFunc093D_0077:
		rr = 0x0000;
		return rr;
}
Func093E 0x93E (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0001 = [0x0108, 0x0116, 0x029F, 0x00C9, 0x00CB, 0x019F];
	var0002 = [0x0004, 0x0006, 0x0012, 0x0013, 0x0015, 0x0020];
	var0003 = UI_get_array_size_73(var0001);
	var0004 = UI_get_random_00(var0003);
	var0005 = UI_create_new_object_2C(var0001[var0004]);
	if(!var0005) goto labelFunc093E_0080;
	UI_set_item_flag_A4(var0005, 0x0012);
	UI_set_item_frame_1B(var0005, (UI_get_random_00(var0002[var0004]) - 0x0001));
	var0006 = UI_update_last_created_2F(var0000);
	labelFunc093E_0080:
		return;
}
Func093F 0x93F (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0001 = [0x0322, 0x0323, 0x010B, 0x03A9, 0x02B7, 0x0247, 0x02AA, 0x024B, 0x03E7, 0x0150, 0x03E5, 0x02E9, 0x03DF, 0x0353, 0x0179, 0x035F, 0x012C, 0x0222, 0x0179, 0x03B0, 0x0336, 0x033B];
	var0002 = [0x0002, 0x0002, 0x0004, 0x0005, 0x0001, 0x0001, 0x0013, 0x0005, 0x000A, 0x000F, 0x0011, 0x0001, 0x0001, 0x000B, 0x001C, 0x0013, 0x0020, 0x000C, 0x0014, 0x0008, 0x0002, 0x0005];
	var0003 = UI_get_array_size_73(var0001);
	var0004 = UI_get_random_00(var0003);
	var0005 = UI_create_new_object_2C(var0001[var0004]);
	if(!var0005) goto labelFunc093F_00E0;
	UI_set_item_flag_A4(var0005, 0x0012);
	UI_set_item_frame_1B(var0005, (UI_get_random_00(var0002[var0004]) - 0x0001));
	var0006 = UI_update_last_created_2F(var0000);
	labelFunc093F_00E0:
		return;
}
var Func0940 0x940 (var var0000, var var0001)
{
	var var0002;
	var rr;

	if(!(var0000 > 0x0000)) goto labelFunc0940_0050;
	var0002 = ((var0000 * 0x0002) + 0x0001);
	var0001[0x0001] = (var0001[0x0001] + ((UI_get_random_00(var0002) - 0x0001) - var0000));
	var0001[0x0002] = (var0001[0x0002] + ((UI_get_random_00(var0002) - 0x0001) - var0000));
	labelFunc0940_0050:
		rr = var0001;
		return rr;
}
var Func0941 0x941 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0001 = UI_get_npc_object_23(var0000);
	var0002 = (UI_get_npc_prop_28(var0001, 0x0008) / 0x0064);
	var0003 = 0x0001;
	labelFunc0941_0021:
		if(!(var0002 > 0x0000)) goto labelFunc0941_0042;
		var0003 = (var0003 + 0x0001);
		var0002 = (var0002 / 0x0002);
		goto labelFunc0941_0021;
	labelFunc0941_0042:
		rr = var0003;
		return rr;
}
var Func0942 0x942 (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = UI_get_npc_object_23(var0000);
	var0002 = UI_npc_nearby_3A(var0001);
	if(!UI_get_item_flag_A3(var0001, 0x0000)) goto labelFunc0942_0025;
	var0002 = false;
	labelFunc0942_0025:
		rr = var0002;
		return rr;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);

var Func0943 0x943 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006, var var0007)
{
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var rr;

	var0008 = UI_count_objects_31(0xFE9B, var0004, 0xFE99, 0xFE99);
	if(!(var0002 == 0x0000)) goto labelFunc0943_0026;
	var0009 = 0x0001;
	goto labelFunc0943_0039;
	labelFunc0943_0026:
		var0009 = UI_input_numeric_value_13(var0001, var0002, 0x0001, 0x0001);
	labelFunc0943_0039:
		if(!(var0005 > 0x0001)) goto labelFunc0943_0050;
		var000A = (var0005 * var0009);
		goto labelFunc0943_0056;
	labelFunc0943_0050:
		var000A = var0009;
	labelFunc0943_0056:
		if(!(var0009 == 0x0000)) goto labelFunc0943_0069;
		var000B = 0x0000;
		goto labelFunc0943_00B7;
	labelFunc0943_0069:
		if(!(var0008 >= (var0003 * var0009))) goto labelFunc0943_00B1;
		var000C = UI_remove_party_items_34((var0003 * var0009), var0004, 0xFE99, 0xFE99, true);
		var000D = Func099B(0xFE9C, var000A, var0007, 0xFE99, var0006, var0000, true);
		var000B = 0x0001;
		goto labelFunc0943_00B7;
	labelFunc0943_00B1:
		var000B = 0x0003;
	labelFunc0943_00B7:
		rr = var000B;
		return rr;
}
var Func0944 0x944 (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0003 = [0x0001, 0x0002, 0x0003];
	enum();
	labelFunc0944_0010:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc0944_0040);
		if(!((!(var0002[var0006] >= var0001[var0006])) || (!(var0002[var0006] <= var0000[var0006])))) goto labelFunc0944_003D;
		rr = false;
	labelFunc0944_003D:
		goto labelFunc0944_0010;
	labelFunc0944_0040:
		rr = true;
		return rr;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func0945 0x945 (var var0000)
{
	var var0001;

	if(!((!UI_get_item_flag_A3(var0000, 0x000B)) && (!UI_get_item_flag_A3(var0000, 0x0017)))) goto labelFunc0945_003D;
	gflags[000E] = true;
	UI_close_gumps_98();
	var0001 = UI_delayed_execute_usecode_array_02(Func09A0(0x0001, 0x0001), [0x55, 0x0633], 0x0003);
	labelFunc0945_003D:
		return;
}
// externs
extern var Func098E 0x98E ();

var Func0946 0x946 ()
{
	var rr;
	rr = UI_get_npc_name_30(Func098E());
	return rr;
}
var Func0947 0x947 (var var0000, var var0001)
{
	var var0002;
	var rr;

	var0002 = UI_get_distance_21(var0001, var0000);
	if(!(var0002 < 0x0014)) goto labelFunc0947_0019;
	rr = true;
	labelFunc0947_0019:
		return rr;
}
Func0948 0x948 (var var0000)
{
	UI_play_sound_effect_16(0x002B);
	if(!(var0000 > 0x0006)) goto labelFunc0948_0017;
	var0000 = 0x0001;
	labelFunc0948_0017:
		UI_flash_mouse_7F(var0000);
		return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func0949 0x949 (var var0000)
{
	var var0001;

	var0001 = Func0992(0x0001, var0000, var0000, true);
	return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

Func094A 0x94A (var var0000)
{
	var var0001;

	var0001 = Func0992(0x0001, var0000, var0000, false);
	return;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func094B 0x94B ()
{
	var var0000;
	var rr;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	rr = var0000;
	return rr;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func094C 0x94C ()
{
	var var0000;
	var rr;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	rr = var0000;
	return rr;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func094D 0x94D ()
{
	var var0000;
	var rr;

	var0000 = Func0992(0x0001, 0x0000, 0x0000, false);
	rr = var0000;
	return rr;
}
Func094E 0x94E (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	if(!(var0001 == 0xFED3)) goto labelFunc094E_0043;
	UI_show_npc_face1_06(var0001, 0x0000);
	if(!UI_get_item_flag_A3(var0001, 0x0019)) goto labelFunc094E_0028;
	UcMessage("\"Slurp\"");
	UcSay;
	goto labelFunc094E_003E;
	labelFunc094E_0028:
		enum();
	labelFunc094E_0029:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc094E_003E);
		UcMessage(var0004);
		UcMessage("");
		UcSay;
		goto labelFunc094E_0029;
	labelFunc094E_003E:
		UI_remove_npc_face1_08();
		exit2();
	labelFunc094E_0043:
		if(!UI_npc_nearby_3A(var0001)) goto labelFunc094E_0099;
		if(!(UI_get_item_shape_18(var0001) == 0x02EB)) goto labelFunc094E_0061;
		var0001 = 0xFED6;
	labelFunc094E_0061:
		UI_show_npc_face1_06(var0001, 0x0000);
		if(!UI_get_item_flag_A3(var0001, 0x0019)) goto labelFunc094E_007F;
		UcMessage("\"Slurp\"");
		UcSay;
		goto labelFunc094E_0095;
	labelFunc094E_007F:
		enum();
	labelFunc094E_0080:
		for (var0004 in var0000 with var0005 to var0006 atend labelFunc094E_0095);
		UcMessage(var0004);
		UcMessage("");
		UcSay;
		goto labelFunc094E_0080;
	labelFunc094E_0095:
		UI_remove_npc_face1_08();
	labelFunc094E_0099:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func094F 0x94F (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	if(!UI_npc_nearby_3A(var0001)) goto labelFunc094F_004F;
	if(!UI_get_item_flag_A3(var0001, 0x0019)) goto labelFunc094F_0024;
	UI_item_say_4D(var0001, "@Slurp@");
	goto labelFunc094F_004F;
	labelFunc094F_0024:
		var0002 = 0x0000;
		enum();
	labelFunc094F_002B:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc094F_004F);
		Func097F(var0001, var0005, var0002);
		var0002 = (var0002 + 0x0011);
		goto labelFunc094F_002B;
	labelFunc094F_004F:
		return;
}
Func0950 0x950 (var var0000)
{
	var var0001;

	UI_halt_scheduled_71(var0000);
	UI_UNKNOWN_9C(var0000, true);
	UI_UNKNOWN_9E();
	var0001 = UI_delayed_execute_usecode_array_02(var0000, [0x23, 0x55, 0x0600], 0x0032);
	return;
}
var Func0951 0x951 ()
{
	var rr;
	if(!(UI_get_weather_52() == 0x0003)) goto labelFunc0951_0010;
	rr = false;
	goto labelFunc0951_0012;
	labelFunc0951_0010:
		rr = true;
	labelFunc0951_0012:
		return rr;
}
var Func0952 0x952 (var var0000)
{
	var rr;
	rr = UI_give_last_created_42(UI_get_npc_object_23(var0000));
	return rr;
}
var Func0953 0x953 ()
{
	var rr;
	rr = UI_get_npc_name_30(UI_get_avatar_ref_2A());
	return rr;
}
var Func0954 0x954 ()
{
	var rr;
	if(!(UI_is_pc_female_6F() == 0x0000)) goto labelFunc0954_0012;
	rr = "milord";
	goto labelFunc0954_0016;
	labelFunc0954_0012:
		rr = "milady";
	labelFunc0954_0016:
		return rr;
}
var Func0955 0x955 ()
{
	var rr;
	UI_push_answers_0E();
	UI_add_answer_0C(["Yes", "No"]);
	labelFunc0955_0011:
		UcAsk;
		cmps("Yes");
		UI_pop_answers_0F();
		rr = true;
	labelFunc0955_0022:
		cmps("No");
		UI_pop_answers_0F();
		rr = false;
	labelFunc0955_0030:
		goto labelFunc0955_0011;
	labelFunc0955_0033:
		end_conv();
		return rr;
}
var Func0956 0x956 (var var0000)
{
	var var0001;
	var rr;

	UI_push_answers_0E();
	UI_add_answer_0C(var0000);
	var0001 = UI_select_from_menu_11();
	UI_pop_answers_0F();
	rr = var0001;
	return rr;
}
var Func0957 0x957 (var var0000)
{
	var var0001;
	var rr;

	UI_push_answers_0E();
	UI_add_answer_0C(var0000);
	var0001 = UI_select_from_menu2_12();
	UI_pop_answers_0F();
	rr = var0001;
	return rr;
}
// externs
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);

var Func0958 0x958 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = (Func098E() & 0x0000);
	var0001 = (UI_get_npc_name_30(var0000) & "Nobody");
	var0002 = Func0957([var0001]);
	var0003 = var0000[var0002];
	if(!(var0003 == 0x0000)) goto labelFunc0958_003B;
	rr = 0x0000;
	labelFunc0958_003B:
		rr = UI_get_npc_number_47(var0003);
		return rr;
}
// externs
extern var Func0957 0x957 (var var0000);

var Func0959 0x959 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = (UI_get_party_list_2B() & 0x0000);
	var0001 = (UI_get_npc_name_30(var0000) & "Nobody");
	var0002 = Func0957([var0001]);
	var0003 = var0000[var0002];
	if(!(var0003 == 0x0000)) goto labelFunc0959_003C;
	rr = 0x0000;
	labelFunc0959_003C:
		rr = UI_get_npc_number_47(var0003);
		return rr;
}
// externs
extern var Func0957 0x957 (var var0000);

var Func095A 0x95A ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var rr;

	var0000 = (UI_get_party_list2_AA() & 0x0000);
	var0001 = (UI_get_npc_name_30(var0000) & "Nobody");
	var0002 = Func0957([var0001]);
	var0003 = var0000[var0002];
	if(!(var0003 == 0x0000)) goto labelFunc095A_003C;
	rr = 0x0000;
	labelFunc095A_003C:
		rr = UI_get_npc_number_47(var0003);
		return rr;
}
var Func095B 0x95B (var var0000)
{
	var rr;
	rr = UI_get_npc_name_30(UI_get_npc_object_23(var0000));
	return rr;
}
var Func095C 0x95C (var var0000, var var0001)
{
	var rr;
	rr = UI_get_npc_prop_28(UI_get_npc_object_23(var0001), var0000);
	return rr;
}
Func095D 0x95D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0001 = UI_get_party_list_2B();
	enum();
	labelFunc095D_0008:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc095D_0026);
		var0005 = UI_set_npc_prop_29(var0004, 0x0008, var0000);
		goto labelFunc095D_0008;
	labelFunc095D_0026:
		return;
}
Func095E 0x95E (var var0000, var var0001, var var0002)
{
	var var0003;

	var0003 = UI_set_npc_prop_29(UI_get_npc_object_23(var0002), var0001, var0000);
	return;
}
var Func095F 0x95F (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0002 = 0x0000;
	enum();
	labelFunc095F_0007:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc095F_002D);
		var0002 = (var0002 + 0x0001);
		if(!(var0001 == var0005)) goto labelFunc095F_002A;
		rr = var0002;
	labelFunc095F_002A:
		goto labelFunc095F_0007;
	labelFunc095F_002D:
		rr = 0x0000;
		return rr;
}
// externs
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0960 0x960 (var var0000, var var0001)
{
	var var0002;

	var0002 = 0x0000;
	labelFunc0960_0006:
		if(!(var0002 < var0000)) goto labelFunc0960_0041;
		Func095E(var0001, 0x0000, 0x0001);
		Func095E(var0001, 0x0003, 0x0001);
		Func095E(var0001, 0x0007, Dupre);
		var0002 = (var0002 + 0x0001);
		goto labelFunc0960_0006;
	labelFunc0960_0041:
		return;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0961 0x961 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0002 = 0x0000;
	labelFunc0961_0006:
		if(!(var0002 < var0000)) goto labelFunc0961_007D;
		var0003 = Func095C(var0001, 0x0001);
		Func095E(var0001, 0x0001, 0x0001);
		var0004 = (var0003 + 0x0001);
		var0005 = Func095C(var0001, 0x0004);
		var0006 = (((var0004 * var0005) + (var0003 - 0x0001)) / var0003);
		Func095E(var0001, 0x0004, (var0006 - var0005));
		Func095E(var0001, 0x0007, Dupre);
		var0002 = (var0002 + 0x0001);
		goto labelFunc0961_0006;
	labelFunc0961_007D:
		return;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0962 0x962 (var var0000, var var0001)
{
	var var0002;
	var var0003;

	var0002 = 0x0000;
	labelFunc0962_0006:
		if(!(var0002 < var0000)) goto labelFunc0962_0041;
		var0003 = Func095C(var0001, 0x0002);
		Func095E(var0001, 0x0002, 0x0001);
		Func095E(var0001, 0x0007, Dupre);
		var0002 = (var0002 + 0x0001);
		goto labelFunc0962_0006;
	labelFunc0962_0041:
		return;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0963 0x963 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0002 = 0x0000;
	labelFunc0963_0006:
		if(!(var0002 < var0000)) goto labelFunc0963_0087;
		var0003 = Func095C(var0001, 0x0001);
		var0004 = Func095C(var0001, 0x0004);
		var0005 = (((var0004 + var0003) + 0x0001) / 0x0002);
		if(!(var0005 >= var0003)) goto labelFunc0963_005E;
		var0005 = (var0004 + 0x0001);
		if(!(var0005 >= 0x001E)) goto labelFunc0963_005E;
		var0005 = 0x001E;
	labelFunc0963_005E:
		Func095E(var0001, 0x0004, (var0005 - var0004));
		Func095E(var0001, 0x0007, Dupre);
		var0002 = (var0002 + 0x0001);
		goto labelFunc0963_0006;
	labelFunc0963_0087:
		return;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0964 0x964 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0002 = 0x0000;
	labelFunc0964_0006:
		if(!(var0002 < var0000)) goto labelFunc0964_009D;
		var0003 = Func095C(var0001, 0x0002);
		var0004 = Func095C(var0001, 0x0006);
		var0005 = (((var0004 + var0003) + 0x0001) / 0x0002);
		if(!(var0005 >= var0003)) goto labelFunc0964_005E;
		var0005 = (var0004 + 0x0001);
		if(!(var0005 >= 0x001E)) goto labelFunc0964_005E;
		var0005 = 0x001E;
	labelFunc0964_005E:
		if(!((var0001 == 0xFE9C) || (var0001 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0964_0084;
		Func095E(var0001, 0x0006, (var0005 - var0004));
	labelFunc0964_0084:
		Func095E(var0001, 0x0007, Dupre);
		var0002 = (var0002 + 0x0001);
		goto labelFunc0964_0006;
	labelFunc0964_009D:
		return;
}
Func0965 0x965 ()
{
	var var0000;
	var var0001;

	var0000 = UI_wearing_fellowship_7C();
	var0001 = UI_die_roll_17(0x0001, 0x0004);
	if(!(var0001 == 0x0001)) goto labelFunc0965_0022;
	UcMessage("\"The Fellowship is a society of spiritual seekers who strive to reach the highest levels of human potential and to share this philosophy freely with all people. The Fellowship was formed twenty years ago by Batlin with the full approval and support of Lord British.\"");
	UcSay;
	labelFunc0965_0022:
		if(!(var0001 == 0x0002)) goto labelFunc0965_0030;
		UcMessage("\"The Fellowship is a wonderful organization that is open to all the people of Britannia. I have learned so much through studying its philosophy and it hath helped me to live my life to the fullest. Through The Fellowship I am able to achieve what I have set out to do in life and I am a better person for having joined.\"");
		UcSay;
	labelFunc0965_0030:
		if(!(var0001 == 0x0003)) goto labelFunc0965_003E;
		UcMessage("\"The Fellowship is the philosophical group devoted to the teachings of a truly great man named Batlin. In the absence of the Avatar, Batlin hath become a sort of spiritual father for the people of Britannia. Through his speeches and writings he hath changed the lives of many people, including mine own.\"");
		UcSay;
	labelFunc0965_003E:
		if(!(var0001 == 0x0004)) goto labelFunc0965_004C;
		UcMessage("\"The Fellowship is a group that hath been gaining much popularity in recent years with the people of Britannia. While on the surface it may simply appear to be a scholarly society studying its particular philosophy, its teachings have the power to forever alter the shape of Britannian society. Its ceremonies are deeply moving experiences.\"");
		UcSay;
	labelFunc0965_004C:
		UI_add_answer_0C("philosophy");
		return;
}
// externs
extern var Func0955 0x955 ();

Func0966 0x966 ()
{
	var var0000;
	var var0001;

	UcMessage("\"The Fellowship advances the philosophy of 'sanguine cognition', a way to apply a confident order of thought to one's life, through what is called the Triad of Inner Strength. The Triad is simply three basic principles that, when applied in unison, enable one to be more creative, satisfied, and successful in life. They are: Strive For Unity, Trust Thy Brother, and Worthiness Precedes Reward. Strive For Unity basically means that people should cooperate and work together. Trust Thy Brother implies that we are all the same and that we should not hate or fear each other. Worthiness Precedes Reward suggests that we must each strive to be worthy of that which we want out of life.\"");
	UcSay;
	var0000 = UI_wearing_fellowship_7C();
	if(!(!var0000)) goto labelFunc0966_0030;
	UcMessage("\"Dost thou want to join?\"");
	UcSay;
	var0001 = Func0955();
	if(!var0001) goto labelFunc0966_0029;
	UcMessage("\"Then thou shouldst go immediately to seek Batlin.\"");
	UcSay;
	goto labelFunc0966_002D;
	labelFunc0966_0029:
		UcMessage("\"Oh. Well, perhaps thou canst become enlightened another time.\"");
		UcSay;
	labelFunc0966_002D:
		goto labelFunc0966_0034;
	labelFunc0966_0030:
		UcMessage("\"Oh! I just now noticed thy medallion! Thou dost already know all of this! Thou art one of us! Thou must pardon me for going on and on about it!\"");
		UcSay;
	labelFunc0966_0034:
		return;
}
var Func0967 0x967 (var var0000, var var0001, var var0002, var var0003, var var0004)
{
	var var0005;
	var rr;

	var0005 = ((var0004 + var0003) + " ");
	if(!(var0002 == 0x0001)) goto labelFunc0967_0025;
	var0005 = (var0005 + "sell ");
	goto labelFunc0967_002F;
	labelFunc0967_0025:
		var0005 = (var0005 + "sells ");
	labelFunc0967_002F:
		var0005 = (((((var0005 + "for ") + var0001) + " gold") + var0000) + ".");
		rr = var0005;
		return rr;
}
var Func0968 0x968 (var var0000, var var0001, var var0002, var var0003, var var0004)
{
	var var0005;
	var rr;

	var0005 = ((((((("To sell " + var0004) + var0003) + " for ") + var0001) + " gold") + var0000) + ".");
	rr = var0005;
	return rr;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);
extern Func095E 0x95E (var var0000, var var0001, var var0002);

Func0969 0x969 (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0003 = Func095C(var0002, 0x0000);
	var0004 = Func095C(var0002, 0x0003);
	var0005 = UI_get_npc_name_30(var0002);
	if(!(var0003 > var0004)) goto labelFunc0969_005D;
	var0006 = (var0003 - var0004);
	Func095E(var0002, 0x0003, var0006);
	var0007 = UI_remove_party_items_34(var0000, var0001, 0xFE99, 0xFE99, true);
	UcMessage("\"The wounds have been healed.\"");
	UcSay;
	goto labelFunc0969_0078;
	labelFunc0969_005D:
		if(!(var0002 == 0xFE9C)) goto labelFunc0969_006E;
		UcMessage("\"Thou seemest quite healthy!\"");
		UcSay;
		goto labelFunc0969_0078;
	labelFunc0969_006E:
		UcMessage("\"");
		UcMessage(var0005);
		UcMessage(" is already healthy!\"");
		UcSay;
	labelFunc0969_0078:
		return;
}
Func096A 0x96A (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;

	var0003 = UI_get_npc_object_23(var0002);
	if(!UI_get_item_flag_A3(var0003, 0x0008)) goto labelFunc096A_003C;
	UI_clear_item_flag_A5(var0003, 0x0008);
	var0004 = UI_remove_party_items_34(var0000, var0001, 0xFE99, 0xFE99, true);
	UcMessage("\"The wounds have been healed.\"");
	UcSay;
	goto labelFunc096A_0040;
	labelFunc096A_003C:
		UcMessage("\"That individual doth not need curing!\"");
		UcSay;
	labelFunc096A_0040:
		return;
}
Func096B 0x96B (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;

	var0003 = UI_resurrect_63(var0002);
	if(!var0003) goto labelFunc096B_002B;
	UcMessage("\"Breath doth return to the body. Thy comrade is alive!\"");
	UcSay;
	var0004 = UI_remove_party_items_34(var0000, var0001, 0xFE99, 0xFE99, true);
	goto labelFunc096B_002F;
	labelFunc096B_002B:
		UcMessage("\"Alas, I cannot save thy friend. I will provide a proper burial. Thou must go on and continue with thine own life.\"");
		UcSay;
	labelFunc096B_002F:
		return;
}
// externs
extern var Func0958 0x958 ();

var Func096C 0x96C ()
{
	var var0000;
	var rr;

	UcMessage("\"Which of you wishes to train?\"");
	UcSay;
	var0000 = Func0958();
	rr = var0000;
	return rr;
}
// externs
extern var Func0955 0x955 ();
extern var Func0946 0x946 ();
extern var Func098E 0x98E ();
extern var Func0957 0x957 (var var0000);

var Func096D 0x96D (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var rr;

	UcMessage("\"One of you wishes to train?\"");
	UcSay;
	var0001 = Func0955();
	if(!var0001) goto labelFunc096D_00AD;
	UcMessage("\"Which of you wishes to train?\"");
	UcSay;
	var0002 = Func0946();
	var0003 = Func098E();
	var0004 = [];
	var0005 = [];
	enum();
	labelFunc096D_002D:
		for (var0008 in var0003 with var0006 to var0007 atend labelFunc096D_005D);
		if(!(var0008 != var0000)) goto labelFunc096D_005A;
		var0004 = (var0004 & UI_get_npc_name_30(var0008));
		var0005 = (var0005 & var0008);
	labelFunc096D_005A:
		goto labelFunc096D_002D;
	labelFunc096D_005D:
		var0002 = var0004;
		var0003 = var0005;
		var0009 = [0x0000, var0003];
		var000A = Func0957(["Nobody", var0002]);
		var000B = var0009[var000A];
		if(!(var000B == 0x0000)) goto labelFunc096D_00A0;
		var000C = 0x0000;
		goto labelFunc096D_00AA;
	labelFunc096D_00A0:
		var000C = UI_get_npc_number_47(var000B);
	labelFunc096D_00AA:
		goto labelFunc096D_00B7;
	labelFunc096D_00AD:
		UcMessage("\"Perhaps at a later time.\"");
		UcSay;
		var000C = 0x0000;
	labelFunc096D_00B7:
		rr = var000C;
		return rr;
}
// externs
extern var Func095C 0x95C (var var0000, var var0001);

var Func096E 0x96E (var var0000, var var0001, var var0002, var var0003, var var0004)
{
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var rr;

	var0005 = false;
	var0006 = Func095C(var0001, 0x0007);
	var0007 = UI_count_objects_31(0xFE9B, var0003, 0xFE99, 0xFE99);
	if(!(!(var0007 >= var0002))) goto labelFunc096E_0032;
	rr = 0x0001;
	labelFunc096E_0032:
		if(!(!(var0006 >= var0000))) goto labelFunc096E_0041;
		rr = 0x0000;
	labelFunc096E_0041:
		enum();
	labelFunc096E_0042:
		for (var000A in var0004 with var0008 to var0009 atend labelFunc096E_006A);
		var000B = Func095C(var0001, var000A);
		if(!(var000B < 0x001E)) goto labelFunc096E_0067;
		var0005 = true;
	labelFunc096E_0067:
		goto labelFunc096E_0042;
	labelFunc096E_006A:
		if(!(var0005 == false)) goto labelFunc096E_0076;
		rr = 0x0002;
	labelFunc096E_0076:
		rr = 0x0003;
		return rr;
}
var Func096F 0x96F (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0003 = UI_count_objects_31(0xFE9B, var0001, 0xFE99, 0xFE99);
	if(!(var0003 >= var0000)) goto labelFunc096F_0075;
	var0004 = UI_find_object_32(0xFE9B, 0x02F9, 0xFE99, 0xFE99);
	if(!var0004) goto labelFunc096F_006C;
	if(!UI_add_spell_66(var0002, 0x0000, var0004)) goto labelFunc096F_0063;
	var0005 = 0x0001;
	var0006 = UI_remove_party_items_34(var0000, var0001, 0xFE99, 0xFE99, true);
	goto labelFunc096F_0069;
	labelFunc096F_0063:
		var0005 = 0x0004;
	labelFunc096F_0069:
		goto labelFunc096F_0072;
	labelFunc096F_006C:
		var0005 = 0x0002;
	labelFunc096F_0072:
		goto labelFunc096F_007B;
	labelFunc096F_0075:
		var0005 = 0x0003;
	labelFunc096F_007B:
		rr = var0005;
		return rr;
}
// externs
extern var Func0955 0x955 ();

var Func0970 0x970 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0002 = UI_count_objects_31(0xFE9B, 0x0284, 0xFE99, 0xFE99);
	UcMessage("\"To be agreeable?\"");
	UcSay;
	if(!(!Func0955())) goto labelFunc0970_0027;
	var0003 = 0x0000;
	goto labelFunc0970_008F;
	labelFunc0970_0027:
		if(!(var0002 >= var0000)) goto labelFunc0970_0089;
		var0004 = UI_find_object_32(0xFE9B, 0x02F9, 0xFE99, 0xFE99);
		if(!var0004) goto labelFunc0970_0080;
		if(!UI_add_spell_66(var0001, 0x0000, var0004)) goto labelFunc0970_0077;
		var0003 = 0x0001;
		var0005 = UI_remove_party_items_34(var0000, 0x0284, 0xFE99, 0xFE99, true);
		goto labelFunc0970_007D;
	labelFunc0970_0077:
		var0003 = 0x0004;
	labelFunc0970_007D:
		goto labelFunc0970_0086;
	labelFunc0970_0080:
		var0003 = 0x0002;
	labelFunc0970_0086:
		goto labelFunc0970_008F;
	labelFunc0970_0089:
		var0003 = 0x0003;
	labelFunc0970_008F:
		rr = var0003;
		return rr;
}
Func0971 0x971 (var var0000)
{
	var var0001;
	var var0002;

	var0001 = UI_get_item_quantity_1E(var0000, 0xFE9C);
	if(!(var0001 <= 0x0001)) goto labelFunc0971_0021;
	UI_remove_item_84(var0000);
	goto labelFunc0971_0038;
	labelFunc0971_0021:
		var0001 = (var0001 - 0x0001);
		var0002 = UI_set_item_quantity_1F(var0000, var0001);
	labelFunc0971_0038:
		return;
}
Func0972 0x972 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;

	var0001 = false;
	var0002 = UI_get_item_shape_18(var0000);
	var0003 = UI_get_item_frame_1A(var0000);
	var0004 = UI_get_item_quality_1C(var0000);
	var0005 = UI_get_party_list_2B();
	enum();
	labelFunc0972_002A:
		for (var0008 in var0005 with var0006 to var0007 atend labelFunc0972_007E);
		var0009 = UI_get_cont_items_33(var0008, var0002, var0004, var0003);
		enum();
	labelFunc0972_0049:
		for (var000C in var0009 with var000A to var000B atend labelFunc0972_007B);
		if(!(var000C == var0000)) goto labelFunc0972_0078;
		var0001 = var0008;
		var000D = UI_give_last_created_42(var0001);
		var000D = UI_set_last_created_2E(var0000);
	labelFunc0972_0078:
		goto labelFunc0972_0049;
	labelFunc0972_007B:
		goto labelFunc0972_002A;
	labelFunc0972_007E:
		if(!(var0001 == false)) goto labelFunc0972_00A4;
		var0001 = UI_get_object_position_20(var0000);
		var000D = UI_update_last_created_2F(var0001);
		var000D = UI_set_last_created_2E(var0000);
	labelFunc0972_00A4:
		return;
}
// externs
extern Func0945 0x945 (var var0000);
extern Func094A 0x94A (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0953 0x953 ();

Func0973 0x973 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	Func0945(var0000);
	var0001 = UI_get_item_frame_1A(var0000);
	if(!(var0001 == 0x0000)) goto labelFunc0973_0038;
	Func094A(["I wager that would work much better if thou wouldst put some liquid in it..."]);
	Func094E(Dupre, "Perhaps some BEER for instance.");
	Func094E(Shamino, "Or mayhaps some WINE....");
	goto labelFunc0973_00D0;
	labelFunc0973_0038:
		UI_set_item_frame_1B(var0000, 0x0000);
		var0002 = ["water", "blood", "wine", "beer", "ale", "stuff", "stuff", "stuff", "stuff", "stuff", "last stuff"];
		UI_play_sound_effect_16(0x0024);
		var0003 = UI_die_roll_17(0x0001, 0x000A);
		var0004 = var0002[var0001];
		var0005 = (("Zounds, I wager that " + var0004) + " was right good....");
		if(!(var0003 == 0x0001)) goto labelFunc0973_00A4;
		var0006 = "mmmm... I wager that would cure a body's thirst.";
	labelFunc0973_00A4:
		if(!(var0003 == 0x0002)) goto labelFunc0973_00CA;
		var0007 = Func0953();
		var0005 = (((("Why dost thou not wait until dinner to drink that " + var0004) + ", ") + var0007) + "?");
	labelFunc0973_00CA:
		Func094A(var0005);
	labelFunc0973_00D0:
		return;
}
// externs
extern Func0945 0x945 (var var0000);
extern Func094A 0x94A (var var0000);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func0953 0x953 ();

Func0974 0x974 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;

	Func0945(var0000);
	var0001 = (UI_get_item_frame_1A(var0000) % 0x0002);
	if(!(var0001 == 0x0000)) goto labelFunc0974_003C;
	Func094A(["I wager that would work much better if thou wouldst put some liquid in it..."]);
	Func094E(Dupre, "Perhaps some BEER for instance.");
	Func094E(Shamino, "Or mayhaps some WINE....");
	goto labelFunc0974_010D;
	labelFunc0974_003C:
		var0002 = ["water", "blood", "wine", "beer", "ale", "stuff", "stuff", "stuff", "stuff", "stuff", "laststuff"];
		var0003 = 0x0000;
		var0004 = UI_get_item_quality_1C(var0000);
		enum();
	labelFunc0974_0074:
		for (var0007 in var0002 with var0005 to var0006 atend labelFunc0974_00A4);
		var0003 = (var0003 + 0x0001);
		if(!(var0004 == var0003)) goto labelFunc0974_00A1;
		var0008 = (("Zounds, I wager that " + var0007) + " was right good....");
	labelFunc0974_00A1:
		goto labelFunc0974_0074;
	labelFunc0974_00A4:
		UI_play_sound_effect_16(0x0024);
		var0009 = UI_die_roll_17(0x0001, 0x000A);
		if(!(var0009 == 0x0001)) goto labelFunc0974_00C8;
		Func094A("mmmm... I wager that would cure a body's thirst.");
	labelFunc0974_00C8:
		if(!(var0009 == 0x0002)) goto labelFunc0974_00FD;
		var000A = var0002[var0001];
		var000B = Func0953();
		var0008 = (((("Why dost thou not wait until dinner to drink that " + var000A) + ", ") + var000B) + "?");
		Func094A(var0008);
	labelFunc0974_00FD:
		if(!(var0009 > 0x0002)) goto labelFunc0974_010D;
		Func094A(var0008);
	labelFunc0974_010D:
		return;
}
// externs
extern var Func0953 0x953 ();
extern Func094A 0x94A (var var0000);
extern Func0948 0x948 (var var0000);

Func0975 0x975 ()
{
	var var0000;
	var var0001;

	var0000 = Func0953();
	var0001 = UI_die_roll_17(0x0001, 0x0003);
	if(!(var0001 == 0x0001)) goto labelFunc0975_002C;
	Func094A(["Thou mayest have more success if thou wert to put that in", "thine hand and hit someone with it... Someone else, that is."]);
	goto labelFunc0975_0032;
	labelFunc0975_002C:
		Func0948(0x0000);
	labelFunc0975_0032:
		return;
}
Func0976 0x976 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;

	if(!UI_is_npc_3D(var0001)) goto labelFunc0976_0067;
	var0002 = UI_get_npc_prop_28(var0001, 0x0000);
	var0003 = UI_get_npc_prop_28(var0001, 0x0003);
	if(!((var0003 + var0000) < 0x0001)) goto labelFunc0976_003F;
	var0000 = (Dupre * var0003);
	goto labelFunc0976_0057;
	labelFunc0976_003F:
		if(!((var0003 + var0000) > var0002)) goto labelFunc0976_0057;
		var0000 = (var0002 - var0003);
	labelFunc0976_0057:
		var0004 = UI_set_npc_prop_29(var0001, 0x0003, var0000);
	labelFunc0976_0067:
		return;
}
var Func0977 0x977 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0001 = 0x0000;
	enum();
	labelFunc0977_0007:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc0977_001F);
		var0001 = (var0001 + 0x0001);
		goto labelFunc0977_0007;
	labelFunc0977_001F:
		rr = var0001;
		return rr;
}
Func0978 0x978 (var var0000)
{
	UI_play_sound_effect_16(0x006C);
	return;
}
var Func0979 0x979 (var var0000)
{
	var rr;
	rr = UI_direction_from_A2(0xFE9C, var0000);
	return rr;
}
// externs
extern var Func0983 0x983 (var var0000);

Func097A 0x97A (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0001 = UI_get_npc_object_23(var0000);
	if(!(!Func0983(var0001))) goto labelFunc097A_0015;
	exit2();
	labelFunc097A_0015:
		var0002 = UI_get_schedule_type_24(var0001);
		var0003 = "";
		var0004 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0002 == 0x000B)) goto labelFunc097A_007C;
		if(!(var0004 == 0x0001)) goto labelFunc097A_004C;
		var0003 = "@It doth seem as it would rain...@";
	labelFunc097A_004C:
		if(!(var0004 == 0x0002)) goto labelFunc097A_005C;
		var0003 = "@Greetings.@";
	labelFunc097A_005C:
		if(!(var0004 == 0x0003)) goto labelFunc097A_006C;
		var0003 = "@Oh, mine aching back...@";
	labelFunc097A_006C:
		if(!(var0004 == 0x0004)) goto labelFunc097A_007C;
		var0003 = "@Ho hum...@";
	labelFunc097A_007C:
		if(!(var0002 == 0x000E)) goto labelFunc097A_008C;
		var0003 = "@Z-z-z-z...@";
	labelFunc097A_008C:
		if(!(var0002 == 0x0017)) goto labelFunc097A_00D6;
		if(!(var0004 == 0x0001)) goto labelFunc097A_00A6;
		var0003 = "@Thou shouldst try the wine.@";
	labelFunc097A_00A6:
		if(!(var0004 == 0x0002)) goto labelFunc097A_00B6;
		var0003 = "@The bread is fresh.@";
	labelFunc097A_00B6:
		if(!(var0004 == 0x0003)) goto labelFunc097A_00C6;
		var0003 = "@Try the mutton.@";
	labelFunc097A_00C6:
		if(!(var0004 == 0x0004)) goto labelFunc097A_00D6;
		var0003 = "@I recommend the ale.@";
	labelFunc097A_00D6:
		if(!(var0002 == 0x001C)) goto labelFunc097A_0120;
		if(!(var0004 == 0x0001)) goto labelFunc097A_00F0;
		var0003 = "@Strive For Unity.@";
	labelFunc097A_00F0:
		if(!(var0004 == 0x0002)) goto labelFunc097A_0100;
		var0003 = "@Trust Thy Brother.@";
	labelFunc097A_0100:
		if(!(var0004 == 0x0003)) goto labelFunc097A_0110;
		var0003 = "@Worthiness Precedes Reward.@";
	labelFunc097A_0110:
		if(!(var0004 == 0x0004)) goto labelFunc097A_0120;
		var0003 = "@Join The Fellowship!@";
	labelFunc097A_0120:
		if(!(var0002 == 0x001A)) goto labelFunc097A_016A;
		if(!(var0004 == 0x0001)) goto labelFunc097A_013A;
		var0003 = "@Mmmm! Good!@";
	labelFunc097A_013A:
		if(!(var0004 == 0x0002)) goto labelFunc097A_014A;
		var0003 = "@Tasty!@";
	labelFunc097A_014A:
		if(!(var0004 == 0x0003)) goto labelFunc097A_015A;
		var0003 = "@This is good!@";
	labelFunc097A_015A:
		if(!(var0004 == 0x0004)) goto labelFunc097A_016A;
		var0003 = "@Waiter! Waiter!@";
	labelFunc097A_016A:
		if(!(var0002 == 0x0006)) goto labelFunc097A_01B4;
		if(!(var0004 == 0x0001)) goto labelFunc097A_0184;
		var0003 = "@Whew! 'Tis hot!@";
	labelFunc097A_0184:
		if(!(var0004 == 0x0002)) goto labelFunc097A_0194;
		var0003 = "@Ouch! I did cut myself!@";
	labelFunc097A_0194:
		if(!(var0004 == 0x0003)) goto labelFunc097A_01A4;
		var0003 = "@Work... work... work...@";
	labelFunc097A_01A4:
		if(!(var0004 == 0x0004)) goto labelFunc097A_01B4;
		var0003 = "@We need rain...@";
	labelFunc097A_01B4:
		if(!(var0002 == 0x0019)) goto labelFunc097A_01FE;
		if(!(var0004 == 0x0001)) goto labelFunc097A_01CE;
		var0003 = "@Tag! Thou art it!@";
	labelFunc097A_01CE:
		if(!(var0004 == 0x0002)) goto labelFunc097A_01DE;
		var0003 = "@Cannot catch me!@";
	labelFunc097A_01DE:
		if(!(var0004 == 0x0003)) goto labelFunc097A_01EE;
		var0003 = "@Nyah nyah! Thou art it!@";
	labelFunc097A_01EE:
		if(!(var0004 == 0x0004)) goto labelFunc097A_01FE;
		var0003 = "@Catch me if thou canst!@";
	labelFunc097A_01FE:
		UI_item_say_4D(var0001, var0003);
		return;
}
// externs
extern var Func0983 0x983 (var var0000);

Func097B 0x97B (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	var0001 = UI_get_npc_object_23(var0000);
	if(!(!Func0983(var0001))) goto labelFunc097B_0015;
	exit2();
	labelFunc097B_0015:
		var0002 = UI_get_schedule_type_24(var0001);
		var0003 = "";
		var0004 = UI_die_roll_17(0x0001, 0x0004);
		if(!(var0002 == 0x000B)) goto labelFunc097B_007C;
		if(!(var0004 == 0x0001)) goto labelFunc097B_004C;
		var0003 = "@To say hello!@";
	labelFunc097B_004C:
		if(!(var0004 == 0x0002)) goto labelFunc097B_005C;
		var0003 = "@To greet you!@";
	labelFunc097B_005C:
		if(!(var0004 == 0x0003)) goto labelFunc097B_006C;
		var0003 = "@To hope you have a nice day!@";
	labelFunc097B_006C:
		if(!(var0004 == 0x0004)) goto labelFunc097B_007C;
		var0003 = "@To ask how you are?@";
	labelFunc097B_007C:
		if(!(var0002 == 0x000E)) goto labelFunc097B_008C;
		var0003 = "@Z-z-z-z...@";
	labelFunc097B_008C:
		if(!(var0002 == 0x0017)) goto labelFunc097B_00D6;
		if(!(var0004 == 0x0001)) goto labelFunc097B_00A6;
		var0003 = "@To suggest you try the wine.@";
	labelFunc097B_00A6:
		if(!(var0004 == 0x0002)) goto labelFunc097B_00B6;
		var0003 = "@To offer fresh food.@";
	labelFunc097B_00B6:
		if(!(var0004 == 0x0003)) goto labelFunc097B_00C6;
		var0003 = "@To recommend the mutton.@";
	labelFunc097B_00C6:
		if(!(var0004 == 0x0004)) goto labelFunc097B_00D6;
		var0003 = "@To recommend the ale.@";
	labelFunc097B_00D6:
		if(!(var0002 == 0x001C)) goto labelFunc097B_0120;
		if(!(var0004 == 0x0001)) goto labelFunc097B_00F0;
		var0003 = "@To Strive For Unity.@";
	labelFunc097B_00F0:
		if(!(var0004 == 0x0002)) goto labelFunc097B_0100;
		var0003 = "@To Trust Thy Brother.@";
	labelFunc097B_0100:
		if(!(var0004 == 0x0003)) goto labelFunc097B_0110;
		var0003 = "@To say Worthiness Precedes Reward.@";
	labelFunc097B_0110:
		if(!(var0004 == 0x0004)) goto labelFunc097B_0120;
		var0003 = "@To join The Fellowship!@";
	labelFunc097B_0120:
		if(!(var0002 == 0x001A)) goto labelFunc097B_016A;
		if(!(var0004 == 0x0001)) goto labelFunc097B_013A;
		var0003 = "@To be very Good!@";
	labelFunc097B_013A:
		if(!(var0004 == 0x0002)) goto labelFunc097B_014A;
		var0003 = "@To be tasty!@";
	labelFunc097B_014A:
		if(!(var0004 == 0x0003)) goto labelFunc097B_015A;
		var0003 = "@To be delicious!@";
	labelFunc097B_015A:
		if(!(var0004 == 0x0004)) goto labelFunc097B_016A;
		var0003 = "@To call for service!@";
	labelFunc097B_016A:
		UI_item_say_4D(var0001, var0003);
		return;
}
var Func097C 0x97C (var var0000, var var0001)
{
	var var0002;
	var rr;

	var0002 = UI_delayed_execute_usecode_array_02(var0001, var0000, Dupre);
	rr = var0002;
	return rr;
}
var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004)
{
	var var0005;
	var rr;

	var0005 = UI_count_objects_31(var0004, var0002, var0001, var0000);
	if(!((var0005 >= var0003) && (var0005 != 0x0000))) goto labelFunc097D_002A;
	rr = true;
	goto labelFunc097D_002C;
	labelFunc097D_002A:
		rr = false;
	labelFunc097D_002C:
		return rr;
}
var Func097E 0x97E (var var0000)
{
	var rr;
	if(!(var0000 < 0x0000)) goto labelFunc097E_0014;
	var0000 = (var0000 * Dupre);
	labelFunc097E_0014:
		rr = var0000;
		return rr;
}
// externs
extern var Func0983 0x983 (var var0000);

Func097F 0x97F (var var0000, var var0001, var var0002)
{
	var var0003;

	if(!(UI_get_array_size_73(var0001) > 0x0001)) goto labelFunc097F_0017;
	var0001 = var0001[0x0001];
	labelFunc097F_0017:
		if(!Func0983(var0002)) goto labelFunc097F_003B;
		var0003 = UI_delayed_execute_usecode_array_02(UI_get_npc_object_23(var0002), [0x23, 0x52, var0001], var0000);
	labelFunc097F_003B:
		return;
}
var Func0980 0x980 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0001 = UI_find_nearby_41(item, 0xFE99, var0000, 0x0008);
	var0002 = UI_get_party_list_2B();
	var0003 = [];
	if(!UI_get_item_flag_A3(item, 0x0006)) goto labelFunc0980_0054;
	enum();
	labelFunc0980_002A:
		for (var0006 in var0001 with var0004 to var0005 atend labelFunc0980_004D);
		if(!(!in(var0006, var0002))) goto labelFunc0980_004A;
		var0003 = (var0003 & var0006);
	labelFunc0980_004A:
		goto labelFunc0980_002A;
	labelFunc0980_004D:
		rr = var0003;
		goto labelFunc0980_0058;
	labelFunc0980_0054:
		rr = var0002;
	labelFunc0980_0058:
		return rr;
}
var Func0981 0x981 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0002 = var0001[0x0001];
	enum();
	labelFunc0981_000A:
		for (var0005 in var0001 with var0003 to var0004 atend labelFunc0981_0036);
		if(!(UI_get_distance_21(var0000, var0005) < UI_get_distance_21(var0000, var0002))) goto labelFunc0981_0033;
		var0002 = var0005;
	labelFunc0981_0033:
		goto labelFunc0981_000A;
	labelFunc0981_0036:
		rr = var0002;
		return rr;
}
Func0982 0x982 (var var0000, var var0001)
{
	UI_reduce_health_87(var0001, var0000, 0x0000);
	return;
}
var Func0983 0x983 (var var0000)
{
	var rr;
	if(!((UI_get_npc_prop_28(var0000, 0x0002) >= 0x000A) && ((!UI_get_item_flag_A3(var0000, 0x0001)) && ((!UI_get_item_flag_A3(var0000, 0x0007)) && ((!UI_get_item_flag_A3(var0000, 0x0004)) && ((UI_get_npc_prop_28(var0000, 0x0003) > 0x0000) && UI_is_npc_3D(var0000))))))) goto labelFunc0983_0051;
	rr = true;
	goto labelFunc0983_0053;
	labelFunc0983_0051:
		rr = false;
	labelFunc0983_0053:
		return rr;
}
// externs
extern var Func0985 0x985 (var var0000);

var Func0984 0x984 (var var0000)
{
	var rr;
	var0000 = Func0985(var0000);
	if(!(UI_get_item_flag_A3(var0000, 0x0001) || (UI_get_item_flag_A3(var0000, 0x0007) || (UI_get_item_flag_A3(var0000, 0x0004) || (UI_get_npc_prop_28(var0000, 0x0003) <= 0x0000))))) goto labelFunc0984_0040;
	rr = true;
	goto labelFunc0984_0042;
	labelFunc0984_0040:
		rr = false;
	labelFunc0984_0042:
		return rr;
}
var Func0985 0x985 (var var0000)
{
	var var0001;
	var rr;

	if(!((var0000 < 0x0000) && (var0000 >= 0xFE9C))) goto labelFunc0985_001F;
	var0001 = UI_get_npc_object_23(var0000);
	goto labelFunc0985_0025;
	labelFunc0985_001F:
		var0001 = var0000;
	labelFunc0985_0025:
		rr = var0001;
		return rr;
}
// externs
extern Func0987 0x987 (var var0000, var var0001, var var0002, var var0003);

Func0986 0x986 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;

	var0002 = UI_get_party_list2_AA();
	enum();
	labelFunc0986_0008:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc0986_00BC);
		if(!(UI_get_npc_prop_28(var0005, 0x0009) >= 0x000A)) goto labelFunc0986_00B9;
		if(!(!(var0005 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc0986_003D;
		UI_clear_item_flag_A5(var0005, 0x0001);
	labelFunc0986_003D:
		UI_clear_item_flag_A5(var0005, 0x0008);
		UI_clear_item_flag_A5(var0005, 0x0007);
		UI_clear_item_flag_A5(var0005, 0x0003);
		UI_clear_item_flag_A5(var0005, 0x0002);
		UI_clear_item_flag_A5(var0005, 0x0000);
		UI_clear_item_flag_A5(var0005, 0x0009);
		Func0987(var0005, 0x0003, 0x0000, var0001);
		if(!(var0005 == UI_get_npc_object_23(0xFE9C))) goto labelFunc0986_00A5;
		Func0987(var0005, 0x0005, 0x0006, var0001);
	labelFunc0986_00A5:
		var0006 = UI_set_npc_prop_29(var0005, 0x0009, (var0001 * Dupre));
	labelFunc0986_00B9:
		goto labelFunc0986_0008;
	labelFunc0986_00BC:
		var0007 = UI_find_nearby_41(var0000, 0x02BD, 0x001E, 0x0000);
		var0007 = (var0007 & UI_find_nearby_41(var0000, 0x0152, 0x001E, 0x0000));
		enum();
	labelFunc0986_00E7:
		for (var000A in var0007 with var0008 to var0009 atend labelFunc0986_016B);
		var000B = UI_get_item_quality_1C(var000A);
		if(!(var000B < (var0001 * 0x001E))) goto labelFunc0986_0153;
		UI_halt_scheduled_71(var000A);
		var000C = UI_get_item_shape_18(var000A);
		if(!(var000C == 0x0152)) goto labelFunc0986_012F;
		UI_set_item_shape_14(var000A, 0x03E5);
	labelFunc0986_012F:
		if(!(var000C == 0x02BD)) goto labelFunc0986_0143;
		UI_set_item_shape_14(var000A, 0x0253);
	labelFunc0986_0143:
		var0006 = UI_set_item_quality_1D(var000A, 0x00FF);
		goto labelFunc0986_0168;
	labelFunc0986_0153:
		var0006 = UI_set_item_quality_1D(var000A, (var000B - (var0001 * 0x001E)));
	labelFunc0986_0168:
		goto labelFunc0986_00E7;
	labelFunc0986_016B:
		return;
}
Func0987 0x987 (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;

	var0004 = UI_get_npc_prop_28(var0003, var0002);
	var0005 = (var0004 + (0x0002 * var0000));
	if(!(var0005 > UI_get_npc_prop_28(var0003, var0001))) goto labelFunc0987_0039;
	var0005 = UI_get_npc_prop_28(var0003, var0001);
	labelFunc0987_0039:
		var0006 = UI_set_npc_prop_29(var0003, var0002, (var0005 - var0004));
		return;
}
var Func0988 0x988 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0002 = [];
	enum();
	labelFunc0988_0007:
		for (var0005 in var0000 with var0003 to var0004 atend labelFunc0988_002A);
		if(!(!(var0005 == var0001))) goto labelFunc0988_0027;
		var0002 = (var0002 & var0005);
	labelFunc0988_0027:
		goto labelFunc0988_0007;
	labelFunc0988_002A:
		rr = var0002;
		return rr;
}
var Func0989 0x989 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0002 = UI_get_array_size_73(var0001);
	if(!(var0002 > 0x0001)) goto labelFunc0989_00A6;
	var0003 = true;
	labelFunc0989_0018:
		if(!var0003) goto labelFunc0989_00A6;
		var0003 = false;
		var0004 = 0x0001;
	labelFunc0989_0028:
		if(!(var0004 < var0002)) goto labelFunc0989_00A3;
		if(!(var0000[var0004] > var0000[(var0004 + 0x0001)])) goto labelFunc0989_0096;
		var0005 = var0000[var0004];
		var0000[var0004] = var0000[(var0004 + 0x0001)];
		var0000[(var0004 + 0x0001)] = var0005;
		var0005 = var0001[var0004];
		var0001[var0004] = var0001[(var0004 + 0x0001)];
		var0001[(var0004 + 0x0001)] = var0005;
		var0003 = true;
	labelFunc0989_0096:
		var0004 = (var0004 + 0x0001);
		goto labelFunc0989_0028;
	labelFunc0989_00A3:
		goto labelFunc0989_0018;
	labelFunc0989_00A6:
		rr = var0001;
		return rr;
}
// externs
extern Func0950 0x950 (var var0000);

Func098A 0x98A (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0002 = UI_get_item_frame_1A(var0001);
	if(!(!UI_get_item_quality_1C(var0001))) goto labelFunc098A_0029;
	var0003 = UI_set_item_quality_1D(var0001, UI_die_roll_17(0x001E, 0x003C));
	labelFunc098A_0029:
		if(!(UI_get_item_shape_18(var0001) == 0x0253)) goto labelFunc098A_0050;
		if(!(UI_get_item_quality_1C(var0001) == 0x00FF)) goto labelFunc098A_0050;
		UI_item_say_4D(var0001, "Spent");
		exit2();
	labelFunc098A_0050:
		var0004 = UI_get_container_83(var0001);
		if(!UI_is_npc_3D(var0004)) goto labelFunc098A_007D;
		if(!(UI_get_readied_BE(var0004, 0x000B) == var0001)) goto labelFunc098A_007D;
		UI_flash_mouse_7F(0x0000);
		exit2();
	labelFunc098A_007D:
		if(!((var0004 == 0x0000) || UI_is_npc_3D(var0004))) goto labelFunc098A_00B3;
		UI_set_item_shape_14(var0001, var0000);
		var0005 = UI_get_party_list_2B();
		if(!in(var0004, var0005)) goto labelFunc098A_00B0;
		Func0950(var0001);
	labelFunc098A_00B0:
		goto labelFunc098A_00BA;
	labelFunc098A_00B3:
		UI_flash_mouse_7F(0x0000);
	labelFunc098A_00BA:
		UI_UNKNOWN_9C(var0001, true);
		UI_UNKNOWN_9E();
		return;
}
Func098B 0x98B (var var0000)
{
	var var0001;

	var0001 = UI_get_object_position_20(var0000);
	var0001[0x0001] = (var0001[0x0001] - (var0001[0x0003] / 0x0002));
	var0001[0x0002] = (var0001[0x0002] - (var0001[0x0003] / 0x0002));
	UI_sprite_effect_68(0x0018, var0001[0x0001], var0001[0x0002], Shamino, Shamino, 0x0000, Dupre);
	return;
}
var Func098C 0x98C ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var rr;

	var0000 = false;
	labelFunc098C_0004:
		var0001 = false;
		var0002 = 0x0000;
	labelFunc098C_000E:
		if(!(var0002 < 0x0003)) goto labelFunc098C_03C4;
		var0002 = (var0002 + 0x0001);
		var0003 = false;
	labelFunc098C_0026:
		if(!(!var0003)) goto labelFunc098C_03C1;
		var0004 = UI_die_roll_17(0x0001, 0x000F);
		if(!((var0004 == 0x0001) && (!gflags[001A]))) goto labelFunc098C_0076;
		gflags[001A] = true;
		var0003 = true;
		UcMessage("\"According to Erstam's book, how many spells are available in the Ninth Circle of Magic?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0008)) goto labelFunc098C_0076;
		var0001 = true;
	labelFunc098C_0076:
		if(!((var0004 == 0x0002) && (!gflags[001B]))) goto labelFunc098C_00B2;
		gflags[001B] = true;
		var0003 = true;
		UcMessage("\"How many different materials can armour be made from?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0004)) goto labelFunc098C_00B2;
		var0001 = true;
	labelFunc098C_00B2:
		if(!((var0004 == 0x0003) && (!gflags[001C]))) goto labelFunc098C_00EE;
		gflags[001C] = true;
		var0003 = true;
		UcMessage("\"How many beasts are discussed in the Bestiary in Erstam's book?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0034)) goto labelFunc098C_00EE;
		var0001 = true;
	labelFunc098C_00EE:
		if(!((var0004 == 0x0004) && (!gflags[001D]))) goto labelFunc098C_012A;
		gflags[001D] = true;
		var0003 = true;
		UcMessage("\"How many different types of Reagents doth Erstam write about?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x000B)) goto labelFunc098C_012A;
		var0001 = true;
	labelFunc098C_012A:
		if(!((var0004 == 0x0005) && (!gflags[001E]))) goto labelFunc098C_0166;
		gflags[001E] = true;
		var0003 = true;
		UcMessage("\"How many reagents are required to cast the @Mass Death@ spell?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0006)) goto labelFunc098C_0166;
		var0001 = true;
	labelFunc098C_0166:
		if(!((var0004 == 0x0006) && (!gflags[001F]))) goto labelFunc098C_01A2;
		gflags[001F] = true;
		var0003 = true;
		UcMessage("\"How many times must ginseng be boiled before it becomes syrup?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0028)) goto labelFunc098C_01A2;
		var0001 = true;
	labelFunc098C_01A2:
		if(!((var0004 == 0x0007) && (!gflags[0020]))) goto labelFunc098C_01DE;
		gflags[0020] = true;
		var0003 = true;
		UcMessage("\"In what Circle of Magic doth the Create Automata spell appear?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0006)) goto labelFunc098C_01DE;
		var0001 = true;
	labelFunc098C_01DE:
		if(!((var0004 == 0x0008) && (!gflags[0021]))) goto labelFunc098C_021A;
		gflags[0021] = true;
		var0003 = true;
		UcMessage("\"For how many reasons did Erstam put down the history of the land in writing?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0001)) goto labelFunc098C_021A;
		var0001 = true;
	labelFunc098C_021A:
		if(!((var0004 == 0x0009) && (!gflags[0022]))) goto labelFunc098C_0256;
		gflags[0022] = true;
		var0003 = true;
		UcMessage("\"How many characters are there in Ophidian writing?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0024)) goto labelFunc098C_0256;
		var0001 = true;
	labelFunc098C_0256:
		if(!((var0004 == 0x000A) && (!gflags[0023]))) goto labelFunc098C_0292;
		gflags[0023] = true;
		var0003 = true;
		UcMessage("\"In Erstam's book, the section entitled @Other Landmarks@ covers how many areas?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0004)) goto labelFunc098C_0292;
		var0001 = true;
	labelFunc098C_0292:
		if(!((var0004 == 0x000B) && (!gflags[0024]))) goto labelFunc098C_02CE;
		gflags[0024] = true;
		var0003 = true;
		UcMessage("\"How many cities were established in the Serpent Isle?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0003)) goto labelFunc098C_02CE;
		var0001 = true;
	labelFunc098C_02CE:
		if(!((var0004 == 0x000C) && (!gflags[0025]))) goto labelFunc098C_030A;
		gflags[0025] = true;
		var0003 = true;
		UcMessage("\"How many forces, when combined, form the Principles of Balance?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0006)) goto labelFunc098C_030A;
		var0001 = true;
	labelFunc098C_030A:
		if(!((var0004 == 0x000D) && (!gflags[0026]))) goto labelFunc098C_0346;
		gflags[0026] = true;
		var0003 = true;
		UcMessage("\"How many clans divide the city of Monitor?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0003)) goto labelFunc098C_0346;
		var0001 = true;
	labelFunc098C_0346:
		if(!((var0004 == 0x000E) && (!gflags[0027]))) goto labelFunc098C_0382;
		gflags[0027] = true;
		var0003 = true;
		UcMessage("\"How many types of weapons are discussed in Erstam's book?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x0004)) goto labelFunc098C_0382;
		var0001 = true;
	labelFunc098C_0382:
		if(!((var0004 == 0x000F) && (!gflags[0028]))) goto labelFunc098C_03BE;
		gflags[0028] = true;
		var0003 = true;
		UcMessage("\"How many Words of Power are there?\"");
		UcSay;
		var0005 = UI_input_numeric_value_13(0x0001, 0x0046, 0x0001, 0x0023);
		if(!(var0005 != 0x001B)) goto labelFunc098C_03BE;
		var0001 = true;
	labelFunc098C_03BE:
		goto labelFunc098C_0026;
	labelFunc098C_03C1:
		goto labelFunc098C_000E;
	labelFunc098C_03C4:
		if(!(var0000 && var0001)) goto labelFunc098C_03DA;
		UI_set_item_flag_A4(0xFE9C, 0x0019);
		rr = false;
	labelFunc098C_03DA:
		if(!var0001) goto labelFunc098C_03EE;
		UcMessage("\"I am not yet convinced...\"");
		UcSay;
		var0000 = true;
		goto labelFunc098C_0004;
		goto labelFunc098C_03F0;
	labelFunc098C_03EE:
		rr = true;
	labelFunc098C_03F0:
		return rr;
}
var Func098D 0x98D ()
{
	var var0000;
	var rr;

	var0000 = [Dupre, Shamino, Iolo, 0xFF6B, 0xFFE4, 0xFFE6, 0xFFD3, 0xFFDE, 0xFFD4, 0xFF68, 0xFF58];
	rr = var0000;
	return rr;
}
var Func098E 0x98E ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = UI_get_party_list_2B();
	var0001 = [];
	enum();
	labelFunc098E_000E:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc098E_0034);
		if(!(UI_get_item_shape_18(var0004) != 0x02EB)) goto labelFunc098E_0031;
		var0001 = (var0001 & var0004);
	labelFunc098E_0031:
		goto labelFunc098E_000E;
	labelFunc098E_0034:
		rr = var0001;
		return rr;
}
var Func098F 0x98F ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var rr;

	var0000 = UI_get_party_list2_AA();
	var0001 = [];
	enum();
	labelFunc098F_000E:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc098F_0034);
		if(!(UI_get_item_shape_18(var0004) != 0x02EB)) goto labelFunc098F_0031;
		var0001 = (var0001 & var0004);
	labelFunc098F_0031:
		goto labelFunc098F_000E;
	labelFunc098F_0034:
		rr = var0001;
		return rr;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func0990 0x990 (var var0000, var var0001, var var0002)
{
	var var0003;
	var rr;

	UI_error_message_40("Error: Calling PartySays. Change to PartyUtters.");
	var0003 = Func0992(var0002, var0001, var0000, false);
	rr = var0003;
	return rr;
}
// externs
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);

var Func0991 0x991 (var var0000, var var0001, var var0002)
{
	var var0003;
	var rr;

	UI_error_message_40("Error: Calling PartyBarks. Change to PartyUtters.");
	var0003 = Func0992(var0002, var0001, var0000, true);
	rr = var0003;
	return rr;
}
// externs
extern var Func098E 0x98E ();
extern var Func097D 0x97D (var var0000, var var0001, var var0002, var var0003, var var0004);
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern Func094E 0x94E (var var0000, var var0001);
extern var Func098D 0x98D ();

var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;
	var var0010;
	var var0011;
	var var0012;
	var var0013;
	var var0014;
	var var0015;
	var var0016;
	var var0017;
	var var0018;
	var var0019;
	var var001A;
	var var001B;
	var rr;

	var0004 = Func098E();
	if(!(Func097D(0xFE9B, 0x0001, 0x031F, 0xFE99, 0x0012) && (!var0000))) goto labelFunc0992_002A;
	var0004 = (var0004 & 0xFED3);
	labelFunc0992_002A:
		var0005 = UI_get_array_size_73(var0004);
		if(!(var0005 == 0x0001)) goto labelFunc0992_006B;
		if(!(var0001 != 0x0000)) goto labelFunc0992_0066;
		if(!var0000) goto labelFunc0992_005D;
		Func097F(0xFE9C, var0001, 0x0000);
		goto labelFunc0992_0066;
	labelFunc0992_005D:
		Func094E(0xFE9C, var0001);
	labelFunc0992_0066:
		rr = 0xFE9C;
		abrt();
	labelFunc0992_006B:
		var0006 = Func098D();
		var0007 = UI_get_array_size_73(var0006);
		var0008 = [0x0001, 0x0007, 0x0002, 0x0008, 0x0005, 0x0006, 0x0002, 0x000B, 0x0003, 0x0009, 0x000A];
		var0009 = [0x0002, 0x000A, 0x000B, 0x0004, 0x0005, 0x0008, 0x0006, 0x0003, 0x0001, 0x0007, 0x0009];
		var000A = [0x0003, 0x0008, 0x000B, 0x0004, 0x0006, 0x0009, 0x0002, 0x0007, 0x0005, 0x0001, 0x000A];
		var000B = [0x0004, 0x0005, 0x0009, 0x0003, 0x000B, 0x0006, 0x0008, 0x0001, 0x0002, 0x0007, 0x000A];
		var000C = [0x0005, 0x0006, 0x000A, 0x0004, 0x0009, 0x000B, 0x0008, 0x0003, 0x0002, 0x0001, 0x0007];
		var000D = [0x0006, 0x000A, 0x0008, 0x000B, 0x0005, 0x0003, 0x0004, 0x0009, 0x0007, 0x0002, 0x0001];
		var000E = [0x0007, 0x0001, 0x0002, 0x0008, 0x0006, 0x000B, 0x0005, 0x0004, 0x0003, 0x0009, 0x000A];
		var000F = [0x0008, 0x000A, 0x0006, 0x0005, 0x000B, 0x0003, 0x0004, 0x0009, 0x0007, 0x0002, 0x0001];
		var0010 = [0x0009, 0x0004, 0x0005, 0x0008, 0x000A, 0x0003, 0x0006, 0x000B, 0x0007, 0x0002, 0x0001];
		var0011 = [0x000A, 0x0004, 0x0006, 0x0002, 0x0008, 0x0005, 0x0009, 0x000B, 0x0001, 0x0007, 0x0003];
		var0012 = [0x000B, 0x0003, 0x0008, 0x0006, 0x0004, 0x0009, 0x0007, 0x0005, 0x0001, 0x000A, 0x0002];
		if(!(!in(var0003, var0006))) goto labelFunc0992_0239;
		var0003 = 0x0001;
	labelFunc0992_0239:
		if(!(var0003 == 0x0001)) goto labelFunc0992_02C4;
		var0013 = false;
	labelFunc0992_0247:
		if(!(var0013 == false)) goto labelFunc0992_0271;
		var0014 = UI_get_random_00(var0005);
		if(!(UI_get_npc_number_47(var0004[var0014]) != 0xFE9C)) goto labelFunc0992_026E;
		var0013 = true;
	labelFunc0992_026E:
		goto labelFunc0992_0247;
	labelFunc0992_0271:
		if(!(var0004[var0014] == 0xFED3)) goto labelFunc0992_0287;
		var0003 = 0xFED3;
		goto labelFunc0992_0294;
	labelFunc0992_0287:
		var0003 = UI_get_npc_number_47(var0004[var0014]);
	labelFunc0992_0294:
		if(!(var0002 != 0x0000)) goto labelFunc0992_02BC;
		if(!var0000) goto labelFunc0992_02B3;
		Func097F(var0003, var0002, 0x0000);
		goto labelFunc0992_02BC;
	labelFunc0992_02B3:
		Func094E(var0003, var0002);
	labelFunc0992_02BC:
		rr = var0003;
		abrt();
		goto labelFunc0992_0322;
	labelFunc0992_02C4:
		if(!in(UI_get_npc_object_23(var0003), var0004)) goto labelFunc0992_0302;
		if(!(var0002 != 0x0000)) goto labelFunc0992_02FA;
		if(!var0000) goto labelFunc0992_02F1;
		Func097F(var0003, var0002, 0x0000);
		goto labelFunc0992_02FA;
	labelFunc0992_02F1:
		Func094E(var0003, var0002);
	labelFunc0992_02FA:
		rr = var0003;
		abrt();
		goto labelFunc0992_0322;
	labelFunc0992_0302:
		var0014 = 0x0001;
	labelFunc0992_0308:
		if(!(var0006[var0014] != var0003)) goto labelFunc0992_0322;
		var0014 = (var0014 + 0x0001);
		goto labelFunc0992_0308;
	labelFunc0992_0322:
		if(!(var0008[0x0001] == var0014)) goto labelFunc0992_0335;
		var0015 = var0008;
	labelFunc0992_0335:
		if(!(var0009[0x0001] == var0014)) goto labelFunc0992_0348;
		var0015 = var0009;
	labelFunc0992_0348:
		if(!(var000A[0x0001] == var0014)) goto labelFunc0992_035B;
		var0015 = var000A;
	labelFunc0992_035B:
		if(!(var000B[0x0001] == var0014)) goto labelFunc0992_036E;
		var0015 = var000B;
	labelFunc0992_036E:
		if(!(var000C[0x0001] == var0014)) goto labelFunc0992_0381;
		var0015 = var000C;
	labelFunc0992_0381:
		if(!(var000D[0x0001] == var0014)) goto labelFunc0992_0394;
		var0015 = var000D;
	labelFunc0992_0394:
		if(!(var000E[0x0001] == var0014)) goto labelFunc0992_03A7;
		var0015 = var000E;
	labelFunc0992_03A7:
		if(!(var000F[0x0001] == var0014)) goto labelFunc0992_03BA;
		var0015 = var000F;
	labelFunc0992_03BA:
		if(!(var0010[0x0001] == var0014)) goto labelFunc0992_03CD;
		var0015 = var0010;
	labelFunc0992_03CD:
		if(!(var0011[0x0001] == var0014)) goto labelFunc0992_03E0;
		var0015 = var0011;
	labelFunc0992_03E0:
		if(!(var0012[0x0001] == var0014)) goto labelFunc0992_03F3;
		var0015 = var0012;
	labelFunc0992_03F3:
		var0014 = 0x0002;
		var0016 = (var0007 + 0x0001);
	labelFunc0992_0403:
		if(!(var0014 != var0016)) goto labelFunc0992_0491;
		var0003 = var0006[var0015[var0014]];
		if(!in(UI_get_npc_object_23(var0003), var0004)) goto labelFunc0992_0457;
		if(!(var0002 != 0x0000)) goto labelFunc0992_044F;
		if(!var0000) goto labelFunc0992_0446;
		Func097F(var0003, var0002, 0x0000);
		goto labelFunc0992_044F;
	labelFunc0992_0446:
		Func094E(var0003, var0002);
	labelFunc0992_044F:
		rr = var0003;
		abrt();
		goto labelFunc0992_0484;
	labelFunc0992_0457:
		if(!((var0003 == 0xFFDE) && in(0xFED3, var0004))) goto labelFunc0992_0484;
		var0003 = 0xFED3;
		if(!(!var0000)) goto labelFunc0992_047F;
		Func094E(var0003, var0002);
	labelFunc0992_047F:
		rr = var0003;
		abrt();
	labelFunc0992_0484:
		var0014 = (var0014 + 0x0001);
		goto labelFunc0992_0403;
	labelFunc0992_0491:
		UI_error_message_40("OrderList or NotThereList improperly maintained - see
		~PartyUtters function");
		var0017 = "";
		var0018 = UI_get_party_list_2B();
		enum();
	labelFunc0992_04A6:
		for (var001B in var0018 with var0019 to var001A atend labelFunc0992_04C6);
		var0017 = (var0017 & (var001B & UI_get_npc_name_30(var001B)));
		goto labelFunc0992_04A6;
	labelFunc0992_04C6:
		if(!(Func097D(0xFE9B, 0x0001, 0x031F, 0xFE99, 0x0012) && (!var0000))) goto labelFunc0992_04EE;
		var0017 = (var0017 & (0xFED3 & "Boydon's head in party"));
	labelFunc0992_04EE:
		UI_error_message_40("Copy down this information with the error");
		UI_error_message_40(var0017);
		return rr;
}
var Func0993 0x993 (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = var0000[0x0001];
	var0002 = var0000[0x0002];
	if(!(((var0001 > 0x06AE) && ((var0001 < 0x073F) && ((var0002 > 0x053C) && (var0002 < 0x05AF)))) || ((var0001 > 0x098B) && ((var0001 < 0x09E3) && ((var0002 > 0x001C) && (var0002 < 0x007E)))))) goto labelFunc0993_0058;
	rr = 0x0000;
	labelFunc0993_0058:
		if(!(((var0001 > 0x08C4) && ((var0001 < 0x09FE) && ((var0002 > 0x03A1) && (var0002 < 0x04FE)))) || ((var0001 > 0x0A20) && ((var0001 < 0x0AFF) && ((var0002 > 0x0400) && (var0002 < 0x04DF)))))) goto labelFunc0993_009E;
		rr = 0x0002;
	labelFunc0993_009E:
		if(!(((var0001 > 0x0AFA) && ((var0001 < 0x0BFF) && ((var0002 > 0x0400) && (var0002 < 0x0600)))) || ((var0001 > 0x0000) && ((var0001 < 0x00FF) && ((var0002 > 0x0401) && (var0002 < 0x05FF)))))) goto labelFunc0993_00E4;
		rr = 0x001F;
	labelFunc0993_00E4:
		if(!(((var0001 > 0x035A) && ((var0001 < 0x04A3) && ((var0002 > 0x05FD) && (var0002 < 0x07D7)))) || ((var0001 > 0x0AC0) && ((var0002 > 0x00C0) && ((var0001 < 0x0ACF) && (var0002 < 0x00DF)))))) goto labelFunc0993_012A;
		rr = 0x0003;
	labelFunc0993_012A:
		if(!(((var0001 > 0x0480) && ((var0001 < 0x057F) && ((var0002 > 0x0A00) && (var0002 < 0x0AAF)))) || (((var0001 > 0x0580) && ((var0001 < 0x07CF) && ((var0002 > 0x0970) && (var0002 < 0x0ABF)))) || (((var0001 > 0x0790) && ((var0001 < 0x07EC) && ((var0002 > 0x0AB0) && (var0002 < 0x0AFC)))) || (((var0001 > 0x0B20) && ((var0001 < 0x0BDF) && ((var0002 > 0x0710) && (var0002 < 0x07BC)))) || (((var0001 > 0x000D) && ((var0001 < 0x00AB) && ((var0002 > 0x061F) && (var0002 < 0x067B)))) || (((var0001 > 0x0A0D) && ((var0002 > 0x005E) && ((var0001 < 0x0A3F) && (var0002 < 0x007F)))) || ((var0001 > 0x0A33) && ((var0002 > 0x009F) && ((var0001 < 0x0A5F) && (var0002 < 0x00AF))))))))))) goto labelFunc0993_0210;
		rr = 0x0004;
	labelFunc0993_0210:
		if(!(((var0001 > 0x0550) && ((var0001 < 0x0590) && ((var0002 > 0x01D0) && (var0002 < 0x0210)))) || ((var0001 > 0x0A8F) && ((var0001 < 0x0AE0) && ((var0002 > 0x004F) && (var0002 < 0x00A0)))))) goto labelFunc0993_0256;
		rr = 0x0015;
	labelFunc0993_0256:
		if(!((var0001 > 0x05C0) && ((var0001 < 0x06F8) && ((var0002 > 0x01DC) && (var0002 < 0x0236))))) goto labelFunc0993_027C;
		rr = 0x0016;
	labelFunc0993_027C:
		if(!((var0001 > 0x0530) && ((var0001 < 0x0640) && ((var0002 > 0x0211) && (var0002 < 0x0370))))) goto labelFunc0993_02A2;
		rr = 0x0005;
	labelFunc0993_02A2:
		if(!(((var0001 > 0x0450) && ((var0001 < 0x069F) && ((var0002 > 0x04C0) && (var0002 < 0x055F)))) || (((var0001 > 0x0230) && ((var0001 < 0x0320) && ((var0002 > 0x0640) && (var0002 < 0x06B3)))) || ((var0001 > 0x05FA) && ((var0001 < 0x06F0) && ((var0002 > 0x03FC) && (var0002 < 0x04BF))))))) goto labelFunc0993_0308;
		rr = 0x0007;
	labelFunc0993_0308:
		if(!(((var0001 > 0x0490) && ((var0001 < 0x0530) && ((var0002 > 0x0860) && (var0002 < 0x08F0)))) || ((var0001 > 0x0AF0) && ((var0002 > 0x00C0) && ((var0001 < 0x0AFF) && (var0002 < 0x00DF)))))) goto labelFunc0993_034E;
		rr = 0x0009;
	labelFunc0993_034E:
		if(!((var0001 > 0x0070) && ((var0001 < 0x0230) && ((var0002 > 0x0320) && (var0002 < 0x0410))))) goto labelFunc0993_0374;
		rr = 0x000A;
	labelFunc0993_0374:
		if(!(((var0001 > 0x0780) && ((var0001 < 0x0850) && ((var0002 > 0x04F0) && (var0002 < 0x0571)))) || ((var0001 > 0x07D0) && ((var0001 < 0x0880) && ((var0002 > 0x0442) && (var0002 < 0x04F6)))))) goto labelFunc0993_03BA;
		rr = 0x000B;
	labelFunc0993_03BA:
		if(!((var0001 > 0x0310) && ((var0001 < 0x0400) && ((var0002 > 0x0800) && (var0002 < 0x08E8))))) goto labelFunc0993_03E0;
		rr = 0x000C;
	labelFunc0993_03E0:
		if(!(((var0001 > 0x02A0) && ((var0001 < 0x0470) && ((var0002 > 0x0980) && (var0002 < 0x0AF0)))) || ((var0001 > 0x0B1E) && ((var0002 > 0x00AE) && ((var0001 < 0x0B30) && (var0002 < 0x00D1)))))) goto labelFunc0993_0426;
		rr = 0x000D;
	labelFunc0993_0426:
		if(!((var0001 > 0x0834) && ((var0001 < 0x09BE) && ((var0002 > 0x06BB) && (var0002 < 0x084E))))) goto labelFunc0993_044C;
		rr = 0x000E;
	labelFunc0993_044C:
		if(!(((var0001 > 0x07E0) && ((var0001 < 0x08D0) && ((var0002 > 0x0580) && (var0002 < 0x0690)))) || (((var0001 > 0x0870) && ((var0001 < 0x0910) && ((var0002 > 0x0520) && (var0002 < 0x05E0)))) || (((var0001 > 0x08C0) && ((var0001 < 0x0A20) && ((var0002 > 0x0520) && (var0002 < 0x0591)))) || (((var0001 > 0x0960) && ((var0001 < 0x0A60) && ((var0002 > 0x0590) && (var0002 < 0x0650)))) || (((var0001 > 0x09F0) && ((var0001 < 0x0A60) && ((var0002 > 0x0640) && (var0002 < 0x06D0)))) || ((var0001 > 0x09B0) && ((var0001 < 0x0A10) && ((var0002 > 0x06A0) && (var0002 < 0x0710)))))))))) goto labelFunc0993_0512;
		rr = 0x000F;
	labelFunc0993_0512:
		if(!(((var0001 > 0x0708) && ((var0001 < 0x07BA) && ((var0002 > 0x03B4) && (var0002 < 0x0454)))) || ((var0001 > 0x0B93) && ((var0002 > 0x0043) && ((var0001 < 0x0BEC) && (var0002 < 0x00EC)))))) goto labelFunc0993_0558;
		rr = 0x0010;
	labelFunc0993_0558:
		if(!(((var0001 > 0x06E0) && ((var0001 < 0x072F) && ((var0002 > 0x0250) && (var0002 < 0x02AF)))) || ((var0001 > 0x0B00) && ((var0001 < 0x0B8F) && ((var0002 > 0x0050) && (var0002 < 0x007F)))))) goto labelFunc0993_059E;
		rr = 0x0011;
	labelFunc0993_059E:
		if(!((var0001 > 0x0580) && ((var0001 < 0x05BF) && ((var0002 > 0x0390) && (var0002 < 0x03EF))))) goto labelFunc0993_05C4;
		rr = 0x0012;
	labelFunc0993_05C4:
		if(!((var0001 > 0x08C0) && ((var0001 < 0x093F) && ((var0002 > 0x0120) && (var0002 < 0x014F))))) goto labelFunc0993_05EA;
		rr = 0x0013;
	labelFunc0993_05EA:
		if(!(((var0001 > 0x08B0) && ((var0001 < 0x08FF) && ((var0002 > 0x0310) && (var0002 < 0x035F)))) || ((var0001 > 0x09A0) && ((var0001 < 0x0AFF) && ((var0002 > 0x0300) && (var0002 < 0x038F)))))) goto labelFunc0993_0630;
		rr = 0x0014;
	labelFunc0993_0630:
		if(!(((var0001 > 0x03A0) && ((var0001 < 0x044F) && ((var0002 > 0x03D0) && (var0002 < 0x052F)))) || (((var0001 > 0x0450) && ((var0001 < 0x056F) && ((var0002 > 0x03F0) && (var0002 < 0x049F)))) || (((var0001 > 0x04A0) && ((var0001 < 0x050F) && ((var0002 > 0x0270) && (var0002 < 0x03FF)))) || (((var0001 > 0x0450) && ((var0001 < 0x04CF) && ((var0002 > 0x0260) && (var0002 < 0x02FF)))) || (((var0001 > 0x0B10) && ((var0001 < 0x00F0) && ((var0002 > 0x0800) && (var0002 < 0x08F0)))) || ((var0001 > 0x0000) && ((var0001 < 0x00C0) && ((var0002 > 0x0700) && (var0002 < 0x0800)))))))))) goto labelFunc0993_06F6;
		rr = 0x0017;
	labelFunc0993_06F6:
		if(!(((var0001 > 0x0730) && ((var0001 < 0x095E) && ((var0002 > 0x0208) && (var0002 < 0x02F8)))) || ((var0001 > 0x087E) && ((var0001 < 0x095E) && ((var0002 > 0x0168) && (var0002 < 0x0208)))))) goto labelFunc0993_073C;
		rr = 0x0018;
	labelFunc0993_073C:
		if(!((var0001 > 0x0500) && ((var0001 < 0x07EE) && ((var0002 > 0x0000) && (var0002 < 0x0190))))) goto labelFunc0993_0762;
		rr = 0x0019;
	labelFunc0993_0762:
		if(!(((var0001 > 0x0540) && ((var0001 < 0x05F0) && ((var0002 > 0x0580) && (var0002 < 0x0670)))) || ((var0001 > 0x05F0) && ((var0001 < 0x06EA) && ((var0002 > 0x055A) && (var0002 < 0x0640)))))) goto labelFunc0993_07A8;
		rr = 0x001A;
	labelFunc0993_07A8:
		if(!((var0001 > 0x0210) && ((var0001 < 0x02D0) && ((var0002 > 0x0950) && (var0002 < 0x0AB0))))) goto labelFunc0993_07CE;
		rr = 0x001B;
	labelFunc0993_07CE:
		if(!((var0001 > 0x0258) && ((var0001 < 0x030C) && ((var0002 > 0x047E) && (var0002 < 0x05C8))))) goto labelFunc0993_07F4;
		rr = 0x001C;
	labelFunc0993_07F4:
		if(!((var0001 > 0x037A) && ((var0001 < 0x0488) && ((var0002 > 0x033E) && (var0002 < 0x037A))))) goto labelFunc0993_081A;
		rr = 0x001D;
	labelFunc0993_081A:
		if(!((var0001 > 0x012F) && ((var0001 < 0x01DF) && ((var0002 > 0x072F) && (var0002 < 0x07C0))))) goto labelFunc0993_0840;
		rr = 0x001E;
	labelFunc0993_0840:
		if(!(((var0001 > 0x0000) && ((var0002 > 0x0AFF) && ((var0001 < 0x0900) && (var0002 < 0x0C00)))) || (((var0001 > 0x08FF) && ((var0002 > 0x09FF) && ((var0001 < 0x0C00) && (var0002 < 0x0C00)))) || ((var0001 > 0x0B6F) && ((var0002 > 0x09BF) && ((var0001 < 0x0C00) && (var0002 < 0x0A00))))))) goto labelFunc0993_08A6;
		rr = 0x0020;
	labelFunc0993_08A6:
		if(!((var0001 > 0x08FF) && ((var0002 > 0x09FF) && ((var0001 < 0x0A00) && (var0002 < 0x0B00))))) goto labelFunc0993_08CC;
		rr = 0x0021;
	labelFunc0993_08CC:
		if(!(((var0001 > 0x0A13) && ((var0002 > 0x0014) && ((var0001 < 0x0A3F) && (var0002 < 0x003D)))) || (((var0001 > 0x09D0) && ((var0002 > 0x00A0) && ((var0001 < 0x09EE) && (var0002 < 0x00AE)))) || ((var0001 > 0x0250) && ((var0002 > 0x033F) && ((var0001 < 0x0330) && (var0002 < 0x0481))))))) goto labelFunc0993_0932;
		rr = Dupre;
	labelFunc0993_0932:
		if(!(var0002 < 0x0400)) goto labelFunc0993_0943;
		rr = 0x0008;
		goto labelFunc0993_0947;
	labelFunc0993_0943:
		rr = Dupre;
	labelFunc0993_0947:
		return rr;
}
// externs
extern var Func0993 0x993 (var var0000);

var Func0994 0x994 ()
{
	var var0000;
	var rr;

	var0000 = UI_get_object_position_20(0xFE9C);
	rr = Func0993(var0000);
	return rr;
}
var Func0995 0x995 ()
{
	var var0000;
	var var0001;
	var var0002;
	var rr;

	var0000 = UI_get_object_position_20(0xFE9C);
	var0001 = var0000[0x0001];
	var0002 = var0000[0x0002];
	if(!((var0001 > 0x0340) && ((var0001 < 0x0430) && ((var0002 > 0x02FF) && (var0002 < 0x0550))))) goto labelFunc0995_0040;
	rr = true;
	labelFunc0995_0040:
		if(!((var0001 > 0x0350) && ((var0001 < 0x0500) && ((var0002 > 0x0400) && (var0002 < 0x04C0))))) goto labelFunc0995_0064;
		rr = true;
	labelFunc0995_0064:
		if(!((var0001 > 0x00FF) && ((var0001 < 0x0230) && ((var0002 > 0x03F0) && (var0002 < 0x0450))))) goto labelFunc0995_0088;
		rr = true;
	labelFunc0995_0088:
		if(!((var0001 > 0x0800) && ((var0001 < 0x0BF0) && ((var0002 > 0x0000) && (var0002 < 0x00F0))))) goto labelFunc0995_00AC;
		rr = false;
	labelFunc0995_00AC:
		if(!((var0001 > 0x0A00) && ((var0001 < 0x0BF0) && ((var0002 > 0x0100) && (var0002 < 0x0300))))) goto labelFunc0995_00D0;
		rr = false;
	labelFunc0995_00D0:
		if(!((var0001 > 0x0500) && ((var0001 < 0x07F0) && ((var0002 > 0x0000) && (var0002 < 0x0190))))) goto labelFunc0995_00F4;
		rr = false;
	labelFunc0995_00F4:
		if(!((var0001 > 0x0260) && ((var0001 < 0x0310) && ((var0002 > 0x0350) && (var0002 < 0x0470))))) goto labelFunc0995_0118;
		rr = false;
	labelFunc0995_0118:
		if(!((var0001 > 0x0990) && ((var0001 < 0x0B00) && ((var0002 > 0x0300) && (var0002 < 0x0400))))) goto labelFunc0995_013C;
		rr = false;
	labelFunc0995_013C:
		if(!((var0001 > 0x08C0) && ((var0001 < 0x0BF0) && ((var0002 > 0x03B0) && (var0002 < 0x0400))))) goto labelFunc0995_0160;
		rr = false;
	labelFunc0995_0160:
		if(!(var0002 > 0x0400)) goto labelFunc0995_016F;
		rr = false;
		goto labelFunc0995_0171;
	labelFunc0995_016F:
		rr = true;
	labelFunc0995_0171:
		return rr;
}
var Func0996 0x996 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006)
{
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var rr;

	if(!(var0006 == 0xFE9B)) goto labelFunc0996_0027;
	if(!(UI_remove_party_items_34(var0004, var0003, var0002, var0001, var0000) == false)) goto labelFunc0996_0024;
	rr = false;
	labelFunc0996_0024:
		goto labelFunc0996_0044;
	labelFunc0996_0027:
		if(!(UI_remove_cont_items_37(var0006, var0004, var0003, var0002, var0001, var0000) == false)) goto labelFunc0996_0044;
		rr = false;
	labelFunc0996_0044:
		var0007 = UI_add_cont_items_36(var0005, var0004, var0003, var0002, var0001, var0000);
		if(!var0007) goto labelFunc0996_008E;
		var0008 = UI_create_new_object_2C(var0003);
		if(!var0008) goto labelFunc0996_008E;
		var0009 = UI_set_item_quantity_1F(var0008, var0007);
		var000A = UI_update_last_created_2F(UI_get_object_position_20(var0005));
	labelFunc0996_008E:
		rr = true;
		return rr;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);

Func0997 0x997 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;

	if(!(var0000 != false)) goto labelFunc0997_0067;
	var0002 = UI_get_array_size_73(var0000);
	var0003 = 0x0000;
	var0004 = 0x0001;
	labelFunc0997_001E:
		if(!(var0002 > 0x0000)) goto labelFunc0997_0067;
		Func097F(0xFE9C, var0000[var0004], var0003);
		var0003 = (var0003 + 0x0005);
		var0004 = (var0004 + 0x0001);
		Func097F(var0001, var0000[var0004], var0003);
		var0002 = (var0002 - 0x0002);
		goto labelFunc0997_001E;
	labelFunc0997_0067:
		return;
}
Func0998 0x998 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;

	var0002 = [Dupre, 0x0000, 0x0001, 0x0002, 0x0002, 0x0002, 0x0001, 0x0000, Dupre, Shamino, Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0003, 0x0002, 0x0001, 0x0000, Dupre, Shamino, Iolo, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, Iolo];
	var0003 = [Shamino, Shamino, Shamino, Dupre, 0x0000, 0x0001, 0x0002, 0x0002, 0x0002, 0x0001, 0x0000, Dupre, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, 0xFFFC, Iolo, Shamino, Dupre, 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0003, 0x0002, 0x0001, 0x0000, Dupre, Shamino, Iolo];
	var0004 = UI_get_object_position_20(var0001);
	var0005 = (var0001 & var0004);
	var0006 = 0x0000;
	labelFunc0998_00FE:
		if(!(var0006 < 0x0024)) goto labelFunc0998_01CF;
		var0006 = (var0006 + 0x0001);
		var0007 = (var0005[0x0002] + var0002[var0006]);
		var0008 = (var0005[0x0003] + var0003[var0006]);
		var0009 = var0005[0x0004];
		var000A = [var0007, var0008, var0009];
		var000B = [var0007, var0008, (var0009 + 0x0001)];
		if(!(!UI_is_not_blocked_A0(var000A, var0000, 0x0000))) goto labelFunc0998_0174;
		var000A = var000B;
	labelFunc0998_0174:
		if(!UI_is_not_blocked_A0(var000A, var0000, 0x0000)) goto labelFunc0998_01C2;
		var000C = UI_create_new_object_2C(var0000);
		if(!var000C) goto labelFunc0998_01BF;
		var000D = UI_die_roll_17(0x0000, 0x0005);
		UI_set_item_frame_1B(var000C, var000D);
		UI_set_item_flag_A4(var000C, 0x0012);
		var000E = UI_update_last_created_2F(var000A);
	labelFunc0998_01BF:
		goto labelFunc0998_01CC;
	labelFunc0998_01C2:
		var000E = UI_update_last_created_2F(0xFE9A);
	labelFunc0998_01CC:
		goto labelFunc0998_00FE;
	labelFunc0998_01CF:
		return;
}
var Func0999 0x999 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006)
{
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var rr;

	if(!(var0002 == 0x0000)) goto labelFunc0999_0020;
	var0007 = UI_input_numeric_value_13(0x0000, var0006, 0x0001, 0x0000);
	goto labelFunc0999_0033;
	labelFunc0999_0020:
		var0007 = UI_input_numeric_value_13(var0003, var0006, 0x0001, 0x0000);
	labelFunc0999_0033:
		var0008 = 0x0000;
		var0009 = 0x0000;
		if(!(var0007 == var0006)) goto labelFunc0999_004C;
		goto labelFunc0999_0166;
	labelFunc0999_004C:
		var0008 = (var0006 - var0007);
		if(!(var0000 == 0x0001)) goto labelFunc0999_0072;
		var0009 = 0x0005;
		var000A = var0006;
		goto labelFunc0999_0218;
		goto labelFunc0999_00A1;
	labelFunc0999_0072:
		if(!(!var0000)) goto labelFunc0999_00A1;
		if(!(var0002 > (var0001 / 0x0002))) goto labelFunc0999_00A1;
		if(!UI_get_random_00((var0001 - var0002))) goto labelFunc0999_00A1;
		var0000 = 0x0001;
		var0009 = 0x0004;
	labelFunc0999_00A1:
		if(!(!var0009)) goto labelFunc0999_0166;
		if(!(var0007 < (var0003 + ((var0008 * 0x0003) / 0x000A)))) goto labelFunc0999_0108;
		if(!(var0007 < (var0003 + ((var0008 * 0x000F) / 0x0064)))) goto labelFunc0999_00FB;
		if(!(var0007 > var0005)) goto labelFunc0999_00F5;
		if(!(UI_get_random_00(0x0002) == 0x0001)) goto labelFunc0999_00F2;
		var0009 = 0x0001;
	labelFunc0999_00F2:
		goto labelFunc0999_00FB;
	labelFunc0999_00F5:
		var0009 = 0x0001;
	labelFunc0999_00FB:
		var0009 = (var0009 + 0x0004);
		goto labelFunc0999_0166;
	labelFunc0999_0108:
		if(!(var0008 < ((var0006 - var0003) / 0x0002))) goto labelFunc0999_014D;
		if(!(var0007 > var0005)) goto labelFunc0999_0144;
		if(!(UI_get_random_00(0x0003) == 0x0001)) goto labelFunc0999_013B;
		var0009 = 0x0001;
		goto labelFunc0999_0141;
	labelFunc0999_013B:
		var0009 = 0x0002;
	labelFunc0999_0141:
		goto labelFunc0999_014A;
	labelFunc0999_0144:
		var0009 = 0x0003;
	labelFunc0999_014A:
		goto labelFunc0999_0166;
	labelFunc0999_014D:
		if(!(var0007 == var0006)) goto labelFunc0999_0160;
		var0009 = 0x0001;
		goto labelFunc0999_0166;
	labelFunc0999_0160:
		var0009 = 0x0003;
	labelFunc0999_0166:
		if(!(var0004 == 0x0001)) goto labelFunc0999_017E;
		var000A = (var0006 - (var0008 / 0x0002));
	labelFunc0999_017E:
		if(!(var0004 == 0x0002)) goto labelFunc0999_0196;
		var000A = (var0006 - (var0008 / 0x0003));
	labelFunc0999_0196:
		if(!(var0004 == 0x0003)) goto labelFunc0999_01AE;
		var000A = (var0006 - (var0008 / 0x0004));
	labelFunc0999_01AE:
		var000B = (var0006 - var000A);
		var000A = (var0006 - ((var000B * (0x0050 + UI_get_random_00(0x0028))) / 0x0064));
		if(!(var000A >= var0006)) goto labelFunc0999_01E6;
		var000A = (var000A - 0x0001);
	labelFunc0999_01E6:
		if(!(var000A <= var0007)) goto labelFunc0999_01FC;
		var000A = var0007;
		var0009 = 0x0001;
	labelFunc0999_01FC:
		if(!(var000A <= var0005)) goto labelFunc0999_0218;
		var000A = var0005;
		var0000 = 0x0001;
		var0009 = 0x0004;
	labelFunc0999_0218:
		rr = [var0007, var000A, var0009, var0000];
		return rr;
}
var Func099A 0x99A (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0002 = 0x0001;
	var0003 = [];
	enum();
	labelFunc099A_000D:
		for (var0006 in var0001 with var0004 to var0005 atend labelFunc099A_0039);
		if(!(var0002 != var0000)) goto labelFunc099A_002C;
		var0003 = (var0003 & var0006);
	labelFunc099A_002C:
		var0002 = (var0002 + 0x0001);
		goto labelFunc099A_000D;
	labelFunc099A_0039:
		rr = var0003;
		return rr;
}
// externs
extern var Func0977 0x977 (var var0000);
extern var Func099A 0x99A (var var0000, var var0001);
extern Func094E 0x94E (var var0000, var var0001);

var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006)
{
	var var0007;
	var var0008;
	var var0009;
	var rr;

	var0007 = UI_add_cont_items_36(var0006, var0005, var0004, var0003, var0002, var0001);
	if(!(var0007 == 0x0000)) goto labelFunc099B_0030;
	rr = [0x0000, 0x0000];
	goto labelFunc099B_00ED;
	labelFunc099B_0030:
		var0007 = UI_add_party_items_35(var0007, var0004, var0003, var0002, var0001);
		var0003 = var0005;
		if(!(!var0000)) goto labelFunc099B_0057;
		rr = var0007;
	labelFunc099B_0057:
		var0002 = Func0977(var0007);
		var0005 = var0007[var0002];
		var0001 = Func099A(var0007, var0002);
		if(!var0001) goto labelFunc099B_00B3;
		if(!(var0003 == 0x0001)) goto labelFunc099B_008C;
		UcMessage("\"Thou art so encumbered! Perhaps one of thy friends might be willing to carry this?\"");
		UcSay;
		goto labelFunc099B_0090;
	labelFunc099B_008C:
		UcMessage("\"Thou art so encumbered! Let me give some of this to thy friends.\"");
		UcSay;
	labelFunc099B_0090:
		enum();
	labelFunc099B_0091:
		for (var0004 in var0001 with var0008 to var0009 atend labelFunc099B_00B3);
		Func094E(UI_get_npc_number_47(var0004), "@I'll help carry it.@");
		UI_set_conversation_slot_09(0x0000);
		goto labelFunc099B_0091;
	labelFunc099B_00B3:
		if(!(var0005 > 0x0000)) goto labelFunc099B_00E9;
		if(!(var0003 == 0x0001)) goto labelFunc099B_00CE;
		UcMessage("\"Since thou art so encumbered, I shall set this upon the ground.\"");
		UcSay;
		goto labelFunc099B_00E9;
	labelFunc099B_00CE:
		if(!(var0005 == 0x0001)) goto labelFunc099B_00DF;
		UcMessage("\"Since not one of you can hold another, I shall place this last remaining one upon the ground.\"");
		UcSay;
		goto labelFunc099B_00E9;
	labelFunc099B_00DF:
		UcMessage("\"Since thou art so encumbered, I shall place the remaining ");
		UcMessage(var0005);
		UcMessage(" of these upon the ground.\"");
		UcSay;
	labelFunc099B_00E9:
		rr = var0007;
	labelFunc099B_00ED:
		return rr;
}
Func099C 0x99C (var var0000)
{
	var var0001;
	var var0002;

	var0001 = UI_count_objects_31(0xFE9B, var0000, 0xFE99, 0xFE99);
	var0002 = UI_remove_party_items_34(var0001, var0000, 0xFE99, 0xFE99, true);
	return;
}
var Func099D 0x99D (var var0000)
{
	var var0001;
	var rr;

	var0001 = UI_get_container_83(var0000);
	labelFunc099D_000A:
		if(!(!(var0001 == UI_get_npc_object_23(0xFE9C)))) goto labelFunc099D_0031;
		var0001 = UI_get_container_83(var0001);
		if(!(!var0001)) goto labelFunc099D_002E;
		rr = 0x0000;
	labelFunc099D_002E:
		goto labelFunc099D_000A;
	labelFunc099D_0031:
		rr = var0001;
		return rr;
}
var Func099E 0x99E (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = UI_get_container_83(var0000);
	var0002 = var0001;
	labelFunc099E_0010:
		if(!var0001) goto labelFunc099E_0029;
		var0002 = var0001;
		var0001 = UI_get_container_83(var0001);
		goto labelFunc099E_0010;
	labelFunc099E_0029:
		rr = var0002;
		return rr;
}
var Func099F 0x99F (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var rr;

	var0003 = UI_get_party_list_2B();
	enum();
	labelFunc099F_0008:
		for (var0006 in var0003 with var0004 to var0005 atend labelFunc099F_003F);
		var0007 = UI_get_cont_items_33(var0006, var0002, var0001, var0000);
		if(!var0007) goto labelFunc099F_003C;
		var0008 = [var0007, var0006];
		rr = var0008;
	labelFunc099F_003C:
		goto labelFunc099F_0008;
	labelFunc099F_003F:
		rr = 0x0000;
		return rr;
}
var Func09A0 0x9A0 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var rr;

	if(!(((var0001 < 0x0000) || (var0001 > 0x0007)) || ((var0000 < 0x0001) || (var0000 > 0x0004)))) goto labelFunc09A0_0024;
	rr = false;
	labelFunc09A0_0024:
		if(!((var0001 == 0x0000) || (var0001 == 0x0001))) goto labelFunc09A0_0079;
		var0002 = (((var0001 * 0x0002) + 0x0017) + var0000);
		var0003 = UI_get_cont_items_33(0xFE9C, 0x025F, 0xFE99, var0002);
		if(!(var0003 < 0x0008)) goto labelFunc09A0_0072;
		UI_error_message_40(["WARNING! GimmePathEgg returning ref = ", var0003]);
	labelFunc09A0_0072:
		rr = var0003;
		goto labelFunc09A0_00B9;
	labelFunc09A0_0079:
		var0002 = (((var0001 * 0x0004) + var0000) - 0x0001);
		var0003 = UI_get_cont_items_33(0xFE9C, 0x025F, 0xFE99, var0002);
		if(!(var0003 < 0x0008)) goto labelFunc09A0_00B5;
		UI_error_message_40(["WARNING! GimmePathEgg returning ref = ", var0003]);
	labelFunc09A0_00B5:
		rr = var0003;
	labelFunc09A0_00B9:
		return rr;
}
// externs
extern Func09A2 0x9A2 (var var0000, var var0001);

var Func09A1 0x9A1 (var var0000)
{
	var var0001;
	var var0002;
	var rr;

	var0001 = UI_create_new_object2_2D(var0000, [0x0000, 0x0000, 0x0000]);
	if(!(!(var0001 == 0x0000))) goto labelFunc09A1_0063;
	UI_set_schedule_type_25(var0001, 0x0000);
	UI_set_opponent_5B(var0001, UI_get_npc_object_23(0xFE9C));
	UI_set_alignment_4A(var0001, 0x0003);
	var0002 = UI_approach_avatar_BF(var0001, 0x0032, 0x0028);
	if(!(!var0002)) goto labelFunc09A1_0063;
	Func09A2(var0001, 0xFE9C);
	labelFunc09A1_0063:
		rr = var0001;
		return rr;
}
Func09A2 0x9A2 (var var0000, var var0001)
{
	var var0002;
	var var0003;

	var0002 = UI_get_object_position_20(var0000);
	var0003 = [(var0002[0x0001] + UI_die_roll_17(0xFFFB, 0x0005)), (var0002[0x0002] + UI_die_roll_17(0xFFFB, 0x0005)), var0002[0x0003]];
	UI_move_object_4B(var0001, var0003);
	return;
}
Func09A3 0x9A3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	labelFunc09A3_0000:
		var0001 = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
		if(!var0001) goto labelFunc09A3_0032;
		enum();
	labelFunc09A3_001A:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc09A3_002F);
		UI_remove_item_84(var0004);
		goto labelFunc09A3_001A;
	labelFunc09A3_002F:
		goto labelFunc09A3_0000;
	labelFunc09A3_0032:
		UI_remove_item_84(var0000);
		return;
}
Func09A4 0x9A4 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	labelFunc09A4_0000:
		var0001 = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
		if(!var0001) goto labelFunc09A4_0032;
		enum();
	labelFunc09A4_001A:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc09A4_002F);
		UI_remove_item_84(var0004);
		goto labelFunc09A4_001A;
	labelFunc09A4_002F:
		goto labelFunc09A4_0000;
	labelFunc09A4_0032:
		return;
}
// externs
extern Func060F 0x60F (var var0000);

Func09A5 0x9A5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = UI_find_nearby_41(0xFE9C, 0x01E9, 0x0050, 0x00B0);
	enum();
	labelFunc09A5_0014:
		for (var0003 in var0000 with var0001 to var0002 atend labelFunc09A5_0028);
		var0003;
		calle();
		goto labelFunc09A5_0014;
	labelFunc09A5_0028:
		var0004 = UI_get_party_list_2B();
		enum();
	labelFunc09A5_0030:
		for (var0007 in var0004 with var0005 to var0006 atend labelFunc09A5_0044);
		var0007;
		calle();
		goto labelFunc09A5_0030;
	labelFunc09A5_0044:
		return;
}
var Func09A6 0x9A6 (var var0000)
{
	var rr;
	if(!in(UI_get_item_shape_18(var0000), [0x01E6, 0x020A, 0x0320, 0x0321, 0x0322, 0x0323, 0x0324, 0x0333, 0x0129, 0x0196, 0x0197, 0x011B, 0x01A0, 0x02A7, 0x0190, 0x019E, 0x030A, 0x037C, 0x02FA, 0x01FB, 0x0195, 0x022B, 0x02F3])) goto labelFunc09A6_0058;
	rr = true;
	goto labelFunc09A6_005A;
	labelFunc09A6_0058:
		rr = false;
	labelFunc09A6_005A:
		return rr;
}
var Func09A7 0x9A7 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0002 = 0x0000;
	var0003 = [];
	enum();
	labelFunc09A7_000D:
		for (var0006 in var0000 with var0004 to var0005 atend labelFunc09A7_003B);
		var0002 = (var0002 + 0x0001);
		if(!(var0002 != var0001)) goto labelFunc09A7_0038;
		var0003 = [var0003, var0006];
	labelFunc09A7_0038:
		goto labelFunc09A7_000D;
	labelFunc09A7_003B:
		rr = var0003;
		return rr;
}
var Func09A8 0x9A8 (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0002 = [];
	var0003 = 0x0000;
	enum();
	labelFunc09A8_000D:
		for (var0006 in var0000 with var0004 to var0005 atend labelFunc09A8_003B);
		var0003 = (var0003 + 0x0001);
		if(!(var0006 == var0001)) goto labelFunc09A8_0038;
		var0002 = [var0002, var0003];
	labelFunc09A8_0038:
		goto labelFunc09A8_000D;
	labelFunc09A8_003B:
		rr = var0002;
		return rr;
}
// externs
extern var Func09A8 0x9A8 (var var0000, var var0001);
extern var Func095F 0x95F (var var0000, var var0001);

var Func09A9 0x9A9 (var var0000, var var0001, var var0002)
{
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var rr;

	var0003 = Func09A8(var0002[0x0001], var0001);
	var0004 = Func09A8(var0002[0x0002], var0000);
	var0005 = [];
	if(!var0003) goto labelFunc09A9_0058;
	enum();
	labelFunc09A9_002B:
		for (var0008 in var0003 with var0006 to var0007 atend labelFunc09A9_0051);
		if(!Func095F(var0008, var0004)) goto labelFunc09A9_004E;
		var0005 = [var0005, var0008];
	labelFunc09A9_004E:
		goto labelFunc09A9_002B;
	labelFunc09A9_0051:
		rr = var0005;
		goto labelFunc09A9_005C;
	labelFunc09A9_0058:
		rr = [];
	labelFunc09A9_005C:
		return rr;
}
Func09AA 0x9AA ()
{
	UI_clear_item_flag_A5(0xFE9C, 0x0010);
	UI_init_conversation_85();
	return;
}
var Func09AB 0x9AB (var var0000, var var0001, var var0002, var var0003, var var0004)
{
	var var0005;
	var var0006;
	var rr;

	var0005 = UI_create_new_object_2C(var0004);
	if(!(!var0005)) goto labelFunc09AB_0013;
	rr = false;
	labelFunc09AB_0013:
		UI_set_item_frame_1B(var0005, var0003);
		if(!(!UI_set_item_quality_1D(var0005, var0002))) goto labelFunc09AB_003B;
		if(!(!UI_set_item_quantity_1F(var0005, var0002))) goto labelFunc09AB_003B;
		rr = false;
	labelFunc09AB_003B:
		if(!var0001) goto labelFunc09AB_004E;
		UI_set_item_flag_A4(var0005, 0x0012);
		goto labelFunc09AB_0058;
	labelFunc09AB_004E:
		UI_clear_item_flag_A5(var0005, 0x0012);
	labelFunc09AB_0058:
		if(!(UI_get_array_size_73(var0000) == 0x0003)) goto labelFunc09AB_0076;
		if(!(!UI_update_last_created_2F(var0000))) goto labelFunc09AB_0073;
		rr = false;
	labelFunc09AB_0073:
		goto labelFunc09AB_0090;
	labelFunc09AB_0076:
		var0006 = UI_get_object_position_20(var0000[0x0001]);
		if(!(!UI_update_last_created_2F(var0006))) goto labelFunc09AB_0090;
		rr = false;
	labelFunc09AB_0090:
		rr = var0005;
		return rr;
}
// externs
extern var Func098D 0x98D ();

Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;
	var var0005;

	var0004 = false;
	if(!(var0002 < 0x0000)) goto labelFunc09AC_0077;
	var0004 = UI_get_object_position_20(var0003);
	if(!(var0004[0x0003] == 0x0000)) goto labelFunc09AC_003A;
	var0002 = var0004[0x0001];
	var0001 = var0004[0x0002];
	goto labelFunc09AC_0077;
	labelFunc09AC_003A:
		UI_set_item_frame_1B(var0003, 0x0000);
		UI_set_schedule_type_25(var0003, 0x000F);
		var0005 = Func098D();
		if(!in(var0003, var0005)) goto labelFunc09AC_0074;
		UI_set_new_schedules_B6(var0003, 0x0000, 0x001A, [0x097C, 0x0464]);
	labelFunc09AC_0074:
		goto labelFunc09AC_00AE;
	labelFunc09AC_0077:
		UI_set_new_schedules_B6(var0003, 0x0000, var0000, [var0002, var0001]);
		if(!(!var0004)) goto labelFunc09AC_00A7;
		UI_move_object_4B(var0003, [var0002, var0001, 0x0000]);
	labelFunc09AC_00A7:
		UI_run_schedule_B7(var0003);
	labelFunc09AC_00AE:
		var0004 = false;
		return;
}
Func09AD 0x9AD (var var0000)
{
	UI_set_alignment_4A(var0000, 0x0002);
	UI_set_schedule_type_25(var0000, 0x0000);
	UI_set_oppressor_5E(var0000, 0xFE9C);
	UI_set_opponent_5B(var0000, 0xFE9C);
	return;
}
// externs
extern Func094E 0x94E (var var0000, var var0001);
extern Func097F 0x97F (var var0000, var var0001, var var0002);

var Func09AE 0x9AE (var var0000)
{
	var rr;
	var0000 = (var0000 - 0x0001);
	if(!(var0000 < 0x0000)) goto labelFunc09AE_01BD;
	if(!(item == UI_get_npc_object_23(Jendon))) goto labelFunc09AE_00A8;
	gflags[01A0] = true;
	if(!(UI_get_schedule_type_24(Jendon) == 0x0017)) goto labelFunc09AE_0052;
	Func094E(0xFFC6, "@I need a drink...@");
	UI_set_conversation_slot_09(0x0000);
	UcMessage("\"I've enjoyed jawin' with ye, mate, but I'd better be back to me duties...\"");
	UcSay;
	Func097F(Jendon, "@What'll ye have?@", 0x0000);
	labelFunc09AE_0052:
		if(!(UI_get_schedule_type_24(Jendon) == 0x0010)) goto labelFunc09AE_008A;
		if(!UI_npc_nearby_3A(Kylista)) goto labelFunc09AE_007A;
		Func094E(Kylista, "@Be still! Beauty is not irreverent.@");
		UI_set_conversation_slot_09(0x0000);
	labelFunc09AE_007A:
		UcMessage("\"This isn't the place for a long talk, mate. Meet me later, back at the tavern, and we'll talk more.\"");
		UcSay;
		Func097F(Jendon, "@Not now...@", 0x0000);
	labelFunc09AE_008A:
		if(!(UI_get_schedule_type_24(Jendon) == 0x000E)) goto labelFunc09AE_00A8;
		UcMessage("\"Better we talk in the morning, mate. As for right now, I'm goin' back to sleep...\"");
		UcSay;
		Func097F(Jendon, "@Time for bed!@", 0x0000);
	labelFunc09AE_00A8:
		if(!(item == UI_get_npc_object_23(0xFFF3))) goto labelFunc09AE_0103;
		Func097F(0xFFF3, "@Have a nice day!@", 0x0000);
		gflags[0103] = true;
		if(!(UI_get_schedule_type_24(0xFFF3) == 0x0007)) goto labelFunc09AE_00FF;
		Func094E(0xFFD6, "@I do not pay thee to stand jabbering, Bucia.@");
		UI_set_conversation_slot_09(0x0000);
		UcMessage("\"I must be getting back to work now. But it hath been nice talking with thee.\"");
		UcSay;
		if(!(UI_get_npc_id_BC(0xFFF3) < 0x000F)) goto labelFunc09AE_00FC;
		UcMessage("\"If thou wert to be at the Blue Boar Inn at 10 tonight, I could discuss these things further with thee...\"");
		UcSay;
		gflags[013E] = true;
	labelFunc09AE_00FC:
		goto labelFunc09AE_0103;
	labelFunc09AE_00FF:
		UcMessage("\"It is getting late! I have truly enjoyed our talk, but I think I shall eat my dinner now.\"");
		UcSay;
	labelFunc09AE_0103:
		if(!(item == UI_get_npc_object_23(0xFFBD))) goto labelFunc09AE_016F;
		gflags[0097] = true;
		if(!(gflags[005B] && (!gflags[0047]))) goto labelFunc09AE_012D;
		Func097F(0xFFBD, "@Remember Cantra...@", 0x0000);
		goto labelFunc09AE_0139;
	labelFunc09AE_012D:
		Func097F(0xFFBD, "@Courage to thee!@", 0x0000);
	labelFunc09AE_0139:
		if(!(UI_get_schedule_type_24(0xFFBD) == 0x0006)) goto labelFunc09AE_014B;
		UcMessage("\"I must return to my duties. These crops will not wait!\"");
		UcSay;
	labelFunc09AE_014B:
		if(!(UI_get_schedule_type_24(0xFFBD) == 0x0005)) goto labelFunc09AE_015D;
		UcMessage("\"Pardon me, but my dinner is wasting. We can talk again later.\"");
		UcSay;
	labelFunc09AE_015D:
		if(!(UI_get_schedule_type_24(0xFFBD) == 0x000E)) goto labelFunc09AE_016F;
		UcMessage("\"I must get some sleep! Thou shouldst return tomorrow...\"");
		UcSay;
	labelFunc09AE_016F:
		if(!(item == UI_get_npc_object_23(0x03B2))) goto labelFunc09AE_01B5;
		gflags[02F4] = true;
		if(!(UI_get_schedule_type_24(0x03B2) == 0x0015)) goto labelFunc09AE_0191;
		UcMessage("\"I must return to my duties...\"");
		UcSay;
	labelFunc09AE_0191:
		if(!(UI_get_schedule_type_24(0x03B2) == 0x0005)) goto labelFunc09AE_01A3;
		UcMessage("\"I am sorry, but my dinner is waiting. We can talk again later.\"");
		UcSay;
	labelFunc09AE_01A3:
		if(!(UI_get_schedule_type_24(0x03B2) == 0x000E)) goto labelFunc09AE_01B5;
		UcMessage("\"I need rest! Return tomorrow...\"");
		UcSay;
	labelFunc09AE_01B5:
		UI_set_timer_7B(0x0002);
		abrt();
	labelFunc09AE_01BD:
		rr = var0000;
		return rr;
}
Func09AF 0x9AF (var var0000, var var0001, var var0002, var var0003)
{
	var var0004;

	var0004 = UI_execute_usecode_array_01(var0002, [0x23, 0x27, 0x0002, 0x6C, 0x55, 0x07D2, 0x27, 0x0002, 0x55, var0000]);
	var0004 = UI_execute_usecode_array_01(var0003, [0x23, 0x59, var0001, 0x6C, 0x6B]);
	return;
}
// externs
extern var Func0994 0x994 ();
extern Func09B1 0x9B1 ();

Func09B0 0x9B0 (var var0000)
{
	var var0001;

	if(!(var0000 == 0x0001)) goto labelFunc09B0_006E;
	var0001 = Func0994();
	UI_play_music_39(0x003B, 0x0000);
	UcMessage("\"Long ago, there lived a maid As fair as a summer morn.\"");
	UcSay;
	UI_play_music_39(0x003E, 0x0000);
	UcMessage("\"She loved a King, a noble king, Who left her all forlorn.\"");
	UcSay;
	UI_play_music_39(0x003D, 0x0000);
	UcMessage("\"He pledged his heart and sailed away Never to return again.\"");
	UcSay;
	UI_play_music_39(0x003C, 0x0000);
	UcMessage("\"Her heart did break and fade away Into the icy northern wind.\"");
	UcSay;
	UI_play_music_39(0x003D, 0x0000);
	gflags[01D3] = true;
	if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_006E;
	Func09B1();
	labelFunc09B0_006E:
		if(!(var0000 == 0x0002)) goto labelFunc09B0_00DC;
		var0001 = Func0994();
		UI_play_music_39(0x003E, 0x0000);
		UcMessage("\"I will tell thee a tale of vaulting ambition laid low by the hands of time.\"");
		UcSay;
		UI_play_music_39(0x003C, 0x0000);
		UcMessage("\"Far away, near where the sun doth rise, there once a mountain stood.\"");
		UcSay;
		UI_play_music_39(0x003B, 0x0000);
		UcMessage("\"It called itself the pinnacle of earth, until the earthquakes came.\"");
		UcSay;
		UI_play_music_39(0x003D, 0x0000);
		UcMessage("\"And now that mountain, tried by fire and ice, lies crushed beneath another's dream.\"");
		UcSay;
		UI_play_music_39(0x003E, 0x0000);
		gflags[01D4] = true;
		if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_00DC;
		Func09B1();
	labelFunc09B0_00DC:
		if(!(var0000 == 0x0003)) goto labelFunc09B0_014A;
		var0001 = Func0994();
		UI_play_music_39(0x003C, 0x0000);
		UcMessage("\"Far away, in the cold white north, There lives a vicious band.\"");
		UcSay;
		UI_play_music_39(0x003E, 0x0000);
		UcMessage("\"With soft grey fur, they walk about On two legs just like men.\"");
		UcSay;
		UI_play_music_39(0x003C, 0x0000);
		UcMessage("\"Do not fool thyself to think that they Might be a pretty robe.\"");
		UcSay;
		UI_play_music_39(0x003E, 0x0000);
		UcMessage("\"For if thou dost go a-hunting them, Thou shalt never return home again.\"");
		UcSay;
		UI_play_music_39(0x003C, 0x0000);
		gflags[01D5] = true;
		if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_014A;
		Func09B1();
	labelFunc09B0_014A:
		if(!(var0000 == 0x0004)) goto labelFunc09B0_01AA;
		var0001 = Func0994();
		UI_play_music_39(0x003D, 0x0000);
		UcMessage("\"Within the great wide forest, Hard on the snow and ice, There dwells a man called the Forest Master Who rules both plant and beast.\"");
		UcSay;
		UI_play_music_39(0x003B, 0x0000);
		UcMessage("\"His power, by cruel thieves, One day from him was stolen. And now the one great tree doth wilt Without his tender care.\"");
		UcSay;
		UI_play_music_39(0x003E, 0x0000);
		UcMessage("\"So if thou dost seek favors, From the Forest Master fierce, Thou shouldst be prepared to return to him The Orb of Elerion.\"");
		UcSay;
		UI_play_music_39(0x003C, 0x0000);
		gflags[01D6] = true;
		if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_01AA;
		Func09B1();
	labelFunc09B0_01AA:
		if(!(var0000 == 0x0005)) goto labelFunc09B0_01FC;
		var0001 = Func0994();
		UI_play_music_39(0x003B, 0x0000);
		UcMessage("\"Walk carefully when thou art dreaming. Never stray too far. For there is one who is waiting To trap thy very soul.\"");
		UcSay;
		UI_play_music_39(0x003D, 0x0000);
		UcMessage("\"See the balance slipping In the fight between ill and good. Thou shalt walk the beam To find the treasure thou seekest.\"");
		UcSay;
		UI_play_music_39(0x003B, 0x0000);
		gflags[01D7] = true;
		if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_01FC;
		Func09B1();
	labelFunc09B0_01FC:
		if(!(var0000 == 0x0006)) goto labelFunc09B0_026A;
		var0001 = Func0994();
		UI_play_music_39(0x003E, 0x0000);
		UcMessage("\"Once this land was ruled by kings, One old, one young, but friends true.\"");
		UcSay;
		UI_play_music_39(0x003D, 0x0000);
		UcMessage("\"Then one day, the young king sailed away, And the old king lost his mind.\"");
		UcSay;
		UI_play_music_39(0x003B, 0x0000);
		UcMessage("\"Plagued by goblins and treachery vile, The old king went too far.\"");
		UcSay;
		UI_play_music_39(0x003C, 0x0000);
		UcMessage("\"He killed those he would protect, And threw himself from the White Dragon tower.\"");
		UcSay;
		UI_play_music_39(0x003E, 0x0000);
		gflags[01D8] = true;
		if(!((!(item == UI_get_npc_object_23(Iolo))) && (var0001 != 0x001F))) goto labelFunc09B0_026A;
		Func09B1();
	labelFunc09B0_026A:
		return;
}
// externs
extern var Func0954 0x954 ();
extern var Func0956 0x956 (var var0000);

Func09B1 0x9B1 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0000 = Func0954();
	UcMessage("\"If thou didst enjoy my song, I would appreciate a small contribution to my room and board.\"");
	UcSay;
	var0001 = Func0956(["Nothing", "Monetari", "Guilders", "Filari", "Gold Coins"]);
	if(!(var0001 == "Monetari")) goto labelFunc09B1_0032;
	var0002 = 0x03B7;
	labelFunc09B1_0032:
		if(!(var0001 == "Guilders")) goto labelFunc09B1_0042;
		var0002 = 0x03B8;
	labelFunc09B1_0042:
		if(!(var0001 == "Filari")) goto labelFunc09B1_0052;
		var0002 = 0x03B4;
	labelFunc09B1_0052:
		if(!(var0001 == "Gold Coins")) goto labelFunc09B1_0062;
		var0002 = 0x0284;
	labelFunc09B1_0062:
		if(!(var0001 == "Nothing")) goto labelFunc09B1_0072;
		var0002 = 0x0284;
	labelFunc09B1_0072:
		var0003 = UI_count_objects_31(0xFE9B, var0002, 0xFE99, 0xFE99);
		if(!(var0001 != "Nothing")) goto labelFunc09B1_00FF;
		if(!(var0003 != 0x0000)) goto labelFunc09B1_00EC;
		var0004 = UI_input_numeric_value_13(0x0000, var0003, 0x0001, 0x0000);
		if(!(var0004 >= 0x0001)) goto labelFunc09B1_00E4;
		var0005 = UI_remove_party_items_34(var0004, var0002, 0xFE99, 0xFE99, false);
		UcMessage("\"Many thanks, ");
		UcMessage(var0000);
		UcMessage(". Perhaps thou wouldst care to hear another song. Or, if thou art tired, I can return later...\"");
		UcSay;
		UI_add_answer_0C(["song", "bye"]);
		goto labelFunc09B1_00E9;
	labelFunc09B1_00E4:
		UcMessage("\"Perhaps some other time...\"");
		UcSay;
		abrt();
	labelFunc09B1_00E9:
		goto labelFunc09B1_00FC;
	labelFunc09B1_00EC:
		UcMessage("\"I am afraid thy purse is empty of ");
		UcMessage(var0001);
		UcMessage(", ");
		UcMessage(var0000);
		UcMessage(".\"");
		UcSay;
	labelFunc09B1_00FC:
		goto labelFunc09B1_0104;
	labelFunc09B1_00FF:
		UcMessage("\"Very well... then I shall play no more.\"");
		UcSay;
		abrt();
	labelFunc09B1_0104:
		return;
}
Func09B2 0x9B2 ()
{
	var var0000;

	var0000 = (0x0406 + ((0x0002 - UI_get_skin_colour_A6()) * 0x0002));
	if(!UI_is_pc_female_6F()) goto labelFunc09B2_002B;
	UI_set_polymorph_B3(0xFE9C, (var0000 + 0x0001));
	goto labelFunc09B2_0035;
	labelFunc09B2_002B:
		UI_set_polymorph_B3(0xFE9C, var0000);
	labelFunc09B2_0035:
		return;
}
// externs
extern var Func099B 0x99B (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func0977 0x977 (var var0000);

var Func09B3 0x9B3 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var rr;

	var0001 = [false, 0x0000];
	var0002 = UI_get_cont_items_33(var0000, 0xFE99, 0xFE99, 0xFE99);
	enum();
	labelFunc09B3_001E:
		for (var0005 in var0002 with var0003 to var0004 atend labelFunc09B3_00B0);
		if(!(!((UI_get_item_shape_18(var0005) == 0x0128) && (UI_get_item_frame_1A(var0005) == 0x0002)))) goto labelFunc09B3_00AD;
		var0006 = Func099B(0xFE9C, UI_get_item_quantity_1E(var0005, 0x0000), UI_get_item_shape_18(var0005), UI_get_item_quality_1C(var0005), UI_get_item_frame_1A(var0005), UI_get_item_flag_A3(var0005, 0x0012), false);
		if(!(var0001[0x0001] == 0x0000)) goto labelFunc09B3_0090;
		var0001[0x0001] = var0006[0x0001];
	labelFunc09B3_0090:
		var0001[0x0002] = (var0001[0x0002] + var0006[Func0977(var0006)]);
		UI_remove_item_84(var0005);
	labelFunc09B3_00AD:
		goto labelFunc09B3_001E;
	labelFunc09B3_00B0:
		rr = var0001;
		return rr;
}
// externs
extern var Func0956 0x956 (var var0000);
extern Func09AC 0x9AC (var var0000, var var0001, var var0002, var var0003);

Func09B4 0x9B4 (var var0000)
{
	var var0001;
	var var0002;

	var0001 = UI_get_object_position_20(var0000);
	if(!(var0001[0x0003] != 0x0000)) goto labelFunc09B4_016A;
	if(!(var0000 == 0xFF6B)) goto labelFunc09B4_0046;
	UI_set_schedule_type_25(var0000, 0x000F);
	UcMessage("\"We must plan for every eventuality, Avatar. Should I not be able to remain here, I shall await thee on Monk Isle.\"");
	UcSay;
	UI_set_new_schedules_B6(var0000, 0x0000, 0x001E, [0x0977, 0x048C]);
	abrt();
	labelFunc09B4_0046:
		if(!(var0000 == 0xFFE4)) goto labelFunc09B4_0066;
		UI_set_schedule_type_25(var0000, 0x000F);
		UcMessage("\"If I cannot remain here, I shall go home to the inn. Thou canst always find me there.\"");
		UcSay;
		UI_revert_schedule_B4(0xFFE4);
		abrt();
	labelFunc09B4_0066:
		UI_set_schedule_type_25(var0000, 0x000F);
		UcMessage("\"I shall attempt to wait for thee here, but if I cannot, where shall we meet?\"");
		UcSay;
		var0002 = "Monk Isle";
		if(!gflags[01CC]) goto labelFunc09B4_00A8;
		if(!gflags[01FE]) goto labelFunc09B4_009B;
		var0002 = (var0002 & ("Fawn" & ("Monitor" & "Moonshade")));
		goto labelFunc09B4_00A5;
	labelFunc09B4_009B:
		var0002 = (var0002 & "Moonshade");
	labelFunc09B4_00A5:
		goto labelFunc09B4_00CF;
	labelFunc09B4_00A8:
		if(!gflags[02C3]) goto labelFunc09B4_00B8;
		var0002 = (var0002 & "Monitor");
	labelFunc09B4_00B8:
		if(!UI_get_item_flag_A3(0xFFC5, 0x001C)) goto labelFunc09B4_00CF;
		var0002 = (var0002 & "Fawn");
	labelFunc09B4_00CF:
		var0001 = Func0956(var0002);
		if(!(var0001 == "Monitor")) goto labelFunc09B4_00FF;
		UcMessage("\"Then in an emergency, I shall find thee at the Town Hall in Monitor.\"");
		UcSay;
		UI_set_new_schedules_B6(var0000, 0x0000, 0x000C, [0x03D0, 0x09FA]);
		goto labelFunc09B4_0167;
	labelFunc09B4_00FF:
		if(!(var0001 == "Moonshade")) goto labelFunc09B4_0126;
		UcMessage("\"If I cannot remain here, we shall meet at the Blue Boar Inn in Moonshade.\"");
		UcSay;
		UI_set_new_schedules_B6(var0000, 0x0000, 0x001A, [0x08C1, 0x0710]);
		goto labelFunc09B4_0167;
	labelFunc09B4_0126:
		if(!(var0001 == "Fawn")) goto labelFunc09B4_014D;
		UcMessage("\"If I cannot stay here, I shall travel to Fawn. We can meet at the tavern there.\"");
		UcSay;
		UI_set_new_schedules_B6(var0000, 0x0000, 0x001A, [0x03AD, 0x06E2]);
		goto labelFunc09B4_0167;
	labelFunc09B4_014D:
		UcMessage("\"Let us meet at the abbey on Monk Isle, should I be forced to wander from this spot. No doubt Thoxa can fetch me there.\"");
		UcSay;
		UI_set_new_schedules_B6(var0000, 0x0000, 0x001A, [0x097C, 0x0464]);
	labelFunc09B4_0167:
		goto labelFunc09B4_0179;
	labelFunc09B4_016A:
		Func09AC(var0000, Dupre, 0x0000, 0x000C);
	labelFunc09B4_0179:
		return;
}
// externs
extern Func09B6 0x9B6 (var var0000, var var0001);

Func09B5 0x9B5 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;

	var0000 = 0x01EF;
	var0001 = [0x0B97, 0x0020, 0x0000];
	if(!((!gflags[0004]) && (!gflags[0250]))) goto labelFunc09B5_00D7;
	if(!(!gflags[024F])) goto labelFunc09B5_00BE;
	var0002 = [0x0931, 0x0190, 0x0000];
	UI_set_new_schedules_B6(0xFF80, 0x0000, 0x000F, var0002);
	UI_set_schedule_type_25(0xFF80, 0x000F);
	UI_move_object_4B(0xFF80, var0002);
	var0003 = [0x092B, 0x017E, 0x0000];
	UI_set_new_schedules_B6(0xFF81, 0x0000, 0x000F, var0003);
	UI_set_schedule_type_25(0xFF81, 0x000F);
	UI_move_object_4B(0xFF81, var0003);
	var0004 = [0x0921, 0x0176, 0x0000];
	var0005 = UI_create_new_object2_2D(0x0373, var0004);
	UI_set_npc_id_BD(var0005, 0x0002);
	UI_set_schedule_type_25(var0005, 0x000F);
	labelFunc09B5_00BE:
		gflags[024F] = true;
		var0000 = 0x013E;
		var0001 = [0x0927, 0x01AD, 0x0000];
	labelFunc09B5_00D7:
		if(!(gflags[0004] && ((!gflags[022D]) && (!(gflags[00D4] || (gflags[00D5] || gflags[00D3])))))) goto labelFunc09B5_014E;
		gflags[022C] = true;
		var0000 = 0xFEF8;
		var0001 = [0x09D9, 0x004E, 0x0000];
		var0006 = [0x09AC, 0x006E, 0x0000];
		UI_set_schedule_type_25(0xFEFA, 0x000F);
		UI_move_object_4B(0xFEFA, var0006);
		var0007 = [0x099F, 0x0073, 0x0000];
		UI_set_schedule_type_25(0xFEF9, 0x000F);
		UI_move_object_4B(0xFEF9, var0007);
	labelFunc09B5_014E:
		Func09B6(var0000, var0001);
		return;
}
// externs
extern Func07D1 0x7D1 (var var0000);

Func09B6 0x9B6 (var var0000, var var0001)
{
	var var0002;

	if(!((event == 0x0001) || ((event == 0x000D) || (event == 0x000E)))) goto labelFunc09B6_0052;
	if(!gflags[002A]) goto labelFunc09B6_001B;
	abrt();
	labelFunc09B6_001B:
		gflags[002A] = true;
		item;
		calle();
		UI_obj_sprite_effect_91(item, 0x0015, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, Dupre);
		var0002 = UI_delayed_execute_usecode_array_02(item, [0x23, 0x55, 0x0207], 0x000A);
	labelFunc09B6_0052:
		if(!(event == 0x0002)) goto labelFunc09B6_0113;
		if(!(var0001 == 0x01EF)) goto labelFunc09B6_008C;
		var0001 = UI_create_new_object2_2D(var0001, var0000);
		UI_set_item_flag_A4(var0001, 0x0012);
		UI_set_polymorph_B3(var0001, 0x00EF);
		gflags[000D] = true;
		goto labelFunc09B6_00E0;
	labelFunc09B6_008C:
		if(!(var0001 == 0x013E)) goto labelFunc09B6_00B0;
		var0001 = UI_create_new_object2_2D(0x013E, var0000);
		UI_set_item_flag_A4(var0001, 0x0012);
		goto labelFunc09B6_00E0;
	labelFunc09B6_00B0:
		UI_move_object_4B(var0001, var0000);
		if(!(var0001 != 0xFEF8)) goto labelFunc09B6_00E0;
		UI_set_new_schedules_B6(var0001, 0x0000, 0x001D, [var0000[0x0001], var0000[0x0002]]);
	labelFunc09B6_00E0:
		UI_set_schedule_type_25(var0001, 0x001D);
		UI_set_camera_AE(var0001);
		UI_end_conversation_86();
		UI_set_item_flag_A4(0xFE9C, 0x0010);
		UI_fade_palette_A8(0x000C, 0x0001, 0x0000);
		UI_UNKNOWN_9F(0x0000);
	labelFunc09B6_0113:
		return;
}
Func09B7 0x9B7 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;

	var0000 = [0xFF85, 0xFF86, 0xFF87, 0xFF88, 0xFF89];
	var0001 = 0x0000;
	enum();
	labelFunc09B7_001C:
		for (var0004 in var0000 with var0002 to var0003 atend labelFunc09B7_003B);
		var0001 = (var0001 + UI_get_item_flag_A3(var0004, 0x0004));
		goto labelFunc09B7_001C;
	labelFunc09B7_003B:
		if(!(var0001 == (UI_get_array_size_73(var0000) - 0x0001))) goto labelFunc09B7_005A;
		gflags[014E] = true;
		var0005 = "@Damn thee!@";
		goto labelFunc09B7_0060;
	labelFunc09B7_005A:
		var0005 = "@Grok...@";
	labelFunc09B7_0060:
		var0006 = UI_get_object_position_20(item);
		UI_set_item_flag_A4(item, 0x0004);
		UI_remove_npc_4C(item);
		var0007 = UI_create_new_object_2C(0x019E);
		if(!var0007) goto labelFunc09B7_014E;
		UI_set_item_frame_1B(var0007, 0x0004);
		UI_set_item_flag_A4(var0007, 0x0012);
		var0008 = UI_add_cont_items_36(var0007, 0x0001, 0x024B, 0x0000, 0x0006, true);
		var0008 = UI_add_cont_items_36(var0007, 0x0001, 0x0344, 0x0000, 0x0000, true);
		var0009 = UI_die_roll_17(0x0001, 0x0009);
		if(!(var0009 > 0x0005)) goto labelFunc09B7_0116;
		var0008 = UI_add_cont_items_36(var0007, 0x0001, 0x025D, 0x0000, 0x0000, true);
		var0008 = UI_add_cont_items_36(var0007, var0009, 0x0179, 0x0000, UI_die_roll_17(0x0001, 0x0008), true);
		goto labelFunc09B7_0144;
	labelFunc09B7_0116:
		var0008 = UI_add_cont_items_36(var0007, 0x0001, 0x0268, 0x0004, 0x0006, true);
		var0008 = UI_add_cont_items_36(var0007, var0009, 0x0250, 0x0000, 0x0000, true);
	labelFunc09B7_0144:
		var0008 = UI_update_last_created_2F(var0006);
	labelFunc09B7_014E:
		if(!(var0007 && var0008)) goto labelFunc09B7_016C;
		var0008 = UI_execute_usecode_array_01(var0007, [0x23, 0x52, var0005]);
	labelFunc09B7_016C:
		return;
}
Func09B8 0x9B8 ()
{
	if(!(!gflags[00D5])) goto labelFunc09B8_002E;
	UI_move_object_4B(0xFEFA, [0x0995, 0x006E, 0x0002]);
	UI_set_alignment_4A(0xFEFA, 0x0000);
	UI_set_schedule_type_25(0xFEFA, 0x0010);
	labelFunc09B8_002E:
		if(!(!gflags[00D3])) goto labelFunc09B8_005C;
		UI_move_object_4B(0xFEF9, [0x0999, 0x0075, 0x0001]);
		UI_set_alignment_4A(0xFEF9, 0x0000);
		UI_set_schedule_type_25(0xFEF9, 0x0010);
	labelFunc09B8_005C:
		if(!(!gflags[00D4])) goto labelFunc09B8_008A;
		UI_move_object_4B(0xFEF8, [0x0999, 0x0069, 0x0001]);
		UI_set_alignment_4A(0xFEF8, 0x0000);
		UI_set_schedule_type_25(0xFEF8, 0x0010);
	labelFunc09B8_008A:
		return;
}
var Func09B9 0x9B9 (var var0000, var var0001)
{
	var var0002;
	var rr;

	if(!(var0001 == 0x099F)) goto labelFunc09B9_0032;
	if(!(UI_die_roll_17(0x0000, 0x0001) == 0x0000)) goto labelFunc09B9_0028;
	var0001 = (var0001 + 0x0001);
	goto labelFunc09B9_0032;
	labelFunc09B9_0028:
		var0001 = (var0001 - 0x0001);
	labelFunc09B9_0032:
		if(!(var0000 == 0x006F)) goto labelFunc09B9_0064;
		if(!(UI_die_roll_17(0x0000, 0x0001) == 0x0000)) goto labelFunc09B9_005A;
		var0000 = (var0000 + 0x0001);
		goto labelFunc09B9_0064;
	labelFunc09B9_005A:
		var0000 = (var0000 - 0x0001);
	labelFunc09B9_0064:
		var0002 = [var0001, var0000, 0x0000];
		rr = var0002;
		return rr;
}
var Func09BA 0x9BA ()
{
	var rr;
	if(!(gflags[00D3] || (gflags[00D4] || gflags[00D5]))) goto labelFunc09BA_0013;
	rr = true;
	goto labelFunc09BA_0015;
	labelFunc09BA_0013:
		rr = false;
	labelFunc09BA_0015:
		return rr;
}
// externs
extern Func090D 0x90D (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005, var var0006);
extern var Func089D 0x89D (var var0000);
extern Func09BE 0x9BE (var var0000, var var0001);

Func09BB 0x9BB (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;

	if(!(var0000 == 0x0001)) goto labelFunc09BB_002D;
	if(!UI_in_usecode_8F(var0001)) goto labelFunc09BB_0015;
	exit2();
	labelFunc09BB_0015:
		Func090D(var0001, Shamino, Shamino, Dupre, 0x0631, var0001, 0x000A);
	labelFunc09BB_002D:
		if(!(var0000 == 0x0002)) goto labelFunc09BB_00C1;
		var0002 = UI_get_item_quality_1C(item);
		var0003 = UI_find_nearby_41(item, 0x0366, 0x000F, 0x0000);
		var0004 = UI_find_nearby_41(item, 0x0203, 0x000F, 0x0000);
		var0003 = (var0003 & var0004);
		var0004 = [];
		enum();
	labelFunc09BB_0072:
		for (var0007 in var0003 with var0005 to var0006 atend labelFunc09BB_0098);
		if(!(UI_get_item_quality_1C(var0007) == var0002)) goto labelFunc09BB_0095;
		var0004 = (var0004 & var0007);
	labelFunc09BB_0095:
		goto labelFunc09BB_0072;
	labelFunc09BB_0098:
		if(!Func089D(var0004)) goto labelFunc09BB_00BC;
		var0008 = UI_execute_usecode_array_01(item, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0004]);
		exit2();
	labelFunc09BB_00BC:
		Func09BE(item, false);
	labelFunc09BB_00C1:
		return;
}
// externs
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);

Func09BC 0x9BC (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0001 = UI_find_nearby_41(var0000, 0x0178, 0x0014, 0x0000);
	enum();
	labelFunc09BC_0014:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc09BC_003A);
		var0005 = Func0908(var0004, 0x010E, 0x0002, 0x0000, 0x0000, 0x0007);
		goto labelFunc09BC_0014;
	labelFunc09BC_003A:
		return;
}
// externs
extern var Func0908 0x908 (var var0000, var var0001, var var0002, var var0003, var var0004, var var0005);

Func09BD 0x9BD (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;

	var0001 = UI_find_nearby_41(var0000, 0x010E, 0x0014, 0x0000);
	enum();
	labelFunc09BD_0014:
		for (var0004 in var0001 with var0002 to var0003 atend labelFunc09BD_003A);
		var0005 = Func0908(var0004, 0x0178, 0x0001, 0x0000, 0x0000, 0x0007);
		goto labelFunc09BD_0014;
	labelFunc09BD_003A:
		return;
}
// externs
extern var Func0920 0x920 ();
extern var Func0992 0x992 (var var0000, var var0001, var var0002, var var0003);
extern Func09BC 0x9BC (var var0000);
extern Func09BD 0x9BD (var var0000);
extern var Func0942 0x942 (var var0000);

Func09BE 0x9BE (var var0000, var var0001)
{
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;
	var var000B;
	var var000C;
	var var000D;
	var var000E;
	var var000F;

	var0002 = (UI_find_nearby_avatar_3C(0x010F) & UI_find_nearby_avatar_3C(0x0110));
	var0003 = false;
	enum();
	labelFunc09BE_0017:
		for (var0006 in var0002 with var0004 to var0005 atend labelFunc09BE_005D);
		if(!(UI_get_item_quality_1C(var0006) == UI_get_item_quality_1C(var0001))) goto labelFunc09BE_005A;
		var0007 = Func0920();
		var0007 = UI_execute_usecode_array_01(var0001, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0006]);
		var0003 = true;
	labelFunc09BE_005A:
		goto labelFunc09BE_0017;
	labelFunc09BE_005D:
		if(!(!var0003)) goto labelFunc09BE_02B2;
		var0008 = UI_get_item_quality_1C(var0001);
		if(!((var0008 >= 0x00C8) && (var0008 <= 0x00CC))) goto labelFunc09BE_02B2;
		var0003 = true;
		var0007 = UI_execute_usecode_array_01(var0001, [0x46, 0x0001, 0x4E, 0x0B, Dupre, 0x0006]);
		if(!(var0008 == 0x00C8)) goto labelFunc09BE_00F2;
		var0009 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@Nothing is happening.@"], 0x000A);
		var000A = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc09BE_00F2;
		var0009 = UI_delayed_execute_usecode_array_02(var000A, [0x23, 0x52, "@Perhaps it requires something.@"], 0x000F);
	labelFunc09BE_00F2:
		if(!(var0008 == 0x00C9)) goto labelFunc09BE_015E;
		var0009 = UI_set_item_quality_1D(var0001, 0x00CA);
		UI_set_weather_53(0x0002);
		var000A = Func0992(0x0001, 0x0000, 0x0000, false);
		if(!(var000A != 0xFE9C)) goto labelFunc09BE_0141;
		var0009 = UI_delayed_execute_usecode_array_02(var000A, [0x23, 0x52, "@The sky doth threaten rain.@"], 0x000A);
	labelFunc09BE_0141:
		var0009 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x52, "@Even as Gustacio said.@"], 0x0014);
		Func09BC(var0001);
	labelFunc09BE_015E:
		if(!(var0008 == 0x00CA)) goto labelFunc09BE_022A;
		if(!(gflags[0121] && (gflags[0122] && gflags[0123]))) goto labelFunc09BE_0210;
		var000B = UI_find_nearby_41(var0001, 0x01C2, 0x0014, 0x0000);
		enum();
	labelFunc09BE_018A:
		for (var000E in var000B with var000C to var000D atend labelFunc09BE_01E9);
		if(!(UI_get_item_frame_1A(var000E) == 0x0002)) goto labelFunc09BE_01E6;
		var000F = UI_get_object_position_20(var000E);
		UI_sprite_effect_68(0x0001, (var000F[0x0001] - 0x0006), (var000F[0x0002] - 0x0006), 0x0000, 0x0000, 0x0000, Dupre);
		UI_play_sound_effect_16(0x0029);
		UI_remove_item_84(var000E);
		gflags[00E3] = true;
	labelFunc09BE_01E6:
		goto labelFunc09BE_018A;
	labelFunc09BE_01E9:
		var0009 = UI_set_item_quality_1D(var0001, 0x00C8);
		var0009 = UI_delayed_execute_usecode_array_02(0xFE9C, [0x23, 0x55, 0x07EF], 0x000A);
		goto labelFunc09BE_0224;
	labelFunc09BE_0210:
		UI_set_weather_53(0x0000);
		var0009 = UI_set_item_quality_1D(var0001, 0x00C9);
	labelFunc09BE_0224:
		Func09BD(var0001);
	labelFunc09BE_022A:
		if(!(var0008 == 0x00CB)) goto labelFunc09BE_028E;
		var0009 = UI_set_item_quality_1D(var0001, 0x00CC);
		UI_set_weather_53(0x0002);
		if(!Func0942(Iolo)) goto labelFunc09BE_0268;
		var0009 = UI_delayed_execute_usecode_array_02(Iolo, [0x23, 0x52, "It doth storm again!"], 0x000A);
	labelFunc09BE_0268:
		if(!Func0942(Shamino)) goto labelFunc09BE_0288;
		var0009 = UI_delayed_execute_usecode_array_02(Shamino, [0x23, 0x52, "I should have brought a kite."], 0x0014);
	labelFunc09BE_0288:
		Func09BC(var0001);
	labelFunc09BE_028E:
		if(!(var0008 == 0x00CC)) goto labelFunc09BE_02B2;
		UI_set_weather_53(0x0000);
		var0009 = UI_set_item_quality_1D(var0001, 0x00CB);
		Func09BD(var0001);
	labelFunc09BE_02B2:
		if(!(var0003 && var0000)) goto labelFunc09BE_02DC;
		var0007 = UI_execute_usecode_array_01(0xFE9C, [0x59, 0x0006, 0x01, 0x6C, 0x61, 0x0B, Shamino, 0x0004]);
	labelFunc09BE_02DC:
		return;
}
// externs
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func09BF 0x9BF ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;

	var0000 = [0x009A, 0x066C, 0x0000];
	var0001 = UI_die_roll_17(0x0001, 0x0006);
	var0002 = UI_die_roll_17(0x0001, 0x0006);
	var0000[0x0001] = (var0000[0x0001] + var0001);
	var0000[0x0002] = (var0000[0x0002] + var0002);
	UI_sprite_effect_68(0x0015, var0000[0x0001], var0000[0x0002], 0x0000, 0x0000, 0x0000, Dupre);
	UI_play_sound_effect_16(0x0082);
	var0003 = UI_create_new_object_2C(0x0200);
	if(!var0003) goto labelFunc09BF_0089;
	var0004 = UI_update_last_created_2F(var0000);
	labelFunc09BF_0089:
		var0005 = Func09A0(0x0004, 0x0002);
		var0006 = UI_set_item_quality_1D(var0005, 0x0000);
		if(!(!var0004)) goto labelFunc09BF_00B0;
		UI_error_message_40("error, somebody stepped on the worm!-ewb");
	labelFunc09BF_00B0:
		return;
}
// externs
extern Func097F 0x97F (var var0000, var var0001, var var0002);
extern var Func09A0 0x9A0 (var var0000, var var0001);

Func09C0 0x9C0 (var var0000)
{
	var var0001;
	var var0002;
	var var0003;
	var var0004;

	gflags[01F4] = true;
	if(!(var0000 == 0x0001)) goto labelFunc09C0_0022;
	var0001 = UI_execute_usecode_array_01(0xFF4C, [0x23, 0x55, 0x04B4]);
	labelFunc09C0_0022:
		if(!(gflags[01F4] && (var0000 == 0x0004))) goto labelFunc09C0_0048;
		gflags[01F5] = true;
		var0001 = UI_execute_usecode_array_01(0xFF4C, [0x23, 0x55, 0x04B4]);
	labelFunc09C0_0048:
		if(!(gflags[01F5] && (var0000 == 0x0007))) goto labelFunc09C0_006E;
		gflags[01F6] = true;
		var0001 = UI_execute_usecode_array_01(0xFF4C, [0x23, 0x55, 0x04B4]);
	labelFunc09C0_006E:
		if(!((gflags[01F6] == true) && (var0000 == 0x0009))) goto labelFunc09C0_0096;
		gflags[01F7] = true;
		var0001 = UI_execute_usecode_array_01(0xFF4C, [0x23, 0x55, 0x04B4]);
	labelFunc09C0_0096:
		if(!(gflags[01F7] && (var0000 == 0x000A))) goto labelFunc09C0_00BC;
		gflags[01F8] = true;
		var0001 = UI_execute_usecode_array_01(0xFF4C, [0x23, 0x55, 0x04B4]);
	labelFunc09C0_00BC:
		if(!((var0000 > 0x0002) && (var0000 < 0x000A))) goto labelFunc09C0_014D;
		var0002 = ["@These Worms are pitiful.@", "@Die, Worm! Die!@", "@Killing Worms can be boring.@", "@I'm not giving up!@", "@Begone, vile red wiggler!@", "@At least 'tis quiet in here...@"];
		var0003 = UI_die_roll_17(0x0001, 0x0006);
		Func097F(0xFE9C, var0002[var0003], 0x000C);
		if(!((var0003 == 0x0006) && (var0000 < 0x0007))) goto labelFunc09C0_014D;
		var0004 = Func09A0(0x0000, 0x0001);
		var0001 = UI_delayed_execute_usecode_array_02(var0004, [0x54, 0x000C], 0x0019);
		Func097F(0xFE9C, "@Aarrrgh!@", 0x0028);
		Func097F(0xFE9C, "@A TRUE test of patience.@", 0x0037);
	labelFunc09C0_014D:
		return;
}
Func09C1 0x9C1 ()
{
	var var0000;
	var var0001;
	var var0002;
	var var0003;
	var var0004;
	var var0005;
	var var0006;
	var var0007;
	var var0008;
	var var0009;
	var var000A;

	var0000 = UI_find_nearby_41(item, 0x020A, 0x0028, 0x00B0);
	var0001 = UI_get_array_size_73(var0000);
	if(!(var0001 > 0x0000)) goto labelFunc09C1_0118;
	var0002 = [0x02C7, 0x025C, 0x03B7, 0x03B8, 0x03A9, 0x025D, 0x025E, 0x022C, 0x022A, 0x0225, 0x0228, 0x0275, 0x0276, 0x0288];
	var0003 = [0x0000, 0x0000, 0x00FA, 0x00FA, 0x0000, 0x0000, 0x0000, 0x00C8, 0x00C8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000];
	var0004 = [0x0000, 0x000A, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00FF, 0x00FF, 0x0000];
	var0005 = 0x0000;
	enum();
	labelFunc09C1_00BC:
		for (var0008 in var0002 with var0006 to var0007 atend labelFunc09C1_0118);
		var0005 = (var0005 + 0x0001);
		var0009 = UI_create_new_object_2C(var0008);
		if(!var0009) goto labelFunc09C1_0115;
		var000A = UI_set_item_quality_1D(var0009, var0004[var0005]);
		var000A = UI_set_item_quantity_1F(var0009, var0003[var0005]);
		var000A = UI_give_last_created_43(var0000[UI_die_roll_17(0x0001, var0001)]);
	labelFunc09C1_0115:
		goto labelFunc09C1_00BC;
	labelFunc09C1_0118:
		return;
}
Functions: 1237

