Commit graph

2365 commits

Author SHA1 Message Date
VladimirMangos
c90ded3ec3 [8765] Fixed typo in last commit. 2009-11-02 16:23:26 +03:00
VladimirMangos
d5dad82f3d [8764] Simplify code for mail items send. Avoid packet unread spam at errors. 2009-11-02 15:58:12 +03:00
Triply
132aed0f0b [8763] fixed typofix from last commit 2009-11-01 21:43:45 +01:00
danielich
70e3c17982 [8762] fixed typo with minimum default arena rating 2009-11-01 21:24:37 +01:00
begemot
e83563b671 [8761] typo fix and codestyle
typo was at PetLevelInfo loading
which didn't display the progressbar right when
there was no petlevelinfo available
2009-11-01 21:04:19 +01:00
balrok
84573285db [8760] fixed invisibleForAlive visibility-checks
those creatures shouldn't see alive creatures - else
it would be very unfair ;)

now it's also possible that they can fight against each other

this fixes the bug, that those creatures attacked living players
2009-11-01 21:01:13 +01:00
Ambal
64baf661f5 [8759] Fix for Intel TBB library aka 'Cannot open "../../dep/tbb/libtbbmalloc.so"'. Thanks to ApoC, ghostpast and me :P
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-11-01 13:47:46 +02:00
NoFantasy
f98ccc3b6b [8758] Export GetAreaEntryByArea* functions to dll to access from script library
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-01 01:13:36 +01:00
VladimirMangos
94205e5733 [8757] Remove unused item_slot field, avoid spam at non comlete packet read. 2009-10-31 13:48:20 +03:00
Ambal
887723f105 [8756] Restore linking to TBB in 'framework.vcxproj' when build MaNGOS with VS2010 Beta 2
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-31 11:40:24 +02:00
Ambal
0383d2fd8d [8755] Show server startup time...
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-31 10:22:41 +02:00
VladimirMangos
f35be9519c [8754] Some guld back related packets data correctness checks
* Move when possible checks from deep code to packer/DB read level.
* Check real existed guild bank tabs amount instead just max possible amount.
* Check guild bank loaded state for packets expected to be called only after
  guild bank data loadin by another packet.

Thanks to elecyb and NetSky for original fix versions.
2009-10-30 05:50:06 +03:00
VladimirMangos
4284bcc2da [8753] Next version assert fail at grid load fix.
Old version not work in result wrong guid use for check.
Code moved to Creature::LoadFromDB where all data accessable fro proper search.
2009-10-30 05:23:26 +03:00
VladimirMangos
ddd51cca6d [8752] Changes in mail template related server load checks.
* Allow loot for not used in quest mail templates.
  This let use mail template based mails from scripts for example.
* Not allow use same mail template id in more ine quests.
2009-10-29 13:28:01 +03:00
VladimirMangos
6901325e68 [8751] Implement proper creating mail text copy item from mail template based mail. 2009-10-29 12:47:21 +03:00
VladimirMangos
78022c0999 [8750] Fix sql update for [8749]. Use this version. 2009-10-29 09:26:08 +03:00
VladimirMangos
3c53dded97 [8749] Rename quest_mail_loot_template to mail_loot_template.
Store loot in mail_loot_template indexed by mail template ids.
Provide new SendMail functions for send mail base at mail template.
2009-10-29 08:57:44 +03:00
darkstalker
aa4524852e [8748] Reflect by reflection shields only reflectable damage.
Not reflect self/environment damage cass, and not reflectable spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-29 05:16:54 +03:00
VladimirMangos
1b6176396e [8747] Implement player's pet resilience, also fix DoT case. 2009-10-29 04:34:57 +03:00
VladimirMangos
012fac90c8 [8746] Not add pets and other not normal creatures to per-map Creature guid map. 2009-10-28 06:45:29 +03:00
VladimirMangos
b44972ae0d [8745] Undo part of [8617] for restore risilience apply to DoT damage 2009-10-27 13:36:25 +03:00
Ambal
190c5e6338 [8744] Fix 'warning: deleting ‘void*’ is undefined' in SqlOperations.h/SqlOperations.cpp, caused by [8736]. Thanks to Shendor for pointing the problem.
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-27 11:41:58 +02:00
VladimirMangos
a4e3b3e6aa [8743] Fix cooldowns for passive spells
Passive spell cooldowns only for client show.
It sets by  non passive spells with same category
triggered from passive spell auras or in code explictly.

* Ignore cooldown at cast passive spells
* Not set coldowns at passive spell cast itself.
2009-10-27 09:29:01 +03:00
VladimirMangos
15ab6794d3 [8742] Avoid aura remove triggered casts and packets send at logout/delete
This is must speedup logout and solve some crash cases or unexpected effects.

Also fix some nonsense code with memory lost possibility.
2009-10-27 04:20:11 +03:00
NoFantasy
7b6f4accd1 [8741] Remove trainer npcflags for player that can not train from npc.
Tracking of class and profession trainer should then work as expected client side, but database still need to apply flag values based on trainer function.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-27 01:26:45 +01:00
VladimirMangos
10a659a29a [8740] Make alreadyLoaded specialization select at call more explicit.
Base at report that at some platforms specialzation ignored (??).
2009-10-26 15:34:59 +03:00
VladimirMangos
6cab460f6b [8739] Call cleaniup code at remove player from Map before Map unlinking.
This fix crash when aura remove triggering spell casting.
2009-10-26 15:23:08 +03:00
VladimirMangos
a22c0f05b9 [8738] Restore some some VC90 build modes work after TBB lib add.
* Avoid use broken lib/*_debug_nppch dirs, and restore use debug version for debug_nopch mode
* Avoid unexpected creating .tlb file in bin subdirs
* Set to correct values debug_nopch mode fields in tbb.vcproj
2009-10-26 12:37:37 +03:00
VladimirMangos
eef1faa7ff [8737] Restore some some VC80 build modes work after TBB lib add.
* Hide TBB libs in lib dirs in simialr way as hide ACE libs.
* Avoid use broken lib/*_debug_nppch dirs, and restore use debug version for debug_nopch mode
* Avoid unexpected creating .tlb fiel in bin subdirs
* Restore 0.15-dev as current developed release version in mangosd.
* Set to correct values debug_nopch mode fields in tbb.vcproj

Note: VC90 fixes will be in next commit.
2009-10-26 10:58:12 +03:00
Ambal
b0ea8848a5 [8736] operator new[] based version of strdup() function to get bonuses from Intel Memory allocator mainly in DB code
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-26 01:05:12 +02:00
Ambal
a2ed351365 [8735] New memory allocator for MaNGOS, based on Intel Threading Building Blocks library. Performance gains depend greatly on OS you use!
You should add two libraries into your server binaries:
tbb.so/tbbmalloc.so on *nix and tbb(_debug).dll/tbbmalloc(_debug).dll on Windows!!!

Define USE_STANDARD_MALLOC while compiling 'framework' project to use OS' default memory allocator!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-10-26 00:59:35 +02:00
VladimirMangos
9e4b833054 [8734] Re-implement talent 31789
* Allow apply to enemies of attacked party member
* Correctly apply effect to 3 attackers
2009-10-25 10:18:48 +03:00
VladimirMangos
9746a97174 [8733] Access to chat channels by case-insensitive channel names.
But remember original case of name.
2009-10-25 08:48:20 +03:00
darkstalker
04911535ea [8732] Not drop at save action button assign to value that recently removed from it.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-25 06:53:31 +03:00
VladimirMangos
fad1fb92f4 [8731] Restore difficulty 1 spawn use for creatures with special difficulty 1 versions.
* Rename creature template `heroic_entry` => `difficulty_entry_1`
  Possible need add 2 more fields for 2-3
* Use 2 more EventAI EFLAG_* flags for 2-3 difficulty support, update checks.
* Update area trigger code.

Note: support for specialized creature version for difficulties 2-3 not added yet
      and will be used same as difficulty 1 mode.

TODO: Rename area triggers heroickey/etc fields ?
2009-10-25 06:23:00 +03:00
ApoC
00c2035cc7 [8730] Fixed spell 51770 after my recent changes in auras trigger system.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-25 03:33:09 +01:00
VladimirMangos
ce3d0170f6 [8729] Fix crash added in [8725]. Sorry. 2009-10-25 03:25:02 +03:00
Andeeria
8baee4a73f [8728] Store current realmid for online account in realm Db account table.
* Replace old `account`.`online` field by `account`.`active_realm_id`.
  It have 0 if account offline.

NOTE: this break all scripts that use `online` field for seelct online characters, and it required update.
But from other side this reolve
* Bug with reset online state active realm at restart another realm.
* Let easy select online accounts for some specific realm if need.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-25 03:22:08 +03:00
ApoC
b078ceb76c [8727] Cleanup in ObjectAccessor::FindHelper.
* This commit also restores compilability under some platforms and gcc combinations.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-25 00:56:52 +02:00
Corfen
54a9c6c225 [8726] Fixed spell proc flags for spell 62600.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-24 23:11:01 +02:00
VladimirMangos
b49cf2df28 [8725] Fixed bug with crash at forced logout in combat in instance.
In fact this old bug that just has been triggred more often after recent code changes,
so with some chance maybe some other logout related crashes fixed.

Also small cleanup in avoid double calls RemoveFromWorld and CleanupsBeforeDelete in some cases.
2009-10-25 01:07:28 +04:00
KiriX
7323966738 [8724] Fixed energize amount for spell 48389
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-24 20:47:42 +02:00
VladimirMangos
1101e3f6b0 [8723] Rename table achievement_criteria_data => achievement_criteria_requirement
And make related renames in code for types, variables and functions.
To make more clear difference achievement createria type from old achievment criteria data type
in DB and code.
2009-10-24 20:50:20 +04:00
ApoC
f451298784 [8722] Fixed possible creash.
Crash may happen if you try summon pet by spell and certain NPC is not in
your DB (than CreatureInfo* is NULL).

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-24 14:01:48 +02:00
leak
455a053b3d [8721] Allow guildmaster to withdraw money before first bank tab is purchased.
Attached sql file needs to be run to repair existing structure.

Signed-off-by: unknown <Jakub@.(none)>
2009-10-24 09:25:44 +02:00
tomrus88
3cc7f36006 [8720] Added missing ReqItem 5 and 6 to database.
(backported from commit 7a722b8)
2009-10-24 04:07:57 +04:00
VladimirMangos
e79aa4dee2 [8719] More early detection possible crash sources at object deletion.
* If object still in world at delete
* If object still listed in client update queue

Possible with this crash reports will more informative and let find porblem.
2009-10-24 02:09:35 +04:00
VladimirMangos
d7ae5e3af0 [8718] Remove most GetObjectInWorld functions and move some map local to Map
Also mape pet guid counter per-map (in different expecte to be global pet number)
2009-10-24 01:16:40 +04:00
ApoC
40b0a2cd92 [8717] Fixed SPELL_EFFECT_TAMECREATURE broken after [8686]
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-23 22:31:16 +02:00
NoFantasy
67c991b216 [8716] Update of enum HolidayIds, add missing names
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-23 21:39:28 +02:00