8346 【恺英】【后端】协助系统(请求协助增加广播仙盟频道提醒,3条不同信息轮流广播)
| | |
| | | familyID = curPlayer.GetFamilyID()
|
| | | if not familyID:
|
| | | return
|
| | | mapID, lineID, npcID, objID = queryData
|
| | | mapID, lineID, npcID, objID, npcLV = queryData
|
| | |
|
| | | playerID = curPlayer.GetPlayerID()
|
| | |
|
| | |
| | | PlayerFamily.SendFamilyFakePack(familyID, GetAssistInfoListPack([assistObj]))
|
| | | # 求助信息已发送,请等待盟友支援
|
| | | PlayerControl.NotifyCode(curPlayer, "AssistRequestOK")
|
| | | |
| | | # 广播仙盟请求
|
| | | requestCount = 1
|
| | | if not addNewAssist:
|
| | | requestCount = min(curPlayer.GetDictByKey("AssistBossRequestCount") + 1, 999)
|
| | | curPlayer.SetDict("AssistBossRequestCount", requestCount)
|
| | | notifyNum = (requestCount - 1) % 3
|
| | | PlayerControl.FamilyNotify(familyID, "AssistBossRequest%s" % notifyNum, [curPlayer.GetName(), mapID, npcLV, npcID])
|
| | | return
|
| | |
|
| | | def __DoRequestAssistTeamFB(curPlayer, queryData):
|
| | |
| | | PlayerFamily.SendFamilyFakePack(familyID, GetAssistInfoListPack([assistObj]))
|
| | | # 求助信息已发送,请等待盟友支援
|
| | | PlayerControl.NotifyCode(curPlayer, "AssistRequestOK")
|
| | | # 广播仙盟请求
|
| | | requestCount = 1
|
| | | if not addNewAssist:
|
| | | requestCount = min(curPlayer.GetDictByKey("AssistFBRequestCount") + 1, 999)
|
| | | curPlayer.SetDict("AssistFBRequestCount", requestCount)
|
| | | notifyNum = (requestCount - 1) % 3
|
| | | PlayerControl.FamilyNotify(familyID, "AssistFBRequest%s" % notifyNum, [curPlayer.GetName(), mapID])
|
| | | return
|
| | |
|
| | | def __AddNewAssist(assistMgr, curPlayer, mapID, lineID, npcID=0, objID=0, exData="", isSaveDB=0):
|
| | |
| | | GameWorld.DebugLog("请求协助CD中!npcID=%s" % npcID, playerID)
|
| | | return
|
| | |
|
| | | npcLV = curNPC.GetLV()
|
| | | mapID = curPlayer.GetMapID()
|
| | | lineID = GameWorld.GetGameWorld().GetLineID()
|
| | | queryData = [mapID, lineID, npcID, objID]
|
| | | queryData = [mapID, lineID, npcID, objID, npcLV]
|
| | | QueryGameServer_PlayerAssist(playerID, "RequestAssistBoss", queryData)
|
| | | return
|
| | |
|