사이트 로그인
2016.06.29 11:06
안녕하세요 사다하루 입니다.
뭐 그냥 응용 소스 이긴 하지만 정상작동되어 이렇게 올립니다.
마을깔끔하게 하기!
L1pcinstance.java
public int getZoneType() { //드랍제한
if (getMap().isSafetyZone(getLocation())) return 1;
else if (getMap().isCombatZone(getLocation())) return -1;
else return 0;
}
C_DropItem.java
if (pc.getZoneType() == 1 || pc.getZoneType() == -1) {
pc.sendPackets(new S_SystemMessage("\\aL드랍불가지역"));
return;
}
드랍제한 1= SafetyZone 0= NormalZone -1 = CombatZone
[출처] 아이템 드랍 필드별제한 (비공개 카페)