Compiling a DLL
Steps:
1.
Compile Ascent WITHOUT the script. Guide for it here:
http://www.mmowned.com/forums/emulat...-included.html
2.
Go into your ascent or arcmu folder -> scripts -> src -> GossipScripts
In that folder place the the GloBalNPC.cpp file from GastricPenguiine inside the folder.
3.
Open setup.cpp ( in GossipScripts folder ) and add this line( the one in red )
Code:
#include "StdAfx.h"
#include "Setup.h"
#define SKIP_ALLOCATOR_SHARING 1
#include <ScriptSetup.h>
extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
return SCRIPT_TYPE_MISC;
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
{
SetupInnkeepers(mgr);
SetupBattlemaster(mgr);
SetupGuardGossip(mgr);
SetupGlobalNPC(mgr);
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
Then Open up setup.h and add this line ( the one in red)
Code:
#ifndef INSTANCE_SCRIPTS_SETUP_H
#define INSTANCE_SCRIPTS_SETUP_H
void SetupInnkeepers(ScriptMgr * mgr);
void SetupGuardGossip(ScriptMgr * mgr);
void SetupBattlemaster(ScriptMgr * mgr);
void SetupGlobalNPC(ScriptMgr * mgr);
#endif
4.
Go to your ascent / arcemu folder -> scripts -> click on scripts 2008 ( unless your compiler is an older version )
Under 'scripts2008' click on GossipScript , then under GossipScript right-click on the beige scripts icon , click Add... then click Existing Item. Then choose your GlobalNpc.cpp file.
5.
Right click on 'scripts' 2008' and then click Build Solution.
YOUR DONE! Your teleporter is inside the GossipScript dll file!