Commit graph

3277 commits

Author SHA1 Message Date
VladimirMangos
b5980f061a [8833] Implement new commands for add/remove/lookup titles.
Inspired by patch suggested by LordJZ.
2009-11-19 07:16:13 +03:00
VladimirMangos
f66f0a0914 [8832] Fixed typo in difficulty name 2009-11-19 03:50:10 +03:00
VladimirMangos
398ca010ca [8831] Helper function add and move for diffficulties.
* Use regular naming for 0 spwanmode/difficulty for clean consistence names (used at well known wiki)
* Move difficulty related data access from InstancedMap to Map class.
2009-11-19 03:05:52 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
balrok
7a2764e0fe [8829] some more places where we call redundant SaveToDB
i also added now my assert with which i've found them..
maybe someone want's to look at other cases too :)
2009-11-18 19:13:03 +01:00
VladimirMangos
37ba6623bb [8828] Independent instance reset time for different difficulties.
* Store reset time for map/difficulty pairs.
* Use DBC data for reset time and max players instead `instance_template` fields (dropped)
  for each existed map/difficulty pair.
* Fix some "heroic" related checks in spells/etc.
2009-11-18 10:08:41 +03:00
tomrus88
be07beba6f - Updated to latest PTR build 10835. 2009-11-18 03:50:19 +03:00
NoFantasy
70fb82b262 [8827] Add a missing stand_state definition (and fill in with a few unknown)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-17 17:40:10 +01:00
NoFantasy
84432d8459 [8826] Set creatures PvP state flag based on creature faction and rename related enum
Condition with custom flag civilian and player team only is not sufficient. This update also disallow use *_addon -table (second byte of bytes2) to set flag manually (small chance it may be needed)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-17 15:41:04 +01:00
VladimirMangos
bc5fb40867 [8825] At fail start db connections stop all started db connection threads.
This will restore state before start Db function call and prevent crashes
at delayed access to log singleton in case outdated DB structure detection.
2009-11-17 12:42:45 +03:00
Splinter
55e715dddd [8824] Implement 3.2.x changes for spell 5308 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-17 08:39:37 +03:00
tomrus88
fe55f76a26 Merge remote branch 'origin/master' into 330 2009-11-16 02:01:51 +03:00
tomrus88
93332fb1a0 - Fixed SMSG_GROUP_LIST opcode once again (I hope so).
- Fixed typos in SQL update.
- Added some nice comments.
2009-11-16 02:01:09 +03:00
balrok
fbe9241a96 [8823] removed ban-cleanup queries from realmd at login
now they just getting executed when realmd is started

i think this will improve speed a bit.. cause we don't need to cleanup those
bans so often we just can check the conditions inside the select
2009-11-15 20:38:23 +01:00
balrok
31a2996374 [8822] one big insert for character_aura and _SaveSpellCooldowns
this is much faster than many multiple inserts..

code is partly stolen from AchievementMgr inserts (:
2009-11-15 20:36:05 +01:00
balrok
6199396b69 [8821] removed some redundant player->SaveToDB calls
SaveToDB will already be called at "SpawnCorpseBones"
so no need to do this twice
2009-11-15 20:08:57 +01:00
balrok
5475430235 [8820] drop unneded check at sessionupate
session will never get NULL there
2009-11-15 20:05:48 +01:00
balrok
35d64c8d62 [8819] remove objects if unit leaves map
prior this - the objects were only removed when
unit itself gots removed
this fix some crashes with Object::SetUint64

thx to juansalvador and vladimir :)
2009-11-15 20:03:12 +01:00
Triply
537562f29f [8818] Language.h cleanup, TODO cleanup WS and EY messages. Removed 2 minutes starting message from battlegrounds.
Signed-off-by: Triply <triply@getmangos.com>
2009-11-15 09:07:26 +01:00
balrok
f1421a4ece [8817] remove corpses from world at halting server
this fixes the crash after .server shutdown
2009-11-14 19:11:52 +01:00
balrok
c3c7ab2f63 [8816] call uncharm for all units at delete
currently it was only done for players - but units
also can have charms which must be removed
2009-11-14 19:11:04 +01:00
Triply
ef26908948 [8815] Reimplemented bgQueues announces, fixed possible problems with multithreaded queues Mutexes have to be still commented because of ACE bug. When player enters new bg from battleground, do not rewrite his m_BgData with zeros. patch is tested.
Signed-off-by: Triply <triply@getmangos.com>
2009-11-14 18:37:16 +01:00
tomrus88
b09ee8e571 - Implemented quest POI's. May be not perfect, but it works :P 2009-11-14 19:56:01 +03:00
crackm
d5ee544367 [8814] removed some spells which made creatures invisible for dead 2009-11-14 15:44:01 +01:00
XTZGZoReX
a69fe0cb1d [8813] Re-implement some changes in [8799], but with mutex calls commented. 2009-11-14 15:07:04 +01:00
tomrus88
2bdfb0d7bb - Some updates. 2009-11-14 16:22:41 +03:00
tomrus88
23bfcccd77 Merge remote branch 'origin/master' into 330 2009-11-14 13:02:54 +03:00
balrok
02b6c5889b [8812] totems with no spell shouldn't cast anything
not all totems must have a spell
2009-11-13 20:54:43 +01:00
balrok
33c6241fd8 [8811] check creature existance at waypoint loading
also just set the spellid to 0 if it doesn't exist
instead of dorpping the whole movementpoint
2009-11-13 20:49:02 +01:00
balrok
25ab89ce97 [8810] error output at loading when creature_movement has nonexistant spell 2009-11-13 13:57:37 +01:00
XTZGZoReX
ec808c9d3d [8809] Revert "[8799] Implemented thread safe bg queue updates."
This reverts commit 72f7a7ee56c63672faa7786b1d162a7a3b9ab406.

