P0nk
7bd5fa387d
Merge branch 'refs/heads/master' into feat/postgresql-database
2024-09-13 21:29:50 +02:00
Ponk
5fabbaf7ab
Merge pull request #261 from pimittens/vanillafixes #patch
...
chaos scroll fix
2024-09-13 21:25:51 +02:00
P0nk
559fe2d550
Merge branch 'refs/heads/master' into feat/postgresql-database
...
# Conflicts:
# config.yaml
# docker-compose.yml
# pom.xml
# src/main/java/client/Character.java
# src/main/java/client/Client.java
# src/main/java/client/MonsterBook.java
# src/main/java/client/command/commands/gm0/BuyBackCommand.java
# src/main/java/client/processor/stat/AssignAPProcessor.java
# src/main/java/config/ServerConfig.java
# src/main/java/net/server/channel/Channel.java
# src/main/java/net/server/channel/handlers/AbstractDealDamageHandler.java
# src/main/java/net/server/channel/handlers/BuddylistModifyHandler.java
# src/main/java/net/server/channel/handlers/CloseRangeDamageHandler.java
# src/main/java/net/server/channel/handlers/EnterMTSHandler.java
# src/main/java/net/server/channel/handlers/NPCTalkHandler.java
# src/main/java/net/server/channel/handlers/RangedAttackHandler.java
# src/main/java/net/server/channel/handlers/SummonDamageHandler.java
# src/main/java/net/server/channel/handlers/UseCashItemHandler.java
# src/main/java/net/server/handlers/login/CreateCharHandler.java
# src/main/java/net/server/world/World.java
# src/main/java/scripting/npc/NPCConversationManager.java
# src/main/java/server/ItemInformationProvider.java
# src/main/java/server/life/Monster.java
# src/main/java/server/life/MonsterInformationProvider.java
# src/main/java/server/maps/MapleMap.java
# src/main/java/tools/PacketCreator.java
# src/test/java/service/NoteServiceTest.java
# src/test/java/testutil/Any.java
2024-09-02 20:43:55 +02:00
P0nk
cdd1c8cb61
Proper timing on removing exploded meso
...
No longer using scheduling on server side but rather
a delay value inherent to the "remove item from map" packet.
2024-08-20 20:13:01 +02:00
P0nk
e30700de66
Fix drop delay from summon attack
2024-08-17 21:27:43 +02:00
P0nk
802cc2b5f5
Use delay from packets for drop timing
2024-08-17 19:13:36 +02:00
P0nk
2ffca90d29
Add attack delay to AttackInfo
...
Meant to be used in item drop packet for timing handled by the client
rather than scheduling item drop packets on the server.
2024-08-14 07:45:06 +02:00
pimittens
ec90df9c58
chaos scroll fix
...
The intention of the rand method is to return a pseudorandom uniformly distributed int between lbound and ubound (both inclusive). The previous implementation did not work as intended when the lower bound was negative since java round up instead of down when casting a negative double to an int. Adding the lower bound after the cast rather than before fixes this.
Also changed the CHSCROLL_STAT_RANGE from 6 to 5 to be consistent with gms.
2024-08-06 20:42:23 -07:00
P0nk
cad10c4d5c
Remove rebirth system
2024-07-19 17:16:14 +02:00
P0nk
2324ae7f9e
Refactor BanishInfo - make it a record
2024-07-17 18:11:50 +02:00
P0nk
6ab1af99da
Add tests for CashShopSurpriseHandler
2024-06-16 13:56:54 +02:00
P0nk
01ae462b72
Refactor CashShop - add constants for cash types
2024-06-16 12:19:16 +02:00
P0nk
4e743128e9
Remove all wildcard imports
2024-05-22 08:33:44 +02:00
P0nk
04a92fe0c1
Remove buyback custom feature
2024-05-21 19:44:25 +02:00
P0nk
0eb78e2d9e
Use root db user by default
2024-05-09 22:08:28 +02:00
P0nk
f6d06ba82a
Extract "char list" from Client to handler
2023-08-06 21:14:32 +02:00
P0nk
f6aa8ceba6
Rewrite MonsterBook, touch up chr loading
...
Temporarily disabled loading monster cards from db
2023-07-25 21:27:35 +02:00
P0nk
c3badba73b
Convert ShopItem to record
2023-03-30 07:07:33 +02:00
P0nk
5f0e9a355b
Move Shop stuff to own package
2023-03-30 06:47:07 +02:00
P0nk
adbdb89917
Add maker_recipe table and data (formerly "makercreatedata")
2023-03-01 20:34:48 +01:00
P0nk
37a9a4121f
Show confirmation after note is sent
2022-12-27 12:31:47 +01:00
P0nk
65111ae209
Create packet class for PacketCreator::showNotes
2022-12-27 12:18:36 +01:00
P0nk
389b3ad2a4
Add NoteService to handle note operations
...
NoteService should be the only class with access to NoteDao;
nowhere else should NoteDao be accessed directly.
Channel dependencies are static in PacketProcessor, for now.
Ideally they would be injected in the constructor,
but since the constructor is private and I don't want to open
up that can of worms, I'll leave it like this.
At the very least, now we have a way of injecting services into
the handlers. This will make further restructuring way easier.
2022-12-27 10:34:55 +01:00
P0nk
1f4ce98998
Show notes using NoteDao
2022-12-26 18:07:41 +01:00
P0nk
605f2e212e
Add NoteDao, used by NoteActionHandler to delete note when read
2022-12-26 18:07:41 +01:00
P0nk
2d7d113458
Initial jdbi setup
2022-12-26 18:07:41 +01:00
P0nk
1a28fc98ac
Commit to "tameness" name over "closeness" for pets, fix scripts
2022-09-15 17:12:21 +02:00
P0nk
d31f4806fc
Fix mob using attack with no diseaseSkill causing errors
2022-09-12 20:31:38 +02:00
P0nk
a6ec6adbb5
Combine type and skillLevel in MobSkill
2022-09-03 14:07:24 +02:00
P0nk
7cdaabf6f8
Simplify Monster skills with Set instead of List
...
Doable now with MobSkillId records
2022-09-03 13:31:47 +02:00
P0nk
930d365752
Add record MobSkillId for mob skill type + level combination
...
Pair is nasty to work with when they are passed around all over
2022-09-03 11:01:51 +02:00
P0nk
66b04969fd
Delete ArrayMap which filled no function
2022-09-03 04:32:09 +02:00
P0nk
aeaad4194a
Refactor MobSkill#applyEffect, split into multiple smaller methods
2022-09-03 04:22:06 +02:00
Windyboy
97f358f047
Analyze pet packet structure correctly
2022-08-17 14:07:39 +08:00
P0nk
d691dc1e18
Prefer Path.of() over Paths.get()
2022-08-11 19:01:40 +02:00
P0nk
8657b765b1
Remove monitored read/write locks, use basic version
2022-08-11 14:16:06 +02:00
Ponk
381851e95e
Merge pull request #89 from truongdatnhan/master
...
Fixing bugs, Clean up code, Upgrade to new Syntax
2022-08-11 11:16:15 +02:00
P0nk
58277574b5
Refactor QuestItemFetcher, remove commons-io dependency
2022-08-11 01:15:34 +02:00
P0nk
7aba5f4578
Refactor MapInfoRetriever, stop using FileUtils from commons
2022-08-11 01:01:08 +02:00
P0nk
28bc5ee925
Refactor EventMethodFiller, stop using FileUtils from commons
2022-08-11 00:43:08 +02:00
Đạt Nhân Trương
0ef3e69638
Clean up code, replace switch and try-with-resource where possible.
2022-08-07 21:51:10 +07:00
Đạt Nhân Trương
f983b4dccf
Clean up code & Upgrade syntax to new Java
2022-08-07 01:35:02 +07:00
Đạt Nhân Trương
d9a86d6d75
Fixing indents !
2022-08-02 23:14:17 +07:00
Đạt Nhân Trương
4496e0854f
Clean up formatting & Update NIO in some remaining files
2022-08-01 14:25:32 +07:00
Đạt Nhân Trương
a44744c05b
Upgrade to Java NIO
2022-07-30 16:10:46 +07:00
P0nk
513c9b615d
Rework View all characters - fix packet and limit max chrs
...
Thanks to Lehava#4668 for finding the packet structure
2022-03-26 15:51:16 +01:00
P0nk
084e7b22fa
Consolidate HexTool methods and add more tests
2022-02-14 19:48:21 +01:00
P0nk
1daddbf302
Use HexFormat for converting from bytes to hex string and the other way round
2022-02-14 18:37:30 +01:00
P0nk
0e32f439fb
Add unit tests for HexTool
2022-02-14 18:20:02 +01:00
P0nk
2bbfd46105
Stop logging with System.out.println, start using slf4j
2022-02-10 21:40:54 +01:00