| | |
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | class horseskin_lv(ScribeEvent):
|
| | | # 时装升级记录
|
| | | def __init__(self):
|
| | | #必须字段
|
| | | super(horseskin_lv, self).__init__()
|
| | | self.account_id = "" # 账号 ID,平台下唯一,且终生不变
|
| | | self.chr_name = "" # 玩家角色名
|
| | | |
| | | self.skin_name = "" # 幻化坐骑名称
|
| | | self.bef_lv = 0 # 此次进阶操作前的等级
|
| | | self.bef_exp = 0 # 此次进阶操作前的经验值
|
| | | self.cost_item_cnt = 0 # 此次消耗的道具数量
|
| | | self.aft_lv = 0 # 此次操作后的等级, 0代表0级, 1代表+1级
|
| | | self.aft_exp = 0 #此次进阶操作后的经验值
|
| | | #非必须字段
|
| | | |
| | | #即时是非必须字段也应该传送,各字段用,分隔,并且用双引号包含,参考格式'"1","","","12314"'
|
| | | return
|
| | | |
| | | def GetCurEventStr(self):
|
| | | if not self.time:
|
| | | self.time = GameWorld.GetCurrentDataTimeStr()
|
| | | tmpList = [self.product_slug, self.agent_name, self.gameserver_no, self.account_id, self.chr_name, |
| | | self.skin_name, str(self.bef_lv), str(self.bef_exp), str(self.cost_item_cnt), str(self.aft_lv), str(self.aft_exp), self.time]
|
| | | |
| | | return super(horseskin_lv, self).GetEventStr(tmpList)
|
| | | |
| | | def GetScribeEventName(self): return ShareDefine.Def_UserAction_HorseSkinLV
|
| | | |
| | | def WriteEvent_horseskin_lv(curPlayer, skinName, befLV, befExp, costItemCnt, aftLV, aftExp):
|
| | | ## 写幻化坐骑升级记录
|
| | | #===========================================================================
|
| | | # horseSkinLV = horseskin_lv()
|
| | | # horseSkinLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
|
| | | # horseSkinLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
|
| | | # horseSkinLV.chr_name = curPlayer.GetPlayerName()
|
| | | # horseSkinLV.skin_name = skinName
|
| | | # horseSkinLV.bef_lv = befLV
|
| | | # horseSkinLV.bef_exp = befExp
|
| | | # horseSkinLV.cost_item_cnt = costItemCnt
|
| | | # horseSkinLV.aft_lv = aftLV
|
| | | # horseSkinLV.aft_exp = aftExp
|
| | | # WriteEvent(horseSkinLV)
|
| | | #===========================================================================
|
| | | return
|
| | | ## ---------------------------------------------------------------------------------------
|
| | |
|
| | |
|
| | | #------------------------2018-02-09 新的数据统计--------------------------------
|
| | | def WriteEvent_Entry(curPlayer, step):
|
| | | EventReport(ShareDefine.Def_UserAction_LostModel, "Step=%s&Flag=%s"%(step, ShareDefine.Def_UserAction_CreateRole), curPlayer)
|