This is a guide for making your own World Teleporter NPC.
Dont Worry I will tell you have to compile it to
What is this?
A Teleporter NPC is a creature that brings up a list of places you can teleport to using the NPC on gossip.
Now For the Guide.
REQUIRMENTS
Code:Microsoft Visual Studio 2003 http://www.microsoft.com/downloads/details.aspx?familyid=69d2219f-ce82-46a5-8aec-072bd4bb955e&displaylang=en TortoiseSVN http://tortoisesvn.net/downloads
First Step Download
If you already have a Ascent compiled then you can skip this partCode:http://filebeam.com/7aa8c299bd23e4c8f8570929f7fafb93
2: If not make a new folder named Ascent,and right click and and do SVN Checkout.
3:Now Type in this
http://projects.emupedia.com/svn/ascent/trunk/
username: anonymous
password: leave blank
4:Once its done go in the Ascent folder and open WIN
5: Double click on AscentVC71.
6: Right click AscentVC71 on the right side of the screen and click build solution, Let that build and make sure theres no errors.
7: Once its done go to Ascent/src/scripts and compile scripts2003 same way with AscentVC71, make sure theres no errors.
8: Now you have ascent compiled, go to ascent/src/scripts/src make a new folder named CustomScripts. Now edit makefile.am in the src/scripts/src folder and make it say
9: Now open up the CustomScripts folder and make a new makefile.am in notepad and writeCode:SUBDIRS = CustomScripts GossipScripts InstanceScripts ServerStatusPlugin SpellHandlers
10: Open up the .rar file u downloaded first and open src/CustomScripts and take those 3 files to src/scripts/src/customscripts and put them in there.Code:INCLUDES += -I$(srcdir) -I$(srcdir)/../../../../dep/include -I$(srcdir)/../../../shared INCLUDES += -I$(srcdir)/../../../script -I$(srcdir)/../../../../src -I$(srcdir)/../../../game INCLUDES += -I$(srcdir)/../../../logonserver -I$(srcdir)/../../../../dep/src/gm AM_CXXFLAGS = -DSCRIPTLIB lib_LTLIBRARIES = libGossipScripts.la libGossipScripts_la_SOURCES = Custom_Teleporters.cpp Setup.cpp
Now go to the ascent root folder and edit configure.ac and go to the bottom and right under Spellhandlers put
11: Now go back to the customscripts folder and edit custom_teleporters.cppCode:src/scripts/src/CustomScripts/Makefile
12: At the bottom find
Replace the 133701 with the ID that the mob is gonna be.Code:void SetupCustom_Teleporters(ScriptMgr * mgr) { /* Teleporter List */ mgr->register_gossip_script(133701, &TeleportNPC::Create); // Osciron }
13: Go back to the RAR and go into the projects folder.
and take both CustomScripts2003 and 2005 to src/scripts/project and put it in there. Edit CustomScripts2003 with notepad and replace all the antrix.lib with ascent.lib(only if ur using ascent). Now save that and open it up with VS and do build solution. Once that is finished, close it and make your own NPC for it and under creature_proto make sure to set NPC flags to 1.
I would like to remind you that you do not need to get a whole new core but it is recommended. I'm not sure how to transfer this to a different core though.
Thanks for reading the guide and if you have any problems go ahead and post it