Commit graph

897 commits

Author SHA1 Message Date
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
arrai
a0ef77af5b [7659] Added several security checks to prevent cheating using facked packets 2009-04-13 02:16:01 +02:00
VladimirMangos
bd56140537 [7658] Drop dead code. 2009-04-13 03:13:19 +04:00
VladimirMangos
0e1997f746 [7657] Implement function for access to gameobject owned by unit and created by some spell. 2009-04-13 01:07:21 +04:00
VladimirMangos
6438bf557f [7656] Implement hack way detection for more cave and not cave areas at new continent. 2009-04-12 13:53:31 +04:00
arrai
db7da450cd [7655] Fixed choosing AI for pets 2009-04-12 11:01:33 +02:00
DiSlord
db429d2a20 [7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 03:56:14 +04:00
Trazom
5c660c844f [7653] Implement ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE
Correct complete if ACHIEVEMENT_FLAG_SUMM set

Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:49:17 +04:00
VladimirMangos
278cd970f4 [7652] Fixed unexpected GM death at deep swim. 2009-04-12 02:36:19 +04:00
DiSlord
1bf2138948 [7651] Fixed some cases with unexpected fatigue bar show for player at transport.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-12 01:05:50 +04:00
Lightguard
8a21bdbae7 [7650] Fix one warlock talent part (47201 and ranks).
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-11 23:44:24 +04:00
DiSlord
c4b2e3f67c [7649] Fix resilience damage reduction coefficients changed after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-11 22:18:57 +04:00
VladimirMangos
199c09640d [7648] Resolve problems with expected fall damage at near teleport.
Move near teleport landing code to WorldSession::HandleMoveTeleportAck.
This make Player::TeleportTo code working in same way for both far/near teleports.
Move mSemaphoreTeleport from WorldObject to Player and merge with DoNotMove (using 2 fields for far/near teleport flag).
Skip movement packets until landing confirmation for near teleport from client.
2009-04-11 11:06:30 +04:00
zhanhang03
55e1cc16d1 [7647] Fixed typo in option StartHonorPoints default value set at error.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-11 09:18:39 +04:00