| | |
| | | tagObj = curPlayer.GetActionObj()
|
| | | if tagObj == None:
|
| | | #没有目标
|
| | | GameWorld.Log("FuncCall -> 没有目标" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType -> 没有目标" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | if tagObj.GetGameObjType() != IPY_GameWorld.gotNPC:
|
| | | #谈话对象不对
|
| | | GameWorld.Log("FuncCall -> 谈话对象不对" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType -> 谈话对象不对" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | curNPC = GameWorld.GetNPCManager().GetNPCByIndex(tagObj.GetIndex())
|
| | | if curNPC == None:
|
| | | #没有这个NPC
|
| | | GameWorld.Log("FuncCall ->没有这个NPC" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType ->没有这个NPC" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | if curNPC.GetType() != npcType:
|