Commit Graph

49 Commits

Author SHA1 Message Date
megamage
7f6926dd3b [8235] Fixed typos in ACTION_T_SET_INVINCEABILITY_HP_LEVEL. Author: VladimirMangos
Thanks to Zor for pointing.

--HG--
branch : trunk
2009-07-30 10:56:15 +08:00
megamage
3926cb174b [8233] Implement new EventAI action ACTION_T_SET_INVINCEABILITY_HP_LEVEL. Author: VladimirMangos
Action set min. health value that can be set for creature in result damage apply.
    It can be used in duel like events with creatures to prevent killing creature and other
    cases when creature must avoid damage at some health level while it used.

--HG--
branch : trunk
2009-07-30 10:53:16 +08:00
QAston
4a17224a65 *Creature eventAI cancast power check - by smellbee.
--HG--
branch : trunk
2009-07-23 18:32:32 +02:00
megamage
aff3744e1a [8146] Fixed handling of eventchance for CreatureEventAI. Author: ApoC
Check event chance after timers advances othewise event is
    not scheduled to next time period and event chance is again
    checked on next AI update.

--HG--
branch : trunk
2009-07-12 17:43:22 +08: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
megamage
8adfaceadf *Some cleanup of eventAI.
[8046] Use float for store AttackDistance as expected by using calls. Author: NoFantasy
[8045] Cleanup expression. Author: VladimirMangos

--HG--
branch : trunk
2009-06-19 17:34:24 -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
megamage
208fbe220d [8018] Implement EVENT_T_BUFFED and EVENT_T_TARGET_BUFFED for creature EventAI. Author: VladimirMangos
Its can be used for check specific spell auras stack size for event triggering.
[8017] Always reset creature EventAI phase at creature death.

--HG--
branch : trunk
2009-06-15 23:10:06 -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
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
megamage
853432b201 *Fix a bug that creature ignore LOS in assistance case.
--HG--
branch : trunk
2009-06-09 19:55:15 -05:00
megamage
8bb75918a8 [7951] Mope call for help code to function form Event AI code to allow use it from C++ scripts also. Author: NoFantasy
--HG--
branch : trunk
2009-06-04 16:10:26 -05:00
megamage
067cbec40d [7922] Implement param2 for ACTION_T_COMBAT_MOVEMENT for allow control start/stop melee combat state for creature at start/stop movement in combat. Author: VladimirMangos
--HG--
branch : trunk
2009-05-31 16:24:19 -05:00
megamage
4b3be64c79 [7914] Fixed variable name typos in creature event AI code. Author: NoFantasy
--HG--
branch : trunk
2009-05-31 15:58:16 -05:00
megamage
5ed5513ca8 Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs.

--HG--
branch : trunk
2009-05-31 15:56:51 -05:00
megamage
1288761fb7 [7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state. Author: VladimirMangos
Also related cleanup code in field cases and player Player::SetSheath.

--HG--
branch : trunk
2009-05-28 18:43:57 -05:00
megamage
5888134e4d *Fix a bug that owner cannot recall pet when pet is attacking target.
--HG--
branch : trunk
2009-05-22 03:09:24 -05:00
megamage
5fe179019f [7863] Implement for EVENT_T_SPAWNED map/zone/subzone only event conditions. Author: Alex
--HG--
branch : trunk
2009-05-21 10:52:05 -05:00
megamage
67c84b1f3d Mobs fleeing and getting assistance feature implementaion. Author: Neo2003
--HG--
branch : trunk
2009-05-21 10:48:00 -05:00
megamage
b7053ecc0d [7860] Implement creature event ai ACTION_T_CALL_FOR_HELP for explicit call for help in some script cases. Author: VladimirMangos
--HG--
branch : trunk
2009-05-21 10:15:09 -05:00
megamage
1e3591d4e9 [7854] Fixed typo in random text selection code. Author: NoFantasy
--HG--
branch : trunk
2009-05-19 15:42:06 -05:00
megamage
74206e4b6a [7852] Use union of per-event type structures, more checks at creature event ai loading. Author: VladimirMangos
Including:
    * Fixed check for EVENT_T_SPELLHIT school field. Add check at loading. Note: this event expect before and now schol _mask_ in param2.
    * In EVENT_T_RECEIVE_EMOTE use original player condition check code instead copy of related code.

--HG--
branch : trunk
2009-05-19 15:38:36 -05:00
megamage
c3499f39da [7847] Replace paramter unions by uniton of event ai action type structures. Add/fix some loading checks. Author: VladimirMangos
* Also send to process function reference to strucutre instead large amount fields.
    * Specially note that fixed check for first arg of action type 27 that before wrongly test as quest id,
    when by using code expected creature id. Possible some used data wrongly can be quest ids....

--HG--
branch : trunk
2009-05-18 15:14:27 -05:00
megamage
2cdb3865aa [7845] Implement reload support for creature eventAI tables. Author: evilstar
--HG--
branch : trunk
2009-05-18 15:09:34 -05:00
megamage
03cfacb361 *Fix a crash caused by eventai.
--HG--
branch : trunk
2009-05-15 14:23:05 -05:00
megamage
047cc95388 *Add some distance check functions. By VladimirMangos.
--HG--
branch : trunk
2009-05-14 16:50:47 -05:00
megamage
df4e8b456b *Move MoveFollow owner from MoveTargetedHome to enterevademode.
--HG--
branch : trunk
2009-05-12 10:11:54 -05:00
megamage
1d2d3693c4 *Replace some "mangos_debug" with "trinity_debug"
--HG--
branch : trunk
2009-05-04 13:13:07 -05:00
megamage
037015e4e4 *Fix the bug that eventAI creatures change target every update.
--HG--
branch : trunk
2009-05-03 16:58:44 -05:00
megamage
295b634ca6 [7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
2009-04-29 00:31:03 -05:00
megamage
8f0fecd7e3 *Fix build.
--HG--
branch : trunk
2009-04-27 21:23:42 -05:00
megamage
2b753d0f23 [7723] New AI call EnterCombat called at enter creature to combat (and re-enter if leave by some reason). Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 19:14:37 -05:00
megamage
2b4e83d8fb [7717] Use more safe code in EventAI. Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 18:43:39 -05:00
megamage
09af28301e [7716] Fixed some typos and possible crashes. Author: AlexDereka
--HG--
branch : trunk
2009-04-27 18:42:35 -05:00
QAston
2d1521dea9 *Fix CAST_INTURRUPT_PREVIOUS flag for eventai action cast
*Rewrite .reload all pet_spells command to make it reset actionbars correctly.

--HG--
branch : trunk
2009-04-26 02:48:20 +02:00
megamage
8644c48db8 *Add new eventAI action 105 call assistance. Param1 = radius.
--HG--
branch : trunk
2009-04-25 09:15:40 -05:00
megamage
bbf450c6e1 [7710] Fixed problem with stuck in combat creatures with EventAI. Remove redundent AI field. Author: VladimirMangos
--HG--
branch : trunk
2009-04-24 11:57:36 -05:00
Chaz Brown
b14bb5b39a Change all SD2: to TSCR:
--HG--
branch : trunk
2009-04-24 00:51:09 -04:00
megamage
1a90380b48 [7698] Remove redundent call InterruptNonMeleeSpells. Author: NoFantasy
--HG--
branch : trunk
2009-04-22 17:59:11 -05:00
megamage
3b49bfb1ff [7697] Interrupt casting at enter to evade mode. Author: VladimirMangos
--HG--
branch : trunk
2009-04-22 17:58:46 -05:00
QAston
cc5414f925 *Correct check range for totem area auras.
--HG--
branch : trunk
2009-04-20 16:48:35 +02:00
megamage
d159e84325 [7689] Batter EventAI loading checks and fix one from possible crash cases. Author: NoFantasy
--HG--
branch : trunk
2009-04-19 18:24:40 -05:00
megamage
ad41b0c9e1 *Fix build.
--HG--
branch : trunk
2009-04-17 16:07:54 -05:00
megamage
b9d8bdeddd *Remove event_ai from script folder.
--HG--
branch : trunk
2009-04-17 15:36:10 -05:00
megamage
3d628d5298 [7679] More checks for creature EventAI loading at server startup. Author: NoFantasy
--HG--
branch : trunk
2009-04-17 15:18:03 -05:00
megamage
c5310844db [7672] Move ReceiveEmote from script API to AI API. Author: VladimirMangos
This is also fix triggering ReceiveEmote for EventAI broken at it move to core.

--HG--
branch : trunk
2009-04-15 17:29:33 -05:00
megamage
3a65800218 [7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases. Author: VladimirMangos
Also send pointer to AI constructors ans mark constructors as explicit.

    This changes allow move now some generic often used AI code to CreatureAI helper functions.

--HG--
branch : trunk
2009-04-14 19:54:49 -05:00
megamage
4f4c6aeaf5 [7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName. Author: VladimirMangos
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.

--HG--
branch : trunk
2009-04-14 18:31:31 -05:00
megamage
f59c4debf6 [7622] Added creatureAI with related database tables. Author: AlexDereka
*Note: three tables are renamed.

--HG--
branch : trunk
2009-04-07 19:38:09 -05:00