| 
 | 
 
修改 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  就这样修改完毕,赶快试试效果吧 
 |   
 
 
 
 |