Commit Graph

12 Commits

Author SHA1 Message Date
Rat
54b11cce01 Core/SmartAI: store event invoker when available, and use it for Invoker target
note: dont forget to call script_reset when script is over!

--HG--
branch : trunk
2010-11-04 19:56:39 +01:00
Rat
2604250c3c Core/SmartAI: fixed Gossip Select event
--HG--
branch : trunk
2010-11-03 19:39:53 +01:00
Rat
4747c5f820 Core/SmartAI: fixed EVENT_RANGE handling, and limited it to only creature scripts
--HG--
branch : trunk
2010-11-03 17:25:46 +01:00
Rat
6f748a76a1 Core/SmartAI: use BaseObject for guid based targeting if available
--HG--
branch : trunk
2010-11-03 16:40:12 +01:00
Rat
9df4af80f4 Core/SmartAI: added script type 9 (TimedActionList)
- interrupt spells when entering combat
- fixed reset of timers
- added npc flag modify actions
- added action to call a TimedActionList, default options are: process only OOC and resume after combat

--HG--
branch : trunk
2010-11-03 14:10:16 +01:00
Rat
7ed5f93aed Core/SmartAI: use Target types where possible, instead of simple self target
- removed some obsolete comments
- added errorlog if a special action uses a non-smart scripted creature

--HG--
branch : trunk
2010-11-02 13:13:54 +01:00
Rat
d568fcf273 Core/SmartAI: remade 'Say' handler, more simple, more usable, you can now script multiple npc conversations from one script
-also added 'entry' to text_over event

--HG--
branch : trunk
2010-11-01 11:00:53 +01:00
Rat
96df97c5ae Core/SmartAI: fix logic in HAS_AURA event
note: copy-paste from eai is bad idea ..

--HG--
branch : trunk
2010-10-31 22:11:56 +01:00
Rat
75c065637c Core/SmartAI: added new target type (invoker's vehicle)
-added new action: ENTER_VEHICLE (79), param1: seatID

--HG--
branch : trunk
2010-10-31 14:21:35 +01:00
silinoron
f1f1823901 Core/SmartScript: Fix a compile error.
Thanks Aokromes for telling me it existed.

--HG--
branch : trunk
2010-10-27 20:03:42 -07:00
Rat
afe683aff4 Core/AI: fix debug / nix build
--HG--
branch : trunk
2010-10-27 23:19:35 +02:00
Rat
5cb119e617 Core/AI: implemented SmartScripts System (still beta) not 100% complete
WARNING: Use scripts at own risk. You were warned.
NOTE0: creature, gameobject, areatrigger type scripts should be fully functional
NOTE1: has no effect on any core related stuff if not using any SmartScript
NOTE2: all event/action/etc descriptions can be found in SmartScriptMgr.h

SmartScripts is a reloadable DB-Sript system, with full control for special scripting,
like escorting, following, complex combat handling, pre-stored AI templates(caster, turret, etc) and much more
with a total of 66 events, 78 actions, 22 target types, and can be easily extended

--HG--
branch : trunk
2010-10-27 21:01:47 +02:00