修复 商城购买赠送物品
This commit is contained in:
@@ -62,6 +62,12 @@ public:
|
||||
return CallT<int>(base::CInventory::update_item, this, a2, a3, a4);
|
||||
}
|
||||
|
||||
int insertItemIntoInventory(Inven_Item a2, int a3, bool a4, bool a5)
|
||||
{
|
||||
return CallT<int>(base::CInventory::insertItemIntoInventory, this, a2, a3, a4, a5);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,22 @@
|
||||
|
||||
namespace base
|
||||
{
|
||||
|
||||
const int ScanInt = 0x088BC37B;
|
||||
const int ScanStr = 0x088BC7A2;
|
||||
|
||||
|
||||
const int importCashShopItemList = 0x088FDCB5;
|
||||
const int importCashShopItemList_hook_begin = 0x088FDD59;
|
||||
const int importCashShopItemList_hook_end = 0x088FDD61;
|
||||
|
||||
namespace ItemVendingMachine
|
||||
{
|
||||
//08178676
|
||||
const int ProcessIPG_ResultOutput_hook_begin = 0x08179398;
|
||||
const int ProcessIPG_ResultOutput_hook_end = 0x081793A2;
|
||||
}
|
||||
|
||||
namespace DNFFLib
|
||||
{
|
||||
const int ConvertGBKtoUTF8 = 0x08108D0E;
|
||||
@@ -14,7 +30,7 @@ namespace base
|
||||
const int G_CGameManager = 0x080CC18E;
|
||||
}
|
||||
|
||||
namespace CSystemTime
|
||||
namespace CSystemTime
|
||||
{
|
||||
const int s_systemTime_ = 0x0941F714;
|
||||
const int getCurSec = 0x080CBC9E;
|
||||
@@ -25,6 +41,12 @@ namespace base
|
||||
const int CSystemTime_destroy = 0x082A6986;
|
||||
}
|
||||
|
||||
|
||||
namespace Dispatcher_BuyCeraShopItem
|
||||
{
|
||||
const int dispatch_sig = 0x081FD396;
|
||||
}
|
||||
|
||||
namespace Dispatcher_UseJewel
|
||||
{
|
||||
const int dispatch_sig = 0x8217BD6;
|
||||
@@ -45,7 +67,7 @@ namespace base
|
||||
|
||||
namespace DisPatcher_ReturnToSelectCharacter
|
||||
{
|
||||
const int dispatch_sig = 0x081FD25C;
|
||||
const int dispatch_sig = 0x081FD25C;
|
||||
}
|
||||
|
||||
namespace GlobalData
|
||||
@@ -56,7 +78,7 @@ namespace base
|
||||
|
||||
//base
|
||||
const int s_pSecuProtectionField = 0x0941F7CC;
|
||||
|
||||
const int s_pItemVendingMachine = 0x0941F760;
|
||||
|
||||
}
|
||||
|
||||
@@ -186,6 +208,7 @@ namespace base
|
||||
const int GetInvenRef = 0x84FC1DE;
|
||||
const int GetInvenSlot = 0x084FB918;
|
||||
const int update_item = 0x085000AE;
|
||||
const int insertItemIntoInventory = 0x08502D86;
|
||||
|
||||
}
|
||||
|
||||
@@ -295,6 +318,18 @@ namespace base
|
||||
}
|
||||
namespace WongWork
|
||||
{
|
||||
namespace CCeraShop
|
||||
{
|
||||
const int _processCoin = 0x08325A88;
|
||||
|
||||
}
|
||||
|
||||
namespace CMailBoxHelper
|
||||
{
|
||||
const int ReqDBSendNewMailCashShop = 0x08556D5C;
|
||||
}
|
||||
|
||||
|
||||
namespace CHackAnalyzer
|
||||
{
|
||||
const int addServerHackCnt = 0x080F8C7E;
|
||||
|
||||
@@ -60,6 +60,35 @@ public:
|
||||
|
||||
namespace WongWork
|
||||
{
|
||||
class CCeraShop
|
||||
{
|
||||
public:
|
||||
|
||||
static CCeraShop* G_CCeraShop()
|
||||
{
|
||||
return *(CCeraShop**)base::GlobalData::s_pItemVendingMachine;
|
||||
}
|
||||
|
||||
int _processCoin(CUser* a2, ushort a3, bool a4)
|
||||
{
|
||||
return CallT<int>(base::WongWork::CCeraShop::_processCoin, this, a2, a3, a4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
class CMailBoxHelper
|
||||
{
|
||||
public:
|
||||
int ReqDBSendNewMailCashShop(Inven_Item * a2, uint a3, uint a4, bool a5, char const* a6, int a7)
|
||||
{
|
||||
return CallT<int>(base::WongWork::CMailBoxHelper::ReqDBSendNewMailCashShop, this, a2, a3, a4, a5, a6, a7);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
class CAvatarItemMgr
|
||||
{
|
||||
@@ -133,5 +162,15 @@ public:
|
||||
#include "PacketBuf.h"
|
||||
#include "SystemTime.h"
|
||||
|
||||
inline int ScanInt(bool* a2 = NULL)
|
||||
{
|
||||
return CallT<int>(base::ScanInt, a2);
|
||||
}
|
||||
|
||||
inline int ScanStr(std::string* a2)
|
||||
{
|
||||
return CallT<int>(base::ScanStr, a2);
|
||||
}
|
||||
|
||||
|
||||
#endif // __DXFBASE_H__
|
||||
|
||||
Reference in New Issue
Block a user