|
|
|
@ -5473,7 +5473,7 @@ NLMISC_COMMAND(setFamePlayer, "set the fame value of a player in the given facti
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
NLMISC_COMMAND(eventCreateNpcGroup, "create an event npc group", "<player eid> <nbBots> <sheet> [<dispersionRadius=10m> [<spawnBots=true> [<orientation=random|self|-360..360> [<name>]]]]")
|
|
|
|
|
NLMISC_COMMAND(eventCreateNpcGroup, "create an event npc group", "<player eid> <nbBots> <sheet> [<dispersionRadius=10m> [<spawnBots=true> [<orientation=random|self|-360..360> [<name> [<x> [<y>]]]]]]")
|
|
|
|
|
{
|
|
|
|
|
if (args.size () < 3) return false;
|
|
|
|
|
GET_ENTITY
|
|
|
|
@ -5531,6 +5531,16 @@ NLMISC_COMMAND(eventCreateNpcGroup, "create an event npc group", "<player eid> <
|
|
|
|
|
|
|
|
|
|
std::string botsName;
|
|
|
|
|
if (args.size()>6) botsName = args[6];
|
|
|
|
|
if (args.size()>7)
|
|
|
|
|
{
|
|
|
|
|
NLMISC::fromString(args[7], x);
|
|
|
|
|
x = x * 1000;
|
|
|
|
|
}
|
|
|
|
|
if (args.size()>8)
|
|
|
|
|
{
|
|
|
|
|
NLMISC::fromString(args[8], y);
|
|
|
|
|
y = y * 1000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CMessage msgout("EVENT_CREATE_NPC_GROUP");
|
|
|
|
|
uint32 messageVersion = 1;
|
|
|
|
|