Commit graph

145 commits

Author SHA1 Message Date
hunuza
843a0d7d02 Cache GM tickets on server startup. 2008-11-03 21:32:42 +01:00
VladimirMangos
49307f6a13 Small fixes in genrevision 2008-11-03 15:53:49 +03:00
hunuza
2c9eae7599 Fixed memory leak by adding missing delete of query result. 2008-11-03 11:11:27 +01:00
hunuza
2cdd7dcfce Improve some arena team related DB access.
Reduce number of queries for adding a new arena team member.
Merge two queries in Player::GetArenaTeamIdFromDB() into one.
2008-11-03 10:58:29 +01:00
VladimirMangos
166007525e More fixes for wrong format arg/value pairs. 2008-11-03 01:48:16 +03:00
VladimirMangos
ed7390dede Instead mark spell as delatable mark it as executed and referenced from Unit current spells array and not deleted spell in like cases.
This is solve crashs if spell deleted at caster die in result triggered spells casting chain from currently executed spell.
2008-11-03 01:48:14 +03:00
hunuza
322b201c4d Revert change from PQuery to Query for one accidentally included query. 2008-11-02 23:28:32 +01:00
hunuza
fa37c291d6 Replace some PQuery() calls with more simple Query() 2008-11-02 23:22:18 +01:00
Wyk3d
086dee05cd Added a missing include in MiscHandler.cpp 2008-11-02 23:27:03 +02:00
hunuza
1a39f30335 Make queries for adding friends async. 2008-11-02 22:19:41 +01:00
Wyk3d
c8bd17f67b Added two parameter versions of the AsyncQuery function 2008-11-02 22:21:02 +02:00
hunuza
e9fc699d86 Make guid lookup for adding ignore async. 2008-11-02 20:23:25 +01:00
hunuza
c6eadf5565 Do not split self caused damage.
Do not split damage that is caused by yourself (mainly environmental damage).
This also fixes pets attacking their master when SL is active.
2008-11-02 17:53:27 +01:00
hunuza
f2852a95b7 Removed some unnecessary database queries.
Removed unnecessary database queries in some command handlers.
Replaced them with access to cached data or queries for only the needed data.
Move database access in gossip select code to less often called place.
2008-11-02 15:58:24 +01:00
VladimirMangos
8563b88859 Fixed some format arg type/value pairs. Other warnings. 2008-11-01 23:53:35 +03:00
tomrus88
715df4e28c No real changes
(cherry picked from commit 80e8f17627db58b3d275407547687aec6d10362b)
2008-11-01 22:23:35 +03:00
derex
63a35e388a Restore build on FreeBSD. 2008-11-01 21:21:12 +02:00
VladimirMangos
d54e53c709 Better check client inventory pos data received in some client packets to skip invalid cases. 2008-11-01 21:18:36 +03:00
VladimirMangos
6f6ec21b72 Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source. 2008-11-01 21:10:54 +03:00
arrai
3162a8dc61 Implemented realmd reconnect, backported from 303 branch
(cherry picked from commit ac6d01a6b0bf2ffd874db2097ade90ecfd7b1ff7)
2008-11-01 16:08:00 +01:00
dythzer
acf6f5d5ce Added new command: .modify gender male/female - Turns selected player into a male or female
No relog needed

Signed-off-by: dythzer <micke223@gmail.com>

Add help and mangos strings. Allow accept partly types male/female arg values.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 06:35:41 +03:00
VladimirMangos
7b9e86e3f3 Fixed bug in respawn command from recent commit
Command must now ignore implicit self-targeted player as target.
And allow respawn all near creatures/go in this case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 05:20:03 +03:00
dythzer
4f228f71cd Changed to correct entry for mangos strings: LANG_ACCOUNT_SETADDON (1100) and LANG_MOTD_NEW (1101)
Signed-off-by: dythzer <micke223@gmail.com>

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 04:50:01 +03:00
dythzer
eb97c9e717 [2008_10_31_02_mangos_mangos_string.sql 2008_10_31_03_mangos_command.sql] Added new command: .npc tame - Creates a pet of the selected creature.
Works for all classes, not only hunter. Pet also saved in DB.

Signed-off-by: dythzer <micke223@gmail.com>

Command renamed to .npc tame and code updated to use common function with spell effect.
Targeted creature not killed and tamed pet show up before player.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 03:24:05 +03:00
VladimirMangos
36508ba7ad More contrib/extractor geenrated files in .gitignore 2008-11-01 02:38:45 +03:00
freghar
d99d43a1d9 Disable world.log by default
As it may cause bigger latency due to large amount of I/O.

Signed-off-by: freghar <compmancz@gmail.com>
(cherry picked from commit 87c210e5ccd4ee853b8f9e37100988d9e4bc4525)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-31 20:53:03 +03:00
VladimirMangos
41b876b395 [2008_10_31_01_mangos_creature_template.sql] Creature related code and DB cleanups.
* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.
2008-10-31 20:45:22 +03:00
VladimirMangos
c7ac8577ae Exclude some generated files in contrib subdirs. 2008-10-31 19:27:44 +03:00
arrai
b724ae2fe4 Fixed windows ad.exe build 2008-10-30 23:12:02 +01:00
VladimirMangos
0bf682fdbd Fixied crash at .pinfo command use from console.
Also apply mangos code style to related code.
2008-10-30 21:04:51 +03:00
VladimirMangos
a26b72411a Use characters.guid instead low guid value from characters.data in charcter enum data prepering for client. 2008-10-30 21:00:19 +03:00
VladimirMangos
8d02b5c7f2 Fixed sql update naming for 2008_10_27_01_npc_option.sql and 2008_10_27_02_locales_npc_option.sql. 2008-10-30 19:47:04 +03:00
VladimirMangos
5b2bb73b18 Merge branch 'master' of git@github.com:VladimirMangos/mangos 2008-10-30 07:01:34 +03:00
VladimirMangos
0127feb5a8 Fixed RuntimeLibrary setting in VC80/framework.vcproj 2008-10-30 06:56:30 +03:00
VladimirMangos
5efb2f35c9 Merge commit 'VladimirMangos/master' 2008-10-30 06:54:16 +03:00
VladimirMangos
83f034ae5d Some command handlers renames and declaration sorting. 2008-10-30 05:14:14 +03:00
ApoC
42cf4db28b Implemented alternative GameTele location selection based on substring in case no exact match.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-29 23:06:00 +01:00
dythzer
569032d907 [2008_10_29_04_mangos_mangos_string.sql 2008_10_29_05_mangos_command.sql] Added new command: .npc follow - Makes the selected NPC follow you around like a pet
Signed-off-by: dythzer <micke223@gmail.com>

* Also implement .npc unfollow for cancel following.
* Help and mangos strings.
* Unrelated small fixes in mangos.sql.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-29 22:50:19 +03:00
Wyk3d
affb0722d6 * [2008_10_29_03_mangos_db_version.sql] Added a column to db_version that will be used to check if the required db updates have been installed 2008-10-29 19:22:46 +02:00
VladimirMangos
403374c6c7 Use \t instead explict tabs in genrevision string constant. 2008-10-29 19:01:01 +03:00
Wyk3d
6675f8d2a5 Changed the VC71 projects to use dynamic linking for the CRT 2008-10-29 17:33:56 +02:00
VladimirMangos
d8e29e7421 Fixed typo in mangos string in prev commit. 2008-10-29 17:14:27 +03:00
dythzer
67779b76b7 [2008_10_29_01_mangos_string.sql 2008_10_29_02_mangos_command.sql] Added new command: .waterwalk on/off - disable or enable waterwalk mode
for selected player

Signed-off-by: dythzer <micke223@gmail.com>

Add help text and mangos strings.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-29 17:02:23 +03:00
Wyk3d
da04859e7c Added msvcrt / msvcrtd dependencies to VC80 mangosd.vcproj 2008-10-29 15:41:34 +02:00
ApoC
9534aece0b Added checking global cooldown for pet autocast spells.
Added checking global cooldown for pet spell casting triggered by master.
Optimized PetAI::UpdateAI:
 - Removed obsolete victim_guid as combat check.
 - Stop pet combat when pet die in JustDied(Unit*) method.
 - Optimized autospells selection and casting.

Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 21:31:41 +01:00
ApoC
aae37a6dce Added missed part from my prev. commit.
Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 21:10:08 +01:00
ApoC
61b2b3d234 Prevent adding more than 5 people into RAID subgroup.
Optimized free subgroup in raid finding.
Optimized method calls, now using const uint64& instead of value passing.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 20:15:24 +01:00
VladimirMangos
8322ccb136 Use same RuntimeLibrary settings for any selected VC80 build 2008-10-28 19:08:28 +03:00
VladimirMangos
454ff6e667 Add *.user to all Visual Stidio versions .gitignore 2008-10-28 17:41:15 +03:00
Seline
4db0c00181 Use .respawn only for selected creature (if any)
If no creature is selected, old behavior is used (respawn everything).

Thanks Seline for the diff.

Signed-off-by: freghar <compmancz@gmail.com>
(cherry picked from commit 6bbdffac9acb9c02a74be632b35a90f0bda3ccb0)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Some changes in creature targeting and work in case alive target. Help data updated.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-28 16:34:35 +03:00