Addition of Rune extraction.
This commit is contained in:
@@ -4,7 +4,7 @@ You just need to choose which Rune goes into what weapon.<br>
|
||||
By the way! If you have a lot of Runes you don't need, I can exchange them for other ones. Of course, no telling what Runes you'll end up with...<br>
|
||||
But take a shot, it's worth it. Life is but a game...<br>
|
||||
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_show_ensoul_window">"Insert Rune into weapon"</Button>
|
||||
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_show_ensoul_window">"Extract Rune from weapon"</Button>
|
||||
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_show_extract_ensoul_window">"Extract Rune from weapon"</Button>
|
||||
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/sealed_runes_01.htm">Receive Sealed Rune</Button>
|
||||
<Button ALIGN="LEFT" ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3084601">Enchant with a Rune</Button>
|
||||
</body></html>
|
@@ -19,6 +19,7 @@ package handlers.bypasshandlers;
|
||||
import com.l2jmobius.gameserver.handler.IBypassHandler;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ensoul.ExShowEnsoulExtractionWindow;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ensoul.ExShowEnsoulWindow;
|
||||
|
||||
/**
|
||||
@@ -29,6 +30,7 @@ public class EnsoulWindow implements IBypassHandler
|
||||
private static final String[] COMMANDS =
|
||||
{
|
||||
"show_ensoul_window",
|
||||
"show_extract_ensoul_window"
|
||||
};
|
||||
|
||||
@Override
|
||||
@@ -39,8 +41,17 @@ public class EnsoulWindow implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
activeChar.sendPacket(ExShowEnsoulWindow.STATIC_PACKET);
|
||||
return true;
|
||||
if (command.toLowerCase().startsWith(COMMANDS[0])) // show_ensoul_window
|
||||
{
|
||||
activeChar.sendPacket(ExShowEnsoulWindow.STATIC_PACKET);
|
||||
return true;
|
||||
}
|
||||
else if (command.toLowerCase().startsWith(COMMANDS[1])) // show_extract_ensoul_window
|
||||
{
|
||||
activeChar.sendPacket(ExShowEnsoulExtractionWindow.STATIC_PACKET);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user