Core/SmartScripts: SMART_ACTION_TALK - added action param 3 to set target as talk target (used for $vars in texts and whisper target)
* by default (action param 3 is 0), it will try to trigger talk of the target (cherry picked from commit 7b491046e94af498b2428ebe7decf6353cbb61a2)
This commit is contained in:
1 parent
1403d5d0bb
commit
02d014c69d
2 files changed
+9
-3
No files matched your search
@@ -426,7 +426,7 @@ enum SMART_SCRIPT_RESPAWN_CONDITION
|
||||
enum SMART_ACTION
|
||||
{
|
||||
SMART_ACTION_NONE = 0, // No action
|
||||
SMART_ACTION_TALK = 1, // groupID from creature_text, duration to wait before TEXT_OVER event is triggered
|
||||
SMART_ACTION_TALK = 1, // groupID from creature_text, duration to wait before TEXT_OVER event is triggered, useTalkTarget (0/1) - use target as talk target
|
||||
SMART_ACTION_SET_FACTION = 2, // FactionId (or 0 for default)
|
||||
SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL = 3, // Creature_template entry(param1) OR ModelId (param2) (or 0 for both to demorph)
|
||||
SMART_ACTION_SOUND = 4, // SoundId, onlySelf
|
||||
@@ -553,6 +553,7 @@ struct SmartAction
|
||||
{
|
||||
uint32 textGroupID;
|
||||
uint32 duration;
|
||||
uint32 useTalkTarget;
|
||||
} talk;
|
||||
|
||||
struct
|
||||
|
||||
Reference in new issue
Block a user