hch
2019-04-29 9aec240e848ba4bb6b473707ad8f48aee5180141
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
@@ -30,6 +30,7 @@
import PlayerSuccess
import PlayerWeekParty
import ShareDefine
import EventShell
#import EquipZhuXian
g_stoneCanPlaceList = [] #可镶嵌的位置
@@ -144,7 +145,7 @@
    itemPack = curPlayer.GetItemManager().GetPack(stonePackType)
    curStone = itemPack.GetAt(stoneIndex)
    
    if not ItemCommon.CheckItemCanUse(curStone):
    if not ItemCommon.CheckItemCanUse(curStone) or ItemControler.GetIsAuctionItem(curStone):
        GameWorld.Log("目标宝石为空或不可用,无法镶嵌!", playerID)
        return
    
@@ -191,6 +192,8 @@
    Sycn_StoneHoleInfo(curPlayer, [equipPackIndex])
    #成就
    DoStoneSuccess(curPlayer)
    EventShell.EventRespons_InlayStone(curPlayer)
    return
def DoStoneSuccess(curPlayer):
@@ -285,12 +288,10 @@
def GetTotalStoneLV(curPlayer):
    ##宝石总等级
    totalStoneLV = 0
    equipIndexList = GetAllStoneEquipIndexList()
    holeIndexList = GetAllEquipPlaceHoleIndex()
    gameData = GameWorld.GetGameData()
    playerEquip = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
    for equipIndex in xrange(playerEquip.GetCount()):
        if equipIndex not in ShareDefine.RoleEquipType :
            continue
    for equipIndex in equipIndexList:
        for holeIndex in holeIndexList:
            curGemID = GetEquipIndexStoneIDAndIsBand(curPlayer, equipIndex, holeIndex)[0]
            if curGemID == 0: