사이트 로그인
2016.06.29 10:30
L1Character
private boolean Buff_에어사일런스;
private boolean Buff_Temp에어사일런스;
public boolean get_Buff_에어사일런스() {
return Buff_에어사일런스;
}public void set_Buff_에어사일런스(boolean Buff_에어사일런스) {
this.Buff_에어사일런스 = Buff_에어사일런스;
}public boolean get_Buff_Temp에어사일런스() {
return Buff_Temp에어사일런스;
}public void set_Buff_Temp에어사일런스(boolean Buff_Temp에어사일런스) {
this.Buff_Temp에어사일런스 = Buff_Temp에어사일런스;
}
버프세팅 <검색 추가
f(cha.get_Buff_에어사일런스()){
cha.set_Buff_에어사일런스(false);
}
SkillUse
case 130: // 에어리어 오브 사일런스
if(cha.get_level() >= 50 || cha.get_type() == 3 )
{
if(Checkitem(cha, skills.getItemConsume(), skills.getItemConsumeCount()))
{
int land1 = (int)(Math.random()* 100)+1;
if(83 < land1 )
{
for(int ij=0 ; ij<cha.getKnownPlayers().size() ; ij++)
{
try
{
L1Object visible = (L1Object) cha.getKnownPlayers().get(ij);
if(visible instanceof L1PcInstance)
{
L1PcInstance use = (L1PcInstance) visible;
if(cha.get_lawful()>=65536)
{
cha.sendPackets(cha.get_netConnection().bph().S_CharCriminal(cha, 30), true);
use.sendPackets(cha.get_netConnection().bph().S_CharCriminal(cha, 30), true);
}
if(!use.get_Buff_사일런스())
{
use.set_Buff_사일런스(true);
Buff_사일런스 sl = new Buff_사일런스(use, skills.getBuffDuration());
sl.start();
}
else
{
use.set_Buff_Temp사일런스(true);
}
//-- 나에게 보내
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(cha, 2241), true, true);
use.sendPackets(use.get_netConnection().bph().get_CharAction().S_Effect(use, 2177), true, true);
}
}
catch (Exception e){}
}
}
}
else
{
cha.sendPackets(cha.get_netConnection().bph().get_CharAction().S_DoAction(cha.get_objectId(), MagicAction2), false, true);
}
}
break;
.....
class None_에어사일런스 extends Thread{
private L1PcInstance cha;
private int time;
private int temp_time;
public None_에어사일런스(L1PcInstance cha, int time){
this.cha = cha;
this.time = time;
this.temp_time = time;
}
public void run()
{
try
{
do
{
sleep(1000); // 1초
--temp_time;
if(cha.get_Buff_Temp에어사일런스())
{
cha.set_Buff_Temp에어사일런스(false);
temp_time = time;
}
if(temp_time <= 0)
{
cha.set_Buff_에어사일런스(false);
}
}while(cha.get_Buff_에어사일런스());
}
catch (Exception e){}
}
}
우선 사용가능하니 이렇게라도 쓰세요;;
영혼님수정본 버프로만 바꾼겁니다
[출처] 에어리어 오브 사일런스 (비공개 카페)