Add check for NS completion for silver sickle

This commit is contained in:
ceikry 2021-08-16 06:59:44 -05:00
parent 050fced0ea
commit df9c5a6f1b
2 changed files with 9 additions and 4 deletions

View file

@ -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>

View file

@ -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;