Addition of geomap admin command.
This commit is contained in:
parent
79bc90ca26
commit
a731321c0d
1
trunk/dist/game/config/adminCommands.xml
vendored
1
trunk/dist/game/config/adminCommands.xml
vendored
@ -271,6 +271,7 @@
|
|||||||
<admin command="admin_geo_can_see" accessLevel="100" />
|
<admin command="admin_geo_can_see" accessLevel="100" />
|
||||||
<admin command="admin_geo_can_move" accessLevel="100" />
|
<admin command="admin_geo_can_move" accessLevel="100" />
|
||||||
<admin command="admin_geogrid" accessLevel="100" />
|
<admin command="admin_geogrid" accessLevel="100" />
|
||||||
|
<admin command="admin_geomap" accessLevel="100" />
|
||||||
|
|
||||||
<!-- ADMIN GEO EDITOR -->
|
<!-- ADMIN GEO EDITOR -->
|
||||||
<admin command="admin_ge_status" accessLevel="100" />
|
<admin command="admin_ge_status" accessLevel="100" />
|
||||||
|
@ -23,6 +23,7 @@ import java.util.StringTokenizer;
|
|||||||
import com.l2jserver.gameserver.GeoData;
|
import com.l2jserver.gameserver.GeoData;
|
||||||
import com.l2jserver.gameserver.handler.IAdminCommandHandler;
|
import com.l2jserver.gameserver.handler.IAdminCommandHandler;
|
||||||
import com.l2jserver.gameserver.model.L2Object;
|
import com.l2jserver.gameserver.model.L2Object;
|
||||||
|
import com.l2jserver.gameserver.model.L2World;
|
||||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||||
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
||||||
@ -40,6 +41,7 @@ public class AdminGeodata implements IAdminCommandHandler
|
|||||||
"admin_geo_can_move",
|
"admin_geo_can_move",
|
||||||
"admin_geo_can_see",
|
"admin_geo_can_see",
|
||||||
"admin_geogrid",
|
"admin_geogrid",
|
||||||
|
"admin_geomap"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -130,6 +132,13 @@ public class AdminGeodata implements IAdminCommandHandler
|
|||||||
GeoUtils.debugGrid(activeChar);
|
GeoUtils.debugGrid(activeChar);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "admin_geomap":
|
||||||
|
{
|
||||||
|
final int x = ((activeChar.getX() - L2World.MAP_MIN_X) >> 15) + L2World.TILE_X_MIN;
|
||||||
|
final int y = ((activeChar.getY() - L2World.MAP_MIN_Y) >> 15) + L2World.TILE_Y_MIN;
|
||||||
|
activeChar.sendMessage("GeoMap: " + x + "_" + y);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user