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); }