Commit Graph

20613 Commits

Author SHA1 Message Date
Kinzcool
6d9bd3dfd8 DB/Quests: Corrected a typo, because typos suck. 2014-02-19 22:20:39 -05:00
Aokromes
3f6cc339a0 DB/Quest: Update OfferRewardText for quest 396
Notice: i realize of the typo, but wowhead shows that text, if anyone have a prof of it's wowhead typo i will fix it.
Closes #11534
2014-02-20 04:13:52 +01:00
Aokromes
6d396eb615 DB/Creature: Commander Hogarth must be male human.
Closes #11581
2014-02-20 02:24:19 +01:00
Aokromes
537a6df782 DB/Misc: Coding standards 2014-02-20 02:08:51 +01:00
Aokromes
160d02461f DB/Misc: Fix more startup errors
By Fateswhisper and me. Updates #11587
NOTE: ref "Missing WDB data." we have more of those and since i don't fill WDBVerified it's correct.
2014-02-20 02:00:12 +01:00
Aokromes
419287e4bd DB/Misc: Fix some startup errors
Updates #11587
2014-02-20 01:37:47 +01:00
Duarte Duarte
27d69cfcc8 Core/Chat: Fix BuildChatPacket calls so scripts that use OnPlayerChat can actually change the text
Closes #11625
2014-02-18 17:34:41 +00:00
Aokromes
873bf28c8e Misc Move file to proper place 2014-02-18 14:57:30 +01:00
Aokromes
29027a1375 DB/Creature: Correct Felmist gas cloud model 2014-02-18 00:19:03 +01:00
Aokromes
61096a6a93 Merge pull request #11616 from Ascathor/master
Core/LFR: Fix a theoretical error with item_level
2014-02-17 14:29:36 +01:00
Ascathor
c223b88da2 Core/LFR: Fix a theoretical error with item_level
Despite the check never happening (player->GetAverageItemLevel() < 0 is impossible), it is more efficient.
Also improves codestyle consistency. Original fix by @emsy.
2014-02-17 01:22:45 +01:00
Aokromes
52ac656792 DB/Reputation: Fix Oracle and Frenzyheart Tribe reputation
Closes #11106
2014-02-16 22:59:54 +01:00
Aokromes
4c9949d3e2 DB/Creature: Delete some double spawns
Updates #1515
2014-02-16 10:56:42 +01:00
Aokromes
ecdf304f57 DB/Creature: Fix another trigger visible to players 2014-02-16 01:37:55 +01:00
Aokromes
3d8078322e DB/Creature: spawn Stabled Argent Warhorse
By Foldor, closes #11479, updates #11043
2014-02-16 01:28:17 +01:00
w1sht0l1v3
50d99005a5 Scripts/Ulduar: Fix Algalon the Observer outro phase(fixes kill credit and some achieves). 2014-02-16 02:27:44 +02:00
joschiwald
cb237a4bc2 Core/PlayerDump: fix mail items and gifts export 2014-02-13 23:16:49 +01:00
jackpoz
006d72a828 Core/MMAPS: Fix invisible wall issue in MMAPS.
Fix invisible wall issues in MMAPS caused by tile connections not being extracted correctly.
This reverts aa645683b8 and restores an old version of recastnavigation, most likely 1be9de72d8 .

Re-extracting MMAPS is required.
2014-02-13 22:19:56 +01:00
Aokromes
b9db1ab24e DB/Quest: Fix 3 quests texts
By MrSmite, closes #11585, closes #11582
2014-02-12 11:27:34 +01:00
Aokromes
96c50c424c DB/Items: Fix some startup errors
By Fateswhisper, updates #11587
2014-02-11 15:14:02 +01:00
jackpoz
1aada1f5ef Merge pull request #11584 from Dehravor/group
Group related fixes
2014-02-10 19:49:38 +01:00
joschiwald
b72273014f Core/DB/Achievements:
- fixed arena season title achievements and rewards
- added mailtemplate support for `achievement_reward` table
- fixed typo in GetBattleMasterBG which causes achievement reward mail expire in 1 day

Ref #8777
2014-02-10 00:14:29 +01:00
Vincent_Michael
a5a6799b4e Scripts: Added missing stuff in 1d1aeda86c 2014-02-09 19:15:17 +01:00
Vincent_Michael
1d1aeda86c Core: Fix build 2014-02-09 19:01:56 +01:00
joschiwald
6688370513 Merge pull request #11457 from MitchesD/krikthir
Scripts/Krikthir the Gatewatcher: converted to EventMap and small optimalization
2014-02-09 18:46:26 +01:00
MitchesD
a127c0e1a7 Scripts/Krikthir the Gatewatcher: converted to EventMap and small optimization 2014-02-09 18:41:37 +01:00
Aokromes
a352e5b8e7 DB/Creature: Fix another trigger visibility
Updates #5182, by mweinelt
2014-02-09 18:12:03 +01:00
Aokromes
0f82a5fa8b DB/Creature: Fix more triggers visibility
Closes #8178
2014-02-09 17:41:23 +01:00
Aokromes
18823bc06e DB/Creature: Fix more triggers visibility
If anyone can post a complete list of triggers visible to players but no to gms create a ticket with them, thx.
2014-02-09 16:31:18 +01:00
jackpoz
7a188c8685 Core/SAI: Fix assertion in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST
Fix assertion triggered in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST if max entry is less than min entry
2014-02-09 16:09:09 +01:00
Aokromes
2974057cd7 DB/Creature: Fix another trigger visibility
They where visible to players and invisible to gms.
2014-02-09 15:49:43 +01:00
Dehravor
08cd624d0c Core/Group: Any party member may mark targets (this does not apply to raid groups)
Also ensure that the targeted player is not hostile.
2014-02-09 11:12:09 +01:00
Dehravor
2e897d0453 Core/Group: Fix exploit
The master looter should be in the group.
2014-02-09 10:58:51 +01:00
Aokromes
6eac6ec515 DB/Creature: Fix trigger visibility
They where visible to players and invisible to gms.
2014-02-09 10:53:49 +01:00
Dehravor
916d84bdca Core/Group: Add sanity checks to CMSG_LOOT_METHOD's handler
If lootMethod or lootThreshold is invalid, portrait menus become unusable to the entire raid.
2014-02-09 10:51:11 +01:00
Kinzcool
94b912f7a6 DB/Items: Added "few" missing items. 2014-02-08 16:58:13 -05:00
jackpoz
28946ac5db Core/SAI: Improve error log
Log both target and current Object when checking if a Creature/GameObject have SmartAI enabled.
2014-02-08 22:38:29 +01:00
jackpoz
dbed818f6f Core/SAI: Fix crash
Disable script type SMART_SCRIPT_TYPE_TIMED_ACTIONLIST actions if they are trying to overwrite the timed action list while iterating it.
This was invalidating the iterator and deleting any smart action stored in it, including the current executed one.

Valgrind log:
 Invalid read of size 1
  at SmartScript::OnUpdate(unsigned int) (SmartScript.cpp:3258)
  by SmartAI::UpdateAI(unsigned int) (SmartAI.cpp:331)
  by Creature::Update(unsigned int) (Creature.cpp:544)
 Address 0x1807d9b2 is 10 bytes after a block of size 40 alloc'd
  at operator new(unsigned long) (vg_replace_malloc.c:319)
  ...
  by SmartAIMgr::LoadSmartAIFromDB() (SmartScriptMgr.cpp:231)
  by World::SetInitialWorldSettings() (World.cpp:1724)
  by Master::Run() (Master.cpp:169)
  by main (Main.cpp:142)
2014-02-08 21:59:35 +01:00
jackpoz
aaa4b3a124 Scripts/Eastern Plaguelands: Fix flypath exploit
Fix npc id 17209 in Eastern Plaguelands enabling taxi cheat to players just by talking to it.
2014-02-08 17:22:29 +01:00
jackpoz
fdc71114ef Merge pull request #11580 from Dehravor/warden
Core/Warden: Fix crash

