脚本调用LUA
也加不上鉴定
function on_RunLuaScript1(actor, item)
local actorname = actor:getCharName()
local item = actor:getNpcDlgBoxItem(103)
if item then
if math.random(1,100) < 1000 then
local sDat1 = s.share.getRandomText("..\\Envir\\QuestDiary\\华联数据\\鉴定属性.txt", -1, 0,"Force")
local sDat2 = s.share.getRandomText("..\\Envir\\QuestDiary\\华联数据\\鉴定属性.txt", -1, 0,"Force")
local sDat3 = s.share.getRandomText("..\\Envir\\QuestDiary\\华联数据\\鉴定属性.txt", -1, 0,"Force")
local sDat4 = s.share.getRandomText("..\\Envir\\QuestDiary\\华联数据\\鉴定属性.txt", -1, 0,"Force")
item:setIdentify(1,sDat1,0)
item:setIdentify(2,sDat1,0)
item:setIdentify(3,sDat1,0)
item:setIdentify(4,sDat1,0)
print("["..actorname.."]通["..sDat1.."]过脚本命令执行LUA函数1")
end
end |