|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #// B4 0F 回收私有专属木桩怪 #tagCMRecyclePriWoodPile | 
|---|
|  |  |  | # | 
|---|
|  |  |  | #struct    tagCMRecyclePriWoodPile | 
|---|
|  |  |  | #{ | 
|---|
|  |  |  | #    tagHead        Head; | 
|---|
|  |  |  | #    DWORD        ObjID; | 
|---|
|  |  |  | #}; | 
|---|
|  |  |  | def OnRecyclePriWoodPile(index, clientData, tick): | 
|---|
|  |  |  | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) | 
|---|
|  |  |  | objID = clientData.ObjID | 
|---|
|  |  |  | curNPC = GameWorld.FindNPCByID(objID) | 
|---|
|  |  |  | if not curNPC: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | if curNPC.GetType() not in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | summonPlayerID = curNPC.GetDictByKey(ChConfig.Def_NPC_Dict_PriWoodPilePlayerID) | 
|---|
|  |  |  | if curPlayer.GetPlayerID() != summonPlayerID: | 
|---|
|  |  |  | #GameWorld.DebugLog("非玩家私有木桩...") | 
|---|
|  |  |  | return | 
|---|
|  |  |  | SetDeadEx(curNPC) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #// B4 0C 召唤私有专属木桩怪 #tagCMSummonPriWoodPile | 
|---|
|  |  |  | # | 
|---|
|  |  |  | #struct    tagCMSummonPriWoodPile | 
|---|