forked from 2009Scape/Server
Changed Imp-in-a-box to act a full deposit box. One-time use.
The Imp-in-a-box is broken, and I don't know how to fix it so I buffed it instead.
This commit is contained in:
parent
e45f8fa81b
commit
0b05424690
1 changed files with 6 additions and 0 deletions
|
|
@ -46,10 +46,16 @@ public class ImpBoxPlugin extends OptionHandler {
|
|||
public boolean handle(Player player, Node node, String option) {
|
||||
switch (option) {
|
||||
case "bank":
|
||||
int boxSlot = node.asItem().getSlot();
|
||||
player.getInventory().replace(new Item(10025), boxSlot);
|
||||
player.sendMessage("You free the imp in exchange for it taking some items to your bank.");
|
||||
player.getBank().openDepositBox();
|
||||
/* Snowscape Custom: the normal imp interface is broken, so we fixed/buffed it by making it act as a one-time-use deposit box instead.
|
||||
Component component = new Component(478);
|
||||
component.setPlugin(new ImpInterfaceHandler((Item) node));
|
||||
player.getInterfaceManager().open(component);
|
||||
PacketRepository.send(ContainerPacket.class, new ContainerContext(player, 478, 61, 91, player.getInventory(), true));
|
||||
*/
|
||||
break;
|
||||
case "talk-to":
|
||||
player.getDialogueInterpreter().open("imp-box");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue