Rafforty update.

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-02-20 18:23:02 +00:00
parent aa878ad3d4
commit ba69584cb6
15 changed files with 135 additions and 121 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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();
}
}