Alrity then.
Code:
First I would like to give credit to this guide to ThYpHoOn since
I learned how to do this from his post.
Hello!
This is a guide for making your own World Teleporter NPC.
Dont Worry I will tell you have to compile it to
Now For the Guide.
REQUIRMENTS
Microsoft Visual Studio 2003
TortoiseSVN
First Step Download
Code:
http://filebeam.com/7aa8c299bd23e4c8f8570929f7fafb93
If you already have a Ascent compiled then you can skip this part
2: If not make a new folder named Ascent,and right click and and do SVN Checkout.
3:Type in svn://emupedia.com/svn/ascent to checkout.
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
Code:
SUBDIRS = CustomScripts GossipScripts InstanceScripts ServerStatusPlugin SpellHandlers
9: Now open up the CustomScripts folder and make a new makefile.am in notepad and write
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
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.
Now go to the ascent root folder and edit configure.ac and go to the bottom and right under Spellhandlers put
Code:
src/scripts/src/CustomScripts/Makefile
11: Now go back to the customscripts folder and edit custom_teleporters.cpp
12: At the bottom find
Code:
void SetupCustom_Teleporters(ScriptMgr * mgr)
{
/* Teleporter List */
mgr->register_gossip_script(133701, &TeleportNPC::Create); // Osciron
}
Replace the 133701 with the ID that the mob is gonna be.
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 recommened. Im 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
Source: Emupedia.comcommunity/showthread.php?t=12599&highlight=npc+teleporter
The beginning is an easy guide to Compile Ascent too.