Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasy

--HG--
branch : trunk
This commit is contained in:
n0n4m3 committed 2009-12-19 18:53:27 +01:00
1 parent 1d79bc51ea
commit 1f9530af21
3 files changed
+41

No files matched your search

+10
View File
@@ -4386,6 +4386,16 @@ void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
break;
}
case SCRIPT_COMMAND_KILL_CREDIT:
{
if (!GetCreatureTemplate(tmp.datalong))
{
sLog.outErrorDb("Table `%s` has invalid creature (Entry: %u) in SCRIPT_COMMAND_KILL_CREDIT for script id %u",tablename,tmp.datalong,tmp.id);
continue;
}
break;
}
case SCRIPT_COMMAND_TEMP_SUMMON_CREATURE:
{
if(!Trinity::IsValidMapCoord(tmp.x,tmp.y,tmp.z,tmp.o))