Example #1
0
    int GetNewBonusAddItemByLevel(int nLevel, int nProfession, int index)
    {
        Tab_VipBook tBook = TableManager.GetVipBookByID(nLevel, 0);

        if (tBook != null && nProfession >= 0 && nProfession < tBook.getVipAddCount())
        {
            if (0 == index)
            {
                return(tBook.GetNew1VipAddbyIndex(nProfession));
            }
            else if (1 == index)
            {
                return(tBook.GetNew2VipAddbyIndex(nProfession));
            }
            else if (2 == index)
            {
                return(tBook.GetNew3VipAddbyIndex(nProfession));
            }
            else if (3 == index)
            {
                return(tBook.GetNew4VipAddbyIndex(nProfession));
            }
        }
        return(0);
    }
Example #2
0
    int GetNewAddCount(int nLevel, int nProfession, int index)
    {
        Tab_VipBook tBook = TableManager.GetVipBookByID(nLevel, 0);

        if (tBook != null && nProfession >= 0 && nProfession < tBook.getVipAddCount())
        {
            if (0 == index)
            {
                return(tBook.New1AddCount);
            }
            else if (1 == index)
            {
                return(tBook.New2AddCount);
            }
            else if (2 == index)
            {
                return(tBook.New3AddCount);
            }
            else if (3 == index)
            {
                return(tBook.New4AddCount);
            }
        }
        return(0);
    }
Example #3
0
    int GetBonusAddItemByLevel(int nLevel, int nProfession)
    {
        Tab_VipBook tBook = TableManager.GetVipBookByID(nLevel, 0);

        if (tBook != null && nProfession >= 0 && nProfession < tBook.getVipAddCount())
        {
            return(tBook.GetVipAddbyIndex(nProfession));
        }
        return(0);
    }