Hello, I applied the fix ikarus made in his shared private files for the warp check fix of his offlineshop, but when I compile the source I have this errors, do you know how I can fix this? I tried to contact him but unfortunately I didn't receive an answer
Bitte melden Sie sich an, um dieses Bild zu sehen.
CHAR.CPP
Code
- bool CHARACTER::CanWarp() const
- {
- const int iPulse = thecore_pulse();
- const int limit_time = PASSES_PER_SEC(g_nPortalLimitTime);
- if ((iPulse - GetSafeboxLoadTime()) < limit_time)
- return false;
- if ((iPulse - GetExchangeTime()) < limit_time)
- return false;
- if ((iPulse - GetMyShopTime()) < limit_time)
- return false;
- if ((iPulse - GetRefineTime()) < limit_time)
- return false;
- if (GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())
- return false;
- // patch with warp check
- if (iPulse - GetOfflineShopUseTime() < limit_time)
- return false;
- if (GetOfflineShopGuest() || GetAuctionGuest())
- return false;
- return true;
- }
CHAR.H
Code
- #ifdef __ENABLE_NEW_OFFLINESHOP__
- public:
- offlineshop::CShop* GetOfflineShop() {return m_pkOfflineShop;}
- void SetOfflineShop(offlineshop::CShop* pkShop) {m_pkOfflineShop = pkShop;}
- offlineshop::CShop* GetOfflineShopGuest() {return m_pkOfflineShopGuest;}
- void SetOfflineShopGuest(offlineshop::CShop* pkShop) {m_pkOfflineShopGuest = pkShop;}
- offlineshop::CShopSafebox*
- GetShopSafebox() {return m_pkShopSafebox;}
- void SetShopSafebox(offlineshop::CShopSafebox* pk);
- void SetAuction(offlineshop::CAuction* pk) {m_pkAuction = pk;}
- void SetAuctionGuest(offlineshop::CAuction* pk) {m_pkAuctionGuest = pk;}
- offlineshop::CAuction* GetAuction() {return m_pkAuction;}
- offlineshop::CAuction* GetAuctionGuest() {return m_pkAuctionGuest;}
- //offlineshop-updated 05/08/19
- void SetLookingOfflineshopOfferList(bool is) { m_bIsLookingOfflineshopOfferList = is; }
- bool IsLookingOfflineshopOfferList() { return m_bIsLookingOfflineshopOfferList; }
- // patch with warp check
- int GetOfflineShopUseTime() const { return m_iOfflineShopUseTime; }
- void SetOfflineShopUseTime() { m_iOfflineShopUseTime = thecore_pulse(); }
- private:
- offlineshop::CShop* m_pkOfflineShop;
- offlineshop::CShop* m_pkOfflineShopGuest;
- offlineshop::CShopSafebox* m_pkShopSafebox;
- offlineshop::CAuction* m_pkAuction;
- offlineshop::CAuction* m_pkAuctionGuest;
- //offlineshop-updated 05/08/19
- bool m_bIsLookingOfflineshopOfferList;
- // patch with warp check
- int m_iOfflineShopUseTime = 0;
- #endif