If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[REQUEST] Safe run pk and xlog

hello, im here for request a script that are quite useful, I know it can be used too with other wpts and labels but what i want is that when the char is under atack it goes to the label refill, so I use it:

but now in the location checker I want add an action something like..

Code:

if not islocation blablabla end
if killingme == true then setcavebot('off')wait(100)... printerror,..

the problem is I need a persistent that swap from true to false, like local killingme = false, return true, gotolabel killingme etc.. instead of that action:

Code:

local KillingMe = 'Refill'
if underattack('p') then
gotolabel(KillingMe)
end