Sai Help Please Quest 20439 "a Meeting With The Magister"

HI guys i got a problem… i try to make a sai for the quest a meeting with the magister … but when i use the gossip nothing happens could someone please explain me where i got wrong? tyvm



-- QUEST 20439 "A Meeting With The Magister"


UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry` =36670;

UPDATE `creature_template` SET `gossip_menu_id`=36670 WHERE `entry`=36670;


DELETE FROM `gossip_menu_option` WHERE `menu_id`=36670;

INSERT INTO `gossip_menu_option` VALUES 

('36670', '0', '0', 'I\'m ready to deliver the tome, Magister Hathorel', '1', '1', '0', '0', '0', '0', '');


DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=36670;

INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES

(15,36670,0,0,9,20439,0,0,0,'','Show gossip option 0 if player has quest 20439 (Alliance)');


DELETE FROM `smart_scripts` WHERE `entryorguid` =36670;

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

(36670,9,0,0,0,0,100,0,2000,2000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 0'),

(36670,9,1,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 1'),

(36670,9,2,0,0,0,100,0,4000,4000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 3'),

(36670,9,3,0,0,0,100,0,4000,4000,0,0,56,49698,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Give quest credit');


DELETE FROM `creature_text` WHERE `entry` = 36670;

INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES

(36670,0,0,'You\'re late, courier. No, I don\'t want any excuses; this errand is far too important.',0,0,100,1,0,0,'Magister Hathore'),

(36670,1,0,'Here\'s the tome our representative brought from Wyrmrest. Get this to Myralion Sunblaze immediately.',0,0,100,1,0,0,'Magister Hathore'),

(36670,2,0,'Watch your back, courier. I needn\'t remind you of the value of the book, nor the fact that the Silver Covenant will stop at nothing to take it from us.',0,0,100,25,0,0,'Magister Hathore');

You are using script9 (source_type=9) but no “source_type=0” is calling that timed action list.

You need to do something like http://www.trinitycore.org/f/topic/3819-wip-wrangle-some-aether-rays-quest/

“On gossip select run timed action list”

In that example, you should use the gossip select action instead of spellhit event.

Didn’t you fail your Copypasta, Nay ? No gossip on this wip.

Are you blind, sir?

Nay is right, the gossip is never activating the timed actionlist.

Also please use [sql tags instead of [code /emoticons/default_smile.png

No, I didn’t. I just picked a random script that uses script9 and I am truly sorry for using something of you. Won’t happen again.

Back to the topic… meandrox: here is a much better example: https://github.com/TrinityCore/TrinityCore/issues/2943

I made this changes but still dosent work /emoticons/default_sad.png i am a stupid mf who cant get this thing work

uh uh one question … what gossip id should i use ?



-- QUEST 20439 "A Meeting With The Magister"


SET @ENTRY := 36670;

SET @QUEST := 20439;

SET @GOSSIP := 36670;


UPDATE `creature_template` SET `AIName`= 'EventAI' WHERE `entry` =@ENTRY;

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY,@ENTRY*100);

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,0,62,0,100,0,@GOSSIP,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Gossip Select - Run Script"),

(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Hugh Glass - On Script - Close Gossip"),

(@ENTRY*100,9,1,0,0,0,100,0,0,0,0,0,81,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Hugh Glass - On Script - Remove Gossip & Quest Flags"),

(@ENTRY*100,0,2,0,0,0,100,0,2000,2000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 0'),

(@ENTRY*100,9,3,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 1'),

(@ENTRY*100,9,4,0,0,0,100,0,4000,4000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Say text 2'),

(@ENTRY*100,9,5,0,0,0,100,0,4000,4000,0,0,56,49698,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Give quest credit'),

(@ENTRY*100,9,6,0,0,0,100,0,0,0,0,0,81,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Hugh Glass - On Script - Add Gossip & Quest Flags");


DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GOSSIP AND `id`=0;

INSERT INTO `gossip_menu_option` VALUES

(@GOSSIP, 0, 0, 'I\'m ready to deliver the tome, Magister Hathorel', 1, 1, 0, 0, 0, 0, NULL);


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

INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES

(@ENTRY,0,0,'You\'re late, courier. No, I don\'t want any excuses; this errand is far too important.',12,0,100,1,0,0,'Magister Hathore'),

(@ENTRY,1,0,'Here\'s the tome our representative brought from Wyrmrest. Get this to Myralion Sunblaze immediately.',12,0,100,1,0,0,'Magister Hathore'),

(@ENTRY,2,0,'Watch your back, courier. I needn\'t remind you of the value of the book, nor the fact that the Silver Covenant will stop at nothing to take it from us.',12,0,100,1,0,0,'Magister Hathore');


DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=@GOSSIP;

INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`) VALUES

(15,@GOSSIP,0,9,@QUEST);

UPDATE creature_template SET AIName= ‘EventAI’ WHERE entry =@ENTRY;

It should be SmartAI, not EventAI.

The gossip id will be assigned by us when you submit the final fix. For testing you can use that id you are already using.

You didn’t even bother to change the comments… =/

Anyway, this will make the quest work according to this video:

https://github.com/TrinityCore/TrinityCore/issues/2958

Man I`ve posted this 07 September 2011

and you

Discover- opened this issue 1 day ago

I don’t get it… What do you even mean?