Yoyo!:wave::wave:
I dont take credits for this.
Here is a Npc Teleporter made in C++ for Trinity.
Its very easy to add to your trinityscripts and compile.
SVN for the script can you find here: SVN Click here
First add the cpp file to the script folder in your trinity folder. src -> Bindings -> scripts -> scripts -> Custom
Now when its in the Custom folder. Open the trinitycorescripts.sln
And open trinityscripts so you can see 2 folders named: Include and scripts. Right click on scripts and press add -> existing item..
Find your script located in the Script folder.
Now open scriptmgr.cpp
Almost at the top you find
// -- Custom --
Add this line under it:
extern void AddSC_telenpc();
Now scroll down to next // -- Custom -- line.
add this line under it:
AddSC_telenpc();
Now can you compile the core or only the script if you already compile the core before.
... Script done ...
Now to create your NPC you dont need to think about ID or spawn id.
The only thing you need to remember. Npc flag 17 (Talent point reseter + teleporter)
And scriptname: telenpc
Also in the SVN you find conf.conf ADD this lines in it to your trinitycore.config so you can change your teleporter and stuff
Now restart your server and walla its working(Sorry my english inst the best but if you got any questions please add them here)
Hope it works for you!