Commit graph

5980 commits

Author SHA1 Message Date
DasBlub
c132e54f73 [11221] Fixed typo after recent code move to Spell::EffectTameCreature
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-06 09:20:10 +03:00
VladimirMangos
d3947b2026 [11220] Implement support positive persistent auras
Note this alos have bad side: if some spell wrongly checks as possitive then it will work wrong after.
So report if any.
2011-03-05 23:03:28 +03:00
VladimirMangos
8f3d97d955 [11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only target modes 2011-03-05 23:00:06 +03:00
dpedroia15
4dd87bd468 [11218] Fixed typo in local var.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-05 03:24:15 +03:00
zergtmn
02c1bc6557 [11217] Drop effect indexes from *_addon.auras field 2011-03-05 01:50:49 +05:00
VladimirMangos
5a3f557b19 [11216] Fixed crash at explictly empty string setting for dataDir in mangosd.conf. 2011-03-03 22:06:56 +03:00
VladimirMangos
06fe777f82 [11215] Replace direct code use in .npc tame by spell cast.
Only work different from old way: target creature despawned.
So if this not expected use .respawn to it in gm mode or area respawn.

Code simplification suggested originally by rsa.
2011-03-03 21:33:47 +03:00
VladimirMangos
9312ef7e78 [11214] Implement .debug spellcoefs command
Command show default calculated and DB stored coefficients for spell direct/dot heal/damage.
2011-03-03 18:56:29 +03:00
NoFantasy
ceaca46604 [11213] Always PrepareQuestMenu in PrepareGossipMenu when no conditions are set
This will make life easier for DB devs, as GOSSIP_OPTION_QUESTGIVER no longer need to be filled in to gossip_menu_option table.

Menu option with GOSSIP_OPTION_QUESTGIVER and conditions will work as before.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-02 00:08:48 +01:00
NoFantasy
a5d83cea08 [11212] Add dummy effect of spell 47110
Dummy/script effects of related "sub" spells also.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-01 08:42:23 +01:00
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