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
b065c88b
Commit
b065c88b
authored
7 years ago
by
Adry85
Browse files
Options
Downloads
Patches
Plain Diff
Added Tanta Lizardman Summoner AI.
Reported by: Maneco2
parent
e394855c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/game/data/scripts/ai/group_template/PlainsOfLizardman.java
+6
-1
6 additions, 1 deletion
...ame/data/scripts/ai/group_template/PlainsOfLizardman.java
dist/game/data/scripts/ai/group_template/RaidBossCancel.java
+1
-0
1 addition, 0 deletions
dist/game/data/scripts/ai/group_template/RaidBossCancel.java
with
7 additions
and
1 deletion
dist/game/data/scripts/ai/group_template/PlainsOfLizardman.java
+
6
−
1
View file @
b065c88b
...
...
@@ -62,6 +62,8 @@ public final class PlainsOfLizardman extends AbstractNpcAI
private
static
final
SkillHolder
RAINBOW_FROG_SKILL
=
new
SkillHolder
(
6429
);
private
static
final
SkillHolder
STICKY_MUSHROOM_SKILL
=
new
SkillHolder
(
6428
);
private
static
final
SkillHolder
ENERGY_PLANT_SKILL
=
new
SkillHolder
(
6430
);
// Misc
private
static
final
double
HP_PERCENTAGE
=
0.60
;
// Buffs
private
static
final
SkillHolder
[]
BUFFS
=
{
...
...
@@ -122,9 +124,12 @@ public final class PlainsOfLizardman extends AbstractNpcAI
switch
(
npc
.
getId
())
{
case
TANTA_SUMMONER:
if
(
!
npc
.
isAffectedBySkill
(
DEMOTIVATION_HEX
.
getSkillId
()
))
if
(
(
npc
.
getCurrentHp
()
<
(
npc
.
getMaxHp
()
*
HP_PERCENTAGE
))
&&
npc
.
isScriptValue
(
0
))
{
npc
.
setScriptValue
(
1
);
npc
.
doCast
(
DEMOTIVATION_HEX
);
addAttackDesire
(
addSpawn
(
TANTA_SCOUT
,
npc
.
getX
(),
npc
.
getY
(),
npc
.
getZ
(),
0
,
false
,
0
,
false
),
attacker
);
addAttackDesire
(
addSpawn
(
TANTA_SCOUT
,
npc
.
getX
(),
npc
.
getY
(),
npc
.
getZ
(),
0
,
false
,
0
,
false
),
attacker
);
}
break
;
case
RAINBOW_FROG:
...
...
This diff is collapsed.
Click to expand it.
dist/game/data/scripts/ai/group_template/RaidBossCancel.java
+
1
−
0
View file @
b065c88b
...
...
@@ -30,6 +30,7 @@ import ai.npc.AbstractNpcAI;
/**
* Raid Boss Cancel AI.
* @author Adry_85
* @since 2.6.0.0
*/
public
final
class
RaidBossCancel
extends
AbstractNpcAI
{
...
...
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