99Max综合娱乐网站(旧版)

 找回密码
 立即注册
查看: 824|回复: 0

/ GOTO 代码

[复制链接]

升级   45.67%

发表于 2009-8-13 19:16:08 | 显示全部楼层 |阅读模式
package com.aionemu.gameserver.utils.chathandlers.admincommands;

import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.network.aion.serverpackets.unk.SM_UNKF5;
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.world.World;
import com.google.inject.Inject;


public class Goto extends AdminCommand
{

@Inject
private World world;

public Goto()
{
super(\"Goto\");
}

public void executeCommand(Player admin, String[] params)
{
if ((params == null) || (params.length < 1))
{
PacketSendUtility.sendMessage(admin, \"syntax //goto WorldName\");
return;
}

if (params[0].equals(\"阿戴尔盆地\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 210010000, 1215.0F, 1042.0F, 141.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Poeta\");
}
else if (params[0].equals(\"贝尔特伦要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 210030000, 1643.0F, 1500.0F, 119.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Verteron\");
}
else if (params[0].equals(\"埃尔特内要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 210020000, 343.0F, 2724.0F, 264.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Eltnen\");
}
else if (params[0].equals(\"美华灵发掘工会窝棚\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 210060000, 1398.0F, 1557.0F, 31.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Theobomos\");
}
else if (params[0].equals(\"因特尔蒂卡要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 210040000, 2540.0F, 343.0F, 411.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Heiron\");
}
else if (params[0].equals(\"极乐世界\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 110010000, 1329.0F, 1506.0F, 570.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Sanctum\");
}
else if (params[0].equals(\"阿戴尔山\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 220010000, 562.0F, 2786.0F, 299.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Ishalgen\");
}
else if (params[0].equals(\"阿尔特盖德要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 220030000, 1748.0F, 1807.0F, 254.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Altgard\");
}
else if (params[0].equals(\"莫尔海姆冰冻要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 220020000, 308.0F, 2274.0F, 449.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Morheim\");
}
else if (params[0].equals(\"定居者营地\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 220050000, 2917.0F, 2421.0F, 15.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Brusthonin\");
}
else if (params[0].equals(\"贝鲁斯兰要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 220040000, 325.0F, 336.0F, 229.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Beluslan\");
}
else if (params[0].equals(\"伏魔殿\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 120010000, 1682.0F, 1397.0F, 195.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Pandemonium\");
}
else if (params[0].equals(\"特米伦据点\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 2867.0F, 1034.0F, 1528.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Latis Plazza bottom elyos\");
}
else if (params[0].equals(\"普利姆据点\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 1078.0F, 2839.0F, 1636.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Russet Plazza bottom asmodians\");
}
else if (params[0].equals(\"拉特斯兰之东侧茎\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 1596.0F, 2952.0F, 2943.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Top asmodians\");
}
else if (params[0].equals(\"拉特斯兰之西侧茎\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 2054.0F, 660.0F, 2843.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Top elyos\");
}
else if (params[0].equals(\"埃雷修兰塔之眼\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 2130.0F, 1925.0F, 2325.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Core Fortress\");
}
else if (params[0].equals(\"senza\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 300010000, 270.0F, 200.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Senza Nome\");
}
else if (params[0].equals(\"卡兰马蒂斯1\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310010000, 270.0F, 200.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Karamatis 1\");
}
else if (params[0].equals(\"卡兰马蒂斯2\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310020000, 270.0F, 200.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Karamatis 2\");
}
else if (params[0].equals(\"艾尔罗迪纳\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310030000, 270.0F, 189.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Aerdina\");
}
else if (params[0].equals(\"格拉耐亚\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310040000, 270.0F, 189.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Gerania\");
}
else if (params[0].equals(\"活体实验室\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310050000, 225.0F, 244.0F, 132.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Lerpharist Secret Labratory\");
}
else if (params[0].equals(\"暗黑碎片\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310070000, 247.0F, 249.0F, 1392.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Fragment of Darkness\");
}
else if (params[0].equals(\"极乐世界地下竞技场\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310080000, 275.0F, 242.0F, 158.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Sanctum Underground Arena\");
}
else if (params[0].equals(\"英德拉图要塞\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310090000, 562.0F, 335.0F, 1015.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Idratu Fortress\");
}
else if (params[0].equals(\"阿祖图兰\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 310100000, 458.0F, 428.0F, 1539.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Azoturan\");
}
else if (params[0].equals(\"那日萨斯1\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320010000, 229.0F, 237.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Narsass 1\");
}
else if (params[0].equals(\"那日萨斯2\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320020000, 229.0F, 237.0F, 206.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Narsass 2\");
}
else if (params[0].equals(\"布雷基伦\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320030000, 264.0F, 214.0F, 210.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Bregirun\");
}
else if (params[0].equals(\"尼达贝尔\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320040000, 264.0F, 214.0F, 210.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Nidalber\");
}
else if (params[0].equals(\"火之屋\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320050000, 177.0F, 229.0F, 536.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Inside of the Sky Temple of Arkanis\");
}
else if (params[0].equals(\"命运的空间\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320070000, 246.0F, 246.0F, 125.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Space of Destiny\");
}
else if (params[0].equals(\"特里尼艾尔地下竞技场\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320090000, 275.0F, 239.0F, 158.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Triniel Underground Arena\");
}
else if (params[0].equals(\"火之神殿\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 320100000, 144.0F, 312.0F, 122.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Fire Temple\");
}
else if (params[0].equals(\"根之岛\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 400010000, 951.0F, 953.0F, 1667.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Reshanta\");
}
else if (params[0].equals(\"prison1\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 510010000, 256.0F, 256.0F, 49.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to LF Prison\");
}
else if (params[0].equals(\"prison2\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 520010000, 256.0F, 256.0F, 49.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to DF Prison\");
}
else if (params[0].equals(\"test1\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 900020000, 144.0F, 136.0F, 20.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Test Basic\");
}
else if (params[0].equals(\"test2\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 900030000, 228.0F, 171.0F, 49.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Test Server\");
}
else if (params[0].equals(\"giantmonster\"))
{
this.world.despawn(admin);
this.world.setPosition(admin, 900100000, 196.0F, 187.0F, 20.0F, admin.getHeading());
admin.setProtectionActive(true);
PacketSendUtility.sendPacket(admin, new SM_UNKF5(admin));
PacketSendUtility.sendMessage(admin, \"Teleported to Test Giant Monster\");
}
else
{
PacketSendUtility.sendMessage(admin, \"This is not a valid PLaceID!\");
}
}
}
温馨提示:
1. 本站模拟器源于网络,经 99Max.mE 二次开发,仅供个人学习娱乐使用,切勿用于商业用途,否则后果自负!
2. 如需更好体验游戏内容,请前往官方游戏!不具备合法的运营模式,都是强盗,请勿擅自搭建私服!
3. 如本站内容有侵犯您的权益,请发送信息至QQ:372607220 或 EMAIL:372607220@qq.com ,我们会及时删除。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|99Max综合娱乐网站(旧版) ( 沪ICP备11024206号-1 )

GMT+8, 2025-4-7 03:08 , Processed in 2.673874 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表