Removing custom setting from quest Linnaeus Special Bait (53).

This commit is contained in:
MobiusDev 2018-03-12 00:35:54 +00:00
parent a471e00ed2
commit bf613fc221
2 changed files with 3 additions and 23 deletions

View File

@ -1,5 +1,5 @@
<html><body>Fishermen's Guild Member Linnaeus:<br>
Not long ago while fishing, I caught several strange boxes containing assorted valuable items. They ended up being more valuable than fish!<br>
A while back, I accidently reeled in several strange boxes while fishing. When I opened them, I discovered that they contained many valuable items, much more precious than fish!<br>
I have a knack for finding these boxes, but I can't show you how to do it yet.<br>
(This quest may only be undertaken by a character of level 60 or above with a fishing skill of 20.)
(This quest may only be undertaken by a character of level 60 or above.)
</body></html>

View File

@ -23,7 +23,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.model.skills.BuffInfo;
/**
* Linnaeus Special Bait (53)<br>
@ -38,10 +37,6 @@ public class Q00053_LinnaeusSpecialBait extends Quest
// Items
private static final int CRIMSON_DRAKE_HEART = 7624;
private static final int FLAMING_FISHING_LURE = 7613;
// Misc
// Custom setting: whether or not to check for fishing skill level?
// Default False to require fishing skill level, any other value to ignore fishing and evaluate char level only.
private static final boolean ALT_IGNORE_FISHING = false;
public Q00053_LinnaeusSpecialBait()
{
@ -132,7 +127,7 @@ public class Q00053_LinnaeusSpecialBait extends Quest
}
case State.CREATED:
{
htmltext = ((player.getLevel() > 59) && (fishingLevel(player) > 19)) ? "31577-0.htm" : "31577-0a.html";
htmltext = (player.getLevel() > 59) ? "31577-0.htm" : "31577-0a.html";
break;
}
case State.STARTED:
@ -143,19 +138,4 @@ public class Q00053_LinnaeusSpecialBait extends Quest
}
return htmltext;
}
private static int fishingLevel(L2PcInstance player)
{
int level = 20;
if (!ALT_IGNORE_FISHING)
{
level = player.getSkillLevel(1315);
final BuffInfo info = player.getEffectList().getBuffInfoBySkillId(2274);
if (info != null)
{
level = (int) info.getSkill().getPower();
}
}
return level;
}
}