Kittnz
a2e01f386a
Core/SmartScript: update ACTION_GO_SET_GO_STATE
...
GO_STATE_ACTIVE = 0, // show in world as used and not reset (closed door open)
GO_STATE_READY = 1, // show in world as ready (closed door close)
GO_STATE_ACTIVE_ALTERNATIVE = 2 // show in world as used in alt way and not reset (closed door open by cannon fire)
Credits to Sunwell
2016-12-28 16:10:44 +01:00
ariel-
c59f8c0693
Core/SAI: restore deleted line in 28050f338dfc66e0c40b6a3915bf96e38e0613e5
...
Field left uninitialized. Caused weird evade behaviour
2016-12-06 11:07:00 +01:00
Aokromes
f6160d4d0b
Core/Movement: Smooth movement
...
Implement smooth movement for all waypoint pathing and escortai
2016-11-27 16:59:31 +01:00
SnapperRy
477ba4e439
Core/SAI: reset event phase when calling SMART_ACTION_CALL_SCRIPT_RESET.
...
Now it really does what it says on the tin.
2016-11-02 03:14:26 +01:00
SnapperRy
fe4da7ede8
Core/SAI: remove wrong DB errors.
...
It is normal to have events applicable only to certain instance difficulties.
Closes #18082 .
2016-11-02 02:50:57 +01:00
SnapperRy
d77b366703
Core/Quest: do not set a quest to failed if it's rewarded or has no status at all (not taken).
2016-10-24 13:47:32 +02:00
SnapperRy
4fc4c81e89
Core/SAI: always use DespawnOrUnsummon() for SMART_ACTION_FORCE_DESPAWN.
...
SmartAI uses that same method internally, so there's no need to handle it in two different ways.
Does not affect functionality, but prevents useless SAI error log in case the target creature is not using SAI.
2016-10-24 13:27:26 +02:00
ariel-
9b74762644
Core/SmartScripts: fixup SMART_EVENT_FLAG_WHILE_CHARMED behaviour to only mean charmed creatures ( #17738 follow-up)
...
Unit::IsControlledByPlayer is a expected value for TempSummons (like some triggers used in quests, summoned by spells).
Previous logic broke a lot of quests which use triggers to do stuff.
Allow JustSummoned and events linked from other events with flag set also in charmed (prevents breaking event chains)
Allow vehicles (needed for vehicles with SmartAI, eg Iron Rune Constructs and You: Rocket Jumping)
2016-10-24 13:18:45 +02:00
ariel-
947086fb54
Core/SmartAI: There's a function for that
2016-10-24 11:10:26 +02:00
SnapperRy
76d8a6e636
Core/SAI: don't reset event phase when npc evades/resets.
...
The scripts themselves should take care of that.
2016-10-24 11:06:13 +02:00
treeston
c1cc7e0a36
Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB.
2016-09-20 12:54:54 +02:00
SnapperRy
96f4cb4799
Core/SmartAI: do not target player's group for SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS.
...
SMART_TARGET_INVOKER_PARTY or SMART_ACTION_CALL_GROUPEVENTHAPPENS should instead be used to achieve this functionality.
2016-09-14 21:03:44 +02:00
treeston
219fd84f1e
Derp. Build fix.
2016-09-09 19:57:12 +02:00
treeston
2e896a15dd
AI/SmartAI: Fix an issue where SmartAI creatures would not properly follow their owner on evade. Also fix a bug where creatures with INHABIT_ROOT would get stuck in evade under certain conditions.
...
This allows us to fix quest 12261 (No Place to Run). Closes #16291 .
2016-09-09 19:56:30 +02:00
treeston
2fbb01eebd
Core/SmartScripts: Add missing break, 5f43e7b follow-up.
2016-09-03 01:21:26 +02:00
treeston
9da4e304ae
Scripts/SmartScripts: Fix charmed behavior for SmartAI. For real this time.
...
- Core AI logic will no longer issue attack/movement commands while under player control.
- Add new SMART_EVENT_FLAG_WHILE_CHARMED (0x200). Any event without this flag won't run while charmed.
- Add SMART_EVENT_FLAG_WHILE_CHARMED to existing actions, except a select subset (movement, talking, and nontriggered casts, pretty much).
2016-09-03 01:21:03 +02:00
treeston
109d87d3c3
Entities/Gossip: The Big One™ that gets rid of all uses of The Bad™ and The Ugly™, e.g. gossip preprocessor macros, and replaces them with the new-and-shiny gossip functions.
2016-08-31 08:39:33 +02:00
ariel-
9203ab1004
Core/SmartAI: fix warning reported by VS2015
2016-08-24 10:26:03 +02:00
SnapperRy
ac4ceed1da
Core/SmartAI: allow SMART_TARGET_OWNER_OR_SUMMONER to target a temporary summon's summoner, too ( #17851 )
...
Core/SmartAI: allow SMART_TARGET_OWNER_OR_SUMMONER to target a temporary summon's summoner, too
2016-08-24 10:24:18 +02:00
SnapperRy
55757c0d68
Core/SmartAI: add param2 to SMART_ACTION_UPDATE_TEMPLATE, allowing to specify if creature's level should remain the same between entry updates.
...
A value of 0 (default) forces the creature to keep its current level between entry updates.
Fixes #16371
2016-08-24 10:23:34 +02:00
treeston
5b819fa0f1
AI/SmartScripts: SMART_ACTION_ADD_QUEST -> SMART_ACTION_OFFER_QUEST. Open quest offer instead of adding straight to log - old behavior can be requested using action_param2. Closes #17735 .
2016-08-20 06:22:19 +02:00
treeston
7b036961f3
AI/SmartScripts: Add param3 to SMART_ACTION_CAST and SMART_ACTION_INVOKER_CAST that allows specific triggered flags to be set (rather than all-or-nothing). Ignored if SMARTCAST_TRIGGERED is not set.
2016-08-20 06:19:54 +02:00
treeston
0e47f961c9
AI/SmartScripts: Add SMART_ACTION_DISABLE_EVADE (117).
2016-08-20 06:19:41 +02:00
treeston
c2fd73c95d
Core/SmartScripts: Add SMART_TARGET_LOOT_RECIPIENTS. Does what it says on the tin.
...
Use this new target type to fix The Rider of Blood, The Rider of Frost, The Rider of the Unholy. Closes #17817 .
2016-08-20 06:19:26 +02:00
Aokromes
7ef9b246b5
CMake: Use inherited dependencies in scripts
...
* Removes the circular dependency between game <-> scripts
2016-08-10 00:33:48 +02:00
Aokromes
5302d9112b
Core/Game: Converted the game library to a shared library.
...
* There is still the possibility to static link against game.
2016-08-08 20:11:29 +02:00
treeston
f8862f19f5
Scripts/SmartAI: Some clean-up work:
...
- NULL -> nullptr
- Rename "AssistPlayerInCombat(who)" to "AssistPlayerInCombatAgainst(who)" to reflect what the method actually does
- Code style
No functionality was changed.
2016-08-05 18:33:37 +02:00
ariel-
30d4f70533
Core/Entities: debloat SummonGameObject parameter list using proper wrappers and enable GO rotation in scripts
...
- There's still an overload allowing for x, y, z, o to be passed directly
- Fixed default animstate for GameObject creation in many places, it should be 255, not 100 (checked in sniffs)
(cherry picked from commit 62bfee37cb21584cef631dda428feaf5eb829cda)
Conflicts:
src/server/game/Entities/GameObject/GameObject.cpp
src/server/game/Entities/Object/Object.cpp
src/server/game/Spells/SpellEffects.cpp
src/server/scripts/Commands/cs_gobject.cpp
src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
src/server/scripts/Kalimdor/zone_feralas.cpp
2016-08-01 01:23:47 -03:00
treeston
d4de0ab053
AI/SmartScripts: Add action_param3 "disablePathfinding" to SMART_ACTION_MOVE_TO_POS (69).
2016-07-22 18:47:20 +02:00
Aokromes
4e31162a42
Core/Scripts: Extended SMART_ACTION_SET_INST_DATA to also set BossStates. ( #16739 )
...
Scripts/Dire Maul: Initialize boss states array so it may be called from SmartAI. (Ref #6429 )
2016-07-20 16:44:24 +02:00
Snapper
7185ae680c
Core/SmartAI: delay SMART_ACTION_FLEE_FOR_ASSIST if creature is rooted/stunned.
...
Prevents creatures from teleporting around when fleeing while stunned/rooted.
2016-07-20 15:46:31 +02:00
Aokromes
d59e84fcb2
Core/SmartAI: Allow SMART_ACTION_FORCE_DESPAWN on no-SmartAI GameObjects
2016-07-20 15:33:33 +02:00
Aokromes
006d89310b
Core: updated creature type flags enum ( #17128 )
...
Core/Misc: Update CreatureTypeFlags enum according to TrinityCoreWiki
2016-07-20 13:47:25 +02:00
Aokromes
6e68a60e6d
Core/Unit: Do not remove auras from Pets and Guardians after evading
2016-07-19 16:21:41 +02:00
Aokromes
5d835e4526
Core/SmartScripts: Improve SMART_EVENT_DISTANCE_CREATURE so it can be used with SMART_TARGET_ACTION_INVOKER
2016-07-19 16:05:20 +02:00
Aokromes
a71da1c603
Entities/Unit: Finally fix no-path evasion.
...
- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.
- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.
- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.
2016-07-19 13:33:04 +02:00
Aokromes
3f0c7f6b2f
Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches
2016-07-19 12:02:52 +02:00
Aokromes
1f08b4e7d9
Core/SmartAI: change SMART_ACTION_RISE_UP (114) to SMART_ACTION_MOVE_OFFSET and implement offset movement via target fields.
2016-07-15 18:49:06 +02:00
treeston
5671f50933
CreatureAI: Adjust AI behavior when a charm ends. OnCharmed will be invoked on the creature's base (non-charmed) AI, allowing the AI to react to the creature no longer being charmed.
2016-05-12 09:16:31 +02:00
Aokromes
303082546b
Sync with 3.3.5a core
2016-05-03 12:50:49 +02:00
Aokromes
2c44f9ed2c
Core/SmartAI: Correct startup log
2016-04-26 02:08:17 +02:00
ariel-
65aec5f8f7
Merge remote-tracking branch 'tc/3.3.5' into 4.3.4
...
Note: additional hand-picked ports from 6.x to fix build
Conflicts:
sql/updates/world/2016_02_22_00_world.sql
sql/updates/world/2016_02_22_01_world.sql
sql/updates/world/2016_02_22_02_world.sql
sql/updates/world/2016_03_07_00_world.sql
src/server/authserver/Realms/RealmList.cpp
src/server/authserver/Realms/RealmList.h
src/server/authserver/Server/AuthSession.cpp
src/server/game/Accounts/AccountMgr.cpp
src/server/game/AuctionHouse/AuctionHouseMgr.cpp
src/server/game/Chat/Chat.cpp
src/server/game/Conditions/ConditionMgr.cpp
src/server/game/Conditions/ConditionMgr.h
src/server/game/Entities/Player/Player.cpp
src/server/game/Handlers/CharacterHandler.cpp
src/server/game/Handlers/MiscHandler.cpp
src/server/game/Scripting/ScriptLoader.cpp
src/server/game/Scripting/ScriptLoader.h
src/server/game/Server/WorldSession.cpp
src/server/game/Server/WorldSocket.cpp
src/server/game/World/World.cpp
src/server/game/World/World.h
src/server/scripts/CMakeLists.txt
src/server/scripts/Commands/cs_gm.cpp
src/server/scripts/Commands/cs_misc.cpp
src/server/scripts/Commands/cs_rbac.cpp
src/server/scripts/Commands/cs_ticket.cpp
src/server/scripts/Commands/cs_wp.cpp
src/server/scripts/EasternKingdoms/CMakeLists.txt
src/server/scripts/EasternKingdoms/zone_burning_steppes.cpp
src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp
src/server/scripts/Kalimdor/CMakeLists.txt
src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp
src/server/scripts/Kalimdor/zone_orgrimmar.cpp
src/server/scripts/OutdoorPvP/CMakeLists.txt
src/server/scripts/Spells/spell_dk.cpp
src/server/scripts/Spells/spell_hunter.cpp
src/server/shared/CMakeLists.txt
src/server/worldserver/CMakeLists.txt
src/server/worldserver/Main.cpp
src/tools/mmaps_generator/CMakeLists.txt
2016-03-11 18:32:07 -03:00
MitchesD
8e152e0d4a
Merge pull request #16523 from tkrokli/smart_action_set_corpse_delay
...
[3.3.5][6.x]Core/SmartScript: create SMART_ACTION_SET_CORPSE_DELAY
2016-03-03 23:16:59 +01:00
ariel-
8bc477a2de
Merge remote-tracking branch 'tc/3.3.5' into 4.3.4
...
Conflicts:
sql/base/characters_database.sql
sql/updates/world/2016_01_26_00_world.sql
sql/updates/world/2016_01_31_00_world.sql
sql/updates/world/2016_02_07_00_world.sql
src/server/authserver/Server/AuthSession.cpp
src/server/database/Database/Implementation/LoginDatabase.cpp
src/server/database/Database/Implementation/LoginDatabase.h
src/server/game/AI/ScriptedAI/ScriptedCreature.cpp
src/server/game/AI/ScriptedAI/ScriptedCreature.h
src/server/game/Achievements/AchievementMgr.cpp
src/server/game/Chat/Chat.cpp
src/server/game/DataStores/DBCStores.cpp
src/server/game/DataStores/DBCStructure.h
src/server/game/DataStores/DBCfmt.h
src/server/game/Entities/Player/Player.cpp
src/server/game/Entities/Unit/Unit.cpp
src/server/game/Globals/ObjectMgr.cpp
src/server/game/Handlers/AuctionHouseHandler.cpp
src/server/game/Handlers/MailHandler.cpp
src/server/game/Handlers/MovementHandler.cpp
src/server/game/Server/WorldSocket.cpp
src/server/game/Server/WorldSocket.h
src/server/game/Spells/Auras/SpellAuraEffects.cpp
src/server/game/Spells/SpellEffects.cpp
src/server/game/Spells/SpellMgr.cpp
src/server/scripts/Spells/spell_druid.cpp
src/server/scripts/Spells/spell_generic.cpp
src/server/scripts/Spells/spell_hunter.cpp
src/server/scripts/Spells/spell_rogue.cpp
src/server/scripts/Spells/spell_shaman.cpp
src/server/shared/Networking/AsyncAcceptor.h
src/tools/map_extractor/CMakeLists.txt
src/tools/map_extractor/System.cpp
src/tools/map_extractor/adt.h
src/tools/mmaps_generator/MapBuilder.cpp
2016-02-21 07:02:53 -03:00
treeston
d4184065b6
I don't like drycoding. It's coarse and rough and irritating and it gets everywhere.
2016-02-20 03:20:43 +01:00
treeston
ab194d5ae3
Incorrect AI aggression as a consequence of the LineOfSight change, episode three, revenge of the special AIs. Also, hopefully the last. No original trilogy please.
2016-02-20 03:13:11 +01:00
treeston
cfed2d7a3d
Merge remote-tracking branch 'Eliminationzx/FixJumpDestOrientation' into 3.3.5 (PR #16450 ) with some minor CS adjustments
2016-02-10 17:41:19 +01:00
Elimination
ff80f249a7
Fix jump dest orientation
2016-02-10 20:25:29 +07:00
Rushor
0d6b8c0d3a
Core/SmartScript: create SMART_ACTION_SET_CORPSE_DELAY
...
by Vincent-Michael, updates #16488
New smart action SMART_ACTION_SET_CORPSE_DELAY:
- Allows setting the delay of corpse decay time in SmartScript
(PR opened on request from Rushor)
Constructive feedback is welcome.
2016-02-09 18:56:08 +01:00
Shauren
aa432db36d
Core/Maps: Changed the way area data is stored in maps, it now uses ID field from AreaTable.dbc instead AreaBit used for exploration marker (and is not unique anymore on top of simply being stupidly confusing)
...
Note: Extracting maps is required
(cherry picked from commit db0b8bf24e2b8eb87e6aed7b031ebe138717403d)
# Conflicts:
# src/server/game/Achievements/AchievementMgr.cpp
# src/server/game/Chat/Chat.cpp
# src/server/game/Conditions/ConditionMgr.cpp
# src/server/game/DataStores/DBCStores.cpp
# src/server/game/DataStores/DBCStores.h
# src/server/game/DataStores/DBCfmt.h
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Globals/ObjectMgr.cpp
# src/server/game/Handlers/BattleGroundHandler.cpp
# src/server/game/Handlers/MiscHandler.cpp
# src/server/game/Maps/Map.cpp
# src/server/game/Spells/Spell.cpp
# src/server/game/Spells/SpellEffects.cpp
# src/server/scripts/Commands/cs_go.cpp
# src/server/scripts/Commands/cs_group.cpp
# src/server/scripts/Commands/cs_lookup.cpp
# src/server/scripts/Commands/cs_misc.cpp
# src/tools/map_extractor/System.cpp
# src/tools/mmaps_generator/TerrainBuilder.cpp
2016-02-09 18:19:28 +01:00