| | |
| | | def DoResult(curPlayer, callFunName, funResult, tick):
|
| | | GameWorld.DebugLog("GY_Query_GetStoreServerBuyCnt funResult=%s" % funResult)
|
| | | curPlayer.SetDict(ChConfig.Def_PlayerKey_StoreQueryState, 0)
|
| | | result = eval(funResult)
|
| | | if len(result) != 6:
|
| | | if not funResult:
|
| | | return
|
| | | itemIndex, serverLimitCnt, clientBuyCount, totalItemList, mainItemID, limitBuyCnt = result
|
| | | FunctionNPCCommon.DoBuyStoreItem(curPlayer, itemIndex, clientBuyCount, totalItemList, mainItemID, limitBuyCnt)
|
| | | result = eval(funResult)
|
| | | if len(result) != 7:
|
| | | return
|
| | | itemIndex, serverLimitCnt, clientBuyCount, totalItemList, mainItemID, limitBuyCnt, sendMailKey = result
|
| | | FunctionNPCCommon.DoBuyStoreItem(curPlayer, itemIndex, clientBuyCount, totalItemList, mainItemID, limitBuyCnt, sendMailKey)
|
| | |
|
| | | return
|
| | |
|