Commit Graph
532 Commits
Author SHA1 Message Date
QAston 8b057babf2 *Fix typo in r7dd45a018254, thanks to Shauren for narrowing the falling issue to that rev.
--HG--
branch : trunk
2010-08-13 20:53:33 +02:00
click e413f20069 Core/Chat: Fix some typos and non-converted #if-statements
--HG--
branch : trunk
2010-08-13 18:02:59 +02:00
Spp 3e29ae1ee8 Dungeon Finder: Add vote kick support
--HG--
branch : trunk
2010-08-13 15:38:10 +02:00
Shauren 55705e91d4 Buildsystem: Modified genrev to properly generate build type string (Release/Debug etc.)
Removed code that should not be there from previous revision

--HG--
branch : trunk
2010-08-13 13:53:33 +02:00
Shauren 30468a106f Moved battleground achievement scripted checks into scripts
Call ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL updates in code
Implemented achievements: Save the Day, Quick Cap, Warsong Expedience

--HG--
branch : trunk
2010-08-13 13:48:59 +02:00
azazel 9bd2619425 Fixed memory leaks at guild unload/disband (author: porteyoplait)
--HG--
branch : trunk
2010-08-13 17:39:43 +06:00
Spp 0f378aac24 Dungeon Finder: Fix Teleport issues
- Trying to leave the dungeon using the portal will teleport you back to the save point
- If group is disbanded all people is teleported out

--HG--
branch : trunk
2010-08-13 09:24:24 +02:00
Spp 4558ac1d2a Fix typo in previous commit that broke Dungeon Finder
--HG--
branch : trunk
2010-08-13 08:54:01 +02:00
Spp 663bd9404a Dungeon Finder: Change ASSERT with returns wherever is possible. If it affects packets then make sure it fills the correct data.
Thanks to a553r7fa1|3d for spotting the packet problem

--HG--
branch : trunk
2010-08-13 08:06:04 +02:00
Machiavelli b98874fce0 Make access to ObjectMgr´s creature and gobject respawntime storage threadsafe.
(TODO: Maybe this should be stored on map level instead)
Fixes issue #3006
Fixes issue #3071

--HG--
branch : trunk
2010-08-13 01:16:50 +02:00
Spp 999bae68a4 Add null check to prevent a crash.
Closses issue 3405

