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
305e69c3
Commit
305e69c3
authored
10 years ago
by
Zoey76
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup for Path of the Rogue quest.
Reported by: epu Thanks to: @St3eT Reviewed by: @ivantotov
parent
66787433
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
L2J_DataPack/dist/game/data/scripts.cfg
+0
-1
0 additions, 1 deletion
L2J_DataPack/dist/game/data/scripts.cfg
L2J_DataPack/dist/game/data/scripts/ai/individual/CatsEyeBandit.java
+0
-77
0 additions, 77 deletions
...k/dist/game/data/scripts/ai/individual/CatsEyeBandit.java
with
0 additions
and
78 deletions
L2J_DataPack/dist/game/data/scripts.cfg
+
0
−
1
View file @
305e69c3
...
@@ -134,7 +134,6 @@ ai/individual/Venom/Venom.java
...
@@ -134,7 +134,6 @@ ai/individual/Venom/Venom.java
ai/individual/Anais.java
ai/individual/Anais.java
ai/individual/Ballista.java
ai/individual/Ballista.java
ai/individual/Beleth.java
ai/individual/Beleth.java
ai/individual/CatsEyeBandit.java
ai/individual/CrimsonHatuOtis.java
ai/individual/CrimsonHatuOtis.java
ai/individual/Core.java
ai/individual/Core.java
ai/individual/DarkWaterDragon.java
ai/individual/DarkWaterDragon.java
...
...
This diff is collapsed.
Click to expand it.
L2J_DataPack/dist/game/data/scripts/ai/individual/CatsEyeBandit.java
deleted
100644 → 0
+
0
−
77
View file @
66787433
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package
ai.individual
;
import
quests.Q00403_PathOfTheRogue.Q00403_PathOfTheRogue
;
import
ai.npc.AbstractNpcAI
;
import
com.l2jserver.gameserver.model.actor.L2Npc
;
import
com.l2jserver.gameserver.model.actor.instance.L2PcInstance
;
import
com.l2jserver.gameserver.model.itemcontainer.Inventory
;
import
com.l2jserver.gameserver.model.quest.QuestState
;
import
com.l2jserver.gameserver.network.NpcStringId
;
import
com.l2jserver.gameserver.network.clientpackets.Say2
;
/**
* Cat's Eye Bandit (Quest Monster) AI.
* @author Gladicek
*/
public
final
class
CatsEyeBandit
extends
AbstractNpcAI
{
// NPC ID
private
static
final
int
MOB_ID
=
27038
;
// Weapons
private
static
final
int
BOW
=
1181
;
private
static
final
int
DAGGER
=
1182
;
private
CatsEyeBandit
()
{
super
(
CatsEyeBandit
.
class
.
getSimpleName
(),
"ai/individual"
);
addAttackId
(
MOB_ID
);
addKillId
(
MOB_ID
);
}
@Override
public
String
onAttack
(
L2Npc
npc
,
L2PcInstance
attacker
,
int
damage
,
boolean
isSummon
)
{
final
QuestState
qs
=
attacker
.
getQuestState
(
Q00403_PathOfTheRogue
.
class
.
getSimpleName
());
if
(
npc
.
isScriptValue
(
0
)
&&
(
qs
!=
null
)
&&
((
getItemEquipped
(
attacker
,
Inventory
.
PAPERDOLL_RHAND
)
==
BOW
)
||
(
getItemEquipped
(
attacker
,
Inventory
.
PAPERDOLL_RHAND
)
==
DAGGER
)))
{
broadcastNpcSay
(
npc
,
Say2
.
NPC_ALL
,
NpcStringId
.
YOU_CHILDISH_FOOL_DO_YOU_THINK_YOU_CAN_CATCH_ME
);
npc
.
setScriptValue
(
1
);
}
return
super
.
onAttack
(
npc
,
attacker
,
damage
,
isSummon
);
}
@Override
public
String
onKill
(
L2Npc
npc
,
L2PcInstance
killer
,
boolean
isSummon
)
{
final
QuestState
qs
=
killer
.
getQuestState
(
Q00403_PathOfTheRogue
.
class
.
getSimpleName
());
if
(
qs
!=
null
)
{
broadcastNpcSay
(
npc
,
Say2
.
NPC_ALL
,
NpcStringId
.
I_MUST_DO_SOMETHING_ABOUT_THIS_SHAMEFUL_INCIDENT
);
}
return
super
.
onKill
(
npc
,
killer
,
isSummon
);
}
public
static
void
main
(
String
[]
args
)
{
new
CatsEyeBandit
();
}
}
\ No newline at end of file
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