Skip to content

Commit

Permalink
[ACID] Mana Tombs exterior
Browse files Browse the repository at this point in the history
Add RP scripts at Mana Tombs entrance for:
* "Captain" Kaftiz 19676
* Nexus-Prince Haramad 19674
* Consortium Engineer 19673 & Consortium Laborer 19672
  • Loading branch information
MantisLord committed Feb 2, 2024
1 parent 6915d71 commit 9395fc5
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ACID/acid_tbc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18069,9 +18069,9 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers
-- Kil'sorrow Deathsworn 17148
('1714801','17148','0','0','100','1025','8000','16000','20000','28000','0','0','11','31996','1','0','0','0','0','0','0','0','0','0','Kil''sorrow Deathsworn - Cast Bloodthirst'),
-- Vir'aani Raider 17149
('1714901','17149','0','0','100','1025','7900','9200','11300','18700','0','0','11','15691','1','0','0','0','0','0','0','0','0','0','Gava''xi - Cast Eviscerate'),
('1714902','17149','0','0','100','1025','15000','19000','15300','21800','0','0','11','12540','1','0','0','0','0','0','0','0','0','0','Gava''xi - Cast Gouge'),
('1714903','17149','0','0','100','1025','0','5000','5800','8900','0','0','11','14873','1','0','0','0','0','0','0','0','0','0','Gava''xi - Cast Sinister Strike'),
('1714901','17149','0','0','100','1025','7900','9200','11300','18700','0','0','11','15691','1','0','0','0','0','0','0','0','0','0','Vir''aani Raider - Cast Eviscerate'),
('1714902','17149','0','0','100','1025','15000','19000','15300','21800','0','0','11','12540','1','0','0','0','0','0','0','0','0','0','Vir''aani Raider - Cast Gouge'),
('1714903','17149','0','0','100','1025','0','5000','5800','8900','0','0','11','14873','1','0','0','0','0','0','0','0','0','0','Vir''aani Raider - Cast Sinister Strike'),
-- Vir'aani Arcanist 17150
('1715001','17150','4','0','100','0','0','0','0','0','0','0','57','2','35','0','0','0','0','0','0','0','0','0','Vir''aani Arcanist - Enable Range Mode on Aggro'),
('1715002','17150','2','0','100','1024','15','0','0','0','0','0','25','0','0','0','1','1150','0','0','0','0','0','0','Vir''aani Arcanist - Flee at 15% HP'),
Expand Down Expand Up @@ -20555,6 +20555,10 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers
-- Grek
('1960601','19606','1','0','100','1','120000','120000','120000','120000','0','0','1','16985','0','0','5','18','0','0','4','6941','0','0','Grek - Gossip Speech and Emote and Sound'),
('1960602','19606','1','0','100','1','420000','420000','420000','420000','0','0','1','19073','0','0','5','7','0','0','0','0','0','0','Grek - Gossip Speech and Emote'),
-- Nexus-Prince Haramad 19674
('1967401','19674','1','0','100','1','0','0','300000','330000','0','0','53','10219','0','0','0','0','0','0','0','0','0','0','Nexus-Prince Haramad - Start Relay Script OOC'),
-- "Captain" Kaftiz 19676
('1967601','19676','1','0','100','1','0','0','120000','150000','0','0','53','10217','0','0','0','0','0','0','0','0','0','0','"Captain" Kaftiz - Start Relay Script OOC'),
-- Levixus
('1984701','19847','0','0','100','1025','3000','7000','13000','17000','0','0','11','11443','1','0','0','0','0','0','0','0','0','0','Levixus - Cast Cripple'),
('1984702','19847','0','0','100','1025','9000','14000','13000','17000','0','0','11','7645','5','0','0','0','0','0','0','0','0','0','Levixus - Cast Dominate Mind'),
Expand Down Expand Up @@ -21627,7 +21631,8 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers
-- Cryo-Engineer Sha'heen (19671) - npc_shaheen
-- Consortium Laborer
('1967201','19672','11','0','100','0','0','0','0','0','0','0','11','34427','0','1','0','0','0','0','0','0','0','0','Consortium Laborer - Cast Ethereal Teleport on Spawn'),
-- Consortium Engineer (19673) - NSR
-- Consortium Engineer 19673
('1967301','19673','11','0','100','0','0','0','0','0','0','0','11','12980','0','1','0','0','0','0','0','0','0','0','Consortium Engineer - Cast Simple Teleport on Spawn'),
-- Ethereum Prisoner (Dungeon Energy Ball) 22927 - npc_ethereum_prisoner_dungeon
-- Ambassador Pax'ivi (22928) - NSR
-- Yor 22930 - boss_yor
Expand Down
93 changes: 93 additions & 0 deletions Updates/0372_mana_tombs.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
-- -----------------------------
-- Mana Tombs exterior RP events
-- -----------------------------
-- Consortium Engineer 19673
DELETE FROM creature_spawn_data_template WHERE Entry=1967301;
INSERT INTO creature_spawn_data_template (Entry, NpcFlags, UnitFlags, Faction, ModelId, EquipmentId, CurHealth, CurMana, SpawnFlags, RelayId, StringId, `Name`) VALUES
(1967301, -1, -1, 0, 0, -1, 0, 0, 0, 10216, 0, 'Consortium Engineer - RelayScript (10216)');
DELETE FROM creature_spawn_data WHERE Guid=84507;
INSERT INTO creature_spawn_data (Guid, Id) VALUES
(84507,1967301);
DELETE FROM creature_template_addon WHERE entry=19673; -- not every spawn uses emote 233
DELETE FROM creature_addon WHERE guid IN (SELECT guid FROM creature WHERE id=19673);
DELETE FROM creature WHERE guid=84498; -- extra spawn, there should only be 3 in total
INSERT INTO creature_addon (guid, mount, stand_state, sheath_state, emote, moveflags, auras) VALUES
(84504, 0, 0, 1, 233, 0, NULL),
(84497, 0, 0, 1, 0, 0, NULL),
(84507, 0, 0, 1, 0, 0, NULL);
DELETE FROM dbscripts_on_relay WHERE id=10216;
INSERT INTO dbscripts_on_relay (id, delay, priority, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, datafloat, x, y, z, o, speed, condition_id, comments) VALUES
(10216, 0, 0, 15, 34432, 0, 0, 19677, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - Cast Ribbon of Souls'),
(10216, 10000, 0, 45, 10216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - Start Relay Script'); -- creates loop intentionally
-- add missing Consortium Spell Marker
UPDATE creature_template SET InhabitType=4 WHERE Entry=19677; -- always flying
DELETE FROM creature WHERE guid=84498; -- reuse freed guid from above
INSERT INTO creature (guid, id, map, spawnMask, position_x, position_y, position_z, orientation, spawntimesecsmin, spawntimesecsmax, spawndist, MovementType) VALUES
(84498, 19677, 530, 1, -3101.862, 4931.368, -87.810165, 2.30383467674255371, 300, 300, 0, 0);

-- add emotes for texts used by Nexus-Prince Haramad 19674
UPDATE broadcast_text SET EmoteID1=1, EmoteID2=15, EmoteDelay2=3000 WHERE Id IN (17224,17225,17226);
-- 5:00-5:30 interval, triggered via EAI
DELETE FROM dbscripts_on_relay WHERE id=10219;
INSERT INTO dbscripts_on_relay (id, delay, priority, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, datafloat, x, y, z, o, speed, condition_id, comments) VALUES
(10219, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17226, 17225, 17224, 0, 0, 0, 0, 0, 0, 0, 0, 'Nexus-Prince Haramad - random say'),
(10219, 3000, 0, 1, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Nexus-Prince Haramad - emote'); -- this is only necessary because EmoteID2/EmoteDelay2 in broadcast_text is unimplemented?

-- "Captain" Kaftiz 19676 has two mini events.
-- #1 He harasses a nearby Consortium Laborer, and #2 he sends off Consortium Engineers into the Mana Tombs portal to die.

-- #1
-- specific Consortium Laborer 19672 who turns and talks to him - guid 84500
-- 2:00-2:30 interval, triggered via EAI
DELETE FROM dbscripts_on_relay WHERE id=10217;
INSERT INTO dbscripts_on_relay (id, delay, priority, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, datafloat, x, y, z, o, speed, condition_id, comments) VALUES
(10217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17204, 17203, 17202, 17201, 0, 0, 0, 0, 0, 0, 0, '"Captain" Kaftiz - random say'),
(10217, 4000, 0, 1, 0, 0, 0, 19672, 84500, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Laborer - stop emote'),
(10217, 5000, 0, 36, 0, 0, 0, 19672, 84500, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Laborer - face "Captain" Kaftiz'),
(10217, 6000, 1, 0, 10201, 0, 0, 19672, 84500, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Laborer - random say'),
(10217, 11000, 0, 36, 1, 0, 0, 19672, 84500, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Laborer - reset facing'),
(10217, 12000, 0, 1, 233, 0, 0, 19672, 84500, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Laborer - emote');
DELETE FROM dbscript_random_templates WHERE id=10201;
INSERT INTO dbscript_random_templates (id, `type`, target_id, chance, comments) VALUES
(10201, 0, 17193, 0, 'Consortium Laborer 19672'),
(10201, 0, 17194, 0, 'Consortium Laborer 19672'),
(10201, 0, 17195, 0, 'Consortium Laborer 19672'),
(10201, 0, 17196, 0, 'Consortium Laborer 19672'),
(10201, 0, 17197, 0, 'Consortium Laborer 19672'),
(10201, 0, 17198, 0, 'Consortium Laborer 19672'),
(10201, 0, 17199, 0, 'Consortium Laborer 19672'),
(10201, 0, 17200, 0, 'Consortium Laborer 19672');
UPDATE broadcast_text SET EmoteID1=1 WHERE Id BETWEEN 17201 AND 17204;
UPDATE broadcast_text SET EmoteID1=1 WHERE Id BETWEEN 17193 AND 17200;
-- #2
-- Consortium Engineer 19673 has interaction with "Captain" Kaftiz 19676, then enters portal and dies - guid 84497
-- occurs more or less continuously, with a 5 second respawn after dying in portal
UPDATE creature SET spawntimesecsmin=5, spawntimesecsmax=5 WHERE guid=84497;
UPDATE creature_movement SET WaitTime=90000, ScriptId=1967301 WHERE `Point`=4 AND Id=84497;
DELETE FROM creature_movement WHERE `Point` IN (5,6,7) AND Id=84497;
INSERT INTO creature_movement (Id, `Point`, PositionX, PositionY, PositionZ, Orientation, WaitTime, ScriptId, `Comment`) VALUES
(84497, 5, -3095.94, 4940.46, -99.6997, 100, 1, 5, 'copy of point 4 to make "run on" work'),
(84497, 6, -3074.75, 4943.16, -101.04, 100, 500, 1967302, 'chance for temporary success or die instantly'),
(84497, 7, -3069.42, 4942.84, -101.04, 100, 5000, 1967303, 'yell and die');
DELETE FROM dbscripts_on_creature_movement WHERE id IN (1967301,1967302,1967303);
INSERT INTO dbscripts_on_creature_movement (id, delay, priority, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, datafloat, x, y, z, o, speed, condition_id, comments) VALUES
(1967301, 84000, 0, 0, 0, 0, 0, 19676, 40, 0, 17210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '"Captain" Kaftiz - say'), -- Alright, it looks safe. Get in there, engineer!
(1967301, 88000, 0, 0, 0, 0, 0, 0, 0, 0, 17208, 17207, 17206, 17205, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - random say'),
(1967302, 0, 0, 45, 0, 10202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - start random relay script'),
(1967302, 8000, 0, 0, 0, 0, 0, 19676, 40, 0, 17213, 17212, 0, 0, 0, 0, 0, 0, 0, 0, 0, '"Captain" Kaftiz - random text emote'),
(1967302, 10000, 0, 0, 0, 0, 0, 19676, 40, 0, 17218, 17217, 17216, 17215, 0, 0, 0, 0, 0, 0, 0, '"Captain" Kaftiz - random say'),
(1967303, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 17209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - yell'),
(1967303, 2000, 0, 15, 7, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - cast death');
DELETE FROM dbscript_random_templates WHERE id=10202;
INSERT INTO dbscript_random_templates (id, `type`, target_id, chance, comments) VALUES
(10202, 1, 10218, 80, 'Consortium Engineer 19673 - die immediately'),
(10202, 1, 0, 20, 'Consortium Engineer 19673 - continue inside portal');
DELETE FROM dbscripts_on_relay WHERE id=10218;
INSERT INTO dbscripts_on_relay (id, delay, priority, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, datafloat, x, y, z, o, speed, condition_id, comments) VALUES
(10218, 0, 0, 15, 7, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Consortium Engineer - cast death');
UPDATE broadcast_text SET EmoteID1=1 WHERE Id=17210;
UPDATE broadcast_text SET EmoteID1=1 WHERE Id BETWEEN 17205 AND 17208;
UPDATE broadcast_text SET EmoteID1=1 WHERE Id BETWEEN 17215 AND 17218;
UPDATE broadcast_text SET ChatTypeID=1 WHERE Id=17209;


0 comments on commit 9395fc5

Please sign in to comment.