@LabelIndex 354666
@StringIndex 50733
class 0 fisher_linneaus : fisher {
property:
	BuySellList SellList0 = {{"green_lure_easy";20};{"violet_lure_easy";20};{"yellow_lure_easy";20};{"green_lure_average";20};{"violet_lure_average";20};{"yellow_lure_average";20};{"green_luminous_lure";20};{"purple_luminous_lure";20};{"yellow_luminous_lure";20};{"prize_winning_fishing_lure";20};{"prize_winning_night_fishing_lure";20};{"prize_winning_novice_fishing_lure";20};{"fp_babyduck_rod";20};{"fp_albatros_rod";20};{"fp_pelican_rod";20};{"fp_kingfisher_rod";20};{"fp_cygnus_pole";20};{"fp_triton_pole";20};{"fishing_manual";20};{"fisherman_s_potion_green";20};{"fisherman_s_potion_jade";20};{"fisherman_s_potion_blue";20};{"fisherman_s_potion_yellow";20};{"fisherman_s_potion_orange";20};{"fisherman_s_potion_purple";20};{"fisherman_s_potion_red";20};{"fisherman_s_potion_white";20};{"fishing_potion";20}};

handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,426) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Quest for Fishing shot");
			}
			if( gg::HaveMemo(talker,426) == 1 && gg::OwnItemCount(talker,7586) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Quest for Fishing shot (In Progress)");
			}
			if( gg::HaveMemo(talker,426) == 1 && gg::OwnItemCount(talker,7586) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Quest for Fishing shot (In Progress)");
			}
			if( talker.level >= 60 && gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Chest caught with a Bait of Flame");
			}
			if( talker.level < 60 && gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Chest caught with a Bait of Flame");
			}
			if( gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Chest caught with a Bait of Flame (Done)");
			}
			if( gg::HaveMemo(talker,30) == 1 && myself::GetOneTimeQuestFlag(talker,30) == 0 && gg::GetMemoState(talker,30) == ( ( 1 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Chest caught with a Bait of Flame (In Progress)");
			}
			if( gg::HaveMemo(talker,30) == 1 && myself::GetOneTimeQuestFlag(talker,30) == 0 && gg::GetMemoState(talker,30) == ( ( 2 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Chest caught with a Bait of Flame (In Progress)");
			}
			if( talker.level >= 60 && gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Linnaeus' Special Bait");
			}
			if( talker.level < 60 && gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Linnaeus' Special Bait");
			}
			if( gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Linnaeus' Special Bait (Done)");
			}
			if( gg::HaveMemo(talker,53) == 1 && gg::GetMemoState(talker,53) >= ( ( 1 * 10 ) + 1 ) && gg::GetMemoState(talker,53) <= ( ( 1 * 10 ) + 2 ) && myself::GetOneTimeQuestFlag(talker,53) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Linnaeus' Special Bait (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,426) == 0 ) {
						myself::SetCurrentQuestID(426);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( myself::GetMemoCount(talker) < 26 ) {
							myself::FHTML_SetFileName(fhtml0,"fisher_berix_q0426_01.htm");
							myself::FHTML_SetInt(fhtml0,"quest_id",426);
							myself::ShowQuestFHTML(talker,fhtml0,426);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,426) == 1 && gg::OwnItemCount(talker,7586) == 0 ) ) {
						myself::SetCurrentQuestID(426);
						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,"fisher_berix_q0426_04.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,426) == 1 && gg::OwnItemCount(talker,7586) >= 1 ) ) {
						myself::SetCurrentQuestID(426);
						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,"fisher_berix_q0426_05.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( talker.level >= 60 && gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 0 ) ) {
						myself::SetCurrentQuestID(30);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( myself::GetMemoCount(talker) < 26 ) {
							if( myself::GetOneTimeQuestFlag(talker,53) == 1 ) {
								myself::FHTML_SetFileName(fhtml0,"fisher_linneaus_q0030_0101.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",30);
								myself::ShowQuestFHTML(talker,fhtml0,30);
							} else {
								myself::ShowQuestPage(talker,"fisher_linneaus_q0030_0102.htm",30);
							}
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( talker.level < 60 && gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 0 ) ) {
						myself::SetCurrentQuestID(30);
						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,"fisher_linneaus_q0030_0103.htm");
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,30) == 0 && myself::GetOneTimeQuestFlag(talker,30) == 1 ) ) {
						myself::SetCurrentQuestID(30);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"finishedquest.htm");
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,30) == 1 && myself::GetOneTimeQuestFlag(talker,30) == 0 && gg::GetMemoState(talker,30) == ( ( 1 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(30);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( gg::OwnItemCount(talker,6511) >= 1 ) {
							myself::SetHTMLCookie(talker,30,1);
							myself::ShowPage(talker,"fisher_linneaus_q0030_0105.htm");
						} else {
							myself::ShowPage(talker,"fisher_linneaus_q0030_0106.htm");
						}
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,30) == 1 && myself::GetOneTimeQuestFlag(talker,30) == 0 && gg::GetMemoState(talker,30) == ( ( 2 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(30);
						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,"fisher_linneaus_q0030_0203.htm");
					}
					break;
				}
				case 8: {
					if( _from_choice == 0 || ( talker.level >= 60 && gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) ) {
						myself::SetCurrentQuestID(53);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( myself::GetMemoCount(talker) < 26 ) {
							myself::FHTML_SetFileName(fhtml0,"fisher_linneaus_q0053_0101.htm");
							myself::FHTML_SetInt(fhtml0,"quest_id",53);
							myself::ShowQuestFHTML(talker,fhtml0,53);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 9: {
					if( _from_choice == 0 || ( talker.level < 60 && gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) ) {
						myself::SetCurrentQuestID(53);
						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,"fisher_linneaus_q0053_0103.htm");
					}
					break;
				}
				case 10: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,53) == 0 && myself::GetOneTimeQuestFlag(talker,53) == 1 ) ) {
						myself::SetCurrentQuestID(53);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"finishedquest.htm");
					}
					break;
				}
				case 11: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,53) == 1 && gg::GetMemoState(talker,53) >= ( ( 1 * 10 ) + 1 ) && gg::GetMemoState(talker,53) <= ( ( 1 * 10 ) + 2 ) && myself::GetOneTimeQuestFlag(talker,53) == 0 ) ) {
						myself::SetCurrentQuestID(53);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( gg::GetMemoState(talker,53) == ( ( 1 * 10 ) + 2 ) && gg::OwnItemCount(talker,7624) >= 100 ) {
							myself::SetHTMLCookie(talker,53,1);
							myself::ShowPage(talker,"fisher_linneaus_q0053_0105.htm");
						} else {
							myself::ShowPage(talker,"fisher_linneaus_q0053_0106.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker) {
		if( quest_id == 426 ) {
			myself::SetCurrentQuestID(426);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
			if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				myself::SetMemo(talker,quest_id);
				myself::ShowQuestMark(talker,quest_id);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"fisher_berix_q0426_03.htm",426);
				gg::AddLog(1,talker,quest_id);
			}
			return;
		}
		if( quest_id == 30 ) {
			myself::SetCurrentQuestID(30);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
			if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				myself::SetMemo(talker,30);
				myself::ShowQuestMark(talker,30);
				myself::SetMemoState(talker,30,( ( 1 * 10 ) + 1 ));
				gg::AddLog(1,talker,30);
				myself::SetFlagJournal(talker,30,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"fisher_linneaus_q0030_0104.htm",30);
			}
			return;
		}
		if( quest_id == 53 ) {
			myself::SetCurrentQuestID(53);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
			if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
				talker.quest_last_reward_time = myself::GetCurrentTick();
				myself::SetMemo(talker,53);
				myself::ShowQuestMark(talker,53);
				myself::SetMemoState(talker,53,( ( 1 * 10 ) + 1 ));
				gg::AddLog(1,talker,53);
				myself::SetFlagJournal(talker,53,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"fisher_linneaus_q0053_0104.htm",53);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,i1,quest_id,reply,talker) {
		if( ask == 426 ) {
			myself::SetCurrentQuestID(426);
			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 == 426 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"fisher_berix_q0426_06.htm");
			}
			if( reply == 2 ) {
				myself::ShowPage(talker,"fisher_berix_q0426_07.htm");
			}
			if( reply == 3 ) {
				myself::RemoveMemo(talker,426);
				myself::SoundEffect(talker,"ItemSound.quest_finish");
				myself::ShowPage(talker,"fisher_berix_q0426_08.htm");
			}
		}
		if( ask == 30 ) {
			myself::SetCurrentQuestID(30);
			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 == 30 ) {
			i0 = myself::GetHTMLCookie(talker,30,( 2 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,30) == 1 && myself::GetOneTimeQuestFlag(talker,30) == 0 ) {
					if( gg::OwnItemCount(talker,6511) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,6511,1);
							myself::GiveItem1(talker,7628,1);
							myself::ShowPage(talker,"fisher_linneaus_q0030_0201.htm");
							myself::SetMemoState(talker,30,( ( 2 * 10 ) + 1 ));
							myself::SetFlagJournal(talker,30,2);
							myself::ShowQuestMark(talker,30);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					} else {
						myself::ShowPage(talker,"fisher_linneaus_q0030_0202.htm");
					}
				}
			}
		}
		if( ask == 53 ) {
			myself::SetCurrentQuestID(53);
			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 == 53 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) {
			i0 = myself::GetHTMLCookie(talker,53,( 2 - 1 ));
			if( i0 != -1 ) {
				if( reply == 3 && gg::HaveMemo(talker,53) == 1 && myself::GetOneTimeQuestFlag(talker,53) == 0 ) {
					if( gg::OwnItemCount(talker,7624) >= 100 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7624,gg::OwnItemCount(talker,7624));
							myself::GiveItem1(talker,7613,4);
						}
						gg::AddLog(2,talker,53);
						myself::RemoveMemo(talker,53);
						myself::SetOneTimeQuestFlag(talker,53,1);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						myself::ShowPage(talker,"fisher_linneaus_q0053_0201.htm");
					} else {
						myself::ShowPage(talker,"fisher_linneaus_q0053_0202.htm");
					}
				}
			}
		}
		super;
	}

}
