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;
|
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:
|
default:
|
||||||
sLog.outError("Unknown script command %u called.",step.script->command);
|
sLog.outError("Unknown script command %u called.",step.script->command);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -415,6 +415,7 @@ enum RealmZone
|
|||||||
//trinity only
|
//trinity only
|
||||||
#define SCRIPT_COMMAND_ORIENTATION 30 // o = orientation
|
#define SCRIPT_COMMAND_ORIENTATION 30 // o = orientation
|
||||||
#define SCRIPT_COMMAND_EQUIP 31 // datalong = equipment id
|
#define SCRIPT_COMMAND_EQUIP 31 // datalong = equipment id
|
||||||
|
#define SCRIPT_COMMAND_MODEL 32 // datalong = model id
|
||||||
|
|
||||||
/// Storage class for commands issued for delayed execution
|
/// Storage class for commands issued for delayed execution
|
||||||
struct CliCommandHolder
|
struct CliCommandHolder
|
||||||
|
|||||||
Reference in New Issue
Block a user