comparison mm7_6.cpp @ 597:c03428cb4119

stru319::_427102 clean
author zipi
date Wed, 06 Mar 2013 17:04:54 +0000
parents f90753ebabe3
children 2bf48d11d742
comparison
equal deleted inserted replaced
596:b5240254cbbd 597:c03428cb4119
1733 SpellBuff *v6; // ecx@46 1733 SpellBuff *v6; // ecx@46
1734 Player *v7; // esi@49 1734 Player *v7; // esi@49
1735 signed int v8; // edx@50 1735 signed int v8; // edx@50
1736 SpellBuff *v9; // ecx@50 1736 SpellBuff *v9; // ecx@50
1737 1737
1738 if ( a2 > 73 ) 1738 switch(a2)
1739 { 1739 {
1740 if ( a2 == 77 ) 1740 case 77:
1741 { 1741 {
1742 if ( pActor->sCurrentHP >= (signed int)pActor->pMonsterInfo.uHP ) 1742 if ( pActor->sCurrentHP >= (signed int)pActor->pMonsterInfo.uHP )
1743 return 0; 1743 return 0;
1744 return 1; 1744 return 1;
1745 } 1745 }
1746 if ( a2 == 80 ) 1746 case 80:
1747 { 1747 {
1748 v6 = pParty->pPartyBuffs; 1748 v6 = pParty->pPartyBuffs;
1749 while ( (signed __int64)v6->uExpireTime <= 0 ) 1749 while ( (signed __int64)v6->uExpireTime <= 0 )
1750 { 1750 {
1751 ++v6; 1751 ++v6;
1752 if ( v6 > &pParty->pPartyBuffs[19] ) 1752 if ( v6 > &pParty->pPartyBuffs[19] )
1753 { 1753 {
1754 v7 = pParty->pPlayers;//[0].pPlayerBuffs; 1754 v7 = pParty->pPlayers;//[0].pPlayerBuffs;
1755 v8 = 0; 1755 v8 = 0;
1756 v9 = v7->pPlayerBuffs; 1756 v9 = v7->pPlayerBuffs;
1757 while ( v9->uExpireTime <= 0i64 ) 1757 while ( v9->uExpireTime <= 0i64 )
1758 { 1758 {
1759 ++v8; 1759 ++v8;
1760 ++v9; 1760 ++v9;
1761 if ( v8 >= 24 ) 1761 if ( v8 >= 24 )
1762 { 1762 {
1763 ++v7; 1763 ++v7;
1764 if ( v7 <= &pParty->pPlayers[3] ) 1764 if ( v7 <= &pParty->pPlayers[3] )
1765 { 1765 {
1766 v8 = 0; 1766 v8 = 0;
1767 v9 = v7->pPlayerBuffs; 1767 v9 = v7->pPlayerBuffs;
1768 } 1768 }
1769 else 1769 else
1770 return 0; 1770 return 0;
1771 } 1771 }
1772 } 1772 }
1773 return 1; 1773 return 1;
1774 } 1774 }
1775 } 1775 }
1776 return 1; 1776 return 1;
1777 } 1777 }
1778 if ( a2 == 85 ) 1778 case 85:
1779 { 1779 {
1780 if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) < 0 ) 1780 if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) < 0 )
1781 return 1; 1781 return 1;
1782 if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) > 0 ) 1782 if ( SHIDWORD(pActor->pActorBuffs[13].uExpireTime) > 0 )
1783 return 0; 1783 return 0;
1784 v3 = 0; 1784 v3 = 0;
1785 v4 = LODWORD(pActor->pActorBuffs[13].uExpireTime) == 0; 1785 v4 = LODWORD(pActor->pActorBuffs[13].uExpireTime) == 0;
1786 } 1786 break;
1787 else 1787 }
1788 { 1788 case 86:
1789 if ( a2 == 86 ) 1789 {
1790 {
1791 if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) < 0 ) 1790 if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) < 0 )
1792 return 1; 1791 return 1;
1793 if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) > 0 ) 1792 if ( SHIDWORD(pActor->pActorBuffs[14].uExpireTime) > 0 )
1794 return 0; 1793 return 0;
1795 v3 = 0; 1794 v3 = 0;
1796 v4 = LODWORD(pActor->pActorBuffs[14].uExpireTime) == 0; 1795 v4 = LODWORD(pActor->pActorBuffs[14].uExpireTime) == 0;
1797 } 1796 break;
1798 else 1797 }
1799 { 1798 case 95:
1800 if ( a2 != 95 || SHIDWORD(pActor->pActorBuffs[20].uExpireTime) < 0 ) 1799 {
1801 return 1; 1800 if ( SHIDWORD(pActor->pActorBuffs[20].uExpireTime) < 0 )
1801 return 1;
1802 if ( SHIDWORD(pActor->pActorBuffs[20].uExpireTime) > 0 ) 1802 if ( SHIDWORD(pActor->pActorBuffs[20].uExpireTime) > 0 )
1803 return 0; 1803 return 0;
1804 v3 = 0; 1804 v3 = 0;
1805 v4 = LODWORD(pActor->pActorBuffs[20].uExpireTime) == 0; 1805 v4 = LODWORD(pActor->pActorBuffs[20].uExpireTime) == 0;
1806 } 1806 break;
1807 } 1807 }
1808 } 1808 case 73:
1809 else
1810 {
1811 if ( a2 == 73 )
1812 {
1813 if ( SHIDWORD(pActor->pActorBuffs[21].uExpireTime) < 0 )
1814 return 1;
1815 if ( SHIDWORD(pActor->pActorBuffs[21].uExpireTime) > 0 )
1816 return 0;
1817 v3 = 0;
1818 v4 = LODWORD(pActor->pActorBuffs[21].uExpireTime) == 0;
1819 }
1820 else if ( a2 == 5 )
1821 {
1822 if ( SHIDWORD(pActor->pActorBuffs[19].uExpireTime) < 0 )
1823 return 1;
1824 if ( SHIDWORD(pActor->pActorBuffs[19].uExpireTime) > 0 )
1825 return 0;
1826 v3 = 0;
1827 v4 = LODWORD(pActor->pActorBuffs[19].uExpireTime) == 0;
1828 }
1829 else if ( a2 == 17 )
1830 {
1831 if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) < 0 )
1832 return 1;
1833 if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) > 0 )
1834 return 0;
1835 v3 = 0;
1836 v4 = LODWORD(pActor->pActorBuffs[15].uExpireTime) == 0;
1837 }
1838 else if ( a2 == 38 )
1839 {
1840 if ( SHIDWORD(pActor->pActorBuffs[16].uExpireTime) < 0 )
1841 return 1;
1842 if ( SHIDWORD(pActor->pActorBuffs[16].uExpireTime) > 0 )
1843 return 0;
1844 v3 = 0;
1845 v4 = LODWORD(pActor->pActorBuffs[16].uExpireTime) == 0;
1846 }
1847 else if ( a2 == 46 )
1848 {
1849 if ( SHIDWORD(pActor->pActorBuffs[17].uExpireTime) < 0 )
1850 return 1;
1851 if ( SHIDWORD(pActor->pActorBuffs[17].uExpireTime) > 0 )
1852 return 0;
1853 v3 = 0;
1854 v4 = LODWORD(pActor->pActorBuffs[17].uExpireTime) == 0;
1855 }
1856 else
1857 {
1858 if ( a2 != 47 )
1859 { 1809 {
1860 if ( a2 != 51 || SHIDWORD(pActor->pActorBuffs[18].uExpireTime) < 0 ) 1810 if ( SHIDWORD(pActor->pActorBuffs[21].uExpireTime) < 0 )
1861 return 1; 1811 return 1;
1862 if ( SHIDWORD(pActor->pActorBuffs[18].uExpireTime) <= 0 ) 1812 if ( SHIDWORD(pActor->pActorBuffs[21].uExpireTime) > 0 )
1863 { 1813 return 0;
1814 v3 = 0;
1815 v4 = LODWORD(pActor->pActorBuffs[21].uExpireTime) == 0;
1816 break;
1817 }
1818 case 5:
1819 {
1820 if ( SHIDWORD(pActor->pActorBuffs[19].uExpireTime) < 0 )
1821 return 1;
1822 if ( SHIDWORD(pActor->pActorBuffs[19].uExpireTime) > 0 )
1823 return 0;
1824 v3 = 0;
1825 v4 = LODWORD(pActor->pActorBuffs[19].uExpireTime) == 0;
1826 break;
1827 }
1828 case 17:
1829 {
1830 if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) < 0 )
1831 return 1;
1832 if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) > 0 )
1833 return 0;
1834 v3 = 0;
1835 v4 = LODWORD(pActor->pActorBuffs[15].uExpireTime) == 0;
1836 break;
1837 }
1838 case 38:
1839 {
1840 if ( SHIDWORD(pActor->pActorBuffs[16].uExpireTime) < 0 )
1841 return 1;
1842 if ( SHIDWORD(pActor->pActorBuffs[16].uExpireTime) > 0 )
1843 return 0;
1844 v3 = 0;
1845 v4 = LODWORD(pActor->pActorBuffs[16].uExpireTime) == 0;
1846 }
1847 case 46:
1848 {
1849 if ( SHIDWORD(pActor->pActorBuffs[17].uExpireTime) < 0 )
1850 return 1;
1851 if ( SHIDWORD(pActor->pActorBuffs[17].uExpireTime) > 0 )
1852 return 0;
1853 v3 = 0;
1854 v4 = LODWORD(pActor->pActorBuffs[17].uExpireTime) == 0;
1855 break;
1856 }
1857 case 47:
1858 {
1859 if ( SHIDWORD(pActor->pActorBuffs[11].uExpireTime) < 0 )
1860 return 1;
1861 if ( SHIDWORD(pActor->pActorBuffs[11].uExpireTime) > 0 )
1862 return 0;
1863 v3 = 0;
1864 v4 = LODWORD(pActor->pActorBuffs[11].uExpireTime) == 0;
1865 break;
1866 }
1867 case 51:
1868 {
1869 if ( SHIDWORD(pActor->pActorBuffs[18].uExpireTime) < 0 )
1870 return 1;
1871 if ( SHIDWORD(pActor->pActorBuffs[18].uExpireTime) <= 0 )
1872 {
1864 v3 = 0; 1873 v3 = 0;
1865 v4 = LODWORD(pActor->pActorBuffs[18].uExpireTime) == 0; 1874 v4 = LODWORD(pActor->pActorBuffs[18].uExpireTime) == 0;
1866 }
1867 else
1868 return 0;
1869 } 1875 }
1870 else 1876 else
1877 return 0;
1878 break;
1879 }
1880 default:
1871 { 1881 {
1872 if ( SHIDWORD(pActor->pActorBuffs[11].uExpireTime) < 0 ) 1882 return 1;
1873 return 1;
1874 if ( SHIDWORD(pActor->pActorBuffs[11].uExpireTime) > 0 )
1875 return 0;
1876 v3 = 0;
1877 v4 = LODWORD(pActor->pActorBuffs[11].uExpireTime) == 0;
1878 } 1883 }
1879 }
1880 } 1884 }
1881 if ( !(v3 | v4) ) 1885 if ( !(v3 | v4) )
1882 return 0; 1886 return 0;
1883 return 1; 1887 return 1;
1884 } 1888 }