Waypoints script for specific Ancient Core Hound in MC (#109)
* Add script command to set default movement. * Add home reset method to creature class. * Add Is Alive condition. * Add method to set default motion type. * Add migration. * Add parameter to clear movement generator.
This commit is contained in:
@@ -993,6 +993,15 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, const char* tablename)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SCRIPT_COMMAND_SET_DEFAULT_MOVEMENT:
|
||||
{
|
||||
if (tmp.setDefaultMovement.movementType >= MAX_DB_MOTION_TYPE)
|
||||
{
|
||||
sLog.outErrorDb("Table `%s` has datalong = %u in SCRIPT_COMMAND_SET_DEFAULT_MOVEMENT for script id %u.", tablename, tmp.setDefaultMovement.movementType, tmp.id);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (scripts.find(tmp.id) == scripts.end())
|
||||
|
||||
Reference in New Issue
Block a user