mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 13:30:27 -07:00
Fixed bug where player could get unlimited glarial's pebbles
This commit is contained in:
parent
a8751eaa3c
commit
c8bf7b5342
1 changed files with 12 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ import core.game.content.dialogue.FacialExpression;
|
|||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.item.Item;
|
||||
|
||||
import static api.ContentAPIKt.*;
|
||||
|
||||
/**
|
||||
* Handles Golrie's Dialogue for the Waterfall quest
|
||||
* @author Splinter
|
||||
|
|
@ -48,7 +50,11 @@ public class GolrieDialogue extends DialoguePlugin {
|
|||
case 3:
|
||||
//TODO: Possibly change this to chat message
|
||||
interpreter.sendDialogue("You look amongst the junk on the floor.");
|
||||
stage = 4;
|
||||
if (hasAnItem(player, 294).getContainer() != null) {
|
||||
stage = 50;
|
||||
} else {
|
||||
stage = 4;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
//TODO: Possibly change this to chat message
|
||||
|
|
@ -79,6 +85,11 @@ public class GolrieDialogue extends DialoguePlugin {
|
|||
interpreter.sendDialogues(player, FacialExpression.NEUTRAL, "OK... Take care Golrie.");
|
||||
stage = 100;
|
||||
break;
|
||||
case 50:
|
||||
//TODO: Possibly change this to chat message
|
||||
interpreter.sendDialogue("You find nothing of interest.");
|
||||
stage = 100;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue