function on_MagAttackTarge(TagActor, Actor, MagicID)
local actorname = Actor:getCharName()
local TagActorName = TagActor:getCharName()
local zxu = Actor:getRace()
if zxu == 0 then
local AExt0 = TagActor:getVal_U(6) --取物品变量0的值(存储宝石物品IDX)
local AExt1 = TagActor:getVal_U(7) --取物品变量0的值(存储宝石物品IDX)
local AExt2 = TagActor:getVal_U(8) --取物品变量0的值(存储宝石物品IDX)
local BAExt0 = Actor:getVal_U(6) --取物品变量0的值(存储宝石物品IDX)
local BAExt1 = Actor:getVal_U(7) --取物品变量0的值(存储宝石物品IDX)
local BAExt2 = Actor:getVal_U(8) --取物品变量0的值(存储宝石物品IDX)
local ndata = TagActor:getJob()
local Andata = Actor:getJob()
if ndata == 1 then
if (MagicID == 91 or MagicID == 11) then
if (AExt0 == 1046 or AExt1 == 1046 or AExt2 == 1046)then
if math.random(1,100) < 10 then
Actor:setActorStatus(2,1)
TagActor:sendMsg(2,"冰冻buff生效,对手冰冻1秒", -1, -1)
end
end
end
end
这段报错: local AExt0 = TagActor:getVal_U(6) --取物品变量0的值(存储宝石物品IDX)
原因为何?
|