From d57475ffe460133d146d377e66ed19ccb77b11a7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 20 十月 2025 17:22:00 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(寻宝支持定制第x次x抽必出)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 264 +++++++---------------------------------------------
1 files changed, 39 insertions(+), 225 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 593dd42..f5bc798 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -134,20 +134,6 @@
GameWorld.GetGameWorld().EventShell_SendEventEx(eventTypeStr, len(eventTypeStr), dataStr, len(dataStr))
return
-
-## 二次非同天登陆
-# @param accID: 账号ID
-# @param ip: ip
-# @return: None
-def DR_OtherDayLogin(accID, ip, curPlayer):
-
- dataDict = {'AccID':accID, 'IP':ip}
-
- #发送封包
- SendEventPack("OtherDayLogin", dataDict, curPlayer)
- return
-
-
## 登陆
# @param curPlayer 玩家实例
# @return: None
@@ -292,22 +278,6 @@
SendEventPack("AddNewMission", dataDict, curPlayer)
return
-
-## 完成任务
-# @param curPlayer: 玩家实例
-# @param missionID: 任务ID
-# @return: None
-def DR_DeleteMission(curPlayer, missionID):
- return
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'MissionID':missionID}
-
- #发送封包
- SendEventPack("DeleteMission", dataDict, curPlayer)
- return
-
-
## 仓库存入金钱
# @param curPlayer: 玩家实例
# @param moneyType: 金钱类型
@@ -322,24 +292,6 @@
#发送封包
SendEventPack("SetMoneyInWarehouse", dataDict, curPlayer)
- return
-
-
-## 仓库取出金钱
-# @param curPlayer: 玩家实例
-# @param moneyType: 金钱类型
-# @param moneyCount: 金钱数量
-# @return: None
-def DR_GetMoneyInWarehouse(curPlayer, moneyType, moneyCount):
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- 'MoneyType':moneyType, 'MoneyCount':moneyCount,
- 'WarehouseMoneyCount':PlayerControl.GetWarehouseMoney(curPlayer, moneyType),
- 'PlayerMoneyCount':PlayerControl.GetMoney(curPlayer, moneyType)}
-
- #发送封包
- SendEventPack("GetMoneyInWarehouse", dataDict, curPlayer)
return
@@ -426,27 +378,6 @@
drDict["Official"] = [offRank, offBlessValue]
return drDict
-
-## 玩家充值后的点券信息及vip等级
-# @param curPlayer: 玩家实例
-# @param changeCoin: 兑换的点券数
-# @param totaChangelCoin: 总兑换点券数
-# @param prizeCoin: 赠送点券数
-# @param totalPrizeCoin: 总赠送点券数
-# @param playerVIPLV: vip等级
-# @param crazyCoin: 额为赠送数
-# @return: None
-def DR_PlayerCoinAfterCharge(curPlayer, changeCoin, totaChangelCoin, prizeCoin,
- totalPrizeCoin, playerVIPLV, crazyCoin, orderID):
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'ChangeCoin':changeCoin, 'TotaChangelCoin':totaChangelCoin,
- 'PrizeCoin':prizeCoin, 'TotalPrizeCoin':totalPrizeCoin, 'VIPLv':playerVIPLV,
- "CrazyCoin":crazyCoin, 'QueryOrderID':orderID}
-
- #发送封包
- SendEventPack("PlayerCoinAfterCharge", dataDict, curPlayer)
- return
## 玩家升级
# @param curPlayer: 玩家实例
@@ -745,21 +676,6 @@
SendEventPack("ChangePackItem", dataDict, curPlayer)
return
-
-## 设置仓库密码
-# @param curPlayer: 玩家实例
-# @param OldPsw: 旧密码
-# @param NewPsw: 新密码
-# @return:
-def DR_SetWarehousePsw(curPlayer, oldPsw, newPsw):
- dataDict = {"PlayerID":curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- "AccID":curPlayer.GetAccID(),
- "OldPsw":oldPsw, "NewPsw":newPsw}
-
- SendEventPack("SetWarehousePsw", dataDict, curPlayer)
- return
-
-
## 消耗金钱
# @param curPlayer: 玩家实例
# @param eventName: 功能事件名
@@ -809,8 +725,8 @@
SendEventPack("UseCurrency_%s" % moneyType, dataDict, curPlayer)
#战盟贡献
- elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
- SendEventPack("UseFamilyContribution", dataDict, curPlayer)
+ #elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
+ # SendEventPack("UseFamilyContribution", dataDict, curPlayer)
return
@@ -931,24 +847,6 @@
SendEventPack("LearnORUPSkill", dataDict, curPlayer)
return
-## 碎片合成给予物品
-# @param curPlayer: 玩家实例
-# @param itemID: 物品ID
-# @param itemCnt: 物品数量
-# @param isBind: 是否绑定
-# @return:
-def DR_StuffMachining(curPlayer, itemID, itemCnt, isBind):
- return
- #MySql不识别 True False,改成1和0
- isBind = 1 if isBind else 0
-
- dataDict = {"PlayerID":curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- "AccID":curPlayer.GetAccID(),
- "ItemID":itemID, "ItemCount":itemCnt, "IsBind":isBind}
-
- SendEventPack("StuffMachining", dataDict, curPlayer)
- return
-
## 背包格子数量购买
# @param curPlayer: 玩家实例
# @param packType: 背包类型
@@ -1042,21 +940,6 @@
SendEventPack("UsePetSoul", dataDict, curPlayer)
return
-
-## 镖车
-# @param curPlayer: 玩家实例
-# @param eventName: 事件名
-# @param addDataDict: 附加属性
-# @return:
-def DR_Truck(curPlayer, eventName, addDataDict):
- dataDict = {"PlayerID":curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- "AccID":curPlayer.GetAccID()}
-
- dataDict.update(addDataDict)
-
- SendEventPack("Truck_%s"%eventName, dataDict, curPlayer)
- return
-
## 设置玩家SB状态
# @param curPlayer: 玩家实例
# @param state: 状态
@@ -1080,37 +963,6 @@
SendEventPack("PlayerFamily_%s"%eventName, dataDict, curPlayer)
return
-
-
-## 获得威望值
-# @param curPlayer 玩家实例
-# @param addPrestige 添加值
-# @param addType 原因
-# @return
-def DR_GetPrestigeValue(curPlayer, addPrestige, addType):
- return
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- "Prestige":addPrestige, "TotalPrestige":PlayerControl.GetPrestige(curPlayer), "Type":addType}
-
- SendEventPack("GetPrestigeValue", dataDict, curPlayer)
- return
-
-
-## 失去威望值
-# @param curPlayer 玩家实例
-# @param addPrestige 添加值
-# @param addType 原因
-# @return
-def DR_LostPrestigeValue(curPlayer, addPrestige, addType):
- return
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- "Prestige":addPrestige, "TotalPrestige":PlayerControl.GetPrestige(curPlayer), "Type":addType}
-
- SendEventPack("LostPrestigeValue", dataDict, curPlayer)
- return
-
## 记录错误信息
# @param info: 错误信息
@@ -1140,24 +992,6 @@
#发送封包
SendEventPack("OneTimeCoinGiveGold", dataDict, curPlayer)
return
-
-
-## 增加玩家家族活跃度
-# @param curPlayer: 玩家实例
-# @param addValue: 增加值
-# @param curValue: 增加后值
-# @param reason:增加原因
-# @return
-def DR_AddPlayerFamilyActiveValue(curPlayer, addValue, curValue, reason):
- return
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- 'addValue':addValue, 'FamilyActiveValue':curValue, 'Reason':reason}
- #发送封包
- SendEventPack("AddPlayerFamilyActiveValue", dataDict, curPlayer)
- return
-
## 宠物加点
# @param curPlayer: 玩家实例
@@ -1220,22 +1054,6 @@
#发送封包
SendEventPack("PlayerDead", dataDict, curPlayer)
- return
-
-
-## 给存奖励表物品
-# @param curPlayer: 玩家
-# @param rewardType: 奖励类型
-# @param itemID: 物品ID
-# @param itemCnt: 物品个数
-# @return
-def DR_PlayerGetReward(curPlayer, rewardType, itemID, itemCnt):
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'itemID':itemID, 'itemCnt':itemCnt,
- 'rewardType':rewardType}
-
- #发送封包
- SendEventPack("PlayerGetReward", dataDict, curPlayer)
return
## 申请加入贵宾俱乐部
@@ -1456,19 +1274,6 @@
SendEventPack("PlayerSubmit_%s" % eventName, dataDict, curPlayer)
return
-## 资源找回记录
-# @param curPlayer
-# @return: None
-def DR_PlayerRecover(curPlayer, recoverWay, recoverCntDict, totalExp, totalMoney, totalSP, totalItemDict):
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'recoverWay':recoverWay, 'recoverCntDict':recoverCntDict,
- 'totalExp':totalExp, 'totalMoney':totalMoney, 'totalSP':totalSP, 'totalItemDict':totalItemDict}
-
- #发送封包
- SendEventPack("PlayerRecover", dataDict, curPlayer)
- return
-
def DR_GlobalDropCD(curPlayer, npcID, itemID):
# 全局掉落CD掉落记录
dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
@@ -1484,33 +1289,6 @@
'ItemID':itemID, 'KilledCnt':killedCnt, 'DropRate':dropRate}
#发送封包
SendEventPack("GlobalDropRate", dataDict, curPlayer)
- return
-
-def DR_MagicWeaponExp(curPlayer, mwID, succID, newExp, needExp):
- # 法宝激活经验获得记录
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'mwID':mwID, 'succID':succID,
- 'newExp':newExp, 'needExp':needExp}
- #发送封包
- SendEventPack("MagicWeaponExp", dataDict, curPlayer)
- return
-
-def DR_MagicWeaponActive(curPlayer, mwID, mwLV):
- # 法宝等级升级记录
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'mwID':mwID, 'mwLV':mwLV}
- #发送封包
- SendEventPack("MagicWeaponActive", dataDict, curPlayer)
- return
-
-## 玩家上线成就检查
-# @return
-def DR_CheckOldPlayerSuccess(curPlayer):
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID()}
-
- #发送封包
- SendEventPack("CheckOldPlayerSuccess", dataDict, curPlayer)
return
## 玩家境界升级
@@ -1565,4 +1343,40 @@
'AccID':curPlayer.GetAccID(), 'dayIndex':dayIndex, 'point':point}
#发送封包
SendEventPack("FeastWeekPartyPoint", dataDict, curPlayer)
- return
\ No newline at end of file
+ return
+
+def DR_MailSend(playerID, GUID, addDict={}):
+ ## 邮件发送流向
+ dataDict = {'PlayerID':playerID, 'GUID':GUID}
+ dataDict.update(addDict)
+ #发送封包
+ SendEventPack("MailSend", dataDict)
+ return
+
+def DR_MailGiveSuccess(playerID, GUID):
+ ## 邮件领取流向
+ dataDict = {'PlayerID':playerID, 'GUID':GUID}
+ #发送封包
+ SendEventPack("MailGiveSuccess", dataDict)
+ return
+
+def DR_MailDel(playerID, GUID, eventName):
+ ## 邮件删除流向
+ dataDict = {'PlayerID':playerID, 'GUID':GUID, 'eventName':eventName}
+ #发送封包
+ SendEventPack("MailDel", dataDict)
+ return
+
+def DR_ServerMail(GUID, eventName, addDict={}):
+ ## 全服邮件流向
+ dataDict = {'GUID':GUID, "eventName":eventName}
+ dataDict.update(addDict)
+ SendEventPack("MailServerMail", dataDict)
+ return
+
+def DR_CreateRole(playerData):
+ dataDict = {'PlayerID':playerData.PlayerID, 'AccID':playerData.AccID, 'PlayerName':playerData.PlayerName, "Job":playerData.Job}
+ #发送封包
+ SendEventPack("CreateRole", dataDict)
+ return
+
--
Gitblit v1.8.0