mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[11940] Rewrite and cleanup DB Script Engine
* Moved actual script processing code to ScriptMgr * Unifed and improved log output. Now table-name is passed to each script execution * Added the "buddy concept" to all commands (except the outdated direct field change commands): Now all commands support to search a creature (or go for some commands) in a radius, with which to do some stuff. See doc/script_commands.txt for more details and information Attention DB Devs: Current DB-Scripts are converted automatically as far as possible, but some old target selecting mechanics were not reasonable to do automated. For such cases the command is marked with data_flags & 0x10 (==16), which will throw DB-Errors to track them down faster Thanks to NeatElves and especially Grz3s for testing! Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
fe3f4a43ee
commit
8e0edc0383
18 changed files with 1530 additions and 1803 deletions
|
|
@ -8164,6 +8164,10 @@ static ScriptInfo generateActivateCommand()
|
|||
{
|
||||
ScriptInfo si;
|
||||
si.command = SCRIPT_COMMAND_ACTIVATE_OBJECT;
|
||||
si.id = 0;
|
||||
si.buddyEntry = 0;
|
||||
si.searchRadius = 0;
|
||||
si.data_flags = 0x00;
|
||||
return si;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue