Jump to content

stein20

Inactive Member
  • Posts

    95
  • Joined

  • Last visited

  • Feedback

    0%

About stein20

Informations

  • Gender
    Male

Recent Profile Visitors

1523 profile views

stein20's Achievements

Enthusiast

Enthusiast (6/16)

  • Very Popular Rare
  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done

Recent Badges

15

Reputation

  1. good work. look very good
  2. HELLO. qualified people: Someone will have the. idea why this happens. at least answer whether or not xD
  3. Hello everyone. looking at the system mounts. I found a problem with. when active limit type, 6 7 or 8 time to finish off the player. and the error files shows this: Sync: cannot find tree at -2147483648 -2147483648 (name: Test ) I am doing something wrong?
  4. search in PythonItemMoudle.cpp PyObject * itemSelectItem(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BadArgument(); if (!CItemManager::Instance().SelectItemData(iIndex)) { TraceError("Cannot find item by %d", iIndex); CItemManager::Instance().SelectItemData(60001); } return Py_BuildNone(); } change for: PyObject * itemSelectItem(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BadArgument(); if (!CItemManager::Instance().SelectItemData(iIndex)) { //TraceError("Cannot find item by %d", iIndex); CItemManager::Instance().SelectItemData(60001); } return Py_BuildNone(); } not fix. but does not show the error xD maybe thx ok not ? xD
  5. hello the version is not complete: fix: Open: PythonShop.cpp Search: PyObject * shopBuildPrivateShop(PyObject * poSelf, PyObject * poArgs) { char * szName; if (!PyTuple_GetString(poArgs, 0, &szName)) return Py_BuildException(); CPythonShop::Instance().BuildPrivateShop(szName); return Py_BuildNone(); } paste under: PyObject * shopIsOfflineShop(PyObject * poSelf, PyObject * poArgs) { CPythonShop & rkShop = CPythonShop::Instance(); return Py_BuildValue("i", rkShop.IsOfflineShop()); } PyObject * shopGetOfflineShopItemID(PyObject * poSelf, PyObject * poArgs) { int nPos; if (!PyTuple_GetInteger(poArgs, 0, &nPos)) return Py_BuildException(); const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetOfflineShopItemData(nPos, &c_pItemData)) return Py_BuildValue("i", c_pItemData->vnum); return Py_BuildValue("i", 0); } PyObject * shopGetOfflineShopItemCount(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BuildException(); const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetOfflineShopItemData(iIndex, &c_pItemData)) return Py_BuildValue("i", c_pItemData->count); return Py_BuildValue("i", 0); } PyObject * shopGetOfflineShopItemPrice(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BuildException(); const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetOfflineShopItemData(iIndex, &c_pItemData)) return Py_BuildValue("i", c_pItemData->price); return Py_BuildValue("i", 0); } PyObject * shopGetOfflineShopItemMetinSocket(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BuildException(); int iMetinSocketIndex; if (!PyTuple_GetInteger(poArgs, 1, &iMetinSocketIndex)) return Py_BuildException(); const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetOfflineShopItemData(iIndex, &c_pItemData)) return Py_BuildValue("i", c_pItemData->alSockets[iMetinSocketIndex]); return Py_BuildValue("i", 0); } PyObject * shopGetOfflineShopItemAttribute(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BuildException(); int iAttrSlotIndex; if (!PyTuple_GetInteger(poArgs, 1, &iAttrSlotIndex)) return Py_BuildException(); if (iAttrSlotIndex >= 0 && iAttrSlotIndex < ITEM_ATTRIBUTE_SLOT_MAX_NUM) { const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetOfflineShopItemData(iIndex, &c_pItemData)) return Py_BuildValue("ii", c_pItemData->aAttr[iAttrSlotIndex].bType, c_pItemData->aAttr[iAttrSlotIndex].sValue); } return Py_BuildValue("ii", 0, 0); } PyObject * shopClearOfflineShopStock(PyObject * poSelf, PyObject * poArgs) { CPythonShop::Instance().ClearOfflineShopStock(); return Py_BuildNone(); } PyObject * shopAddOfflineShopItemStock(PyObject * poSelf, PyObject * poArgs) { BYTE bItemWindowType; if (!PyTuple_GetInteger(poArgs, 0, &bItemWindowType)) return Py_BuildException(); WORD wItemSlotIndex; if (!PyTuple_GetInteger(poArgs, 1, &wItemSlotIndex)) return Py_BuildException(); int iDisplaySlotIndex; if (!PyTuple_GetInteger(poArgs, 2, &iDisplaySlotIndex)) return Py_BuildException(); int iPrice; if (!PyTuple_GetInteger(poArgs, 3, &iPrice)) return Py_BuildException(); CPythonShop::Instance().AddOfflineShopItemStock(TItemPos(bItemWindowType, wItemSlotIndex), iDisplaySlotIndex, iPrice); return Py_BuildNone(); } PyObject * shopDelOfflineShopItemStock(PyObject * poSelf, PyObject * poArgs) { BYTE bItemWindowType; if (!PyTuple_GetInteger(poArgs, 0, &bItemWindowType)) return Py_BuildException(); WORD wItemSlotIndex; if (!PyTuple_GetInteger(poArgs, 1, &wItemSlotIndex)) return Py_BuildException(); CPythonShop::Instance().DelOfflineShopItemStock(TItemPos(bItemWindowType, wItemSlotIndex)); return Py_BuildNone(); } PyObject * shopGetOfflineShopItemPrice2(PyObject * poSelf, PyObject * poArgs) { BYTE bItemWindowType; if (!PyTuple_GetInteger(poArgs, 0, &bItemWindowType)) return Py_BuildException(); WORD wItemSlotIndex; if (!PyTuple_GetInteger(poArgs, 1, &wItemSlotIndex)) return Py_BuildException(); int iValue = CPythonShop::Instance().GetOfflineShopItemPrice(TItemPos(bItemWindowType, wItemSlotIndex)); return Py_BuildValue("i", iValue); } PyObject * shopBuildOfflineShop(PyObject * poSelf, PyObject * poArgs) { char * szName; if (!PyTuple_GetString(poArgs, 0, &szName)) return Py_BuildException(); BYTE bTime; if (!PyTuple_GetInteger(poArgs, 1, &bTime)) return Py_BuildException(); CPythonShop::Instance().BuildOfflineShop(szName, bTime); return Py_BuildNone(); }
  6. mm: gmake clean gmake dep gmake -j20
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.