azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.53k stars 2.62k forks source link

`.tele add` - "Already Exists" #20268

Open TheSCREWEDSoftware opened 4 days ago

TheSCREWEDSoftware commented 4 days ago

Current Behaviour

When trying to create a new teleport (that doesn't exist) but if the word during parsing finds a partial match it will tell you that already exists.

Expected Blizzlike Behaviour

That are you're expect to create any new teleport that doesn't have an exact match.

Source

None

Steps to reproduce the problem

This also happens with others that now in my head I can't think off.

Extra Notes

The workaround from my side was to temporarly change in the DBZangarmarsh to something else like ZangaTADrmarsh and .reload all and now you will be able to add Garm and go back to DB and change it back to Zangarmarsh. And if i - .tele Garm it takes to me Garm

Note: Do not use this PR otherwise this issue doesn't happen as I've fixed it here. https://github.com/azerothcore/azerothcore-wotlk/pull/20265

AC rev. hash/commit

AzerothCore rev. faea1c0735f1 2024-10-15 11:15:31 +0100 (master branch) (Win64, RelWithDebInfo, Static)

Connected players: 0. Characters in world: 0.
Connection peak: 1.
Server uptime: 5 hour(s) 47 minute(s) 17 second(s)
Update time diff: 2ms. Last 500 diffs summary:
|- Mean: 2ms
|- Median: 2ms
|- Percentiles (95, 99, max): 4ms, 5ms, 5ms
Using SSL version: OpenSSL 3.1.5 30 Jan 2024 (library: OpenSSL 3.1.5 30 Jan 2024)
Using Boost version: 1.81.0
Using CMake version: 3.29.3
Using MySQL version: 80036
Found MySQL Executable: C:/Program Files/MySQL/MySQL Server 8.0/bin/mysql.exe
Compiled on: Windows 10.0.19045
Worldserver listening connections on port %hu
Realmlist (Realm Id: 1) configured in port 8085
VMAPs status: Enabled. LineOfSight: true, getHeight: true, indoorCheck: true
MMAPs status: Enabled
maps directory located in ./Data/maps. Total size: 291014951 bytes
vmaps directory located in ./Data/vmaps. Total size: 658130721 bytes
mmaps directory located in ./Data/mmaps. Total size: 2192910844 bytes
Default DBC locale: enUS.
All available DBC locales: enUS
Using World DB: ACDB 335.12-dev
Latest LoginDatabase update: 2024_01_20_00.sql
Latest CharacterDatabase update: 2024_09_22_00.sql
Latest WorldDatabase update: 2024_10_21_03.sql
LoginDatabase queue size: 0
CharacterDatabase queue size: 0
WorldDatabase queue size: 0
No modules are enabled

Operating system

Windows 10 x64

Custom changes or Modules

None

TheSCREWEDSoftware commented 4 days ago

Video here

Note: I added a another tp called "tsg" just so i could go back.