[Q] Gluttonous Lurkers

So here’s the SAI for this quest. Tested and everything’s working now.

Really fun quest to do/script /emoticons/default_tongue.png

[CODE]
– Gluttonous Lurkers

DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN (50894, 50919);
INSERT INTO conditions (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorTextId, ScriptName, Comment) VALUES
(13,1,50919,0,0,31,1,4,0,0,0,0, “”, “Create Basilisk Crystal may only be casted upon a player.”),
(13,3,50894,0,0,31,1,3,28145,0,0,0, “”, “Zul’Drak Rat can only be cast on a Lurking Bassilisk.”);

DELETE FROM npc_spellclick_spells WHERE npc_entry IN (28202, 28203);
INSERT INTO npc_spellclick_spells (npc_entry,spell_id,cast_flags,user_type) VALUES
(28202,50926,1,0),
(28203,50918,1,0);

– EAI cleanup
DELETE FROM creature_ai_scripts WHERE creature_id IN (28145,28202,28203);
UPDATE creature_template SET AIName=“SmartAI” WHERE entry IN (28145,28202,28203);
– Lurking Basilisk SAI
DELETE FROM smart_scripts WHERE entryorguid IN (28145,28202,28203);
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
(28145,0,0,0,0,0,100,0,5000,5000,17000,27000,11,54470,0,0,0,0,0,2,0,0,0,0.0,0.0,0.0,0.0,“Lurking Basilisk - In Combat - Cast Venomous Bite”),
(28145,0,1,0,23,0,100,1,50894,5,0,0,12,28203,7,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,“Lurking Basilisk - Has Aura - Summon Gorged Basilisk”),
(28145,0,2,0,17,0,100,0,28203,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,“Lurking Basilisk - Summoned Unit - Despawn”),
– Zul’Drak Rat SAI
(28202,0,0,0,8,0,100,1,50926,0,0,0,11,50927,0,0,0,0,0,7,0,0,0,0.0,0.0,0.0,0.0,“Zul’Drak Rat - On Spellhit - Create Rat”),
(28202,0,1,0,8,0,100,0,50926,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,“Zul’Drak Rat - On Spellhit - Despawn”),
– Gorged Basilisk SAI
(28203,0,0,0,8,0,100,1,50918,0,0,0,11,50919,0,0,0,0,0,7,0,0,0,0.0,0.0,0.0,0.0,“Gorged Basilisk - On Spellhit - Cast Basilisk Crystal”),
(28203,0,1,0,8,0,100,0,50918,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,“Gorged Basilisk - On Spellhit - Despawn”);

[/SQL][/CODE]

Just some small corrections from sniff:

Use http://old.wowhead.com/spell=50928 to summon http://old.wowhead.com/npc=28203.

http://old.wowhead.com/npc=28203 casts http://old.wowhead.com/spell=50917 on self on spawn.

There is also a little correction for the creature_template table from sniff

UPDATE `creature_template` SET `faction_A`=190, `faction_H`=190, `unit_flags`=`unit_flags`|262144 WHERE `entry`=28203;
[/sql]

Everything else seems just fine. Can you add my suggestions and check whether it works?

hello

thanks for this fix.

regards

Maybe unit_flags 262144 (STUNNED) is not needed as it is an effect of http://old.wowhead.com/spell=50917