|  |  | 
 |  |  |     if fairyDomainState == 1:
 | 
 |  |  |         GameWorld.DebugLog("    正在寻访仙域中!请先退出寻访")
 | 
 |  |  |         return
 | 
 |  |  |      | 
 |  |  |     if fairyDomainState != 2 and not PlayerActivity.AddDailyActionFinishCnt(curPlayer, dailyID):
 | 
 |  |  |         GameWorld.DebugLog("    寻访仙域次数不足!")
 | 
 |  |  |     costPoint = IpyGameDataPY.GetFuncCfg('ImmortalDomainActivePoint', 2)
 | 
 |  |  |     if not PlayerActivity.CostActivityPoint(curPlayer, costPoint):
 | 
 |  |  |         GameWorld.DebugLog("    寻访仙域需要活跃点不足!costPoint=%s"%costPoint)
 | 
 |  |  |         return
 | 
 |  |  | 
 | 
 |  |  |     #随机事件 重置事件状态
 | 
 |  |  | 
 |  |  |             continue
 | 
 |  |  |         conditionList = ipyData.GetCondition()
 | 
 |  |  |         if not conditionList:
 | 
 |  |  |             fdEventIDList.remove(fdEventID)
 | 
 |  |  |             continue
 | 
 |  |  |         condition = random.choice(conditionList)
 | 
 |  |  |         index = conditionList.index(condition)
 | 
 |  |  |             index = 0
 | 
 |  |  |         else:
 | 
 |  |  |             condition = random.choice(conditionList)
 | 
 |  |  |             index = conditionList.index(condition)
 | 
 |  |  |         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FairyAdventuresData % fdEventID, ipyData.GetID() * 100 + index)
 | 
 |  |  |     
 | 
 |  |  |     if not fdEventIDList:
 | 
 |  |  | 
 |  |  |                 gearAwardList = ipyData.GetGearAward()
 | 
 |  |  |                 if not gearAwardList:
 | 
 |  |  |                     return
 | 
 |  |  |                 itemRateList = gearAwardList[index] if index < len(gearAwardList) else gearAwardList[-1]
 | 
 |  |  |                 itemRateList = ItemCommon.GetWeightItemListByAlchemyDiffLV(curPlayer, itemRateList, 1)
 | 
 |  |  |                 giveItemList = [GameWorld.GetResultByWeightList(itemRateList)]
 | 
 |  |  |                 giveItemList = []
 | 
 |  |  |                 itemRandomList = gearAwardList[index] if index < len(gearAwardList) else gearAwardList[-1]
 | 
 |  |  |                 for itemRateList in itemRandomList:
 | 
 |  |  |                     itemRateList = ItemCommon.GetWeightItemListByAlchemyDiffLV(curPlayer, itemRateList, 0)
 | 
 |  |  |                     giveItemList.append(GameWorld.GetResultByWeightList(itemRateList))
 | 
 |  |  |             else:
 | 
 |  |  |                 giveItemList = [ipyData.GetBasicAward()]
 | 
 |  |  |                  | 
 |  |  |         ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList)
 | 
 |  |  |         for itemInfo in giveItemList:
 | 
 |  |  |             NPCCommon.SendVirtualItemDrop(curPlayer, itemInfo[0], 0, 0, '')
 | 
 |  |  |         NPCCommon.DoGiveItemByVirtualDrop(curPlayer, giveItemList, 0)
 | 
 |  |  |         msgDict = {FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(giveItemList)}
 | 
 |  |  |         FBCommon.Notify_FB_Over(curPlayer, msgDict)
 | 
 |  |  |         GameWorld.DebugLog('缥缈奇遇领奖 msgDict=%s, fdeventID=%s' % (msgDict, fdeventID))
 |