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
#!/usr/bin/python
# -*- coding: GBK -*-
#
# @todo: 
#
# @author: Alee
# @date 2017-11-14 ÏÂÎç05:05:32
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
import IPY_GameWorld
import GameMap
import GameWorld
import ShareDefine
#---------------------------------------------------------------------
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param cmdList ²ÎÊýÁбí [¿ªÆô¸ñÊý]
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, cmdList):
    if len(cmdList) == 2:
        posX, posY = cmdList[0], cmdList[1]
    else:
        posX, posY = curPlayer.GetPosX(), curPlayer.GetPosY()
    areaType = GameMap.GetAreaTypeByMapPos(posX, posY)
    
    printDict = {IPY_GameWorld.gatNormal:"Õý³£Çø",
                 IPY_GameWorld.gatSafe:"°²È«Çø",
                 IPY_GameWorld.gatFreePK:"×ÔÓÉPKÇø",
                 IPY_GameWorld.gatFamilyPK:"¼Ò×åÇø",
                 }
    GameWorld.DebugAnswer(curPlayer, "ÇøÓò%s: %s" % ([posX, posY], printDict.get(areaType, "Òì³£")))
    
    gameMap = GameWorld.GetMap()
    gameData = GameWorld.GetGameData()
    curPosObj = gameMap.GetPosObj(posX, posY)
    effectCount = curPosObj.GetEffectCount()
    for i in xrange(effectCount):
        effectID = curPosObj.GetEffectID(i)
        if effectID == 0:
            continue
        
        curSkill = gameData.GetSkillBySkillID(effectID)
        if curSkill == None:
            continue
        GameWorld.DebugAnswer(curPlayer, "%s skillID=%s,name=%s" % (i, curSkill.GetSkillTypeID(), curSkill.GetSkillName()))
        
    return