怎么能让怪物物品不入包
function DropItemToBag(actor, killActor, item)
local actorname = actor:getCharName()
local itemName = item:getName()--名称
local killname = killActor:getCharName()
local wupin = s.share.checkListText("..\\Envir\\QuestDiary\\自动捡物\\物品名单.txt", itemName, 1,"Force")
local guaiwu = s.share.checkListText("..\\Envir\\QuestDiary\\自动捡物\\怪物名单.txt", actor:getCharName(), 1,"Force")
local QuestNum = killActor:getQuest(418)--等同于脚本 check [1] 0
if( wupin == 1 and QuestNum == 1 and guaiwu == 1) then
print("脚本标识[2]值为1")
return true
end
print(killname.."杀死["..actorname.."]死亡爆出物品["..itemName..QuestNum.."]直接进玩家包前回调")
end
2023-11-29 12:33:43 代付款几个杀死[神龙卫士]死亡爆出物品[神龙之冠0]直接进玩家包前回调
2023-11-29 12:33:49 代付款几个杀死[神龙力士]死亡爆出物品[神龙魔杖0]直接进玩家包前回调
2023-11-29 12:33:49 代付款几个杀死[神龙力士]死亡爆出物品[神龙护腕0]直接进玩家包前回调
2023-11-29 12:33:59 代付款几个杀死[神龙力士]死亡爆出物品[神龙项链0]直接进玩家包前回调
2023-11-29 12:33:59 代付款几个杀死[神龙力士]死亡爆出物品[神龙之靴0]直接进玩家包前回调
|