P0nk
a7d03cf8c0
Merge branch 'master' into feat/postgresql-database
2024-02-04 15:12:14 +01:00
Ponk
ceb2866aa1
Merge pull request #214 from leevccc/master #patch
...
fix: item lock cant extend lock time
2024-02-04 14:22:00 +01:00
leevccc
08b089d9be
fix: seal lock cant extend lock time
2024-01-14 22:13:16 +08:00
leevccc
8b254a294e
fix: item lock cant extend lock time
2024-01-14 18:15:48 +08:00
yuzumika
5a4200cc8e
implement ByteBufInPacket.readUnsignedByte
2024-01-04 10:55:07 -08:00
yuzumika
cb0320a471
NPCMoreTalkHandler: don't underflow selection
2024-01-03 16:10:23 -08:00
P0nk
033d91ed71
Merge branch 'master' into feat/postgresql-database
...
# Conflicts:
# config.yaml
# src/main/java/config/ServerConfig.java
2023-11-08 21:21:07 +01:00
王小宝
c3404d296a
Fix MTS sql syntax error and month error
2023-10-13 21:16:40 +08:00
P0nk
0aee9d7c3f
Fix unable to create playernpc
...
The initialization of the running world counters depended on worlds already having been initialized, so I made that dependency more explicit.
2023-09-19 12:56:51 +02:00
P0nk
392a350eab
Merge branch 'master' into feat/postgresql-database
...
# Conflicts:
# docker-compose.yml
2023-08-20 18:30:52 +02:00
Arnah
2d7525f2b4
Fix cashshop exiting not using proper ip
2023-08-16 16:19:16 -06:00
Arnah
7adb25888f
Stop masking ip address when connecting locally
2023-08-16 00:53:40 -06:00
P0nk
f33df59f49
Move some Client#forceDisconnect calls to TransitionService
2023-08-11 22:00:33 +02:00
P0nk
cd75e85bec
Move some autoban logic to new BanService
2023-08-10 22:52:09 +02:00
P0nk
cb31121fe7
Disconnect client with TransitionService
2023-08-10 21:58:55 +02:00
P0nk
d5682a5f65
Add client disconnection logic to TransitionService
...
Problem: disconnecting requires access to CharacterSaver,
which is not available in Client.
Having it in a service like this solves that problem.
Next step is to migrate all calls to Client#disconnect and Client#forceDisconnect
to their TransitionService counterparts.
2023-08-08 21:51:12 +02:00
P0nk
f6d06ba82a
Extract "char list" from Client to handler
2023-08-06 21:14:32 +02:00
P0nk
bbee8d7caa
Merge chr name + id wrappers into new CharacterIdentity record
2023-08-06 20:35:26 +02:00
P0nk
48d9aaa871
Clean up Client - visibleWorlds & canRequestCharlist
...
canRequestCharlist is a relic from the past when "View all char"
functionality was hacked together with wrong packets.
visibleWorlds I'm less sure about. I suppose it's useful if you add world
(via command) while someone is still on the login screen.
But the functionality of adding/removing worlds live is a recipe for disaster
and will eventually (likely) be removed.
2023-08-06 20:02:39 +02:00
P0nk
f44083aeba
Refactor Client#finishLogin
2023-08-06 17:26:34 +02:00
P0nk
449ab01bc2
Remove "vote points" feature
2023-08-06 16:55:34 +02:00
P0nk
2686b2b02d
Disconnect client by throwing exception in handler
...
This makes it easier to add checks in handlers, which should improve security over time.
I think this approach is more readable and testable than calling Client#disconnect straight up,
while it also decentralizes the handling.
2023-08-06 15:48:49 +02:00
P0nk
4e39142fb3
Direct almost all chr saving through CharacterSaver
...
Client#disconnectInternal remains.
Had to remove some configurable save points to keep it simple.
2023-08-04 16:14:51 +02:00
P0nk
05b7ec77c8
Add ChannelService to handle cc'ing
2023-08-04 15:01:49 +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
46f767d79c
Merge branch 'master' into feat/postgresql-database
2023-05-29 15:56:53 +02:00
Matthew Hinds
a9d92b78a2
Meso drop restricted by GM level
2023-05-29 12:57:01 +12:00
Shahar6
cbc0b2707e
Fix dupe glitch with wedding
...
PoC for the glitch:
https://www.youtube.com/watch?v=EoVGQtMkJOA&ab_channel=ThirtyOneFifty
2023-04-21 20:27:59 +03:00
P0nk
785f74ed21
Fix HelpCommand not working without static CommandsExecutor
2023-03-31 07:59:43 +02:00
P0nk
699da37f06
Simplify NPC script start
2023-03-31 07:33:49 +02:00
P0nk
5f0e9a355b
Move Shop stuff to own package
2023-03-30 06:47:07 +02:00
P0nk
39d759595d
Get shop as Optional
2023-03-30 06:41:13 +02:00
P0nk
fe9dd75a23
Instantiate shops in ShopFactory
2023-03-29 21:59:00 +02:00
P0nk
c71ca7f4d5
Inject ShopFactory
2023-03-29 20:51:31 +02:00
P0nk
cc88d382e6
Monster drops are retrieved from DropProvider (postgres db)
...
This commit emphasizes the need for events to be reworked.
This is the chain of constructors the DropProvider has to pass through to reach MapleMap:
Channel -> EventScriptManager -> EventManager -> EventInstanceManager -> MapManager -> MapleMap
2023-03-16 08:31:38 +01:00
P0nk
eed94ec34a
Refactor CommandsExecutor - is no longer static singleton
...
Preparing for change in Command#handle,
which is going to take a CommandContext as an additional argument.
This way we can pass in command dependencies in a safe way
instead of requiring them to access static methods.
2023-03-15 22:56:40 +01:00
P0nk
7ed7b25268
Fix race condition when concurrently Stealing
2023-03-15 22:38:54 +01:00
P0nk
703ae30a27
Move "steal item" logic to DropProvider
2023-03-15 22:22:14 +01:00
P0nk
c0c0a2d2d9
Get maker reagent from PG db, rework processor (no statics)
2023-03-02 08:18:13 +01:00
P0nk
f6f3c9c3e3
Initiate Postgres connection pool on startup
2023-02-25 00:11:33 +01:00
P0nk
8bb825ef02
Add Docker compose support for Postgres
2023-02-24 23:42:13 +01:00
P0nk
f1192279bf
Add Flyway, run db migration in local PostgreSQL db
...
First step in my plan to switch away from MySQL.
2023-02-24 21:49:00 +01:00
P0nk
b30e03ffb3
Fix portal in Zenumist society not working for GM chr
2023-02-17 00:42:33 +01:00
P0nk
82157c7bd1
Flatten ChangeMapHandler
2023-02-16 23:46:13 +01:00
P0nk
771b69d151
Merge branch 'master' into feat/note-dao
2022-12-27 14:21:43 +01:00
P0nk
14d80dc2f3
Fix saving "Illegal program claim" report
...
No chatlog is provided in the packet for this type
2022-12-27 14:08:20 +01:00
P0nk
cb38bcd270
Fix wrong timestamp format when saving report
2022-12-27 14:08:20 +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
387437cada
Workaround for Guild dependence on NoteDao
2022-12-27 11:05:00 +01:00