[Quest]Plan B;

-- PLAN B --Dead caravan guard SET @ENTRY := 25342; SET @QUEST := 11658; SET @GOSSIP := 9155; UPDATE `creature_template` SET `gossip_menu_id` = @GOSSIP, `IconName` = '', `AIName`='SmartAI' 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,2,0,0,0,1,0,0,0,0,0,0,0,"Dead caravan guard - On Gossip Select - Run Script"), (@ENTRY*100,9,0,0,0,0,100,1,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Dead caravan guard - On Script - Close Gossip"), (@ENTRY*100,9,2,0,0,0,100,1,0,0,0,0,56,34842,1,0,0,0,0,0,0,0,0,0,0,0,0,"Dead caravan guard - On Script - Quest Credit"), (@ENTRY*100,9,3,0,0,0,100,1,0,0,0,0,41,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,"Dead caravan guard - On Script - Force Despawn"); --Add gossip text DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GOSSIP AND `id`=0; INSERT INTO `gossip_menu_option` VALUES (@GOSSIP, 0, 0, 'Retrive warsong outfit...', 1, 1, 0, 0, 0, 0, NULL); -- Only show gossip if player is on quest PlanB DELETE FROM `conditions` WHERE `SourceGroup`=@GOSSIP AND `ConditionValue1`=@QUEST; INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES (15,@GOSSIP,0,0,9,@QUEST,0,0,0,'',"Only show first gossip if player is on quest PlanB"); [/sql]

I’ve made this for quest “Plan B”. All seems to be ok, but when i’m trying to clik on gossip i’m not receiving the outfit…

What could be the prob, is someone knows? /emoticons/default_biggrin.png

you have not specified a target for the script portion.


(@ENTRY*100,9,2,0,0,0,100,1,0,0,0,0,56,34842,1,0,0,0,0,0,0,0,0,0,0,0,0,"Dead caravan guard - On Script - Quest Credit"),

to


(@ENTRY*100,9,2,0,0,0,100,1,0,0,0,0,56,34842,1,0,0,0,0,1,0,0,0,0,0,0,0,"Dead caravan guard - On Script - Quest Credit"),

?

(If yes, doesn’t work:( )

You want action invoker. (7)

Remember targeting is based on the NPC the script is run from

I’ve tried even SMART_TARGET_ACTION_INVOKER (7) still don’t work…

Isn’t there a spell to create the outfit?

Possibly yes…but i 'm not sure…i’ll search about this.

I’ve made almost same script at the quest “Emergency Protocol Paragraph C” or something like this and works fine…so somewhere must be a prob.

Spell 45474 is the one you cast with the torch. http://www.wowhead.com/spell=45474. Item http://www.wowhead.com/item=34692 needs a condition to only work on[FONT=arial] dead caravan guards. You should see “Invalid target” if used on any other creature.[/FONT]

[FONT=arial]When the spell is cast on the npc, the npc should close gossip, change flag to untargetable, cast a visual flame spell on self, cast quest credit spell on player, and despawn after 3 sec.[/FONT]

Yes, but i’ve seen that the item is provided only for horde side for quest http://www.wowhead.com/quest=11593 not for http://www.wowhead.com/quest=11658 (Plan B );