To check if one of several wpts sections are active ($wptsection) - help
Hey guys,
basically i want to trigger a refiller if either one of this waypoints sections are active, tried several alternatives but none is working.
Code:
if $wptsection == ("HuntWayPoints"), ("Cave Minus1"), ("Cave Minus2")
Code:
if $wptsection == 'Cave Minus1' or 'Cave Minus2' or 'Cave Minus3'
Code:
if $wptsection ~= 'Cave Minus1' or 'Cave Minus2' or 'Cave Minus3'
Code:
if $wptsection == 'Cave Minus1', 'Cave Minus2' or 'Cave Minus3'
none is working,
friend stated that it would maybe work with if if if but then again i tried and it failed.
here is the full code
Code:
auto(500)
if $wptsection == ("HuntWayPoints"), ("Cave Minus1"), ("Cave Minus2"), ("Cave Minus3") and $lootsaround == 0 and $attacked.id == 0 and not $trapped then
if itemcount("mana potion", "all") <= getuseroption("MpToLeave") or (itemcount("supreme health potion", "all") <= getuseroption("ShpToLeave") and getuseroption("UseSHP")) or itemcount("ultimate health potion", "all") <= getuseroption("UhpToLeave") or $stamina < getuseroption("StaminaCheck")*60 then
TargOn()
settrap("yes", "monster", "monster0", "monster1", "ancient scarab", "demon skeleton")
setlooting("off")
gotolabel("LeaveSecondFloor", "Leave")
waitping(2,3)
end
end
Working code:
Code:
auto(500)
if $wptsection == "HuntWayPoints" and $lootsaround == 0 and $attacked.id == 0 and not $trapped then
if itemcount("mana potion", "all") <= getuseroption("MpToLeave") or (itemcount("supreme health potion", "all") <= getuseroption("ShpToLeave") and getuseroption("UseSHP")) or itemcount("ultimate health potion", "all") <= getuseroption("UhpToLeave") or $stamina < getuseroption("StaminaCheck")*60 then
TargOn()
settrap("yes", "monster", "monster0", "monster1", "ancient scarab", "demon skeleton")
setlooting("off")
gotolabel("LeaveSecondFloor", "Leave")
waitping(2,3)
end
end
Thanks in advance