Commit Graph

59 Commits

Author SHA1 Message Date
megamage
4d008f2043 Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
2009-02-04 10:33:18 -06:00
megamage
adee7cab17 *Fix build.
--HG--
branch : trunk
2009-01-28 22:51:12 -06:00
megamage
53e646d230 *Clear combat flag when creature is created. This fix the bug that some creatures do not fight back. Thanks to tlexii for pointing out the bug.
--HG--
branch : trunk
2009-01-28 00:25:06 -06:00
megamage
6de869d8f6 *Fix the bug that event ai mobs sometimes chase victims even when polymorphed.
--HG--
branch : trunk
2009-01-28 00:01:52 -06:00
megamage
beb293383c *Add creature extra flag "immune to taunt" and "charmed ai".
*Fix the bug that creature still use its ai when charmed. Only creature with charmed ai flag can use its ai when charmed.

--HG--
branch : trunk
2009-01-27 15:23:26 -06:00
megamage
f414ab1686 *Update flee and confuse movement.
--HG--
branch : trunk
2009-01-17 00:00:48 -06:00
megamage
ba4338783a *Fix Creature::FallGround. By Silver1ce.
--HG--
branch : trunk
2009-01-16 19:05:30 -06:00
megamage
4b5bca4f0a *setActive(false) when creature dies.
*Fix some script crash bugs.

--HG--
branch : trunk
2009-01-10 10:43:57 -06:00
megamage
2377f49ea8 *Update charm and possess code.
--HG--
branch : trunk
2009-01-08 21:48:38 -06:00
megamage
4296a32f60 *Try to fix the bug that creatures still "spark" after respawn.
--HG--
branch : trunk
2009-01-08 14:41:01 -06:00
Blaymoira
db1a5d4ba0 *Add condition for ghostlands.cpp
*Remove unused creature_movement - by EIFEL

--HG--
branch : trunk
2008-12-26 17:49:45 +01:00
TrullyONE
08fa019253 *Additional movement checks added.
--HG--
branch : trunk
2008-12-24 12:06:25 +02:00
Blaymoira
cce6986e4f *Fix 2 typo
--HG--
branch : trunk
2008-12-23 10:54:13 +01:00
TrullyONE
222999c225 *Fixed creature initialize movement at respawn. Loot and tagging - correct set of dynamic flags.
--HG--
branch : trunk
2008-12-19 05:02:51 +02:00
shadowu@mail.bg
51f0c70b7e *Movement Generators standardization.
- bool GetDestination(&x,&y,&z) added to all movement generators.(it is used by update of players view distance)
- Fixed when creature entering in combat not count this as StoppedByPlayer.
- Random Movement Generator - added support for creating custom spawndist during the game.
- Random Movement Generator - Db spawndist is checked only at initialize(NOT in each sellect of random location).
- Added Random Movement to motion master - it can be called now by MoveRandom(spawndist) e.g. for use in SD2.
- Home and Random movements no more using RespawnCoords(Home Position has implemented)
- Fixed bug when creature is moving on path and enter combat, after that returns to spawn position.
-Typo fix in Confused Movement Generator

--HG--
branch : trunk
2008-12-19 00:37:40 +02:00
shadowu@mail.bg
9948e98703 *Creature formations implemented.
--HG--
branch : trunk
2008-12-15 00:07:21 +02:00
megamage
b6c288ca9f *Update to Mangos 6902. Source: Mangos.
*Skipped rev: rev 6893, some code about waypoint movement.

--HG--
branch : trunk
2008-12-12 11:21:28 -06:00
megamage
39083f4ff8 *Add function SummonTrigger and allow to override its AI.
*Remove some trigger scripts. Use default trigger AI and db data instead.
*Small fix on eagle boss' electrical storm.

--HG--
branch : trunk
2008-12-10 20:25:47 -06:00
megamage
ebf6469fb4 *Merge to solve EOL issue.
--HG--
branch : trunk
2008-12-09 23:06:16 -06:00
MeanMachine@MeanMachine-PC
cc0838459a Featuring a rewritten waypoint movement with more options, optimised code and revamped ingame waypoint control. To convert entries from the old tables manually, please use the PHP script provided at http://www.trinitycore.org/forum/project.php?issueid=830
--HG--
branch : trunk
2008-12-10 06:34:35 +02:00
megamage
ce643187f0 *Update to Mangos 6888. Source: Mangos.
*Major change: Make corpse erase async, Avoid DB access on deleting guild member.
*Skip 6885 because of performance concern.

--HG--
branch : trunk
2008-12-08 16:34:03 -06:00
megamage
087f735251 *Use react state instead of isaggressive. Allow civilian to fight back.
--HG--
branch : trunk
2008-12-07 09:21:12 -06:00
megamage
c5593ef779 *Update to Mangos 6880. Source: Mangos.
*Skip 6878, 6871.
*Main change: change cell size, add is3dDistance for IsWithinDistInMap and isVisibleForOrDetect.

--HG--
branch : trunk
2008-12-06 14:01:44 -06:00
megamage
42b9fabcfb *Fix a typo.
--HG--
branch : trunk
2008-12-01 12:59:39 -06:00
megamage
65db262e95 *Do not allow chain aggro (since it is not official-like).
--HG--
branch : trunk
2008-12-01 10:45:45 -06:00
megamage
bb1ee8a004 *Update to Mangos 6867. Source: Mangos.
*Big changes:
*[6858] Prevent cheating with ignore waiting in login queue.
*[6863] Arena team related clean ups and adding parts of w12x's arena patch.
*Some Config changes and guild changes.

--HG--
branch : trunk
2008-11-30 12:47:26 -06:00
megamage
b591c21659 *Hope this can fix instance respawn bug.
--HG--
branch : trunk
2008-11-26 12:28:36 -06:00
megamage
77b753b452 *Fix the bug that neutral creatures do not fight back.
--HG--
branch : trunk
2008-11-26 11:41:03 -06:00
megamage
99cf79bdf7 *Do not let Steady shot pause autoshot timer.
--HG--
branch : trunk
2008-11-25 17:58:06 -06:00
megamage
f6ea784eda *Update to Mangos 6848. Source: Mangos.
--HG--
branch : trunk
2008-11-25 16:36:50 -06:00
megamage
8d687761bc *Creatures with the same faction should always be friendly to each other. This fix the bug that creatures with the same faction fight earch other.
*Allow "chain effect" when creatures call assistance.

--HG--
branch : trunk
2008-11-23 13:58:06 -06:00
megamage
d6066ce585 *Update creature damage calculation. Make -ap spells have effect on them.
--HG--
branch : trunk
2008-11-22 13:55:11 -06:00
megamage
32485bc5d1 Merge with 284 (54b0e67d97fe).
--HG--
branch : trunk
2008-11-21 19:49:54 -06:00
megamage
fa667cf450 *Alterac Valley. By Bogie and Balrok. Note: some core contents are modified. Will fix them later. Some sql are disabled because of possible conflict with offical DB. Use them at your own risk.
--HG--
branch : trunk
2008-11-21 19:45:49 -06:00
gvcoman
ae8a27bbb7 Merged commit 269 (5f0e38da128a).
--HG--
branch : trunk
2008-11-21 14:34:05 -05:00
megamage
71707df1de *Let creature search nearby target before enter evade mode
*Add function canStartAttack to reduce code in MoveInLineOfSight
*Fix a bug that cancelling bind sight auras may crash the server

--HG--
branch : trunk
2008-11-21 10:07:11 -06:00
megamage
5528b7c512 *Fix the bug that updatepacket is not sent to players.
*TODO: move creature::update to map::update. This requires that move activeobjectlist to map.

--HG--
branch : trunk
2008-11-20 20:28:17 -06:00
megamage
2c95ee4b31 *Add m_isAggressive. Only aggressive creatures will call AttackStart and MoveInLineOfSight.
*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

