Improvements to waypoint system. (#77)

* Redesign of waypoint system.

* More fixes.

* Fix table name in startup error.

* Add point Id to move command.

* Fix startup error.
This commit is contained in:
ratkosrb
2018-05-12 16:25:55 +03:00
committed by GitHub
parent 9f4a43194c
commit 9cacea871f
23 changed files with 1472 additions and 1193 deletions
+18
View File
@@ -974,6 +974,24 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, const char* tablename)
}
break;
}
case SCRIPT_COMMAND_SET_REACT_STATE:
{
if (tmp.setReactState.state > REACT_AGGRESSIVE)
{
sLog.outErrorDb("Table `%s` has datalong = %u in SCRIPT_COMMAND_SET_REACT_STATE for script id %u.", tablename, tmp.setReactState.state, tmp.id);
continue;
}
break;
}
case SCRIPT_COMMAND_START_WAYPOINTS:
{
if (tmp.startWaypoints.wpSource > PATH_FROM_SPECIAL)
{
sLog.outErrorDb("Table `%s` has datalong = %u in SCRIPT_COMMAND_START_WAYPOINTS for script id %u.", tablename, tmp.startWaypoints.wpSource, tmp.id);
continue;
}
break;
}
}
if (scripts.find(tmp.id) == scripts.end())