Add check for NS completion for silver sickle
This commit is contained in:
@@ -2656,8 +2656,8 @@
|
|||||||
<offer>
|
<offer>
|
||||||
<id>379</id>
|
<id>379</id>
|
||||||
<value>268</value>
|
<value>268</value>
|
||||||
<uniqueTrades>0</uniqueTrades>
|
<uniqueTrades>173</uniqueTrades>
|
||||||
<totalValue>0</totalValue>
|
<totalValue>57782</totalValue>
|
||||||
<lastUpdate>0</lastUpdate>
|
<lastUpdate>0</lastUpdate>
|
||||||
</offer>
|
</offer>
|
||||||
<offer>
|
<offer>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package core.game.interaction.item;
|
package core.game.interaction.item;
|
||||||
|
|
||||||
|
import api.ContentAPI;
|
||||||
import core.cache.def.impl.ItemDefinition;
|
import core.cache.def.impl.ItemDefinition;
|
||||||
import core.game.interaction.OptionHandler;
|
import core.game.interaction.OptionHandler;
|
||||||
import core.game.node.Node;
|
import core.game.node.Node;
|
||||||
@@ -33,8 +34,12 @@ public final class SilverSicklePlugin extends OptionHandler {
|
|||||||
switch (option) {
|
switch (option) {
|
||||||
case "operate":
|
case "operate":
|
||||||
case "cast bloom":
|
case "cast bloom":
|
||||||
|
if(player.getQuestRepository().getQuest("Nature Spirit").getStage(player) >= 75) {
|
||||||
player.getPacketDispatch().sendAnimation(9021);
|
player.getPacketDispatch().sendAnimation(9021);
|
||||||
NSUtils.castBloom(player);
|
NSUtils.castBloom(player);
|
||||||
|
} else {
|
||||||
|
ContentAPI.sendDialogue(player, "You must complete Nature Spirit to use this.");
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user