| | |
| | | import ChConfig
|
| | | import PlayerControl
|
| | | import IpyGameDataPY
|
| | | import EventShell
|
| | |
|
| | | import time
|
| | |
|
| | |
| | | sendPack.Result = 0
|
| | | NetPackCommon.SendPyPackToGameServer(sendPack)
|
| | | return
|
| | |
|
| | | |
| | | Text = curPackData.Text
|
| | | _, _, content = Text.split("<$_$>")
|
| | | isPaimaiMail = "<MailTemplate>PaimaiMail3</MailTemplate>" in content
|
| | | |
| | | for i in xrange(curPackData.Count):
|
| | | curPackItem = curPackData.Items[i]
|
| | | itemID = curPackItem.ItemID
|
| | |
| | | curCreateItem.SetUserAttr(ShareDefine.Def_IudetAuctionItemCreateTime, auctionItemCreateTime)
|
| | |
|
| | | ItemCommon.MakeEquipGS(curCreateItem)
|
| | | |
| | | if isPaimaiMail and ItemCommon.CheckItemIsEquip(curCreateItem):
|
| | | EventShell.EventRespons_BuyAuctionEquip(curPlayer, curCreateItem.GetItemColor())
|
| | | |
| | | #放入玩家背包
|
| | | ItemControler.PlayerItemControler(curPlayer).PutInItem(IPY_GameWorld.rptItem, curCreateItem,
|
| | | event=[ChConfig.ItemGive_Mail, False, {"MailGUID":curPackData.GUID}])
|