Commit graph

5672 commits

Author SHA1 Message Date
VladimirMangos
01f68f4187 [11188] Make sure that all WorldPersistentState objects created before pool system start.
Un-instenceable maps shared pool system state, that initilized once.
For proper initilized pools in like case need have all mon-instanceable maps states created
before it.
2011-02-19 03:47:29 +03:00
zergtmn
972c08a878 [11187] Minimize direct access to honor and arena points fields 2011-02-18 17:14:45 +05:00
VladimirMangos
49ef8edb6a [11186] Fixed tail whitespaces in pool commands code. 2011-02-18 09:32:39 +03:00
VladimirMangos
71d672062e [11185] Not use local varibale name same as function name. 2011-02-18 05:30:10 +03:00
blueboy
f5d69052e1 [11184] Allow build mangos without git repo
* Avoid cmake call fail if git binary found but
   - no git repository in current dir
   - git repository exist but no tags in repository

* Output commit hash instead most recent tag name.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-18 05:29:46 +03:00
SilverIce
d597ffe10e [11183] Use map type dependent visibility distance for gameobject, dynamicobject and corpse visibility checks
Also drop no more needed Visibility.Distance.Object config option
2011-02-18 02:09:47 +02:00
dpedroia15
0c45eee083 [11182] Add dummy effect of spell 64981
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 15:24:17 +01:00
zergtmn
57ebd5371d [11181] Small optimization for [11179] 2011-02-17 19:13:46 +05:00
virusav
06d36feed2 [11180] Add dummy effect of spell 69922
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 14:11:07 +01:00
virusav
97e6439a0f [11179] Add dummy effect of spell 50918 and script effect of 50894
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 12:38:53 +01:00
VladimirMangos
57132ab503 [11178] Catch use uint64 guid as low guid in ObjectGuid. 2011-02-17 02:55:52 +03:00
NoFantasy
47776c9b79 [11177] One more typo in DELETE from 11169_01_mangos_mangos_string.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-17 01:53:13 +03:00
virusav
cb8a56aa68 [11176] Fixed DELETE part of 11169_01_mangos_mangos_string.sql 2011-02-17 00:46:20 +03:00
Lynx3d
b883d85f37 [11175] Fix precompiled header defines so GCC can actually use it 2011-02-16 13:48:23 +01:00
VladimirMangos
24262fb3ae [11174] Missing mangos_string entries from [11169]
Its listed in sql updates but missing in mangos.sql
2011-02-16 08:30:25 +03:00
VladimirMangos
e586354cea [11173] Fixed substring search in .lookup pool 2011-02-16 05:28:44 +03:00
Schmoozerd
bbdd04d1ab [11172] Implement ACHIEVEMENT_CRITERIA_TYPE_ON_LOGIN (type 74)
Also implement new criteria requirements:
  - ACHIEVEMENT_CRITERIA_REQUIRE_NTH_BIRTHDAY
  - ACHIEVEMENT_CRITERIA_REQUIRE_KNOWN_TITLE

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-16 02:17:57 +03:00
Lynx3d
1b43c37c77 [11171] Fix build without PCH 2011-02-15 13:40:58 +01:00
NoFantasy
2ba3fe7114 [11170] Add dummy effect of spell 66390
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-15 13:26:52 +01:00
VladimirMangos
a6584c4401 [11169] Implemented pool system related commands.
.lookup pool $pooldescpart - list of pools (anywhere) with substring in description
.pool list   - list of pools with spawn in current map (only work in instances)
               Non-instanceable maps share pool system state os useless attempt get all pols at all continents.
.pool spawns - list current creatures/objects listed in pools and spawned (added to grid data, not meaning show in world).
.pool spawns #pool_id - list current creatures/objects listed in #pool_id and spawned (added to grid data, not meaning show in world).
.pool #pool_id - pool information and full list creatures/gameobjects included in pool
2011-02-15 14:43:46 +03:00
VladimirMangos
8feaf211f1 [11168] Use MapPersistentState for access to Pool System dynamic data.
* Direct store pool system dynamic data in sPoolMgr replaced by
  shared pool system data object (for all non instanceable maps)
  into WorldPersistentState, and own copies of pool system data
  object in DungeonPersistentState/BattlegroundPersistentState.
  This let have pools with object at many non-instanceable maps,
  and single map pools with unique state for each instance.

* Avoid direct global grid data modify from pool system, and use for this also
  recently added local for MapPersistentState grid spawn data.

* Implemented proper API for update pool system data in MapPersistentStates
  from GameEvent system.

* Initialize pool system state at MapPersistendState creating.
  For shared pool system state for non-instanceable maps initilized at first map state
  creating.

Now pool system propertly work in instance also!
2011-02-15 14:40:56 +03:00
VladimirMangos
9e14a0529d Update git_id not generate by default sql/updates/Makefile.am
TO DEVS: please update used git_id

Now cmake support adding completed.

* If you plan build MaNGOS at Unix/Linux then you need have
  installed cmake package and only can build mangos wiht cmake use:
  cmake; make; make install

