Commit graph

892 commits

Author SHA1 Message Date
tomrus88
23bfcccd77 Merge remote branch 'origin/master' into 330 2009-11-14 13:02:54 +03:00
VladimirMangos
4ac1bcc37a [8807] Better check playercreateinfo_action data at server startup. 2009-11-11 18:11:02 +03:00
tomrus88
3def8fa353 Merge remote branch 'origin/master' into 330 2009-11-10 17:35:09 +03:00
tomrus88
c5e13e0bd7 Removed empty line. 2009-11-10 17:34:53 +03:00
VladimirMangos
29949518b5 [8795] Reset UNIT_FIELD_AURASTATE before aura load or health/etc set.
This resolve problem when some aura state not remove aftre reload and original aura source lost.
2009-11-08 22:37:26 +03:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
XTZGZoReX
dc725ad6b8 [8785] Use macro instead of explicit call to singleton Instance().
* For: ObjectAccessor, MapManager.
2009-11-08 03:54:41 +01:00
XTZGZoReX
1f23884757 Don't use singleton to access static functions.
* This affects especially ObjectMgr functions:
   - GetCreatureInfo
   - GetGameObjectInfo
   - GetInstanceTemplate
   These are in fact static functions.
2009-11-08 03:54:27 +01:00
tomrus88
2732c33465 Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/DBCfmt.h
	src/game/GossipDef.cpp
	src/game/Mail.cpp
2009-11-04 02:37:09 +03:00
Daveh
71c031b478 [8770] Fix dynamic quest levels.
QuestLevel -1 is now to be used for dynamic quest level instead of older 0. DB support needed for update of quests.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-03 22:20:02 +01:00
VladimirMangos
e078d0dd03 [8769] Implement mails sending at player levelup. 2009-11-03 20:21:11 +03:00
VladimirMangos
d009994f59 [8768] Rewrite code for prepare and send mails.
* Move send functions to new MailDraft class from WorldSession
* Simplify use different args combinations used in SendMailTo
  by groupping its by functionality in Helper classes. This also will prevent wrong way use args combinations.
2009-11-03 17:34:23 +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
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
VladimirMangos
1b6176396e [8747] Implement player's pet resilience, also fix DoT case. 2009-10-29 04:34:57 +03:00
tomrus88
f2d0f6f868 Merge remote branch 'origin/master' into 330 2009-10-28 04:58:48 +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
tomrus88
3e934e4d02 Merge commit 'origin/master' into 330 2009-10-26 01:07:32 +03: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
tomrus88
57267884a8 Merge commit 'origin/master' into 330 2009-10-24 06:04:13 +04: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
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
tomrus88
1b79b1b6df Added missing ReqItem 5 and 6 to database. 2009-10-22 21:13:38 +04:00
tomrus88
e7c56a0f45 Merge commit 'origin/master' into 330 2009-10-22 18:50:58 +04:00
tomrus88
79e71ef4ac Some quest fixes. 2009-10-22 18:49:40 +04:00
VladimirMangos
b942616ded [8710] Make vehicle guid counter per-map local.
Also update/drop/move to Map some dependent functions.
2009-10-22 17:43:41 +04:00
tomrus88
5e15a6553c Merge commit 'origin/master' into 330 2009-10-21 23:49:51 +04:00
balrok
46389e4e1c [8689] implement function Unit::isInvisibleForAlive
with that i've implemented all known auras which makes
units invisible for alive.. but that's currently quite hacky
i think best would be if we could set a unit-flag after those auras
getting applied
2009-10-20 23:37:21 +02:00
balrok
e990d5c509 [8688] proper implementation of creatures ghost-flags
this reverts 8676 (9c50d9e70314b0cd9eb0fe3bac8040d64a9965a5)
the new flag is from wdb-files so your database should be
already alright

also i've dropped the function Player::CanInteractWithNPCs
cause it was used only in one place and didn't seem to make anything
easier

