[Trinity] TeleNPC2

Indította MySQL, 2013 augusztus 13, 11:02:35 DÉLELŐTT

Előző téma - Következő téma

MySQL

3 fájlra lesz szükséged:

npc_teleport.cpp
http://pastebin.com/2pR3CeHT

sc_npc_teleport.cpp
http://pastebin.com/4ycLYP9w

sc_npc_teleport.h
http://pastebin.com/KLNQ2922

Fájlok+Szerkeszteni valók:
__________________________
src/server/game/AI/ScriptedAI/
-sc_npc_teleport.h
-sc_npc_teleport.cpp
__________________________
src/server/scripts/custom
npc_teleport.cpp
__________________________

Scriptloader.cpp
void AddSC_npc_teleport();
AddSC_npc_teleport();

__________________________
src/server/game/Scripting/ScriptMgr.cpp

#include "ObjectMgr.h"
#include "OutdoorPvPMgr.h"
#include "ScriptLoader.h"
+#include "sc_npc_teleport.h"
#include "ScriptSystem.h"
#include "Transport.h"
#include "Vehicle.h"
@@ -250,6 +251,8 @@ void ScriptMgr::Initialize()
     uint32 oldMSTime = getMSTime();

     LoadDatabase();
+       // Load TeleNPC2 - maybe not the best place to load it ...
+      LoadNpcTele();

     sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading C++ scripts");
__________________________

src/server/scripts/CMakeLists.txt
+  Custom/npc_teleport.cpp
+  ../game/AI/ScriptedAI/sc_npc_teleport.cpp
+  ../game/AI/ScriptedAI/sc_npc_teleport.h

SQL a world adatbázisba:

http://pastebin.com/uEqKKVax


Powered by EzPortal