* If you plan build MaNGOS at Windows then for this time prefered
  use old way with Visual Studio projects in win directory.

  You _can_ use cmake way MaNGOS build but this experemental mode.
  For cmake using build you need have cmake tool installed at Windows.
  And need run cmake (for example by run createprojects.bat in MaNGOS
  root directory and then load generated Visual Studio solltion file
  build/mangos.sln
2011-02-14 12:57:18 +03:00
cipherCOM
a81cf28610 [11167] Added CMake support
(based on cipherCOM's commit 0039476)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:56:50 +03:00
cipherCOM
c9942fb0cc [11166] Removed old autoconf files
(based on cipherCOM's repo commit 7b5a932)
2011-02-14 12:56:11 +03:00
VladimirMangos
b3aa3c2b22 [11165] Fixed existed win projects for build not modified tbb sources.
Instead modify #include paths in TBB sources added expected include paths to VC projects
2011-02-14 12:54:33 +03:00
cipherCOM
21794edc44 [11164] Changed TBB lib to same version but with make script
(based on cipherCOM's repo commit e8a538e)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:53:53 +03:00
cipherCOM
cc8a11bff7 [11163] Stripped ACE library to only needed files
(based on cipherCOM's repo commit 403799b)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:51:47 +03:00
cipherCOM
571f510ee4 [11162] Changed ACE lib to same version but with configure script
(based on cipherCOM's repo commit d3d8934)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:51:16 +03:00
VladimirMangos
387f8a965a [11161] Implement Map copy local grid spawn data support.
Currently this functionality not used, but soon planned be used
in connection wiht map persistent state specific pool system data.

In different from grid spawn data stored in ObjectMgr and used for global
(comon for all map copies) spawns from DB data or from gameevent system,
map locla spawn data used for independet grid spawns like expected to be
for pool system case when it will work in full power in instances.
Maybe for something other, like script dependent "static" spawns
not dependent from grid load state.
2011-02-14 10:41:30 +03:00
foohey
30cb26d86a [11160] Lost from_unixtime(integer) function in prev postgre_compatibility_addon.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 08:39:47 +03:00
VladimirMangos
04c21c95d3 [11159] Remove now redundent GetDBTableGUIDLow support.
Now any creatures/gameobjects loaded base at DB data
in non-instanceable/instanceable maps always have same guid
as in DB data.

* Also remove useless by same reasons MaNGOS::GameObjectWithDbGUIDCheck
2011-02-14 07:20:09 +03:00
VladimirMangos
654dac1e11 [11158] Fixed respawn times loading for instances.
Now MapPersistentState will created for instances at repawn time load if any not expired timers
still exist.
2011-02-14 00:27:06 +03:00
oceanor
85a8a3eed9 [11157] Fixed typo in m_GameObjectFirstGuid init.
In result typo new summoned/spawned GO can get unexpected
non-free guids with strange results dependent from load
status of related static GO spawn (low chance conflict in fact).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-13 20:45:08 +03:00
SilverIce
76ea11489d [11156] Update speed for controlled units in any case, does not matter if owner's speed was really changed or not
Also remove static attribute from my prev. commit, thanks to vladimir
2011-02-12 22:40:46 +02:00
foohey
f31a2d3d84 [11155] Provide way define UNIX_TIMESTAMP/FROM_UNIXTIME for PosgreSQL users.
If mangos build for use Postgre SQL server
Queries from sql/postgre_compatibility_addon.sql must be used
at least one time for each mangos DB part stored in Postgre SQL server.

File constent based at article in http://janusz.slota.name/blog/

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-12 23:04:27 +03:00
VladimirMangos
f6affaf406 [11154] Revert "[11143] Spells with unit-type and destination flag should not be LOS-dependant"
This reverts commit 2e57df9f71330e278dbdf98b3f43d1d7bd5ec8d4.

* For original spells referecned in commit title:
  Posible instead LoS check it must use outdoor check instaed ignore any LoS like checks.
* Main reason for revert second part check that in _addition_ to referecned spell let ~1200 spells ignore los
  some from that have description ponting to need los check for its
2011-02-12 22:36:00 +03:00
VladimirMangos
709dd6fed8 [11153] Apply at least same checks at used at hit for miss aggro.
* Miss cases must have not less stricted checkd for combat start for comparison with normal hit.
* Also cleanup code
2011-02-12 22:14:43 +03:00
VladimirMangos
241726bf81 [11152] Clarify check code for SPELL_ATTR_EX5_USABLE_WHILE_STUNNED cast allowed 2011-02-12 21:22:52 +03:00
Darkknight900
4709c7ecb3 [11151] Fixed typo in AddCreatureToRemoveListInMapsWorker.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-12 21:09:00 +03:00
VladimirMangos
a598fb5312 [11150] Enable GameEvent system full features for instanceable maps. 2011-02-12 20:38:58 +03:00
SilverIce
4aa3361f51 [11149] Correct MSG_MOVE_SET_*_SPEED packet structures
Also update movementInfo ms time to actual server side time(need keep it updated at sending always)
2011-02-12 17:11:06 +02:00
NeatElves
ec432ea452 [11148] Add dummy effect for spell [74904]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 17:07:16 +02:00
nos4r2zod
9adb955f2a [11147] Fix a potential exploit with multicast bars - allow place only totem spells in these slots
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 17:03:31 +02:00
Toinan67
ec123b59a6 [11146] Proper damage for spells [68793] and [69050]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 16:28:57 +02:00
Feanordev
6bdbfc52d4 [11145] Creatures should get into combat if spell/attack is missed or resisted
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 16:17:59 +02:00
darkstalker
3d4caa275b [11144] Prevents abilities that are 'usable while stunned' being usable while in non-stun effects. The usability while stunned is restricted only to stun auras with mechanic stun
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:59:14 +02:00
Feanordev
01e4f25888 [11143] Spells with unit-type and destination flag should not be LOS-dependant
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:53:42 +02:00
dpedroia15
4483cbc06d [11142] Implement dummy effect for spell [3360]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:22:55 +02:00
Schmoozerd
f4e8c3d679 [11141] Add use of SpellMod for melee spells as needed, for exaplme, for some talents
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:14:39 +02:00
Shadez
2bb00743e5 [11140] Properly reward faction related titles to player when achievement has been completed
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:01:26 +02:00