Hello.
1. If you use this code in Persistents, it will always be sending to that label, unless you add a piece of code to disable it or a check to see which label it is on and don't use gotolabel if it's already on this label.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?
if paroundignore(Range, Multifloor , table.unpack(Safelist)) > 0 then
gotolabel('label_name')
end
So you would need to use a check like this... Let's say that "label_name" has id #50 (you can check that number on cavebot) and after going to "label_name" it would walk on 3 waypoints, so from 50 to 53. So you make a check to don't let this code send you to "label_name" if are between label 50# and 53#.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?
if paroundignore(Range, Multifloor , table.unpack(Safelist)) > 0 and waypoint().id < 50 and waypoint().id > 53 then
gotolabel('label_name')
end
2.
if paround() > 0 then
moveitems('gold coin', ground(posx(), posy(), posz()), '', 100)
end
3.
if hppc() <= 30 then
moveitems('gold coin', ground(posx(), posy(), posz()), '', 100)
end
4. Same problem as script #1.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?
if paroundignore(Range, Multifloor , table.unpack(Safelist)) == 0 then
gotolabel('label_name')
end
So you would need to use a check like this... Let's say that "label_name" has id #50 (you can check that number on cavebot) and after going to "label_name" it would walk on 3 waypoints, so from 50 to 53. So you make a check to don't let this code send you to "label_name" if are between label 50# and 53#.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?
if paroundignore(Range, Multifloor , table.unpack(Safelist)) == 0 and waypoint().id < 50 and waypoint().id > 53 then
gotolabel('label_name')
end