NOTE for this flag:
it just means that the creature can be seen by ghost-players
too..
so they are still visible for alive players.. unless a special
aura or ther unitflag (spiritguide/healer) disables this..
(see next commit for it)
2009-10-20 23:34:13 +02:00
VladimirMangos
8271e7eb99 [8683] Correctly update negetive aura duration at loading.
Thanks to ApoC for problem reseach.
2009-10-20 16:45:31 +04:00
tomrus88
aa161f802b Merge commit 'origin/master' into 330 2009-10-19 15:08:16 +04:00
balrok
a2ff999fd3 [8676] implemented dead-visible creature flags_extra
with this flag you can specify a creature to be only
visible for dead players - this removes all hacks from
spiritguides/spirithealers from code and allows some other
special creatures

i decided to not implement an extra deathstate cause
actualy those creatures are almost equal to living ones
2009-10-18 21:28:36 +02:00
XTZGZoReX
0e1854a936 [8671] Correctly send SMSG_PET_TAME_FAILED with appropriate value when taming fail instead of spell fail.
I also removed conditions from Spell::EffectTameCreature which are checked in Spell::CheckCast.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-18 19:16:48 +02:00
hunuza
ec10a5bf3c [8665] Correctly implement XP bonus auras.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-10-18 11:44:01 +02:00
tomrus88
dd9fd414bb Merge commit 'origin/master' into 330 2009-10-17 02:53:46 +04:00
ApoC
45c9c136ba [8653] Implemented per map guids store.
This patch implements storing guid->object pairs on per map level, this leads
to less locking in ObjectAccessor in case of further multithreaded map update.

For case of cross map guid looking (auras cases) all maps are linked into
ObjectAccessor and can be traversed for this lookup.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-17 00:12:31 +02:00
VladimirMangos
cf7ec4c456 [8651] Not send unexpected reply whisper to sender for addon messages.
Thanks to Leo9@mangos.lighthouseapp.com for provided client side testing addons.
2009-10-16 17:51:50 +04:00
qsa
369e50e068 [8648] Implement SPELL_AURA_MOD_HONOR_GAIN
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-15 15:04:36 +04:00
NoFantasy
b780e2dd80 [8646] Add basic support for QUEST_FLAGS_PARTY_ACCEPT (2).
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 19:19:49 +02:00
tomrus88
b10c3e2287 Merge commit 'origin/master' into 330 2009-10-14 17:32:52 +04:00
NoFantasy
65965bc5fa [8642] Replace the Spanish word 'hostil' with the English one.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 12:46:10 +02:00
VladimirMangos
7c3f35c408 [8630] More fatigue/breath/fire times control in config.
DisableWaterBreath replaced by TimerBar.Breath.GMLevel so update configs if use.
2009-10-12 01:32:40 +04:00
SilverIce
023b13f348 [8627] Avoid not needed too oftent send update data, cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 19:31:57 +04:00
tomrus88
f46c1aaabb Merge commit 'origin/master' into 330
Conflicts:
	src/game/MiscHandler.cpp
2009-10-10 17:28:59 +04:00
Lutik
ddb67f69ca [8617] Update resilience affect for 3.2.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-10 14:55:58 +04:00
balrok
45f6a474bf [8608] implement BattleGround Alterac Valley
sql won't be included - please look at your database
providers forum

also note, that creature_loot_template id 0
is used for the loot of dead players in this bg
(after a player died and you remove insignia from him..
he not only drops money - he drops some random items too)

further work must be done in better code for adjusting right
levels to creatures - maybe using something similar like it's
done in heroic instances

also quests and creatures needs some scripts in future

thanks to:
netsky - initial start of this patch
bogie - 2nd person writing on this patch
triply, kapatejib, vladimir - code review and suggestions
arrai - for his great tool and help
and all testers / code contributers - I won't write
down a list, else I would forget most probably one ^^
2009-10-09 18:18:22 +02:00
balrok
dc96ddfbfb [8599] removed now unneeded parameter from GetBattleGroundQueueIdFromLevel
cause alterac valley is not handled special since 3.2.2
this function also works without bgtypeid parameter
2009-10-07 15:36:43 +02:00
tomrus88
c9636623bf Added support for 3.3.0 PTR client. 2009-10-06 13:44:48 +04:00
VladimirMangos
a9af7f2b1c Use reset time for normal/heroic from new DBC. Improve basic support for raid difficalties. 2009-10-06 02:12:02 +04:00
tomrus88
2964f399c7 Merge commit 'origin/master' into 320 2009-10-03 11:04:30 +04:00