Commit graph

6095 commits

Author SHA1 Message Date
NoFantasy
56205543bf [11211] Remove obsolete comment
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-28 02:30:29 +01:00
Vinolentus
fe0f42d30c [11210] Set moveflags from CMSG_MOVE_SET_CAN_FLY_ACK to proper mover.
Also check cheating case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-28 01:56:01 +03:00
zergtmn
65b631a8e4 [11209] Some refactoring in Player::BuyItemFromVendorSlot 2011-02-28 01:48:14 +05:00
zergtmn
d1370941ca [11208] Restore cooldown marker work for talent 56342 and ranks 2011-02-28 00:09:40 +05:00
VladimirMangos
cd1465b1e4 [11207] Fixed cheating with item loot with some conditionas.
Thanks to zergtmn for explictly pointing to problematic line.
2011-02-27 21:19:18 +03:00
VladimirMangos
f1899e3b27 [11206] Move visibility self/around to new function and use it.
* Fixed wrong visibility changes in some cases at .mod phase uses.
* Apply phase change to any owned units (not only pets as before).
  It also will applied in more safe way for avoid unexpected lost owner at update.
* Check view point setting auras targets accessability not only at visibility change
  but also at phase change.
* Replace SetVisibility(GetVisibility()) hack like calls.
2011-02-27 19:23:05 +03:00
Neveragain
bef47ce126 [11205] Implement talent 48492 and ranks.
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-02-27 15:24:47 +01:00
DasBlub
02a07e6bc7 [11204] Fix mangos_spell_check.sql
Thanks Bobbi88 for pointing out!
2011-02-24 21:31:30 +01:00
Lynx3d
44fd108745 [11203] Implement creating scrolls when enchanting vellum.
Thanks to Lightguard and timmons for original contribution.
2011-02-24 01:23:59 +01:00
SilverIce
fcc09483ad [11202] Schedule AI notify at adding to world
This fixes the problem, that creatures, added at grid loading, do not start attack each other
More shedule -> schedule fixes added, removed unused Map::PlayerRelocationNotify function
2011-02-23 17:04:54 +02:00
VladimirMangos
6529e69924 [11201] Fixed sql update guards in 11200_01_mangos_spell_bonus_data.sql 2011-02-23 16:36:14 +03:00
Lynx3d
3f86c5a865 [11200] Move hard-coded AP coefficients for spells 1776, 8680, 13218 and ranks to spell_bonus_data table. 2011-02-23 13:06:29 +01:00
Lynx3d
07734bafd4 [11199] Resolve scripting library load problem at FreeBSD with cmake
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-23 11:53:51 +03:00
laise
35c89b68e7 [11198] Implement max stack effect of enchantment applied by spell 2823 and ranks.
Thanks to "maly32167" for additional input.
2011-02-22 20:52:01 +01:00
cipherCOM
f9c184b097 [11197] Allow of std malloc use instead of TBB
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-22 19:55:59 +03:00
cipherCOM
fd39a2bdb9 [11196] Some cmake PREFIX related fixes:
* PREFIX variable doesn't reset CMAKE_INSTALL_PREFIX anymore

* List PREFIX in variable list

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-22 19:53:52 +03:00
VladimirMangos
43bdd4910a [11195] Allow have bonus talent points from quests for any classes.
For non-custom cases DB expected have class req. settings.
2011-02-22 10:36:31 +03:00
kbz
09c5b49cc4 [11194] Fix the word shedule -> schedule in function name
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-02-22 03:53:29 +02:00
SilverIce
724092d9e5 [11193] Optimize visibility update and AI notification code. Optimization decreases amount of visibility and AI notification operations in 8-10 times, and as a result, lowers CPU usage by 30-40%
You need to update your config file, new "Visibility.RelocationLowerLimit" and "Visibility.AIRelocationNotifyDelay' options added

Special thanks to Ambal for code hints and advices
Thanks to Undergarun and kero99 for making tests
2011-02-22 02:37:08 +02:00
Lynx3d
60b2e2c8ba [11192] Make some more use of 'const' in SpellAuraHolder. 2011-02-21 16:56:00 +01:00
VladimirMangos
3b6b6078d1 [11191] Fixed crash introduced in prev. pool commit.
Propertly exclude pool_*_template spawns from static world state.
2011-02-20 12:56:23 +03:00
VladimirMangos
c7eb17b912 [11190] Implement pool_creature_template/pool_gameobject_template.
New table similar `pool_creature`/`pool_gameobject` but store creature/go ids
instead guids. At loading to poll added all guids for specific entry id.
This let not list explictly guids when need list in pool all guids for some entry id.
Mostly for quest pool spawns or unique creature/go random possitions for example.

At load tested that guid added to pool using new tables data not listed in guid tables.
2011-02-20 07:35:14 +03:00
VladimirMangos
2591f11504 [11189] Skip BGs also (in addition to arenas) in InstanceData::SaveToDB 2011-02-19 10:48:08 +03:00
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