mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Stronghold of Player Safety now checks if inventory is full before awarding lamp rewards
This commit is contained in:
parent
9068874556
commit
6b9a06d175
1 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,12 @@ public class ProfessorHenryDialogue extends DialoguePlugin {
|
|||
stage++;
|
||||
break;
|
||||
case 907:
|
||||
if (player.getInventory().freeSlots() == 0) {
|
||||
sendNormalDialogue(npc, FacialExpression.HALF_GUILTY, "It seems your inventory is full.");
|
||||
stage = -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (removeItem(player, Items.TEST_PAPER_12626, Container.INVENTORY)) {
|
||||
showReward(player);
|
||||
end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue