|  |  | 
 |  |  |     if isOK:
 | 
 |  |  |         if desBackPack == IPY_GameWorld.rptEquip:
 | 
 |  |  |             packIndex = IPY_GameWorld.rptEquip
 | 
 |  |  |             itemPlace = IPY_GameWorld.retClothesCoat
 | 
 |  |  |             itemPlace = destIndex
 | 
 |  |  |             itemPack = curPlayer.GetItemManager().GetPack(packIndex)
 | 
 |  |  |             curItem = itemPack.GetAt(itemPlace)
 | 
 |  |  |             itemId = curItem.GetItemTypeID()
 | 
 |  |  | 
 |  |  |             itemPack = curPlayer.GetItemManager().GetPack(packIndex)
 | 
 |  |  |             curItem = itemPack.GetAt(0)
 | 
 |  |  |             if curItem:
 | 
 |  |  |                 curPlayer.Sync_UnEquipItem(curItem.GetItemTypeID(), IPY_GameWorld.retClothesCoat)
 | 
 |  |  |                 curPlayer.Sync_UnEquipItem(curItem.GetItemTypeID(), srcIndex)
 | 
 |  |  |     GameWorld.DebugLog("SwitchCoat isOK=%s" % isOK)
 | 
 |  |  |     return True
 | 
 |  |  | 
 |