mavzermete 1
mavzermete
Mt2Hizmet 1
Mt2Hizmet
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Reklam vermek için turkmmo@gmail.com

[C++] Increase safebox/warehouse

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Herkese Hayırlı Kullanımlar

Alıntıdır ...




C++:
Lets do ex: 16x9. I dont know if i something forgot, but its little tutorial how do it, im tired af so sorry for errors THANKS ❤️

// tables.h
#define SAFEBOX_MAX_NUM    135
to
#define SAFEBOX_MAX_NUM    432
// Packet.h
typedef struct command_safebox_checkout
{
    BYTE    bHeader;
    BYTE    bSafePos;
    TItemPos    ItemPos;
} TPacketCGSafeboxCheckout;

typedef struct command_safebox_checkin
{
    BYTE    bHeader;
    BYTE    bSafePos;
    TItemPos    ItemPos;
} TPacketCGSafeboxCheckin;
// Like that

typedef struct command_safebox_checkout
{
    BYTE    bHeader;
    UINT    bSafePos;
    TItemPos    ItemPos;
} TPacketCGSafeboxCheckout;

typedef struct command_safebox_checkin
{
    BYTE    bHeader;
    UINT    bSafePos;
    TItemPos    ItemPos;
} TPacketCGSafeboxCheckin;
// Safebox.cpp

    if (m_iSize)
        m_pkGrid = M2_NEW CGrid(5, m_iSize);
    else
        m_pkGrid = NULL;

//
    if (m_iSize)
        m_pkGrid = M2_NEW CGrid(16, m_iSize);
    else
        m_pkGrid = NULL;
// ------------------------------
    if (pkOldGrid)
        m_pkGrid = M2_NEW CGrid(pkOldGrid, 5, m_iSize);
    else
        m_pkGrid = M2_NEW CGrid(5, m_iSize);
//
    if (pkOldGrid)
        m_pkGrid = M2_NEW CGrid(pkOldGrid, 16, m_iSize);
    else
        m_pkGrid = M2_NEW CGrid(16, m_iSize);

// ----------------------------------
if (bCell >= 5 * m_iSize)
//
if (bCell >= 16 * m_iSize)
// ----------------------------
int max_position = 5 * m_iSize;
//
int max_position = 16 * m_iSize;

//Search for:
LPITEM CSafebox::GetItem(BYTE bCell)

//Replace with:
LPITEM CSafebox::GetItem(UINT bCell)


//Search for:
bool CSafebox::MoveItem(BYTE bCell, BYTE bDestCell, BYTE count)


//Replace with
bool CSafebox::MoveItem(UINT bCell, UINT bDestCell, DWORD count)
// Safebox.h
//Search for:
LPITEM CSafebox::GetItem(BYTE bCell)

//Replace with:
LPITEM CSafebox::GetItem(UINT bCell)

//Search for:
bool CSafebox::MoveItem(BYTE bCell, BYTE bDestCell, BYTE count)

//Replace with
bool CSafebox::MoveItem(UINT bCell, UINT bDestCell, DWORD count)
Client/

// Packet.h
typedef struct command_safebox_checkout
{
    uint8_t bHeader;
    BYTE bSafePos;
    TItemPos ItemPos;
} TPacketCGSafeboxCheckout;

typedef struct command_safebox_checkin
{
    uint8_t bHeader;
    BYTE bSafePos;
    TItemPos ItemPos;
} TPacketCGSafeboxCheckin;

// --------------
typedef struct command_safebox_checkout
{
    uint8_t bHeader;
    UINT bSafePos;
    TItemPos ItemPos;
} TPacketCGSafeboxCheckout;

typedef struct command_safebox_checkin
{
    uint8_t bHeader;
    UINT bSafePos;
    TItemPos ItemPos;
} TPacketCGSafeboxCheckin;

// PythonNetworkStream.h
//Search for:
bool SendSafeBoxCheckinPacket(TItemPos InventoryPos, BYTE bySafeBoxPos);

//edit:
bool SendSafeBoxCheckinPacket(TItemPos InventoryPos, UINT bySafeBoxPos);

//Search for:
bool SendSafeBoxCheckoutPacket(BYTE bySafeBoxPos, TItemPos InventoryPos);

//edit:
bool SendSafeBoxCheckoutPacket(UINT bySafeBoxPos, TItemPos InventoryPos);

// search for:
bool SendSafeBoxItemMovePacket(BYTE bySourcePos, BYTE byTargetPos, uint8_t byCount);
//edit:
bool SendSafeBoxItemMovePacket(UINT bySourcePos, UINT byTargetPos, uint8_t byCount);

// Python****PhaseGameItem.cpp

//Search for:

bool CPythonNetworkStream::SendSafeBoxCheckinPacket(TItemPos InventoryPos, BYTE bySafeBoxPos)

//edit

bool CPythonNetworkStream::SendSafeBoxCheckinPacket(TItemPos InventoryPos, UINT bySafeBoxPos)

//Search for:
bool CPythonNetworkStream::SendSafeBoxCheckoutPacket(BYTE bySafeBoxPos, TItemPos InventoryPos)

//edit
bool CPythonNetworkStream::SendSafeBoxCheckoutPacket(UINT bySafeBoxPos, TItemPos InventoryPos)

//   
bool CPythonNetworkStream::SendSafeBoxItemMovePacket(BYTE bySourcePos, BYTE byTargetPos, uint8_t byCount)
// edit
bool CPythonNetworkStream::SendSafeBoxItemMovePacket(UINT bySourcePos, UINT byTargetPos, uint8_t byCount)
 
// PythonSafebox.h

    enum
    {
        SAFEBOX_SLOT_X_COUNT = 5,
        SAFEBOX_SLOT_Y_COUNT = 9,
        SAFEBOX_PAGE_SIZE = SAFEBOX_SLOT_X_COUNT * SAFEBOX_SLOT_Y_COUNT
    };

// edit

    enum
    {
        SAFEBOX_SLOT_X_COUNT = 16,
        SAFEBOX_SLOT_Y_COUNT = 9,
        SAFEBOX_PAGE_SIZE = SAFEBOX_SLOT_X_COUNT * SAFEBOX_SLOT_Y_COUNT
    };

 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst