Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change weapons in TC scripts.
--HG-- branch : trunk
This commit is contained in:
@@ -3702,6 +3702,18 @@ void Map::ScriptsProcess()
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SCRIPT_COMMAND_EQUIP:
|
||||||
|
{
|
||||||
|
if(!source)
|
||||||
|
{
|
||||||
|
sLog.outError("SCRIPT_COMMAND_EQUIP call for NULL creature.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
source->ToCreature()->LoadEquipment(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;
|
||||||
|
|||||||
@@ -414,6 +414,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
|
||||||
|
|
||||||
/// 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