Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
L2j Server Datapack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L2j
L2j Server Datapack
Commits
9556a298
Commit
9556a298
authored
15 years ago
by
Gnacik
Browse files
Options
Downloads
Patches
Plain Diff
JAVA: Create state on NPC spawn
parent
9c7b2b93
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java
+2
-0
2 additions, 0 deletions
...a/scripts/events/CharacterBirthday/CharacterBirthday.java
with
2 additions
and
0 deletions
datapack_development/data/scripts/events/CharacterBirthday/CharacterBirthday.java
+
2
−
0
View file @
9556a298
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment