Goto Label when player on screen
#37
When a player appears on screen, make cavebot goto label.
onScreenLabel = macro(100, 'Label Player Name', function() end)
onCreatureAppear(function(creature)
if onScreenLabel:isOn() and creature:isPlayer() and not creature:isLocalPlayer() then
if creature:getName() == "PlayerName" then
CaveBot.gotoLabel("labelName")
end
end
end)
10 Jun 2021