mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Add check for NS completion for silver sickle
This commit is contained in:
parent
050fced0ea
commit
df9c5a6f1b
2 changed files with 9 additions and 4 deletions
|
|
@ -2656,8 +2656,8 @@
|
|||
<offer>
|
||||
<id>379</id>
|
||||
<value>268</value>
|
||||
<uniqueTrades>0</uniqueTrades>
|
||||
<totalValue>0</totalValue>
|
||||
<uniqueTrades>173</uniqueTrades>
|
||||
<totalValue>57782</totalValue>
|
||||
<lastUpdate>0</lastUpdate>
|
||||
</offer>
|
||||
<offer>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package core.game.interaction.item;
|
||||
|
||||
import api.ContentAPI;
|
||||
import core.cache.def.impl.ItemDefinition;
|
||||
import core.game.interaction.OptionHandler;
|
||||
import core.game.node.Node;
|
||||
|
|
@ -33,8 +34,12 @@ public final class SilverSicklePlugin extends OptionHandler {
|
|||
switch (option) {
|
||||
case "operate":
|
||||
case "cast bloom":
|
||||
player.getPacketDispatch().sendAnimation(9021);
|
||||
NSUtils.castBloom(player);
|
||||
if(player.getQuestRepository().getQuest("Nature Spirit").getStage(player) >= 75) {
|
||||
player.getPacketDispatch().sendAnimation(9021);
|
||||
NSUtils.castBloom(player);
|
||||
} else {
|
||||
ContentAPI.sendDialogue(player, "You must complete Nature Spirit to use this.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue