Commit graph

4105 commits

Author SHA1 Message Date
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
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
arrai
4baf956853 Implemented ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST and ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND 2008-10-31 19:48:36 +01: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
tomrus88
a22b901775 go fix 2008-10-31 19:06:41 +03:00
tomrus88
4758be3791 Merge branch 'master' into 303 2008-10-31 19:03:31 +03:00
arrai
d885ba7fe1 Implemented ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE
Implemented faction specific achievements
2008-10-31 14:42:33 +01:00
arrai
0d6805ec94 Implemented ACHIEVEMENT_FLAG_REALM_FIRST_REACH 2008-10-31 12:53:35 +01:00
tomrus88
6707038cfc Crash fix 2008-10-31 00:13:56 +03:00
tomrus88
5ca92eddd7 Fixed MSG_CORPSE_QUERY for dungeons/raids, fixed SMSG_ATTACKERSTATEUPDATE 2008-10-30 23:02:48 +03:00
tomrus88
8a29415450 Added one more supported client build (9149) 2008-10-30 23:02:45 +03:00
arrai
6b32fa7175 Added database support for achievement progress
Implemented ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ARCHIEVEMENT
2008-10-30 20:31:42 +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
tomrus88
c5dbf49ece Fixed MSG_LIST_STABLED_PETS 2008-10-30 07:14:23 +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
arrai
2af3c01a23 Implemented achievement inspection 2008-10-29 21:49:03 +01:00
tomrus88
a1d83ebc6f Updated fot new client build 9155 2008-10-29 23:07:41 +03:00
tomrus88
871d34b106 Infinity loop in sendopcode command 2008-10-29 23:07:38 +03: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
arrai
e92cc728c3 Reverted wrong commit d2785283e - the real source for not matching the flags was a mixed up index in DBCfmt.cpp
Added database integrity check for creature_equip_template
Differ between stored and pending completed achievements
2008-10-29 17:58:56 +01:00
tomrus88
cf3bbb5920 Fixed pvp flag (once again), crash fix 2008-10-29 19:18:58 +03:00
VladimirMangos
403374c6c7 Use \t instead explict tabs in genrevision string constant. 2008-10-29 19:01:01 +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
tomrus88
5a26f822ce Some achievement*.dbc research 2008-10-29 16:47:56 +03:00
tomrus88
05b8acd140 Small account data changes 2008-10-29 15:09:30 +03:00
ApoC
8bea43063e 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-29 15:09:30 +03:00
ApoC
ca6e456da1 Added missed part from my prev. commit.
Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-29 15:09:29 +03:00
arrai
5364fc2847 Removed wrong assumed flag, use achievement points to differ between achievements and counters 2008-10-29 12:17:37 +01:00
arrai
1167c55bd9 Fixed several achievement related packets 2008-10-28 22:15:41 +01: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
tomrus88
8d733e8f8a Merge branch 'master' into 303 2008-10-28 23:04:02 +03: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
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
dythzer
e98a123027 Added new command: .repairitems - repairs all items of selected player
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-28 15:34:32 +03:00
VladimirMangos
6169f57ab9 Simplify check requirement report command results to target and output command user name.
* Provided ChatHandler::GetName for player name/"console command" output dependent from chat/console command call.
* New function for check when command work result send to command target.
* Remove unrequired complexy in mangos string usage in some commands.
2008-10-28 14:55:17 +03:00
VladimirMangos
58bc947ef9 Fixed subcommands list output at console. 2008-10-28 10:14:05 +03:00
arrai
deccb566ae Further work on the achievement system
Implemented ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT
Fixed SMSG_CRITERIA_UPDATE structure
Implemented parts of ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL - there are still some unknown additional conditions for this criteria type
Fixed sAchievementStore lookup errors caused by an invalid DBCfmt
2008-10-28 00:06:52 +01:00