#!/usr/bin/python # -*- coding: GBK -*- ##@package PrintItem # Êä³öÍæ¼ÒËùÓб³°ü # # @author eggxp # @date 2010-4-23 # @version 1.2 # # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ # @change: "2013-07-04 10:00" Alee Ìí¼Óµ¥¸ö±³°ü´òÓ¡ # @change: "2013-08-11 19:50" Alee ´òÓ¡³èÎï±³°ü #--------------------------------------------------------------------- """Version = 2013-08-11 19:50""" # Ä£¿éÏêϸ˵Ã÷ import LogUI import Lang import IPY_GameWorld import GameWorld ## ´òÓ¡buffState # @param curPlayer µ±Ç°Íæ¼Ò # @param packIndex ±³°üË÷Òý # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def PrintCurItem(curPlayer, packIndex): playerItem = curPlayer.GetItemManager().GetPack(packIndex) GameWorld.DebugAnswer(curPlayer, "ÊýÄ¿ : %d, ×î´ó : %d"%(playerItem.GetCount(), playerItem.GetMaxCount())) for i in range(0, playerItem.GetMaxCount()): item = playerItem.GetAt(i) if item.IsEmpty(): continue GameWorld.DebugAnswer(curPlayer, "index = %d id = %d Ãû×Ö: %s ÊýÁ¿ : %d °ó¶¨ÎïÆ·=%s "%(item.GetItemPlaceIndex(), item.GetItemTypeID(), item.GetName(), item.GetCount(),item.GetIsBind())) # ## GMÃüÁîÖ´ÐÐÈë¿Ú # @param curPlayer µ±Ç°Íæ¼Ò # @param playerList ²ÎÊýÁбí [Ö¸¶¨±³°ü] # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(curPlayer,playerList): GameWorld.DebugAnswer(curPlayer, "==============================================") if len(playerList) == 1: GameWorld.DebugAnswer(curPlayer, "----------Ö¸¶¨±³°ü%s----------"%playerList[0]) PrintCurItem(curPlayer, int(playerList[0])) return GameWorld.DebugAnswer(curPlayer, "--------------ÈËÎï×°±¸---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptEquip) GameWorld.DebugAnswer(curPlayer, "--------------ÈËÎïÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptItem) GameWorld.DebugAnswer(curPlayer, "--------------²Ö¿âÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptWarehouse) GameWorld.DebugAnswer(curPlayer, "--------------³ÆºÅÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptTitle) GameWorld.DebugAnswer(curPlayer, "--------------¾ôλÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptInvestiture) GameWorld.DebugAnswer(curPlayer, "--------------»ØÊÕÕ¾ÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptRecycle) GameWorld.DebugAnswer(curPlayer, "--------------ºÏ³É±³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptCompose) GameWorld.DebugAnswer(curPlayer, "--------------¼ø¶¨±³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptIdentify) GameWorld.DebugAnswer(curPlayer, "--------------²ð½â±³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptBreakItem) GameWorld.DebugAnswer(curPlayer, "--------------½á¹û±³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptResult) GameWorld.DebugAnswer(curPlayer, "--------------ÂíÆ¥±³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptHorse) GameWorld.DebugAnswer(curPlayer, "--------------ÍòÄܱ³°üÎïÆ·---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptAnyWhere) GameWorld.DebugAnswer(curPlayer, "--------------³èÎï±³°ü1---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptPetEquip1) GameWorld.DebugAnswer(curPlayer, "--------------³èÎï±³°ü2---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptPetEquip2) GameWorld.DebugAnswer(curPlayer, "--------------³èÎï±³°ü3---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptPetEquip3) GameWorld.DebugAnswer(curPlayer, "--------------³èÎï±³°ü4---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptPetEquip4) GameWorld.DebugAnswer(curPlayer, "--------------³èÎï±³°ü5---------------") PrintCurItem(curPlayer, IPY_GameWorld.rptPetEquip5) #=========================================================================== # if len(playerList) == 1: # GameWorld.DebugAnswer(curPlayer, "------------ÒÑɾ³ýÎïÆ·-----------------") # PrintCurItem(curPlayer, IPY_GameWorld.rptDeleted) # #=========================================================================== GameWorld.DebugAnswer(curPlayer, "==============================================") return