Fix zen khi mua item ở pshop
Hàm CGPShopReqBuyItem
Bỏ code này đi
Hàm CGPShopReqBuyItem
Bỏ code này đi
if ( gObj[aSourceIndex].Money < lpObj->Inventory1[lpMsg->btItemPos].m_iPShopValue ) {
LogAddTD("[PShop] [%s][%s] PShop Item Buy Request Failed : [%s][%s] Lack of Zen",
gObj[aSourceIndex].AccountID, gObj[aSourceIndex].Name,
lpObj->AccountID, lpObj->Name);
::CGPShopAnsBuyItem(aSourceIndex, lpObj->m_Index, 0, 7);
return;
}
if ( lpObj->Money + dwCost > MAX_ZEN )
{
LogAddTD("[PShop] [%s][%s] PShop Item Buy Request Failed : [%s][%s] Exceeding Zen of the Host",
gObj[aSourceIndex].AccountID, gObj[aSourceIndex].Name,
lpObj->AccountID, lpObj->Name);
::CGPShopAnsBuyItem(aSourceIndex, lpObj->m_Index, 0, 8);
return;
}