[Classic] Custom tutorial quest.
This commit is contained in:
59
trunk/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java
vendored
Normal file
59
trunk/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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.Q00255_Tutorial;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* Tutorial Quest (Placeholder)
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00255_Tutorial extends Quest
|
||||
{
|
||||
public Q00255_Tutorial()
|
||||
{
|
||||
super(255, Q00255_Tutorial.class.getSimpleName(), "Tutorial");
|
||||
setIsCustom(true);
|
||||
}
|
||||
|
||||
@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 "user_connected":
|
||||
{
|
||||
// Do stuff on player login.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@ -92,6 +92,7 @@ import quests.Q00238_SuccessFailureOfBusiness.Q00238_SuccessFailureOfBusiness;
|
||||
import quests.Q00239_WontYouJoinUs.Q00239_WontYouJoinUs;
|
||||
import quests.Q00240_ImTheOnlyOneYouCanTrust.Q00240_ImTheOnlyOneYouCanTrust;
|
||||
import quests.Q00254_LegendaryTales.Q00254_LegendaryTales;
|
||||
import quests.Q00255_Tutorial.Q00255_Tutorial;
|
||||
import quests.Q00270_TheOneWhoEndsSilence.Q00270_TheOneWhoEndsSilence;
|
||||
import quests.Q00278_HomeSecurity.Q00278_HomeSecurity;
|
||||
import quests.Q00279_TargetOfOpportunity.Q00279_TargetOfOpportunity;
|
||||
@ -305,6 +306,7 @@ public class QuestMasterHandler
|
||||
Q00239_WontYouJoinUs.class,
|
||||
Q00240_ImTheOnlyOneYouCanTrust.class,
|
||||
Q00254_LegendaryTales.class,
|
||||
Q00255_Tutorial.class,
|
||||
Q00270_TheOneWhoEndsSilence.class,
|
||||
Q00278_HomeSecurity.class,
|
||||
Q00279_TargetOfOpportunity.class,
|
||||
|
Reference in New Issue
Block a user