Sync with L2JServer Jan 9th 2015.
This commit is contained in:
@@ -18,16 +18,16 @@
|
||||
*/
|
||||
package ai.npc.CastleCourtMagician;
|
||||
|
||||
import handlers.effecthandlers.CallPc;
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.enums.CastleSide;
|
||||
import com.l2jserver.gameserver.model.ClanPrivilege;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jserver.gameserver.network.clientpackets.RequestAcquireSkill;
|
||||
|
||||
import handlers.effecthandlers.CallPc;
|
||||
|
||||
/**
|
||||
* Castle Court Magician AI.
|
||||
* @author St3eT
|
||||
@@ -51,6 +51,8 @@ public final class CastleCourtMagician extends AbstractNpcAI
|
||||
private static final int CLAN_GATE = 3632; // Clan Gate
|
||||
private static final SkillHolder DISPLAY_CLAN_GATE = new SkillHolder(5109, 1); // Production - Clan Gate
|
||||
// Items
|
||||
private static final int CLOAK_OF_LIGHT = 34925;
|
||||
private static final int CLOAK_OF_DARK = 34926;
|
||||
private static final int EPAULETTE = 9912; // Knight's Epaulette
|
||||
private static final int RED_MEDITATION = 9931; // Red Talisman of Meditation
|
||||
private static final int BLUE_DIV_PROTECTION = 9932; // Blue Talisman - Divine Protection
|
||||
@@ -139,6 +141,7 @@ public final class CastleCourtMagician extends AbstractNpcAI
|
||||
{
|
||||
case "courtmagician.html":
|
||||
case "courtmagician-03.html":
|
||||
case "courtmagician-07.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
@@ -283,6 +286,18 @@ public final class CastleCourtMagician extends AbstractNpcAI
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "giveCloak":
|
||||
{
|
||||
final int cloakId = npc.getCastle().getSide() == CastleSide.DARK ? CLOAK_OF_DARK : CLOAK_OF_LIGHT;
|
||||
|
||||
if (hasQuestItems(player, cloakId))
|
||||
{
|
||||
htmltext = "courtmagician-08.html";
|
||||
break;
|
||||
}
|
||||
giveItems(player, cloakId, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<html><body>
|
||||
The Talisman is both magical and mysterious. Once applied to your bracelet, you will be able to see its surprising effect for yourself. Before I can give it to you, however, you must prove to me that you are capable of responsibly wielding such power. Give me <font color = "LEVEL">10 Knight's Epaulettes</font> and I will provide you the Talisman.<br><br><br>
|
||||
<center>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician giveTalisman">Give Knight's Epaulettes.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician giveTalisman">Give Knight's Epaulettes</Button>
|
||||
</center>
|
||||
</body></html>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>
|
||||
You do not have enough Knight's Epaulettes.<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician courtmagician.html">Back.</Button><br>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest CastleCourtMagician courtmagician.html">Back</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/npc/CastleCourtMagician/courtmagician-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/npc/CastleCourtMagician/courtmagician-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Court Wizard:<br>
|
||||
Only those who are a Marquis or higher can receive the cloak. You cannot receive more than one cloak either, I might add.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician giveCloak">"I would like one."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/CastleCourtMagician/courtmagician-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/CastleCourtMagician/courtmagician-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Court Magician:<br>
|
||||
<center>
|
||||
Don't you already have the cloak?
|
||||
</center>
|
||||
</body></html>
|
@@ -3,12 +3,13 @@ Cast your eyes upon the results of this magical research conducted by the Mystic
|
||||
You can make use of a magical field capable of teleporting a clan member through a crown, as well as magic that provides special abilities to your low-ranking soldiers. We even have a Talisman, a magical crystal filled with power.<br>
|
||||
We have also purchased certain items directly from the Elves' mystical merchant. How may I serve you?<br><br>
|
||||
<center>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician clanTeleport">Move through the magic field.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002001">Purchase Elven items.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002002">Purchase Bracelet.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002003">Purchase Shirt.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 90002004">Trade Shirt for Enchanted Shirt.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician courtmagician-03.html">Obtain Talisman.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician squadSkill">Learn special skills for low-ranked soldiers.</Button>
|
||||
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleCourtMagician clanTeleport">Move through the magic field</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002001">Purchase Elven items</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002002">Purchase Bracelet</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 90002003">Purchase Shirt</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 90002004">Trade Shirt for Enchanted Shirt</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician courtmagician-03.html">Obtain Talisman</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician squadSkill">Learn special skills for low-ranked soldiers</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest CastleCourtMagician courtmagician-07.html">Receive a cloak</Button>
|
||||
</center>
|
||||
</body></html>
|
Reference in New Issue
Block a user