mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 18:59:08 +00:00
Changed: Changes from last patch
This commit is contained in:
parent
a50b79372b
commit
da8cc6a2e0
1 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue