Ejemplo n.º 1
0
    int GetBonusItemByLevel(int nLevel, int nProfession)
    {
        Tab_VipBook tBook = TableManager.GetVipBookByID(nLevel, 0);

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