public override void OnClick() { if (!(m_Mobile is PlayerMobile)) { return; } string myQuest = CharacterDatabase.GetQuestInfo(m_Mobile, "FishingQuest"); int nAllowedForAnotherQuest = FishingQuestFunctions.QuestTimeNew(m_Mobile); int nServerQuestTimeAllowed = DifficultyLevel.GetTimeBetweenQuests(); int nWhenForAnotherQuest = nServerQuestTimeAllowed - nAllowedForAnotherQuest; string sAllowedForAnotherQuest = nWhenForAnotherQuest.ToString(); if (CharacterDatabase.GetQuestState(m_Mobile, "FishingQuest")) { m_Mobile.PrivateOverheadMessage(MessageType.Regular, 1150, false, "You are already on a quest. Return here when you are done.", m_Mobile.NetState); } else if (nWhenForAnotherQuest > 0) { m_Mobile.PrivateOverheadMessage(MessageType.Regular, 1150, false, "There are no quests at the moment. Check back in " + sAllowedForAnotherQuest + " minutes.", m_Mobile.NetState); } else { int nFame = m_Mobile.Fame * 2; nFame = Utility.RandomMinMax(0, nFame) + 2000; FishingQuestFunctions.FindTarget(m_Mobile, nFame); string TellQuest = FishingQuestFunctions.QuestStatus(m_Mobile) + "."; m_Mobile.PrivateOverheadMessage(MessageType.Regular, 1150, false, TellQuest, m_Mobile.NetState); } }