mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11823] Add SCRIPT_COMMAND_MODIFY_NPC_FLAG to change NPC flags by db-script
Note that the npc flags will be restored when the npc respawns Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
1606bb2e45
commit
46e604a089
5 changed files with 100 additions and 8 deletions
|
|
@ -230,3 +230,8 @@ spell_scripts
|
|||
* datalong2 = creature entry (searching for a buddy, closest to source)
|
||||
* datalong3 = creature search radius
|
||||
* data_flags = flag_target_as_source = 0x01
|
||||
29 SCRIPT_COMMAND_MODIFY_NPC_FLAGS source=worldobject or target=worldobject (datalong1==0), else source or target = creature
|
||||
* datalong=NPCFlags
|
||||
* datalong1=creature entry
|
||||
* datalong2=search radius
|
||||
* data_flags = 0x00=toggle, 0x01=add, 0x02=remove
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue