@LabelIndex 30410
@StringIndex 5616
class 0 ssq_npc_depravity_priest : citizen {
parameter:

handler:
	EventHandler TALKED(talker) {
		myself::ShowPage(talker,"marketeer_of_mammon001.htm");
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,i1,i2,i3) {
		if( ask == 506 ) {
			if( reply == 3 ) {
				myself::ShowPage(talker,"marketeer_of_mammon_q0506_04.htm");
			} else if( reply == 4 ) {
				myself::ShowPage(talker,"marketeer_of_mammon_q0506_04.htm");
			} else if( reply == 5 ) {
				myself::ShowPage(talker,"marketeer_of_mammon_q0506_04.htm");
			}
		} else if( ask == -240 ) {
			if( gg::OwnItemCount(talker,5575) < reply ) {
				myself::ShowPage(talker,"marketeer_of_mammon_q0506_12.htm");
			} else if( reply <= 0 ) {
				myself::ShowPage(talker,"marketeer_of_mammon_q0506_14.htm");
			} else if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
			myself::DeleteItem1(talker,5575,reply);
			myself::GiveItem1(talker,57,reply);
			myself::ShowPage(talker,"marketeer_of_mammon_q0506_13.htm");
		}
		super;
	}

}
