Commit graph

1589 commits

Author SHA1 Message Date
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
DiSlord
edc51e2020 Add name for WorldMapArea.dbc field
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-13 02:22:33 +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
DiSlord
1a55952fa0 Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:48:42 +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
VladimirMangos
c64bbffdd1 [7646] Revert one wrongly added line in prev commit. 2009-04-11 08:59:02 +04:00
VladimirMangos
eb198f8239 [7645] Fixed problems wit temporary unsummoned pets and cleanup code.
* Save temporary unsummoned pet to current slot (instead non_in_slot mode) and
  prevent save as current pet summoned while temporay unsummon (arena)
* Prevent overwrite temporary summoned pet data
* At player loading set temporary unsummoned pet data instead pet loading
  if pet expected to be temporary unsummoned in current player state (loading in taxi flight/etc)
* Restore proper pet at arena leave and unsummon in arena summoned.
2009-04-11 08:46:48 +04:00
VladimirMangos
263bf2ab22 [7644] Fixed pet slot values using in pet save.
Problem exist from client version switch when stable slot amount changed.
In result this has been source problems with stable use (3-4 slots) and possible pet lost in some cases
or "not save state" for summoned pets.
Use enums to avoid repeating problem, use more safe value for not-in-slot save (for summoned pets)
Fixed data preparing for MSG_LIST_STABLED_PETS.
2009-04-10 09:02:04 +04:00
VladimirMangos
34d69bbfdd [7643] Allow set, store and output creture EventAI data version in addition to world DB and script library versions. 2009-04-09 17:30:59 +04:00
VladimirMangos
2be68b15cd [7642] Move all 0.12 sql updates to sql/updates/0.12
Now in sql/updates root only sql updates added after 0.12 release.
2009-04-09 04:04:23 +04:00
VladimirMangos
463e78c872 [7641] Implement check noDamageImmune fields at gameobject templates loading at server startup. 2009-04-09 00:20:52 +04:00
VladimirMangos
f87684bab6 [7640] Move spell and chair height checks to functions for gameobject loading code. Fixed some field ids. 2009-04-08 23:18:17 +04:00
Triply
4ec75c7c9e [7639] Correctly fixed error spam, revert [7637]. Thx to vladimir
Signed-off-by: Triply <triply@getmangos.com>
2009-04-08 19:10:47 +02:00
VladimirMangos
6c19590062 [7638] Move linked trap gameobject template checks at gameobject templates loading to function. 2009-04-08 20:45:58 +04:00
rastikzzz
3f0bef7a32 [7637] Prevent console spam - FATAL: Unknown arena team type %u for some arena team.
Signed-off-by: Triply <triply@getmangos.com>
2009-04-08 18:18:03 +02:00
VladimirMangos
def4351671 [7636] Move lock id checks at GO templates loading to function and add check for all GO types with similar fields. 2009-04-08 18:20:05 +04:00
tomrus88
412a8029ea Removed some outdated comments 2009-04-08 14:54:45 +04:00
Tassader
45438a602f [7635] Spell hit chance cap change to 100% in 3.0.x
(cherry picked from commit cd17dac8d43312751123ee689c314d510b05c6e8)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-08 06:06:44 +04:00
VladimirMangos
3226a22e29 [7634] Fixed: select non-despawnable gameobjects base at appropriate for gameobject type dataN fields.
Many in world gameobject that unexpected daspawned before must now work in more expected way.

In tests i not found any damage to bg gameobject work, and at least this restore expected work for non-bg dorrs//buttons broken
after half-year ago patch (that has been reverted partly in this commit)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-08 05:46:43 +04:00
VladimirMangos
863a747251 [7633] Implement support multiply basic requirements for crireria in achievement_criteria_data.
Also implement additional basic requirements for proper implementing checks for ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE
Req. DB support.
2009-04-08 04:20:26 +04:00
balrok
6b2fd22a9c [7632] more "if"-condition related codestyle in battlegroundfiles
this time with this regex:
sed -i 's/if *( *\(.*\) *)$/if (\1)/' BattleGround*
2009-04-07 17:25:53 +00:00
Triply
73d12d7ccf replaced if( bla ) with if (bla) for applying mangos coding style
replaced it with sed -i 's/if( \(.*\) )$/if (\1)/' BattleGround*
written by triply

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-04-07 16:13:46 +00:00
Triply
c916f78abb [7631] Removed useless method BattleGroundQueue::BGEndedRemoveInvites
Moved method BattleGroundMrg::InvitePlayer to BattleGroundQueue::InviteGroupToBG
Added some comments to RemindInvite and RemoveInvite events.
Optimalise code.

Signed-off-by: Triply <triply@getmangos.com>
2009-04-07 16:23:10 +02:00
Triply
060203749c [7630] Implement MSG_BATTLEGROUND_PLAYER_POSITIONS sending for AB and AV battleground.
Corrected some comments

Signed-off-by: Triply <triply@getmangos.com>
2009-04-07 09:37:24 +02:00
Lightguard
ca5a3d95ca [7629] Update paladin talent 25988 work to 3.0.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-07 06:07:42 +04:00
VladimirMangos
5c7b3e1f50 [7628] Implement .reload for static achievement tables. 2009-04-07 03:11:11 +04:00
VladimirMangos
7d06858866 [7627] Replace built-in in code table by new DB table achievement_criteria_data for store additional data for achievement criteria.
Required DB support.
2009-04-06 23:02:20 +04:00
rastikzzz
e95ba2814d [7626] Fixed: Typo in InitStatsForLevel
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-06 14:41:44 +04:00
VladimirMangos
361e2eba42 [7625] Drop unexpected published debug related include line 2009-04-06 01:51:34 +04:00
VladimirMangos
8b9d57ebcd [7624] Add hack detection for zone of undead's capital. 2009-04-06 01:20:39 +04:00
NoFantasy
b697b05279 [7623] Added: doc/EventAI.txt
Documentation of new `creature_ai_*` db structure.
 Based on ScriptDev2 EventAI.txt
2009-04-06 01:11:44 +04:00
AlexDereka
6bb6ff0f7e [7622] Added creatureAI with related database tables.
Code and concept (also known as EventAI) by ScriptDev2.
Note: database table layout are compatible with original db-scripts.
2009-04-05 23:05:44 +04:00
Lutik
d6223e18f5 [7621] More strong check for 23922 and ranks for add damage
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-05 21:04:52 +04:00
VladimirMangos
2c06d207a7 [7620] Make GCC happy. Restore build at Unix/Linux. 2009-04-05 19:57:08 +04:00
DiSlord
0f23722eb8 [7619] Work under Achievement and AchievementCriteriaCompletion Flags
Remove wrong (not fully correct) check in IsCompletedAchievement

Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-05 19:43:14 +04:00
VladimirMangos
a787741a5a [7618] Fixed: Prevent adding threat to dead creature and for dead target.
Also remove horriable typecast in ThreatManager code and some other cleanups.
2009-04-05 06:38:28 +04:00
VladimirMangos
764c6b5248 [7617] Fixed typo in prev. sql update. 2009-04-05 04:53:11 +04:00
VladimirMangos
dfa2869136 [7616] Implement .debug play cinematic and .debig play movie. Rename .debug playsound to .debug play sound. 2009-04-05 04:36:26 +04:00
VladimirMangos
678be86d67 [7615] Continue sorting chat command function declarations. Move send commands in new .send * subcommand list. 2009-04-05 01:38:02 +04:00
DiSlord
a7df922a7e Just add define for one AchievementFlags
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-05 01:28:27 +04:00