@LabelIndex 377954
@StringIndex 55528
class 0 bloody_pixy : guardian {
handler:
	EventHandler TALK_SELECTED(talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Testimony of Fate (In Progress)");
			}
			if( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) && ( gg::OwnItemCount(talker,3194) < 1 || gg::OwnItemCount(talker,3195) < 1 || gg::OwnItemCount(talker,3196) < 1 || gg::OwnItemCount(talker,3197) < 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Testimony of Fate (In Progress)");
			}
			if( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) && gg::OwnItemCount(talker,3194) >= 1 && gg::OwnItemCount(talker,3195) >= 1 && gg::OwnItemCount(talker,3196) >= 1 && gg::OwnItemCount(talker,3197) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Testimony of Fate (In Progress)");
			}
			if( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) && gg::OwnItemCount(talker,3193) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Testimony of Fate (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) == 0 ) ) {
						myself::SetCurrentQuestID(219);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"bloody_pixy_q0219_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) && ( gg::OwnItemCount(talker,3194) < 1 || gg::OwnItemCount(talker,3195) < 1 || gg::OwnItemCount(talker,3196) < 1 || gg::OwnItemCount(talker,3197) < 1 ) ) ) {
						myself::SetCurrentQuestID(219);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"bloody_pixy_q0219_03.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) == 0 && gg::OwnItemCount(talker,3193) && gg::OwnItemCount(talker,3194) >= 1 && gg::OwnItemCount(talker,3195) >= 1 && gg::OwnItemCount(talker,3196) >= 1 && gg::OwnItemCount(talker,3197) >= 1 ) ) {
						myself::SetCurrentQuestID(219);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::ShowPage(talker,"bloody_pixy_q0219_04.htm");
							myself::GiveItem1(talker,3198,1);
							myself::DeleteItem1(talker,3193,1);
							myself::DeleteItem1(talker,3194,gg::OwnItemCount(talker,3194));
							myself::DeleteItem1(talker,3195,gg::OwnItemCount(talker,3195));
							myself::DeleteItem1(talker,3196,gg::OwnItemCount(talker,3196));
							myself::DeleteItem1(talker,3197,gg::OwnItemCount(talker,3197));
						}
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,219) == 1 && gg::OwnItemCount(talker,3190) && gg::OwnItemCount(talker,3192) && gg::OwnItemCount(talker,3198) && gg::OwnItemCount(talker,3193) == 0 ) ) {
						myself::SetCurrentQuestID(219);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"bloody_pixy_q0219_05.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 219 ) {
			myself::SetCurrentQuestID(219);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
		}
		if( ask == 219 ) {
			if( reply == 1 ) {
				if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
					talker.quest_last_reward_time = myself::GetCurrentTick();
					myself::ShowPage(talker,"bloody_pixy_q0219_02.htm");
					myself::GiveItem1(talker,3193,1);
				}
			}
		}
		super;
	}

}
