mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-16 03:20:19 -07:00
Infused Wand
- Added correct Runecrafting requirment to make the Infused Wand.
This commit is contained in:
parent
7695a28393
commit
cbb1af4ee1
1 changed files with 13 additions and 7 deletions
|
|
@ -4,6 +4,7 @@ import core.cache.def.impl.ObjectDefinition;
|
||||||
import core.game.component.Component;
|
import core.game.component.Component;
|
||||||
import core.game.node.entity.player.link.diary.DiaryType;
|
import core.game.node.entity.player.link.diary.DiaryType;
|
||||||
import core.game.content.activity.ActivityManager;
|
import core.game.content.activity.ActivityManager;
|
||||||
|
import core.game.node.entity.skill.Skills;
|
||||||
import core.game.node.entity.skill.gather.SkillingTool;
|
import core.game.node.entity.skill.gather.SkillingTool;
|
||||||
import core.game.node.entity.skill.runecrafting.Altar;
|
import core.game.node.entity.skill.runecrafting.Altar;
|
||||||
import core.game.interaction.NodeUsageEvent;
|
import core.game.interaction.NodeUsageEvent;
|
||||||
|
|
@ -194,6 +195,7 @@ public class WLBelowPlugin extends OptionHandler {
|
||||||
return true;
|
return true;
|
||||||
}*/
|
}*/
|
||||||
Item chaosItem = player.getInventory().containsItem(CHAOS_TALISMAN) ? CHAOS_TALISMAN : CHAOS_TIARA;
|
Item chaosItem = player.getInventory().containsItem(CHAOS_TALISMAN) ? CHAOS_TALISMAN : CHAOS_TIARA;
|
||||||
|
if (player.getSkills().hasLevel(Skills.RUNECRAFTING,35)){
|
||||||
if (chaosItem != null && player.getInventory().remove(CHAOS_RUNES)) {
|
if (chaosItem != null && player.getInventory().remove(CHAOS_RUNES)) {
|
||||||
player.lock(5);
|
player.lock(5);
|
||||||
player.getInventory().remove(WhatLiesBelow.WAND);
|
player.getInventory().remove(WhatLiesBelow.WAND);
|
||||||
|
|
@ -202,6 +204,10 @@ public class WLBelowPlugin extends OptionHandler {
|
||||||
player.getDialogueInterpreter().sendDialogue("The metal wand bursts into life and crackles with arcane", "power. This is a powerful instrument indeed!");
|
player.getDialogueInterpreter().sendDialogue("The metal wand bursts into life and crackles with arcane", "power. This is a powerful instrument indeed!");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
}else {
|
||||||
|
player.getDialogueInterpreter().sendDialogue("You need a Runecrafting level of 35 to make the infused wand.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue