Scripts&DB/Feralas Convert npc_screecher_spirit to SAI

SAI by @Rushor and gossip by @malcrom

Closes #12630
This commit is contained in:
DDuarte
2014-07-24 16:38:18 +01:00
parent f1a41eabae
commit 3de1714350
2 changed files with 15 additions and 22 deletions
@@ -0,0 +1,14 @@
SET @ENTRY := 8612;
-- Add missing gossip (by Malcrom)
DELETE FROM `gossip_menu` WHERE `entry`=1405;
INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES (1405,2039);
UPDATE `creature_template` SET `gossip_menu_id`=1405 WHERE entry=@ENTRY;
-- SAI (by Rushor)
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,64,0,100,0,0,0,0,0,33,8612,0,0,0,0,0,7,0,0,0,0,0,0,0,"Screecher Spirit - On Gossip Hello - Quest Credit 'Screecher Spirits'"),
(@ENTRY,0,1,2,61,0,100,0,0,0,0,0,18,33554432,0,0,0,0,0,1,0,0,0,0,0,0,0,"Screecher Spirit - On Gossip Hello - Set Flag Not Selectable"),
(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Screecher Spirit - On Gossip Hello - Despawn In 3000 ms");
+1 -22
View File
@@ -19,7 +19,7 @@
/* ScriptData
SDName: Feralas
SD%Complete: 100
SDComment: Quest support: 3520, 2767, Special vendor Gregan Brewspewer
SDComment: Quest support: 2767, Special vendor Gregan Brewspewer
SDCategory: Feralas
EndScriptData */
@@ -183,26 +183,6 @@ public:
};
/*######
## npc_screecher_spirit
######*/
class npc_screecher_spirit : public CreatureScript
{
public:
npc_screecher_spirit() : CreatureScript("npc_screecher_spirit") { }
bool OnGossipHello(Player* player, Creature* creature) override
{
player->SEND_GOSSIP_MENU(2039, creature->GetGUID());
player->TalkedToCreature(creature->GetEntry(), creature->GetGUID());
creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
creature->DespawnOrUnsummon(3*IN_MILLISECONDS);
return true;
}
};
enum GordunniTrap
{
GO_GORDUNNI_DIRT_MOUND = 144064,
@@ -247,6 +227,5 @@ void AddSC_feralas()
{
new npc_gregan_brewspewer();
new npc_oox22fe();
new npc_screecher_spirit();
new spell_gordunni_trap();
}