mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 17:10:21 -07:00
Fixed disappearing key with full inventory in waterfall quest
This commit is contained in:
parent
45bedcf1cb
commit
a6d5961226
1 changed files with 12 additions and 10 deletions
|
|
@ -28,6 +28,8 @@ import core.plugin.Plugin;
|
||||||
import kotlin.Unit;
|
import kotlin.Unit;
|
||||||
import core.plugin.ClassScanner;
|
import core.plugin.ClassScanner;
|
||||||
|
|
||||||
|
import static core.api.ContentAPIKt.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Master plugin file for the Waterfall quest.
|
* Master plugin file for the Waterfall quest.
|
||||||
*
|
*
|
||||||
|
|
@ -177,11 +179,11 @@ public final class WaterfallPlugin extends OptionHandler {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1999:// Second key (in the actual waterfall dungeon)
|
case 1999:// Second key (in the actual waterfall dungeon)
|
||||||
if (player.getInventory().contains(298, 1) || quest.getStage(player) < 30) {
|
if (inInventory(player, 298,1) || quest.getStage(player) < 30) {
|
||||||
player.getPacketDispatch().sendMessage("You search the crate and find nothing.");
|
sendMessage(player, "You search the crate and find nothing.");
|
||||||
} else if (quest.getStage(player) >= 30 && !player.getInventory().contains(298, 1)) {
|
} else if (quest.getStage(player) >= 30 && !inInventory(player,298, 1)) {
|
||||||
player.getPacketDispatch().sendMessage("You find a large key.");
|
sendMessage(player, "You find a large key.");
|
||||||
player.getInventory().add(new Item(298, 1));
|
addItemOrDrop(player, 298, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2002://
|
case 2002://
|
||||||
|
|
@ -247,11 +249,11 @@ public final class WaterfallPlugin extends OptionHandler {
|
||||||
player.getDialogueInterpreter().open(305, ((NPC) node));
|
player.getDialogueInterpreter().open(305, ((NPC) node));
|
||||||
break;
|
break;
|
||||||
case 1990:
|
case 1990:
|
||||||
if (player.getInventory().contains(293, 1) || quest.getStage(player) < 30) {
|
if (inInventory(player,293, 1) || quest.getStage(player) < 30) {
|
||||||
player.getPacketDispatch().sendMessage("You search the crate and find nothing.");
|
sendMessage(player,"You search the crate and find nothing.");
|
||||||
} else if (quest.getStage(player) >= 30 && !player.getInventory().contains(293, 1)) {
|
} else if (quest.getStage(player) >= 30 && !inInventory(player,293, 1)) {
|
||||||
player.getPacketDispatch().sendMessage("You find a large key.");
|
sendMessage(player, "You find a large key.");
|
||||||
player.getInventory().add(new Item(293, 1));
|
addItemOrDrop(player,293, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1991:
|
case 1991:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue