Code:
-- Leave after Boss --
local monsterToLeave = 'deeds'
local labelToLeave = 'Leavehunt'
BattleMessageProxy.OnReceive('check_kill', function(proxy, message)
if string.match(message, monsterToLeave) then
Walker.Goto(labelToLeave)
end
end)
Another fail...
Next try:
Code:
-- Leave after Boss --
local monsterToLeave = 'deeds' -- leave bosses name lowercase
local labelToLeave = 'Leavehunt'
ErrorMessageProxy.OnReceive('check_kill', function(proxy, message)
if string.match(message, monsterToLeave) then
Walker.Goto(labelToLeave)
end)
end)