Various quest improvements.

Contributed by Stayway.
This commit is contained in:
MobiusDev
2018-05-16 19:33:45 +00:00
parent 49470fa7da
commit a139893389
6 changed files with 84 additions and 60 deletions

View File

@@ -52,8 +52,8 @@ public class Q11001_TombsOfAncestors extends Quest
private static final int ORC = 20130;
private static final int ORC_SOLDIER = 20131;
private static final int ORC_ARCHER = 20006;
private static final int ORC_WARRIOR = 20386;
private static final int WEREWOLVES = 20387;
private static final int ORC_WARRIOR = 20093;
private static final int WEREWOLVES = 20132;
// Misc
private static final int MIN_LVL = 2;
private static final int MAX_LVL = 20;
@@ -197,7 +197,9 @@ public class Q11001_TombsOfAncestors extends Quest
case WOLF:
case ELDER_WOLF:
{
if (qs.isCond(2))
if (qs.isCond(2) && (getQuestItemsCount(killer, WOLF_PELT) < 10))
{
if (getRandom(100) < 93)
{
giveItems(killer, WOLF_PELT, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -207,13 +209,16 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(3);
}
}
}
break;
}
case ORC:
case ORC_SOLDIER:
case ORC_ARCHER:
{
if (qs.isCond(3))
if (qs.isCond(3) && (getQuestItemsCount(killer, ORC_AMULET) < 10))
{
if (getRandom(100) < 93)
{
giveItems(killer, ORC_AMULET, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -223,11 +228,14 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(4);
}
}
}
break;
}
case ORC_WARRIOR:
{
if (qs.isCond(4))
if (qs.isCond(4) && (getQuestItemsCount(killer, BROKEN_SWORD) < 10))
{
if (getRandom(100) < 89)
{
giveItems(killer, BROKEN_SWORD, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -237,11 +245,14 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(5);
}
}
}
break;
}
case WEREWOLVES:
{
if (qs.isCond(4))
if (qs.isCond(4) && (getQuestItemsCount(killer, WEREWOLFS_FANG) < 10))
{
if (getRandom(100) < 100)
{
giveItems(killer, WEREWOLFS_FANG, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -251,6 +262,7 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(5);
}
}
}
break;
}
}

View File

@@ -208,8 +208,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(3);
}
}
break;
}
break;
}
case WEREWOLF_HUMTER:
case WEREWOLF_CHIEFTAIN:
@@ -226,8 +226,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(4);
}
}
break;
}
break;
}
case CRASHER:
case STONE_GOLEM:
@@ -244,8 +244,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(5);
}
}
break;
}
break;
}
}
}

View File

@@ -1,5 +1,5 @@
<html><body>Weapon Merchant Lector:<br>
Oh! Have you chnaged your mind?<br>
Oh! Have you changed your mind?<br>
With just a bit more of your help I could make a real masterpiece here.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11004_PerfectLeatherArmor2 30001-02.htm">"Okay, I will help you."</Button><br>
</body></html>

View File

@@ -52,8 +52,8 @@ public class Q11001_TombsOfAncestors extends Quest
private static final int ORC = 20130;
private static final int ORC_SOLDIER = 20131;
private static final int ORC_ARCHER = 20006;
private static final int ORC_WARRIOR = 20386;
private static final int WEREWOLVES = 20387;
private static final int ORC_WARRIOR = 20093;
private static final int WEREWOLVES = 20132;
// Misc
private static final int MIN_LVL = 2;
private static final int MAX_LVL = 20;
@@ -197,7 +197,9 @@ public class Q11001_TombsOfAncestors extends Quest
case WOLF:
case ELDER_WOLF:
{
if (qs.isCond(2))
if (qs.isCond(2) && (getQuestItemsCount(killer, WOLF_PELT) < 10))
{
if (getRandom(100) < 93)
{
giveItems(killer, WOLF_PELT, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -207,13 +209,16 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(3);
}
}
}
break;
}
case ORC:
case ORC_SOLDIER:
case ORC_ARCHER:
{
if (qs.isCond(3))
if (qs.isCond(3) && (getQuestItemsCount(killer, ORC_AMULET) < 10))
{
if (getRandom(100) < 93)
{
giveItems(killer, ORC_AMULET, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -223,11 +228,14 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(4);
}
}
}
break;
}
case ORC_WARRIOR:
{
if (qs.isCond(4))
if (qs.isCond(4) && (getQuestItemsCount(killer, BROKEN_SWORD) < 10))
{
if (getRandom(100) < 89)
{
giveItems(killer, BROKEN_SWORD, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -237,11 +245,14 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(5);
}
}
}
break;
}
case WEREWOLVES:
{
if (qs.isCond(4))
if (qs.isCond(4) && (getQuestItemsCount(killer, WEREWOLFS_FANG) < 10))
{
if (getRandom(100) < 100)
{
giveItems(killer, WEREWOLFS_FANG, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_MIDDLE);
@@ -251,6 +262,7 @@ public class Q11001_TombsOfAncestors extends Quest
qs.setCond(5);
}
}
}
break;
}
}

View File

@@ -208,8 +208,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(3);
}
}
break;
}
break;
}
case WEREWOLF_HUMTER:
case WEREWOLF_CHIEFTAIN:
@@ -226,8 +226,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(4);
}
}
break;
}
break;
}
case CRASHER:
case STONE_GOLEM:
@@ -244,8 +244,8 @@ public class Q11002_HelpWithTempleRestoration extends Quest
qs.setCond(5);
}
}
break;
}
break;
}
}
}

View File

@@ -1,5 +1,5 @@
<html><body>Weapon Merchant Lector:<br>
Oh! Have you chnaged your mind?<br>
Oh! Have you changed your mind?<br>
With just a bit more of your help I could make a real masterpiece here.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11004_PerfectLeatherArmor2 30001-02.htm">"Okay, I will help you."</Button><br>
</body></html>