언데드계열 힐주기
몬스터 힐주기랑 언데드 힐로 죽이기;
테스트로 그레이터 힐을 해봤는데요 걍힐,익힐,풀힐 같이 수정하심 되여
case 35: // 그레이터 힐
if(temp instanceof L1PcInstance){ // 유저라면
L1PcInstance use = (L1PcInstance)temp;
//-- 체력 세팅
int tempHP = (int)(Math.random() * ( get_power( cha.get_int() ) + skills.getPower() ) ) + 100; // 랜덤폭 100
if(use.get_Buff_워터라이프()){
use.set_Buff_워터라이프(false);
Buff_워터라이프 wl = new Buff_워터라이프(use, skills.getBuffDuration());
wl.stop();
use.set_currentHp( use.get_currentHp() + tempHP*2);
// use.set_currentHp( use.get_currentHp() + tempHP);
}else {
use.set_currentHp( use.get_currentHp() + tempHP );
}
//-- 나에게 보내기
// cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_DoAction(cha.get_objectId(), MagicAction2), false, true); // 마법쓰는액션
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_Effect(use, skills.getCastGfx()), true, true); // 마법이팩트
}else if(temp instanceof L1MonsterInstance){ // 몬스터라면
L1MonsterInstance mon = (L1MonsterInstance)temp;
//-- 체력 세팅
int tempHP = (int)(Math.random() * ( get_power( cha.get_int() ) + skills.getPower() )) + 100; // 랜덤폭 100
if(mon.get_Undead()){// 언데드 몬스터라면
mon.set_currentHp( mon.get_currentHp() - tempHP );
mon.AddExpList(cha);
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_DoAction(mon.get_objectId(), 0x02), false); //-- 맞는거 으억~
}else{
mon.set_currentHp( mon.get_currentHp() + tempHP );
}
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_Effect(mon, skills.getCastGfx()), true, true); // 마법이팩트
}else if(temp instanceof L1NpcInstance){ // npc라면
L1NpcInstance npc = (L1NpcInstance)temp;
//-- 체력 세팅
int tempHP = (int)(Math.random() * ( get_power( cha.get_int() ) + skills.getPower() ) ) + 100; // 랜덤폭 100
npc.set_currentHp( npc.get_currentHp() + tempHP );
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_Effect(npc, skills.getCastGfx()), true, true); // 마법이팩트
}
//-- 나에게 보내기
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_DoAction(cha.get_objectId(), MagicAction2), false, true); // 마법쓰는액션
// }
break;
|
[출처] 언데드계열 힐주기 (비공개 카페) |

준희미니 님의 최근 댓글
rt 2021 05.25 ㄳ 2021 05.11 ㄳ 2021 05.11 rt 2021 05.09 rt 2021 04.25