--HG--
branch : trunk
2010-08-12 20:31:49 +02:00
azazel ed08bedc6e * Modify PlayerScript::OnChat hook. Now it takes one optional parameter of type void *. Value of this parameter depends on chat type.
* Modify chat and emote hook in PlayerScript to take Player parameter insted on WorldSession (this is player script, isn't it?)
* Move calls of OnChat hooks after validation of parameters and before actual call to chat methods. It's more logical because otherwise it will be necessary to repeat validation inside hooks.
* Make use of new PlayeScript hooks. Move chat logging logic into separate script.
* Add one path to scripts CMakeLists to make ChatLogScript happy.

--HG--
branch : trunk
2010-08-12 22:33:45 +06:00
azazel f8eed4da58 Add checks to prevent some player stats from overflowing thus making such exploits as 65k SP impossible.
This change affects such stats as spell power, feral AP, mana regen and health regen.

--HG--
branch : trunk
2010-08-12 22:07:56 +06:00
QAston a630f78c98 *Remove transports from world on MapManager delete - thanks to click for help.
--HG--
branch : trunk
2010-08-12 18:06:40 +02:00
Shauren 087b273ad3 Added possibility to start timed achievements with already lost time (will be used in battlegrounds)
--HG--
branch : trunk
2010-08-12 13:38:31 +02:00
azazel c6b4309f1e * Unsummon pet if direct control spell expire out of visibility range from owner (base on VladimirMangos changes)
* Move repeating code to separate method

--HG--
branch : trunk
2010-08-12 12:14:32 +06:00
silinoron c7b48c1ca9 Add PlayerScript hooks:
* OnMoneyChanged
* OnGiveXP
* OnReputationChange
* OnChat
* OnEmote
* OnTextEmote

--HG--
branch : trunk
2010-08-11 22:53:31 -07:00
silinoron ce29cfa7f7 Fixed linker errors caused by my foolishness.
--HG--
branch : trunk
2010-08-11 21:24:09 -07:00
silinoron 0963cb3aea Implement a PlayerScript class with a handful of new hooks:
* OnPVPKill
* OnCreatureKill
* OnPlayerKilledByCreature
* OnPlayerLevelChanged
* OnPlayerFreeTalentPointsChanged
* OnPlayerTalentsReset
* More hooks may be added in the future

--HG--
branch : trunk
2010-08-11 19:52:58 -07:00
Spp eec9212ee4 Dungeon Finder: Fix bad dungeon selection being show at offer continue rolechecks
--HG--
branch : trunk
2010-08-12 00:02:15 +02:00
Spp 5b1b713aa6 Dungeon Finder: Fix rolechecks. All checks with less that 5 players were being rejected
--HG--
branch : trunk
2010-08-12 00:06:53 +02:00
Spp f482bb1cd5 Dungeon Finder: Fix proposal window dungeon display
--HG--
branch : trunk
2010-08-11 17:31:34 +02:00
Spp c53bec73f1 Dungeon Finder: Use DisableMgr and dungeon Saves in dungeon lock list
--HG--
branch : trunk
2010-08-11 16:17:05 +02:00
Spp 41534a1324 Dungeon Finder: Add proposals, find group algorithm and teleport support
Note: Adds hability to find a group and be teleported to dungeon, but no rewards yet (WIP)

--HG--
branch : trunk
2010-08-11 15:55:27 +02:00
Spp f9468e7e5d Dungeon Finder: Add LFG support to groups
--HG--
branch : trunk
2010-08-11 15:20:20 +02:00
Spp 23c4b1be25 Dungeon Finder: minor improvements and code clean-ups
- Initialize all packet size properly
- Updated all function documentation
- Add placeholders to all LFG opcodes
- Use lowguids wherever is possible

--HG--
branch : trunk
2010-08-11 13:25:14 +02:00
Spp ac4df5204b Dungeon Finder: Improve Join and UpdateRoles and move queue to main class
--HG--
branch : trunk
2010-08-11 12:44:49 +02:00
Spp 4b62042b28 Dungeon Finder: Make player internal Lfg data private and some minor cleanups
--HG--
branch : trunk
2010-08-11 11:54:03 +02:00
Spp 2638d24926 Dungeon Finder: redo CheckGroupRoles, sometimes it was accepting wrong roles as valid
--HG--
branch : trunk
2010-08-11 11:27:36 +02:00
Shauren 36d1405b52 Fixed bug allowing players to enter instance even if selected difficulty was disabled
Added map id to log when player tries to enter disabled map

--HG--
branch : trunk
2010-08-10 19:40:35 +02:00
Shauren 88965d9419 Fixed honor points and arena points displaying in currency tab
Currencies lost (spent all in vendor) are not removed from known currencies tab, they now display 0 count

--HG--
branch : trunk
2010-08-10 13:26:07 +02:00
click a8303b38e6 Merge
--HG--
branch : trunk
2010-08-09 23:17:02 +02:00
click 816acb11a4 BuilSystem: Clean up some small but annoying things from my earlier commits:
- return to using default CMake buildconfiguration (release, relwithdebinfo, debug, minsizerel
  Note: These are not yet populated as buildmodes : relwithdebinfo / minsizerel (will be created later)
- change it so that genrev creates revision.h properly (after genrev has been compiled successfully)
- split scripts/game PCH creation depending on which part a user wants to compile (default on) (thanks shauren)

--HG--
branch : trunk
2010-08-09 23:14:16 +02:00
XTZGZoReX cecb8117d5 Aaand, finally, scripting is working. Thanks to Derex for helping with debugging/suggestions.
--HG--
branch : trunk
2010-08-09 16:07:03 -05:00
click 4b5c9552cb BuildSystem/Windows: Add RelWithDebInfo configuration-type (reverts previous commit for fixups with RelWithDebInfo buildtype)
+ Stuff revision.h in under genrev project (yay, another project removed from projectlist)

--HG--
branch : trunk
2010-08-09 21:36:03 +02:00
click 3d48c480ce Fix: append a .c_str() on a variable in Spell.cpp (no more grumpy compilers) - Thanks to StormByte for the heads up
Fixes issue 3343

--HG--
branch : trunk
2010-08-09 20:20:55 +02:00
XTZGZoReX 70fc93da7b * Get rid of virtual function calls completely, seeing as they weren't necessary. Thanks to Ge0rG and Derex for enlightening me about this.....
* Also add map ID for EoE instance script (thanks Silinoron).

--HG--
branch : trunk
2010-08-09 19:53:21 +02:00
Brian 1f52153410 Backed out changeset f751065ec933
Spell rep rate was already implemented by QAston

--HG--
branch : trunk
2010-08-09 11:33:31 -06:00
azazel f5399618d9 Implement reputation rates and aura effects for Spell::EffectReputation() (thanks Lynx3d)
--HG--
branch : trunk
2010-08-09 23:22:31 +06:00
azazel 5643dee52f Avoid explicit client max level use for selction of bg/arena bracket.
This allows to use brackets like 85-89 existing for some maps
(if server allows levels more than 80) (thanks VladimirMangos)

--HG--
branch : trunk
2010-08-09 23:09:36 +06:00
azazel 464c0c1611 * Process GAMEOBJECT_TYPE_FISHINGHOLE in normal way as for other GO's (thanks NoFantasy)
* Improve process for Use() of GAMEOBJECT_TYPE_SUMMONING_RITUAL (thanks NoFantasy)

--HG--
branch : trunk
2010-08-09 22:50:30 +06:00
XTZGZoReX 099b66a899 * Fixed issue in OutdoorPvPMgr::LoadTemplates. (Note to self: don't take the address of a temporary, damnit)
--HG--
branch : trunk
2010-08-09 14:58:50 +02:00
XTZGZoReX a038772b3e * Remove Player::SetSession (obsolete and dangerous function).
* Speed up map script searches (avoid redundant loops).
* Fix linking errors for ScriptObject::RegisterSelf.

--HG--
branch : trunk
extra : rebase_source : 2ba48fdab4e119c6de7fe64e47c5b8115fdac1b5
2010-08-09 11:07:23 +02:00
Shauren 4392b95703 Fixed scriptName check in achievement_criteria_data loader
--HG--
branch : trunk
2010-08-09 10:56:59 +02:00
QAston fa8a826656 *(More) correct implementation of SPELL_EFFECT_PULL_TOWARDS_DEST(145)
--HG--
branch : trunk
2010-08-09 02:31:42 +02:00
QAston 910864c856 *Missing ScriptName column in achievement_criteria_data loader.
--HG--
branch : trunk
2010-08-09 00:12:54 +02:00
Shauren ede953500b Fixed line endings in 9237_world_outdoorpvp_template.sql
Remove no longer existing scripts from ScriptLoader

--HG--
branch : trunk
2010-08-08 22:57:07 +02:00
XTZGZoReX 93bca275aa * Fix possible crash, thanks to Machiavelli for spotting it.
--HG--
branch : trunk
2010-08-08 22:02:11 +02:00
azazel e5c797cef6 * Fix remaining errors in scripts project
* Remove now obsolete ScriptedInstance.h file

--HG--
branch : trunk
2010-08-09 00:56:10 +06:00
QAston 617a56ba29 *Implement spell casting on transports (no more out of range error, etc)
*Add MO transports to ObjectAccessor storage
*Add functions Position::RelocateOffset and Position::GetPositionOffsetTo to help offset manipulations - BIG thanks to azazelkon for creating formulas!
*Add function to output debug info for MovementInfo and SpellCastTargets
*Throw ByteBufferException on incorrect packGUID read
*Add rfinish function to finish bytebuffer read.

--HG--
branch : trunk
2010-08-08 20:32:14 +02:00