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
b2716a7a
Commit
b2716a7a
authored
11 years ago
by
Adry_85
Browse files
Options
Downloads
Patches
Plain Diff
BETA: Minor fix after [9988].
Reported by: jurchiks
parent
d4b80a6a
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/quests/Q00628_HuntGoldenRam/Q00628_HuntGoldenRam.java
+12
-11
12 additions, 11 deletions
...pts/quests/Q00628_HuntGoldenRam/Q00628_HuntGoldenRam.java
with
12 additions
and
11 deletions
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00628_HuntGoldenRam/Q00628_HuntGoldenRam.java
+
12
−
11
View file @
b2716a7a
...
@@ -25,6 +25,7 @@ import com.l2jserver.gameserver.datatables.SkillTable;
...
@@ -25,6 +25,7 @@ import com.l2jserver.gameserver.datatables.SkillTable;
import
com.l2jserver.gameserver.model.actor.L2Npc
;
import
com.l2jserver.gameserver.model.actor.L2Npc
;
import
com.l2jserver.gameserver.model.actor.instance.L2PcInstance
;
import
com.l2jserver.gameserver.model.actor.instance.L2PcInstance
;
import
com.l2jserver.gameserver.model.holders.ItemChanceHolder
;
import
com.l2jserver.gameserver.model.holders.ItemChanceHolder
;
import
com.l2jserver.gameserver.model.holders.QuestItemHolder
;
import
com.l2jserver.gameserver.model.quest.Quest
;
import
com.l2jserver.gameserver.model.quest.Quest
;
import
com.l2jserver.gameserver.model.quest.QuestState
;
import
com.l2jserver.gameserver.model.quest.QuestState
;
import
com.l2jserver.gameserver.model.quest.State
;
import
com.l2jserver.gameserver.model.quest.State
;
...
@@ -52,7 +53,7 @@ public final class Q00628_HuntGoldenRam extends Quest
...
@@ -52,7 +53,7 @@ public final class Q00628_HuntGoldenRam extends Quest
// Mobs
// Mobs
private
static
final
Map
<
Integer
,
ItemChanceHolder
>
MOBS_DROP_CHANCES
=
new
HashMap
<>();
private
static
final
Map
<
Integer
,
ItemChanceHolder
>
MOBS_DROP_CHANCES
=
new
HashMap
<>();
// Buffs
// Buffs
private
static
final
Map
<
String
,
ItemChance
Holder
>
BUFFS
=
new
HashMap
<>();
private
static
final
Map
<
String
,
QuestItem
Holder
>
BUFFS
=
new
HashMap
<>();
static
static
{
{
...
@@ -67,14 +68,14 @@ public final class Q00628_HuntGoldenRam extends Quest
...
@@ -67,14 +68,14 @@ public final class Q00628_HuntGoldenRam extends Quest
MOBS_DROP_CHANCES
.
put
(
21516
,
new
ItemChanceHolder
(
NEEDLE_STAKATO_CHITIN
,
0.531
,
2
));
// needle_stakato_drone
MOBS_DROP_CHANCES
.
put
(
21516
,
new
ItemChanceHolder
(
NEEDLE_STAKATO_CHITIN
,
0.531
,
2
));
// needle_stakato_drone
MOBS_DROP_CHANCES
.
put
(
21517
,
new
ItemChanceHolder
(
NEEDLE_STAKATO_CHITIN
,
0.744
,
2
));
// needle_stakato_drone_a
MOBS_DROP_CHANCES
.
put
(
21517
,
new
ItemChanceHolder
(
NEEDLE_STAKATO_CHITIN
,
0.744
,
2
));
// needle_stakato_drone_a
BUFFS
.
put
(
"Focus"
,
new
ItemChance
Holder
(
4404
,
2
,
2
));
// (buff_id, buff_level, buff_cost)
BUFFS
.
put
(
"Focus"
,
new
QuestItem
Holder
(
4404
,
2
,
2
));
// (buff_id, buff_level, buff_cost)
BUFFS
.
put
(
"Death"
,
new
ItemChance
Holder
(
4405
,
2
,
2
));
BUFFS
.
put
(
"Death"
,
new
QuestItem
Holder
(
4405
,
2
,
2
));
BUFFS
.
put
(
"Might"
,
new
ItemChance
Holder
(
4393
,
3
,
3
));
BUFFS
.
put
(
"Might"
,
new
QuestItem
Holder
(
4393
,
3
,
3
));
BUFFS
.
put
(
"Acumen"
,
new
ItemChance
Holder
(
4400
,
2
,
3
));
BUFFS
.
put
(
"Acumen"
,
new
QuestItem
Holder
(
4400
,
2
,
3
));
BUFFS
.
put
(
"Berserker"
,
new
ItemChance
Holder
(
4397
,
1
,
3
));
BUFFS
.
put
(
"Berserker"
,
new
QuestItem
Holder
(
4397
,
1
,
3
));
BUFFS
.
put
(
"Vampiric"
,
new
ItemChance
Holder
(
4399
,
2
,
3
));
BUFFS
.
put
(
"Vampiric"
,
new
QuestItem
Holder
(
4399
,
2
,
3
));
BUFFS
.
put
(
"Empower"
,
new
ItemChance
Holder
(
4401
,
1
,
6
));
BUFFS
.
put
(
"Empower"
,
new
QuestItem
Holder
(
4401
,
1
,
6
));
BUFFS
.
put
(
"Haste"
,
new
ItemChance
Holder
(
4402
,
2
,
6
));
BUFFS
.
put
(
"Haste"
,
new
QuestItem
Holder
(
4402
,
2
,
6
));
}
}
private
Q00628_HuntGoldenRam
(
int
questId
,
String
name
,
String
descr
)
private
Q00628_HuntGoldenRam
(
int
questId
,
String
name
,
String
descr
)
...
@@ -166,12 +167,12 @@ public final class Q00628_HuntGoldenRam extends Quest
...
@@ -166,12 +167,12 @@ public final class Q00628_HuntGoldenRam extends Quest
{
{
if
(
st
.
isCond
(
3
))
if
(
st
.
isCond
(
3
))
{
{
final
ItemChance
Holder
buffs
=
BUFFS
.
get
(
event
);
final
QuestItem
Holder
buffs
=
BUFFS
.
get
(
event
);
if
(
st
.
getQuestItemsCount
(
GOLDEN_RAM_COIN
)
>=
buffs
.
getCount
())
if
(
st
.
getQuestItemsCount
(
GOLDEN_RAM_COIN
)
>=
buffs
.
getCount
())
{
{
st
.
takeItems
(
GOLDEN_RAM_COIN
,
buffs
.
getCount
());
st
.
takeItems
(
GOLDEN_RAM_COIN
,
buffs
.
getCount
());
npc
.
setTarget
(
player
);
npc
.
setTarget
(
player
);
npc
.
doCast
(
SkillTable
.
getInstance
().
getInfo
(
buffs
.
getId
(),
(
int
)
buffs
.
getChance
()));
npc
.
doCast
(
SkillTable
.
getInstance
().
getInfo
(
buffs
.
getId
(),
buffs
.
getChance
()));
htmltext
=
"31556-03.htm"
;
htmltext
=
"31556-03.htm"
;
}
}
else
else
...
...
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