Skip to content

Chore: Update SmartAI and Conditions defines and comments.#77

Open
TheSCREWEDSoftware wants to merge 3 commits into
azerothcore:masterfrom
TheSCREWEDSoftware:Update_Events
Open

Chore: Update SmartAI and Conditions defines and comments.#77
TheSCREWEDSoftware wants to merge 3 commits into
azerothcore:masterfrom
TheSCREWEDSoftware:Update_Events

Conversation

@TheSCREWEDSoftware
Copy link
Copy Markdown

SmartEvent.class.php

Added from AC

EVENT_NEAR_PLAYERS            = 101
EVENT_NEAR_PLAYERS_NEGATION   = 102
EVENT_NEAR_UNIT               = 103
EVENT_NEAR_UNIT_NEGATION      = 104
EVENT_AREA_CASTING            = 105
EVENT_AREA_RANGE              = 106
EVENT_SUMMONED_UNIT_EVADE     = 107
EVENT_WAYPOINT_REACHED        = 108
EVENT_WAYPOINT_ENDED          = 109
EVENT_IS_IN_MELEE_RANGE       = 110

Renames from old TC to current AC (same ID)

EVENT_WAYPOINT_START (39) -> EVENT_ESCORT_START
EVENT_WAYPOINT_REACHED (40) -> EVENT_ESCORT_REACHED
EVENT_WAYPOINT_PAUSED (55) -> EVENT_ESCORT_PAUSED
EVENT_WAYPOINT_RESUMED (56) -> EVENT_ESCORT_RESUMED
EVENT_WAYPOINT_STOPPED (57) -> EVENT_ESCORT_STOPPED
EVENT_WAYPOINT_ENDED (58) -> EVENT_ESCORT_ENDED
EVENT_AC_WAYPOINT_REACHED (108) -> EVENT_WAYPOINT_REACHED
EVENT_AC_WAYPOINT_ENDED (109) -> EVENT_WAYPOINT_ENDED

Un-used TC (exits in aowow but not in AC)

EVENT_ON_SPELL_CAST    = 83
EVENT_ON_SPELL_FAILED  = 84
EVENT_ON_SPELL_START   = 85
EVENT_ON_DESPAWN       = 86

SmartAction.class.php

Added from AC

ACTION_MOVE_TO_POS_TARGET              = 201
ACTION_EXIT_VEHICLE                    = 203
ACTION_SET_UNIT_MOVEMENT_FLAGS         = 204
ACTION_SET_COMBAT_DISTANCE             = 205
ACTION_DISMOUNT                        = 206
ACTION_AC_SET_HOVER                    = 207
ACTION_ADD_IMMUNITY                    = 208
ACTION_REMOVE_IMMUNITY                 = 209
ACTION_FALL                            = 210
ACTION_SET_EVENT_FLAG_RESET            = 211
ACTION_STOP_MOTION                     = 212
ACTION_NO_ENVIRONMENT_UPDATE           = 213
ACTION_ZONE_UNDER_ATTACK               = 214
ACTION_LOAD_GRID                       = 215
ACTION_MUSIC                           = 216
ACTION_RANDOM_MUSIC                    = 217
ACTION_CUSTOM_CAST                     = 218
ACTION_CONE_SUMMON                     = 219
ACTION_PLAYER_TALK                     = 220
ACTION_VORTEX_SUMMON                   = 221
ACTION_CU_ENCOUNTER_START              = 222
ACTION_AC_DO_ACTION                    = 223
ACTION_ATTACK_STOP                     = 224
ACTION_SET_GUID                        = 225
ACTION_SCRIPTED_SPAWN                  = 226
ACTION_SET_SCALE                       = 227
ACTION_SUMMON_RADIAL                   = 228
ACTION_PLAY_SPELL_VISUAL               = 229
ACTION_FOLLOW_GROUP                    = 230
ACTION_SET_ORIENTATION_TARGET          = 231
ACTION_WAYPOINT_START                  = 232
ACTION_WAYPOINT_DATA_RANDOM            = 233
ACTION_MOVEMENT_STOP                   = 234
ACTION_MOVEMENT_PAUSE                  = 235
ACTION_MOVEMENT_RESUME                 = 236
ACTION_WORLD_SCRIPT                    = 237
ACTION_DISABLE_REWARD                  = 238
ACTION_SET_ANIM_TIER                   = 239
ACTION_SET_GOSSIP_MENU                 = 240
ACTION_SUMMON_GAMEOBJECT_GROUP         = 241

Un-used TC (exits in aowow but not in AC)

ACTION_PLAY_SPELL_VISUAL_KIT           = 137
ACTION_OVERRIDE_LIGHT                  = 138
ACTION_OVERRIDE_WEATHER                = 139
ACTION_SET_AI_ANIM_KIT                 = 140
ACTION_SET_HOVER                       = 141  (AC uses ACTION_AC_SET_HOVER = 207)
ACTION_CREATE_CONVERSATION             = 143
ACTION_SET_IMMUNE_PC                   = 144
ACTION_SET_IMMUNE_NPC                  = 145
ACTION_SET_UNINTERACTIBLE              = 146
ACTION_ACTIVATE_GAMEOBJECT             = 147
ACTION_ADD_TO_STORED_TARGET_LIST       = 148
ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER = 149
ACTION_TRIGGER_GAME_EVENT              = 150
ACTION_DO_ACTION                       = 151  (AC uses ACTION_AC_DO_ACTION = 223)

SmartTarget.class.php

Added from AC

TARGET_PLAYER_WITH_AURA       = 201
TARGET_RANDOM_POINT           = 202
TARGET_ROLE_SELECTION         = 203
TARGET_SUMMONED_CREATURES     = 204
TARGET_INSTANCE_STORAGE       = 205
TARGET_FORMATION              = 206

Un-used TC (exists in aowow but not in AC)

TARGET_CLOSEST_UNSPAWNED_GO   = 30

Conditions.class.php

Added from AC

QUEST_SATISFY_EXCLUSIVE       = 101
HAS_AURA_TYPE                 = 102
WORLD_SCRIPT                  = 103
AI_DATA                       = 104
PLAYER_QUEUED_RANDOM_DUNGEON  = 105
UNIT_IN_COMBAT                = 106

Source types added from AC (previously commented out)

SRC_PLAYER_LOOT_TEMPLATE      = 28
SRC_CREATURE_RESPAWN          = 29

### Un-used TC (exists in aowow but not in AC)

GAMEMASTER = 50


---

Added bunch of english strings for the new additions and/or changes

@TheSCREWEDSoftware
Copy link
Copy Markdown
Author

CC @Helias are you able to let the workflow see if properly builds? and/or if generates any errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant