Commit graph

3231 commits

Author SHA1 Message Date
tomrus88
3e8ebb024f Fixed: pet spells, possible sql injection, increased sql query size once again 2008-11-04 18:25:37 +03:00
tomrus88
11d5269853 Compile fix 2008-11-04 18:25:36 +03:00
tomrus88
b2d24ba0f7 Packet fixes, pet spells 2008-11-04 18:25:35 +03:00
VladimirMangos
e5a597ea9f Small fixes in genrevision 2008-11-04 18:25:34 +03:00
arrai
3d86187c4a Implemented ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM
Added basic support for timed achievements
2008-11-04 00:54:29 +01:00
VladimirMangos
3e43600c3b Correct check for ACE_BIG_ENDIAN. Warning fixed and code cleanups. 2008-11-03 23:59:06 +03:00
hunuza
843a0d7d02 Cache GM tickets on server startup. 2008-11-03 21:32:42 +01:00
tomrus88
5114c17da2 Packet fixes 2008-11-03 18:58:32 +03:00
VladimirMangos
49307f6a13 Small fixes in genrevision 2008-11-03 15:53:49 +03:00
tomrus88
1c1bc92d54 Compile fix 2008-11-03 15:24:27 +03:00
tomrus88
9cc6f1f3ec Merge branch 'master' into 303
Conflicts:
	src/game/Level2.cpp
	src/game/Pet.cpp
	src/game/Player.cpp
2008-11-03 14:44:58 +03:00
tomrus88
81693c4c15 Added new quest template fields, updated some enums and opcodes 2008-11-03 14:22:55 +03:00
tomrus88
8d54103456 Fixed spell.dbc structure 2008-11-03 14:22:55 +03:00
hunuza
79cb959991 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-03 14:22:54 +03:00
VladimirMangos
004bdf1d3c Fixed some format arg type/value pairs. Other warnings. 2008-11-03 14:21:24 +03:00
tomrus88
b62f376d73 No real changes
(cherry picked from commit 80e8f17627db58b3d275407547687aec6d10362b)
2008-11-03 14:12:57 +03:00
derex
3f5d1903a5 Restore build on FreeBSD. 2008-11-03 14:05:13 +03:00
VladimirMangos
e4a2d43a47 Better check client inventory pos data received in some client packets to skip invalid cases. 2008-11-03 14:05:12 +03:00
VladimirMangos
aaddf4b51b Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source. 2008-11-03 14:05:11 +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
arrai
99ff9ab5d9 Fixed mixing up character and world database 2008-11-02 20:36:48 +01: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
arrai
bea468bbc3 Implemented SMSG_SERVER_FIRST_ACHIEVEMENT
Implemented removing entries from achievement tables at player deletion
2008-11-02 15:48:14 +01:00
arrai
f4c3430088 Implemented ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER, ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE and ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP 2008-11-01 22:54:55 +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
tomrus88
a2ed231947 Compile fix 2008-11-01 17:38:32 +03:00
tomrus88
5d79048e68 No real changes 2008-11-01 08:42:49 +03:00
tomrus88
cffc766fb6 Merge commit 'origin/master' into 303
Conflicts:
	src/game/SpellEffects.cpp
	src/game/World.cpp
2008-11-01 08:10:24 +03: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
tomrus88
38892c864f Updated THANKS file 2008-10-31 23:37:32 +03:00
arrai
be03894ec5 Implemented ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL
Fixed typo in my previous commit
2008-10-31 20:34:53 +01:00