This is temporary revert due to bug in ACE_Thread_Mutex.
Original code itself in commit has no problem.

Conflicts:

	src/shared/revision_nr.h
2009-11-12 16:00:28 +01:00
tomrus88
716d329228 - Compile fix and update to latest PTR build 10805. 2009-11-12 16:40:37 +03:00
NoFantasy
2ba416f78c [8808] Add a few more definitions to enum GameObjectFlags
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-12 14:38:11 +01:00
XTZGZoReX
5bb8d60a67 Allow disabling tbbmalloc on Unix by using: --with-std-malloc 2009-11-11 22:20:07 +01:00
VladimirMangos
4ac1bcc37a [8807] Better check playercreateinfo_action data at server startup. 2009-11-11 18:11:02 +03:00
balrok
413a44d114 [8806] remove wrong erroroutput for teleportspells
they are just handled in a different way - so this errorcheck
isn't valid for those spells
2009-11-11 15:29:32 +01:00
balrok
eb94d78761 [8805] fix freeze with repeatingly calls at logout + HandleMoveWorldportAckOpcode
starts in WorldSession::logout inside while(isTeleportedFar)...

through coord won't get ever valid there - it will call
itself all the time
2009-11-11 15:27:23 +01:00
balrok
fb6f792cf3 [8804] changed some unhandled opcode-errors to debug
with this i also introduced a new status for opcodes
STATUS_UNHANDLED

not sure if i realy found all unhanddled opcodes
those are all based on empircal analysis of our serverlog
2009-11-11 15:18:29 +01:00
VladimirMangos
f8ed87c45e [8803] Update racial spell id changes in 3.2.x
Characters tables not affected, its not include default spells.
2009-11-11 17:02:40 +03:00
balrok
cdd9fe7290 [8802] check spellexistance at playercreateinfo_spells loading 2009-11-11 12:54:39 +01:00
XTZGZoReX
da2cceb9da [8801] Rename accmgr macro to sAccountMgr. Thanks to astriconX for pointing out. 2009-11-10 23:09:46 +01:00
Splinter
22fb22ee5e [8800] Implement item 47499 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-10 21:24:49 +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
Triply
ee0fa56166 [8799] Implemented thread safe bg queue updates.
Signed-off-by: Triply <triply@getmangos.com>
2009-11-09 22:25:54 +01:00
VladimirMangos
ea7100ff63 [8798] Partly revert and optimize [8797]
* Revert realmd changes:
  - typos in prev. commit prevent correct work of realmd code.
  - useless log login packets
  - and really horrible idea log of patch packets (how nice convert some MB in hex strings)
* Revert output world packet format to more readable old but output timestamp
* Drop outWorld, but use explcit fprintf calls into new outWorldPacketDump.
  Not nice have 16 flush calls at hex line.
2009-11-09 15:18:16 +03:00
XTZGZoReX
07aa44992b [8797] Merge WorldLog class into Log class.
* Added AuthSocket::SendPacket() function.
 * Packet logging now also possible in realmd.
 * realmd.conf.dist.in updated (added "WorldLogFile" setting).
2009-11-09 02:24:29 +01:00
XTZGZoReX
fc42125cfb [8796] * Add WARNING file to mangosd.vcproj. Also minor cosmetics. 2009-11-09 01:19:49 +01: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
tomrus88
7690d22268 Fixed scaling stats for new heirloom item added in patch 3.3. 2009-11-08 22:06:53 +03:00