主页| 免费发布天堂1开机信息| 站长qq:1161903

修改药水类改职业用

来源:2TT天堂发布网 www.2tt.cc    发布时间:2018/10/4 20:51:32    浏览量:944

首先开启>l1jserver.jar>找C_RequestItemUSe.class>开启
然后修改
我以红酒做为说明 用搜寻找到40039这个编号
if(k == 40039)
{
useBravePotion(l1pcinstance, k); <==全职
l1pcinstance.getInventory().removeItemOnlyInventory(l1iteminstance, 1);
} else


if(k == 40039)
{
if(l1pcinstance.isWizard()) <===变法师用
useBravePotion(l1pcinstance, k);
else
l1pcinstance.sendPackets(new S_ServerMessage(79, ""));
l1pcinstance.getInventory().removeItemOnlyInventory(l1iteminstance, 1);
} else

改完再把 private static Logger _log = Logger.getLogger(l1j/server/server/clientpackets/C_RequestItemUSe.getName());这段改成
private static Logger _log = Logger.getLogger(C_RequestItemUSe.class.getName());
储存为java档在转成class档再汇入核心即可

先说好你最好先把原先的C_RequestItemUSe.class复制起来当做备用
预防万一改错

补充:isElf 给妖精 isWizard 给法师 isKnight 给骑士 isCrown 给王族 isDarkelf 给黑妖