Skip to content
Snippets Groups Projects
Commit 9556a298 authored by Gnacik's avatar Gnacik
Browse files

JAVA: Create state on NPC spawn

parent 9c7b2b93
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ 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;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
/**
......@@ -106,6 +107,7 @@ public class CharacterBirthday extends Quest
}
if (st != null && player.checkBirthDay() == 0)
{
st.setState(State.STARTED);
L2Npc spawned = st.addSpawn(32600, player);
st.startQuestTimer("despawn_npc", 60000, spawned);
is_spawned = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment