#!/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
|