Changed: Changes from last patch

This commit is contained in:
kervala 2011-03-09 13:52:52 +01:00
parent a50b79372b
commit da8cc6a2e0

View file

@ -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; if (args.size () < 3) return false;
GET_ENTITY GET_ENTITY
@ -5531,6 +5531,16 @@ NLMISC_COMMAND(eventCreateNpcGroup, "create an event npc group", "<player eid> <
std::string botsName; std::string botsName;
if (args.size()>6) botsName = args[6]; 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"); CMessage msgout("EVENT_CREATE_NPC_GROUP");
uint32 messageVersion = 1; uint32 messageVersion = 1;