Commit Graph

242 Commits

Author SHA1 Message Date
Kudlaty
b4cd005f03 Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ids are no longer incorrectly chosen based on player faction.
--HG--
branch : trunk
2009-09-21 07:52:16 +02:00
maximius
0cf75ef9ea *Wintergrasp: Prevent defenders team to click the relic. Patch by Spp.
*Zum'Rah Area Trigger Script, Zum'Rah should become hostile when approached. By totoro.
*Judgement of Light PPM based, not 100%. By Drevi.
*Fix Deflection Exploit. By manuel, thanks to TheNecromancer and Gyullo.
*Correct Wintergrasp Tenacity formulas, by Gyullo.
*A Spirit Guide Escort Quest, code from SD2, patch by manuel.
*TrullyOne/MeanMachine Waypoint System Restored. Patch by XTElite1.

--HG--
branch : trunk
2009-09-19 12:13:08 -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
maximius
0d8ea7cd97 *Some GUID cleanup, don't want any Linux crashes ;) (thanks Zor)
--HG--
branch : trunk
2009-09-09 10:30:14 -07:00
megamage
8efb15c52a *Try to fix the bug that creature does not regenerate after evade.
--HG--
branch : trunk
2009-09-02 12:46:26 -05:00
megamage
d802cd3811 *More update about positions.
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite.

--HG--
branch : trunk
2009-08-29 23:20:16 -05:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
ab5f515f21 *Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
*Other script-related fixes.

--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage
d91903e5b1 *Fix the behavior of mob assistance.
--HG--
branch : trunk
2009-08-27 13:54:57 -05:00
megamage
f16b93d8d8 *Update flame levi script. Fix the bug that it often gets stuck.
--HG--
branch : trunk
2009-08-26 22:56:20 -05:00
megamage
21af4cf832 *Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
2009-08-26 19:28:21 -05:00
megamage
a35991c836 *Add function CanAIAttack
--HG--
branch : trunk
2009-08-26 16:54:59 -05:00
megamage
f13b3f4e58 *Fix the bug that inhabit_air does not make mob fly
--HG--
branch : trunk
2009-08-26 13:38:09 -05:00
megamage
058e6827a6 *Always remove riding aura when exit vehicle.
*Other misc changes.

--HG--
branch : trunk
2009-08-25 23:55:37 -05:00
megamage
d14a4a2372 *Fix the bug that sometimes vehicle is not usable after respawn.
--HG--
branch : trunk
2009-08-25 00:56:23 -05:00
megamage
87270fefc2 *Some update of aura system. Remove unnecessary variables and parameters from auraeffect. Always refer to parent aura when finding target/source/caster.
--HG--
branch : trunk
2009-08-24 22:31:54 -05:00
megamage
5f1589d6d1 *Allow vehicles to regenerate energy.
--HG--
branch : trunk
2009-08-23 22:36:51 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
a6e2196247 *Better mob ai for quest an end to all things.
--HG--
branch : trunk
2009-08-23 16:27:00 -05:00
megamage
4a85a779c1 *Allow to change creature's sight distance because 50 yards are too small for some scripts.
--HG--
branch : trunk
2009-08-23 14:16:03 -05:00
Machiavelli
798ff48c59 * Correctly set SPELLMOD_COOLDOWN for pet cooldowns. By pasdVn.
--HG--
branch : trunk
2009-08-17 14:36:36 +02:00
maximius
b6e7065d41 *Add config option to change minimum level required to Dual Spec
--HG--
branch : trunk
2009-08-15 13:39:40 -07:00
megamage
e03b7cd4d7 *Change react state of guardian back to aggressive. Instead check threat radius in canstartattack to prevent them attack too far target.
--HG--
branch : trunk
2009-08-15 14:30:14 -05:00
megamage
e94295fe42 *Fix function disappearanddie to make creature disappear immediately without death visual.
--HG--
branch : trunk
2009-08-14 22:26:07 -05:00
maximius
2fd68eab44 *Add Dual Spec support, original by EnderGT, thanks to Thyros and XTElite1 for helping me test :)
--HG--
branch : trunk
2009-08-14 17:24:52 -07:00
megamage
1bdc65e5ee *Send area id instead of zone id in local defense channel. By durotar
--HG--
branch : trunk
2009-08-12 07:16:20 -05:00
megamage
e8330e4162 *Update creature damamge formula. Use damage mod in config as total_pct modifier.
--HG--
branch : trunk
2009-08-06 10:38:46 -05:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
megamage
d80754a480 [8204] Avoid call assistance from non-combatants. Author: GriffonHeart
--HG--
branch : trunk
2009-07-24 09:15:52 +08:00
QAston
2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02: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
megamage
77cd4a8cb0 [8058] Avoid use error_log in non-scripting DLL code. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:38:09 -05:00
megamage
fe89fbfbdb [8057] Move code from Event AI to class Creature function for reuse in other scripting cases. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:37:33 -05:00
Machiavelli
605b5670e3 * Update creature damage calculation.
--HG--
branch : trunk
2009-06-22 23:12:53 +02:00
megamage
39d3b492fe *Update creature damage calculation.
--HG--
branch : trunk
2009-06-19 17:13:36 -05:00
megamage
b86ef4c3a8 *Lower creature damage.
--HG--
branch : trunk
2009-06-19 11:17:58 -05:00
megamage
8397da15e5 *Change creature damage calculation.
--HG--
branch : trunk
2009-06-18 20:43:48 -05:00
megamage
c4a8da0e32 [8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI. Author: NoFantasy
--HG--
branch : trunk
2009-06-18 17:05:01 -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
d805e89091 *Update creature melee damage calculation.
--HG--
branch : trunk
2009-06-17 13:34:49 -05:00
megamage
c6765f9365 *Allow to force to respawn creatures.
*Save creature data for vehicles.
*Change some visibility update sequence of respawned creatures.
*Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase

--HG--
branch : trunk
2009-06-17 01:01:39 -05: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
572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
megamage
b9610f27dd *Check movementflag to interrupt casting instead of checking position.
*Also some other fixes about movement flags.

--HG--
branch : trunk
2009-06-15 12:02:55 -05:00
megamage
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
Machiavelli
1c97b2bf79 Merge
--HG--
branch : trunk
2009-06-11 17:56:20 +02:00
Machiavelli
6eaf6e962a * Change name of recently added scriptAI functions to better reflect purpose
* Fix typo in 3910_world.sql, spotted by irish

--HG--
branch : trunk
2009-06-11 17:54:59 +02:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00