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:
ratkosrb
2018-05-27 17:02:25 +03:00
committed by GitHub
parent 0c0cf09f8f
commit f668c2948a
12 changed files with 443 additions and 12 deletions
+9
View File
@@ -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())