Commit graph

374 commits

Author SHA1 Message Date
HorridoJoho
01d4baf142 # Extending actor debug capabilities.
Needs datapack support.
2021-05-21 16:51:41 +02:00
Maneco2
723a94b489 Fix Archer class npc's don't move around in attack condition
Fix archers attack in close range of target
Drop old 'getDodge()' method, replaced for 'AIType.ARCHER'
Now archer movement chance working in L2attackableAI
2021-05-19 10:40:27 -03:00
HorrridoJoho
5b27b5508d Add ColosseumFence actor and server packet. 2021-05-17 18:41:11 +02:00
Maneco2
c76e64a164 Fixed old issue that npc not use correct range from ARCHER classes
fixed issue #249
2021-05-16 23:48:46 -03:00
Maneco2
5b0d923238 Fix old issue that npc use skills without check range 2021-05-16 18:14:20 -03:00
HorridoJoho
94daaa517c Mention default npc ID in TeleporterService config.
For new users it was difficult to find out the default npc ID of the TeleporterService.

* Added docs in teleporterservice.properties for the default npc ID

Reported by: @Yeiij
2021-04-19 09:48:27 +00:00
HorridoJoho
dc2e888344 Mention default npc ID in BufferService config.
For new users it was difficult to find out the default npc ID of the BufferService.

* Added docs in bufferservice.properties for the default npc ID

