mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-14 10:30:20 -07:00
Fixed issue where Halgrive does not replace lost poisoned feed
This commit is contained in:
parent
cecb937145
commit
9d19ce2355
1 changed files with 17 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ package content.region.kandarin.ardougne.quest.sheepherder;
|
||||||
import core.game.node.entity.player.Player;
|
import core.game.node.entity.player.Player;
|
||||||
import core.plugin.Initializable;
|
import core.plugin.Initializable;
|
||||||
import core.game.dialogue.DialoguePlugin;
|
import core.game.dialogue.DialoguePlugin;
|
||||||
|
import core.api.*;
|
||||||
|
import org.rs09.consts.Items;
|
||||||
|
|
||||||
@Initializable
|
@Initializable
|
||||||
public class HalgriveDialogue extends DialoguePlugin {
|
public class HalgriveDialogue extends DialoguePlugin {
|
||||||
|
|
@ -141,6 +143,20 @@ public class HalgriveDialogue extends DialoguePlugin {
|
||||||
break;
|
break;
|
||||||
case 201:
|
case 201:
|
||||||
npc("Well, please do hurry!");
|
npc("Well, please do hurry!");
|
||||||
|
stage++;
|
||||||
|
break;
|
||||||
|
case 202:
|
||||||
|
if (ContentAPIKt.hasAnItem(player, Items.SHEEP_FEED_279).getContainer() != null){
|
||||||
|
player("I'll do my best sir.");
|
||||||
|
stage = 108;
|
||||||
|
} else {
|
||||||
|
player("Some more sheep poison would be appreciated...");
|
||||||
|
stage++;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 203:
|
||||||
|
ContentAPIKt.addItemOrDrop(player, Items.SHEEP_FEED_279, 1);
|
||||||
|
npc("Certainly adventurer. Please hurry!");
|
||||||
stage = 108;
|
stage = 108;
|
||||||
break;
|
break;
|
||||||
case 205:
|
case 205:
|
||||||
|
|
@ -163,4 +179,4 @@ public class HalgriveDialogue extends DialoguePlugin {
|
||||||
public int[] getIds() {
|
public int[] getIds() {
|
||||||
return new int[] {289} ;
|
return new int[] {289} ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue