| | |
| | |
|
| | | def OnKillBossDropGoodItem(msgList, tick):
|
| | | # playerName, mapID, npcID, itemID, userData
|
| | | if len(msgList) != 8:
|
| | | if len(msgList) != 10:
|
| | | return
|
| | | playerID, killerName, mapID, npcID, itemID, userData, weightValue, serverGroupID = msgList
|
| | | playerID, killerName, mapID, lineID, npcID, itemID, userData, weightValue, serverGroupID, playerLV = msgList
|
| | | GameWorld.DebugLog("击杀Boss掉落好物品: mapID=%s,npcID=%s,killerName=%s,itemID=%s, userData=%s, weightValue=%s, serverGroupID=%s"
|
| | | % (mapID, npcID, killerName, itemID, userData, weightValue, serverGroupID))
|
| | | maxRecordCnt = IpyGameDataPY.GetFuncCfg('DropRecordNum')
|
| | |
| | | if commonList and commonList[0][0] != -1:
|
| | | recordList.Delete(commonList[0][0])
|
| | |
|
| | | PlayerUniversalGameRec.MapServer_UniversalGameRec(None, recType, [mapID, npcID, itemID, playerID, weightValue],
|
| | | [killerName, "", userData])
|
| | | PlayerUniversalGameRec.MapServer_UniversalGameRec(None, recType, [mapID*100+lineID, npcID, itemID, playerID, weightValue],
|
| | | [killerName, '%s|%s'%(serverGroupID, playerLV), userData])
|
| | |
|
| | | msgList = [killerName, playerID, mapID, npcID, itemID, userData]
|
| | | msgList = [killerName, playerID, mapID, npcID, itemID, userData, serverGroupID, playerLV, lineID]
|
| | | PlayerControl.WorldNotify(0, 'DropRecord' , msgList)
|
| | | return
|
| | |
|
| | |
| | |
|
| | | def SetBossRefreshTime(bossid, killedTime):
|
| | | '''设置boss刷新时间'''
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('BOSSInfo', bossid)
|
| | | ipyData = IpyGameDataPY.GetIpyGameDataNotLog('BOSSInfo', bossid)
|
| | | if not ipyData:
|
| | | return
|
| | | onlineCnt = __GetBossOnlineHeroCnt(bossid)[0]
|