Commit Graph

132 Commits

Author SHA1 Message Date
win32
bf2c3fd8cf MaNGOS merge: Mail System.
* Store loot in mail_loot_template indexed by mail template ids.
* Implement proper creating mail text copy item from mail template based mail.
* Move send functions to new MailDraft class from WorldSession.
* Implement mails sending at player levelup.
* Autor VladimirMangos, converted by me.

--HG--
branch : trunk
2009-12-16 18:58:36 +02:00
Machiavelli
f6d80f9da4 Fix some issues with fishing. Closes #421, patch by make_the_king
--HG--
branch : trunk
2009-11-30 16:54:33 +01:00
Kudlaty
9bd797d402 Apply #412.
Add support to gameobject type Transport (11) that should stop like Orgrimmar arena Elevators or pilars.
Patch by Spp and Opterman

--HG--
branch : trunk
2009-11-27 01:41:26 +01:00
maximius
c767576d92 *Cleanup, more consistant HandleDummyAuraProc code (added basepoints1 and basepoints2 and edited some spell cases to use these instead of more hacky custom methods..)
--HG--
branch : trunk
2009-11-21 17:59:24 -08:00
maximius
1d7f2fc243 *Update WorldSession::HandleMovementOpcodes with some new information on how vehicles behave, and do a little bit of cleanup.
--HG--
branch : trunk
2009-11-03 22:28:04 -08:00
maximius
b257a28fa9 *Cleanup, fix many cases of unoptimized loops, potential crashes, excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on..
*Proper Maexxna Web Spray locations (old locations sent players flying into the air)

--HG--
branch : trunk
2009-11-01 17:53:07 -08:00
maximius
12622ee1a2 *More precise method for determining whether or not a seat is occupied (disregarding object size).
--HG--
branch : trunk
2009-10-28 20:05:20 -07:00
maximius
f4d76b8216 *Implement new LootMode system, and add some basic support in boss_sartharion.cpp. Requires database support.
--HG--
branch : trunk
2009-10-28 16:31:19 -07:00
maximius
d5b8ad0080 *One player per slot on bench/chair, original patch by Trojan for TC1.
--HG--
branch : trunk
2009-10-28 15:59:45 -07:00
maximius
d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -07:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
Machiavelli
a3de0f7ba0 * Fix bug that caused a 100% chance to increase fishing skill on fishing regardless of area.
--HG--
branch : trunk
2009-10-06 21:01:20 +02:00
Machiavelli
1bd3f9604c * Allow players to get fishing skillups from fishing in any area, no more "your fish got away" message. However still need core support to manipulate fishing loot based on fishing skill.
--HG--
branch : trunk
2009-10-06 00:52:09 +02:00
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
Kudlaty
8c255266e7 Fix some issues with game object create according to last patch. Thx to NoFantasy and DearScorpion
--HG--
branch : trunk
2009-09-04 05:11:27 +02:00
Kudlaty
2465ef00a2 Fix bug with going trough things on login. Thanks to Opterman and Nofantasy
--HG--
branch : trunk
2009-09-03 23:40:14 +02:00
megamage
5b9868f468 *Combine gobject::deleteobjectwithowner and delete
--HG--
branch : trunk
2009-09-02 14:52:52 -05:00
megamage
83ea85f9e4 *Fix a typo that makes buildings in wintergrasp can never be destroyed and titan relic cannot be clicked.
--HG--
branch : trunk
2009-08-31 23:01:38 -05:00
megamage
054e4ceceb *Wintergrasp: give honor for every captured workshops in the end of the battle.
--HG--
branch : trunk
2009-08-21 16:12:30 -05:00
megamage
49abc30089 *Display max veh number and capture point banner in wintergrasp.
--HG--
branch : trunk
2009-08-21 12:31:52 -05:00
megamage
012d6fa865 [8381] Some refactoring work in Unit::m_currentSpells code. Author: VladimirMangos
* Restrict access, use enum args, move some repeated code parts to function.
    * Make m_selfContainer set only part of Unit::SetCurrentCastedSpell

--HG--
branch : trunk
2009-08-19 16:52:51 -05:00
QAston
d8554f60be Fix negative spawntimesecs handling in gameobjects - they now start off unspawned and disappear correctly upon despawn (even if PCs aren't moving)
Quest 308 changed to not require completion of 403 (offi does not have 403 as quest, just a gossip)
Quest 308 finish script changed to show unguarded barrel earlier (as it does in offi)
Author of all of these: totoro.

--HG--
branch : trunk
2009-08-17 13:58:43 +02:00
megamage
0d80df4e58 *Add assert back to go::setownerguid
--HG--
branch : trunk
2009-08-08 12:40:20 -05:00
megamage
58dc6e180b [8320] Imporovements in wild summoned gameobjects work. Author: VladimirMangos
* Not set owner for will summoned gameobjects.
      Its not expected to have owner, and must be accessable to all players (or team).
    * Set for all objects summoned by spells: despawned by deafult for proper despawn withut owner.
    * Cleanup Spell::EffectSummonObjectWild.

--HG--
branch : trunk
2009-08-08 12:25:20 -05:00
QAston
f93830e0ae *Add DeleteObjectWith owner function for gameobject deletion with updating owner object list
*Cleanups in Aura 1852 and recenlty added glyph code.

--HG--
branch : trunk
2009-08-03 14:52:30 +02:00
QAston
aa60def6ac *Teleport player to homebind if instance can't be created in WorldSession::HandleMoveWorldportAckOpcode.
--HG--
branch : trunk
2009-08-01 20:23:23 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
megamage
0a2af88cb4 [8252] Move DB scripting code from global World to Map. Author: Ambal
This one more step to pre-map events proccesing and parallel in future.

    [8256] Restore DB script loading broken after [8252]. Author: VladimirMangos

    Also propetly decrease scheduled DB script actions at map unloading.
    Some code style restore.

--HG--
branch : trunk
2009-07-31 10:48:34 +08:00
megamage
68134b847c [8205] Really use trap GO charges and avoid casting in despawned state. Author: VladimirMangos
* Drop horribale hack with stored charges amount, use instead GO info charges data as expected.
    * Count trap activations as charge uses if it have limited charges.
    * Check trap reactions only in ready spawned state.

--HG--
branch : trunk
2009-07-24 09:33:56 +08:00
megamage
e152ff8ec5 [8183] Some gameobject despanw related fixes Author: VladimirMangos
* Implement use `consumable` field in gameobject template for gameobject required explcit despawn at use.
    * Move gameobject template fields cech function from Gameobject to gameobject template class, and update callers.
    * Cast spells at gameobject use with gameobject guid as original caster guid, as already used in some other cases. (skipped)

--HG--
branch : trunk
2009-07-16 12:06:07 +08:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
QAston
f5eb5dba7c *Add an Assert to trac where GO pointer is getting corrupted.
--HG--
branch : trunk
2009-07-12 22:08:32 +02:00
QAston
04a39ce6df *Fix sniper training - by Astellar.
*Correct GO delete call in Gameobject::Update.

--HG--
branch : trunk
2009-07-12 13:38:38 +02:00
megamage
b5d802b70c [8151] Fixed some format warnings and typos. Author: Win32
--HG--
branch : trunk
2009-07-12 17:52:27 +08:00
Destalker
ff7a90db5f *Allow Illumination to proc on Holy Shock.
--HG--
branch : trunk
2009-07-11 21:32:41 +02:00
QAston
6af0b55dd7 *Fix compile - sorry for that:/.
--HG--
branch : trunk
2009-07-10 16:29:43 +02:00
QAston
5afb67e7da Backed out changeset 07af7c674639
--HG--
branch : trunk
2009-07-08 14:29:40 +02:00
bigjohnson4
7d39f4ab22 *Fix client crash with barbershop chair
--HG--
branch : trunk
2009-07-06 17:03:08 +02:00
QAston
6af144277d *Temporary fix for crash caused by object list update.
--HG--
branch : trunk
2009-07-04 21:07:06 +02:00
megamage
4a8a89e1db [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
* IsInWorld used to prevent return unexpected not in world objects.
    * Delayed operations need to process its in world state.

--HG--
branch : trunk
2009-07-01 18:36:03 -05:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
f53b049759 *Fix a crash caused by passive traps.
--HG--
branch : trunk
2009-06-15 09:49:16 -05:00
QAston
f874ca629e *Set target guid as original caster guid for GO casts.
--HG--
branch : trunk
2009-06-13 14:01:10 +02:00