프리서버 오픈소스 리니지 UI6 혈맹 업데이트
프리서버 오픈소스 리니지 UI6 혈맹 업데이트
경로: L1Clan
public static final int CLAN_RANK_PROBATION = 5;//일반변경
public static final int CLAN_RANK_PUBLIC = 2;//수련변경
public static final int CLAN_RANK_GUARDIAN = 6;//수호변경
public static final int CLAN_RANK_PRINCE = 4;//군주
public static final int CLAN_RANK_SUBLEADER = 3; // 부군주추가
public String getAllMembersFP() {//검색후변경
String result = "";
String rank = "";
for(int i = 0 ; i < clanMemberList.size() ; i++) {
switch(clanMemberList.get(i).rank){
case CLAN_RANK_PROBATION:
rank = "[일반]";
break;
case CLAN_RANK_PUBLIC:
rank = "[수련기사]";
break;
case CLAN_RANK_GUARDIAN:
rank = "[수호기사]";
break;
case CLAN_RANK_SUBLEADER:
rank = "[부군주]";
break;
case CLAN_RANK_PRINCE:
rank = "[혈맹군주]";
break;
}
result = result + clanMemberList.get(i).name + rank + " ";
}
return result;
}
public String getOnlineMembersFP(){//검색후변경
String result = "";
String rank = "";
for(int i = 0 ; i < clanMemberList.size() ; i++) {
if (L1World.getInstance().getPlayer(clanMemberList.get(i).name) != null) {
switch(clanMemberList.get(i).rank){
case CLAN_RANK_PROBATION:
rank = "[일반]";
break;
case CLAN_RANK_PUBLIC:
rank = "[수련기사]";
break;
case CLAN_RANK_GUARDIAN:
rank = "[수호기사]";
break;
case CLAN_RANK_SUBLEADER:
rank = "[부군주]";
break;
case CLAN_RANK_PRINCE:
rank = "[혈맹군주]";
break;
}
result = result + clanMemberList.get(i).name + rank + " ";
}
}
return result;
}
위처럼 변경하시고 따로수정할부분들은 C자바
C_JoinClan <=가입부분 [군주/부군주/수호]
C_Rank <=계급변경부분 [군주/부군주/수호]
C_Title <=호칭변경부분 [군주/부군주/수호]
소스검색기로 각번호와 명칭 검색하셔서 변경하시면됩니다.
모빠진부분이 있나모르겠네요 술한잔해서-0-;;
계급부여시 멘트처리부분은 블랙켓님이 올리신패킷으로 하셔도되고요
저는 이런식으로 한글멘트 처리했습니다
if (rank == L1Clan.CLAN_RANK_PROBATION) {
targetPc.sendPackets(new S_SystemMessage("당신의 계급이 일반기사로 변경되었습니다."));
pc.sendPackets(new S_SystemMessage(""+name+"의 계급이 일반기사로 변경되었습니다."));
} else if (rank == L1Clan.CLAN_RANK_PUBLIC) {
targetPc.sendPackets(new S_SystemMessage("당신의 계급이 수련기사로 변경되었습니다."));
pc.sendPackets(new S_SystemMessage(""+name+"의 계급이 수련기사로 변경되었습니다."));
} else if (rank == L1Clan.CLAN_RANK_GUARDIAN) {
targetPc.sendPackets(new S_SystemMessage("당신의 계급이 수호기사로 변경되었습니다."));
pc.sendPackets(new S_SystemMessage(""+name+"의 계급이 수호기사로 변경되었습니다."));
} else if (rank == L1Clan.CLAN_RANK_SUBLEADER) {
targetPc.sendPackets(new S_SystemMessage("당신의 계급이 부군주로 변경되었습니다."));
pc.sendPackets(new S_SystemMessage(""+name+"의 계급이 부군주로 변경되었습니다
경로는 C_Rank 입니다
출처 : 린프리

찰떡01 님의 최근 댓글
ㄳ 2023 06.17 ㄱㅅ 2020 12.19 클라 공유 부탁드립니다. 2020 12.19 ㄱㅅ 2020 11.26 ㄱㅅ 2020 11.05