azerothcore / azerothcore-wotlk

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

Not able to create custom Trainers #18321

Closed New-HavenWotLK closed 3 weeks ago

New-HavenWotLK commented 7 months ago

Current Behaviour

Wanted to create some custom Trainers... all Flags are properly setted... still there does not pop up a trainer window.

Even tried it with a copied version of an already existing trainer... same result... the original trainer works fine, the custom npc with the very same trainer data setted does not work.

Expected Blizzlike Behaviour

It should pop up the training window of that NPC when creating a custom trainer NPC with proper trainer flags and npc_trainer entries

Source

No response

Steps to reproduce the problem

1: Create a fresh NPC and give him trainer flags or copy an already existing trainer to a fresh entry 2: Give the NPC proper values within npc_trainer 3: The original NPC will work as a trainer, the fresh made with kinda the same values besides the ID does not work.

Extra Notes

I checked btw: this happened also already on the revision from 31.01.2024 and the revision from 09.04.2023, as well as on an even earlier revision from april 2022!

so yeah... something doesn't get pushed properly it seems or idk =/

AC rev. hash/commit

b6ee4f49cfbf

Operating system

Win Server 2019

Custom changes or Modules

none

Elmsroth commented 6 months ago

@New-HavenWotLK we cannot reproduce since you do not give the SQL code of your custom trainer. We should test in teh same conditions (same flags etc.. same values...)

New-HavenWotLK commented 6 months ago

@Elmsroth

Here the SQL code of the npc entry as well as of the trainer entry... it is planned in regular to handle him then later via lua to be a trainer and multivendor... multivendor itself works great... just that damn trainer does not push somehow the trainer window, even when rn like here only setted with trainerflags and handled via core itself (so without lua). =/

custom_npctrainer_data.zip

Grimfeather commented 3 weeks ago

Have you maybe been able to solve this? I ran into the same issue today.

Created new npc with exactly the same data as the trainer I copied. Training window won't open.

New-HavenWotLK commented 3 weeks ago

Have you maybe been able to solve this? I ran into the same issue today.

Created new npc with exactly the same data as the trainer I copied. Training window won't open.

actually yes...

atm i used a NPC ID below 200k it worked xD

Nyeriah commented 3 weeks ago

Overflow, use lower ids

New-HavenWotLK commented 3 weeks ago

Overflow, use lower ids

yeah thought so, that's when i used a lower entry and checked till which entry it is working ^^

just would be dope actually, when there would be at least an info message console sided about the overflow.