From 1be9335815215bd4df903e73d25995f83f093804 Mon Sep 17 00:00:00 2001 From: Danewolf Date: Thu, 10 Aug 2023 07:45:32 +0000 Subject: [PATCH] Added droptrick check to Sir Pyrsin dialogue for silverlight --- .../varrock/quest/demonslayer/SirPyrsinDialogue.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Server/src/main/content/region/misthalin/varrock/quest/demonslayer/SirPyrsinDialogue.java b/Server/src/main/content/region/misthalin/varrock/quest/demonslayer/SirPyrsinDialogue.java index 2a38253f5..a0fc32221 100644 --- a/Server/src/main/content/region/misthalin/varrock/quest/demonslayer/SirPyrsinDialogue.java +++ b/Server/src/main/content/region/misthalin/varrock/quest/demonslayer/SirPyrsinDialogue.java @@ -498,10 +498,15 @@ public class SirPyrsinDialogue extends DialoguePlugin { stage = 20; break; case 3: - npc("I can sell you another one for 500GP"); - stage = 30; + if(hasAnItem(player, Items.SILVERLIGHT_2402).getContainer() != null) { + npc(id, "You already have Silverlight"); + stage = END_DIALOGUE; + } else { + npc("I can sell you another one for 500GP"); + stage = 30; + } break; } - break; + break; case 10: npc(id, "I am Sir Prysin. A bold and famous knight of the", "realm."); stage = 11;