Commit Graph

766 Commits

Author SHA1 Message Date
Aokromes
4ce638e897 Core/Mails: Fixed mail_items entries being left in database after deleting expired mails 2017-10-09 22:09:59 +02:00
Aokromes
8b6261c809 Core/Misc: Fix static analysis issues 2017-07-16 19:05:26 +02:00
Aokromes
5c4153ba98 Core/OutdoorPvP: refactor using Position and Quat to pack parameters
- Moved statics to cpp
- Save scriptids into an array
2017-06-12 17:40:47 +02:00
ariel-
2e3197f944 Core/Globals: add more AIName and MovementType checks to ObjectMgr
- Ninja fix AI factories (restores prev behaviour of not selecting stuff with PERMIT_BASE_NO)

Closes #19831
2017-06-02 10:23:44 +02:00
Aokromes
d9f72fdb88 Core/Globals: fix array out of bounds crash on loading npc_text_locale 2017-05-07 10:35:16 +02:00
Aokromes
9bdf7bc7f0 Core/Misc: Update locales_gossip_menu_option to simple system 2017-05-04 17:57:22 +02:00
Aokromes
46d73126dd Core/Misc: Update locales_npc_text to simple system 2017-05-04 17:21:32 +02:00
Aokromes
52b6941616 typo fix, fixes crash on windows 2017-04-27 04:17:11 +02:00
Aokromes
7e2d95e59e typo fix 2017-04-24 03:05:08 +02:00
Aokromes
a3a86c500a Core/Globals: check localeName on loading 2017-04-24 02:50:39 +02:00
Aokromes
d17e694c52 Core/Misc: Update locales_item to simple system 2017-04-24 02:45:53 +02:00
Aokromes
88696506ec Core/Misc: Update locales_quest to simple system 2017-04-24 02:39:39 +02:00
Aokromes
543337a6f5 Core/Misc: Update locales_broadcast_text to simple system 2017-04-24 02:05:45 +02:00
Aokromes
7c16e39bd5 Missing part 2017-04-18 17:33:37 +02:00
Aokromes
6d25d89e2b Core/Misc: Sync database schema with master 2017-04-18 14:11:21 +02:00
Aokromes
6fef0d2eb2 Core/Trainers: Fix Multiprofession Trainers
By Malcrom, closes #61
2017-04-16 16:01:27 +02:00
Aokromes
adae2fec26 Ensure that all actions are compared to fixed point in time (ie. world update start) 2017-04-14 15:02:49 +02:00
Aokromes
92d9bac16d Core/Misc: Remove incorrect check 2017-04-09 18:37:35 +02:00
Aokromes
2f1d6d5597 Core/Scripts: Fix a logic fail that overriden the script of an entity…
… that changed entry
2017-04-01 07:11:25 +02:00
ariel-
a3e41a3df6 Core/Global: reserve storage for script names vector 2017-04-01 07:06:02 +02:00
Aokromes
55914733a0 Core/Scripts: Add support for spawn specific C++ scripts
By Krudor.
2017-03-25 10:27:51 +01:00
Aokromes
0016baf3bd DB/Misc: Sync some database fields no with 4.3.4 2017-03-20 14:01:02 +01:00
Aokromes
f430d2fd31 Core/Misc: added loading error message for SCRIPT_COMMAND_PLAY_ANIMKIT
SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scripts
2017-02-19 09:46:43 +01:00
Aokromes
bc19916d79 Sync with 3.3.5a 2017-02-10 06:45:33 +01:00
Rushor
042633b10e Game/Mapscripts: Implement SCRIPT_COMMAND_MOVEMENT 2017-02-10 05:24:53 +01:00
Aokromes
8bb777ef5c Few small optimizations here and there 2017-02-01 16:51:21 +01:00
Aokromes
719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
Aokromes
8b5acac9fa Core/Misc: Trow some consts and nullptr 2016-11-02 06:15:49 +01:00
Aokromes
6d49df2635 Core/GameObject: added possibilty for gameobjects to contain money loot 2016-11-02 05:47:52 +01:00
ariel-
00b7cabd80 Core/Globals: abort server startup if there are wrong factions in DB
Closes #18127
2016-11-02 02:46:39 +01:00
Aokromes
16c340fdb6 more compile fix try 2016-10-24 17:05:32 +02:00
Aokromes
c5d2bc544f And another compile fix try 2016-10-24 16:59:27 +02:00
Aokromes
5cbd6cfecf compile fix, now yes.
Never leave aokromes to try to code c++
2016-08-21 03:05:02 +02:00
Aokromes
d297f013f1 warning fixes and partial revert 2016-08-21 02:28:29 +02:00
Malcrom
cadaf222e7 Core/Creatures: Implemented loading animkits from creature_addon (#17834) 2016-08-21 00:14:15 +02:00
treeston
3755efcb8e Core/ObjectMgr: I knew I missed something. 2016-08-20 11:10:02 +02:00
treeston
3d9a11d744 Core/ObjectMgr: Follow up on 628792f to remove some superfluous warnings. 2016-08-20 11:03:12 +02:00
ariel-
dbe992b25b Core/ObjectMgr: added some more sanity checks to creature templates
- Extra: throwed semicolons around
- Clarified meaning for a vehicleId check (what it said didn't correspond to what was actually checked)
2016-08-20 06:20:11 +02:00
ariel-
2ea1adc544 Core/Globals: delete another synch query using CharacterInfo map 2016-08-18 09:48:01 +02:00
Naios
785c17381c Core/Scripting: Fix loading of spell/aurascripts
* Broken since 9cc97f226d
* There is still a crash when using lazy unloading which I
  will fix in a later commit (this commit should fix at least
  the static build and normal usage of the dynamic build).
* Closes #16948
2016-08-10 08:52:30 +02:00
Naios
e23d063f5a Core/Game: Rewrote the ScriptMgr to support script reloading.
* Finally this commit enables dynamic script hotswapping
  and finished the PR #15671.
* Split the storage layout to use optimized storages
  for database bound and unbound scripts.
* Add several unload workers to reload scripts correctly
  -> Requires further investigation.
* Fixes memory leaks in ScriptMgr when dropping invalid scripts.
* Fixes VehicleScripts
* Makes OutdoorPvP scripts reloadable
* Makes InstanceMapScripts reloadable
* Makes CommandScripts reloadable
2016-08-10 08:40:44 +02:00
Aokromes
436cdfd7c9 Core/Game: Move scheduled map scripts counter methods into MapManager
* Since those have nothing to do with core scripts and are
  not wished inside the ScriptMgr
2016-08-10 06:40:03 +02:00
ariel-
879992e502 Update ObjectMgr.cpp 2016-08-07 21:52:26 +02:00
Aokromes
b51adac24c Core/GameObjects: Gameobject rotation (from cmangos/mangos-wotlk@2bcbc0f)
cmangos/mangos-wotlk@0fe88f3: [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing
cmangos/mangos-wotlk@060dfb7: [11667] Implement transport path rotation
cmangos/mangos-wotlk@565f52c: [11806] A bit gameobject code refactoring
cmangos/mangos-wotlk@6874951: [11807] Add gameobject_addon table
2016-07-30 15:51:23 +02:00
ariel-
ceb2b94e0b Core/Quests: cache areatrigger relationship in Quest object and send client correct data 2016-07-23 05:19:08 -03:00
SnapperRy
836b9180fe Core/Mail: implement a way to specify NPC sender for mails when they should be different from the quest ender (#17601) 2016-07-20 19:46:37 +02:00
Aokromes
8e2b32f55b Core/Misc: Better description for a log 2016-07-20 18:26:42 +02:00
Aokromes
11636faadf Core: define CREATURE_FAMILY_NONE to avoid magic numbers in code 2016-07-20 12:49:38 +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
ariel-
cc0a993034 Core/Misc: remove two synch queries and replace them with CharacterInfo cache 2016-07-17 14:11:56 +02:00