Akkadius
906879ce2e
[Repositories] Revert #3976 - fix character corpses
2024-01-14 03:30:00 -06:00
Chris Miles
14509fcc4e
[Repositories] Fix datetime zero-value save behavior ( #3976 )
2024-01-14 00:10:13 -06:00
Chris Miles
818f833d04
[Repository] Add null integer column support, instance_list notes migration, regenerate repositories ( #3969 )
2024-01-12 22:23:55 -06:00
JJ
2427f7e034
[Database] Modify updated column in items table with proper default. ( #3726 )
...
* [Database] Modify `updated` column in `items` table with proper default.
From https://mariadb.com/kb/en/datetime/ , `datetime` can be ZERO_DATE (`0000-00-00` with no time component) or between `1000-01-01 00:00:00.000000` and `9999-12-31 23:59:59.999999`. Currently, `updated` is the only datetime field that is `NOT NULL` and improperly defaulted to `0000-00-00 00:00:00`. This change matches existing structures of the other `datetime` columns.
* Update items_repository.h
* Update base_items_repository.h
* Revert "Update items_repository.h"
This reverts commit 3599f26818f31bd8efd3a1e0d9cb9bf5d40785c5.
2023-12-01 21:10:52 -05:00
Alex King
42a2e19e73
[Commands] Consolidate #findX commands to a singular #find Command ( #3452 )
...
* Push up example for Kingly
* Update aa.cpp
* Update find.cpp
* Bulk push.
* Update aa.cpp
* Cleanup
* Repository method.
* Static aliasing
* Aliases
* Fix alias error.
* Update zone.cpp
* Update command.cpp
* Update find.cpp
---------
Co-authored-by: Akkadius <akkadius1@gmail.com>
2023-06-27 21:53:20 -05:00
Michael Cook (mackal)
6f7fa98996
[Repositories] Add more precise types to repository generator ( #2391 )
...
* Make utils/scripts/generators/repository-generator.pl aware of more
datatypes
This adds support for unsigned and more integer types. It also avoids
using parsing functions that require casting (still needed in some
cases)
Having the data types in the Repository structs better map to the types
in the database will allow us to avoid casting when we pull data out of
them. And as a benefit, assume something is wrong if we do :)
Hopefully clean up some warnings due to casting too.
Co-authored-by: Akkadius <akkadius1@gmail.com>
2022-08-31 00:04:27 -05:00
Chris Miles
79285b1002
[Repositories] Add GetMaxId, Count ( #2371 )
...
* [Repositories] Add GetMaxId, Count
* Update cmake with repositories, regenerate extended repos
* Remove license from files
* Simplify receivers
* Receiver simplify remaining
* Simplify receivers final
* Pass params by const reference
* Modernize grid tables
* Remove guild members since it doesn't conform as a generatable table
* PR comment
2022-08-13 18:40:56 -05:00
Chris Miles
dfd8f84cac
[Strings] Refactor Strings Usage ( #2305 )
...
* Initial commit checkpoint
* More functions converted
* Commify
* More functions
* Fin
* Sort declarations
* Split functions between files
* Bots
* Update strings.h
* Split
* Revert find replaces
* Repository template
* Money
* Misc function
* Update CMakeLists.txt
* Saylink
* Update strings.cpp
* Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database
* API casings
2022-07-14 02:10:52 -05:00
Chris Miles
3ed6663c4c
[Repositories] Update repositories ( #2040 )
2022-03-11 18:27:36 -05:00
Kinglykrab
efab0c4b6b
[Quest API] Add remove LDoN Win/Loss to Perl and Lua. ( #1611 )
...
* [Quest API] Add remove LDoN Win/Loss to Perl and Lua.
- Add $client->RemoveLDoNLoss(theme_id) to Perl.
- Add $client->RemoveLDoNWin(theme_id) to Perl.
- Add quest::removeldonloss(theme_id) to Perl.
- Add quest::removeldonwin(theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbycharid(character_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbygroupid(group_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbyraidid(raid_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbyguildid(guild_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbyexpeditionid(expedition_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonlossbyclientname(client_name, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbycharid(character_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbygroupid(group_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbyraidid(raid_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbyguildid(guild_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbyexpeditionid(expedition_id, theme_id) to Perl.
- Add quest::crosszoneremoveldonwinbyclientname(client_name, theme_id) to Perl.
- Add quest::worldwideaddldonloss(theme_id, min_status, max_status) to Perl.
- Add quest::worldwideaddldonwin(theme_id, min_status, max_status) to Perl.
- Add client:RemoveLDoNLoss(theme_id) to Lua.
- Add client:RemoveLDoNWin(theme_id) to Lua.
- Add eq.remove_ldon_loss(theme_id) to Lua.
- Add eq.remove_ldon_win(theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_char_id(character_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_group_id(group_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_raid_id(raid_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_guild_id(guild_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_expedition_id(expedition_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_loss_by_client_name(client_name, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_char_id(character_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_group_id(group_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_raid_id(raid_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_guild_id(guild_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_expedition_id(expedition_id, theme_id) to Lua.
- Add eq.cross_zone_remove_ldon_win_by_client_name(client_name, theme_id) to Lua.
- Add eq.world_wide_add_ldon_loss(theme_id, min_status, max_status) to Lua.
- Add eq.world_wide_add_ldon_win(theme_id, min_status, max_status) to Lua.
Adds enum for LDoN Themes and Theme Bitmasks so we're not using magic numbers.
Adds item links to item messages and augment messages on rejection/restriction/Lore.
* Update client_packet.cpp
* Update client_packet.cpp
* Update servertalk.h
Alphabetical.
2021-10-20 15:11:14 -04:00
Chris Miles
82d6e0138d
[Repositories] Regenerate repositories with int64 support, reserved word support ( #1440 )
2021-06-25 15:05:47 -05:00
Chris Miles
96b65b848b
[Repositories] Insert repository improvements ( #1236 )
...
* Insert repository improvements
* Remove no longer necessary code, remove license banner since we have a license at the repo level
* Update template comments
2021-02-08 20:56:44 -06:00
Akkadius
55d4865d36
Correct one missed repository pointer
2021-02-06 18:16:39 -06:00
Akkadius
e8ab176d4a
Explicitly pass database pointers to repository methods
2021-02-05 23:00:27 -06:00
Akkadius
6a7a78af29
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
2020-07-12 17:25:50 -05:00
Akkadius
6409e02aed
Update base repositories to use int as a base to avoid atoi overflow
2020-04-19 04:49:28 -05:00
Akkadius
caa0ffda00
Add Truncate repository method and purge player sold items on world bootup
2020-04-18 23:53:52 -05:00
Akkadius
e0363a8fe1
Repository tweaks [skip ci]
2020-04-11 02:47:54 -05:00
Akkadius
c978ca65a4
Split repositories out between a base immutable repository (that does not change) and an extended repository of which developers can add more custom methods to
2020-04-05 22:19:36 -05:00