Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CHARACTER::IsHack(bool bSendMsg, bool bCheckShopOwner, int limittime)
- {
- const int iPulse = thecore_pulse();
- if (test_server)
- bSendMsg = true;
- if (iPulse - GetSafeboxLoadTime() < PASSES_PER_SEC(limittime))
- {
- if (test_server)
- ChatPacket(CHAT_TYPE_INFO, "[TestOnly]Pulse %d LoadTime %d PASS %d", iPulse, GetSafeboxLoadTime(), PASSES_PER_SEC(limittime));
- if (bSendMsg)
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait."));
- return true;
- }
- if (bCheckShopOwner)
- {
- if (GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())
- {
- if (bSendMsg)
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait."));
- return true;
- }
- }
- else
- {
- if (GetExchange() || GetMyShop() || IsOpenSafebox() || IsCubeOpen())
- {
- if (bSendMsg)
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait."));
- return true;
- }
- }
- //PREVENT_PORTAL_AFTER_EXCHANGE
- //��ȯ �� �ð�üũ
- if (iPulse - GetExchangeTime() < PASSES_PER_SEC(limittime))
- {
- return true;
- }
- //END_PREVENT_PORTAL_AFTER_EXCHANGE
- //PREVENT_ITEM_COPY
- if (iPulse - GetMyShopTime() < PASSES_PER_SEC(limittime))
- {
- if (bSendMsg)
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait."));
- return true;
- }
- if (iPulse - GetRefineTime() < PASSES_PER_SEC(limittime))
- {
- if (bSendMsg)
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait."));
- return true;
- }
- //END_PREVENT_ITEM_COPY
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement