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;
|
||||
|
||||
@@ -415,6 +415,7 @@ enum RealmZone
|
||||
//trinity only
|
||||
#define SCRIPT_COMMAND_ORIENTATION 30 // o = orientation
|
||||
#define SCRIPT_COMMAND_EQUIP 31 // datalong = equipment id
|
||||
#define SCRIPT_COMMAND_MODEL 32 // datalong = model id
|
||||
|
||||
/// Storage class for commands issued for delayed execution
|
||||
struct CliCommandHolder
|
||||
|
||||
Reference in New Issue
Block a user