mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11309] Extend SCRIPT_COMMAND_EMOTE, allow search for nearby creature to do the emote
Also allow play emote on Player when player is source. Gameobject may be source of script but are only allowed as searcher for creature when defined. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
c81eafd1c1
commit
c93256e477
5 changed files with 63 additions and 7 deletions
|
|
@ -101,8 +101,11 @@ spell_scripts
|
|||
flag_buddy_as_target = 0x04
|
||||
* dataint = text entry from db_script_string -table. dataint2-dataint4 optionally, for random selection of text
|
||||
|
||||
1 SCRIPT_COMMAND_EMOTE source = unit
|
||||
1 SCRIPT_COMMAND_EMOTE source = Unit (or WorldObject when creature entry defined), target = Unit (or none)
|
||||
* datalong = emote_id
|
||||
* datalong2 = creature entry (searching for a buddy, closest to source)
|
||||
* datalong3 = creature search radius
|
||||
* data_flags = flag_target_as_source = 0x01
|
||||
|
||||
2 SCRIPT_COMMAND_FIELD_SET source = any
|
||||
* datalong = field_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue