[펌][에바]흑단딜레이
대부분 에바팩이 그냥 나비켓에서 흑단딜레이를 주면 먹질 않더군요
이방법을 사용하시면 딜레이가 적용될겁니다 ^^
나비켓에서 1000 >> 1초 딜레이 입니다.
ThunderWand.java 입니다.
import l1j.server.server.templates.L1EtcItem; //추가
import l1j.server.server.model.L1ItemDelay; //추가
임포트추가
@Override
public void clickItem(L1Character cha, ClientBasePacket packet){
if(cha instanceof L1PcInstance){
L1PcInstance pc = (L1PcInstance)cha;
L1ItemInstance useItem = pc.getInventory().getItem(this.getId());
int spellsc_objid = 0;
int spellsc_x = 0;
int spellsc_y = 0;
spellsc_objid = packet.readD();
spellsc_x = packet.readH();
spellsc_y = packet.readH();
pc.cancelAbsoluteBarrier();
// 흑단 딜레이를 주자 추가부분
int itemId = this.getItemId();
int delay_id = 0;
if (itemId == 40007) {
delay_id = ((L1EtcItem) useItem.getItem()).get_delayid();
}
if (delay_id != 0) {
if (pc.hasItemDelay(delay_id) == true) {
return;
}
} // 여기까지
if(pc.isInvisble()){
pc.sendPackets(new S_ServerMessage(1003));
return;
}
int chargeCount = useItem.getChargeCount();
if (chargeCount <= 0) {
pc.sendPackets(new S_ServerMessage(79));
return;
}
L1Object target = L1World.getInstance().findObject(spellsc_objid);
int heding = CharPosUtil.targetDirection(pc, spellsc_x, spellsc_y);
pc.getMoveState().setHeading(heding);
if (target != null) {
doWandAction(pc, target);
} else {
Broadcaster.broadcastPacket(pc, new S_AttackPacket(pc, 0, ActionCodes.ACTION_Wand));
pc.sendPackets(new S_UseAttackSkill(pc, 0, 10, spellsc_x, spellsc_y, 17));
Broadcaster.broadcastPacket(pc, new S_UseAttackSkill(pc, 0, 10, spellsc_x, spellsc_y, 17));
}
useItem.setChargeCount(useItem.getChargeCount() - 1);
pc.getInventory().updateItem(useItem, L1PcInventory.COL_CHARGE_COUNT);
if (useItem.getChargeCount() == 0){
pc.getInventory().removeItem(useItem);
}
//흑단 딜레이 주는 실행문장
if (itemId == 40007) {
L1ItemDelay.onItemUse(pc, useItem);
}
}
}
private void doWandAction(L1PcInstance user, L1Object target) {
if (CharPosUtil.glanceCheck(user, target.getX(), target.getY()) == false) {
return; // 직선상에 장애물이 있다
}
이렇게하시고 나비켓가셔서 흑단에 딜레이 주시면 먹힐거예요 ^ ^
옆동네 야메루님거 퍼왔습니다.

안약 님의 최근 댓글
천화님 두 명이서만 로봇켜고 놀려고 하는데 그래도 i5에 램8GB 정도로 사양 되어야 할까요? 2016 11.13