Rafforty update.
Contributed by gigilo1968.
This commit is contained in:
parent
aa878ad3d4
commit
ba69584cb6
7
trunk/dist/game/data/html/default/32020-1.htm
vendored
Normal file
7
trunk/dist/game/data/html/default/32020-1.htm
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<html><body>Rafforty:<br>
|
||||
You can combine each soul wich the accessories of Freya, Queen Ant, Orfen, Antharas, and Valakas to create an item of even greater power! But--there's always a but--if you want me to combine these, the item that you possess will disappear, poff! and you'll receive a new item in return.
|
||||
And <font color="LEVEL">if it's already enchanted, the existing enchant value will also disappear</font><br>
|
||||
if you still want to proceed. I'm happy to bestow the souls and give you a more powerful item in exchange.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 991004">"Here is my item."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">"I"ll just keep my item as is""</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/html/default/32020-2.htm
vendored
Normal file
3
trunk/dist/game/data/html/default/32020-2.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Wow. lack of trust, huh? Good luck finding someone else who can make a Blessed Freya Necklace
|
||||
</body></html>
|
5
trunk/dist/game/data/html/default/32020.htm
vendored
Normal file
5
trunk/dist/game/data/html/default/32020.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Rafforty:<br>
|
||||
It's so pleasant here. Such nice warm atmosphere, unlike that brutal stuff they call climate outside! This is a fine place to take a load off and rest a while. Let me know id you need anything<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">What can you tell me about this item?.</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
120
trunk/dist/game/data/multisell/991004.xml
vendored
Normal file
120
trunk/dist/game/data/multisell/991004.xml
vendored
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list maintainEnchantment="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
|
||||
<npcs>
|
||||
<npc>32020</npc> <!-- Rafforty -->
|
||||
</npcs>
|
||||
<item>
|
||||
<!-- Bottle of Freya's Soul -->
|
||||
<ingredient count="1" id="16027" />
|
||||
<!-- Freya's Necklace -->
|
||||
<ingredient count="1" id="16025" />
|
||||
<!-- Blessed Freya's Necklace -->
|
||||
<production count="1" id="16026" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Antharas' Soul -->
|
||||
<ingredient count="1" id="19465" />
|
||||
<!-- Antharas' Earring -->
|
||||
<ingredient count="1" id="6656" />
|
||||
<!-- Blessed Antharas' Earring -->
|
||||
<production count="1" id="19463" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Valakas' Soul -->
|
||||
<ingredient count="1" id="19466" />
|
||||
<!-- Valakas' Necklace -->
|
||||
<ingredient count="1" id="6657" />
|
||||
<!-- Blessed Valakas' Necklace -->
|
||||
<production count="1" id="19464" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Queen Ant's Soul -->
|
||||
<ingredient count="1" id="36252" />
|
||||
<!-- Queen Ant's Ring -->
|
||||
<ingredient count="1" id="6660" />
|
||||
<!-- Queen Ant's Soul Ring -->
|
||||
<production count="1" id="36254" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Orfen's Soul -->
|
||||
<ingredient count="1" id="36253" />
|
||||
<!-- Orfen's Earring -->
|
||||
<ingredient count="1" id="6661" />
|
||||
<!-- Orfen's Soul Earring -->
|
||||
<production count="1" id="36255" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Baium's Soul -->
|
||||
<ingredient count="1" id="37520" />
|
||||
<!-- Baium's Ring -->
|
||||
<ingredient count="1" id="6658" />
|
||||
<!-- Baium's Soul Ring -->
|
||||
<production count="1" id="37521" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Baium's Soul -->
|
||||
<ingredient count="1" id="37520" />
|
||||
<!-- Reinforced Baium's Ring -->
|
||||
<ingredient count="1" id="22173" enchantmentLevel="5" />
|
||||
<!-- Baium's Soul Ring -->
|
||||
<production count="1" id="37521" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Queen Ant's Soul -->
|
||||
<ingredient count="1" id="36252" />
|
||||
<!-- Reinforced Queen Ant's Ring -->
|
||||
<ingredient count="1" id="22174" enchantmentLevel="5" />
|
||||
<!-- Queen Ant's Soul Ring -->
|
||||
<production count="1" id="36254" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle of Frintezza's Soul -->
|
||||
<ingredient count="1" id="37519" />
|
||||
<!-- Frintezza's Necklace -->
|
||||
<ingredient count="1" id="8191" />
|
||||
<!-- Frintezza's Soul Necklace -->
|
||||
<production count="1" id="37522" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Valakas' Soul -->
|
||||
<ingredient count="1000" id="23861" />
|
||||
<!-- Bottle of Valakas' Soul -->
|
||||
<production count="1" id="19466" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- BBottle Fragment of Antharas' Soul -->
|
||||
<ingredient count="1000" id="23862" />
|
||||
<!-- Bottle of Antharas' Soul -->
|
||||
<production count="1" id="19465" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Baium's Soul -->
|
||||
<ingredient count="1000" id="23863" />
|
||||
<!-- Bottle of Baium's Soul -->
|
||||
<production count="1" id="37520" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Orfen's Soul -->
|
||||
<ingredient count="1000" id="23864" />
|
||||
<!-- Bottle of Orfen's Soul -->
|
||||
<production count="1" id="36253" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Queen Ant's Soul -->
|
||||
<ingredient count="1000" id="23865" />
|
||||
<!-- Bottle of Queen Ant's Soul -->
|
||||
<production count="1" id="36252" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Frintezza's Soul -->
|
||||
<ingredient count="1000" id="23866" />
|
||||
<!-- Bottle of Frintezza's Soul -->
|
||||
<production count="1" id="37519" />
|
||||
</item>
|
||||
<item>
|
||||
<!-- Bottle Fragment of Freya's Soul -->
|
||||
<ingredient count="1000" id="23867" />
|
||||
<!-- Bottle of Freya's Soul -->
|
||||
<production count="1" id="16027" />
|
||||
</item>
|
||||
</list>
|
1
trunk/dist/game/data/scripts.cfg
vendored
1
trunk/dist/game/data/scripts.cfg
vendored
@ -56,7 +56,6 @@ ai/npc/NpcBuffers/NpcBuffers.java
|
||||
ai/npc/Pantheon/Pantheon.java
|
||||
ai/npc/Proclaimer/Proclaimer.java
|
||||
ai/npc/Rignos/Rignos.java
|
||||
ai/npc/Rafforty/Rafforty.java
|
||||
ai/npc/Raina/Raina.java
|
||||
ai/npc/RemembranceTower/RemembranceTower.java
|
||||
ai/npc/Scarecrow/Scarecrow.java
|
||||
|
@ -1,5 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Is this a Freya Necklace? Hmm... it's okay I guess. It isn't as interesting as a Blessed Freya Necklace. You could be lucky enough to get one, or if you happen to aquire Freya's Soul in a bottle you can create a Blessed Freya Necklace. However the process is, well... different. Tell you what, if you bring me these items I can make one for you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Rafforty 32020-04.html">"I have a Bottle of Freya's Soul."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Rafforty 32020-03.html">"Where can I get Freya's Soul?"</Button>
|
||||
</body></html>
|
@ -1,4 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
I wish I could tell you more about whatever it is you have to show me. But it doesn't look like you have anything to show.<br>
|
||||
(Requires a Freya Necklace.)
|
||||
</body></html>
|
@ -1,3 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
I don't know the details, but if I had to hazard a guess, it would be something you would get after defeating Freya. You could always ask around to see what other people have to say.
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Yes, I sensed that you had Freya's Soul contained in a Bottle before you even answered! Nah, I saw it when you were showing me your Freya Necklace. You must have made her very angry. If you are ready, I can begin the process of making a Blessed Freya Necklace.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Rafforty 32020-07.html">"Make me a Blessed Freya Necklace."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Rafforty 32020-06.html">"I do not want a Blessed Freya Necklace."</Button>
|
||||
</body></html>
|
@ -1,3 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Sorry there, stranger, but unless you can bring me a Bottle of Freya's Soul, I can't do anything with that Freya Necklace you are carrying. Speak to me when you actually have these items.
|
||||
</body></html>
|
@ -1,3 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Wow. Lack of trust, huh? Good luck finding someone else who can make a Blessed Freya Necklace.
|
||||
</body></html>
|
@ -1,3 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Ah... a masterpiece if I do say so myself. Here is your Blessed Freya Necklace. Now you truly have something that is interesting.
|
||||
</body></html>
|
@ -1,3 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
If you want me to help you will have to give me the item. I cannot do anything without it.
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Rafforty:<br>
|
||||
Welcome to my little oasis. Although it may be cold and blustery out there, it's like an endless spring day in here. Needless to say, I don't really venture outside much any more. Although I like my privacy, I'm always willing to lend a helping hand to those in need. And if you don't mind me saying, you look like you're in need.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Rafforty 32020-01.html">I have a necklace I'd like you to look at.</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@ -1,86 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Rafforty;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Rafforty AI.
|
||||
* @author malyelfik, Gladicek
|
||||
*/
|
||||
final class Rafforty extends AbstractNpcAI
|
||||
{
|
||||
// NPC
|
||||
private static final int RAFFORTY = 32020;
|
||||
// Items
|
||||
private static final int NECKLACE = 16025;
|
||||
private static final int BLESSED_NECKLACE = 16026;
|
||||
private static final int BOTTLE = 16027;
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "32020-01.html":
|
||||
{
|
||||
if (!hasQuestItems(player, NECKLACE))
|
||||
{
|
||||
htmltext = "32020-02.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "32020-04.html":
|
||||
{
|
||||
if (!hasQuestItems(player, BOTTLE))
|
||||
{
|
||||
htmltext = "32020-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "32020-07.html":
|
||||
{
|
||||
if (!hasQuestItems(player, BOTTLE, NECKLACE))
|
||||
{
|
||||
return "32020-08.html";
|
||||
}
|
||||
takeItems(player, NECKLACE, 1);
|
||||
takeItems(player, BOTTLE, 1);
|
||||
giveItems(player, BLESSED_NECKLACE, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private Rafforty()
|
||||
{
|
||||
super(Rafforty.class.getSimpleName(), "ai/npc");
|
||||
addStartNpc(RAFFORTY);
|
||||
addFirstTalkId(RAFFORTY);
|
||||
addTalkId(RAFFORTY);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Rafforty();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user