Fix NULL dereference crash in case Warden is disabled (in configs or on Mac OS X platform) and client sends a CMSG_WARDEN_DATA opcode
2014-02-08 11:55:50 +01:00
jackpoz
592b57a251 Shared/Logs: Code cleanup
Remove unneeded check added in 89af6097f3
2014-02-08 11:35:25 +01:00
Dehravor
12cafcf96b Core/Warden: Fix crash 2014-02-08 09:33:51 +01:00
jackpoz
89af6097f3 Shared/Logs: Make AppenderFile more thread-safe
In case of dynamic file names don't store the FILE* handle in a shared class variable but keep it only at function scope.

Valgrind log:
  at _IO_un_link (genops.c:69)
  by fclose@@GLIBC_2.2.5 (iofclose.c:55)
  by AppenderFile::CloseFile() (AppenderFile.cpp:94)
  by AppenderFile::_write(LogMessage const&) (AppenderFile.cpp:66)
  by Appender::write(LogMessage&) (Appender.cpp:102)
  by Logger::write(LogMessage&) const (Logger.cpp:63)
  by Log::write(LogMessage*) (Log.cpp:279)
  by Log::vlog(std::string const&, LogLevel, char const*, __va_list_tag*) (Log.cpp:267)
  by Log::outMessage(std::string const&, LogLevel, char const*, ...) (Log.h:129)
Address 0x2a1bd2d0 is 0 bytes inside a block of size 568 free'd
  at free (vg_replace_malloc.c:468)
  by fclose@@GLIBC_2.2.5 (iofclose.c:85)
  by AppenderFile::CloseFile() (AppenderFile.cpp:94)
  by AppenderFile::_write(LogMessage const&) (AppenderFile.cpp:66)
  by Appender::write(LogMessage&) (Appender.cpp:102)
  by Logger::write(LogMessage&) const (Logger.cpp:63)
  by Log::write(LogMessage*) (Log.cpp:279)
  by Log::vlog(std::string const&, LogLevel, char const*, __va_list_tag*) (Log.cpp:267)
  by Log::outMessage(std::string const&, LogLevel, char const*, ...) (Log.h:129)
2014-02-07 23:35:03 +01:00
jackpoz
672e06a951 Shared/Logs: Add workaround for "w" flag used with dynamic name files
Ignore "w" flag and always use "a" for log files with dynamic name since the file handle is created at every log line and "w" would delete any other logged line from previous _write() calls.
The best solution would be to overwrite only at first call and append at any other call.
2014-02-07 22:23:24 +01:00
Vincent_Michael
79e30bbda4 Revert "DB/Misc: A lucky bag random fixes"
This reverts commit 3fcb1bf091.
2014-02-07 18:43:16 +01:00
Vincent_Michael
b76e2db32e SQL: Maybe I'll have more luck :( 2014-02-07 17:32:38 +01:00
Vincent_Michael
3fcb1bf091 DB/Misc: A lucky bag random fixes 2014-02-07 17:10:59 +01:00
joschiwald
b9074f3491 Core/Achievements: rename some AchievementCriteriaDataTypes to keep consistent 2014-02-06 23:28:51 +01:00
jackpoz
84e73448f2 Core/Spells: Possible crash fix
Get Unit target with the proper method instead of retrieving Object target and then casting it to Unit, possible dereferencing NULL.
Updates #11560
2014-02-06 22:11:06 +01:00
jackpoz
20a1f4d28e Core/CrashHandler: Add more informations about locals
Handle SymTagData with inner type of SymTagPointerType.
Increase buffer sizes to avoid buffer overflows.
Avoid infinite loops by logging the children of each type only once.
Avoid too deep nesting by adding a max nesting level.
Print the address for arrays instead of just the name.
2014-02-06 22:07:12 +01:00