| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package UseItem.Item_AddRealmExpRate  | 
| #  | 
| # @todo:Ôö¼Ó¾ÛÁéЧÂÊ  | 
| # @author xdh  | 
| # @date 2019-5-5  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: Ôö¼Ó¾ÛÁéЧÂÊ  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2019-5-5 12:00"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import PlayerControl  | 
| import PlayerPrestigeSys  | 
| import ItemCommon  | 
| import ChConfig  | 
|   | 
| def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):  | 
|     ##ÅúÁ¿Ê¹ÓÃÎïÆ·  | 
|     #itemTypeID = curRoleItem.GetItemTypeID()  | 
|     curEff = curRoleItem.GetEffectByIndex(0)  | 
|     addTime = curEff.GetEffectValue(0) * useCnt  | 
|     addRate = curEff.GetEffectValue(1)  | 
|     PlayerPrestigeSys.AddRealmExpBuffTime(curPlayer, addTime, addRate)  | 
|       | 
|     #PlayerControl.NotifyCode(curPlayer, 'UseItem_1', [itemTypeID, mwID, addExp])  | 
|     ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, isForceDR=True)  | 
|     return True, useCnt  | 
|   |