From a0c90070b5d05c012f4375be1aac5db79a574edc Mon Sep 17 00:00:00 2001 From: Grz3s Date: Mon, 22 Jan 2024 00:22:51 +0100 Subject: [PATCH] Update [5277] Unload both Elenna Edune 24738 & Goodie 24740 in case of death. (they're active during RP) --- Updates/5277_ShrineofAessina_RP.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Updates/5277_ShrineofAessina_RP.sql b/Updates/5277_ShrineofAessina_RP.sql index 8bfb8eb8d3..32f8d9f6e0 100644 --- a/Updates/5277_ShrineofAessina_RP.sql +++ b/Updates/5277_ShrineofAessina_RP.sql @@ -90,6 +90,11 @@ INSERT INTO dbscripts_on_creature_movement (id, delay, command, datalong, datalo (2473804,2,22,79,3,0,24740,33070,7|0x10,0,0,0,0,0,0,0,0,'buddy - faction'), (2473805,1,22,80,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'faction'), (2473805,2,22,1076,0,0,24740,33070,7|0x10,0,0,0,0,0,0,0,0,'buddy - faction'); +-- unload if killed +DELETE FROM dbscripts_on_creature_death WHERE id IN (24738,24740); +INSERT INTO dbscripts_on_creature_death (id, delay, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES +(24738,1,21,0,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'unactive'), +(24740,1,21,0,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'unactive'); -- Benjari Edune 24739 UPDATE creature_template SET EquipmentTemplateId = 188, MovementType = 0 WHERE Entry = 24739; -- equip 1 - 5305