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
VladimirMangos
d594a29af1
[8779] Not output error at empty item loot for mail template at mail creating.
2009-11-06 02:39:51 +03: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
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
VladimirMangos
94205e5733
[8757] Remove unused item_slot field, avoid spam at non comlete packet read.
2009-10-31 13:48:20 +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
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
f5db4fc163
[8616] Some cleanups in WorldSession::SendMailTo
2009-10-10 12:16:49 +04:00
balrok
21de4570dc
[8613] mail from battlemasters should be deleted after one day
2009-10-10 01:45:21 +02:00
tomrus88
4a8431f581
Merge commit 'origin/master' into 320
...
Conflicts:
src/game/DBCStructure.h
src/game/DBCfmt.h
src/game/MiscHandler.cpp
src/game/ObjectMgr.cpp
2009-09-04 21:16:59 +04:00
arrai
f7963d1791
[8442] Fixed displaying return button in mails
2009-08-30 19:46:52 +02:00
tomrus88
f553cf2887
Merge commit 'origin/master' into 320
...
Conflicts:
src/game/CharacterHandler.cpp
src/game/DuelHandler.cpp
src/game/ItemHandler.cpp
src/game/Mail.cpp
src/game/MiscHandler.cpp
src/game/MovementHandler.cpp
src/game/TaxiHandler.cpp
src/game/WorldSession.h
src/game/WorldSocket.cpp
2009-08-17 10:31:02 +04:00
arrai
a24f39a36f
[8378] Use exceptions instead of explicit size checking for each packet
...
CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd
could crash due to the asserts in ByteBuffer.h. That was exploitable by
malicious players.
Furthermore, there were duplicate checks: Additionally to
CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye
on not exceeding the packet boundaries - just to crash the server for
sure in such a case.
To prevent memory leaks or other undesirable states, please read in
every handler all variables _before_ doing any concrete handling.
2009-08-16 23:50:22 +02:00
tomrus88
027ea38d54
Cleanup.
2009-08-10 10:35:21 +04:00
tomrus88
f07363e9e0
Merge commit 'origin/master' into 320
...
Conflicts:
src/game/MovementHandler.cpp
src/game/Player.cpp
2009-08-09 20:18:41 +04:00
tomrus88
7b4a7def8a
Second attempt to fix mail.
2009-08-09 20:11:23 +04:00
tomrus88
0b8a22d063
Attempt to fix mail.
2009-08-09 18:27:01 +04:00
VladimirMangos
1b8ad033c5
[8156] Some mail show flags use.
2009-07-10 06:38:23 +04:00
hunuza
38197b539f
[8137] Init player display id + native display id on login.
...
* Temporary reset of display id on save no longer needed.
* Players always have the right model for their gender.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-07-06 18:18:01 +02:00
hunuza
a295979484
Minor optimizations to MSG_QUERY_NEXT_MAIL_TIME handler.
...
* Do not search for more unread mails when already found 2.
* Do not call time(NULL) every iteration.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-07-06 16:57:18 +02:00
hunuza
8a32a19bad
[8072] First step to get rid of data blob.
...
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.
The update will not work if your database contains characters with an old data field (not fitting to the actual client version).
It's recommended to backup your character database before applying this patch.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-23 17:51:48 +02:00
VladimirMangos
2a27a44e2a
[7918] Improve portability in work with uint64 string format specifiers and in code literals.
...
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
I64FMTD renamed to UI64FMTD for more clear name.
* Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
Please always use UI64LIT(0x00001) instead less portable 0x00001LL
2009-05-30 22:44:20 +04:00
tomrus88
42f8ce5f3e
[7911] Applied coding style.
2009-05-29 19:07:28 +04:00
GriffonHeart
ba1d0684da
[7899] Implement binding for account items support.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-27 02:18:43 +04:00
VladimirMangos
d2e25491a2
[7898] Improve client error output at different mail send errors, cleanup code.
2009-05-27 01:14:17 +04:00
VladimirMangos
f4adf83cd7
[7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange.
2009-04-19 22:54:40 +04:00
arrai
a0ef77af5b
[7659] Added several security checks to prevent cheating using facked packets
2009-04-13 02:16:01 +02:00
VladimirMangos
c4d4bb5620
[7552] Move client version dependend DBC code to src/game.
2009-03-27 01:59:26 +03:00
VladimirMangos
649653956a
[7385] Fixed mail price calculation broken recently by me.
2009-03-06 04:26:59 +03:00
VladimirMangos
bff0cb8c75
[7379] Implement some money related achievement criteria.
...
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TALENTS:
* ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_AT_BARBER:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_MAIL:
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY:
2009-03-05 02:49:40 +03:00
VladimirMangos
118eb563b5
[7232] Use constant name that hide client dependent value.
2009-02-06 02:00:59 +03:00
arrai
c6f48843ad
[7017] Updated copyright notice for new year
2009-01-03 18:09:51 +01:00
tomrus88
5d4d7292b9
Merge branch 'master' into 303
...
Conflicts:
src/game/Player.h
2008-12-12 18:14:49 +03:00
hunuza
0f12997ef1
[6899] Pass const reference instead of value for some strings in some functions.
...
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
tomrus88
518d7f6297
Merge branch 'master' into 303
2008-12-01 08:21:10 +03:00
hunuza
818c378854
[6868] Don't load data field from DB to save money or arena team id.
...
Signed-off-by: hunuza <hunuza@gmail.com>
2008-11-30 18:31:17 +01:00
tomrus88
af6acab8f8
Merge branch 'master' into 303
...
Conflicts:
src/game/Creature.cpp
2008-11-26 19:44:03 +03:00
VladimirMangos
4ccfa1e71e
[6848] Implement possibility creating gm log per account files using new option in mangosd.conf. Releated cleanups.
2008-11-24 22:44:29 +03:00
tomrus88
7974d1cb94
Merge branch 'master' into 303
...
Conflicts:
src/game/Player.cpp
src/game/Spell.cpp
2008-11-08 16:52:28 +03:00
VladimirMangos
4476d483d4
Fixed comment text and code indentifiers spelling.
...
GetFieldNames part provided by Paradox.
2008-11-06 19:22:23 +03:00
tomrus88
78ec66babc
Merge branch 'master' into 303
...
Conflicts:
contrib/extractor/System.cpp
contrib/extractor/ad.exe
src/game/WorldSocket.cpp
2008-11-06 15:50:47 +03:00
VladimirMangos
88b1974df6
Fixed warnings, unused code and typos.
...
Including fix _SCallback for 3 params, triggred mode correct call for .cast back and .cast target.
Remove outdated code for support old 19421 (and ranks) implementation in client data.
2008-11-05 05:06:35 +03:00
tomrus88
df09909ec5
Updated rest of game stuff
2008-10-26 10:25:08 +03:00
arrai
686118b665
* Disallowed sending wrapped items as COD
2008-10-22 20:36:42 +02:00
TheLuda
800ee76535
Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/
2008-10-14 00:29:20 +02:00