2014年7月7日 星期一

【Java教學】對話框直接輸入"解卡點"

C_Chat



// 一般聊天

接下來加入藍色那段即可

// 一般聊天
if (chatType == 0)
{
if (chatText.equals("解卡點"))

{
if (pc.getMapId() == 666)
{
pc.sendPackets(new S_SystemMessage("笨蛋!地獄中是無法使用此指令的!"));
return;
}

L1Teleport.teleport(pc, L1Location.randomLocation(pc.getLocation(), 1, 6, true), (int)(System.currentTimeMillis() % 8), true);
return;
}

沒有留言:

張貼留言