{
activeChar.sendMessage("->" + targetName + "<- is incorrect.");
}
break;
case admin_fix_gh_1:
L2Territory gh_spawn_loc;
// Зона крафта
gh_spawn_loc = new L2Territory(10000001);
gh_spawn_loc.add(45704, 186617, -3480, -3380);
gh_spawn_loc.add(46086, 186419, -3488, -3388);
gh_spawn_loc.add(46733, 187506, -3480, -3380);
gh_spawn_loc.add(46294, 187709, -3480, -3380);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_MANUFACTURE && player.getReflection().getId() == -2)
{
int[] point = gh_spawn_loc.getRandomPoint();
player.decayMe();
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона покупки
gh_spawn_loc = new L2Territory(10000002);
gh_spawn_loc.add(46091, 186412, -3488, -3388);
gh_spawn_loc.add(47218, 185902, -3488, -3388);
gh_spawn_loc.add(47761, 186929, -3480, -3380);
gh_spawn_loc.add(46742, 187511, -3480, -3380);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_BUY && player.getReflection().getId() == -2)
{
int[] point = gh_spawn_loc.getRandomPoint();
player.decayMe();
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона продажи
gh_spawn_loc = new L2Territory(10000003);
gh_spawn_loc.add(47665, 186755, -3480, -3380);
gh_spawn_loc.add(48167, 186488, -3480, -3380);
gh_spawn_loc.add(48397, 186625, -3480, -3380);
gh_spawn_loc.add(50156, 184674, -3488, -3388);
gh_spawn_loc.add(49292, 183916, -3488, -3388);
gh_spawn_loc.add(47758, 185654, -3488, -3388);
gh_spawn_loc.add(47244, 185894, -3488, -3388);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if((player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL || player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL_PACKAGE) && player.getReflection().getId() == -2)
{
int[] point = gh_spawn_loc.getRandomPoint();
player.decayMe();
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
break;
case admin_fix_gh_2:
L2Territory gh_spawn_loc2;
// Зона покупки
gh_spawn_loc2 = new L2Territory(10000004);
gh_spawn_loc2.add(46091, 186412, -3488, -3388);
gh_spawn_loc2.add(47218, 185902, -3488, -3388);
gh_spawn_loc2.add(47761, 186929, -3480, -3380);
gh_spawn_loc2.add(46742, 187511, -3480, -3380);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_BUY)
{
int[] point = gh_spawn_loc2.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);
}
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона крафта
gh_spawn_loc2 = new L2Territory(10000005);
gh_spawn_loc2.add(45704, 186617, -3480, -3380);
gh_spawn_loc2.add(46086, 186419, -3488, -3388);
gh_spawn_loc2.add(46733, 187506, -3480, -3380);
gh_spawn_loc2.add(46294, 187709, -3480, -3380);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_MANUFACTURE)
{
int[] point = gh_spawn_loc2.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);
}
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона продажи
gh_spawn_loc2 = new L2Territory(10000006);
gh_spawn_loc2.add(47665, 186755, -3480, -3380);
gh_spawn_loc2.add(48167, 186488, -3480, -3380);
gh_spawn_loc2.add(48397, 186625, -3480, -3380);
gh_spawn_loc2.add(50156, 184674, -3488, -3388);
gh_spawn_loc2.add(49292, 183916, -3488, -3388);
gh_spawn_loc2.add(47758, 185654, -3488, -3388);
gh_spawn_loc2.add(47244, 185894, -3488, -3388);
for(L2Player player : L2ObjectsStorage.getAllPlayers())
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL || player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL_PACKAGE)
{
int[] point = gh_spawn_loc2.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);
}
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
break;
case admin_fix_gh_r:
int radius = 500;
if(wordList.length > 1)
{
radius = Integer.parseInt(wordList[1]);
}
L2Territory spawn_loc;
// Зона покупки
spawn_loc = new L2Territory(10000004);
spawn_loc.add(46091, 186412, -3488, -3388);
spawn_loc.add(47218, 185902, -3488, -3388);
spawn_loc.add(47761, 186929, -3480, -3380);
spawn_loc.add(46742, 187511, -3480, -3380);
for(L2Player player : L2World.getAroundPlayers(activeChar, radius, 200))
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_BUY)
{
int[] point = spawn_loc.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);
}
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона крафта
spawn_loc = new L2Territory(10000005);
spawn_loc.add(45704, 186617, -3480, -3380);
spawn_loc.add(46086, 186419, -3488, -3388);
spawn_loc.add(46733, 187506, -3480, -3380);
spawn_loc.add(46294, 187709, -3480, -3380);
for(L2Player player : L2World.getAroundPlayers(activeChar, radius, 200))
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_MANUFACTURE)
{
int[] point = spawn_loc.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);
}
player.setXYZ(point[0], point[1], point[2]);
player.spawnMe();
}
}
// Зона продажи
spawn_loc = new L2Territory(10000006);
spawn_loc.add(47665, 186755, -3480, -3380);
spawn_loc.add(48167, 186488, -3480, -3380);
spawn_loc.add(48397, 186625, -3480, -3380);
spawn_loc.add(50156, 184674, -3488, -3388);
spawn_loc.add(49292, 183916, -3488, -3388);
spawn_loc.add(47758, 185654, -3488, -3388);
spawn_loc.add(47244, 185894, -3488, -3388);
for(L2Player player : L2World.getAroundPlayers(activeChar, radius, 200))
{
if(player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL || player.getPrivateStoreType() == L2Player.STORE_PRIVATE_SELL_PACKAGE)
{
int[] point = spawn_loc.getRandomPoint();
player.decayMe();
if(player.getReflection().getId() != -2)
{
player.setVar("backCoords", player.getLoc().toXYZString());
player.setReflection(-2);