Skip to content

Commit d94c018

Browse files
authored
Original npc exchange (#32)
* Create test * Add files via upload Add extra NPCs that exchange the original ones with coderedeem npcs with the spawn.sql * delete testfile it was only generated to make a folder called optional for the SQL data.
1 parent e3ffc94 commit d94c018

File tree

7 files changed

+275
-0
lines changed

7 files changed

+275
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92003,
6+
@Model := 25902,
7+
@Name := "Edward Cairn",
8+
@Title := "Elder",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);

data/sql/optional/NPC-IanDrake.sql

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92001,
6+
@Model := 25901,
7+
@Name := "Ian Drake",
8+
@Title := "Elder",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92006,
6+
@Model := 16941,
7+
@Name := "Landro Longshot",
8+
@Title := "The Black Flame",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92002,
6+
@Model := 7916,
7+
@Name := "Ransin Donner",
8+
@Title := "",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92005,
6+
@Model := 15988,
7+
@Name := "Tharl Stonebleeder",
8+
@Title := "",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);

data/sql/optional/NPC-Zas'Tysh.sql

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- ######################################################--
2+
-- CODEBOX - 90024
3+
-- ######################################################--
4+
SET
5+
@Entry := 92004,
6+
@Model := 15352,
7+
@Name := "Zas'Tysh",
8+
@Title := "",
9+
@Icon := "Buy",
10+
@GossipMenu := 0,
11+
@MinLevel := 80,
12+
@MaxLevel := 80,
13+
@Faction := 35,
14+
@NPCFlag := 1,
15+
@Scale := 1.0,
16+
@Rank := 0,
17+
@Type := 7,
18+
@TypeFlags := 138936390,
19+
@FlagsExtra := 2,
20+
@AIName := "",
21+
@Script := "reward_shop";
22+
23+
-- NPC
24+
DELETE FROM creature_template WHERE entry = @Entry;
25+
INSERT INTO creature_template (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `AiName`, `ScriptName`) VALUES
26+
(@Entry, @Name, @Title, @Icon, @GossipMenu, @MinLevel, @MaxLevel, @Faction, @NPCFlag, 1, 1.14286, @Scale, @Rank, 1, 2, @Type, @TypeFlags, 1, @FlagsExtra, @AIName, @Script);
27+
28+
-- NPC MODEL
29+
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
30+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
31+
(@Entry, 0, @Model, 1, 1, 0);
32+
33+
-- NPC Text
34+
DELETE FROM `npc_text` WHERE `ID`=@Entry;
35+
INSERT INTO `npc_text` (`ID`, `text0_0`) VALUES (@Entry, 'Greetings $N. Do you have a code to redeem?');
36+
37+
-- creatture_template_movement
38+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (@Entry);
39+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
40+
(@Entry, 1, 1, 0, 0, 0, 0, NULL);

data/sql/optional/Spawn.sql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
-- Ian Drake
2+
DELETE FROM `creature` WHERE `id1` = 92001;
3+
DELETE FROM `creature` WHERE `id1` = 29093;
4+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
5+
VALUES (92001, 0, 0, 0, 1, 1, -8807.04, 638.359, 94.312, 3.56047, 180, 0, 0, 'CodeExchange');
6+
7+
-- Ransin Donner
8+
DELETE FROM `creature` WHERE `id1` = 92002;
9+
DELETE FROM `creature` WHERE `id1` = 2943;
10+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
11+
VALUES (92002, 0, 0, 0, 1, 1, -4636.22, -1110, 501.411, 0.628319, 300, 0, 0, 'CodeExchange');
12+
13+
-- Edward Carin
14+
DELETE FROM `creature` WHERE `id1` = 92003;
15+
DELETE FROM `creature` WHERE `id1` = 29095;
16+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
17+
VALUES (92003, 0, 0, 0, 1, 1, 1581.83, 196.686, -43.1022, 2.25663, 180, 0, 0, 'CodeExchange');
18+
19+
-- Zas'Tysh
20+
DELETE FROM `creature` WHERE `id1` = 92004;
21+
DELETE FROM `creature` WHERE `id1` = 7951;
22+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
23+
VALUES (92004, 1, 0, 0, 1, 1, 1991.32, -4652.35, 27.3799, 0.10472, 300, 0, 0, 'CodeExchange');
24+
25+
-- Tharl Stonebleeder
26+
DELETE FROM `creature` WHERE `id1` = 92005;
27+
DELETE FROM `creature` WHERE `id1` = 16076;
28+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
29+
VALUES (92005, 1, 0, 0, 1, 1, 1989.31, -4655.91, 27.7722, 0.15708, 300, 0, 0, 'CodeExchange');
30+
31+
-- Lando Longshot
32+
DELETE FROM `creature` WHERE `id1` = 92006;
33+
DELETE FROM `creature` WHERE `id1` = 17249;
34+
INSERT INTO `creature` (`id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `Comment`)
35+
VALUES (92006, 0, 0, 0, 1, 1, -14397.5, 426.08, 7.97355, 5.51524, 300, 0, 0, 'CodeExchange');

0 commit comments

Comments
 (0)