Rochet2 / TrinityCore

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

how to use multitrainer? #87

Closed qxpf666 closed 6 years ago

qxpf666 commented 6 years ago

how to use multitrainer?

Rochet2 commented 6 years ago

The readme says https://github.com/Rochet2/TrinityCore/blob/multitrainer/src/server/scripts/Custom/multitrainer/README.md

In C++ you can pass the trainer entry to SendTrainerList function. For SQL in world database you can set the trainer entry to the gossip_menu_option table ActionMenuID column for an option that has OptionType 5. The NPC must be a working vendor, so it needs vendor npc flag.

Do you have some problem with it?

qxpf666 commented 6 years ago

It can not work can you give some Example like: MultivendorExample.sql MultivendorExample.cpp

Rochet2 commented 6 years ago

I have now changed the code a bit and created working examples for the SQL and C++. You can see the examples and the new readme here: https://github.com/Rochet2/TrinityCore/tree/multitrainer/src/server/scripts/Custom/multitrainer Since I changed the code a bit you should probably try update to latest version (git pull or git apply -R multitrainer.diff and apply new code).

qxpf666 commented 6 years ago

Big thanks