Move scripts for Onyxia and Nefarian heads to database.

Also corrected data for related gameobjects based on cmangos.

https://github.com/cmangos/tbc-db/commit/a175805654a347c0a554910ca9c1485568c57b11

https://github.com/cmangos/tbc-db/commit/e9a75b4b82aa317a61afdd4bf17de1809802d824
This commit is contained in:
ratkosrb
2019-08-24 23:37:06 +03:00
parent abafaf706e
commit 1585f7901a
10 changed files with 350 additions and 678 deletions
+10
View File
@@ -1206,6 +1206,16 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, const char* tablename)
}
break;
}
case SCRIPT_COMMAND_SET_GO_STATE:
{
if (tmp.setGoState.state > GO_STATE_ACTIVE_ALTERNATIVE)
{
sLog.outErrorDb("Table `%s` using invalid go state in datalong (%u) in SCRIPT_COMMAND_SET_GO_STATE for script id %u",
tablename, tmp.setGoState.state, tmp.id);
continue;
}
break;
}
}
if (scripts.find(tmp.id) == scripts.end())