[린올] 신규 문장 슬롯 장착하기
temTable
_useTypes.put("ron", new Integer(44));// 룬1
_useTypes.put("acczel", new Integer(46));
_useTypes.put("pair", new Integer(47));// 각반
_useTypes.put("mon", new Integer(45));// 문장
.
.
.
_armorTypes.put("ron", new Integer(14));// 룬1
_armorTypes.put("pair", new Integer(15));// 각반
_armorTypes.put("mon", new Integer(16));// 문장
S_EquipmentWindow
public static final byte EQUIPMENT_INDEX_RUNE1 = 23;//룬
public static final byte EQUIPMENT_INDEX_RUNE2 = 24;
public static final byte EQUIPMENT_INDEX_RUNE3 = 25;
public static final byte EQUIPMENT_INDEX_RUNE4 = 26;
public static final byte EQUIPMENT_INDEX_RUNE5 = 27;
public static final byte EQUIPMENT_INDEX_문장 = 28;//문장
L1Inventory
// 아이템패킷추가
public int[] slot_ring = new int[4];
public int[] slot_rune = new int[3];
public int[] slot_earring = new int[2];
public int[] slot_blut = new int[2];
public int[] slot_문장 = new int[4];//문장
case 15: // 각반
idx = S_EquipmentWindow.EQUIPMENT_INDEX_PAIR;
break;
case 16: // 문장
// 기존에 착용중인게 잇는지 검색.
for (int i = 0; i < slot_문장.length; ++i) {
if (slot_문장[i] == item.getId())
select_idx = i;
}
// 착용해야할경우 기존에 착용중인게 없을때만 메모리 갱신.
if (item.isEquipped() && select_idx == -1) {
// 착용중이라면 빈 슬롯에 넣기.
for (int i = 0; i < slot_문장.length; ++i) {
if (slot_문장[i] == 0) {
slot_문장[i] = item.getId();
idx = S_EquipmentWindow.EQUIPMENT_INDEX_문장 + i;
break;
}
}
}
// 착용해제해야할 경우 기존에 착용중인게 잇을땜나 메모리 갱신.
if (!item.isEquipped() && select_idx != -1) {
// 해제중이라면 이전에 적용되잇던 위치에 값을 제거.
slot_문장[select_idx] = 0;
idx = S_EquipmentWindow.EQUIPMENT_INDEX_문장 + select_idx;
}
break;
}
} else {
switch (item.getItem().getType1()) {
case 11: // 도끼
디비
armor
900019 성장의 문장 $11152 mon 0 0 iron 1000 7649 0 16873 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
900020 회복의 문장 $11153 mon 0 0 iron 1000 7636 0 16874 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
_useTypes.put("ron", new Integer(44));// 룬1
_useTypes.put("acczel", new Integer(46));
_useTypes.put("pair", new Integer(47));// 각반
_useTypes.put("mon", new Integer(45));// 문장
.
.
.
_armorTypes.put("ron", new Integer(14));// 룬1
_armorTypes.put("pair", new Integer(15));// 각반
_armorTypes.put("mon", new Integer(16));// 문장
S_EquipmentWindow
public static final byte EQUIPMENT_INDEX_RUNE1 = 23;//룬
public static final byte EQUIPMENT_INDEX_RUNE2 = 24;
public static final byte EQUIPMENT_INDEX_RUNE3 = 25;
public static final byte EQUIPMENT_INDEX_RUNE4 = 26;
public static final byte EQUIPMENT_INDEX_RUNE5 = 27;
public static final byte EQUIPMENT_INDEX_문장 = 28;//문장
L1Inventory
// 아이템패킷추가
public int[] slot_ring = new int[4];
public int[] slot_rune = new int[3];
public int[] slot_earring = new int[2];
public int[] slot_blut = new int[2];
public int[] slot_문장 = new int[4];//문장
case 15: // 각반
idx = S_EquipmentWindow.EQUIPMENT_INDEX_PAIR;
break;
case 16: // 문장
// 기존에 착용중인게 잇는지 검색.
for (int i = 0; i < slot_문장.length; ++i) {
if (slot_문장[i] == item.getId())
select_idx = i;
}
// 착용해야할경우 기존에 착용중인게 없을때만 메모리 갱신.
if (item.isEquipped() && select_idx == -1) {
// 착용중이라면 빈 슬롯에 넣기.
for (int i = 0; i < slot_문장.length; ++i) {
if (slot_문장[i] == 0) {
slot_문장[i] = item.getId();
idx = S_EquipmentWindow.EQUIPMENT_INDEX_문장 + i;
break;
}
}
}
// 착용해제해야할 경우 기존에 착용중인게 잇을땜나 메모리 갱신.
if (!item.isEquipped() && select_idx != -1) {
// 해제중이라면 이전에 적용되잇던 위치에 값을 제거.
slot_문장[select_idx] = 0;
idx = S_EquipmentWindow.EQUIPMENT_INDEX_문장 + select_idx;
}
break;
}
} else {
switch (item.getItem().getType1()) {
case 11: // 도끼
디비
armor
900019 성장의 문장 $11152 mon 0 0 iron 1000 7649 0 16873 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
900020 회복의 문장 $11153 mon 0 0 iron 1000 7636 0 16874 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

단올아빠 님의 최근 댓글
감사합니딘 2024 04.26 감사합니다 2024 04.26 어그래. 부자되세요 2023 01.02 에휴. 진짜 욕나오지마 내입이 드러워질까봐 참는다 포인트로 부자나되라 2023 01.02 빨리지우세요 다른사람들도 생각좀해주세요 2023 01.02