mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.
--HG-- branch : trunk
This commit is contained in:
@@ -3714,6 +3714,18 @@ void Map::ScriptsProcess()
|
||||
|
||||
break;
|
||||
}
|
||||
case SCRIPT_COMMAND_MODEL:
|
||||
{
|
||||
if(!source)
|
||||
{
|
||||
sLog.outError("SCRIPT_COMMAND_MODEL call for NULL creature.");
|
||||
break;
|
||||
}
|
||||
|
||||
source->ToCreature()->SetDisplayId(step.script->datalong);
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
sLog.outError("Unknown script command %u called.",step.script->command);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user