| | |
| | | GameWorld.DebugAnswer(curPlayer, "全部幻化: Horse skin 1")
|
| | | GameWorld.DebugAnswer(curPlayer, "重置幻化: Horse skin 0")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置幻化: Horse skin 幻化ID 状态")
|
| | | GameWorld.DebugAnswer(curPlayer, "设置星级: Horse star 坐骑ID 星级")
|
| | | return
|
| | |
|
| | | if msgList[0] == "skin":
|
| | |
| | | else:
|
| | | return
|
| | |
|
| | | elif msgList[0] == "star":
|
| | | horseID = msgList[1] if len(msgList) > 1 else 0
|
| | | horseStar = msgList[2] if len(msgList) > 2 else 0
|
| | | if not horseID or not horseStar:
|
| | | return
|
| | | skinID = 0
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in xrange(ipyDataMgr.GetHorseSkinPlusCount()):
|
| | | skinPlusIpyData = ipyDataMgr.GetHorseSkinPlusByIndex(index)
|
| | | if horseID != skinPlusIpyData.GetHorseID():
|
| | | continue
|
| | | if PlayerHorse.CheckHorseSkinState(curPlayer, skinPlusIpyData):
|
| | | skinID = skinPlusIpyData.GetID()
|
| | | break
|
| | | if not skinID:
|
| | | GameWorld.DebugAnswer(curPlayer, "该坐骑不存在或未激活:horseID=%s" % horseID)
|
| | | return
|
| | | if not IpyGameDataPY.GetIpyGameData("HorseStarUp", horseID, horseStar):
|
| | | GameWorld.DebugAnswer(curPlayer, "不存在该坐骑星级:horseID=%s,star=%s" % (horseID, horseStar))
|
| | | return
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HorserStar % horseID, horseStar)
|
| | | GameWorld.DebugAnswer(curPlayer, "设置坐骑星级:horseID=%s,star=%s,skinID=%s" % (horseID, horseStar, skinID))
|
| | | |
| | | elif len(msgList) == 1:
|
| | | if msgList[0] == 0:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HorserLV, 1)
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HorserSkinEndTime % skinID, 0)
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_HorserSkinPlusState, skinID, 0)
|
| | |
|
| | | for index in range(ipyDataMgr.GetHorseCount()):
|
| | | ipyData = ipyDataMgr.GetHorseByIndex(index)
|
| | | horseID = ipyData.GetHorseID()
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HorserStar % horseID, 0)
|
| | | |
| | | elif len(msgList) == 2:
|
| | | lv, eatItemCount = msgList
|
| | | if lv < 1:
|