Commit Graph

10157 Commits

Author SHA1 Message Date
Gultask
f2317ac0da fix(DB/gameobject): Improve Draenei Vessel (#14339)
Asking for a test because my DB is quite polluted these days and I may
have forgot to set a value somewhere

<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed:
- Sniffs spawns for Draenei Vessel (already sniffed before)
- Pools normal Vessel them with trapped Vessel at 50% chance (confirmed
in sniff)
- Prevent trap from triggering at distance
- Fixes trapped Vessel being unlootable
- Fixes campfire with bad z coords using sniffed data

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- Closes https://github.com/azerothcore/azerothcore-wotlk/issues/14332
- Closes https://github.com/chromiecraft/chromiecraft/issues/4618

## SOURCE:
<!-- If you can, include a source that can strengthen your claim -->
WotLK Classic

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you
test? On which OS did you test? Describe any other tests performed -->
- Tested ingame
- 


## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes
-->

1. `.quest add 10028`
2. `.tele Tuurem`
3. see if behaviour improves

## Known Issues and TODO List:
<!-- Is there anything else left to do after this PR? -->

- [ ] I haven't found a way to make a truly empty loot table without
worldserver errors so I duplicated the table for normal vessel and
lowered the chance to 0.1 (I've seen no loot in WotLK Classic, but it
was lootable)
- [ ]

<!-- If you intend to contribute repeatedly to our project, it is a good
idea to join our discord channel. We set ranks for our contributors and
give them access to special resources or knowledge:
https://discord.com/invite/DasJqPba)
Do not remove the instructions below about testing, they will help users
to test your PR -->
## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE
TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's
page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e.
a part of code that handles more than one specific thing), the tester
should not only check that the PR does its job (e.g. fixing spell XXX)
but **especially** check that the PR does not cause any regression (i.e.
introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that
handles spells X, Y, and Z, we should not only test X, but **we should
test Y and Z as well**.
2023-01-23 23:42:09 -03:00
AzerothCoreBot
79b8aa97b6 chore(DB): import pending files
Referenced commit(s): 96024d59e9
2023-01-23 19:01:04 +00:00
Kitzunu
96024d59e9 fix(DB/Locale): Chinese (#14740)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/13851

Co-Authored-By: Grindelwald <137000133@qq.com>

<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed:
-  
-  

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- Closes 

## SOURCE:
<!-- If you can, include a source that can strengthen your claim -->

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you
test? On which OS did you test? Describe any other tests performed -->
- 
- 


## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes
-->

1.
2.
3.

## Known Issues and TODO List:
<!-- Is there anything else left to do after this PR? -->

- [ ]
- [ ]

<!-- If you intend to contribute repeatedly to our project, it is a good
idea to join our discord channel. We set ranks for our contributors and
give them access to special resources or knowledge:
https://discord.com/invite/DasJqPba)
Do not remove the instructions below about testing, they will help users
to test your PR -->
## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE
TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's
page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e.
a part of code that handles more than one specific thing), the tester
should not only check that the PR does its job (e.g. fixing spell XXX)
but **especially** check that the PR does not cause any regression (i.e.
introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that
handles spells X, Y, and Z, we should not only test X, but **we should
test Y and Z as well**.

Co-authored-by: Grindelwald <137000133@qq.com>
2023-01-23 19:59:02 +01:00
Mike Delago
888a718cf3 Fix configs in docker builds (#14747)
<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed
- This fixes an issue where the .conf files aren't properly generated for the docker build
  - With this issue, the dbimport service in the docker compose file would fail to start due to insufficient config. 
  - related to PR #14707
- create a ".user" file extension for custom configs in `env/docker/etc/`
- Layers the ".dockerdist" file and the ".user" file over the ".dist" file (in that order), and then copies the ".dist" file to the base ".conf" file
- Docker specific config changes go in the ".dockerdist" file and should still be committed to the repo
- User specific config changes go in ".user" file and should not be committed to the repo
- If the ".dist" file and the base ".conf" file are different, the ".conf" will be backed up before the ".dist" file is copied into it

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- There isn't a specific issue, however this was reported and discussed in discord over the course of yesterday and today

## SOURCE:
<!-- If you can, include a source that can strengthen your claim -->

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you test? On which OS did you test? Describe any other tests performed -->
- Executing commands to build and start the game server
- after creating an account, I can log in and play without any issues. 


## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes -->

1.  Execute commands
   
    ```bash
    $ ./acore.sh docker clean:build && ./acore.sh docker build:nocache && ./acore.sh docker start:app
    ```
2. Create account and log in as normal

## Known Issues and TODO List:
<!-- Is there anything else left to do after this PR? -->

- The largest issue that comes to mind is this is a breaking change for docker users (though, so was the change that caused this)
  - Docker users (and nobody else, of course) can no longer use the ".conf" for custom changes in docker setups. 
  - Their custom changes will have to be migrated to the ".user" file
  - Since the old ".conf" file is backed up, users should have minimal trouble copying the changes in the old ".conf" file to the new ".user" file

<!-- If you intend to contribute repeatedly to our project, it is a good idea to join our discord channel. We set ranks for our contributors and give them access to special resources or knowledge: https://discord.com/invite/DasJqPba)
     Do not remove the instructions below about testing, they will help users to test your PR -->
## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but **especially** check that the PR does not cause any regression (i.e. introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but **we should test Y and Z as well**.

edit: link related PR
2023-01-23 18:03:28 +01:00
M'Dic
437d93926f fix (core): macos12 depreciation workflow error / security CWE-120 (#14746)
* fix (core): macos12 depreciation workflow error

Fix workflow error message:
azerothcore-wotlk/src/common/Utilities/Util.cpp:558:9: fatal error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buffer, "%02X", bytes[i]);

* Update BattlegroundAV.cpp

* more macos12 fixit

* Update spell_generic.cpp
2023-01-23 06:13:27 -05:00
Axel Cocat
513dab0740 feat(Core/Mail): call CanSendMail() even if no items are sent (#14435)
* feat(Core/Mail): call CanSendMail() even if no items are sent

* Update src/server/game/Handlers/MailHandler.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-01-22 20:15:34 +01:00
AzerothCoreBot
5f3f32f2fd chore(DB): import pending files
Referenced commit(s): 71de46df53
2023-01-22 01:56:14 +00:00
Gultask
71de46df53 fix(DB/Creature): Minor fixes for Sethekk Halls (#14741) 2023-01-21 22:54:14 -03:00
AzerothCoreBot
33f58a9fb8 chore(DB): import pending files
Referenced commit(s): 9db2bf9645
2023-01-21 17:15:08 +00:00
Gultask
9db2bf9645 fix(DB/Creature): Remove extra spawns of Sally Whitemane and Renault Mograine in Old Southshore (#14700)
Create rev_1673978919934644100.sql
2023-01-21 14:13:02 -03:00
BeefSteak
ab4a8aae5c fix(DB/Creature): Looking to the Leadership quest mob respawn times (#14710)
Create fixrespawntimes.sql
2023-01-21 14:12:46 -03:00
sh3rp
7dec2e59a6 fix(DB/Gameobject): Fixed overlapping Milk Barrel / Food Crates in St… (#14730)
* fix(DB/Gameobject): Fixed overlapping Milk Barrel / Food Crates in Stormwind City

## Changes Proposed:
Add Water Barrel and Food Create to a pool.

## Issues Addressed:
- Closes https://github.com/azerothcore/azerothcore-wotlk/issues/11776

## SOURCE:
n/a

## Tests Performed:
Logged in, ported to object, verified only 1 object spawns at a time.  Verified alternating spawns of the object.

## How to Test the Changes:
1. Login
2. .go gameobject 31401 || .go gameobject 33607
3. Verify only 1 object has spawned.
4. Open object and take items, causing despawn.
5. Wait for respawn of another object.
6. Respawn of other object in pool.
7. Repeat 3-5.

## Known Issues and TODO List:
n/a

<!-- If you intend to contribute repeatedly to our project, it is a good idea to join our discord channel. We set ranks for our contributors and give them access to special resources or knowledge: https://discord.com/invite/DasJqPba)
     Do not remove the instructions below about testing, they will help users to test your PR -->
## How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as **[WAITING TO BE TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but **especially** check that the PR does not cause any regression (i.e. introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but **we should test Y and Z as well**.

* Update data/sql/updates/pending_db_world/fix-11776.sql

added space for readability

Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>

Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
2023-01-21 14:12:26 -03:00
Kitzunu
320468af4a fix(DB/Creature): Bloodaxe Veteran equipment (#14733) 2023-01-21 18:10:28 +01:00
Foereaper
5fa027a222 refactor(Core/Conf): Removal of unnecessary .dist file loading (#14707)
* Remove .dist file requirement

* Remove unnecessary string cast

* Add required variables for CI build configs

* More required variables

* Add some more default variables to reduce log output

* One last default value to cut down log spam

* Rewrite conf file bash script

This should use the standard .dest file as a template

* Change dir we copy the dest files from

* actually use the correct file name

* need to use double quotes for variables

* add missing username

* set the correct datadir

* Attempt to fix dbimport

Co-authored-by: Foereaper <foereaper@elunatech.com>
2023-01-21 14:48:22 +01:00
AzerothCoreBot
30c29303db chore(DB): import pending files
Referenced commit(s): 1de52e5570
2023-01-19 19:11:25 +00:00
UltraNix
1de52e5570 fix(Core/Formations): Implemented new creature formation flag: GROUP_… (#14537)
fix(Core/Formations): Implemented new creature formation flag: GROUP_AI_FLAG_ACQUIRE_NEW_TARGET_ON_EVADE.

Fixes #14494
2023-01-19 20:08:51 +01:00
Kitzunu
484cb1d01b chore: Update issue template (#14703) 2023-01-19 00:49:30 +01:00
AzerothCoreBot
b3e3722674 chore(DB): import pending files
Referenced commit(s): fdc735089f
2023-01-16 17:24:28 +00:00
Gultask
fdc735089f fix(DB/Gameobject): Add Winter Veil objects to Old Hillsbrad (#14658)
Create rev_1673679111460642000.sql
2023-01-16 14:22:20 -03:00
Gultask
5a5388728a fix(DB/Creature): Correct road and tower patrols in Old Hillsbrad (#14657)
Create rev_1673669735197964700.sql
2023-01-16 14:22:07 -03:00
Gultask
cf151de544 fix(DB/Creature): Fix IDs and path Hillsbrad Peasant farmers in Old Hillsbrad Foothills (#14655)
* Create rev_1673665917974517200.sql

* Update rev_1673665917974517200.sql
2023-01-16 14:22:00 -03:00
AzerothCoreBot
890a13f007 chore(DB): import pending files
Referenced commit(s): e0f2bd490c
2023-01-16 02:12:11 +00:00
Pedro Antonio
e0f2bd490c fix(DB/Locales): Wintersbite (#14278)
* fix(DB/Locales): Wintersbite

item 3819 name before cataclysm was wintersbite, after cata was changed to Dragon's Teeth

some locale have Dragon's Teeth locale instead Wintersbite
same in gameobject_template_locale, so fix for gob locale is included also

Ported from TrinityCore: https://github.com/TrinityCore/TrinityCore/issues/28346

Author: https://github.com/Jildor

* newline

Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
2023-01-15 23:10:04 -03:00
BeefSteak
4e44ebd3f8 fix(DB/Creature): Ashenvale Rare spawn times and locations (#13792)
* Create spawntimeandspeed.sql

* Update spawntimeandspeed.sql

* Update spawntimeandspeed.sql

* Update spawntimeandspeed.sql

* Update spawntimeandspeed.sql

Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
2023-01-15 23:09:50 -03:00
AzerothCoreBot
99974c6a81 chore(DB): import pending files
Referenced commit(s): 95ae8d3feb
2023-01-16 01:03:41 +00:00
UltraNix
95ae8d3feb fix(DB/SAI): Underbog Shambler's Fungal Regrowth should be casted on … (#14560)
fix(DB/SAI): Underbog Shambler's Fungal Regrowth should be casted on friendly targets.

Fixes #13976
2023-01-15 22:01:42 -03:00
ICXCNIKA
5a595b8007 fix(DB/Locale): deDE locales fixed for quests 6381 and 6391 (#14607)
* fix(DB/Locale): deDE locales fixed for quests 6381 and 6391 

This is an example for a pull request for AzerothCore.

* Update 6387-6391-example.sql
2023-01-15 22:01:19 -03:00
neifion-00000000
257dbf7d2b fix(DB/creature): Correct Mok'rash respawn timer (#14647) 2023-01-15 22:00:42 -03:00
UltraNix
b7c7d3c429 fix(DB/SAI): Shadowmoon Summoner should not interrupt its spells. (#14567)
Fixes #13820
2023-01-15 22:00:29 -03:00
UltraNix
edcfe8ff0f DB/SAI: Bog Giant and Underbog Lord uses Growth only in Heroic mode. (#14542)
* DB/SAI: Bog Giant and Underbog Lord uses Growth only in Heroic mode.

Fixes #13978

* Update.
2023-01-15 22:00:22 -03:00
UltraNix
6dcf6be97e fix(DB/SAI): Underbog Shambler's Itchy Spores should be casted on ran… (#14561)
fix(DB/SAI): Underbog Shambler's Itchy Spores should be casted on random targets.

Fixes #13975
2023-01-15 21:59:58 -03:00
Gultask
52ce072c99 fix(DB/SAI): Grimclaw (#14629)
* Create rev_1673490008927079900.sql

* fix
2023-01-15 21:59:25 -03:00
UltraNix
70830fd9f2 fix(DB/SAI): Bleeding Hollow Archers should only use ranged abilities. (#14669)
Fixes #14642
2023-01-15 21:58:49 -03:00
UltraNix
82f2d4e053 fix(DB/SAI): Sunfury Geologist. (#14681)
fix(DB/SAI): Sunfury Geologist. Author: @offl

Fixes #14638

Co-authored-by: offl <offl@gmail.com>
2023-01-15 21:58:07 -03:00
Gultask
1a2d1c22ff fix(DB/SethekkHalls): Re-construct Sethekk Halls gameobjects and creatures (#14265)
* Create rev_1671229049571189000.sql

* Update rev_1671229049571189000.sql

* pathing

* 2

* 3

* Update rev_1671229049571189000.sql
2023-01-15 21:57:37 -03:00
Axel Cocat
07ac386e61 feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected (#14673)
* feat(Core/Database): move MySQL handle and HandleMySQLErrno to protected

* fix: initialization order
2023-01-15 11:02:43 -05:00
55Honey
e9b040e3d2 feat: getter for the used instance IDs (#14677)
* feat: getter for the used instance IDs

* doxygen
2023-01-15 15:47:49 +01:00
Kitzunu
12f4a28b01 fix(Core/Characters): Correctly update char count on realm selection (#14685) 2023-01-15 15:44:17 +01:00
AzerothCoreBot
3671a6593e chore(DB): import pending files
Referenced commit(s): b3879a7174
2023-01-15 14:41:01 +00:00
Pedro Antonio
b3879a7174 fix(DB/Locale): Missing Offer_Request reward Locale esES/esMX (#14045)
Co-authored-by: Cerveciento <Cerveciento@users.noreply.github.com>

Ported from all PRs of Cerveciento TrinityCore https://github.com/TrinityCore/TrinityCore/issues?page=2&q=label%3ABranch-3.3.5a+esES
2023-01-15 15:38:47 +01:00
天鹿
14885e3e96 fix(core/packets): reduce sending unnecessary packets (#13198)
Co-authored-by: Dehravor <dehravor@gmail.com>
2023-01-15 15:31:00 +01:00
Winfidonarleyan
739165a197 fix(Cmake/Build): correct build single app (#12202) 2023-01-15 15:22:53 +01:00
Kitzunu
aecf278cbe chore(Core/Docs): Remvoe old comment (#14684)
* fixed in e322c017ea
2023-01-15 14:30:48 +01:00
UltraNix
0022b3a964 fix(Core): Crashfix. (#14660) 2023-01-14 10:41:40 +01:00
AzerothCoreBot
4faeff3346 chore(DB): import pending files
Referenced commit(s): fced622614
2023-01-14 07:05:28 +00:00
Gultask
fced622614 fix(DB/Loot): Strong Junkbox (#14611)
* Create rev_1673358485783743300.sql

* Update rev_1673358485783743300.sql

* duhh
2023-01-14 04:03:27 -03:00
AzerothCoreBot
fb72b005cd chore(DB): import pending files
Referenced commit(s): 9cdf73629d
2023-01-14 02:49:54 +00:00
Gultask
9cdf73629d fix(DB): Implement more Old Southshore events and other misc fixes (#14502)
* part1

* chef jessen

* done

* one more wandering creature

* Update rev_1672845950723513700.sql

* give up but it was an interesting experi

...ence (200 SAI lines)

* Update rev_1672845950723513700.sql
2023-01-13 23:47:51 -03:00
AzerothCoreBot
0df153b8dd chore(DB): import pending files
Referenced commit(s): 98e87f196f
2023-01-13 09:23:33 +00:00
Pyromanihack
98e87f196f fix(DB/skinning_loot_template): new skinning entries for different mobs in TBC (#14506)
Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
2023-01-13 10:21:26 +01:00