Commit Graph

522 Commits

Author SHA1 Message Date
blub bf7175ee83 Merge pull request #15731 from ShinDarth/toscri
Convert the Duel Cooldown Reset feature to scripts
(cherry picked from commit 5c449b50aa)
2015-11-07 00:38:05 +01:00
Incorrect b022724458 Core/Misc: Remove unneeded files
These 3 BlackRock Mountain scripts can be removed from source:

- boss_anubshiah.cpp
- boss_gorosh_the_dervish.cpp
- boss_grizzle.cpp

They already removed from the creatures in DB, and are currently causing
DBErrors.

(cherry picked from commit d98037a75d)
2015-11-06 13:00:21 +01:00
Naios 30c421bf57 Core/ScriptMgr: Improve commit 155a289f05 2015-11-04 21:46:26 +01:00
Naios 155a289f05 Core/ScriptMgr: Fix "conditional expression is constant" warning.
* introduced in commit 12d1993994
2015-11-04 21:16:39 +01:00
Naios b7b49fe35f Core/Globals: Use std::string rather than char* to pass script names around. 2015-11-04 20:52:13 +01:00
Naios 12d1993994 Core/ScriptMgr: Replace IsDatabaseBound() methods through traits. 2015-11-04 20:51:56 +01:00
Shauren b09e63e9de Core/Conditions: Optimizations part 3 removed copying condition containers all over the place 2015-10-25 13:20:28 +01:00
Shauren 2d942ddcc5 Core/Commands: Refactored chat command script hook, fixes a crash when building with gcc 5
Closes #15616
Closes #15740
2015-10-22 20:26:56 +02:00
StormBytePP 0bed9d56cb Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert 2015-09-21 15:17:05 +02:00
Vincent-Michael 2e586bc520 Core: Header cleanup in game/*/*.cpp 2015-07-25 20:18:42 +02:00
Shauren 66d8ccde7f Core/PacketIO: Fixed chat packet building in CreatureTextMgr
Closes #14871
2015-06-15 00:25:18 +02:00
Shauren cb854a2b7b Core/Maps: Removed dbguid/spawnid grid searchers, they are no longer neccessary 2015-06-08 17:48:21 +02:00
DDuarte e43a6b373a Merge pull request #14613 from ariel-/shathalls
Fixed some issues with PR #14157
(cherry picked from commit 82a6cbcad4)

Included coverity fix of 25881ca95f (DD)

Conflicts:
	src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp
2015-06-01 02:31:32 +01:00
Gacko 007ab5b801 Fix warning 2015-05-03 12:17:58 +02:00
Shauren ca83e14f8b Core/Entities: Reworked guid scopes
* Added ObjectGuid traits to easily access whether guid type can be generated globally (ObjectMgr) or not
* This adds separate (per map) guid sequences depending on object type
* Ported map object container from cmangos/mangos-wotlk@a2d396eb0b
* Added type container visitor for TypeUnorderedMapContainer
* Implemented helper function to erase unique pairs from multimap containers
* Moved object storage of all objects except players and transports to map level
* Added containers linking database spawn id with creature/gameobject in world
* Renamed DBTableGuid to spawnId
* Added a separate spawn id sequence generator for creatures and gameobjects - this will be used in db tables
* Moved building SMSG_UPDATE_OBJECT - updatefields changes broadcast to map update
2015-04-28 21:19:46 +02:00
Golrag d999caee67 Core/AreaTrigger: Added 'bool entered' to OnTrigger 2015-04-18 11:22:30 +02:00
et65 cffcf7ef46 Core/Guilds: Fix crash on kicking offline player of a guild. 2015-04-06 17:42:16 +02:00
Shauren 76cbf05a2e Misc: Fixed license header formatting 2015-04-04 13:11:32 +02:00
MitchesD f6428df949 Scripts/Misc: sync with 3cc305138c
adfd8a6 - Scripts/Mulgore: The Plains Vision - Move Corescrript to SAI
c21a600 - Delete zone_mulgore.cpp
87f40a5 - Scripts/Kalimdor: Remove Mulgorescripts
8904a94 - Scripts/The Barrens: Add missing Text for 'The Escape'
cfc5fb2 - DB/Misc: Fix a few startup errors from recent Updates (Script part)
2015-03-20 20:07:25 +01:00
Carbenium c68449f49e Core/Emote: Fix an issue with EMOTE_STATE_READ, which persisted after closing the map 2015-03-13 22:44:23 +01:00
Naios 9a61049f88 Core/Game: Fix some issues detected by static analysis.
* Possible inefficient checking for 'list' emptiness.

* Variable '_scheduledScripts' is assigned in constructor body.
  Consider performing initialization in initialization list.

* Variable 'Text' is assigned in constructor body.
  Consider performing initialization in initialization list.

* Possible inefficient checking for 'm_loadedScripts' emptiness.
2015-03-11 08:53:13 +01:00
Shauren e15ba34444 Core/Misc: Cleaned up data truncation warnings 2015-03-08 22:04:34 +01:00
MitchesD 02ccf53ad1 Scripts/Nexus: commanders converted from SAI to C++
(cherry picked from commit 5009d67f0c)
2015-03-07 11:49:03 +01:00
Kinzcool b21c346658 Core/Misc: Implemented leveling/killing experience loading from gtOCTLevelExperience.dbc
* Updated the xp formula to Warlords of Draenor
2015-01-16 21:46:00 -05:00
Vincent-Michael ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
Intel 4825832c85 Merge branch '6.x' into Spells
Conflicts:
	src/server/game/DataStores/DBCStores.h
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Server/Protocol/Opcodes.cpp
	src/server/scripts/Spells/spell_druid.cpp
2014-12-07 23:20:52 +02:00
joschiwald 9cda85a388 Fixed build 2014-12-06 00:19:12 +01:00
joschiwald cc4ebdbe05 Core/Scripts: log ScriptNames assigned in database without core script 2014-12-05 23:55:06 +01:00
Rat 2144d6c851 Core/Spells: core now builds without scripts project, still not stable 2014-11-24 18:57:49 +01:00
Rat ac0ff1fc9b Merge branch 'dbc' of https://github.com/Intel/TrinityCore into Intel-dbc
Conflicts:
	src/server/game/DataStores/DBCStores.cpp
	src/server/game/DataStores/DBCStructure.h
	src/server/game/Events/GameEventMgr.cpp
2014-11-10 15:18:01 +01:00
Mihapro e5e8da85a1 Scripts/Instance: The Stonecore
(cherry picked from commit 50bf6cad6a6bf1e4190a492c3a88316d6d831656)
2014-11-08 19:30:51 +00:00
Intel 5f2b5a325b Core/DataStores: Updated AreaTrigger.dbc struct 2014-11-06 01:13:06 +02:00
Intel e1cb43e831 Core/DataStores: Fixed build after rename 2014-11-05 23:33:56 +02:00
Shauren 15fbb6f46f Core/Entites: Updated GUID format 2014-10-29 21:13:21 +01:00
DDuarte 07a640de0d Core: Fix warnings, mostly wrong printf formatters 2014-10-27 21:56:44 +00:00
Shauren 7afab9f783 Core/Entities: Updated HighGuid values 2014-10-27 12:03:35 +01:00
Shauren 9e1930959d Core/Entities: Changed object lowguid to uint64 2014-10-26 02:57:28 +02:00
Shauren a363c88f03 Core/Guilds: Fifth part of converting int to bigint guids in database 2014-10-25 15:04:38 +02:00
Shauren 76f1f85d8b Core/Entities: Second part of required database changes for migrating guids to 128 bit - all fields storing lowguid must be extended to uint64 2014-10-23 21:34:03 +02:00
Shauren cffbcea877 Core/Entities: Sixth part of removing GetGUIDLow() uses 2014-10-22 23:31:10 +02:00
Shauren 034561792c Core/Entities: Second batch of removing implicit conversions of ObjectGuid to uint64 2014-10-21 20:27:00 +02:00
DDuarte f3f81f6b0b Merge remote-tracking branch 'origin/master' into 4.3.4 2014-09-29 19:29:54 +01:00
jackpoz 4ed3254aa8 Core/Scripts: Fix invalid memory write
Fix invalid memory write caused by calling "delete this;" in a base class constructor.
2014-09-29 20:12:03 +02:00
Vincent-Michael 977b5f41e9 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4 2014-09-29 19:23:52 +02:00
joschiwald c34af1d60b Core/Scripts: fixed memory leak caused by unassigned scripts in db 2014-09-29 19:03:04 +02:00
Vincent-Michael da91ae1f22 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
	src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp
	src/server/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp
	src/server/scripts/Spells/spell_dk.cpp
	src/server/scripts/Spells/spell_druid.cpp
	src/server/scripts/Spells/spell_shaman.cpp
	src/server/scripts/Spells/spell_warrior.cpp
2014-09-27 05:23:46 +02:00
jackpoz e77f503336 Scripts/Examples: Remove some more code related to example scripts 2014-09-22 20:25:11 +02:00
Vincent-Michael 15520e38d0 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
	sql/base/dev/world_database.sql
	src/server/game/Entities/Player/Player.h
2014-09-22 06:41:14 +02:00
Malcrom cc6e4d4608 Sripting/Blackrock Caverns: Start scripting for Blackrock Caverns 2014-09-21 19:05:59 -02:30
jackpoz 84efd8b92b Scripts/Examples: Remove outdated example scripts
Remove outdated misleading example scripts not following anymore current TC codestyle and standards. Please refer to the wiki or forum for up to date examples and documentation.
2014-09-21 22:42:50 +02:00