| | |
| | | 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: 金钱类型
|
| | |
| | |
|
| | | #发送封包
|
| | | 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
|
| | |
|
| | |
|
| | |
| | | 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: 功能事件名
|
| | |
| | | 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: 背包类型
|
| | |
| | | "ItemID":itemID, "ItemGUID":itemGUID, "NPCID":petNpcID, "NPCName":petNpcName}
|
| | |
|
| | | 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状态
|