사이트 로그인
2016.06.29 10:40
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package l1j.server.server.clientpackets;
import static l1j.server.server.model.skill.L1SkillId.SHAPE_CHANGE;
import l1j.server.server.model.Broadcaster;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_DoActionGFX;
import l1j.server.server.serverpackets.S_SkillSound;
import server.LineageClient;
// Referenced classes of package l1j.server.server.clientpackets:
// ClientBasePacket
public class C_ExtraCommand extends ClientBasePacket {
private static final String C_EXTRA_COMMAND = "[C] C_ExtraCommand";
public C_ExtraCommand(byte abyte0[], LineageClient client) throws Exception {
super(abyte0);
int actionId = readC();
L1PcInstance pc = client.getActiveChar();
if (pc == null) {
return;
}
if (actionId < 66 || actionId > 69) return;
if (pc.isGhost()) {
return;
}
if (pc.isInvisble()) { // 인비지비리티, 브라인드하이딘그중
return;
}
if (pc.isTeleport()) { // 텔레포트 처리중
return;
}
if (pc.getSkillEffectTimerSet().hasSkillEffect(SHAPE_CHANGE)) { // 만일을 위해, 변신중은 타플레이어에 송신하지 않는다
int gfxId = pc.getGfxId().getTempCharGfx();
if (gfxId != 6080 && gfxId != 6094) {
int gfxid = 0; //참 쉽죠잉
switch(actionId){
case 66: gfxid = 3207; break;
case 67: gfxid = 3206; break;
case 68: gfxid = 3204; break;
case 69: gfxid = 3205; break;
}
pc.sendPackets(new S_SkillSound(pc.getId(), gfxid));
Broadcaster.broadcastPacket(pc,new S_SkillSound(pc.getId(), gfxid));
return;
}
}
S_DoActionGFX gfx = new S_DoActionGFX(pc.getId(), actionId);
Broadcaster.broadcastPacket(pc, gfx); // 주위의 플레이어에 송신
}
@Override
public String getType() {
return C_EXTRA_COMMAND;
}
}
저건 테섭 도박하다가 플섭오닌깐 안되어잇길래 ㅎㅎ
[출처] 변신시 Alt+1~4주사위 나오도록 (비공개 카페)