|  |  |  | 
|---|
|  |  |  | import PlayerActLogin | 
|---|
|  |  |  | import PlayerHorse | 
|---|
|  |  |  | import FBCommon | 
|---|
|  |  |  | import NPCCommon | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import math | 
|---|
|  |  |  | import time | 
|---|
|  |  |  | 
|---|
|  |  |  | # @param curActionNode节点信息 | 
|---|
|  |  |  | # @return 返回值无意义 | 
|---|
|  |  |  | # @remarks  <Drop_Item id="物品ID" count="物品数量" starLV="星级" bind="是否绑定" isAuctionItem="是否拍品" | 
|---|
|  |  |  | #         suite="是否套装化" addAttrLV="追加等级",isLucky="是否有幸运" | 
|---|
|  |  |  | #         suite="是否套装化" addAttrLV="追加等级",isLucky="是否有幸运" isFakeDrop="是否假掉落" | 
|---|
|  |  |  | #        skillBoostEff="[技能效果增强索引, 值]", holeCount="孔数", isGreat="1", effIndex="1" , dropDist="掉落范围默认3" | 
|---|
|  |  |  | #        aroundPlayer="1" baseAttrRate="可强化的装备基础属性随机加强比例默认10000" greatAttr="[卓越属性列表]" /> | 
|---|
|  |  |  | def DoType_Drop_Item(curPlayer, curMission, curActionNode): | 
|---|
|  |  |  | 
|---|
|  |  |  | if not curItem: | 
|---|
|  |  |  | GameWorld.Log('###创建地上物品异常,无此ID物品 = %s' % (curItemID)) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | isFakeDrop = GameWorld.ToIntDef(curActionNode.GetAttribute("isFakeDrop"), 0) | 
|---|
|  |  |  | if isFakeDrop:#假掉落表现 | 
|---|
|  |  |  | dropItemDataStr = ChItem.GetMapDropItemDataStr(curItem) | 
|---|
|  |  |  | #通知客户端 | 
|---|
|  |  |  | NPCCommon.SendVirtualItemDrop(curPlayer, curItemID, 0, 0, dropItemDataStr) | 
|---|
|  |  |  | ItemControler.GivePlayerItemOrMail(curPlayer, [[curItemID, count, isAuctionItem]]) | 
|---|
|  |  |  | curItem.Clear() | 
|---|
|  |  |  | return | 
|---|
|  |  |  | if curActionNode.GetAttribute("aroundPlayer") == "1" or not curNPC: | 
|---|
|  |  |  | posX, posY = curPlayer.GetPosX(), curPlayer.GetPosY() | 
|---|
|  |  |  | else: | 
|---|