| | |
| | | objID = msgData["ObjID"]
|
| | | npcID = msgData["NPCID"]
|
| | | curNPC = GameWorld.FindNPCByID(objID)
|
| | | if not curNPC:
|
| | | return
|
| | | if npcID != curNPC.GetNPCID():
|
| | | GameWorld.ErrLog("采集跨服NPC错误!npcID=%s != curNPCID=%s" % (npcID, curNPC.GetNPCID()))
|
| | | return
|
| | |
| | | giveItem.Clear()
|
| | | continue
|
| | |
|
| | | #---初始化装备显隐---前端自己设置
|
| | | #curPlayer.SetEquipShowSwitch(IPY_GameWorld.revClothesCoat|IPY_GameWorld.revWeaponCoat|IPY_GameWorld.revMask)
|
| | | #---初始化装备显隐 第1套*10+没有套装
|
| | | curPlayer.SetEquipShowSwitch(10)
|
| | | PlayerControl.SetFaceEquipIndex(curPlayer, 11012014)
|
| | |
|
| | | #默认触发一次功能开启
|
| | | if curPlayer.GetLV() == 1:
|
| | |
| | | RunQuestEvent(curPlayer, "trialexange", costItemID, Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | def EventRespons_EquipByPlace(curPlayer, equipplace):
|
| | | def EventRespons_EquipByPlace(curPlayer, itemClassLV, equipplace):
|
| | | #穿戴某部位装备(非时效)
|
| | | RunQuestEvent(curPlayer, "equipbyplace", equipplace, Def_RunQuestType_Normal)
|
| | | RunQuestEvent(curPlayer, "equipbyplace", '%s_%s'%(itemClassLV, equipplace), Def_RunQuestType_Normal)
|
| | | return
|
| | |
|
| | | def EventRespons_CompoundEquip(curPlayer, itemColor, itemQuality):
|
| | |
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_998371")
|
| | | return
|
| | | for itemID, itemCount, isBind in itemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem])
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem])
|
| | |
|
| | | #给经验
|
| | | giveExp = 0
|