Sync with L2JServer Jan 24th 2015.
This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Forest Patrol Leira:<br>
|
||||
I feel chilly. So tired of this cold. My cough's a bit better, though.<br>
|
||||
Look at me, sick as a dog, any my Ricky just goes running off again. Where did he go now? I can't rest for a second.<br>
|
||||
Oh, right! Mushrooms! A little while ago, I saw a very unusual mushroom spirit!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10743_StrangeFungus 33952-02.htm">"What's a mushroom spirit?"</button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-02.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-02.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Forest Patrol Leira:<br>
|
||||
Growlers are mushroom spirits. They used to be cute and calm spirits, but one they entered the Material Realm, they became dangerous. They were never known to harm anyone back in the Wind Spirit Realm.<br>
|
||||
Oh, my, I'm rambling again. So, about these <font color="LEVEL">unusual mushrooms spirit.</font><br>
|
||||
All the Growlers living in their habitat are the same color. But recently, I was out searching for Ricky when I came across a Growler that was a different color from the rest.
|
||||
What if that particular Growler is poisonous? Ricky could get hurt! Please go see if that Growler is poisonous!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10743_StrangeFungus 33952-03.htm">"All right, don'tt worry."</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33952-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Forest Patrol Leira:<br>
|
||||
All right. That unusual mushroom won't be easy to spot. It appears when the normal Growlers disappear, or something. Hard to explain.<br>
|
||||
Anyway, if you cut down the Growlers, <font color="LEVEL">Evolved Growlers</font> will appear in their place. Collet some Growler spores and take them to <font color="LEVEL">Forest Patrol Milone</font>. Milone is an expert at mushrooms!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
Growlers are very sensitive spirits. I don't know what caused the Dimensional Rift. But I will never forgive whoever caused this.<br>
|
||||
I'm sorry, was I making you nervous? I wasn't talking to you. What brings you all the way in here?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10743_StrangeFungus 33953-02.htm">"I have some Mushroom Spores."</button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-02.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
They are Growler's spores. The color is different, but I'm sure they are Growler's spores.<br>
|
||||
The Growlers are adjusting to the Material Realm, which causes other kinds of Growlers to be found. This must be one of those Growler's spores.<br>
|
||||
I see that everyone is getting scared with the new appearance of the Growlers, but there's no need to be. They are just tougher Growlers of a different color. But why give this to me?
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10743_StrangeFungus 33953-03.htm">"Leira asked about its toxicity."</button>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-03.htm
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/33953-03.htm
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Forest Patrol Milone:<br>
|
||||
Leira sent you? The foolish child that only cares about her little fox?
|
||||
<br>
|
||||
Oh! Hahahaha!
|
||||
<br>
|
||||
I'm sorry, haha. She must have been worried that the Growler's Spores might hurt her fox. I'm sure! Hahaha.
|
||||
<br>
|
||||
I'm in tears. Hahaha!
|
||||
</body></html>
|
173
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/Q10743_StrangeFungus.java
vendored
Normal file
173
trunk/dist/game/data/scripts/quests/Q10743_StrangeFungus/Q10743_StrangeFungus.java
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 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 quests.Q10743_StrangeFungus;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
*/
|
||||
public class Q10743_StrangeFungus extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int LEIRA = 33952;
|
||||
private static final int MILONE = 33953;
|
||||
private static final int GROWLER = 23455;
|
||||
private static final int ROBUST_GROWLER = 23486;
|
||||
private static final int EVOLVED_GROWLER = 23456;
|
||||
// Items
|
||||
private static final int PECULIAR_MUSHROOM_SPORE = 39530;
|
||||
private static final ItemHolder LEATHER_SHOES = new ItemHolder(37, 1);
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 13;
|
||||
private static final int MAX_LEVEL = 20;
|
||||
private static final String KILL_VAR = "KillCount";
|
||||
|
||||
public Q10743_StrangeFungus()
|
||||
{
|
||||
super(10743, Q10743_StrangeFungus.class.getSimpleName(), "Strange Fungus");
|
||||
addStartNpc(LEIRA);
|
||||
addTalkId(LEIRA, MILONE);
|
||||
addKillId(GROWLER, ROBUST_GROWLER, EVOLVED_GROWLER);
|
||||
registerQuestItems(PECULIAR_MUSHROOM_SPORE);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "fixme.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33952-02.htm":
|
||||
case "33953-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33952-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33953-03.htm":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
giveAdena(player, 62000, true);
|
||||
addExpAndSp(player, 62876, 0);
|
||||
giveItems(player, LEATHER_SHOES);
|
||||
showOnScreenMsg(player, NpcStringId.CHECK_YOUR_EQUIPMENT_IN_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case LEIRA:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33952-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = "33952-03.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MILONE:
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33953-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
|
||||
if ((qs != null) && qs.isCond(1) && (getQuestItemsCount(killer, PECULIAR_MUSHROOM_SPORE) < 10))
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case GROWLER:
|
||||
case ROBUST_GROWLER:
|
||||
{
|
||||
final int killCount = qs.getInt(KILL_VAR) + 1;
|
||||
if (killCount >= 3)
|
||||
{
|
||||
addAttackPlayerDesire(addSpawn(EVOLVED_GROWLER, npc.getLocation()), killer);
|
||||
qs.set(KILL_VAR, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.set(KILL_VAR, killCount);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case EVOLVED_GROWLER:
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, PECULIAR_MUSHROOM_SPORE, 1, 10, 1.0, true))
|
||||
{
|
||||
qs.setCond(2);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user