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
f41f1eed
Commit
f41f1eed
authored
12 years ago
by
Zoey76
Browse files
Options
Downloads
Patches
Plain Diff
BETA: Fixes for No Secrets (251) by jurchiks.
parent
30fd2a84
No related branches found
Branches containing commit
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/Q251_NoSecrets/Q251_NoSecrets.java
+19
-29
19 additions, 29 deletions
...me/data/scripts/quests/Q251_NoSecrets/Q251_NoSecrets.java
with
19 additions
and
29 deletions
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q251_NoSecrets/Q251_NoSecrets.java
+
19
−
29
View file @
f41f1eed
...
...
@@ -22,7 +22,7 @@ import com.l2jserver.gameserver.model.quest.State;
import
com.l2jserver.gameserver.util.Util
;
/**
* No Secrets
??
(2
1
5)
* No Secrets (25
1
)
* @author Dumpster
*/
public
class
Q251_NoSecrets
extends
Quest
...
...
@@ -52,11 +52,15 @@ public class Q251_NoSecrets extends Quest
public
Q251_NoSecrets
(
int
id
,
String
name
,
String
descr
)
{
super
(
id
,
name
,
descr
);
addStartNpc
(
PINAPS
);
addTalkId
(
PINAPS
);
addKillId
(
MOBS
);
addKillId
(
MOBS2
);
questItemIds
=
new
int
[]
{
DIARY
,
TABLE
};
}
@Override
...
...
@@ -68,11 +72,9 @@ public class Q251_NoSecrets extends Quest
return
getNoQuestMsg
(
player
);
}
if
(
event
.
equals
IgnoreCase
(
"30201-03.htm"
))
if
(
event
.
equals
(
"30201-03.htm"
))
{
st
.
set
(
"cond"
,
"1"
);
st
.
setState
(
State
.
STARTED
);
st
.
playSound
(
"ItemSound.quest_accept"
);
st
.
startQuest
();
}
return
event
;
}
...
...
@@ -90,30 +92,20 @@ public class Q251_NoSecrets extends Quest
switch
(
st
.
getState
())
{
case
State
.
CREATED
:
if
(
player
.
getLevel
()
>=
82
)
{
htmltext
=
"30201-01.htm"
;
}
else
{
htmltext
=
"30201-00.htm"
;
}
htmltext
=
(
player
.
getLevel
()
>
81
)
?
"30201-01.htm"
:
"30201-00.htm"
;
break
;
case
State
.
STARTED
:
if
(
st
.
getInt
(
"cond"
)
==
1
)
int
cond
=
st
.
getInt
(
"cond"
);
if
(
cond
==
1
)
{
htmltext
=
"30201-05.htm"
;
}
else
if
(
st
.
getInt
(
"cond"
)
=
=
2
)
else
if
(
(
cond
==
2
)
&&
(
st
.
getQuestItemsCount
(
DIARY
)
>=
10
)
&&
(
st
.
getQuestItemsCount
(
TABLE
)
>
=
5
)
)
{
if
((
st
.
getQuestItemsCount
(
DIARY
)
>=
10
)
&&
(
st
.
getQuestItemsCount
(
TABLE
)
>=
5
))
{
htmltext
=
"30201-04.htm"
;
st
.
rewardItems
(
57
,
313355
);
st
.
addExpAndSp
(
56787
,
160578
);
st
.
playSound
(
"ItemSound.quest_finish"
);
st
.
exitQuest
(
false
);
}
htmltext
=
"30201-04.htm"
;
st
.
rewardItems
(
57
,
313355
);
st
.
addExpAndSp
(
56787
,
160578
);
st
.
exitQuest
(
false
,
true
);
}
break
;
case
State
.
COMPLETED
:
...
...
@@ -127,7 +119,7 @@ public class Q251_NoSecrets extends Quest
public
String
onKill
(
L2Npc
npc
,
L2PcInstance
player
,
boolean
isPet
)
{
final
QuestState
st
=
player
.
getQuestState
(
getName
());
if
((
st
!=
null
)
&&
st
.
isStarted
()
&&
(
st
.
getInt
(
"cond"
)
==
1
))
if
((
st
!=
null
)
&&
st
.
isStarted
()
&&
st
.
isCond
(
1
))
{
final
int
npcId
=
npc
.
getNpcId
();
...
...
@@ -136,8 +128,7 @@ public class Q251_NoSecrets extends Quest
st
.
giveItems
(
DIARY
,
1
);
if
((
st
.
getQuestItemsCount
(
DIARY
)
>=
10
)
&&
(
st
.
getQuestItemsCount
(
TABLE
)
>=
5
))
{
st
.
set
(
"cond"
,
"2"
);
st
.
playSound
(
"ItemSound.quest_middle"
);
st
.
setCond
(
2
,
true
);
}
else
{
...
...
@@ -149,8 +140,7 @@ public class Q251_NoSecrets extends Quest
st
.
giveItems
(
TABLE
,
1
);
if
((
st
.
getQuestItemsCount
(
DIARY
)
>=
10
)
&&
(
st
.
getQuestItemsCount
(
TABLE
)
>=
5
))
{
st
.
set
(
"cond"
,
"2"
);
st
.
playSound
(
"ItemSound.quest_middle"
);
st
.
setCond
(
2
,
true
);
}
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