1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-16 23:47:45 +00:00
Commit graph

573 commits

Author SHA1 Message Date
Alice Ogeda
9d49139a0c return spaced player name in case of player not found in db; 2024-06-22 00:28:44 +01:00
Mimi
7bfd9538c9
[3.x] WIP: Initial Action and StatusEffect implementation (#958)
* Check statuses to determine valid lut entry

* Add duration field to statuses

* Rename buildEffects to make more sense

* Add basic generic handler for applying statuseffects

* Add more modifiers

* Add basic modifier impl for Chara

* Apply/remove modifiers for statuseffects

* Add some example statuses to lut

* Fix windows build error

* Don't clear tick effect

* Add status entry for Maim

* Apply status effects properly for self when having a target

* Fix hasStatusEffect to prevent duplicates

* Basic dot/hot ticks implemented

* Update HP on tick effects

* Apply effect to correct target

* Add method to simplify applying statuses to self

* Add job actions for warrior

* Add some actions and statuses for war

* Add even more modifiers

* Add statuseffect cost type

* Add option to not send statusremove order

* Change delModifier assert to return early instead

* Add option for scripts to enable the generic/lut handler

* Add enums for common action values

* fix indentation

* Fix modifier name for Defiance

* Remove status tick logging

* Move modifiers to statuseffect

* Add ParryPercent modifier

* Remove wrath when Defiance ends

* Apply modifiers in applyStatus

* Remove unused method

* Persistence for cross-class skills

* Add flags to StatusEffects

* Some exd struct fixes

* Some aoe work

* Add flags to lut

* Add missing changeclass

* Add SET_STATUS_ME to ActionIntegrity

* Improve offensive action check

* Add flag to overloaded applyStatusEffectSelf

* indentation fix

* Some calculation work

* Null-check ActionResultBuilder

---------

Co-authored-by: Lucy <44952533+Skyliegirl33@users.noreply.github.com>
Co-authored-by: Mordred <30826167+SapphireMordred@users.noreply.github.com>
2024-06-21 12:27:01 +10:00
Pinapelz
3008404c22 add remove condition casting in EventMgr
fixes issue where using EventItemAction during quests makes the player stuck casting
2024-05-12 11:57:14 -07:00
Mordred
a65b23778b
Merge pull request #927 from hkAlice/faster-but-not-enough
[3.x] overall optimizations; add getRows to exd data;
2023-03-25 08:24:57 +01:00
Mordred
928729326c Gambit packs added. Basic timelines for bnpc actions can be defined. 2023-03-24 22:52:38 +01:00
Alice Ogeda
dedf66f28d add getRows to exd; optimize iterative exd calls further; split namespace for slim header structs; 2023-03-24 17:38:58 -03:00
Alice Ogeda
d5c4739a77 use cache in getterritorydetail; remove unused bgpath; avoid throwing exceptions when possible; 2023-03-24 13:31:50 -03:00
Mordred
33463f45a9 More cleanup of actions 2023-03-15 15:21:03 +01:00
Mordred
31557f52f8 Fixe for target and statuseffect issues, cleanup of gambits 2023-03-12 20:46:27 +01:00
Mordred
5cc7b0c87b Converted autoattacks to the action system 2023-03-11 20:52:52 +01:00
Mordred
5d353de158 Action logic rework #1
statuseffects and autoattack still on the todo list
2023-03-10 17:32:52 +01:00
Mordred
0def7896ec Refactoring of action logic, ongoing.
Fixing source of actorcontrols being always player for single target packets.
2023-03-09 21:54:30 +01:00
Mordred
859f2329bb Another big batch of refactoring for readability. 2023-03-08 09:20:08 +01:00
Mordred
4bee448f4b Syntax error which snuck in fixed. 2023-03-07 15:09:56 +01:00
Mordred
fb7be5053a Some more packet cleanup. 2023-03-07 15:08:28 +01:00
Mordred
ca002dadd1 Renamed the Util::Player namespace to Util::Packet. More cleanups and refactorings. 2023-03-07 10:25:55 +01:00
Mordred
5fdbc90487 Next big batch of packet cleanup 2023-03-06 13:27:56 +01:00
Mordred
f4ab4ab418 More cleanup of player packets. 2023-03-06 10:12:29 +01:00
Mordred
35f3ef8109 Moving player packet generation into a player util function 2023-03-05 23:27:43 +01:00
Alice Ogeda
9528b8177e add achv history support; 2023-03-05 16:05:25 -03:00
Mordred
0a9f5da1d3 Clarity through better naming of fields. 2023-02-28 10:31:59 +01:00
Mordred
6cb86efd47 Cleanup of GameConnection 2023-02-27 09:57:22 +01:00
Mordred
cd01ed7295 Cleanup of GameConnection 2023-02-27 09:57:12 +01:00
Mordred
0116272e69 Reducing direct calls to getSession 2023-02-27 08:58:08 +01:00
Mordred
d8dd7dea4c Moved player management actually into playerMgr... 2023-02-25 15:58:11 +01:00
Mordred
e0ec74a6bc More cleanups. 2023-02-25 15:31:57 +01:00
Mordred
c647cc2511 Some minor refactorings I came across while working on events. 2023-02-22 14:55:59 +01:00
Mordred
065c1817bd Missed a few state flags functions during renaming. 2023-02-20 16:41:04 +01:00
Mordred
6bf3ac0be8 Refactoring ongoing. 2023-02-20 15:25:57 +01:00
Mordred
188d80d2ec Alot more cleanups in various areas. 2023-02-20 11:24:02 +01:00
Mordred
00cb4ade45 Login packet flow further adjusted to be closer to retail 2023-02-18 23:05:15 +01:00
Mordred
d34d93a7dd Fixed an issue with scripts no longer having a function to warp to a different territory type. 2023-02-18 17:59:24 +01:00
Mordred
3a71d90e71 Fixing some array sizes and defining them in common 2023-02-18 15:26:50 +01:00
Mordred
f91494fa7b sendToInRangeSet removed 2023-02-17 22:46:02 +01:00
Alice Ogeda
06a4a46bf2 fix case sensitive fs import; 2023-02-17 14:42:17 -03:00
Mordred
9b46b89c65 Changing various packet sending functions to clean up the project. 2023-02-17 15:34:51 +01:00
Mordred
fbbd599969
Merge pull request #899 from Skyliegirl33/master
[3.x] Support other currencies than gil
2023-02-17 08:01:54 +01:00
Rushi
a17c891c2c
[3.x] Basic map icon support (MapMgr backport) (#896)
* Fix several structs

* Preliminary map icon support (only quests work)
Backport of #721 to 3.x

* MapMgr cleanup

* Add missing null check for ENpcBase

* Use CLASSJOB_SLOTS in PlayerSetup instead

* Use util function for getting bit fields
2023-02-16 22:16:01 +01:00
Mordred
87295a0ff6 Fixed a few fields in playerstatus and changed script events to display script name instad of quest text. 2023-02-16 12:45:01 +01:00
Mordred
85501effed Implemented a basic actionintegrity implementation, subject to be changed.
Fixed replay packet sending.
2023-02-16 08:25:03 +01:00
Lucy
9f048502f7 Support other currencies than gil 2023-02-14 21:29:24 +01:00
Mordred
9f100bc671 Fixed a couple minor struct issues and overall changed login packetflow to be more retail-like.
Added a few unknown actorcontrol packets for testing.
2023-02-14 13:50:08 +01:00
Lucy
ae94aac979 wip: fixing gearset handler 2023-02-12 21:12:04 +01:00
Mordred
9d6eb7f676
Merge pull request #883 from T00fy/master
Reimplemented EventItem. Fixed bug with onDeath not triggering when b…
2023-02-11 23:34:06 +01:00
Lucy
595795d3b0 Implement glamouring 2023-02-11 17:31:48 +01:00
Alice Ogeda
62136f66a7 warpmgr vfx; get threadcount for nav export; 2023-02-10 23:13:00 -03:00
Mordred
a55e912d9f Merge attempt #2 2023-02-10 21:38:08 +01:00
Mordred
4a8092b71e Revert "Merge and minor cleanup"
This reverts commit 4c35944433.
2023-02-10 21:28:34 +01:00
Mordred
4c35944433 Merge and minor cleanup 2023-02-10 21:22:54 +01:00
Mordred
19d84b5eb3 Merge branch 'master' of https://github.com/SapphireMordred/Sapphire 2023-02-10 21:16:31 +01:00