2013年5月15日 星期三

【Java教學】【★★★★★】教你自製藥水


在C_ItemUSe.java

找到
} else if (itemId == 40043) { // 兔の肝
UseHeallingPotion(pc, 600, 189);
pc.getInventory().removeItem(l1iteminstance, 1);

在下面加上
} else if (itemId == 80049) {     //★體力完全恢復藥水★       <-- 80049 = 物品編號
UseHeallingPotion(pc, 32767, 4661);     // 32767 = 補血量   4661 = 使用的動畫

} else if (itemId == 80050) {     //★魔力完全恢復藥水★       <-- 80050 = 物品編號
pc.setCurrentMp(pc.getCurrentMp() + 32767);       // 32767 = 補魔量
pc.sendPackets(new S_SystemMessage("感覺到精神充沛,魔力完全恢復。"));     //可有可無
pc.sendPackets(new S_SkillSound(pc.getId(), 4674));       // 4674 = 使用的動畫

沒有留言:

張貼留言