Rochet2 / TrinityCore

Rochet2's stuff for TC
https://rochet2.github.io
90 stars 143 forks source link

Multitrainer can not work! #98

Closed qxpf666 closed 5 years ago

qxpf666 commented 5 years ago

the last version erro: GOSSIP_OPTION_TRAINER:: Player Suijio (GUID: 2) requested wrong gossip menu: 60001 at Creature: jane (Entry: 190030)

qxpf666 commented 5 years ago

Multitrainer3.3.5

Rochet2 commented 5 years ago

Does it work now? https://github.com/Rochet2/TrinityCore/commit/ce7dc182594b49857a5300e2527bfc34f2f0f9ae

qxpf666 commented 5 years ago

still not work,maybe MultitrainerExample.sql need update?

Rochet2 commented 5 years ago

Should work now. comment if you have issues.

qxpf666 commented 5 years ago

yes,it is ok,but still show that err

Rochet2 commented 5 years ago

The way TC fixes that error is to use conditions to make the gossip options to only show to the players that can really access those options. The error only shows when for example a non shaman tries to view a shaman only trainer option.

So if you didnt mean to block a trainer, make sure you make the trainer available properly. Or if you did, then maybe use conditions like TC does.