Goto Label when player on screen
#37
When a player appears on screen, make cavebot goto label.
--[[
Script made by Lee (Discord: l33_) - www.trainorcreations.com
If you want to support my work, feel free to donate at https://trainorcreations.com/donate
PS. Stop ripping off my work and selling it as your own.
]]--
local onScreenLabel = macro(100, 'Label Player Name', function() end)
local checkSkull = false
onCreatureAppear(function(creature)
if onScreenLabel:isOn() and creature:isPlayer() and not creature:isLocalPlayer() and (not checkSkull or (checkSkull and (creature:getSkull() == 2 or creature:getSkull() == 3))) then
if creature:getName() == "PlayerName" then
CaveBot.gotoLabel("labelName")
end
end
end)
04 Jul 2023