1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/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