From 9556a29879307fd1450a926999cede5903d755fa Mon Sep 17 00:00:00 2001
From: Gnacik <Gnacik@users.noreply.github.com>
Date: Sun, 28 Mar 2010 08:37:14 +0000
Subject: [PATCH] JAVA: Create state on NPC spawn

---
 .../scripts/events/CharacterBirthday/CharacterBirthday.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java b/datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java
index bd3d7e1937..73cd235afc 100644
--- a/datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java
+++ b/datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java
@@ -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;
-- 
GitLab