close_btn
로그인, 회원가입후 더 많은 혜택을 누리세요 로그인 회원가입 닫기

파워그립시간 본섭화 소스

2020.01.14 21:41

프리린2고 조회 수:50

/** 파워그립 시전시간 본섭화 **/

case POWERRIP: {

int[] PowerRipTimeArray = { 1500,2000,2000,3000,3000,3000,4000, 5000 };

int rnd = random.nextInt(PowerRipTimeArray.length);

_PowerRipDuration = PowerRipTimeArray[rnd];

L1EffectSpawn.getInstance().spawnEffect(9415, _PowerRipDuration, _target.getX(), _target.getY(), _target.getMapId());

if (_target instanceof L1PcInstance) {

L1PcInstance pc = (L1PcInstance) _target;

_target.setSkillEffect(L1SkillId.POWERRIP, _PowerRipDuration);

pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_RIP, true));

} else if (_target instanceof L1MonsterInstance || _target instanceof L1SummonInstance || _target instanceof L1PetInstance || _target instanceof MJCompanionInstance) {

L1NpcInstance npc = (L1NpcInstance) _target;

npc.setSkillEffect(L1SkillId.POWERRIP, _PowerRipDuration);

npc.set발묶임상태(true);

}

}

 

 

위치는 L1Skilluse 입니다