mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 09:00:23 -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.plugin.Initializable;
|
||||
import core.game.dialogue.DialoguePlugin;
|
||||
import core.api.*;
|
||||
import org.rs09.consts.Items;
|
||||
|
||||
@Initializable
|
||||
public class HalgriveDialogue extends DialoguePlugin {
|
||||
|
|
@ -141,6 +143,20 @@ public class HalgriveDialogue extends DialoguePlugin {
|
|||
break;
|
||||
case 201:
|
||||
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;
|
||||
break;
|
||||
case 205:
|
||||
|
|
@ -163,4 +179,4 @@ public class HalgriveDialogue extends DialoguePlugin {
|
|||
public int[] getIds() {
|
||||
return new int[] {289} ;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue