VladimirMangos
f332c000d1
[7860] Implement creature event ai ACTION_T_CALL_FOR_HELP for explicit call for help in some script cases.
2009-05-20 22:15:41 +04:00
NoFantasy
83beb6ec1d
[7854] Fixed typo in random text selection code.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-19 23:24:35 +04:00
VladimirMangos
72b4ff2fac
[7852] Use union of per-event type structures, more checks at creature event ai loading.
...
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.
2009-05-19 22:20:36 +04:00
VladimirMangos
07d00c3927
[7847] Replace paramter unions by uniton of event ai action type structures. Add/fix some loading checks.
...
* 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....
2009-05-18 22:45:20 +04:00
evilstar
4617ac1dc1
[7845] Implement reload support for creature eventAI tables.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-18 12:28:45 +04:00
VladimirMangos
45b209df50
[7836] Fixes for distance range checks.
...
* ignore 0.0f min range limit (this correct case when 2 object overlapped)
* typo in CreatureEventAI::CanCast
Also use int32 for temporary store GetSessionDbLocaleIndex result.
2009-05-16 10:25:11 +04:00
VladimirMangos
788cdf9b3a
[7826] Avoid use GetDistance* that used slow sqrt call where possible, other related speedups.
2009-05-14 18:51:13 +04:00
VladimirMangos
512c015dc2
[7731] Some code cleanups, warrning fixes.
2009-04-29 04:03:59 +04:00
VladimirMangos
73db1cbe01
[7723] New AI call EnterCombat called at enter creature to combat (and re-enter if leave by some reason).
2009-04-27 03:40:50 +04:00
VladimirMangos
f2f817883a
[7722] Fixed cast allow check in EventAI.
2009-04-27 03:32:46 +04:00
VladimirMangos
9dd305b457
[7717] Use more safe code in EventAI.
2009-04-26 19:19:36 +04:00
AlexDereka
c9d51a6dc7
[7716] Fixed some typos and possible crashes.
2009-04-26 18:49:07 +04:00
NoFantasy
727f590f6e
[7712] Fixed typo in EventAI for preventing aggro from civilians.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-25 02:24:19 +04:00
VladimirMangos
ecb5a0328a
[7710] Fixed problem with stuck in combat creatures with EventAI. Remove redundent AI field.
2009-04-24 18:56:26 +04:00
NoFantasy
07310ff6c1
[7698] Remove redundent call InterruptNonMeleeSpells.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-22 18:10:16 +04:00
VladimirMangos
d910610600
[7697] Interrupt casting at enter to evade mode.
2009-04-22 18:05:59 +04:00
NoFantasy
ee9ea143d1
[7689] Batter EventAI loading checks and fix one from possible crash cases.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 23:51:05 +04:00
NoFantasy
f926232efb
[7679] More checks for creature EventAI loading at server startup.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-17 15:47:51 +04:00
VladimirMangos
78dd259c38
[7672] Move ReceiveEmote from script API to AI API.
...
This is also fix triggering ReceiveEmote for EventAI broken at it move to mangos sources.
2009-04-15 06:08:52 +04:00
VladimirMangos
69fb9736cc
[7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases.
...
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.
2009-04-14 06:52:16 +04:00
VladimirMangos
721e005b84
[7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName.
...
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.
2009-04-14 02:28:45 +04:00
AlexDereka
6bb6ff0f7e
[7622] Added creatureAI with related database tables.
...
Code and concept (also known as EventAI) by ScriptDev2.
Note: database table layout are compatible with original db-scripts.
2009-04-05 23:05:44 +04:00