Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor, fix minor issues, add config #50

Merged
merged 18 commits into from
Oct 27, 2024
Merged

Conversation

sogladev
Copy link
Member

Changes Proposed:

  • reorganise SQL files to more closely match skeleton-module and acore standards
  • uncomment gossip menu to reset talents, remove glyphs, remove gear. Add config to enable/disable these options
  • show npc_text correctly, there was a mismatch in entries in SQL and cpp
  • fix typos, e.g. Ballance and rename DeathKnight -> Death Knight to match enum defines in core
  • use acore_string if available, adds some localization support. Areatrigger broken fmt, so did not replace custom texts SendAreaTriggerMessage not fmt formatted azerothcore-wotlk#20006

Issues Addressed:

  • Closes

SOURCE:

Tests Performed:

  • builds without PCH
  • tested with lvl80 balance druid, dk, hunter

How to Test the Changes:

lvl 80 character

  1. .npc add temp 55009
  2. click buttons

issues / TODOs

  1. Resetting talents sometimes does nothing. After learning talents, resetting does not work. A relog is required and then reset works again. Likely due to how talents are learned. Relog is required to reset talents again. Learning talents manually and using .reset talents %t works fine
  2. use localization language acore_string instead of hard-coded

@Helias
Copy link
Member

Helias commented Oct 26, 2024

build is failing for the codestyle check, fix it and I will merge the PR

use destroyitem to destroy items

occurs when trying to delete while wearing an empty head slot, segfaults
SetUInt64Value(ITEM_FIELD_CONTAINED...
@Helias Helias merged commit 41c13b6 into azerothcore:master Oct 27, 2024
2 checks passed
@Helias
Copy link
Member

Helias commented Oct 27, 2024

thanks for the PR 🚀

sogladev added a commit to sogladev/mod-npc-talent-template that referenced this pull request Oct 27, 2024
* refactor: sql style to match acore standards

* fix: typo Ballance to Balance

* refactor: rename generic sql names to specific module

identifiable module from table `updates`

* refactor: remove not needed headers

* feat: re-enable gear destroy, gyph reset, talent reset

TODO: config

* fix: typo successfully

* refactor: remove gossiphello comment

* fix: typo? npc entry to 55009

* refactor: use define instead of hardcoded npc entry

* change icon of destroy gear, re-order menu

* fixup! refactor: use define instead of hardcoded npc entry

use GetEntry() instead

* change reset talents icon to engi wheel

* remove redundant "select your spec" from gossip

its in the title of the npc and should be obvious from icons

allows bottom icons to be visible

* feat: add config to enable/disable additional gossip options

* use EnumUtils to convert class to string

rename "DeathKnight" to "Death Knight" according to enum defines

do not catch out of range exception, this should never happen

* fixup! feat: re-enable gear destroy, gyph reset, talent reset

pet talents

* fix crash when destroying items

use destroyitem to destroy items

occurs when trying to delete while wearing an empty head slot, segfaults
SetUInt64Value(ITEM_FIELD_CONTAINED...

* codestyle: remove extra empty line

feat: re-enable gear destroy, gyph reset, talent reset

TODO: config

refactor: use define instead of hardcoded npc entry

use GetEntry() instead

feat: add config to enable/disable additional gossip options

pet talents

learn highest rank

remove the hack, should be fixed soon^tm in core

WIP commands

export for 1 class+spec done

extend export for all specs

use racemask for gear instead of human, alliance, horde

allow loading of generic index

update for mysql v8.0

- Integer display width is deprecated and will be removed in a future
release.
- 'utf8' is currently an alias for the character set UTF8MB3, but will
be an alias for UTF8MB4 in a future release. Please consider using
UTF8MB4 in order to be unambiguous. */

modernize, use enum for gear/talent flag

add copy cmd skeleton

use generic ApplyTemplate
@sogladev sogladev deleted the refactor branch October 29, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants