Commit Graph

53 Commits

Author SHA1 Message Date
megamage f303ee08c5 *Update spell selection.
--HG--
branch : trunk
2009-05-02 11:28:11 -05:00
megamage 02f56a6ad8 *Fix build.
--HG--
branch : trunk
2009-04-30 23:40:51 -05:00
Chaz Brown d0ffec6592 Change all SD2: to TSCR:
--HG--
branch : trunk
2009-04-24 00:50:59 -04:00
megamage 9378a9cf21 *Add function GetPlayer and GetCreature for scripts. Please try to not use GetUnit in the future.
--HG--
branch : trunk
2009-04-11 13:42:34 -05:00
megamage 146b2560aa *Call stopmoving in moveidle.
--HG--
branch : trunk
2009-03-13 14:42:57 -06:00
megamage 1fbfc6da64 *Assign possessed AI and pet AI to charmed creatures.
--HG--
branch : trunk
2009-03-12 14:15:44 -06:00
megamage 34517a860f *More fix about move flag.
--HG--
branch : trunk
2009-02-23 13:14:04 -06:00
Blaymoira 08b760e953 *Fix a typo in DoZoneInCombat function - by Elron
--HG--
branch : trunk
2009-02-23 16:03:18 +01:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage 3510eb4896 *Remove GAMEOBJECT_LEVEL value for summoned gameobject to fix the bug that some go cannot be used. Please check if this causes other bugs related to gameobject.
--HG--
branch : trunk
2009-02-16 19:09:24 -06:00
megamage 90313ed650 *Add DoCastAOE for script to cast AOE spells. Because AOE spells do not require any target.
*Corresponding update of Kalecgos script.

--HG--
branch : trunk
2009-02-15 13:19:18 -06:00
Blaymoira 32f0fac014 *Small fix in Kalecgos - by darktabbit
--HG--
branch : trunk
2009-02-15 16:55:00 +01:00
Paradox d230302b16 Replace tabs with spaces in more files.
--HG--
branch : trunk
2009-02-09 08:16:34 -05:00
megamage 2aff5260ea *Allow scripts to override SQL and DBC data.
--HG--
branch : trunk
2009-02-05 15:38:24 -06:00
megamage 4d008f2043 Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
2009-02-04 10:33:18 -06:00
megamage 8fee06f041 *AI structure update.
--HG--
branch : trunk
2009-01-30 18:10:05 -06:00
megamage 03234a0657 *Fix some bugged AI which cause creatures enter evade mode repeatedly.
*Let player enter combat when attacked but not hit by creatures.

--HG--
branch : trunk
2009-01-30 01:14:48 -06:00
Blaymoira 50172faf5a *Updated FindCreature and FindGameObject function
--HG--
branch : trunk
2009-01-25 09:57:40 +01:00
megamage 9f1409c557 *Fix a crash bug caused by motionmaster.
*Fix charge movement.

--HG--
branch : trunk
2009-01-17 17:46:28 -06:00
megamage 0f150881a1 *Do not let target get in combat until hit by attacker.
--HG--
branch : trunk
2009-01-16 19:34:49 -06:00
megamage 9b8c50bb3b *Add script function DoGetThreat and DoModifyThreatPercent and check if !pUnit to prevent crash.
*Note: it is always possible that getVictim() becomes NULL during updateAI!

--HG--
branch : trunk
2009-01-09 12:06:08 -06:00
megamage 169dce868b *Allow FindCreature to find pet/guardian/active creatures.
--HG--
branch : trunk
2009-01-05 15:25:35 -06:00
megamage 2641173fbe *Fix a bug in ScriptedAI::SelectUnitList.
--HG--
branch : trunk
2009-01-04 15:27:11 -06:00
Blaymoira a8feadf34c *Fix a typo in DoTeleportAll function - by Iskander
--HG--
branch : trunk
2009-01-03 12:42:23 +01:00
megamage 7422c2b9f6 *Some modifications of FindCreature and FindGameobject functions.
--HG--
branch : trunk
2009-01-01 23:42:11 -06:00
Blaymoira 057d490710 *Changes in FindCreature and FindGameObject function
--HG--
branch : trunk
2008-12-28 18:10:15 +01:00
Blaymoira 89f66acc87 *Changes in function ScriptedAI::DoSay - by Lightguard
--HG--
branch : trunk
2008-12-27 21:27:41 +01:00
Blaymoira ec865f7916 *Implemented new function for Creature and Gameobject searching with gridsearchers - patch provided by Lightguard
*Names:
*Unit* FindCreature(uint32 entry, uint32 range);
*GameObject* ScriptedAI::FindGameObject(uint32 entry);

--HG--
branch : trunk
2008-12-26 13:30:46 +01: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 3a1293ef18 *Update melee range calculation. By QAston.
--HG--
branch : trunk
2008-12-05 18:39:31 -06:00
megamage c72bf6e8c4 *Fix the bug that gouge/scatter shot interrupt self.
*Fix the bug that spams setspeed errors.
*Clean up scripts to delete all lines which may cause crash by removing stealth aura.

--HG--
branch : trunk
2008-11-27 15:19:06 -06:00
megamage 99cf79bdf7 *Do not let Steady shot pause autoshot timer.
--HG--
branch : trunk
2008-11-25 17:58:06 -06:00
megamage f7e5b2ba69 *Implement simple charmed AI for players charmed by creatures.
--HG--
branch : trunk
2008-11-24 17:15:41 -06:00
megamage 46dec5a819 *Fix arcane charge.
*SetInCombatWith in dozoneincombat.

--HG--
branch : trunk
2008-11-24 15:15:09 -06: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 ea68727d27 *Merge from Mangos. Add MapReference. Author: hunuza.
*Also re-commit the patches reverted in 255.

--HG--
branch : trunk
2008-11-18 19:40:06 -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 ee02a2fc84 [svn] Send AttackStart package when update visibility.
Update DoMeleeAttackIfReady to support dual wield.
Show player modelid2 instead id3 of triggers. This should fix the bug that gameobject::castspell summon a human model.
Remove the correct flag to make creature attackable. This should fix the bug that Illidan and Magtheridon are unattackable.
Add NullCreatureAI for trinityscript.
Fix channeler's soul transfer.
Some update of black temple scripts.

--HG--
branch : trunk
2008-11-09 14:54:13 -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 ab1bb3ac76 [svn] Add class SummonList in script to despawn summons. Update Zul'jin script for test.
--HG--
branch : trunk
2008-11-03 10:16:06 -06:00
megamage 5e809c2a6b [svn] Add new function SelectUnit and SelectUnitList to select target or targets with check "isPlayer" and "isWithinDist". Also add target type SELECT_TARGET_NEAREST and SELECT_TARGET_FARTHEST.
SpellEffect Fix for 40802,29364,43723,41931. Patch provided by WarHead.
Update script of Fathom Lord. Patch provided by Blaymoira.

--HG--
branch : trunk
2008-10-28 16:28:42 -05:00
megamage 1f7ff81049 [svn] Make mobs scatter around in melee attack. Patch provided by smellbee.
Fix Join Instance Can Enter while Encounter is in Progress. Patch provided by mknjc.

--HG--
branch : trunk
2008-10-27 08:00:33 -05:00
Seline 5faa23accc [svn] * Revert change to DoZoneInCombat made in [114] as it can cause problems. DoZoneInCombat is NOT meant to be used by creatures that cannot have threatlists or have empty threatlists.
--HG--
branch : trunk
2008-10-26 13:58:39 -05:00
megamage 6fc23ef45e [svn] Update trinityscript to SD2 rev 700. Source: scriptdev2. Patch provided by SLG.
--HG--
branch : trunk
2008-10-25 11:40:10 -05:00
megamage 0a3057972c [svn] Fix a crash caused by gruul script.
Change in EffectSummonWild and DoZoneInCombat.

--HG--
branch : trunk
2008-10-24 17:37:40 -05:00
megamage 672d304a44 [svn] Add Unit::IsWithinCombatDist function to check melee range and spell range (now range is related to the attacker's bounding_radius and target's combat_reach, not sure if both should be combat_reach).
--HG--
branch : trunk
2008-10-19 14:42:12 -05:00
Seline 2265aef916 [svn] * Merge Temp dev SVN with Assembla.
* Changes include:
   - Implementation of w12x's Outdoor PvP and Game Event Systems.
   - Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
   - All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
   - Improved Config cleanup.
   - And many more changes.

--HG--
branch : trunk
2008-10-14 11:57:03 -05:00
Neo2003 95b91afbab [svn] * svn:eol-style native set on all files that need it
--HG--
branch : trunk
2008-10-11 14:16:25 -05:00
Neo2003 1fc5c0d6d7 [svn] * Little fix in RandomMovementGenerator
* Updated to 6731 and 680

--HG--
branch : trunk
rename : 6721-676 => 6731-680
2008-10-06 04:48:59 -05:00
Neo2003 0c3db399c5 [svn] * Moved Script grid_searchers to core
* Moved an enum from sc_creature.h to CreatureAI.h

--HG--
branch : trunk
2008-10-05 11:56:30 -05:00