· 9 years ago · Oct 03, 2016, 01:52 PM
1From 211d26c2d3c63541251f851b0fe6e80d5b7e5b09 Mon Sep 17 00:00:00 2001
2From: mthsena <mthsena@gmail.com>
3Date: Mon, 3 Oct 2016 10:45:47 -0300
4Subject: [PATCH] NPC_Teleport
5
6---
7 .../scripts/Custom/NPC_Teleport/NPC_Teleport.cpp | 123 +++++++++++++++
8 .../Custom/NPC_Teleport/SQL/auth/npc_teleport.sql | 171 +++++++++++++++++++++
9 .../Custom/NPC_Teleport/SQL/world/npc_teleport.sql | 8 +
10 src/server/scripts/Custom/custom_script_loader.cpp | 2 +
11 4 files changed, 304 insertions(+)
12 create mode 100644 src/server/scripts/Custom/NPC_Teleport/NPC_Teleport.cpp
13 create mode 100644 src/server/scripts/Custom/NPC_Teleport/SQL/auth/npc_teleport.sql
14 create mode 100644 src/server/scripts/Custom/NPC_Teleport/SQL/world/npc_teleport.sql
15
16diff --git a/src/server/scripts/Custom/NPC_Teleport/NPC_Teleport.cpp b/src/server/scripts/Custom/NPC_Teleport/NPC_Teleport.cpp
17new file mode 100644
18index 0000000..a1d594a
19--- /dev/null
20+++ b/src/server/scripts/Custom/NPC_Teleport/NPC_Teleport.cpp
21@@ -0,0 +1,123 @@
22+/*
23+**
24+** www.wowcore.com.br
25+**
26+*/
27+
28+using namespace std;
29+
30+struct TeleData
31+{
32+ uint32 menu;
33+ uint32 submenu;
34+ uint32 icon;
35+ string name;
36+ uint32 cost;
37+ uint32 faction;
38+ uint32 map;
39+ double x, y, z, o;
40+};
41+
42+vector<TeleData> tData;
43+
44+void LoadTeleData()
45+{
46+ tData.clear();
47+
48+ QueryResult result = LoginDatabase.PQuery("SELECT menu, submenu, icon, name, cost, faction, map, x, y, z, o FROM npc_teleport");
49+
50+ if (result)
51+ {
52+ Field * fields = NULL;
53+
54+ do
55+ {
56+ fields = result->Fetch();
57+
58+ TeleData data;
59+ data.menu = fields[0].GetUInt32();
60+ data.submenu = fields[1].GetUInt32();
61+ data.icon = fields[2].GetUInt32();
62+ data.name = fields[3].GetString();
63+ data.cost = fields[4].GetUInt32();
64+ data.faction = fields[5].GetUInt32();
65+ data.map = fields[6].GetUInt32();
66+ data.x = fields[7].GetDouble();
67+ data.y = fields[8].GetDouble();
68+ data.z = fields[9].GetDouble();
69+ data.o = fields[10].GetDouble();
70+
71+ tData.push_back(data);
72+
73+ } while (result->NextRow());
74+ }
75+}
76+
77+bool CheckFaction(uint32 playerFaction, uint32 teleFaction)
78+{
79+ if (teleFaction == uint32(TEAM_OTHER) || teleFaction == playerFaction)
80+ return true;
81+ else
82+ return false;
83+}
84+
85+class NPC_Teleport : public CreatureScript
86+{
87+public:
88+ NPC_Teleport() : CreatureScript("NPC_Teleport") { }
89+
90+ void GetMenu(Player* player, Creature* creature, uint32 menuId)
91+ {
92+ for (uint32 i = 0; i < tData.size(); i++)
93+ {
94+ if (!CheckFaction(player->GetTeam(), tData[i].faction))
95+ continue;
96+
97+ if (tData[i].menu == menuId)
98+ player->ADD_GOSSIP_ITEM(tData[i].icon, tData[i].name, GOSSIP_SENDER_MAIN, i);
99+ }
100+
101+ player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, creature->GetGUID());
102+ }
103+
104+ bool OnGossipHello(Player* player, Creature* creature)
105+ {
106+ LoadTeleData();
107+
108+ GetMenu(player, creature, 1);
109+ return true;
110+ }
111+
112+ bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
113+ {
114+ player->PlayerTalkClass->ClearMenus();
115+
116+ uint32 menuData = tData[action].submenu;
117+
118+ if (menuData == 0)
119+ {
120+ uint32 copper = (tData[action].cost % GOLD) % SILVER;
121+ uint32 silver = (tData[action].cost % GOLD) / SILVER;
122+ uint32 gold = tData[action].cost / GOLD;
123+
124+ if (player->GetMoney() < tData[action].cost)
125+ ChatHandler(player->GetSession()).PSendSysMessage("Failure! Not enough money. Costs: %ug %us %uc", gold, silver, copper);
126+ else
127+ {
128+ ChatHandler(player->GetSession()).PSendSysMessage("Success! You was teleported.");
129+ player->TeleportTo(tData[action].map, tData[action].x, tData[action].y, tData[action].z, tData[action].o);
130+ player->ModifyMoney(int32(-tData[action].cost));
131+ }
132+
133+ menuData = tData[action].menu;
134+ }
135+
136+ GetMenu(player, creature, menuData);
137+ return true;
138+ }
139+};
140+
141+void AddSC_NPC_Teleport()
142+{
143+ new NPC_Teleport();
144+}
145diff --git a/src/server/scripts/Custom/NPC_Teleport/SQL/auth/npc_teleport.sql b/src/server/scripts/Custom/NPC_Teleport/SQL/auth/npc_teleport.sql
146new file mode 100644
147index 0000000..186e98c
148--- /dev/null
149+++ b/src/server/scripts/Custom/NPC_Teleport/SQL/auth/npc_teleport.sql
150@@ -0,0 +1,171 @@
151+/*
152+**
153+** www.wowcore.com.br
154+**
155+*/
156+
157+DROP TABLE IF EXISTS `npc_teleport`;
158+CREATE TABLE `npc_teleport` (
159+ `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
160+ `menu` INT(10) UNSIGNED NOT NULL DEFAULT '0',
161+ `submenu` INT(10) UNSIGNED NOT NULL DEFAULT '0',
162+ `icon` INT(10) UNSIGNED NOT NULL DEFAULT '0',
163+ `name` VARCHAR(255) NOT NULL DEFAULT '',
164+ `cost` INT(10) UNSIGNED NOT NULL DEFAULT '0',
165+ `faction` INT(10) UNSIGNED NOT NULL DEFAULT '0',
166+ `map` INT(10) UNSIGNED NOT NULL DEFAULT '0',
167+ `x` FLOAT NOT NULL DEFAULT '0',
168+ `y` FLOAT NOT NULL DEFAULT '0',
169+ `z` FLOAT NOT NULL DEFAULT '0',
170+ `o` FLOAT NOT NULL DEFAULT '0',
171+ PRIMARY KEY (`id`)
172+) ENGINE=INNODB DEFAULT CHARSET=utf8;
173+
174+INSERT INTO `npc_teleport`(`id`,`menu`,`submenu`,`icon`,`name`,`cost`,`faction`,`map`,`x`,`y`,`z`,`o`) VALUES
175+(1,1,0,2,'Stormwind',0,469,0,-8842.09,626.358,94.0867,3.61363),
176+(2,1,0,2,'Orgrimmar',0,67,1,1601.08,-4378.69,9.9846,2.14362),
177+(3,1,0,2,'Darnassus',0,469,1,9869.91,2493.58,1315.88,2.78897),
178+(4,1,0,2,'Ironforge',0,469,0,-4900.47,-962.585,501.455,5.40538),
179+(5,1,0,2,'Exodar',0,469,530,-3864.92,-11643.7,-137.644,5.50862),
180+(6,1,0,2,'Thunder bluff',0,67,1,-1274.45,71.8601,128.159,2.80623),
181+(7,1,0,2,'Undercity',0,67,0,1633.75,240.167,-43.1034,6.26128),
182+(8,1,0,2,'Silvermoon city',0,67,530,9738.28,-7454.19,13.5605,0.043914),
183+(9,1,0,2,'Dalaran',0,0,571,5809.55,503.975,657.526,2.38338),
184+(10,1,0,2,'Shattrath',0,0,530,-1887.62,5359.09,-12.4279,4.40435),
185+(11,1,0,2,'Booty bay',0,0,0,-14281.9,552.564,8.90422,0.860144),
186+(12,1,0,2,'Gurubashi arena',0,0,0,-13181.8,339.356,42.9805,1.18013),
187+(13,1,2,0,'Eastern Kingdoms',0,0,0,0,0,0,0),
188+(14,1,3,0,'Kalimdor',0,0,0,0,0,0,0),
189+(15,1,4,0,'Outland',0,0,0,0,0,0,0),
190+(16,1,5,0,'Northrend',0,0,0,0,0,0,0),
191+(17,1,6,0,'Classic Dungeons',0,0,0,0,0,0,0),
192+(18,1,7,0,'Tbc Dungeons',0,0,0,0,0,0,0),
193+(19,1,8,0,'Wotlk Dungeons',0,0,0,0,0,0,0),
194+(20,1,9,0,'Raid Locations',0,0,0,0,0,0,0),
195+(21,2,0,2,'Elwynn Forest',0,469,0,-9449.06,64.8392,56.3581,3.07047),
196+(22,2,0,2,'Eversong Woods',0,67,530,9024.37,-6682.55,16.8973,3.14131),
197+(23,2,0,2,'Dun Morogh',0,469,0,-5603.76,-482.704,396.98,5.23499),
198+(24,2,0,2,'Tirisfal Glades',0,67,0,2274.95,323.918,34.1137,4.24367),
199+(25,2,0,2,'Ghostlands',0,67,530,7595.73,-6819.6,84.3718,2.56561),
200+(26,2,0,2,'Loch modan',0,469,0,-5405.85,-2894.15,341.972,5.48238),
201+(27,2,0,2,'Silverpine Forest',0,67,0,505.126,1504.63,124.808,1.77987),
202+(28,2,0,2,'Westfall',0,469,0,-10684.9,1033.63,32.5389,6.07384),
203+(29,2,0,2,'Redridge mountains',0,469,0,-9447.8,-2270.85,71.8224,0.283853),
204+(30,2,0,2,'Duskwood',0,469,0,-10531.7,-1281.91,38.8647,1.56959),
205+(31,2,0,2,'Hillsbrad Foothills',0,0,0,-385.805,-787.954,54.6655,1.03926),
206+(32,2,0,2,'Wetlands',0,469,0,-3517.75,-913.401,8.86625,2.60705),
207+(33,2,0,2,'Alterac Mountains',0,0,0,275.049,-652.044,130.296,0.502032),
208+(34,2,0,2,'Arathi Highlands',0,0,0,-1581.45,-2704.06,35.4168,0.490373),
209+(35,2,0,2,'Stranglethorn Vale',0,0,0,-11921.7,-59.544,39.7262,3.73574),
210+(36,2,0,2,'Badlands',0,0,0,-6782.56,-3128.14,240.48,5.65912),
211+(37,2,0,2,'Swamp of Sorrows',0,0,0,-10368.6,-2731.3,21.6537,5.29238),
212+(38,2,0,2,'The Hinterlands',0,0,0,112.406,-3929.74,136.358,0.981903),
213+(39,2,0,2,'Searing Gorge',0,0,0,-6686.33,-1198.55,240.027,0.916887),
214+(40,2,0,2,'The Blasted Lands',0,0,0,-11184.7,-3019.31,7.29238,3.20542),
215+(41,2,0,2,'Burning Steppes',0,0,0,-7979.78,-2105.72,127.919,5.10148),
216+(42,2,0,2,'Western Plaguelands',0,0,0,1743.69,-1723.86,59.6648,5.23722),
217+(43,2,0,2,'Eastern Plaguelands',0,0,0,2280.64,-5275.05,82.0166,4.7479),
218+(44,2,0,2,'Isle of Quel\'Danas',0,0,530,12806.5,-6911.11,41.1156,2.22935),
219+(45,2,1,7,'Back..',0,0,0,0,0,0,0),
220+(46,3,0,2,'Azuremyst Isle',0,469,530,-4192.62,-12576.7,36.7598,1.62813),
221+(47,3,0,2,'Teldrassil',0,469,1,9889.03,915.869,1307.43,1.9336),
222+(48,3,0,2,'Durotar',0,67,1,228.978,-4741.87,10.1027,0.416883),
223+(49,3,0,2,'Mulgore',0,67,1,-2473.87,-501.225,-9.42465,0.6525),
224+(50,3,0,2,'Bloodmyst Isle',0,469,530,-2095.7,-11841.1,51.1557,6.19288),
225+(51,3,0,2,'Darkshore',0,469,1,6463.25,683.986,8.92792,4.33534),
226+(52,3,0,2,'The Barrens',0,67,1,-575.772,-2652.45,95.6384,0.006469),
227+(53,3,0,2,'Stonetalon Mountains',0,0,1,1574.89,1031.57,137.442,3.8013),
228+(54,3,0,2,'Ashenvale Forest',0,0,1,1919.77,-2169.68,94.6729,6.14177),
229+(55,3,0,2,'Thousand Needles',0,67,1,-5375.53,-2509.2,-40.432,2.41885),
230+(56,3,0,2,'Desolace',0,0,1,-656.056,1510.12,88.3746,3.29553),
231+(57,3,0,2,'Dustwallow Marsh',0,0,1,-3350.12,-3064.85,33.0364,5.12666),
232+(58,3,0,2,'Feralas',0,0,1,-4808.31,1040.51,103.769,2.90655),
233+(59,3,0,2,'Tanaris Desert',0,0,1,-6940.91,-3725.7,48.9381,3.11174),
234+(60,3,0,2,'Azshara',0,0,1,3117.12,-4387.97,91.9059,5.49897),
235+(61,3,0,2,'Felwood',0,0,1,3898.8,-1283.33,220.519,6.24307),
236+(62,3,0,2,'Un\'Goro Crater',0,0,1,-6291.55,-1158.62,-258.138,0.457099),
237+(63,3,0,2,'Silithus',0,0,1,-6815.25,730.015,40.9483,2.39066),
238+(64,3,0,2,'Winterspring',0,0,1,6658.57,-4553.48,718.019,5.18088),
239+(65,3,1,7,'Back..',0,0,0,0,0,0,0),
240+(66,4,0,2,'Hellfire Peninsula',0,0,530,-207.335,2035.92,96.464,1.59676),
241+(67,4,0,2,'Zangarmarsh',0,0,530,-220.297,5378.58,23.3223,1.61718),
242+(68,4,0,2,'Terokkar Forest',0,0,530,-2266.23,4244.73,1.47728,3.68426),
243+(69,4,0,2,'Nagrand',0,0,530,-1610.85,7733.62,-17.2773,1.33522),
244+(70,4,0,2,'Blade\'s Edge Mountains',0,0,530,2029.75,6232.07,133.495,1.30395),
245+(71,4,0,2,'Netherstorm',0,0,530,3271.2,3811.61,143.153,3.44101),
246+(72,4,0,2,'Shadowmoon Valley',0,0,530,-3681.01,2350.76,76.587,4.25995),
247+(73,4,1,7,'Back..',0,0,0,0,0,0,0),
248+(74,5,0,2,'Borean Tundra',0,0,571,2954.24,5379.13,60.4538,2.55544),
249+(75,5,0,2,'Howling Fjord',0,0,571,682.848,-3978.3,230.161,1.54207),
250+(76,5,0,2,'Dragonblight',0,0,571,2678.17,891.826,4.37494,0.101121),
251+(77,5,0,2,'Grizzly Hills',0,0,571,4017.35,-3403.85,290,5.35431),
252+(78,5,0,2,'Zul\'Drak',0,0,571,5560.23,-3211.66,371.709,5.55055),
253+(79,5,0,2,'Sholazar Basin',0,0,571,5614.67,5818.86,-69.722,3.60807),
254+(80,5,0,2,'Crystalsong Forest',0,0,571,5411.17,-966.37,167.082,1.57167),
255+(81,5,0,2,'Storm Peaks',0,0,571,6120.46,-1013.89,408.39,5.12322),
256+(82,5,0,2,'Icecrown',0,0,571,8323.28,2763.5,655.093,2.87223),
257+(83,5,0,2,'Wintergrasp',0,0,571,4522.23,2828.01,389.975,0.215009),
258+(84,5,1,7,'Back..',0,0,0,0,0,0,0),
259+(85,6,0,2,'Gnomeregan',0,469,0,-5163.54,925.423,257.181,1.57423),
260+(86,6,0,2,'The Deadmines',0,469,0,-11209.6,1666.54,24.6974,1.42053),
261+(87,6,0,2,'The Stockade',0,469,0,-8799.15,832.718,97.6348,6.04085),
262+(88,6,0,2,'Ragefire Chasm',0,67,1,1811.78,-4410.5,-18.4704,5.20165),
263+(89,6,0,2,'Razorfen Downs',0,67,1,-4657.3,-2519.35,81.0529,4.54808),
264+(90,6,0,2,'Razorfen Kraul',0,67,1,-4470.28,-1677.77,81.3925,1.16302),
265+(91,6,0,2,'Scarlet Monastery',0,67,0,2873.15,-764.523,160.332,5.10447),
266+(92,6,0,2,'Shadowfang Keep',0,67,0,-234.675,1561.63,76.8921,1.24031),
267+(93,6,0,2,'Wailing Caverns',0,67,1,-731.607,-2218.39,17.0281,2.78486),
268+(94,6,0,2,'Blackfathom Deeps',0,0,1,4249.99,740.102,-25.671,1.34062),
269+(95,6,0,2,'Blackrock Depths',0,0,0,-7179.34,-921.212,165.821,5.09599),
270+(96,6,0,2,'Blackrock Spire',0,0,0,-7527.05,-1226.77,285.732,5.29626),
271+(97,6,0,2,'Dire Maul',0,0,1,-3520.14,1119.38,161.025,4.70454),
272+(98,6,0,2,'Maraudon',0,0,1,-1421.42,2907.83,137.415,1.70718),
273+(99,6,0,2,'Scholomance',0,0,0,1269.64,-2556.21,93.6088,0.620623),
274+(100,6,0,2,'Stratholme',0,0,0,3352.92,-3379.03,144.782,6.25978),
275+(101,6,0,2,'Sunken Temple',0,0,0,-10177.9,-3994.9,-111.239,6.01885),
276+(102,6,0,2,'Uldaman',0,0,0,-6071.37,-2955.16,209.782,0.015708),
277+(103,6,0,2,'Zul\'Farrak',0,0,1,-6801.19,-2893.02,9.00388,0.158639),
278+(104,6,1,7,'Back..',0,0,0,0,0,0,0),
279+(105,7,0,2,'Auchindoun',0,0,530,-3324.49,4943.45,-101.239,4.63901),
280+(106,7,0,2,'Caverns of Time',0,0,1,-8369.65,-4253.11,-204.272,-2.70526),
281+(107,7,0,2,'Coilfang Reservoir',0,0,530,738.865,6865.77,-69.4659,6.27655),
282+(108,7,0,2,'Hellfire Citadel',0,0,530,-347.29,3089.82,21.394,5.68114),
283+(109,7,0,2,'Magisters\' Terrace',0,0,530,12884.6,-7317.69,65.5023,4.799),
284+(110,7,0,2,'Tempest Keep',0,0,530,3100.48,1536.49,190.3,4.62226),
285+(111,7,1,7,'Back..',0,0,0,0,0,0,0),
286+(112,8,0,2,'Azjol-Nerub',0,0,571,3707.86,2150.23,36.76,3.22),
287+(113,8,0,2,'The Culling of Stratholme',0,0,1,-8756.39,-4440.68,-199.489,4.66289),
288+(114,8,0,2,'Trial of the Champion',0,0,571,8590.95,791.792,558.235,3.13127),
289+(115,8,0,2,'Drak\'Tharon Keep',0,0,571,4765.59,-2038.24,229.363,0.887627),
290+(116,8,0,2,'Gundrak',0,0,571,6722.44,-4640.67,450.632,3.91123),
291+(117,8,0,2,'Icecrown Citadel Dungeons',0,0,571,5643.16,2028.81,798.274,4.60242),
292+(118,8,0,2,'The Nexus Dungeons',0,0,571,3782.89,6965.23,105.088,6.14194),
293+(119,8,0,2,'The Violet Hold',0,0,571,5693.08,502.588,652.672,4.0229),
294+(120,8,0,2,'Halls of Lightning',0,0,571,9136.52,-1311.81,1066.29,5.19113),
295+(121,8,0,2,'Halls of Stone',0,0,571,8922.12,-1009.16,1039.56,1.57044),
296+(122,8,0,2,'Utgarde Keep',0,0,571,1203.41,-4868.59,41.2486,0.283237),
297+(123,8,0,2,'Utgarde Pinnacle',0,0,571,1267.24,-4857.3,215.764,3.22768),
298+(124,8,1,7,'Back..',0,0,0,0,0,0,0),
299+(125,9,0,2,'Black Temple',0,0,530,-3649.92,317.469,35.2827,2.94285),
300+(126,9,0,2,'Blackwing Lair',0,0,229,152.451,-474.881,116.84,0.001073),
301+(127,9,0,2,'Hyjal Summit',0,0,1,-8177.89,-4181.23,-167.552,0.913338),
302+(128,9,0,2,'Serpentshrine Cavern',0,0,530,797.855,6865.77,-65.4165,0.005938),
303+(129,9,0,2,'Trial of the Crusader',0,0,571,8515.61,714.153,558.248,1.57753),
304+(130,9,0,2,'Gruul\'s Lair',0,0,530,3530.06,5104.08,3.50861,5.51117),
305+(131,9,0,2,'Magtheridon\'s Lair',0,0,530,-336.411,3130.46,-102.928,5.20322),
306+(132,9,0,2,'Icecrown Citadel',0,0,571,5855.22,2102.03,635.991,3.57899),
307+(133,9,0,2,'Karazhan',0,0,0,-11118.9,-2010.33,47.0819,0.649895),
308+(134,9,0,2,'Molten Core',0,0,230,1126.64,-459.94,-102.535,3.46095),
309+(135,9,0,2,'Naxxramas',0,0,571,3668.72,-1262.46,243.622,4.785),
310+(136,9,0,2,'Onyxia\'s Lair',0,0,1,-4708.27,-3727.64,54.5589,3.72786),
311+(137,9,0,2,'Ruins of Ahn\'Qiraj',0,0,1,-8409.82,1499.06,27.7179,2.51868),
312+(138,9,0,2,'Sunwell Plateau',0,0,530,12574.1,-6774.81,15.0904,3.13788),
313+(139,9,0,2,'The Eye',0,0,530,3088.49,1381.57,184.863,4.61973),
314+(140,9,0,2,'Temple of Ahn\'Qiraj',0,0,1,-8240.09,1991.32,129.072,0.941603),
315+(141,9,0,2,'The Eye of Eternity',0,0,571,3784.17,7028.84,161.258,5.79993),
316+(142,9,0,2,'The Obsidian Sanctum',0,0,571,3472.43,264.923,-120.146,3.27923),
317+(143,9,0,2,'Ulduar',0,0,571,9222.88,-1113.59,1216.12,6.27549),
318+(144,9,0,2,'Vault of Archavon',0,0,571,5453.72,2840.79,421.28,0),
319+(145,9,0,2,'Zul\'Gurub',0,0,0,-11916.7,-1215.72,92.289,4.72454),
320+(146,9,0,2,'Zul\'Aman',0,67,530,6851.78,-7972.57,179.242,4.64691),
321+(147,9,1,7,'Back..',0,0,0,0,0,0,0);
322diff --git a/src/server/scripts/Custom/NPC_Teleport/SQL/world/npc_teleport.sql b/src/server/scripts/Custom/NPC_Teleport/SQL/world/npc_teleport.sql
323new file mode 100644
324index 0000000..9230396
325--- /dev/null
326+++ b/src/server/scripts/Custom/NPC_Teleport/SQL/world/npc_teleport.sql
327@@ -0,0 +1,8 @@
328+/*
329+**
330+** www.wowcore.com.br
331+**
332+*/
333+
334+INSERT INTO `creature_template`(`entry`,`difficulty_entry_1`,`difficulty_entry_2`,`difficulty_entry_3`,`KillCredit1`,`KillCredit2`,`modelid1`,`modelid2`,`modelid3`,`modelid4`,`name`,`subname`,`IconName`,`gossip_menu_id`,`minlevel`,`maxlevel`,`exp`,`faction`,`npcflag`,`speed_walk`,`speed_run`,`scale`,`rank`,`dmgschool`,`BaseAttackTime`,`RangeAttackTime`,`BaseVariance`,`RangeVariance`,`unit_class`,`unit_flags`,`unit_flags2`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`trainer_class`,`trainer_race`,`type`,`type_flags`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`spell5`,`spell6`,`spell7`,`spell8`,`PetSpellDataId`,`VehicleId`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`HoverHeight`,`HealthModifier`,`ManaModifier`,`ArmorModifier`,`DamageModifier`,`ExperienceModifier`,`RacialLeader`,`movementId`,`RegenHealth`,`mechanic_immune_mask`,`flags_extra`,`ScriptName`,`VerifiedBuild`) VALUES
335+(900000,0,0,0,0,0,19628,0,0,0,'NPC Teleport',NULL,NULL,0,80,80,0,35,1,1,1.14286,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'',0,3,1,1,1,1,1,1,0,0,1,0,0,'NPC_Teleport',0);
336diff --git a/src/server/scripts/Custom/custom_script_loader.cpp b/src/server/scripts/Custom/custom_script_loader.cpp
337index dd4b5e9..e8fd982 100644
338--- a/src/server/scripts/Custom/custom_script_loader.cpp
339+++ b/src/server/scripts/Custom/custom_script_loader.cpp
340@@ -17,9 +17,11 @@
341
342 // This is where scripts' loading functions should be declared:
343
344+void AddSC_NPC_Teleport();
345
346 // The name of this function should match:
347 // void Add${NameOfDirectory}Scripts()
348 void AddCustomScripts()
349 {
350+ AddSC_NPC_Teleport();
351 }
352--
3532.10.0.windows.1