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
d55a3f45
Commit
d55a3f45
authored
11 years ago
by
Battlecruiser
Committed by
Battlecruiser
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DP part
parent
9fe3f010
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/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+4
-4
4 additions, 4 deletions
...game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
with
4 additions
and
4 deletions
L2J_DataPack/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
+
4
−
4
View file @
d55a3f45
...
@@ -302,7 +302,7 @@ public class NpcViewMod implements IBypassHandler
...
@@ -302,7 +302,7 @@ public class NpcViewMod implements IBypassHandler
}
}
else
else
{
{
GroupedGeneralDropItem
normalized
=
generalGroupedDropItem
.
normalizeMe
(
npc
,
activeChar
,
generalGroupedDropItem
.
getDeepBlueDropChance
(
npc
,
activeChar
)
);
GroupedGeneralDropItem
normalized
=
generalGroupedDropItem
.
normalizeMe
(
npc
,
activeChar
);
sb
.
append
(
"<table width=332 cellpadding=2 cellspacing=0 background=\"L2UI_CT1.Windows.Windows_DF_TooltipBG\">"
);
sb
.
append
(
"<table width=332 cellpadding=2 cellspacing=0 background=\"L2UI_CT1.Windows.Windows_DF_TooltipBG\">"
);
sb
.
append
(
"<tr><td width=32 valign=top><img src=\"L2UI_CT1.ICON_DF_premiumItem\" width=32 height=32></td>"
);
sb
.
append
(
"<tr><td width=32 valign=top><img src=\"L2UI_CT1.ICON_DF_premiumItem\" width=32 height=32></td>"
);
sb
.
append
(
"<td fixwidth=300 align=center><font name=\"ScreenMessageSmall\" color=\"CD9000\">One from group</font>"
);
sb
.
append
(
"<td fixwidth=300 align=center><font name=\"ScreenMessageSmall\" color=\"CD9000\">One from group</font>"
);
...
@@ -322,7 +322,7 @@ public class NpcViewMod implements IBypassHandler
...
@@ -322,7 +322,7 @@ public class NpcViewMod implements IBypassHandler
sb
.
append
(
item
.
getName
());
sb
.
append
(
item
.
getName
());
sb
.
append
(
"</font></td></tr><tr><td width=32></td><td width=259><table width=253 cellpadding=0 cellspacing=0>"
);
sb
.
append
(
"</font></td></tr><tr><td width=32></td><td width=259><table width=253 cellpadding=0 cellspacing=0>"
);
sb
.
append
(
"<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td><td width=205 align=center>"
);
sb
.
append
(
"<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td><td width=205 align=center>"
);
MinMax
minMax
=
getPreciseMinMax
(
normalized
.
getChance
(),
generalDropItem
.
getMin
(
npc
,
activeChar
),
generalDropItem
.
getMax
(
npc
,
activeChar
),
generalDropItem
.
isPreciseCalculated
());
MinMax
minMax
=
getPreciseMinMax
(
normalized
.
getChance
(),
generalDropItem
.
getMin
(
npc
),
generalDropItem
.
getMax
(
npc
),
generalDropItem
.
isPreciseCalculated
());
final
long
min
=
minMax
.
min
;
final
long
min
=
minMax
.
min
;
final
long
max
=
minMax
.
max
;
final
long
max
=
minMax
.
max
;
if
(
min
==
max
)
if
(
min
==
max
)
...
@@ -401,7 +401,7 @@ public class NpcViewMod implements IBypassHandler
...
@@ -401,7 +401,7 @@ public class NpcViewMod implements IBypassHandler
sb
.
append
(
"</font></td></tr><tr><td width=32></td><td width=300><table width=295 cellpadding=0 cellspacing=0>"
);
sb
.
append
(
"</font></td></tr><tr><td width=32></td><td width=300><table width=295 cellpadding=0 cellspacing=0>"
);
sb
.
append
(
"<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td>"
);
sb
.
append
(
"<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td>"
);
sb
.
append
(
"<td width=247 align=center>"
);
sb
.
append
(
"<td width=247 align=center>"
);
MinMax
minMax
=
getPreciseMinMax
(
dropItem
.
get
Modified
Chance
(
npc
,
activeChar
),
dropItem
.
getMin
(
npc
,
activeChar
),
dropItem
.
getMax
(
npc
,
activeChar
),
dropItem
.
isPreciseCalculated
());
MinMax
minMax
=
getPreciseMinMax
(
dropItem
.
getChance
(
npc
,
activeChar
),
dropItem
.
getMin
(
npc
),
dropItem
.
getMax
(
npc
),
dropItem
.
isPreciseCalculated
());
final
long
min
=
minMax
.
min
;
final
long
min
=
minMax
.
min
;
final
long
max
=
minMax
.
max
;
final
long
max
=
minMax
.
max
;
...
@@ -418,7 +418,7 @@ public class NpcViewMod implements IBypassHandler
...
@@ -418,7 +418,7 @@ public class NpcViewMod implements IBypassHandler
sb
.
append
(
"</td></tr><tr><td width=48 align=right valign=top><font color=\"LEVEL\">Chance:</font></td>"
);
sb
.
append
(
"</td></tr><tr><td width=48 align=right valign=top><font color=\"LEVEL\">Chance:</font></td>"
);
sb
.
append
(
"<td width=247 align=center>"
);
sb
.
append
(
"<td width=247 align=center>"
);
sb
.
append
(
chanceFormat
.
format
(
Math
.
min
(
dropItem
.
get
Modified
Chance
(
npc
,
activeChar
),
100
)));
sb
.
append
(
chanceFormat
.
format
(
Math
.
min
(
dropItem
.
getChance
(
npc
,
activeChar
),
100
)));
sb
.
append
(
"%</td></tr></table></td></tr><tr><td width=32></td><td width=300> </td></tr></table>"
);
sb
.
append
(
"%</td></tr></table></td></tr><tr><td width=32></td><td width=300> </td></tr></table>"
);
}
}
...
...
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