Reported by: @Yeiij
2021-04-19 09:44:49 +00:00
HorridoJoho
3e581e5be3 TeleporterService (config)
* Required commit for TeleporterService script from datapack.
2021-04-17 16:20:34 +02:00
Maneco2
bec4b19911 Fix Auto Loot Extension save item on change on/off command 2021-02-28 00:28:05 -03:00
Yeiij
6e3335bbe5 Merged in develop (pull request #38)
Adding missing check when the AI has lost the control (fear, confusion)

* Adding missing check when the AI has lost the control (fear, confusion)
* Merged l2jserver/l2j-server-game:develop into yeiij/l2j-server-game:develop

Approved-by: Zoey76
2021-02-16 09:09:45 +00:00
Stalitsa
040b1acbce Merged in develop (pull request #41)
Added support for moderation commands.

* Added support for moderation commands.

Approved-by: Zoey76
2021-02-15 12:49:21 +00:00
Maneco2
f7e1668380 Minor change Auto Loot Extension 2021-01-18 11:25:38 -03:00
Zoey76
45c0e94d51 Update copyright 2021-01-17 19:44:02 -03:00
Maneco2
de04327906 Added Auto Loot Extension
Fixes #52
2021-01-17 11:43:19 -03:00
Zoey76
260085b80b Target System (Part 1)
Removed L2TargetType and temporarily merged it with TargetType.
Added implementation of affect scopes: DEAD_PLEDGE, NONE, PARTY,
PARTY_PLEDGE, PLEDGE, POINT_BLANK, RANGE, RANGE_SORT_BY_HP, SINGLE.
Added implementation of affect object: ALL, CLAN (missing NPC), FRIEND,
INVISIBLE, NONE, NOT_FRIEND, OBJECT_DEAD_NPC_BODY, UNDEAD_REAL_ENEMY,
WYVERN_OBJECT.
Added Chain Heal official support.
Removed custom condition ConditionTargetMyPartyExceptMe.
Added missing condition ConditionTargetMyParty.
Replaced Mockito with EasyMock.
Added @Custom annotation to mark features that are not official like and
will be eventually removed or reworked.
2021-01-15 00:56:20 -03:00
Maneco2
22678f0ad1 Direction of movement without restriction from geo 2021-01-12 12:59:04 -03:00
Zoey76
3efc3f0c6e Fixed Requiem not being castable by normal players
Fixes #308
2020-12-18 02:09:14 -03:00
Zoey76
b819cb8cbe Re implemented Condition Check Abnormal
Minor changes to allow unit testing.
Renamed attribute type DARK to UNHOLY.
2020-12-17 22:02:41 -03:00
Zoey76
889791ebd7 In multitarget skills affect limit 0 means unlimited targets
Fixes #272
2020-12-11 02:22:10 -03:00
Zoey76
a95cffd81a Skill fixes
Added support for parsing int arrays with default value.
Fixed typo in AffectObject enum.
Added skill attribute hitCancelTime.
Added skill attribute affectObject.
Simplified skill attribute affectLimit parsing.
Removed useless JavaDocs from Skill.

Added shield defense bonus into Magic Damage formula.
2020-12-10 21:28:39 -03:00
Zoey76
be391ba969 Adding temp fix to missing files when multilanguage support is enabled
Fixes #343
2020-12-06 00:24:03 -03:00
Yeiij
41a3b8f1c5 Allowing debuff on a player from clan war
Adding checks: both player/target has clan, has war, they do not want peace, they are not from academy

Approved-by: Fabbian Fellipe
Approved-by: Zoey76
2020-12-06 01:19:12 +00:00
Zoey76
8028f75064 Minor cleanup and formatting 2020-12-05 13:40:03 -03:00
HorridoJoho
30798043ff BufferService (forbid-configs)
Adding forbid configs to bufferservice.properties. A datapack update is
required for this to work.

New configs in detail:

ForbidInZones
- A list of zones where the buffer can not be used

ForbidInEvents
- Specifies if the buffer can be used in events

ForbidInDuell
- Specifies if the buffer can be used in a duell

ForbidInFight
- Specified if the buffer can be used while fighting

ForbidInPvp
- Specifies if the buffer can be used in pvp (pink name)

ForbidForChaoticPlayers
- Specified if the buffer can be used by chaotic players (red name)
2020-12-03 13:06:05 +01:00
b483
e0802be5a0 Finish moving before sitting
Currently, if you issue a sit command it is fulfilled immediately.
This change makes it so that the character sits after it has
arrived at its destination (retail-like).
2020-11-25 12:08:19 +00:00
Stalitsa
535783dd3f Server side discord bot support 2020-11-22 19:17:09 -03:00
b483
4b078001bb Fix typo "dropable"
Fix typo "dropable" (-> "droppable") across files.
2020-11-19 19:19:56 +00:00
ivantotov
4d3d89e1d2 Support long in Memo State Ex. 2020-11-09 22:46:16 +02:00
Zoey76
7738e6c395 Adding friend and block list limits.
Reported by: cocosnow
2020-11-07 22:51:16 -03:00
Zoey76
4c396f2970 Fixing typo in Seven Signs config file name
Reported by: WhoBeDat
2020-10-27 23:22:33 -03:00
Zoey76
6fce8fbb3d Fixing instance eject time
Reported by: Einhasad
2020-10-10 16:00:17 -03:00
Zoey76
3cd7e62d65 Clearing up technical debt
Fixed hundreds of typos both in comments and code.
Using enhanced switch where it's possible.
Replaced string concatenation with StringBuilder in loops.
Simplified boolean expressions.
Removed redundant assignments.
Finalized class members where possible.
Fixed invalid exception logging.
Removed redundant types from diamond <> declarations.
Changed inner classes to static where possible.
Removed several useless JavaDocs.
Reduced type boxing/unboxing.
Used computeIfAbsent where possible.
Simplified switch with if where possible.
Removed final from private and static methods.
Cleaned up enums, removed unused ; or , and private on constructors.
Removed invalid null checks.
Removed default values in XSDs.
2020-09-20 04:44:50 -03:00
HorridoJoho
ca802ef167 BufferService for L2J (requires l2j-server-datapack update).
Requires l2j-server-datapack update for BufferService script and data.

Added config to get started easily: config/bufferservice.properties
Suggested by @nonom
2020-09-07 14:24:48 -03:00
Zoey76
a4d99dd728 Minor typo fixes in duel related clases 2020-09-07 04:56:26 -03:00
Zoey76
8a8dda9ed3 Added support for Agathions with Energy
Added Condition player has agathion.
Added condition player agathion energy.
Added packet ExBR_AgathionEnergyInfo to display agathion energy on
inventory.
Added database support for agathion energy.
Added Agathion energy data, must be unhardcoded.
Fixed several typos in the code.

Require database update.
2020-09-07 04:53:19 -03:00
Zoey76
a880ef1543 Removing custom class FastStringBuilder 2020-08-30 20:21:31 -03:00
Zoey76
f9ec03dfc2 Fixing invalid DefaultPunish configuration options
Reported by: Einhasad
2020-08-30 20:12:07 -03:00
Zoey76
1c3297ce2b Added external custom configuration directory
Changed configuration strategy to merge configs.
Updated to Java 14's version of L2J Commons, Geo Driver and MMO Core.
2020-08-24 15:20:03 -03:00
Zoey76
957dce2d15 Update to Java 14
Fixed invalid use of ResultSet#first() instead of ResultSet#next(),
reported by cryops.
Fixed several typos.
Updated L2J Commons to 2.6.3.0.
Updated MMO Core to 2.6.2.0.
Updated TestNG to 7.3.0.
Updated Mockito to 3.5.2.
2020-08-22 21:14:54 -03:00
Zoey76
8dad986137 Fixing long term events configration location
Reported by: CostyKiller
Fixes #307
2020-08-16 18:42:38 -03:00
Zoey76
c118d13af6 Party Matching fixes
Fixed packet structure, reported by darkagent
Added class filter.
Added text filter.
Added pagination support.
Added region display of players in waiting room.
Added instance display of players in waiting room with reuse.

Requires MMOCore update.

Fixes #325
2020-08-11 00:39:53 -03:00
Zoey76
df9dfa6591 Fixing wrong Id in item drop
Reported by: Серёга
Fixes #328
2020-08-09 20:20:27 -03:00
Zoey76
b13c238224 Fixing PartyXpCutoffGapPercent configuration
Reported by: zachramuz, JMD
2020-08-09 20:12:29 -03:00
Zoey76
143230a7c9 Adding support for "Universal" Login Server 2020-08-03 03:14:23 -03:00
Zoey76
95fb9dcf66 Clan name should not include spaces
Reported by: Darkloud91
Patch by: george_spatacean

Fixes #236
2020-07-15 02:51:52 -03:00
Zoey76
82102d3964 Clan crash fix
Fixed logout logger and differentiated logout from restart.
Fixed clan crash, reported by HD321kbps.
Reworked PostBBSManager, Forum, ForumRepositoryMySQLImpl and
ForumsBBSManager classes.
Decoupled L2Clan from Forum.

Fixes #327
2020-07-11 21:51:59 -03:00
Zoey76
64861faded Script Loading rework
Modified ScriptEngineManager to load scripts in different compilers
instead of a single static instance (this led to duplicated script
reload and performance issues), greatly simplified the code.
Split script loading in several sections.
Fixed minions not unspawning after boss death.

Reported by: FinalDestination, CostyKiller, L2jXorus, jonhanon, Edoogel
Fixes #182
Fixes #293
2020-07-10 14:34:52 -03:00
Zoey76
9678e1612d Removing redundant code and minor JavaDoc corrections 2020-06-21 21:22:52 -03:00
Zoey76
3d1e7158d9 Code format and cleanup
Private methods don't need to be final.
Enums don't need to be static.
Public methods in final classes don't need to be final.
Interfaces don't need public methods.
Added Eclipse formatter.
2020-06-21 07:07:20 -03:00
Maneco2
3b3cbeb138 Fix all debuffs related issues #24 2020-06-11 16:40:48 -03:00