q5127 发表于 2019-7-28 10:36:21

随身补血机

修改 C_RequestitemUSe.java

//   extra7359 随身补血机
else if(itemId == 50053)
{
if(pc.getInventory().checkItem(40308,100))
{
int oldhp = pc.get_currentHp();
int php = oldhp + (pc.get_level()*1);
if(php > pc.get_baseMaxHp())
php = pc.get_baseMaxHp();
pc.set_currentHp(php);
int plus = php - oldhp;
pc.getInventory().storeItem(40308, -100);
pc.sendPackets(new S_OwnCharStatus(pc));
pc.save();
pc.sendPackets(new S_SystemMessage("生命力恢复了"+ plus +"点,并收取了100现金"));
pc.sendPackets(new S_SkillSound(pcObjid, 830));
}
else
pc.sendPackets(new S_SystemMessage("金币不足...每次使用所需花费为100元"));
}
//        END就这样修改完毕,赶快试试效果吧

cai1996 发表于 2019-7-28 21:31:00

谢谢分享~~~!~~~~

ppap20329 发表于 2019-8-19 02:39:10


谢谢分享~~~!~~~~

sbuitd1983 发表于 2019-10-13 15:09:36

666666666666666

mao188166 发表于 2019-11-9 23:54:35

66666666666666

mao188166 发表于 2019-11-11 09:20:27

謝謝大大的分享,

mao188166 发表于 2019-11-17 12:23:43

再次表示谢谢了。

sunlong99 发表于 2019-12-7 14:29:08

      可惜我看不到

雪山飞鼠 发表于 2019-12-22 21:28:12

6666666666666666666666

q528521 发表于 2019-12-26 22:47:49

666666666666666666
页: [1] 2 3 4
查看完整版本: 随身补血机