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
XTZGZoReX
6abf7e7f58
Make RealmList proper singleton in realmd.
2009-11-08 03:54:27 +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
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
4d2f4726fd
Remove useless throw() and fix TBB warnings.
2009-11-06 18:17:53 +01: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
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