This commit is contained in:
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-01.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-01.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
Ah, I perceive that you have long been apart from this world. I am strangely heartened by your return. I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (3600 Adena).</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-02.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-02.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
You have only recently begun your journey in this world, and your youth touches me. I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (8640 Adena)</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-03.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-03.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
You have only begun to learn the world, and your innocence touches me. I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (25200 Adena).</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-04.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-04.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
As I see you are a true adventurer, I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (50400 Adena).</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-05.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-05.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
Great adventurer, I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (86400 Adena)</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-06.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-06.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Black Judge:<br>
|
||||
Death leaves a scar which all must bear.<br>
|
||||
Do you wish it to be healed completely?<br>
|
||||
Because you walk the hero's path, I will heal this wound and remove death's scar.<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_dp">Remove 1 level of Death Penalty (144000 Adena).</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Black Judge:<br>
|
||||
The wound you have received from death's touch is too deep to be healed for the money you have to give me. Find more money if you wish death's mark to be fully removed from you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Black Judge:<br>
|
||||
You have no more death wounds that require healing.<br>
|
||||
Go forth and fight, both for this world and your own glory.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/npc/BlackJudge/30981.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Black Judge:<br>
|
||||
I came to this land to save those poor souls who are contaminated by sin. We black judges do not divide good and evil by light and darkness. We help instead those with strong wills and noble souls -- whether or not they wish our help. Come, sinners, come to us . . .<br>
|
||||
<a action="bypass -h Quest BlackJudge remove_info">Remove Death Penalties.</a><br>
|
||||
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
|
||||
</body></html>
|
118
trunk/dist/game/data/scripts/ai/npc/BlackJudge/BlackJudge.java
vendored
Normal file
118
trunk/dist/game/data/scripts/ai/npc/BlackJudge/BlackJudge.java
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J DataPack is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package ai.npc.BlackJudge;
|
||||
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.datatables.SkillData;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jserver.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jserver.gameserver.model.skills.CommonSkill;
|
||||
import com.l2jserver.gameserver.model.skills.Skill;
|
||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
/**
|
||||
* Black Judge AI.
|
||||
* @author St3eT
|
||||
*/
|
||||
public class BlackJudge extends AbstractNpcAI
|
||||
{
|
||||
// NPC
|
||||
private static final int BLACK_JUDGE = 30981;
|
||||
// Misc
|
||||
// @formatter:off
|
||||
private static final int[] COSTS =
|
||||
{
|
||||
3600, 8640, 25200, 50400, 86400, 144000
|
||||
};
|
||||
// @formatter:on
|
||||
|
||||
private BlackJudge()
|
||||
{
|
||||
super(BlackJudge.class.getSimpleName(), "ai/npc");
|
||||
addStartNpc(BLACK_JUDGE);
|
||||
addTalkId(BLACK_JUDGE);
|
||||
addFirstTalkId(BLACK_JUDGE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final int level = ((player.getExpertiseLevel() < 5) ? player.getExpertiseLevel() : 5);
|
||||
switch (event)
|
||||
{
|
||||
case "remove_info":
|
||||
{
|
||||
htmltext = "30981-0" + (level + 1) + ".html";
|
||||
break;
|
||||
}
|
||||
case "remove_dp":
|
||||
{
|
||||
if (player.getShilensBreathDebuffLevel() > 0)
|
||||
{
|
||||
int cost = COSTS[level];
|
||||
|
||||
if (player.getAdena() >= cost)
|
||||
{
|
||||
takeItems(player, Inventory.ADENA_ID, cost);
|
||||
final int nextLv = player.getShilensBreathDebuffLevel() - 1;
|
||||
|
||||
if (nextLv > 0)
|
||||
{
|
||||
final Skill skill = SkillData.getInstance().getSkill(CommonSkill.SHILENS_BREATH.getId(), nextLv);
|
||||
if (skill != null)
|
||||
{
|
||||
skill.applyEffects(player, player);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_VE_BEEN_AFFLICTED_BY_SHILEN_S_BREATH_LEVEL_S1).addInt(nextLv));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
final BuffInfo buff = player.getEffectList().getBuffInfoBySkillId(CommonSkill.SHILENS_BREATH.getId());
|
||||
if (buff != null)
|
||||
{
|
||||
player.getEffectList().remove(true, buff);
|
||||
}
|
||||
player.sendPacket(SystemMessageId.SHILEN_S_BREATH_HAS_BEEN_PURIFIED);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30981-07.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30981-08.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new BlackJudge();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user