Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-1.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-1.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-1.htm (working copy)
- @@ -0,0 +1,7 @@
- +<html><head>
- +<body>Jinia:<br>
- +This place is so cold I can't feel my nose.
- +I'm sure it's so red, I could lead a pack of flying reindeer.<br>
- +<a action="bypass -h Quest Jinia frozen_core">"We need a way to stop Freya."</a><br>
- +<a action="bypass -h Quest Jinia 32781-4.htm">"We're ready now."</a>
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-2.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-2.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-2.htm (working copy)
- @@ -0,0 +1,6 @@
- +<html><head>
- +<body>Jinia:<br>
- +It's a piece of Frozen Core.
- +But even you might not be able to derive all of its power.
- +Whatever happens be careful, you won't be able to use it very often.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-3.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-3.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-3.htm (working copy)
- @@ -0,0 +1,4 @@
- +<html><head>
- +<body>Jinia:<br>
- +Remember, Sirra gave us the Frozen Core. They should be power enough.
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-4.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-4.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-4.htm (working copy)
- @@ -0,0 +1,10 @@
- +<html><head>
- +<body>Jinia:<br>
- +We must be prepared before confronting Freya.
- +As the winter cold swells around the castle, she becomes even stronger.
- +We can use blitz tactics and strike her before her power matures fully.
- +Then again, if we wait until she is at full strength, I'm sure the reward will be greater.
- +I leave the choice to you.<br>
- +<a action="bypass -h Quest Jinia 32781-5.htm">Challenge Freya.</a><br>
- +<a action="bypass -h Quest Jinia 32781-6.htm">Challenge Freya in the extreme cold.</a>
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-5.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-5.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-5.htm (working copy)
- @@ -0,0 +1,5 @@
- +<html><head>
- +<body>Jinia:<br>
- +Be careful. Should anything happen, we'll try to help you.<br>
- +<a action="bypass -h Quest ????">"Thanks, Jinia."</a>
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-6.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-6.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-6.htm (working copy)
- @@ -0,0 +1,7 @@
- +<html><head>
- +<body>Jinia:<br>
- +Her power is without equal. She truly is a frozen goddess.
- +Are you sure you're ready?<br>
- +<a action="bypass -h Quest ????">"It's now or never."</a><br>
- +<a action="bypass -h Quest Jinia 32781-6a.htm">"Perhaps I'll think again."</a>
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781-6a.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781-6a.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781-6a.htm (working copy)
- @@ -0,0 +1,4 @@
- +<html><head>
- +<body>Jinia:<br>
- +Alright, waking her is not something you can simply undo. Let me know when you're ready.
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/32781.htm
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/32781.htm (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/32781.htm (working copy)
- @@ -0,0 +1,5 @@
- +<html><head>
- +<body>Jinia:<br>
- +Sorry. I don't have time, I'm dealing with something important.<br>
- +<a action="bypass -h npc_%objectId%_Quest">Quest</a>
- +</body></html>
- Index: dist/game/data/scripts/ai/npc/Jinia/Jinia.java
- ===================================================================
- --- dist/game/data/scripts/ai/npc/Jinia/Jinia.java (revision 0)
- +++ dist/game/data/scripts/ai/npc/Jinia/Jinia.java (working copy)
- @@ -0,0 +1,100 @@
- +/*
- + * Copyright (C) 2004-2013 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.Jinia;
- +
- +import ai.npc.AbstractNpcAI;
- +
- +import com.l2jserver.gameserver.model.actor.L2Npc;
- +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- +import com.l2jserver.gameserver.model.quest.QuestState;
- +import com.l2jserver.gameserver.model.quest.State;
- +
- +/**
- + * Jinia AI
- + * @author Gladicek
- + */
- +
- +public class Jinia extends AbstractNpcAI
- +{
- + // Npc
- + private static final int JINIA = 32781;
- + // Item
- + private static final int FROZEN_CORE = 15469;
- +
- + @Override
- + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
- + {
- + String htmltext = event;
- + switch (event)
- + {
- + case "frozen_core":
- + {
- + if (!hasQuestItems(player, FROZEN_CORE))
- + {
- + htmltext = "32781-3.htm";
- + }
- + giveItems(player, FROZEN_CORE, 1);
- + htmltext = "32781-2.htm";
- + break;
- + }
- + }
- +
- + return htmltext;
- + }
- +
- + @Override
- + public String onFirstTalk(L2Npc npc, L2PcInstance player)
- + {
- + String htmltext = null;
- + final QuestState st = player.getQuestState(Q10286_ReunionWithSirra.class.getSimpleName());
- +
- + switch (st.getState())
- + {
- + case State.STARTED:
- + {
- + if (st.isCond(5))
- + {
- + htmltext = "32781-1.htm";
- + }
- + else
- + {
- + htmltext = "32781.htm";
- + }
- + break;
- + }
- + case State.COMPLETED:
- + {
- + htmltext = "32781-1.htm";
- + }
- + }
- + }
- +
- + public Jinia(String name, String descr)
- + {
- + super(name, descr);
- + addStartNpc(JINIA);
- + addFirstTalkId(JINIA);
- + addTalkId(JINIA);
- + }
- +
- + public static void main(String[] args)
- + {
- + new Jinia(Jinia.class.getSimpleName(), "ai/npc/");
- + }
- +}
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment