UI6 공명의 키링크 업데이트
프리서버 오픈소스 리니지 UI6 공명의 키링크 업데이트
경로: C_NPCAction
} else if (((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 9421) {/// 비자야
pc.sendPackets(new S_SystemMessage("\\fY+8무기와 아데나(2천) 필요합니다."));
pc.sendPackets(new S_SystemMessage("\\fY+9무기와 아데나(3천) 필요합니다."));
if (s.equals("A")){ // +7 공명의 키링크
if (pc.getInventory().MakeCheckEnchant(410003, 8)//아이템체크
&& pc.getInventory().checkItem(40308, 20000000)) {
pc.getInventory().MakeDeleteEnchant(410003, 8);
pc.getInventory().consumeItem(40308, 20000000);
createNewItem2(pc, 423, 1, 7);
htmlid = "vjaya05";
} else {
htmlid = "vjaya04";
}
}
if (s.equals("B")){ // +8 공명의 키링크
if (pc.getInventory().MakeCheckEnchant(410003, 9)
&& pc.getInventory().checkItem(40308, 30000000)) {
pc.getInventory().MakeDeleteEnchant(410003, 9);
pc.getInventory().consumeItem(40308, 30000000);
createNewItem2(pc, 423, 1, 8);
htmlid = "vjaya05";
} else {
htmlid = "vjaya04";
}
}
if (s.equals("C")){ // +7 공명의 키링크
if (pc.getInventory().MakeCheckEnchant(410004, 8)
&& pc.getInventory().checkItem(40308, 20000000)) {
pc.getInventory().MakeDeleteEnchant(410004, 8);
pc.getInventory().consumeItem(40308, 20000000);
createNewItem2(pc, 423, 1, 7);
htmlid = "vjaya05";
} else {
htmlid = "vjaya04";
}
}
if (s.equals("D")){ // +8 공명의 키링크
if (pc.getInventory().MakeCheckEnchant(410004, 9)
&& pc.getInventory().checkItem(40308, 30000000)) {
pc.getInventory().MakeDeleteEnchant(410004, 9);
pc.getInventory().consumeItem(40308, 30000000);
createNewItem2(pc, 423, 1, 8);
htmlid = "vjaya05";
} else {
htmlid = "vjaya04";
}
}
경로: WeaponSkill
public static double get공명Damage(L1PcInstance pc, L1Character cha) {//공명의키링크
double dmg = 0;
int chance = _random.nextInt(100) + 1;
if (10 >= chance) {
dmg = 25;//고정데미지
pc.sendPackets(new S_SkillSound(cha.getId(), 5201));
Broadcaster.broadcastPacket(pc, new S_SkillSound(cha.getId(), 5201));
}
return dmg;
}
경로: L1Attack
PC/PC PC/NPC부분에추가
case 423:
dmg += WeaponSkill.get공명Damage(_pc, _target);
break;
경로: 엔피시액션DB
9421 vjaya01 vjaya01
경로: 엔피시DB
9421 비자야 보자관^비자야 환술리뉴얼 L1Merchant 6968 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -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 14 0 0 0
경로: 웨폰DB
423 공명의 키링크 공명의 키링크keyringku gemstone 35000 5436 6939 0 25 25 1 6 0 0 0 0 0 0 1 0 0 0 0 0 0 3 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0
서비스흑키본섭화변경제작
경로: 팩\data\xml\NpcActions
<Action Name="request obsidian kiringku" NpcId="4219001">//검색
<!--흑요석 키링크 / 대장장이 바트르-->
<Action Name="request obsidian kiringku" NpcId="4219001">//변경
<MakeItem>
<Material Amount="10" ItemId="40052"/>
<Material Amount="10" ItemId="40053"/>
<Material Amount="10" ItemId="40054"/>
<Material Amount="10" ItemId="40055"/>
<Material Amount="30" ItemId="40305"/>
<Material Amount="30" ItemId="40306"/>
<Material Amount="30" ItemId="40304"/>
<Material Amount="30" ItemId="40307"/>
<Material Amount="1" ItemId="410005"/>
<Material Amount="1000000" ItemId="40308"/>
<Item Amount="1" ItemId="410004"/>
</MakeItem>
</Action>
본섭보니 제작갯수라든가 재료가 변경되었네요
술먹고 정리한거라 모빠진게 있나 모르겠네요..
private boolean createNewItem2(L1PcInstance pc, int item_id, int count,
int EnchantLevel) {
L1ItemInstance item = ItemTable.getInstance().createItem(item_id);
item.setCount(count);
item.setEnchantLevel(EnchantLevel);
item.setIdentified(true);
if (item != null) {
if (pc.getInventory().checkAddItem(item, count) == L1Inventory.OK) {
pc.getInventory().storeItem(item);
} else { // 가질 수 없는 경우는 지면에 떨어뜨리는 처리의 캔슬은 하지 않는다(부정 방지)
L1World.getInstance().getInventory(pc.getX(), pc.getY(),
pc.getMapId()).storeItem(item);
}
pc.sendPackets(new S_ServerMessage(403, item.getLogName())); // %0를
// 손에
// 넣었습니다.
return true;
} else {
return false;
}
}

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