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/FAQ.md | 4 + docs/areatrigger_involvedrelation.md | 2 +- docs/areatrigger_scripts.md | 2 +- docs/areatrigger_tavern.md | 2 +- docs/areatrigger_teleport.md | 2 +- docs/phase_area.md | 2 +- docs/smart_scripts.md | 426 +---------------------------------- 7 files changed, 14 insertions(+), 426 deletions(-) (limited to 'docs') diff --git a/docs/FAQ.md b/docs/FAQ.md index c354d54..9b3413e 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -34,6 +34,10 @@ Read this carefully: [How to ask help](How-to-ask-for-help.md) - because it helps to **avoid duplicate questions** +#### 6 - Why does AzerothCore not mimic blizzlike bugs or exploits? + +Although we strive to provide blizzlike content we also value user experience. This means that we sometimes fix bugs or exploits which existed during retail at the time to provide a better overall experience for the players. + ## COMMON ERRORS diff --git a/docs/areatrigger_involvedrelation.md b/docs/areatrigger_involvedrelation.md index b19f1d2..530270a 100644 --- a/docs/areatrigger_involvedrelation.md +++ b/docs/areatrigger_involvedrelation.md @@ -59,7 +59,7 @@ If there is a record in the table for a quest, then the quest will not be comple ### id -This is the trigger ID from [AreaTrigger.dbc](AreaTrigger) +This is the trigger ID from [AreaTrigger.dbc](DBC-AreaTrigger) ### quest diff --git a/docs/areatrigger_scripts.md b/docs/areatrigger_scripts.md index dbf5637..ab7a988 100644 --- a/docs/areatrigger_scripts.md +++ b/docs/areatrigger_scripts.md @@ -57,7 +57,7 @@ Allows for an area trigger to be scripted with Trinity Script. ### entry -This is the trigger identifier from [AreaTrigger.dbc](AreaTrigger) +This is the trigger identifier from [AreaTrigger.dbc](DBC-AreaTrigger) ### ScriptName diff --git a/docs/areatrigger_tavern.md b/docs/areatrigger_tavern.md index a94072a..257a091 100644 --- a/docs/areatrigger_tavern.md +++ b/docs/areatrigger_tavern.md @@ -57,7 +57,7 @@ Enable a trigger when player enters a city or tavern. This causes the player to ### id -This is the trigger identifier, see [AreaTrigger.dbc](AreaTrigger) +This is the trigger identifier, see [AreaTrigger.dbc](DBC-AreaTrigger) ### name diff --git a/docs/areatrigger_teleport.md b/docs/areatrigger_teleport.md index 3a8be80..6cd6336 100644 --- a/docs/areatrigger_teleport.md +++ b/docs/areatrigger_teleport.md @@ -117,7 +117,7 @@ Contains all the teleport triggers definition. This table is used to complete .d ### id -This is the trigger identifier, it must match with the one from [AreaTrigger.dbc](AreaTrigger) +This is the trigger identifier, it must match with the one from [AreaTrigger.dbc](DBC-AreaTrigger) ### name diff --git a/docs/phase_area.md b/docs/phase_area.md index 5ea22d8..d839c38 100644 --- a/docs/phase_area.md +++ b/docs/phase_area.md @@ -60,7 +60,7 @@ Each line holds one Zone or Area with one phaseId and a description.  Each line ### AreaId -This is the Zone or Area identifier, see [AreaTrigger.dbc](AreaTrigger) +This is the Zone or Area identifier, see [AreaTrigger.dbc](DBC-AreaTrigger) ### PhaseId 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