Commit graph

1589 commits

Author SHA1 Message Date
VladimirMangos
226bdca199 [7708] Continue chat command function declarations sorting. 2009-04-24 04:46:05 +04:00
NoFantasy
38cf432133 [7707] Remove duplicate line in check.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-24 04:18:42 +04:00
VladimirMangos
b2da7732f9 [7706] Rename command .plimit -> .server plimit 2009-04-24 03:58:19 +04:00
VladimirMangos
7fde7b8ca6 [7705] Rename some account/character related commands.
* .lockaccount -> .account lock
* .password    -> .account password
* .chardelete  -> .character delete
* .customize   -> .character customize
* .rename      -> .character rename
2009-04-24 02:46:11 +04:00
DiSlord
99a98684d0 Move code from prev commit to dummy effect
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-24 02:24:57 +04:00
Trogvar
94f7bd6ec1 [7704] Implement damage part for spell 12809.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-24 01:11:14 +04:00
Trazom
eedc10d46f [7703] Implement heal/damage total counters and related BG achievments.
* ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE
* ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 23:56:15 +04:00
Trazom
9136354e7f [7702] Implement some damage/healing achievement statistics.
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CASTED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 22:04:08 +04:00
Trazom
7c0201f834 [7701] Move explicit healing repeating code to DealHeal functions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 04:54:57 +04:00
DonTomika
adf9eb942d [7700] Implement ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 00:09:28 +04:00
VladimirMangos
898acd1248 [7699] Avoid implicit convertion enum constant value to 'uint32 const&' in templated code.
This triggering wrong code generation in release mode for VS2003/VS2005.
2009-04-22 21:59:05 +04:00
NoFantasy
07310ff6c1 [7698] Remove redundent call InterruptNonMeleeSpells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-22 18:10:16 +04:00
VladimirMangos
d910610600 [7697] Interrupt casting at enter to evade mode. 2009-04-22 18:05:59 +04:00
AlexDereka
cc83cac0aa [7696] Fixed compile warnings 2009-04-22 17:03:34 +04:00
NoFantasy
4fd4cc31d1 [7695] Fixed typo & -> &&
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-22 15:35:46 +04:00
raven_coda
c88f2164fc [7694] Fixed achievement criteria set at loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-21 22:10:47 +04:00
VladimirMangos
1b09aab42b [7693] Allow use .revive command in console, support revive offline players. 2009-04-21 20:24:37 +04:00
VladimirMangos
35970244e5 [7692] Implement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE and reimplement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS.
Also correctly set this criteria at login.
2009-04-20 23:16:07 +04:00
AlexDereka
c4c093dac6 [7691] Added MySQL to PostgreSQL converter.
Tested on PostgreSQL 8.3 and MySQL 5.0.
For compile see README.
2009-04-20 22:24:30 +04:00
VladimirMangos
fc0e1ecdf1 [7690] Move GetCreature/GetGameobject to class Map.
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
NoFantasy
ee9ea143d1 [7689] Batter EventAI loading checks and fix one from possible crash cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 23:51:05 +04:00
VladimirMangos
f4adf83cd7 [7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange. 2009-04-19 22:54:40 +04:00
VladimirMangos
82b0ff8b5d [7687] Batter player dumps protection from not proper use.
* Prevent direct apply player dumps to DB
* Check expected character DB structure (revision) before apply.
2009-04-19 16:02:15 +04:00
Lightguard
f97735f519 [7686] Implement aura SPELL_AURA_ADD_CASTER_HIT_TRIGGER (111).
Fixed bug with triggering SPELL_AURA_SPELL_MAGNET at non-magic casts (special weapon attacks).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 00:42:16 +04:00
NoFantasy
b3c4e38409 [7685] Load emotes.dbc and make emotes/emotetexts accessable from script DLL. Also some enum updates.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-18 16:07:15 +04:00
VladimirMangos
e94c6755d0 [7684] Resolve possible conflict in summon property enum type and enum names (currently commented) 2009-04-18 12:44:19 +04:00
Trazom
6c62fe750c [7683] Fixed update ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST for daily quests.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-18 00:10:59 +04:00
Trazom
718185cf8e [7682] Implement support ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-17 23:41:48 +04:00
VladimirMangos
75d8c0b604 [7681] Check guid type before lookup request for seldom GO-caster case. 2009-04-17 17:04:51 +04:00
VladimirMangos
b4bc910d32 [7680] Fixed work spell effects with 17/0 spell target mode. Including many summon/teleport spells. 2009-04-17 16:44:20 +04:00
NoFantasy
f926232efb [7679] More checks for creature EventAI loading at server startup.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-17 15:47:51 +04:00
VladimirMangos
09c32b5429 [7678] Implement spell target mode 7 and cleanup target mode 17. 2009-04-17 13:41:36 +04:00
VladimirMangos
650be82030 [7677] Fixed crash at error report attempt at db_script_string loading. 2009-04-17 11:23:19 +04:00
VladimirMangos
30d8be94ce [7676] Fixed typo in [7675] 2009-04-16 18:51:25 +04:00
VladimirMangos
b576b2382d [7675] Move spell targets in area selection code to function. 2009-04-16 18:41:35 +04:00
VladimirMangos
748ea8522a [7674] Fixed check of DB script string ids from db_script_string at loading. 2009-04-16 13:57:25 +04:00
VladimirMangos
3e4b31debb [7673] Fixed pet spell cooldown values send in Player::PetSpellInitialize to client. 2009-04-15 11:49:42 +04:00
VladimirMangos
78dd259c38 [7672] Move ReceiveEmote from script API to AI API.
This is also fix triggering ReceiveEmote for EventAI broken at it move to mangos sources.
2009-04-15 06:08:52 +04:00
Mordred
5020fcd3f1 [7671] Wrong type casts not fixed in [7667].
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-15 02:17:47 +04:00
Lightguard
c62543fa52 [7670] Revert "Not apply/remove passive auras on aura state change (not need)"
This reverts commit d5f6eefd1bb3c64797e54d19cc58ccc8c4cf8a4f.

Some 3.0.x talents not work without this like 44441

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 14:57:57 +04:00
VladimirMangos
2289ee6b30 [7669] Some lost commented code patch for currencies trading item move to empty slot.
In fact it not change anything except GM item created trade:
no currency items currently that not bind at picked up.
2009-04-14 13:59:37 +04:00
VladimirMangos
d85e95295d [7668] Cleanup In CreatureAI function descriptions and AttackStart/AttackedBy use.
* Use AI::AttackStart calls only in case explicit request creature attack from core or AI code "attack it if can".
  Like taunt, pet handler attack command.
* Use AI::AttackedBy for reaction at hostile action "do something at hostile action"
  Like non-dot damage, swing, negative spell landing, or fade fear/etc.
  And provided by default call AttackStart if no current target.

This fix some problems, like:
* Civilian will react propertly at attack by another creature (not pet or player).
* Will not cases (at least triggred by core) when attack target start run to attacker before any real hostile action apply.
2009-04-14 10:14:10 +04:00
VladimirMangos
69fb9736cc [7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases.
Also send pointer to AI constructors ans mark constructors as explicit.

This changes allow move now some generic often used AI code to CreatureAI helper functions.
2009-04-14 06:52:16 +04:00
VladimirMangos
721e005b84 [7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName.
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.
2009-04-14 02:28:45 +04:00
Splash
1ebf1a5ba4 [7665] Include achievement data to pdumps.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 01:04:19 +04:00
Lightguard
0aaf266513 [7664] Implement work of rogue talent 58426.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix problems with talent 58426 and 31223 work in case
* fast stealth reapply after stealth lost
* second stealth aura apply while another active.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 12:44:48 +04:00
VladimirMangos
56350b32ed [7663] Fixed crash at interrupting channeled spell. Cleanup spell interrupt code. 2009-04-13 10:48:26 +04:00
nos4r2zod
b143a300cb [7662] Spell power coefficients for talent 48505 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 08:34:29 +04:00
False.Genesis
f89c2052ea [7661] Fixed problem with not remove health regeneration from polymorph.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fixed problem with remembering transform spell in case possible stacked negative and positive transforms.
2009-04-13 06:32:40 +04:00
Lightguard
cce772c08c [7660] Fixed problem with lost aura 40214 in some cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 04:21:08 +04:00