Hi everybody, I’m working on a 3.3.5 script and I need to change the phase of the Party members after that one of them select a gossip. I Must do that with Smart AI scripts but I don’t understand how can I do it.
This is the script:
I think that the spell is incorrect, because if you also select a target (in game) the spell is casted to yourself. So, I need another spell or is there an action that change the phase of the players??
Thanks.
DELETE FROM smart_scripts WHERE entryorguid = 43013 AND source_type = 0;
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
(43013, 0, 0, 0, 62, 0, 100, 0, 43013, 0, 0, 0, 80, 4301300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - On Gossip Selectt - Run Actiontimedlist 4301300’),
(43013, 0, 1, 0, 0, 0, 100, 0, 2000, 2000, 4000, 4000, 11, 45271, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - In combat - Cast Spell 45271’),
(43013, 0, 2, 0, 25, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - On respawn - Set Faction to 35’),
(43013, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 81, 3, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - On respawn - Set npcflag to 3’),
(43013, 0, 4, 0, 62, 0, 100, 0, 43013, 1, 0, 0, 11, 59074, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - On Gossip Select - Increment Phase’), THIS LINE MUST BE CHANGED!
(43013, 0, 5, 0, 62, 0, 100, 0, 43013, 1, 0, 0, 80, 4301301, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Count Lishin - On Gossip Select - Run Actiontimedlist 4301301’);