Advertisement
poszer

TalaaSpeed

Sep 2nd, 2019
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1.         void LoadCustomFFA();
  2. +        bool IsCustomFFA(uint32 areaid)
  3. +        {
  4. +            AreaTableEntry const* place = GetAreaEntryByAreaID(areaid);
  5. +
  6. +            // map
  7. +            CustomFFAMap::const_iterator itrmap = m_custom_ffa.find(place->mapid);
  8. +            if(itrmap != m_custom_ffa.end())
  9. +                if(itrmap->second == 1)
  10. +                    return true;
  11. +
  12. +            // zone
  13. +            CustomFFAMap::const_iterator itrzone = m_custom_ffa.find(place->zone ? place->zone : place->ID );
  14. +            if(itrzone != m_custom_ffa.end())
  15. +                if(itrzone->second == 2)
  16. +                    return true;
  17. +
  18. +            // area
  19. +            CustomFFAMap::const_iterator itrarea = m_custom_ffa.find(place->ID);
  20. +            if(itrarea != m_custom_ffa.end())
  21. +                if(itrarea->second == 3)
  22. +                    return true;
  23. +
  24. +            return false;
  25. +        }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement