求助:哪位大神能帮忙修改下IPopBar和SayMyName,万分感谢

求助:哪位大神能帮忙修改下IPopBar和SayMyName,万分感谢


IPopBar是动作条插件,7.25就失效了.
SayMyName是在聊天栏中有出现你的角色名会"叮"一声提醒你.


附件


没人来自己顶下


SayMyName.lua中的
[code=lua]
function SayMyName_output(channel_name, speaker, message)

  ChatFrame7:AddMessage(  channel_name .. " [" .. speaker .."]: " .. message, 0.0, 1.0, 0.0)
  UIErrorsFrame:AddMessage(  channel_name .. " [" .. speaker .."]: " .. message, 0.0, 1.0, 0.0, 5.0)
  PlaySound( "AuctionWindowClose","Master")
end
[/code]
替换为
[code=lua]
function SayMyName_output(channel_name, speaker, message)

  ChatFrame7:AddMessage(  channel_name .. " [" .. speaker .."]: " .. message, 0.0, 1.0, 0.0)
  UIErrorsFrame:AddMessage(  channel_name .. " [" .. speaker .."]: " .. message, 0.0, 1.0, 0.0, 5.0)
  PlaySound( 5275,"Master")
end
[/code]
至于IPopBar 可以的话 请尝试提供一下报错信息 方便定位错误 当然不保证能修复

改动



[b]Reply to [pid=243332380,12410131,1]Reply[/pid] Post by [uid=24335437]qfeizaijun[/uid] (2017-09-13 20:57)[/b]
谢谢大神的回复,下面是动作条LUA报错的信息
Message: Interface\AddOns\IPopBar\IPopBar.lua:271: attempt to index global 'HelpMicroButton' (a nil value)
Time: 09/13/17 21:36:04
Count: 1
Stack: Interface\AddOns\IPopBar\IPopBar.lua:271: attempt to index global 'HelpMicroButton' (a nil value)
[C]: ?
Interface\AddOns\IPopBar\IPopBar.lua:271: in main chunk

Locals:

Message: Interface\AddOns\IPopBar\IPopBar.lua:81: attempt to index upvalue 'db' (a nil value)
Time: 09/13/17 21:37:20
Count: 5
Stack: Interface\AddOns\IPopBar\IPopBar.lua:81: attempt to index upvalue 'db' (a nil value)
[C]: ?
Interface\AddOns\IPopBar\IPopBar.lua:81: in function <Interface\AddOns\IPopBar\IPopBar.lua:79>

Locals:
总共有2条报错


[b]Reply to [pid=243332380,12410131,1]Reply[/pid] Post by [uid=24335437]qfeizaijun[/uid] (2017-09-13 20:57)[/b]
点击了下动作条又报错了1个
Message: Interface\FrameXML\RestrictedFrames.lua:726: Invalid method 'UpdateButtons'
Time: 09/13/17 21:38:30
Count: 1
Stack: Interface\FrameXML\RestrictedFrames.lua:726: Invalid method 'UpdateButtons'
Interface\FrameXML\RestrictedFrames.lua:608: in function <Interface\FrameXML\RestrictedFrames.lua:606>
[C]: ?
[C]: ?
Interface\FrameXML\RestrictedFrames.lua:612: in function <Interface\FrameXML\RestrictedFrames.lua:611>
Interface\FrameXML\RestrictedFrames.lua:750: in function `CallMethod'
[string "  local IPopBarFrameBar = self:GetFrameRef("..."]:9: in function <[string "  local IPopBarFrameBar = self:GetFrameRef("..."]:1>
(tail call): ?
[C]: ?
Interface\FrameXML\RestrictedExecution.lua:441: in function <Interface\FrameXML\RestrictedExecution.lua:412>
(tail call): ?
Interface\FrameXML\SecureHandlers.lua:89: in function `SecureHandler_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: <none>