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
a2b3ec57
Commit
a2b3ec57
authored
12 years ago
by
malyelfik
Browse files
Options
Downloads
Patches
Plain Diff
BETA: Fix for ticket #5435
parent
73558cfb
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
L2J_DataPack_BETA/dist/game/data/scripts/ai/group_template/FrozenLabyrinth.java
+4
-3
4 additions, 3 deletions
.../game/data/scripts/ai/group_template/FrozenLabyrinth.java
with
4 additions
and
3 deletions
L2J_DataPack_BETA/dist/game/data/scripts/ai/group_template/FrozenLabyrinth.java
+
4
−
3
View file @
a2b3ec57
...
@@ -46,7 +46,7 @@ public final class FrozenLabyrinth extends AbstractNpcAI
...
@@ -46,7 +46,7 @@ public final class FrozenLabyrinth extends AbstractNpcAI
@Override
@Override
public
String
onAttack
(
L2Npc
npc
,
L2PcInstance
attacker
,
int
damage
,
boolean
isSummon
,
L2Skill
skill
)
public
String
onAttack
(
L2Npc
npc
,
L2PcInstance
attacker
,
int
damage
,
boolean
isSummon
,
L2Skill
skill
)
{
{
if
((
skill
!=
null
)
&&
!
skill
.
isMagic
())
if
(
npc
.
isScriptValue
(
0
)
&&
(
skill
!=
null
)
&&
!
skill
.
isMagic
())
{
{
int
spawnId
=
LOST_BUFFALO
;
int
spawnId
=
LOST_BUFFALO
;
if
(
npc
.
getNpcId
()
==
PRONGHORN
)
if
(
npc
.
getNpcId
()
==
PRONGHORN
)
...
@@ -57,13 +57,14 @@ public final class FrozenLabyrinth extends AbstractNpcAI
...
@@ -57,13 +57,14 @@ public final class FrozenLabyrinth extends AbstractNpcAI
int
diff
=
0
;
int
diff
=
0
;
for
(
int
i
=
0
;
i
<
6
;
i
++)
for
(
int
i
=
0
;
i
<
6
;
i
++)
{
{
int
x
=
diff
<
60
?
npc
.
getX
()
+
diff
:
npc
.
getX
();
final
int
x
=
diff
<
60
?
npc
.
getX
()
+
diff
:
npc
.
getX
();
int
y
=
diff
>=
60
?
npc
.
getY
()
+
(
diff
-
40
)
:
npc
.
getY
();
final
int
y
=
diff
>=
60
?
npc
.
getY
()
+
(
diff
-
40
)
:
npc
.
getY
();
final
L2Attackable
monster
=
(
L2Attackable
)
addSpawn
(
spawnId
,
x
,
y
,
npc
.
getZ
(),
npc
.
getHeading
(),
false
,
0
);
final
L2Attackable
monster
=
(
L2Attackable
)
addSpawn
(
spawnId
,
x
,
y
,
npc
.
getZ
(),
npc
.
getHeading
(),
false
,
0
);
attackPlayer
(
monster
,
attacker
);
attackPlayer
(
monster
,
attacker
);
diff
+=
20
;
diff
+=
20
;
}
}
npc
.
setScriptValue
(
1
);
npc
.
deleteMe
();
npc
.
deleteMe
();
}
}
return
super
.
onAttack
(
npc
,
attacker
,
damage
,
isSummon
,
skill
);
return
super
.
onAttack
(
npc
,
attacker
,
damage
,
isSummon
,
skill
);
...
...
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