HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Paylaşım için teşekkürler
PyObject * playerGetISellItemPrice(PyObject * poSelf, PyObject * poArgs)
{
TItemPos Cell;
switch (PyTuple_Size(poArgs))
{
case 1:
if (!PyTuple_GetInteger(poArgs, 0, &Cell.cell))
return Py_BuildException();
break;
case 2:
if (!PyTuple_GetByte(poArgs, 0, &Cell.window_type))
return Py_BuildException();
if (!PyTuple_GetInteger(poArgs, 1, &Cell.cell))
return Py_BuildException();
break;
default:
return Py_BuildException();
}
CItemData * pItemData;
if (!CItemManager::Instance().GetItemDataPointer(CPythonPlayer::Instance().GetItemIndex(Cell), &pItemData))
return Py_BuildValue("i", 0);
long long iPrice;
if (pItemData->IsFlag(CItemData::ITEM_FLAG_COUNT_PER_1GOLD))
iPrice = CPythonPlayer::Instance().GetItemCount(Cell) / pItemData->GetISellItemPrice();
else
iPrice = pItemData->GetISellItemPrice() * CPythonPlayer::Instance().GetItemCount(Cell);
iPrice /= 5;
// return Py_BuildValue("i", iPrice);
return PyLong_FromLongLong(iPrice);
}
{
TItemPos Cell;
switch (PyTuple_Size(poArgs))
{
case 1:
if (!PyTuple_GetInteger(poArgs, 0, &Cell.cell))
return Py_BuildException();
break;
case 2:
if (!PyTuple_GetByte(poArgs, 0, &Cell.window_type))
return Py_BuildException();
if (!PyTuple_GetInteger(poArgs, 1, &Cell.cell))
return Py_BuildException();
break;
default:
return Py_BuildException();
}
CItemData * pItemData;
if (!CItemManager::Instance().GetItemDataPointer(CPythonPlayer::Instance().GetItemIndex(Cell), &pItemData))
return Py_BuildValue("i", 0);
long long iPrice;
if (pItemData->IsFlag(CItemData::ITEM_FLAG_COUNT_PER_1GOLD))
iPrice = CPythonPlayer::Instance().GetItemCount(Cell) / pItemData->GetISellItemPrice();
else
iPrice = pItemData->GetISellItemPrice() * CPythonPlayer::Instance().GetItemCount(Cell);
iPrice /= 5;
// return Py_BuildValue("i", iPrice);
return PyLong_FromLongLong(iPrice);
}
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 15
- Görüntüleme
- 621
- Kilitli
- Cevaplar
- 4
- Görüntüleme
- 368
- Kilitli
- Cevaplar
- 40
- Görüntüleme
- 4K
- Cevaplar
- 11
- Görüntüleme
- 1K
- Cevaplar
- 56
- Görüntüleme
- 2K
