From eb07156ac420bb7861562244f555da27027d06b6 Mon Sep 17 00:00:00 2001 From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com> Date: Fri, 20 Dec 2019 13:05:17 +0100 Subject: docs: update smart_scripts, areatrigger, FAQ (#161) --- docs/smart_scripts.md | 426 +------------------------------------------------- 1 file changed, 5 insertions(+), 421 deletions(-) (limited to 'docs/smart_scripts.md') diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index a075c85..14ea604 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -411,8 +411,6 @@ **Description of the fields** -Please note: ❌ means that the feature/option is not (yet) implemented. - ### entryorguid - EntryOrGuid > 0: entry of the creature / game object / etc. @@ -434,12 +432,6 @@ Please note: ❌ means that the feature/option is not (yet) implemented. | SMART\_SCRIPT\_TYPE\_CREATURE | 0 | | SMART\_SCRIPT\_TYPE\_GAMEOBJECT | 1 | | SMART\_SCRIPT\_TYPE\_AREATRIGGER | 2 | - | ❌ SMART\_SCRIPT\_TYPE\_EVENT | 3 | - | ❌ SMART\_SCRIPT\_TYPE\_GOSSIP | 4 | - | ❌ SMART\_SCRIPT\_TYPE\_QUEST | 5 | - | ❌ SMART\_SCRIPT\_TYPE\_SPELL | 6 | - | ❌ SMART\_SCRIPT\_TYPE\_TRANSPORT | 7 | - | ❌ SMART\_SCRIPT\_TYPE\_INSTANCE | 8 | | SMART\_SCRIPT\_TYPE\_TIMED\_ACTIONLIST | 9 | ### id @@ -1104,91 +1096,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if On Creature Waypoint ID Reached -
-

❌ SMART_EVENT_TRANSPORT_ADDPLAYER

-
-

41

-


-

-


-

-


-

-


-

-


-

-


-

- - -
-

❌ SMART_EVENT_TRANSPORT_ADDCREATURE

-
-

42

-

Entry (0 any)

-


-

-


-

-


-

-


-

-


-

- - -
-

❌ SMART_EVENT_TRANSPORT_REMOVE_PLAYER

-
-

43

-


-

-


-

-


-

-


-

-


-

-


-

- - -
-

❌ SMART_EVENT_TRANSPORT_RELOCATE

-
-

44

-

PointId

-


-

-


-

-


-

-


-

-


-

- - -
-

❌ SMART_EVENT_INSTANCE_PLAYER_ENTER

-
-

45

-

Team (0 any)

-

CooldownMin

-

CooldownMax

-


-

-


-

-


-

- -

SMART_EVENT_AREATRIGGER_ONTRIGGER

46

TriggerId (0 any)

@@ -1203,91 +1110,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- -
-

❌ SMART_EVENT_QUEST_ACCEPTED

-
-

47

-


-

-


-

-


-

-


-

-


-

-On Target Quest Accepted - - -
-

❌ SMART_EVENT_QUEST_OBJ_COMPLETION

-
-

48

-


-

-


-

-


-

-


-

-


-

-On Target Quest Objective Completed - - -
-

❌ SMART_EVENT_QUEST_COMPLETION

-
-

49

-


-

-


-

-


-

-


-

-


-

-On Target Quest Completed - - -
-

❌ SMART_EVENT_QUEST_REWARDED

-
-

50

-


-

-


-

-


-

-


-

-


-

-On Target Quest Rewarded - - -
-

❌ SMART_EVENT_QUEST_FAIL

-
-

51

-


-

-


-

-


-

-


-

-


-

-On Target Quest Field -

SMART_EVENT_TEXT_OVER

52

@@ -3483,91 +3305,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if

-

❌ SMART_ACTION_SET_CORPSE_DELAY

-

116

-

timer

-


-

-


-

-


-

-


-

-


-

-


-

- - -

❌ SMART_ACTION_DISABLE_EVADE

-

117

-

disable evade (1) / re-enable (0)

-


-

-


-

-


-

-


-

-


-

-


-

- - -

❌ SMART_ACTION_GO_SET_GO_STATE

-

118

-

state

-


-

-


-

-


-

-


-

-


-

-


-

- - -

❌ SMART_ACTION_SET_CAN_FLY

-

119

-

0/1

-


-

-


-

-


-

-


-

-


-

-


-

- - -

❌ SMART_ACTION_REMOVE_AURAS_BY_TYPE

-

120

-

Type

-


-

-


-

-


-

-


-

-


-

-


-

- -

SMART_ACTION_SET_SIGHT_DIST

121

SightDistance

@@ -3584,7 +3321,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- +

SMART_ACTION_FLEE

122

FleeTime

@@ -3601,7 +3338,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- +

SMART_ACTION_ADD_THREAT

123

+threat

@@ -3617,7 +3354,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- +

SMART_ACTION_LOAD_EQUIPMENT

124

Id

@@ -3633,7 +3370,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- +

SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT

125

id min range

@@ -3649,7 +3386,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- +

SMART_ACTION_REMOVE_ALL_GAMEOBJECTS

126


@@ -3667,115 +3404,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if


- -

❌ SMART_ACTION_REMOVE_MOVEMENT

-

127

-

movementType

-

Forced

-


-

-


-

-


-

-


-

-

see SMART_ACTION_STOP_MOTION (212)

- - -

❌ SMART_ACTION_PLAY_ANIMKIT

-

128

-

AnimKit ID

-

type:

-

1- PlayOneShotAnimKitId

-

2- SetAIAnimKitId

-

3- SetMeleeAnimKitId

-

4- SetMovementAnimKitId

-


-

-


-

-


-

-


-

-

// don't use on 3.3.5a

- - -

❌ SMART_ACTION_SCENE_PLAY

-

129

-

SceneId

-


-

-


-

-


-

-


-

-


-

-

// don't use on 3.3.5a

- - -

❌ SMART_ACTION_SCENE_CANCEL

-

130

-

SceneId

-


-

-


-

-


-

-


-

-


-

-

// don't use on 3.3.5a

- - -

❌ SMART_ACTION_SPAWN_SPAWNGROUP

-

131

-

groupId

-

minDelay

-

maxDelay

-

spawnflags

-


-

-


-

-


-

- - -

❌ SMART_ACTION_DESPAWN_SPAWNGROUP

-

132

-

groupId

-

minDelay

-

maxDelay

-

spawnflags

-


-

-


-

-


-

- - -

❌ SMART_ACTION_RESPAWN_BY_SPAWNID

-

133

-

spawnType (0 npc/ 1 gob)

-

spawnId (DB Guid)

-


-

-


-

-


-

-


-

-

Use to respawn npcs and gobs, the target in this case is always=1 and only a single unit could be a target via the spawnId (action_param1, action_param2)

-

SMART_ACTION_MOVE_TO_POS_TARGET

201

@@ -4708,27 +4336,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if Any friendly unit (creature, player or pet) within maxDist -❌ SMART_TARGET_LOOT_RECIPIENTS -27 -


-

-


-

-


-

-


-

-


-

-


-

-


-

-


-

-All tagging players - - SMART_TARGET_FARTHEST 28 maxDist @@ -4746,26 +4353,6 @@ This is the probability of the event to occur as a percentage from 0-100. So, if

Farthest unit on the threat list

- -❌ SMART_TARGET_VEHICLE_ACCESSORY -29 -seat -


-

-


-

-


-

-


-

-


-

-


-

-


-

-Vehicle can target unit in given seat - @@ -4799,9 +4386,6 @@ INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES (y, 'SmartTrigg |----------------------------------------------------------------|------|------|-------------------------------------------------------------------------| | SMARTCAST\_INTERRUPT\_PREVIOUS | 1 | 0x01 | Interrupt any spell casting | | SMARTCAST\_TRIGGERED | 2 | 0x02 | Triggered (this makes spell cost zero mana and have no cast time) | -| ❌ CAST\_FORCE\_CAST | 4 | 0x04 | Forces cast even if creature is out of mana or out of range | -| ❌ CAST\_NO\_MELEE\_IF\_OOM | 8 | 0x08 | Prevents creature from entering melee if out of mana or out of range | -| ❌ CAST\_FORCE\_TARGET\_SELF | 16 | 0x10 | Forces the target to cast this spell on itself | | CAST\_AURA\_NOT\_PRESENT | 32 | 0x20 | Only casts the spell if the target does not have an aura from the spell | | SMARTCAST\_COMBAT\_MOVE | 64 | 0x40 | Prevent combat movement on cast, allow on fail range, mana, LOS | -- cgit