Commit graph

1534 commits

Author SHA1 Message Date
Trazom
626553c9ee [7934] Implement ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added ACHIEVEMENT_CRITERIA_DATA_TYPE_VALUE and support
this criteira special cases base at `achievement_criteria_data`
that required DB support.
2009-06-01 07:32:03 +04:00
NoFantasy
bfafee5263 [7933] Call goober GO event script not only at open spell cast, also really call camera GO event scripts.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-01 05:29:55 +04:00
VladimirMangos
7d6bf1fdbf [7932] Store in DB only spell part of pet action bar, set other to default state (reaction saved). 2009-06-01 04:44:02 +04:00
NoFantasy
c386bef32e [7931] Allow GAMEOBJECT_TYPE_CAMERA gameobjects with event field set call DB scripts.
Drop also redundent check preveting use SCRIPT_COMMAND_CAST_SPELL script command by gameobject script triggred casting.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-06-01 02:19:28 +04:00
Lightguard
bc953feb31 [7930] Added diminishing for spell 1499 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-31 22:17:09 +02:00
VladimirMangos
fb45529eff [7929] Some fixes and optimizations for work with packet guids.
* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
* At adding aboyher buffer content copy only until wpos (really writed to buffer data)
* In appendPackGUID check buffer size before data write.
2009-05-31 22:18:48 +04:00
DonTomika
0bfcc44bb8 [7928] Player must standup at stun (from 1.5 client starting)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 10:42:01 +04: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
DonTomika
116c72208f [7926] Implement loot roll achievement criteria types used in statistics
* ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED
* ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED:

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 10:05:25 +04:00
Naicisum
60e450166d [7925] Correct minor output format error inside ByteBuffer class
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 09:33:10 +04:00
VladimirMangos
6e9339b093 [7924] Not teleport player to non-player caster at ressurection. 2009-05-31 06:28:13 +04:00
VladimirMangos
bf4201c0f4 [7923] Search all available locale skill names in .learn all_recipes 2009-05-31 05:08:23 +04:00
VladimirMangos
79dab3dae5 [7922] Implement param2 for ACTION_T_COMBAT_MOVEMENT for allow control start/stop melee combat state for creature at start/stop movement in combat.
Also small fix for avoid unexpected set pet speed to owner speed for non-player case. In player case this hack speed setting still required.
2009-05-31 04:35:38 +04:00
VladimirMangos
c678263bb0 [7921] Set pet and for creature owner in Spell::EffectSummon similar other summon effects. 2009-05-31 04:35:22 +04:00
VladimirMangos
91157c7eb9 [7920] Ignore racial skill and skills without recipes in .learn all_recipes. Cleanup code. 2009-05-31 04:35:02 +04:00
Den
d2e0e3c439 [7919] Aura 50 apply percent to all crit healing amount not only to crit healing bonus.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 02:33:20 +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
VladimirMangos
e8cd008005 [7917] Spell effect with SPELL_AURA_MOD_SPELL_CRIT_CHANCE always possitive with possitive aura value. 2009-05-30 07:41:24 +04:00
daveh
902252c1e9 [7916] Fixed pet action bar setup.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-30 06:08:39 +04:00
NoFantasy
27057843ac [7915] Implement more stricted checks and limitations at loading creature addon data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-30 05:02:59 +04:00
NoFantasy
c7c480f6ba [7914] Fixed variable name typos in creature event AI code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-30 04:44:05 +04:00
VladimirMangos
548f47b2b3 [7913] Fixed vmap_assambler sources. Updated binary.
* Fixed week ago added bugs into vmap code that break vmap_assambler sources work.
  Note: vmap_assambler binary not updated from nov 2008 until this commit and it has been correct working.
* Add to vmap assambler process show output and add appropriate error messages output.
* vmap_assambler binary updated.
2009-05-30 04:13:53 +04:00
VladimirMangos
81267151ad [7912] Remove unexpected indent from file tail.
Note: not code changes, and then binary not updated.
2009-05-29 21:39:08 +04:00
tomrus88
42f8ce5f3e [7911] Applied coding style. 2009-05-29 19:07:28 +04:00
VladimirMangos
ec1d6a3b56 [7910] Resolve problems with vmaps extractor support 3.1.2 archives.
Binary in contrib/vmap_extract_assembler_bin also updated.
2009-05-29 06:25:28 +04:00
tomrus88
f84fdc6757 [7909] Applied coding style. (cherry picked from commit ed7e72975f4d4f95f5c429f1af6a2c021adfd5a1)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-29 06:05:07 +04:00
NoFantasy
84464e5f3f [7908] Extract class data from creature_*_addon bytes0 fields, drop its, amd add unit_class field to creature_template.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-29 05:51:17 +04:00
VladimirMangos
39637858aa [7907] Also add documentation for ACTION_T_SET_SHEATH. 2009-05-29 01:22:19 +04:00
ApoC
661ddea7a7 [7906] Inserted newline to make gcc happy.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-28 23:14:07 +02: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
Seizerkiller
2fc277fdb6 [7904] Change creature damage calculation formula.
* Add new creature_template field `dmg_multiplier`
* Make attackpower include in creature damage not dependent from attack speed.

NOTE: included in sql update recalculation for creature damage related fields only make
temporary possible usable values. Real values need revisited by DB devs for correctness.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-28 20:10:42 +04:00
VladimirMangos
0614a9eb75 [7903] Load and save for pets only talents. Not store unused (in fact) free talent point amount.
* Other pet spell types auto-learned at level setup/load.
* Code will cleanup pet_spell table from non-talents spell if detect any at load.
* Free talents points recalculated at loading and levelup so store its in DB useless.

Note: bug with not highlighting learned pet talents (except first line) until learn one more talent not fixed.
2009-05-28 03:36:28 +04:00
AlexDereka
c87e51dae5 [7902] Speed up Creature and GO loads. 2009-05-28 00:00:22 +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
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
Ambal
83b2eb2bba [7897] Include function name in assertion fail output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-26 22:02:19 +04:00
NoFantasy
56e86ff05f [7896] Rename creature_template class/race fields to trainer_class/trainer_race for clarify use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-26 18:16:15 +04:00
tomrus88
058e74da21 [7895] Fixed build problem and some warnings in VS2010 projects. 2009-05-26 17:02:57 +04:00
SeT
0b020154d9 [7894] Avoid show quest sign for trainer under cursor if trianer have unavailable quest.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-25 06:48:06 +04:00
VladimirMangos
f271fd6819 [7893] Fixed work chat guild commands that expect guild name in args. Now guild name always must be in "". 2009-05-25 06:31:17 +04:00
VladimirMangos
4e1166ded5 [7892] Update spell_loot_template entry description in error output for better fit to current table use. 2009-05-25 05:20:58 +04:00
VladimirMangos
51f7b8a482 [7891] Replace harcoded array of creature family skill lines by using DBC data. 2009-05-25 02:59:10 +04:00
VladimirMangos
32a66d2bd2 [7890] Fixed memory leak in result one from my old commits. 2009-05-24 23:00:20 +04:00
Sorken
b35a9d4c99 [7889] Fixed from behind check for 1329 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-24 17:16:08 +02:00
ApoC
ba450b4eca [7888] Fixed typos in comment.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-24 16:54:06 +02:00
VladimirMangos
c56ef09fa3 [7887] Drop pet spell teaching code, including field in character_pet. 2009-05-24 07:20:13 +04:00
VladimirMangos
8171bb57dd [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

* Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
* Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
* Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.
2009-05-24 06:39:29 +04:00
qsa
37f8cea0a1 [7885] Fixed talent 34914 and ranks proc spell to correct spellid.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 23:43:13 +02:00