[Q] Territorial Trespass - Send Script Event

[SIZE=14px]OUTDATED[/SIZE]

I made it like:

event_script → spawn mob in heaven

mob → smart_ai with waypoints to the platform

It’s a complete hackfix.

Hello everybody,

I’m working on the quest territorial trespass, I can use the item at the right place, but after that it doesn’t do something.

There should be a event_script but I never made one and after some hours looking through the code (of other event_scripts commits) I don’t know how to do it.

For the quest completion you need to put the Stolen Proto-Dragon Eggs in the nest and after that there will come Veranus.

A youtube video how it works:

I looked through everything and found out, that you need to place the stolen eggs (spell 56788) and after that the spell 56650 should be castet (Player Cast Veranus Summon) and this spell send script event 19714.

The send script event works…

I tested with:


DELETE FROM `event_scripts` WHERE id='19714';

INSERT INTO `event_scripts` VALUES

(19714,3,10,30393,30000,0,7093.991699,-915.541616,1067.415527,1.091680);

But how do I call a script (smart ai / event ai or c++?)

I need to define, where the creature has to be spawned, but on retail the npc fly to the platform, befor you get the credit.

Quest: territorial trespass

http://www.wowhead.c…torial-trespass

Stolen Proto-Dragon Eggs

http://www.wowhead.com/item=42797

Place stolen Eggs

http://www.wowhead.com/spell=56788

Effect: Send Script Event (19714)

Player Cast Veranus Summon

http://www.wowhead.com/spell=56650

I appreciate any help!

Thanks

aqwirah

I don’t get your Problem /emoticons/default_wink.png

I inserted your Event and used the Item and the Proto was there…

That’s how far i’ve come:


SET @ENTRY := 30461;

SET @SOURCETYPE := 0;

-- Event Script // Wird vom Spell ausgelöst

DELETE FROM `event_scripts` WHERE `id`=19714;

INSERT INTO `event_scripts` VALUES

(19714,3,10,@ENTRY,60000,0,6884.88,-894.51,1124.68,6.216383);

-- WPs

DELETE FROM `waypoints` WHERE `entry`=@ENTRY;

INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES

(@ENTRY, 1, 6912.84, -915.99, 1133.38, 'Veranus - 1'),

(@ENTRY, 2, 6978.99, -933.2, 1114.27, 'Veranus - 2'),

(@ENTRY, 3, 7026.66, -937.78, 1096.08, 'Veranus - 3'),

(@ENTRY, 4, 7053.13, -932.06, 1083.98, 'Veranus - 4'),

(@ENTRY, 5, 7091.78, -916.25, 1067.57, 'Veranus - 5');

-- Veranus SAI

UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY;

DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=@SOURCETYPE;

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,@SOURCETYPE,0,0,54,0,100,0,0,0,0,0,53,1,@ENTRY,0,13051,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Veranus - On Summoned - Start WP-Movement"),

(@ENTRY,@SOURCETYPE,1,0,58,0,100,0,5,0,0,0,15,13051,0,0,0,0,0,17,0,40,0,0.0,0.0,0.0,0.0,"Veranus - On WP-End - Call Quest Credit");

ToDo:

I think the Proto should spawn in range of the player, otherwise he won’t see the Proto coming

– WP should be redone

– Quest credit is missing

Have Fun;)