|
|
|
@ -825,7 +825,6 @@ NLMISC_COMMAND(getItemList, "get list of items of character by filter", "<uid> [
|
|
|
|
|
CInventoryPtr childSrc = c->getInventory(inventories[i]);
|
|
|
|
|
if (childSrc != NULL)
|
|
|
|
|
{
|
|
|
|
|
uint32 k = 0;
|
|
|
|
|
log.displayNL("#%s", INVENTORIES::toString(inventories[i]).c_str());
|
|
|
|
|
|
|
|
|
|
for (uint j = 0; j < childSrc->getSlotCount(); j++)
|
|
|
|
@ -1657,7 +1656,7 @@ NLMISC_COMMAND(setFaction, "set the faction of player", "<uid> <faction> [<civ>]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
NLMISC_COMMAND(accessPowo, "give access to the powo", "<uid> [playername] [instance] [exit_pos] [can_xp,cant_dead,can_teleport,can_speedup] [access_room_inv,access_guild_room] [scope]")
|
|
|
|
|
NLMISC_COMMAND(accessPowo, "give access to the powo", "<uid> [playername] [instance] [exit_pos] [can_xp,cant_dead,can_teleport,can_speedup,can_dp,onetry] [access_room_inv,access_guild_room] [scope]")
|
|
|
|
|
{
|
|
|
|
|
if (args.size() < 2)
|
|
|
|
|
return false;
|
|
|
|
@ -1670,12 +1669,12 @@ NLMISC_COMMAND(accessPowo, "give access to the powo", "<uid> [playername] [insta
|
|
|
|
|
else
|
|
|
|
|
building = CBuildingManager::getInstance()->getBuildingPhysicalsByName("building_instance_ZO_player_111");
|
|
|
|
|
|
|
|
|
|
string powoFlags = "0000";
|
|
|
|
|
if (args.size() > 4)
|
|
|
|
|
string powoFlags = "000000";
|
|
|
|
|
if (args.size() > 4 && args[4].length() == 6)
|
|
|
|
|
powoFlags = args[4];
|
|
|
|
|
|
|
|
|
|
string invFlags = "00";
|
|
|
|
|
if (args.size() > 5)
|
|
|
|
|
if (args.size() > 5 && args[5].length() == 2)
|
|
|
|
|
invFlags = args[5];
|
|
|
|
|
|
|
|
|
|
if (building)
|
|
|
|
@ -1701,9 +1700,12 @@ NLMISC_COMMAND(accessPowo, "give access to the powo", "<uid> [playername] [insta
|
|
|
|
|
c->setPowoScope(args[6]);
|
|
|
|
|
|
|
|
|
|
c->setPowoFlag("xp", powoFlags[0] == '1');
|
|
|
|
|
c->setPowoFlag("dead", powoFlags[1] == '1');
|
|
|
|
|
c->setPowoFlag("nodead", powoFlags[1] == '1');
|
|
|
|
|
c->setPowoFlag("teleport", powoFlags[2] == '1');
|
|
|
|
|
c->setPowoFlag("speed", powoFlags[3] == '1');
|
|
|
|
|
c->setPowoFlag("dp", powoFlags[4] == '1');
|
|
|
|
|
c->setPowoFlag("retry", powoFlags[5] == '1');
|
|
|
|
|
|
|
|
|
|
c->setPowoFlag("room_inv", invFlags[0] == '1');
|
|
|
|
|
c->setPowoFlag("guild_inv", invFlags[1] == '1');
|
|
|
|
|
|
|
|
|
@ -3357,6 +3359,8 @@ NLMISC_COMMAND(spawnPlayerPet, "spawn player pet", "<uid> <slot>")
|
|
|
|
|
uint32 index;
|
|
|
|
|
fromString(args[1], index);
|
|
|
|
|
|
|
|
|
|
c->setPetStatus(index, CPetAnimal::waiting_spawn);
|
|
|
|
|
c->updateOnePetDatabase(index, false);
|
|
|
|
|
c->removeAnimalIndex(index, CPetCommandMsg::DESPAWN);
|
|
|
|
|
c->setAnimalPosition(index, c->getState().X, c->getState().Y);
|
|
|
|
|
if (!c->spawnCharacterAnimal(index))
|
|
|
|
|