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
This commit is contained in:
Rat
2010-10-27 21:01:47 +02:00
parent c9fba03da9
commit 5cb119e617
26 changed files with 5496 additions and 560 deletions

View File

@@ -0,0 +1,32 @@
DROP TABLE IF EXISTS smart_scripts;
CREATE TABLE `smart_scripts` (
`entryorguid` mediumint(11) NOT NULL,
`source_type` mediumint(5) unsigned NOT NULL DEFAULT '0',
`id` mediumint(11) unsigned NOT NULL DEFAULT '0',
`link` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_type` mediumint(5) unsigned NOT NULL DEFAULT '0',
`event_phase_mask` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_chance` mediumint(5) unsigned NOT NULL DEFAULT '100',
`event_flags` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_param1` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_param2` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_param3` mediumint(11) unsigned NOT NULL DEFAULT '0',
`event_param4` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_type` mediumint(5) unsigned NOT NULL DEFAULT '0',
`action_param1` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_param2` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_param3` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_param4` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_param5` mediumint(11) unsigned NOT NULL DEFAULT '0',
`action_param6` mediumint(11) unsigned NOT NULL DEFAULT '0',
`target_type` mediumint(11) unsigned NOT NULL DEFAULT '0',
`target_param1` mediumint(11) unsigned NOT NULL DEFAULT '0',
`target_param2` mediumint(11) unsigned NOT NULL DEFAULT '0',
`target_param3` mediumint(11) unsigned NOT NULL DEFAULT '0',
`target_x` float NOT NULL DEFAULT '0',
`target_y` float NOT NULL DEFAULT '0',
`target_z` float NOT NULL DEFAULT '0',
`target_o` float NOT NULL DEFAULT '0',
`comment` varchar(255) NOT NULL DEFAULT '' COMMENT 'Event Comment',
PRIMARY KEY (`entryorguid`,`source_type`,`id`,`link`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS waypoints;
CREATE TABLE `waypoints` (
`entry` mediumint(8) unsigned NOT NULL DEFAULT '0',
`pointid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`position_x` float NOT NULL DEFAULT '0',
`position_y` float NOT NULL DEFAULT '0',
`position_z` float NOT NULL DEFAULT '0',
`point_comment` text,
PRIMARY KEY (`entry`,`pointid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Creature waypoints';