| | |
| | | import SkillShell
|
| | | import BuffSkill
|
| | | import BaseAttack
|
| | | import ChNetSendPack
|
| | | import SkillCommon
|
| | | import AttackCommon
|
| | | import ItemControler
|
| | | import ItemCommon
|
| | | import FBLogic
|
| | | import ReadChConfig
|
| | | import PetControl
|
| | | import NPCAI
|
| | | import OperControlManager
|
| | | import ShareDefine
|
| | |
| | | import DataRecordPack
|
| | | import NetPackCommon
|
| | | import FBCommon
|
| | | import PlayerPrestigeSys
|
| | | import GY_Query_BossFirstKill
|
| | | import FormulaControl
|
| | | import PlayerBossReborn
|
| | | import PlayerCrossYaomoBoss
|
| | | import PlayerActCollectWords
|
| | | import PlayerTongTianLing
|
| | | import CrossPlayerData
|
| | | import PlayerFeastWish
|
| | | import PlayerFeastTravel
|
| | | import PlayerGoldInvest
|
| | | import PlayerWeekParty
|
| | | import NPCRealmRefresh
|
| | | import PlayerActLogin
|
| | | import PlayerActTask
|
| | | #import PlayerZhanling
|
| | | import IpyGameDataPY
|
| | | import PlayerState
|
| | | import TurnAttack
|
| | | import PyGameData
|
| | | import GameObj
|
| | | import ChNPC
|
| | |
| | | #存一个满足要求的所有的物品的列表 然后从当中随机选一个
|
| | | #注: 阶、颜色、套装ID、职业、部位,这5个条件可确认唯一一件装备
|
| | |
|
| | | if not PyGameData.InitPyItem:
|
| | | if not PyGameData.g_initPyItem:
|
| | | GameWorld.ErrLog("地图还未启动好载物品!")
|
| | | return []
|
| | |
|
| | |
| | | ownerDetail = GetSummonOwnerDetel(npcObj)
|
| | |
|
| | | elif npcObjType == IPY_GameWorld.gnotPet:
|
| | | #查找宠物主人
|
| | | ownerDetail = PetControl.GetPetOwner(npcObj) |
| | | pass
|
| | |
|
| | | return ownerDetail
|
| | | #---------------------------------------------------------------------
|
| | |
| | |
|
| | | ChNPC.OnNPCSetDead(curNPC)
|
| | |
|
| | | if npcid == IpyGameDataPY.GetFuncCfg("CrossYaomoBoss", 1):
|
| | | PlayerCrossYaomoBoss.OnCrossYaomoBossDead(curNPC)
|
| | | |
| | | # 清除队伍成员伤血列表
|
| | | AttackCommon.ClearTeamPlayerHurtValue(curNPC)
|
| | | if curNPC.GetType() == ChConfig.ntRobot:
|
| | |
| | |
|
| | | #宠物特殊处理
|
| | | if curNPC.GetGameNPCObjType() == IPY_GameWorld.gnotPet:
|
| | | PetControl.RefurbishPetAttr(curNPC, canSyncClient)
|
| | | return
|
| | |
|
| | | DoNPCAttrStrengthen(curNPC, isReborn)
|
| | |
| | |
|
| | | #宠物死亡调用独立接口
|
| | | if curNPC_GameNPCObjType == IPY_GameWorld.gnotPet:
|
| | | PetControl.SetPetDead(curNPC)
|
| | | return
|
| | |
|
| | | #---通用死亡逻辑---
|
| | |
| | | else:
|
| | | if GetNPCLV(curNPC) >= curPlayer.GetLV() - IpyGameDataPY.GetFuncCfg('DailyQuestKillMonster'):
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_KillNPC)
|
| | | #PlayerPrestigeSys.AddRealmTaskValue(curPlayer, PlayerPrestigeSys.RealmTaskType_KillNPC, 1)
|
| | |
|
| | | if ChConfig.IsGameBoss(curNPC):
|
| | | OnPlayerKillBoss(curPlayer, npcID, mapID, False)
|
| | |
| | | if not buyTimesVIPPriID:
|
| | | return
|
| | | canBuyCnt = 0
|
| | | canBuyCnt += PlayerGoldInvest.GetAddBossBuyCnt(curPlayer, killBossMark)
|
| | | hasBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntBuyCnt%killBossMark, 0)
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | if hasBuyCnt >= canBuyCnt:
|
| | |
| | | return
|
| | | # 增加购买次数
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Boss_KillCntBuyCnt%killBossMark, hasBuyCnt + 1)
|
| | | |
| | | CrossPlayerData.SendMergePlayerDataNow(curPlayer)
|
| | | return
|
| | |
|
| | | #// A2 23 NPC秀结束 #tagCMNPCShowEnd
|