what is wrong ? dont wanna back when x MP left.PHP Code:
auto(1000)
if $wptsection == 'Waypoints' then
if needresupply(getuseroption("manastoleave")) and getsetting('Targeting/Enabled') == 'no' then
setsetting('Looting/Enabled', 'no')
onlyiftrapped('yes')
setsetting('Targeting/Enabled', 'yes')
if $posz == 12 then
gotolabel("LeaveDownFloor", "Waypoints")
else
gotolabel("StartLeaving", "GoDeposit")
end
end
end
Orginal script whitc i was edit
PHP Code:
auto(1000)
if $wptsection == 'Waypoints' then
if needresupply(getuseroption("captoleave")) and getsetting('Targeting/Enabled') == 'no' then
setsetting('Looting/Enabled', 'no')
onlyiftrapped('yes')
setsetting('Targeting/Enabled', 'yes')
if $posz == 12 then
gotolabel("LeaveDownFloor", "Waypoints")
else
gotolabel("StartLeaving", "GoDeposit")
end
end
end