16 卡牌服务端(修改GM命令Mail中物品,包含货币、装备、武将、常规物品;)
1个文件已修改
22 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Mail.py 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Mail.py
@@ -90,8 +90,10 @@
    return
def __randMailItem(mailItemCnt):
    itemIDList = range(3501, 3530 + 1)
    moneyIDList = [20, 30]
    moneyIDList = [1, 2, 3]
    equipIDList = range(100501, 100512)
    heroIDList = range(510001, 510016)
    itemIDList = [4, 5, 7, 8, 9, 10, 11, 12, 13, 1000, 1001, 1002] #range(3501, 3530 + 1)
    
    isBind = 0
    itemList = []
@@ -102,6 +104,22 @@
            if len(itemList) >= mailItemCnt:
                break
            
        random.shuffle(equipIDList)
        for i in range(3):
            itemID = equipIDList[i%len(equipIDList)]
            itemCount = 1
            itemList.append([itemID, itemCount, isBind])
            if len(itemList) >= mailItemCnt:
                break
        random.shuffle(heroIDList)
        for i in range(3):
            itemID = heroIDList[i%len(heroIDList)]
            itemCount = 1
            itemList.append([itemID, itemCount, isBind])
            if len(itemList) >= mailItemCnt:
                break
        random.shuffle(itemIDList)
        for i in range(mailItemCnt):
            itemID = itemIDList[i%len(itemIDList)]