| | |
| | | value1 = msgList[0]
|
| | |
|
| | | # 删除称号
|
| | | if value1 == "t1":
|
| | | if value1 == "t0":
|
| | | titleID = msgList[1] if len(msgList) > 1 else 0
|
| | | if not titleID:
|
| | | for index in range(ipyDataMgr.GetTitleCount()):
|
| | |
| | | titleID = ipyData.GetTitleID()
|
| | | if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_TitleState, titleID):
|
| | | continue
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_TitleState, titleID, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TitleEndTime % titleID, 0)
|
| | | PlayerHJG.DelTitle(curPlayer, titleID, False)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TitleStar % titleID, 0)
|
| | | syncTitleIDList.append(titleID)
|
| | | else:
|
| | |
| | | if not ipyData:
|
| | | GameWorld.DebugAnswer(curPlayer, "该称号不存在:%s" % titleID)
|
| | | return
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_TitleState, titleID, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TitleEndTime % titleID, 0)
|
| | | PlayerHJG.DelTitle(curPlayer, titleID, False)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TitleStar % titleID, 0)
|
| | | syncTitleIDList.append(titleID)
|
| | | GameWorld.DebugAnswer(curPlayer, "删除称号:%s" % syncTitleIDList)
|