Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
Creator-Control didnt create Death Knights (Fixed).
Auto-Summoning for Chinese-Client didnt work anymore (Fixed).
  • Loading branch information
Macx-Lio authored Nov 16, 2024
1 parent dd7397e commit 240cfd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions MultiBotHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,15 @@ MultiBot:SetScript("OnEvent", function()

local tButton = MultiBot.frames["MultiBar"].frames["Units"].buttons[arg2]

if(MultiBot.auto.release == true) then
-- Graveyard ready to talk Bot in the chinese Version --
if(tButton ~= nil and tButton.waitFor == "你好" and arg1 == "你好") then
SendChatMessage("summon", "WHISPER", nil, arg2)
tButton.waitFor = ""
return
end
end

if(MultiBot.isInside(arg1, "Hello", "你好") and tButton == nil) then
local tUnit = MultiBot.toUnit(arg2)
local tLocClass, tClass = UnitClass(tUnit)
Expand Down Expand Up @@ -633,15 +642,6 @@ MultiBot:SetScript("OnEvent", function()
return
end

if(MultiBot.auto.release == true) then
-- Graveyard ready to talk Bot in the chinese Version --
if(tButton.waitFor == "你好" and arg1 == "你好") then
SendChatMessage("summon", "WHISPER", nil, arg2)
tButton.waitFor = ""
return
end
end

if(tButton.waitFor == "NC" and MultiBot.isInside(arg1, "Strategies: ")) then
tButton.waitFor = ""
tButton.normal = string.sub(arg1, 13)
Expand Down
2 changes: 1 addition & 1 deletion MultiBotInit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ end

tCreator.addButton("DeathKnight", 0, 270, "Interface\\AddOns\\MultiBot\\Icons\\addclass_deathknight.blp", MultiBot.tips.creator.deathknight)
.doLeft = function(pButton)
SendChatMessage(".playerbot bot addclass deathknight", "SAY")
SendChatMessage(".playerbot bot addclass dk", "SAY")
end

tCreator.addButton("Inspect", 0, 300, "Interface\\AddOns\\MultiBot\\Icons\\filter_none.blp", MultiBot.tips.creator.inspect)
Expand Down

0 comments on commit 240cfd9

Please sign in to comment.