Commit graph

2365 commits

Author SHA1 Message Date
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
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
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
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
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
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
XTZGZoReX
3c1aef871a [8794] Also rename gameeventmgr to sGameEventMgr.
Hopefully last singleton rename. :)
2009-11-08 19:39:55 +01:00
XTZGZoReX
b3f3ffa885 [8793] Don't do operations through singleton if already in singleton context.
* Also, some minor things:
   - Remove duplicate sWorldLog define.
   - Add sRealmList macro for RealmList::Instance().
   - Use sLog macro in scripting log functions.
2009-11-08 19:32:59 +01:00
VladimirMangos
146657885d [8792] Fixed *nix configure work after [8790] 2009-11-08 19:57:22 +03:00
VladimirMangos
a0141c7d2f [8791] Fixed problems with atomic_support.obj in x64 mode
* Place atomic_support.obj to porjtect dirs instaed bin dir
* This also fix build fail at clean solution (not need now restart build for finish).
2009-11-08 18:46:56 +03:00
XTZGZoReX
1e9c672abd [8790] Remove useless/unused Base and CountedReference sources. 2009-11-08 12:22:41 +01: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
NoFantasy
539072fcbd [8788] Clarify error log message for db_script_string
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-08 11:57:03 +01:00
XTZGZoReX
611b17a431 [8787] Cleanup in Errors.h. 2009-11-08 11:38:34 +01:00
XTZGZoReX
33d475caf3 [8786] Rename some files.
* HostilRefManager.cpp/.h -> HostileRefManager.cpp/.h
 * PoolHandler.cpp/.h -> PoolManager.cpp/.h
2009-11-08 04:21:56 +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
VladimirMangos
34dab079c4 [8784] Use more appropriate error for cast fail on taxi flight. 2009-11-08 03:42:36 +03:00
XTZGZoReX
a34d1509ad [8783] * Fix mangos.sql after [8775]. 2009-11-07 22:04:35 +01:00
VladimirMangos
150ac4c76e [8782] Prevent packet problem spam in log at rejected CMSG_WORLD_TELEPORT. 2009-11-07 18:44:22 +03:00
XTZGZoReX
16dcc0673a [8781] Remove old 100ms Linux hack in WorldRunnable.
* This allows Linux OS to update world every 50ms like Windows (possible speed-up, but more CPU usage).
 * This hack was probably used because of old sockets lib, but we don't use this for worldd anymore.
2009-11-06 15:43:16 +01:00
balrok
64848ac380 [8780] fixed typos with arenarating
original patch was ok - i just did copy/paste errors :s
2009-11-06 13:32:33 +01:00
VladimirMangos
d594a29af1 [8779] Not output error at empty item loot for mail template at mail creating. 2009-11-06 02:39:51 +03:00
balrok
a6d245058d [8778] corrected bg-spawnmodes based on dbc-data
so it seems, that the difficulty-level isn't implemented
for all battlegrounds (in fact only for alterac valley)
we now set the difficulty level based on queue-id and then go down
to the highest difficulty-level possible for this map

big thx to vladimir for information and help with code :)
2009-11-05 13:29:06 +01:00
VladimirMangos
500858b789 [8777] Fixed spawn mask to correct after recent commits for BG maps. 2009-11-05 14:12:53 +03:00
danielich
63951591fd [8776] proper arena rating calculation
the elo-formula has K=48 for rating<1000
an K=32 for rating>1000

also set the rating of new members to 0 if they
join a team with rating <1000
2009-11-05 11:02:08 +01:00
balrok
c50df41b3c [8775] implement all creature difficulties + support bgs with this
former know as heroic_entry we now have 3 of those
which let us chose different creature_templates for different
map-types

normal maps will need a bit more support to use correct
spawnmodes

but for battlegrounds it works already good:
they are divided by levelrange:
    0-59  == normal spawn -> spiritguides level 60
    60-69 == difficulty=1 -> spritiguides level 70
    70-79 == difficulty=2 -> spiritguides level 80
    80    == difficulty=3 -> spiritguides level 80

this is needed mostly for alterac valley to get
right creature-templates spawned
and with that all creature->SetLevel hacks could
get removed from alterac valley code
2009-11-05 10:48:15 +01:00
NoFantasy
adde82b73c [8774] Implement SCRIPT_COMMAND_KILL_CREDIT (8).
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-04 17:45:18 +01:00
unik
6b1e76a150 [8773] Prevent counter overflow in mail list oacket sent to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-04 16:24:05 +03:00
VladimirMangos
44fb72aeff [8772] Prevent incomplete packer read spam at reject by another reason mail packet. 2009-11-04 11:58:32 +03:00
VladimirMangos
959e7640e2 [8771] Fixed *nix build and small code cleanup.
Thanks to balrok for reporting, and help in resolve/test.
2009-11-04 11:05:51 +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
50e80d67f9 [8767] Move one more function code to .cpp for restore build. 2009-11-02 21:42:55 +03:00
VladimirMangos
e79af61266 [8766] Restore build at Unix/Linux after recent commits. 2009-11-02 18:35:43 +03:00