Sync with L2JServer Jan 26th 2015.
This commit is contained in:
@@ -58,17 +58,17 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
|
||||
{
|
||||
final long currentCount = st.getQuestItemsCount(ZAKENS_SOUL_FRAGMENT);
|
||||
final long currentCount = getQuestItemsCount(player, ZAKENS_SOUL_FRAGMENT);
|
||||
final long count = getRandom(1, 3);
|
||||
if (count >= (FRAGMENT_COUNT - currentCount))
|
||||
{
|
||||
st.giveItems(ZAKENS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
|
||||
giveItems(player, ZAKENS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveItems(ZAKENS_SOUL_FRAGMENT, count);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
giveItems(player, ZAKENS_SOUL_FRAGMENT, count);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -96,11 +96,6 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
switch (st.getState())
|
||||
{
|
||||
@@ -120,10 +115,10 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
if (st.getQuestItemsCount(ZAKENS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
|
||||
if (getQuestItemsCount(player, ZAKENS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
|
||||
{
|
||||
st.giveItems(SOUL_CLOAK_OF_ZAKEN, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
giveItems(player, SOUL_CLOAK_OF_ZAKEN, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "32612-06.html";
|
||||
}
|
||||
|
Reference in New Issue
Block a user