--HG--
branch : trunk
2008-11-20 18:54:50 -06:00
megamage
1e997b95cc Re-commit 262 due to EOL issues. (no difference from 262)
--HG--
branch : trunk
2008-11-20 16:16:57 -06:00
gvcoman
478ca47083 Delete possessed AI only on creature delete.
--HG--
branch : trunk
2008-11-16 14:38:02 -05:00
visagalis
bfa9e75161 [svn] *** Source: MaNGOS ***
* Implement localization of creature/gameobject name that say/yell. Author: evilstar (rewrited by: Vladimir)
* Fix auth login queue. Author: Derex
* Allowed switching INVTYPE_HOLDABLE items during combat, used correct spells for triggering global cooldown at weapon switch. Author: mobel/simak
* Fixed some format arg type/value pairs. Other warnings. Author: Vladimir
* [238_world.sql] Allow have team dependent graveyards at entrance map for instances. Author: Vladimir

NOTE:
Entrance map graveyards selected by same way as local (by distance from entrance) Until DB support will work in old way base at current DB data.

--HG--
branch : trunk
2008-11-14 17:03:03 -06:00
visagalis
d1e759479b [svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.

--HG--
branch : trunk
2008-11-14 16:28:45 -06:00
megamage
7b23225006 [svn] Disable LOS check in canSeeOrDetect. It has been proved that CPU cannot sustain so much calculation.
--HG--
branch : trunk
2008-11-08 09:03:56 -06:00
megamage
fd3fcb4612 [svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function.

--HG--
branch : trunk
2008-11-07 09:36:46 -06:00
megamage
43910434c5 [svn] Rewrite canSeeOrDetect function.
Minor change on trigger creatures.
Remove some unused hacks in scripts.

--HG--
branch : trunk
2008-11-06 10:27:58 -06:00
gvcoman
44bdb135f4 [svn] Implemented player on player and player on creature possession:
* Implemented packet and vision forwarding through possessed units
* Added new OnPossess script call alerting scripts on when possession is applied/removed
* Moved fall damage and fall under map calculations into the Player class
* Added new PossessedAI that is applied only while possession on creature is active
* Implemented summon possessed spell effect
* Fixed Eyes of the Beast

--HG--
branch : trunk
2008-11-05 20:51:05 -06:00
KingPin
8d331f2b10 [svn] * Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source.
* Better check client inventory pos data received in some client packets to skip invalid cases.
* Removed some unnecessary database queries.
* Make guid lookup for adding ignore async.
* Added two parameter versions of the AsyncQuery function
* Make queries for adding friends async. - Hunuza
* Replace some PQuery() calls with more simple Query() - Hunuza
* Mark spell as executed instead of deleteable to solve crash.
*** Source mangos.

**Its a big commit. so test with care... or without care.... whatever floats your boat.

--HG--
branch : trunk
2008-11-05 20:10:19 -06:00
KingPin
62ed044d08 [svn] *** Source Mangos ***
*Load npc_options at server startup, use cached data at creature gossip menu init.
* Also new .reload table command added
*Implement npc_option localization support, also store in DB BoxText/BoxMoney/Coded
* Use characters.guid instead low guid value from characters.data in charcter enum data prepering for client.
* Fixed crash at .pinfo command use from console.
* Fixed windows ad.exe build
*Creature related code and DB cleanups.
* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.

** Small code changes to make things compliant with above changes.
** Another rev with big changes so test away.

--HG--
branch : trunk
2008-11-05 09:22:56 -06:00
megamage
fc9a14a6cf [svn] Fix 146_world.sql. Do not use default for text. (Ignore this if you have successfully applied 146_world.sql)
Fix HandleAuraModIncreaseHealth, also increase current health.
Merge from Mangos:
2008-11-02 10:53:27 854e0d64e3410b2a1eff6d56705f8e42b4291534 Do not split self caused damage.
(PART) 2008-10-31 12:45:22 e56b671979623570acd358a9b99aa169be22ffba Move tamed pet creating code to new function.

--HG--
branch : trunk
2008-11-04 09:23:06 -06:00
megamage
a1131cdb21 [svn] Provide creature dual wield support.
Update glancing damage formula.
Do not daze creatures when other creatures attack from the back (need to find a better way).
Fix the damage calculation of +damage aura.

--HG--
branch : trunk
2008-10-29 20:00:21 -05:00