Removing custom setting from quest Linnaeus Special Bait (53).
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<html><body>Fishermen's Guild Member Linnaeus:<br>
|
<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>
|
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>
|
</body></html>
|
@@ -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.Quest;
|
||||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||||
import com.l2jmobius.gameserver.model.quest.State;
|
import com.l2jmobius.gameserver.model.quest.State;
|
||||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Linnaeus Special Bait (53)<br>
|
* Linnaeus Special Bait (53)<br>
|
||||||
@@ -38,10 +37,6 @@ public class Q00053_LinnaeusSpecialBait extends Quest
|
|||||||
// Items
|
// Items
|
||||||
private static final int CRIMSON_DRAKE_HEART = 7624;
|
private static final int CRIMSON_DRAKE_HEART = 7624;
|
||||||
private static final int FLAMING_FISHING_LURE = 7613;
|
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()
|
public Q00053_LinnaeusSpecialBait()
|
||||||
{
|
{
|
||||||
@@ -132,7 +127,7 @@ public class Q00053_LinnaeusSpecialBait extends Quest
|
|||||||
}
|
}
|
||||||
case State.CREATED:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case State.STARTED:
|
case State.STARTED:
|
||||||
@@ -143,19 +138,4 @@ public class Q00053_LinnaeusSpecialBait extends Quest
|
|||||||
}
|
}
|
||||||
return htmltext;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user