Hey there,
is there any way to spawn an npc // creature from a quest, with legal TrinityCore supported Options?
PS: If yes: How?
//EDIT: What i exactly mean is: You accept a quest and than a npc of my choice appears.
Hey there,
is there any way to spawn an npc // creature from a quest, with legal TrinityCore supported Options?
PS: If yes: How?
//EDIT: What i exactly mean is: You accept a quest and than a npc of my choice appears.
You can use SAI (SmartScripts)
On quest accept - Summon npc - Target position X Y Z
Assign SmartAI to questgiver
Thank you, for that. Very helpfull. But i got a Question:
My SAI did not Work for some reason…
I got Action Type 11, 35189, 2, 300000 and Target Type 8 at koords ,4188,49 | -3871,62 | 178,39 | 4,69 - Summon Unit
My Creature Template has got the Ai Name “SmartAI” and my gossip Entry does exists. So what am i doing wrong?
//EDIT:
Will it only work, if creature is not spawned in sanctuary zone?
Paste code
SAI:
INSERT INTO smart_scripts
(entryorguid
, action_type
, action_param1
, target_type
, target_x
, target_y
, target_z
, target_o
, comment
) VALUES (‘15063’, ‘12’, ‘35189’, ‘8’, ‘4176.66’, ‘-45005.75’, ‘167.15’, ‘1.13’, ‘Summon Unit’)
Gossip:
INSERT INTO gossip_menu_option
(menu_id
, id
, option_text
, option_id
, npc_option_npcflag
, box_text
) VALUES (‘15063’, ‘0’, ‘Skoll’, ‘1’, ‘1’, ‘Are you sure?’)
You forgot the part about event types (SMART_EVENT_ACCEPTED_QUEST, 0)
So i added event_type 62, event_param1 15063 (Because the Quest isn’t finished yet) - but that did not work.
Just by the way: Thanks for your fast support. /emoticons/default_smile.png
I tried that now, but it wont work neither does it with gossip Mode.