数据库:world数据库:scripts
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
数据库:world数据库:scripts [2023/10/03 23:38] – [*_scripts 表] admin | 数据库:world数据库:scripts [2023/10/03 23:44] (当前版本) – [OtherFields] admin | ||
---|---|---|---|
行 51: | 行 51: | ||
The type of action performed by the script after delay seconds have passed. The value of this field affects what other fields also need to be set. The following commands can be used: | The type of action performed by the script after delay seconds have passed. The value of this field affects what other fields also need to be set. The following commands can be used: | ||
- | Command Name Description | + | ^Command^Name^Description^ |
- | 0 TALK Creature say/ | + | |0|TALK|Creature say/ |
- | 1 EMOTE Play emote on creature. | + | |1|EMOTE|Play emote on creature.| |
- | 2 FIELD_SET Change the value at an index for the player. | + | |2|FIELD_SET|Change the value at an index for the player.| |
- | 3 MOVE_TO Relocate creature to a destination. | + | |3|MOVE_TO|Relocate creature to a destination.| |
- | 4 FLAG_SET Turns on bits on a flag field at an index for the player. | + | |4|FLAG_SET|Turns on bits on a flag field at an index for the player.| |
- | 5 FLAG_REMOVE Turns off bits on a flag field at an index for the player. | + | |5|FLAG_REMOVE|Turns off bits on a flag field at an index for the player.| |
- | 6 TELEPORT_TO Teleports the player to a location. | + | |6|TELEPORT_TO|Teleports the player to a location.| |
- | 7 QUEST_EXPLORED Satisfies the explore requirement for a quest. | + | |7|QUEST_EXPLORED|Satisfies the explore requirement for a quest.| |
- | 8 KILL_CREDIT Gives kill credit to the player. | + | |8|KILL_CREDIT|Gives kill credit to the player.| |
- | 9 RESPAWN_GAMEOBJECT Spawns a despawned gameobject. | + | |9|RESPAWN_GAMEOBJECT|Spawns a despawned gameobject.| |
- | 10 TEMP_SUMMON_CREATURE Temporarily summons a creature. | + | |10|TEMP_SUMMON_CREATURE|Temporarily summons a creature.| |
- | 11 OPEN_DOOR Opens a door gameobject (type h1. 0). | + | |11|OPEN_DOOR|Opens a door gameobject (type h1. 0).| |
- | 12 CLOSE_DOOR Closes a door gameobject (type 0). | + | |12|CLOSE_DOOR|Closes a door gameobject (type 0).| |
- | 13 ACTIVATE_OBJECT Activates an object. | + | |13|ACTIVATE_OBJECT|Activates an object.| |
- | 14 REMOVE_AURA Removes an aura due to a spell. | + | |14|REMOVE_AURA|Removes an aura due to a spell.| |
- | 15 CAST_SPELL Casts a spell. | + | |15|CAST_SPELL|Casts a spell.| |
- | 16 PLAY_SOUND Plays a sound. | + | |16|PLAY_SOUND|Plays a sound.| |
- | 17 CREATE_ITEM Creates specified amount of items for the player. | + | |17|CREATE_ITEM|Creates specified amount of items for the player.| |
- | 18 DESPAWN_SELF Forces creature to despawn. | + | |18|DESPAWN_SELF|Forces creature to despawn.| |
- | 20 LOAD_PATH Load path to unit, then unit starts waypoint movement. | + | |20|LOAD_PATH|Load path to unit, then unit starts waypoint movement.| |
- | 21 CALLSCRIPT_TO_UNIT Calls script from one of *_scripts table with given unit as source. | + | |21|CALLSCRIPT_TO_UNIT|Calls script from one of *_scripts table with given unit as source.| |
- | 22 KILL Changes state of the creature to dead and optionally removes its corpse. | + | |22|KILL|Changes state of the creature to dead and optionally removes its corpse.| |
- | 30 ORIENTATION Changes unit's orientation (Used in Waypoint Scripts) | + | |30|ORIENTATION|Changes unit's orientation (Used in Waypoint Scripts)| |
- | 31 EQUIP Sets creature equipment. | + | |31|EQUIP|Sets creature equipment.| |
- | 32 MODEL Sets creature model. | + | |32|MODEL|Sets creature model.| |
- | 33 CLOSE_GOSSIP Closes gossip window. This command is only used for Gossip Scripts. | + | |33|CLOSE_GOSSIP|Closes gossip window. This command is only used for Gossip Scripts.| |
- | 34 PLAYMOVIE Plays movie. | + | |34|PLAYMOVIE|Plays movie.| |
- | 35 MOVEMENT Change movement type. | + | |35|MOVEMENT|Change movement type.| |
==== OtherFields ==== | ==== OtherFields ==== | ||
Depending on what command was used, the meaning and use for the following fields varies. | Depending on what command was used, the meaning and use for the following fields varies. | ||
- | *SCRIPT_COMMAND_TALK = 0 | + | * **SCRIPT_COMMAND_TALK = 0** |
- | source: Creature. | + | |
- | target: any/Player (for whisper). | + | |
- | datalong: 0=say, 1=yell, 2=text emote, 3=boss emote, 4=whisper 5=boss whisper | + | |
- | dataint: reference to broadcast_text.id | + | |
- | *SCRIPT_COMMAND_EMOTE = 1 | + | * **SCRIPT_COMMAND_EMOTE = 1** |
- | source or target: Creature. | + | |
- | datalong: The emote ID to play. | + | |
- | datalong2: If this value is > 0 the npc will play emote state rather than oneshot. | + | |
- | *SCRIPT_COMMAND_FIELD_SET = 2 | + | * **SCRIPT_COMMAND_FIELD_SET = 2** |
- | source or target: Creature. | + | |
- | datalong: Index of the field. | + | |
- | datalong2: Value to place at the index. | + | |
- | *SCRIPT_COMMAND_MOVE_TO = 3 | + | * **SCRIPT_COMMAND_MOVE_TO = 3** |
- | source: Creature. | + | |
- | datalong2: Length (in time) of the motion. | + | |
- | x: X position to move to. | + | |
- | y: Y position to move to. | + | |
- | z: Z position to move to. | + | |
- | *SCRIPT_COMMAND_FLAG_SET = 4 | + | * **SCRIPT_COMMAND_FLAG_SET = 4** |
- | source or target: Creature. | + | |
- | datalong: Field index to be set. | + | |
- | datalong2: Flag bit(s) to set. | + | |
- | *SCRIPT_COMMAND_FLAG_REMOVE = 5 | + | * **SCRIPT_COMMAND_FLAG_REMOVE = 5** |
- | source or target: Creature. | + | |
- | datalong: Field index to be unset. | + | |
- | datalong2: Flag bit(s) to unset. | + | |
- | *SCRIPT_COMMAND_TELEPORT_TO = 6 | + | * **SCRIPT_COMMAND_TELEPORT_TO = 6** |
- | source or target: Player (datalong2 0) or Creature (datalong2 1). | + | |
- | datalong: Target Map ID. See Map.dbc | + | |
- | x: Teleport target x coordinate. | + | |
- | y: Teleport target y coordinate. | + | |
- | z: Teleport target z coordinate. | + | |
- | o: Teleport target orientation. | + | |
- | *SCRIPT_COMMAND_QUEST_EXPLORED = 7 | + | * **SCRIPT_COMMAND_QUEST_EXPLORED = 7** |
source or target: Player. | source or target: Player. | ||
target or source: WorldObject. | target or source: WorldObject. |
数据库/world数据库/scripts.1696347528.txt.gz · 最后更改: 2023/10/03 23:38 由 admin