PDA

View Full Version : [TrinityCore] Multi-Teleporter



Wise
19-04-15, 01:24 AM
Hi everyone, it's been a long time when I finished my project and I decided to publish a few useful scripts and help the novices as well as advanced in TrinityCore. I hope you will like it and use it on the script.


Type:
Creature Script
Author:
Dimitrij " Dway" Fedoryno
(I would like to thank Nerdox for assistance in finding coords)
Translation:
Czech
Language:
C++


Script Includes:


1) Teleports(for cataclysm teleports uncomment Cataclysm Raids section)

- Raids > VANILLA/TBC/WOTLK/Cataclysm
- Dungeons > VANILLA/TBC/WOTLK (Cataclysm dungeons are not included)
- Cities (filtered if player is horde or aliance)
2) Character tools

- Reset HP
- Reset Mana
- Reset Sated
- Combat Stop
- Reset Cooldowns
3) Level 80 boost
(uncomment
case GOSSIP_ACTION_INFO_DEF+1000
for works ingame)
- If you want show level 80 boost only on level 1 uncomment if on lide 40-46
>
Preview:
http://i.imgur.com/cbrnhIG.png
4) Character Customization

- Change faction = 50k g
(price is editable)

- Change race = 25k g
(price is editable)


Installation



1) Navigate to /src/server/scripts/Custom/ in your core directory.
2) Create file
npc_teleporter.cpp

3) Open file /src/server/scripts/Custom/CMakeLists.txt
> remove comment ("#") from lines where are
#file(GLOB_RECURSE sources_Custom Custom/*.cpp Custom/*.h)
and
#${sources_Custom}

>
Preview:
http://i.imgur.com/KGjhm3Y.png

4) Navigate to /src/server/game/Scripting/ in your core directory and open ScriptLoader.cpp.
5) Find the place where is a custom script declared (bottom of file) and declare teleporter script.
>
Preview:
http://i.imgur.com/EBHjvD2.png

6) Now compile the core.

Thanks for reading! If you like the script, you can
download it (https://gist.github.com/dway/3a672ffdf1623d8409ee)