Buy Hack Vs Yapanlar Varmış Yardımcı Olur
<
<
View hidden content is available for registered users!
View hidden content is available for registered users!
Kod:
[HIDE]pkt << pUser->GetSocketID()
<< pUser->GetMerchantState() // 0 is selling, 1 is buying
- << pUser->m_bPremiumMerchant; // Type of merchant [normal - gold] // bool
+ << (pUser->GetMerchantState() == 1 ? false : pUser->m_bPremiumMerchant); // Type of merchant [normal - gold] // bool
- for (int i = 0, listCount = (pUser->m_bPremiumMerchant ? 8 : 4); i < listCount; i++)
+ for (int i = 0, listCount = (pUser->GetMerchantState() == 1 ? 4 : (pUser->m_bPremiumMerchant ? 8 : 4)); i < listCount; i++)
pkt << pUser->m_arMerchantItems[i].nNum;
t_count++;[/HIDE]