Herkese Hayırlı Kullanımlar
Alıntıdır ...
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
};
Teşekkürler, Bu şuanki hali eğer yanda taşmaları felan varsa x y halledebilinir arkadaslar
- 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)
Benzer konular
- Cevaplar
- 14
- Görüntüleme
- 3K
- Cevaplar
- 1
- Görüntüleme
- 2K
- Cevaplar
- 0
- Görüntüleme
- 2K
- Cevaplar
- 14
- Görüntüleme
- 3K