Commit graph

372 commits

Author SHA1 Message Date
yad02
469e8713b2 [7942] Fixed typo: proffesion->profession
Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-02 12:27:45 +02:00
VladimirMangos
af54fbf715 [7927] For achievement criteria type ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM check also items equip at loading. 2009-05-31 10:29:38 +04:00
VladimirMangos
6e9339b093 [7924] Not teleport player to non-player caster at ressurection. 2009-05-31 06:28:13 +04: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
VladimirMangos
b83f32fc19 [7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state.
Also related cleanup code in field cases and player Player::SetSheath.
2009-05-29 01:05:39 +04:00
VladimirMangos
4d8adefe70 [7901] Refactoting pet action bar related code. Fixed some related bugs.
* Correctly update action bar at loading and other cases when listed unlearned/not existed spells
* Avoid send data by PetSpellInitialize() many times while pet loading
2009-05-27 19:43:57 +04:00
VladimirMangos
1abe4c0d79 [7900] Now really allow recieve account bounded items by mail reciver. 2009-05-27 10:58:23 +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
32a66d2bd2 [7890] Fixed memory leak in result one from my old commits. 2009-05-24 23:00:20 +04:00
VladimirMangos
3d1b055e9e Fixed bank bag slot amount achievement statistic. Cleanup related code. 2009-05-23 18:50:46 +04:00
VladimirMangos
bc4611e8c0 [7877] Correctly set totem PvP state at loading and owner PvP state change, including GM totem case.
* Also set PvP state in proper way at pet loading if owner in PvP state.
2009-05-23 00:37:49 +04:00
DonTomika
ab3eb09669 [7842] Set and stop combat for pets at player enter to GM-mode.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-17 22:48:06 +04:00
SilverIce
b7f09eb37c [7841] Fixed: Prevent loading maps/vmaps when building enum.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-17 19:58:43 +04:00
xILOSWag
8cf9dc035b [7837] Implement missed item enchant type (stat mana, stat health)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-16 12:35:43 +04:00
VladimirMangos
7a7ee86f97 [7835] Store structures (with size = uint32) insteed pointer to structure in PetSpellMap. 2009-05-15 17:22:44 +04:00
VladimirMangos
b722e75d90 [7832] Better check at petcreateinfo_spell loading for errors and redundend data. 2009-05-15 06:19:11 +04:00
VladimirMangos
e134b5383b [7831] Prevent have hunter pet with level greater player levels at level changes. Propertly set hunter pet xp values at level update. 2009-05-15 05:33:46 +04:00
VladimirMangos
8858aacfb0 [7829] Rename 3d (x,y,.. versions of IsWithinDist/IsWithinDist functions with adding 3d explict posfix to name for avoid wrong use. 2009-05-14 21:42:32 +04:00
VladimirMangos
788cdf9b3a [7826] Avoid use GetDistance* that used slow sqrt call where possible, other related speedups. 2009-05-14 18:51:13 +04:00
DiSlord
1f3210b0ca [7824] Implement use ArmorDamageModifier bonus for armor
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 12:06:47 +04:00
Foks
dbf1f4323b [7822] Avoid declined names form show in case disabled config option with russian client at non-russian realm.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 11:31:04 +04:00
KAPATEJIb
28c7c95b87 [7821] Fixed typo in comment and var. name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 10:45:44 +04:00
VladimirMangos
4edbdb02f6 [7820] Fixed typo in [7819] that not allow correct work non-scalling item stats. 2009-05-14 10:40:11 +04:00
VladimirMangos
167e8c86f6 Code style and cleanups in item equip checks. 2009-05-14 10:37:23 +04:00
DiSlord
bfe2e187a6 [7819] Correct use item ScalingStatValues data (ScalingStatValues.dbc):
- ScalingStatDistribution stats multiplier
 - Armor bonus from ssv
 - Damage from ssv
 - Feral AP from ssv
 - Feral AP from ssv dps bonus
Use item->StatsCount in apply mods
Not allow equip item if level > ScalingStatDistribution->maxlevel field

TODO find more info about ScalingStatValuesEntry->spellBonus
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-14 00:16:21 +04:00
DonTomika
fd71c2bd6f [7818] Implement SPELL_AURA_MOD_FACTION_REPUTATION_GAIN.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-13 23:34:53 +04:00
VladimirMangos
f117ce3420 [7809] Replace repeating "remove cooldown and send update to client" code by function call. 2009-05-09 19:32:24 +04:00
Foks
7204f83a55 [7804] Allow swap and move by bag slots equipped ammopouch and quiver
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-09 15:09:18 +04:00
VladimirMangos
f53d06ad70 [7801] Apply damage mods from scripts or target state not in DealDamage but in new function before send data to client.
* Fixed bug with health decrease (client side visual bug) at spell damage by target with AI::DamageTaken damage set to 0
* Fixed bug with ignore .die command and instant kill damage in some cases.
2009-05-08 17:07:40 +04:00
VladimirMangos
b9cd3ffd0d [7800] Small fixes for scripting case ActivateTaxiPathTo use:
* Allow wide mount model lookup in DBC data for script case
* Allow 0-coordinates node use in script case
2009-05-08 14:28:43 +04:00
VladimirMangos
666b6f798e [7798] More Player::ActivateTaxiPathTo use improvements
* Provide more explicit way about spell that cast taxi flight if any
* Remove incorrect states instead error reporting in case non-taximaster flight start (cast/script)
* Remove mount_id arg from ActivateTaxiPathTo and implement support for 0 mount_id case (spell 32474)
* Implement spell 32474 (except finilize part)
* Provided Player::ActivateTaxiPathTo(uint32 taxi_path_id) function version for simplify one node to node paths use by id.
2009-05-08 01:15:53 +04:00
VladimirMangos
3989212ad1 [7797] Use DBC data for mount model selection in more cases.
* Use alt.team mount data for take player team model id if DB not provide own team creature id in spell taxi call case.
* Remove unddeded hacks for model ids from Spell::EffectSendTaxi
* Provide spell target for SPELL_EFFECT_SEND_TAXI for spell with target mode 0 for this effect.
2009-05-07 22:40:37 +04:00
Astellar
55392c3417 [7794] Add DK pet type support for proper show it in client Pet tab.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-07 13:19:49 +04:00
Elron
727268a4e8 [7786] Proper hostile zones marking for PvE servers.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-06 09:59:53 +04:00
VladimirMangos
75dda239d7 [7784] Skip distance to start taxi node in case node without coordinates and taxi flight started by spell. 2009-05-06 06:42:57 +04:00
ApoC
cf4884b03a [7781] Fixed typo in my prev. commit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 23:48:23 +02:00
ApoC
e8d8b1a888 [7780] Fixed Player::HasGuardianWithEntry()
Pets not contain in GUID entry but pet number so we need check
GetEntry() == entry

Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 23:38:19 +02:00
DonTomika
b27694f88b [7778] Implement honorable kill related achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS
* ACHIEVEMENT_CRITERIA_TYPE_HK_RACE

Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-05 22:27:45 +02:00
arrai
fefe56e3c5 [7776] Completed implementation of CMSG_SPELLCLICK
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
npc_spellclick_spells, otherwise you won't be able to use them
2009-05-05 18:58:58 +02:00
DonTomika
6e87802fa5 [7775] Implement duel related achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL
* ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-05 14:53:18 +04:00
DonTomika
f60df52dfc [7773] Implement some statistics only achievement criteria
* ACHIEVEMENT_CRITERIA_TYPE_QUEST_ABANDONED
* ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN
* ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-05 14:27:41 +04:00
AlexDereka
c9eb417515 [7760] Fixed my typo in prev commit. 2009-05-04 16:37:47 +04:00
AlexDereka
c81c5ab961 [7759] Fixed [7758] commit. 2009-05-04 16:17:52 +04:00
zhenya
b1bfdddeb2 [7758] Fixed gain reputation and xp reward between group mates in differents instances
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-04 14:45:23 +04:00
megamage
ebafe6a7b9 [7755] Allow mini-pet has been questgivers or gossip holders.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-04 12:07:04 +04:00
DonTomika
d351c09f9d [7753] Implement ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-04 06:42:30 +04:00
AlexDereka
da9f94637a [7746] Add const attribute to Player::SendInitialActionButtons. 2009-05-03 22:45:14 +04:00
AlexDereka
27fabf7ace [7745] Fixed gcc warnings. 2009-05-03 20:25:27 +04:00
VladimirMangos
8e2a664fad [7740] More correct flags in trainer list data for profession ranks.
Note: this is not fix problem with gren show recently learned non-first rank of primary profession.

Thanks to Seizerkiller for help in reseach.
2009-05-01 04:02:10 +04:00